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

# rtcGetBufferData(3embree4)

### NAME

-

  ```
  rtcGetBufferData - gets a pointer to the buffer data
  ```

### SYNOPSIS

-

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

### DESCRIPTION

The `rtcGetBufferData` function returns a pointer to the buffer data of the specified buffer object (`buffer` argument). If the buffer was created using `rtcNewBufferHostDevice` and the SYCL device has no host unified memory, this pointer is only valid on the host. To get a device pointer in this case, use `rtcGetBufferDataDevice`.

### EXIT STATUS

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

### SEE ALSO

\[rtcGetBufferDataDevice\], \[rtcNewBuffer\], \[rtcNewBufferHostDevice\]
