| 78 | } |
| 79 | |
| 80 | Scene::~Scene() noexcept |
| 81 | { |
| 82 | #if defined(EMBREE_SYCL_SUPPORT) |
| 83 | if (geometry_data_device) { |
| 84 | device->free(geometry_data_device); |
| 85 | } |
| 86 | if (geometries_device) { |
| 87 | device->free(geometries_device); |
| 88 | } |
| 89 | if (scene_device) { |
| 90 | device->free(scene_device); |
| 91 | } |
| 92 | if (offsets) { |
| 93 | device->free(offsets); |
| 94 | } |
| 95 | if (geometries_host) { |
| 96 | device->free(geometries_host); |
| 97 | } |
| 98 | if (geometry_data_host) { |
| 99 | device->free(geometry_data_host); |
| 100 | } |
| 101 | #endif |
| 102 | |
| 103 | device->refDec(); |
| 104 | } |
| 105 | |
| 106 | void Scene::printStatistics() |
| 107 | { |