table of contents
|rtcReleaseDevice(3)||Embree Ray Tracing Kernels 3||rtcReleaseDevice(3)|
rtcReleaseDevice - decrements the device reference count
#include <embree3/rtcore.h> void rtcReleaseDevice(RTCDevice device);
DESCRIPTION¶Device objects are reference counted. The rtcReleaseDevice function decrements the reference count of the passed device object (device argument). When the reference count falls to 0, the device gets destroyed.
All objects created from the device (like scenes, geometries, etc.) hold a reference to the device, thus the device will not get destroyed unless these objects are destroyed first.