1rtcReleaseDevice(3) Embree Ray Tracing Kernels 3 rtcReleaseDevice(3)
2
3
4
5 NAME
6 rtcReleaseDevice - decrements the device reference count
7
8 SYNOPSIS
9 #include <embree3/rtcore.h>
10
11 void rtcReleaseDevice(RTCDevice device);
12
13 DESCRIPTION
14 Device objects are reference counted. The rtcReleaseDevice function
15 decrements the reference count of the passed device object (device
16 argument). When the reference count falls to 0, the device gets
17 destroyed.
18
19 All objects created from the device (like scenes, geometries, etc.)
20 hold a reference to the device, thus the device will not get destroyed
21 unless these objects are destroyed first.
22
23 EXIT STATUS
24 On failure an error code is set that can be queried using rtcGetDe‐
25 viceError.
26
27 SEE ALSO
28 [rtcNewDevice], [rtcRetainDevice]
29
30
31
32 rtcReleaseDevice(3)