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

# startCapture(device:)

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

## Declaration

```swift
func startCapture(device: any MTLDevice)
```

## Parameters

- `device`: The device object whose commands you want to capture.

## See Also

### Starting capture

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