---
title: commandQueue
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlcommandbuffer/commandqueue
---

# commandQueue

The command queue that creates the command buffer.

## Declaration

```swift
var commandQueue: any MTLCommandQueue { get }
```

## Discussion

Discussion Each command buffer can only submit its commands to the queue that creates it.

## See Also

### Identifying the command buffer

- [label](metal/mtlcommandbuffer/label.md)
- [device](metal/mtlcommandbuffer/device.md)
