Enumeration

MTLCaptureDestination

The kinds of destinations for captured command data.

Declaration

enum MTLCaptureDestination : Int

Topics

Choosing a Destination

case developerTools

An option specifying that data should be captured to Xcode and that execution should stop in Xcode after the data is captured.

case gpuTraceDocument

An option specifying that the captured command data should be saved to a GPU trace document.

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.

Beta
let MTLCaptureErrorDomain: String

The error domain for capture errors.

Beta
enum MTLCaptureError

Errors returned by capture sessions.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software