---
title: "makeCaptureScope(commandQueue:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlcapturemanager/makecapturescope(commandqueue:)-1rozd"
---

# makeCaptureScope(commandQueue:)

Creates a capture scope for commands submitted to a specific command queue.

## Declaration

```swift
func makeCaptureScope(commandQueue: any MTLCommandQueue) -> any MTLCaptureScope
```

## Parameters

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

## See Also

### Creating a capture scope

- [makeCaptureScope(device:)](metal/mtlcapturemanager/makecapturescope(device:).md)
- [defaultCaptureScope](metal/mtlcapturemanager/defaultcapturescope.md)
