MCPcopy Create free account
hub / github.com/RenderKit/embree / ~TutorialApplication

Method ~TutorialApplication

tutorials/common/tutorial/tutorial.cpp:265–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263 }
264
265 TutorialApplication::~TutorialApplication()
266 {
267 g_ispc_scene = nullptr;
268 ispc_scene = nullptr;
269 device_cleanup();
270 if (g_device) rtcReleaseDevice(g_device);
271 alignedUSMFree(pixels);
272 pixels = nullptr;
273
274#if defined(EMBREE_SYCL_SUPPORT)
275 delete device; device = nullptr;
276 delete queue; queue = nullptr;
277 delete context; context = nullptr;
278#endif
279
280 width = 0;
281 height = 0;
282 alignedFree(g_stats);
283 g_stats = nullptr;
284
285#if defined(EMBREE_SYCL_SUPPORT)
286
287 if (features & FEATURE_SYCL)
288 disableUSMAllocTutorial();
289
290#endif
291 }
292
293 SceneLoadingTutorialApplication::SceneLoadingTutorialApplication (const std::string& tutorialName, int features)
294

Callers

nothing calls this directly

Calls 5

rtcReleaseDeviceFunction · 0.85
alignedUSMFreeFunction · 0.85
alignedFreeFunction · 0.85
disableUSMAllocTutorialFunction · 0.85
device_cleanupFunction · 0.50

Tested by

no test coverage detected