| 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 |
nothing calls this directly
no test coverage detected