---
name: "rtcGetSceneDevice"
section: "3"
platform: "linux"
package: "libembree-dev"
version: "4.3.3+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rtcGetSceneDevice"
---

# rtcGetSceneDevice(3)

### 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\]
