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

rtcGetGeometryUserData - returns the user data pointer
  of the geometry

#include <embree4/rtcore.h>
void* rtcGetGeometryUserData(RTCGeometry geometry);

The rtcGetGeometryUserData function queries the user data pointer previously set with rtcSetGeometryUserData. When rtcSetGeometryUserData was not called yet, NULL is returned.

This function is supposed to be used during rendering, but only supported on the CPU and not inside SYCL kernels on the GPU. Inside a SYCL kernel the rtcGetGeometryUserDataFromScene function has to get used.

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

[rtcSetGeometryUserData], [rtcGetGeometryUserDataFromScene]