| 64 | } |
| 65 | |
| 66 | RTC_API void rtcSetDeviceSYCLDevice(RTCDevice hdevice, const sycl::device sycl_device) |
| 67 | { |
| 68 | RTC_CATCH_BEGIN; |
| 69 | RTC_TRACE(rtcSetDeviceSYCLDevice); |
| 70 | RTC_VERIFY_HANDLE(hdevice); |
| 71 | |
| 72 | Lock<MutexSys> lock(g_mutex); |
| 73 | |
| 74 | DeviceGPU* device = dynamic_cast<DeviceGPU*>((Device*) hdevice); |
| 75 | if (device == nullptr) |
| 76 | throw_RTCError(RTC_ERROR_INVALID_ARGUMENT, "passed device must be an Embree SYCL device") |
| 77 | |
| 78 | device->setSYCLDevice(sycl_device); |
| 79 | |
| 80 | RTC_CATCH_END(nullptr); |
| 81 | } |
| 82 | |
| 83 | RTC_API_CPP sycl::event rtcCommitSceneWithQueue (RTCScene hscene, sycl::queue queue) |
| 84 | { |
no test coverage detected