MCPcopy Create free account
hub / github.com/RenderKit/embree / ~InstanceArray

Method ~InstanceArray

kernels/common/scene_instance_array.cpp:22–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 InstanceArray::~InstanceArray()
23 {
24 if (object) object->refDec();
25 if (objects) {
26 for (size_t i = 0; i < numObjects; ++i) {
27 if (objects[i]) objects[i]->refDec();
28 }
29 device->free(objects);
30 }
31 device->memoryMonitor(-ssize_t(sizeof(*this)), false);
32 }
33
34 void InstanceArray::setNumTimeSteps (unsigned int numTimeSteps_in)
35 {

Callers

nothing calls this directly

Calls 3

refDecMethod · 0.80
freeMethod · 0.45
memoryMonitorMethod · 0.45

Tested by

no test coverage detected