The object whose contents should be captured.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
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.