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

Method updateMaterial

physx/source/physx/src/buffering/ScbScene.cpp:723–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723void Scb::Scene::updateMaterial(const Sc::MaterialCore& material)
724{
725 Ps::Mutex::ScopedLock lock(mSceneMaterialBufferLock);
726
727 mSceneMaterialBuffer.pushBack(MaterialEvent(material.getMaterialIndex(), MATERIAL_UPDATE));
728
729 UPDATE_PVD_PROPERTIES(&material)
730}
731
732void Scb::Scene::removeMaterial(const Sc::MaterialCore& material)
733{

Callers 1

Calls 3

MaterialEventClass · 0.85
getMaterialIndexMethod · 0.80
pushBackMethod · 0.45

Tested by

no test coverage detected