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

Method InstanceArray

kernels/common/scene_instance_array.cpp:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#if defined(EMBREE_LOWEST_ISA)
10
11 InstanceArray::InstanceArray (Device* device, unsigned int numTimeSteps)
12 : Geometry(device,Geometry::GTY_INSTANCE_ARRAY,1,numTimeSteps)
13 {
14 object = nullptr;
15 objects = nullptr;
16 numObjects = 0;
17 gsubtype = GTY_SUBTYPE_INSTANCE_LINEAR;
18 l2w_buf.resize(numTimeSteps);
19 device->memoryMonitor(sizeof(*this), false);
20 }
21
22 InstanceArray::~InstanceArray()
23 {

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.45
memoryMonitorMethod · 0.45

Tested by

no test coverage detected