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

Method removeMaterial

physx/source/physx/src/buffering/ScbScene.cpp:732–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730}
731
732void Scb::Scene::removeMaterial(const Sc::MaterialCore& material)
733{
734 if(material.getMaterialIndex() == MATERIAL_INVALID_HANDLE)
735 return;
736
737 Ps::Mutex::ScopedLock lock(mSceneMaterialBufferLock);
738
739 mSceneMaterialBuffer.pushBack(MaterialEvent(material.getMaterialIndex(), MATERIAL_REMOVE));
740
741 RELEASE_PVD_INSTANCE(&material);
742}
743
744///////////////////////////////////////////////////////////////////////////////
745

Callers 1

Calls 3

MaterialEventClass · 0.85
getMaterialIndexMethod · 0.80
pushBackMethod · 0.45

Tested by

no test coverage detected