---
title: device
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/postprocesseffectcontext/device
---

# device

The Metal device where the scene renders.

## Declaration

```swift
var device: any MTLDevice
```
