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

rtcReleaseScene - decrements the scene reference count

#include <embree4/rtcore.h>
void rtcReleaseScene(RTCScene scene);

Scene objects are reference counted. The rtcReleaseScene function decrements the reference count of the passed scene object (scene argument). When the reference count falls to 0, the scene gets destroyed.

The scene holds a reference to all attached geometries, thus if the scene gets destroyed, all geometries get detached and their reference count decremented.

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

[rtcNewScene], [rtcRetainScene]