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

Function device_init

tutorials/pathtracer/pathtracer_device.cpp:1725–1738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1723
1724/* called by the C++ code for initialization */
1725extern "C" void device_init (char* cfg)
1726{
1727 /* initialize last seen camera */
1728 g_accu_vx = Vec3fa(0.0f);
1729 g_accu_vy = Vec3fa(0.0f);
1730 g_accu_vz = Vec3fa(0.0f);
1731 g_accu_p = Vec3fa(0.0f);
1732
1733 TutorialData_Constructor(&data);
1734
1735 //data.occlusionFilterOpaque = GET_FUNCTION_POINTER(occlusionFilterOpaque);
1736 data.occlusionFilterHair = GET_FUNCTION_POINTER(occlusionFilterHair);
1737
1738} // device_init
1739
1740extern "C" void renderFrameStandard (int* pixels,
1741 const unsigned int width,

Callers

nothing calls this directly

Calls 2

TutorialData_ConstructorFunction · 0.70
Vec3faClass · 0.50

Tested by

no test coverage detected