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

Method destroy

physx/source/physx/src/buffering/ScbBase.cpp:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34using namespace Scb;
35
36void Base::destroy()
37{
38 if(!isBuffering())
39 NpDestroy(*this);
40 else
41 {
42 // Schedule for destroy
43 PX_ASSERT(!(getControlFlags() & ControlFlag::eIS_RELEASED));
44 PX_ASSERT(getControlState() == ControlState::eREMOVE_PENDING);
45 setControlFlag(ControlFlag::eIS_RELEASED);
46 }
47}

Calls 3

NpDestroyFunction · 0.85
getControlFlagsFunction · 0.85
setControlFlagFunction · 0.85

Tested by

no test coverage detected