NvBlastApplyAssetDescChunkReorderMap
Defined in lowlevel/NvBlast.h
-
void NvBlastApplyAssetDescChunkReorderMap(NvBlastChunkDesc *reorderedChunkDescs, const NvBlastChunkDesc *chunkDescs, uint32_t chunkCount, NvBlastBondDesc *bondDescs, uint32_t bondCount, const uint32_t *chunkReorderMap, bool keepBondNormalChunkOrder, 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.
See also
- Parameters
reorderedChunkDescs – [out] User-supplied array of size chunkCount to fill with new reordered NvBlastChunkDesc’s.
chunkDescs – [in] Array of chunk descriptors of size chunkCount.
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.
logFn – [in] User-supplied message function (see NvBlastLog definition). May be NULL.