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

Method onRefCountZero

physx/source/physx/src/NpMaterial.cpp:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void NpMaterial::onRefCountZero()
63{
64 void* ud = userData;
65
66 if(getBaseFlags() & PxBaseFlag::eOWNS_MEMORY)
67 NpFactory::getInstance().releaseMaterialToPool(*this);
68 else
69 this->~NpMaterial();
70
71 NpPhysics::getInstance().notifyDeletionListenersMemRelease(this, ud);
72}
73
74NpMaterial* NpMaterial::createObject(PxU8*& address, PxDeserializationContext& context)
75{

Callers

nothing calls this directly

Calls 3

~NpMaterialMethod · 0.95
releaseMaterialToPoolMethod · 0.80

Tested by

no test coverage detected