NvBlastReorderAssetDescChunks

Defined in lowlevel/NvBlast.h

bool NvBlastReorderAssetDescChunks(NvBlastChunkDesc *chunkDescs, uint32_t chunkCount, NvBlastBondDesc *bondDescs, uint32_t bondCount, uint32_t *chunkReorderMap, bool keepBondNormalChunkOrder, void *scratch, NvBlastLog logFn)

Build and apply chunk reorder map.

Function basically calls NvBlastBuildAssetDescChunkReorderMap and NvBlastApplyAssetDescChunkReorderMap. Used for Convenience.

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 fill, 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.

Returns

true iff the chunks did not require reordering (chunkReorderMap is the identity map).