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

rtcRetainBuffer - increments the buffer reference count

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

Buffer objects are reference counted. The rtcRetainBuffer function increments the reference count of the passed buffer object (buffer argument). This function together with rtcReleaseBuffer allows to use the internal reference counting in a C++ wrapper class to handle the ownership of the object.

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

[rtcNewBuffer], [rtcReleaseBuffer]