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

Method reserveShapeSpace

physx/source/lowlevelaabb/src/BpAABBManager.cpp:1055–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1053/////
1054
1055void AABBManager::reserveShapeSpace(PxU32 nbTotalBounds)
1056{
1057 nbTotalBounds = Ps::nextPowerOfTwo(nbTotalBounds);
1058 mGroups.resize(nbTotalBounds, Bp::FilterGroup::eINVALID);
1059 mVolumeData.resize(nbTotalBounds); //KS - must be initialized so that userData is NULL for SQ-only shapes
1060 mContactDistance.resizeUninitialized(nbTotalBounds);
1061 mAddedHandleMap.resize(nbTotalBounds);
1062 mRemovedHandleMap.resize(nbTotalBounds);
1063}
1064
1065#if PX_VC
1066#pragma warning(disable: 4355 ) // "this" used in base member initializer list

Callers

nothing calls this directly

Calls 3

nextPowerOfTwoFunction · 0.85
resizeUninitializedMethod · 0.80
resizeMethod · 0.45

Tested by

no test coverage detected