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

rtcReleaseBuffer - decrements the buffer reference count

#include <embree4/rtcore.h>
void rtcReleaseBuffer(RTCBuffer buffer);

Buffer objects are reference counted. The rtcReleaseBuffer function decrements the reference count of the passed buffer object (buffer argument). When the reference count falls to 0, the buffer gets destroyed.

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

[rtcNewBuffer], [rtcRetainBuffer]