rtcReleaseDevice.3embree3 859 B

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