Instance Method

startCapture(with:)

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

Declaration

func startCapture(with descriptor: MTLCaptureDescriptor) throws

Parameters

descriptor

A description of the capture session to create.

Return Value

A Boolean value indicating whether the capture session was successfully started.

See Also

Starting Capture

func startCapture(device: MTLDevice)

Starts capturing any of your app’s Metal commands that are executed by the device object.

Deprecated
func startCapture(commandQueue: MTLCommandQueue)

Starts capturing any of your app’s Metal commands that are executed by the command queue.

Deprecated
func startCapture(scope: MTLCaptureScope)

Starts capturing any of your app’s Metal commands that are in the specified capture scope.

Deprecated