MTLCommandBufferDescriptor
A configuration that customizes the behavior for a new command buffer.
Declaration
class MTLCommandBufferDescriptorOverview
Create a command buffer with a custom configuration by creating an MTLCommandBufferDescriptor instance and passing it to an MTLCommandQueue instance’s makeCommandBuffer(descriptor:) method. You can configure whether the command buffer retains references to resources that its commands refer to with the retainedReferences property. The command buffer can save extra error information, which is useful during development, by setting its errorOptions property to encoderExecutionStatus.