| 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) |
nothing calls this directly
no test coverage detected