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

Function TutorialData_Constructor

tutorials/dynamic_scene/dynamic_scene_device.h:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26};
27
28void TutorialData_Constructor(TutorialData* This)
29{
30 This->numSpheres = NUM_SPHERES;
31 This->numPhi = NUM_PHI;
32 This->numTheta = NUM_THETA;
33 This->g_scene = nullptr;
34 This->g_traversable = nullptr;
35 This->position = (Vec3fa*) alignedUSMMalloc((NUM_SPHERES)*sizeof(Vec3fa),16);
36 This->colors = (Vec3fa*) alignedUSMMalloc((NUM_SPHERES+1)*sizeof(Vec3fa),16);
37 This->radius = (float*) alignedUSMMalloc((NUM_SPHERES)*sizeof(float),16);
38}
39
40void TutorialData_Destructor(TutorialData* This)
41{

Callers 1

device_initFunction · 0.70

Calls 1

alignedUSMMallocFunction · 0.85

Tested by

no test coverage detected