MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / finalizeExecute

Method finalizeExecute

physx/source/physx/src/NpBatchQuery.cpp:236–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236void NpBatchQuery::finalizeExecute()
237{
238 mPrevOffset = PxU32(eTERMINAL); // reset the first BatchStreamHeader offset
239 mStream.rewind(); // clear out the executed queries - rewind the data stream so that the query object can be reused
240 mNbRaycasts = mNbOverlaps = mNbSweeps = 0; // also reset the counts so the query object can be reused
241 mHasMtdSweep = false; // reset the mtd flag
242
243 Ps::atomicExchange(&mBatchQueryIsRunning, 0);
244}
245
246// fixed memory buffer with extra single hit for overflow detection
247template<typename HitType>

Callers

nothing calls this directly

Calls 2

atomicExchangeFunction · 0.50
rewindMethod · 0.45

Tested by

no test coverage detected