Instance Method

makeCaptureScope(device:)

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

Declaration

func makeCaptureScope(device: MTLDevice) -> MTLCaptureScope

Parameters

device

The device object whose commands you want to capture.

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

func makeCaptureScope(commandQueue: MTLCommandQueue) -> MTLCaptureScope

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

var defaultCaptureScope: MTLCaptureScope?

The capture scope to use when a capture is initiated in Xcode.