Instance Method

startCaptureWithDescriptor:error:

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

Declaration

- (BOOL)startCaptureWithDescriptor:(MTLCaptureDescriptor *)descriptor error:(NSError * _Nullable *)error;

Parameters

descriptor

A description of the capture session to create.

error

On return, if an error occurred, this parameter is updated to point to an error object describing what happened.

Return Value

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

See Also

Starting Capture

- startCaptureWithDevice:

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

Deprecated
- startCaptureWithCommandQueue:

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

Deprecated
- startCaptureWithScope:

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

Deprecated