MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / NvFlexExtFreeParticles

Function NvFlexExtFreeParticles

extensions/flexExtContainer.cpp:488–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488void NvFlexExtFreeParticles(NvFlexExtContainer* c, int n, const int* indices)
489{
490#if _DEBUG
491 for (int i=0; i < n; ++i)
492 {
493 // check valid values
494 assert(indices[i] >= 0 && indices[i] < int(c->mFreeList.capacity()));
495
496 // check for double delete
497 assert(std::find(c->mFreeList.begin(), c->mFreeList.end(), indices[i]) == c->mFreeList.end());
498 }
499#endif
500
501 c->mFreeList.insert(c->mFreeList.end(), indices, indices+n);
502
503 c->mNeedsActiveListRebuild = true;
504}
505
506int NvFlexExtGetActiveList(NvFlexExtContainer* c, int* indices)
507{

Callers 1

NvFlexExtDestroyInstanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected