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

Method allocate

physx/source/lowlevelaabb/src/BpBroadPhaseABP.cpp:510–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510bool StraightBoxes::allocate(PxU32 nb)
511{
512 if(nb<=mSize)
513 return false;
514 DELETEARRAY(mBoxes);
515 // PT: we allocate NB_SENTINELS more boxes than necessary here so we don't need to allocate one more for SIMD-load safety
516 mBoxes = PX_NEW_TEMP(SIMD_AABB4)[nb+NB_SENTINELS];
517 mSize = mCapacity = nb;
518 return true;
519}
520
521
522 class SplitBoxes : public Boxes

Callers 5

postBroadPhaseMethod · 0.45
postBpStage2Method · 0.45
prepareDataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected