---
title: "startCapture(commandQueue:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlcapturemanager/startcapture(commandqueue:)"
---

# startCapture(commandQueue:)

Starts capturing any of your app’s Metal commands that are executed by the command queue.

## Declaration

```swift
func startCapture(commandQueue: any MTLCommandQueue)
```

## Parameters

- `commandQueue`: The command queue whose commands you want to capture.

## See Also

### Starting capture

- [startCapture(with:)](metal/mtlcapturemanager/startcapture(with:).md)
- [startCapture(device:)](metal/mtlcapturemanager/startcapture(device:).md)
- [startCapture(scope:)](metal/mtlcapturemanager/startcapture(scope:).md)
