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

# rtcGetGeometryBufferData(3embree4)

### NAME

-

  ```
  rtcGetGeometryBufferData - gets pointer to
    the first buffer view element
  ```

### SYNOPSIS

-

  ```
  #include <embree4/rtcore.h>
  void* rtcGetGeometryBufferData(
    RTCGeometry geometry,
    enum RTCBufferType type,
    unsigned int slot
  );
  ```

### DESCRIPTION

The `rtcGetGeometryBufferData` function returns a pointer to the first element of the buffer view attached to the specified buffer type and slot (`type` and `slot` argument) of the geometry (`geometry` argument).

If the device associated with `geometry` is a SYCL device, the returned pointer only accessible on the host. The function `rtcGetGeometryBufferDataDevice` can be used to get a pointer accessible on the SYCL device. #### EXIT STATUS

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

### SEE ALSO

\[rtcGetGeometryBufferDataDevice\], \[rtcSetGeometryBuffer\], \[rtcSetSharedGeometryBuffer\], \[rtcSetNewGeometryBuffer\]
