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

# rtcGetSceneDevice(3embree4)

### NAME

-

  ```
  rtcGetSceneDevice - returns the device the scene got created in
  ```

### SYNOPSIS

-

  ```
  #include <embree4/rtcore.h>
  RTCDevice rtcGetSceneDevice(RTCScene scene);
  ```

### DESCRIPTION

This function returns the device object the scene got created in. The returned handle own one additional reference to the device object, thus you should need to call `rtcReleaseDevice` when the returned handle is no longer required.

### EXIT STATUS

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

### SEE ALSO

\[rtcReleaseDevice\]
