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

# device

The GPU device that creates the command queue.

## Declaration

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

## Discussion

Discussion The command queue can submit work only to the GPU the MTLDevice instance represents.

## See Also

### Identifying the command queue

- [label](metal/mtlcommandqueue/label.md)
