Enumeration

MTLCaptureError

Errors returned by capture sessions.

Declaration

enum MTLCaptureError : Int

Topics

Errors

case alreadyCapturing

A capture session is already in progress.

case invalidDescriptor

The descriptor contained invalid parameters.

case notSupported

The requested capture options are not available.

See Also

Capturing a Frame Programmatically

Capturing GPU Command Data Programmatically

Invoke Metal’s frame capture from your app under the specific runtime conditions you choose.

Capturing Metal Commands Programmatically

Invoke Metal’s frame capture from your app, then save the resulting GPU trace to a file or view it in Xcode.

Creating a Custom Capture Scope

Use custom capture scopes to control which commands get captured.

class MTLCaptureManager

An object you use to capture Metal command data in your app.

protocol MTLCaptureScope

An object that defines custom boundaries for a GPU frame capture.

class MTLCaptureDescriptor

A configuration for a Metal capture session.

enum MTLCaptureDestination

The kinds of destinations for captured command data.

let MTLCaptureErrorDomain: String

The error domain for capture errors.