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

Method ISPCInstance

tutorials/common/tutorial/scene_device.cpp:677–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675
676
677 ISPCInstance::ISPCInstance (RTCDevice device, unsigned int numTimeSteps)
678 : geom(INSTANCE), child(nullptr), startTime(0.0f), endTime(1.0f), numTimeSteps(numTimeSteps), quaternion(false), spaces(nullptr)
679 {
680 assert(numTimeSteps);
681 geom.geometry = rtcNewGeometry (device, RTC_GEOMETRY_TYPE_INSTANCE);
682 spaces = (AffineSpace3fa*) alignedUSMMalloc(numTimeSteps*sizeof(AffineSpace3fa),16);
683 for (size_t i=0; i<numTimeSteps; i++)
684 spaces[i] = AffineSpace3fa(one);
685 }
686
687 ISPCInstance::ISPCInstance (RTCDevice device, TutorialScene* scene, Ref<SceneGraph::TransformNode> in)
688 : geom(INSTANCE), child(nullptr), startTime(0.0f), endTime(1.0f), numTimeSteps(1), quaternion(false), spaces(nullptr)

Callers

nothing calls this directly

Calls 3

alignedUSMMallocFunction · 0.85
getMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected