NvBlastGetAssetMemorySizeFromSizeData

Defined in lowlevel/NvBlast.h

size_t NvBlastGetAssetMemorySizeFromSizeData(const NvBlastAssetMemSizeData &sizeData, NvBlastLog logFn)

Calculates the memory requirements for an asset based upon supplied sized data.

Used primarily with serialization.

Parameters
  • sizeData[in] Alternate form where all size data is already known.

  • 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 data is invalid.