| 119 | } |
| 120 | |
| 121 | void Scene::syncWithDevice() |
| 122 | { |
| 123 | DeviceGPU* gpu_device = dynamic_cast<DeviceGPU*>(device); |
| 124 | if(!gpu_device) { |
| 125 | return; |
| 126 | } |
| 127 | |
| 128 | sycl::queue queue = sycl::queue(gpu_device->getGPUDevice()); |
| 129 | syncWithDevice(queue); |
| 130 | queue.wait_and_throw(); |
| 131 | } |
| 132 | |
| 133 | sycl::event Scene::syncWithDevice(sycl::queue queue) |
| 134 | { |
nothing calls this directly
no test coverage detected