rtcGetSceneDevice(3) Embree Ray Tracing Kernels 4 rtcGetSceneDevice(3)

rtcGetSceneDevice - returns the device the scene got created in

#include <embree4/rtcore.h>
RTCDevice rtcGetSceneDevice(RTCScene scene);

This function returns the device object the scene got created in. The returned handle own one additional reference to the device object, thus you should need to call rtcReleaseDevice when the returned handle is no longer required.

On failure an error code is set that can be queried using rtcGetDeviceError.

[rtcReleaseDevice]