NvBlastGetAssetMemorySize

Defined in lowlevel/NvBlast.h

size_t NvBlastGetAssetMemorySize(const NvBlastAssetDesc *desc, NvBlastLog logFn)

Calculates the memory requirements for an asset based upon its descriptor.

Use this function when building an asset with NvBlastCreateAsset.

Parameters
  • desc[in] Asset descriptor (see NvBlastAssetDesc). Used to calculate node count.

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

Returns

the memory size (in bytes) required for the asset, or zero if desc is invalid.