---
name: "rtcReleaseBuffer"
section: "3embree4"
platform: "linux"
package: "embree"
version: "4.4.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/rtcReleaseBuffer/3embree4"
---

# rtcReleaseBuffer(3embree4)

### NAME

-

  ```
  rtcReleaseBuffer - decrements the buffer reference count
  ```

### SYNOPSIS

-

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

### DESCRIPTION

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.

### EXIT STATUS

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

### SEE ALSO

\[rtcNewBuffer\], \[rtcRetainBuffer\]
