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

Function QuadLight_create

tutorials/common/lights/quad_light.cpp:89–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88//! Create an ispc-side QuadLight object
89extern "C" void* QuadLight_create()
90{
91 QuadLight* self = (QuadLight*) alignedUSMMalloc(sizeof(QuadLight),16);
92
93 Light_Constructor(&self->super);
94 //self->super.sample = GET_FUNCTION_POINTER(QuadLight_sample);
95 self->super.type = LIGHT_QUAD;
96
97 QuadLight_set(self,
98 Vec3fa(0.f),
99 Vec3fa(1.f, 0.f, 0.f),
100 Vec3fa(0.f, 1.f, 0.f),
101 Vec3fa(1.f));
102
103 return self;
104}
105
106} // namespace embree

Callers

nothing calls this directly

Calls 4

alignedUSMMallocFunction · 0.85
Light_ConstructorFunction · 0.85
QuadLight_setFunction · 0.85
Vec3faClass · 0.50

Tested by

no test coverage detected