.\" Automatically generated by Pandoc 2.9.2.1
.\"
.TH "rtcSYCLDeviceSelector" "3" "" "" "Embree Ray Tracing Kernels 4"
.hy
.SS NAME
.IP
.nf
\f[C]
rtcSYCLDeviceSelector - SYCL device selector function to select
  devices supported by Embree
\f[R]
.fi
.SS SYNOPSIS
.IP
.nf
\f[C]
#include <embree4/rtcore.h>

int rtcSYCLDeviceSelector(const sycl::device sycl_device);
\f[R]
.fi
.SS DESCRIPTION
.PP
This function checks if the passed SYCL device (\f[C]sycl_device\f[R]
arguments) is supported by Embree or not.
This function can be used directly to select some supported SYCL device
by using it as SYCL device selector function.
For instance, the following code sequence selects an Embree supported
SYCL device and creates an Embree device from it:
.IP
.nf
\f[C]
sycl::device sycl_device(rtcSYCLDeviceSelector);
sycl::queue sycl_queue(sycl_device);
sycl::context(sycl_device);
RTCDevice device = rtcNewSYCLDevice(sycl_context,nullptr);
\f[R]
.fi
.SS EXIT STATUS
.PP
The function returns -1 if the SYCL device is supported by Embree and 1
otherwise.
On failure an error code is set that can get queried using
\f[C]rtcGetDeviceError\f[R].
.SS SEE ALSO
.PP
[rtcIsSYCLDeviceSupported]
