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

Function device_cleanup

tutorials/closest_point/closest_point_device.cpp:791–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789
790/* called by the C++ code for cleanup */
791extern "C" void device_cleanup ()
792{
793 rtcReleaseScene (g_scene1); g_scene1 = nullptr;
794 rtcReleaseScene (g_sceneEmbreeInstance); g_sceneEmbreeInstance = nullptr;
795 rtcReleaseScene (g_sceneUserDefinedInstance); g_sceneUserDefinedInstance = nullptr;
796 for (int i = 0; i < 4; ++i)
797 {
798 if (g_triangle_meshes[i])
799 delete g_triangle_meshes[i];
800 }
801 for (int i = 0; i < 3; ++i)
802 {
803 if (g_instanceUserDefined[i])
804 delete g_instanceUserDefined[i];
805 }
806 rtcReleaseDevice(g_device); g_device = nullptr;
807}
808
809} // namespace embree

Callers

nothing calls this directly

Calls 2

rtcReleaseSceneFunction · 0.85
rtcReleaseDeviceFunction · 0.85

Tested by

no test coverage detected