rtcReleaseBuffer - decrements the buffer reference count
#include <embree3/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]