The object whose contents should be captured.
- iOS 13.0+Beta
- macOS 10.15+Beta
- Mac Catalyst 13.0+Beta
- tvOS 13.0+Beta
The default value is
nil, but you must set an object before using this descriptor to start a capture session.
The behavior of the capture session depends on the kind of object being captured:
MTLDeviceobject to capture commands in command buffers created on any command queues created by the device object.
MTLCommandobject to capture commands in command buffers created by a specific command queue.
MTLCaptureobject to indirectly define which commands are captured.