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

# makeCaptureScope(device:)

Creates a capture scope for commands submitted to a specific device object.

## Declaration

```swift
func makeCaptureScope(device: any MTLDevice) -> any MTLCaptureScope
```

## Parameters

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

## Discussion

Discussion The capture scope captures commands in command buffers created on any command queues created by the device object.

## See Also

### Creating a capture scope

- [makeCaptureScope(commandQueue:)](metal/mtlcapturemanager/makecapturescope(commandqueue:)-1rozd.md)
- [defaultCaptureScope](metal/mtlcapturemanager/defaultcapturescope.md)
