Instance Property

defaultCaptureScope

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

Declaration

var defaultCaptureScope: MTLCaptureScope? { get set }

Discussion

Use this property to specify a default capture scope for Xcode to use when the user presses the capture button. You can still long-press the button to select a different capture scope.

The default value is nil. When the value is nil, the capture scope is defined by drawable presentation boundaries; such as those created by calls to present(_:) or present().

See Also

Creating a Capture Scope

func makeCaptureScope(device: MTLDevice) -> MTLCaptureScope

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

func makeCaptureScope(commandQueue: MTLCommandQueue) -> MTLCaptureScope

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