MCPcopy Create free account
hub / github.com/Autodesk/Aurora / deactivate

Method deactivate

Libraries/Aurora/Source/ResourceStub.cpp:451–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449}
450
451void ResourceStub::deactivate()
452{
453 // Iterate through all the referenced resource stubs.
454 for (auto iter = _references.begin(); iter != _references.end(); iter++)
455 {
456 // Decrement refenced resource's active reference count.
457 if (iter->second)
458 {
459 iter->second->decrementActiveRefCount();
460 }
461 }
462
463 if (_tracker.resourceDeactivated)
464 _tracker.resourceDeactivated(*this);
465
466 // Destroy the actual renderer resource for this resource stub.
467 destroyResource();
468}
469
470END_AURORA

Callers

nothing calls this directly

Calls 4

destroyResourceFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected