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

Function NpDestroyAggregate

physx/source/physx/src/NpFactory.cpp:791–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789}
790
791static void NpDestroyAggregate(Scb::Aggregate& scb)
792{
793 NpAggregate* np = const_cast<NpAggregate*>(getNpAggregate(&scb));
794
795 if(np->getBaseFlags() & PxBaseFlag::eOWNS_MEMORY)
796 NpFactory::getInstance().releaseAggregateToPool(*np);
797 else
798 np->~NpAggregate();
799
800 NpPhysics::getInstance().notifyDeletionListenersMemRelease(np, NULL);
801}
802
803static void NpDestroyShape(Scb::Shape& scb)
804{

Callers 1

NpDestroyFunction · 0.85

Calls 4

getBaseFlagsMethod · 0.80
~NpAggregateMethod · 0.80

Tested by

no test coverage detected