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

# startCapture(with:)

Starts capturing any of your app’s Metal commands, with the capture session defined by a descriptor object.

## Declaration

```swift
func startCapture(with descriptor: MTLCaptureDescriptor) throws
```

## Parameters

- `descriptor`: A description of the capture session to create.

## See Also

### Starting capture

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