NvBlastAssetGetActorSerializationSizeUpperBound

Defined in lowlevel/NvBlast.h

uint32_t NvBlastAssetGetActorSerializationSizeUpperBound(const NvBlastAsset *asset, NvBlastLog logFn)

A buffer size sufficient to serialize an actor instanced from a given asset.

This function is faster than NvBlastActorGetSerializationSize, and can be used to create a reusable buffer for actor serialization.

Parameters
  • asset[in] The asset.

  • logFn[in] User-supplied message function (see NvBlastLog definition). May be NULL.

Returns

the required buffer size in bytes.