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

# commandQueue

The command queue that this capture scope uses to limit which commands are recorded.

## Declaration

```swift
var commandQueue: (any MTLCommandQueue)? { get }
```

## Discussion

Discussion This value is only available if you created the capture scope by calling the makeCaptureScope(commandQueue:) method. Otherwise, the value is nil.

## See Also

### Identifying the capture scope

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