---
title: device
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlcapturescope/device
---

# device

The device object from which you created the capture scope.

## Declaration

```swift
var device: any MTLDevice { get }
```

## See Also

### Identifying the capture scope

- [label](metal/mtlcapturescope/label.md)
- [commandQueue](metal/mtlcapturescope/commandqueue.md)
