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

Method ISPCInstanceArray

tutorials/common/tutorial/scene_device.cpp:756–761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754 }
755
756 ISPCInstanceArray::ISPCInstanceArray (RTCDevice device, unsigned int numTimeSteps)
757 : geom(INSTANCE_ARRAY), child(nullptr), startTime(0.0f), endTime(1.0f), numTimeSteps(numTimeSteps), numInstances(0), quaternion(false), spaces_array(nullptr)
758 {
759 assert(numTimeSteps);
760 geom.geometry = rtcNewGeometry (device, RTC_GEOMETRY_TYPE_INSTANCE_ARRAY);
761 }
762
763 ISPCInstanceArray::ISPCInstanceArray (RTCDevice device, TutorialScene* scene, Ref<SceneGraph::MultiTransformNode> in)
764 : geom(INSTANCE_ARRAY), child(nullptr), startTime(0.0f), endTime(1.0f), numTimeSteps(1), quaternion(false), spaces_array(nullptr)

Callers

nothing calls this directly

Calls 3

alignedUSMMallocFunction · 0.85
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected