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

Method releaseMaterialToPool

physx/source/physx/src/NpFactory.cpp:451–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449}
450
451void NpFactory::releaseMaterialToPool(NpMaterial& material)
452{
453 PX_ASSERT(material.getBaseFlags() & PxBaseFlag::eOWNS_MEMORY);
454 Ps::Mutex::ScopedLock lock(mMaterialPoolLock);
455 mMaterialPool.destroy(&material);
456}
457
458///////////////////////////////////////////////////////////////////////////////
459

Callers 1

onRefCountZeroMethod · 0.80

Calls 2

getBaseFlagsMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected