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

rtcRetainBVH - increments the BVH reference count

#include <embree4/rtcore.h>
void rtcRetainBVH(RTCBVH bvh);

BVH objects are reference counted. The rtcRetainBVH function increments the reference count of the passed BVH object (bvh argument). This function together with rtcReleaseBVH 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.

[rtcNewBVH], [rtcReleaseBVH]