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

# device

The device instance that creates the pipeline state.

## Declaration

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

## Discussion

Discussion You can only use the pipeline state object with this device object.

## See Also

### Identifying a pipeline state

- [label](metal/mtlrenderpipelinestate/label.md)
- [gpuResourceID](metal/mtlrenderpipelinestate/gpuresourceid.md)
