NvBlastEnsureAssetExactSupportCoverage
Defined in lowlevel/NvBlast.h
-
bool NvBlastEnsureAssetExactSupportCoverage(NvBlastChunkDesc *chunkDescs, uint32_t chunkCount, void *scratch, NvBlastLog logFn)
Function to ensure (check and update) support coverage of chunks.
Support chunks (marked in the NvBlastChunkDesc struct) must provide full coverage over the asset. This means that from any leaf chunk to the root node, exactly one chunk must be support. If this condition is not met, the actual support chunks will be adjusted accordingly.
Chunk order depends on support coverage, so this function should be called before chunk reordering.
- Parameters
chunkDescs – [in] Array of chunk descriptors of size chunkCount. It will be updated accordingly.
chunkCount – [in] The number of chunk descriptors.
scratch – [in] User-supplied scratch storage, must point to chunkCount valid bytes of memory.
logFn – [in] User-supplied message function (see NvBlastLog definition). May be NULL.
- Returns
true iff coverage was already exact.