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

Function releaseObjects

physx/source/geomutils/src/GuMeshFactory.cpp:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64template<class T>
65static void releaseObjects(Ps::CoalescedHashSet<T*>& objects)
66{
67 while(objects.size())
68 {
69 T* object = objects.getEntries()[0];
70 PX_ASSERT(object->getRefCount()==1);
71 object->release();
72 }
73}
74
75void GuMeshFactory::release()
76{

Callers 3

destroyChunkMethod · 0.85
releaseMethod · 0.85

Calls 4

getRefCountMethod · 0.80
sizeMethod · 0.45
getEntriesMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected