NvBlastApplyAssetDescChunkReorderMapInPlace
Defined in lowlevel/NvBlast.h
-
void NvBlastApplyAssetDescChunkReorderMapInPlace(NvBlastChunkDesc *chunkDescs, uint32_t chunkCount, NvBlastBondDesc *bondDescs, uint32_t bondCount, const uint32_t *chunkReorderMap, bool keepBondNormalChunkOrder, void *scratch, NvBlastLog logFn)
Apply chunk reorder map.
Function applies reorder map on NvBlastChunkDesc and NvBlastBondDesc arrays. It reorders chunks, replaces their ‘parentChunkIndex’ field with new indices. Bonds are kept in the same order, but their ‘chunkIndices’ field is updated with proper indices.
This overload of function reorders chunks in place.
See also
- Parameters
chunkDescs – [in] Array of chunk descriptors of size chunkCount. It will be updated accordingly.
chunkCount – [in] The number of chunk descriptors.
bondDescs – [in] Array of bond descriptors of size chunkCount. It will be updated accordingly.
bondCount – [in] The number of bond descriptors.
chunkReorderMap – [in] Chunk reorder map to use, must be of size chunkCount.
keepBondNormalChunkOrder – [in] If true, bond normals will be flipped if their chunk index order was reveresed by the reorder map.
scratch – [in] User-supplied scratch storage, must point to chunkCount * sizeof(NvBlastChunkDesc) valid bytes of memory.
logFn – [in] User-supplied message function (see NvBlastLog definition). May be NULL.