Enumeration

MTLCommandBufferStatus

The stages in the lifetime of the command buffer.

Declaration

typedef enum MTLCommandBufferStatus : NSUInteger {
    ...
} MTLCommandBufferStatus;

Topics

Buffer Status

MTLCommandBufferStatusNotEnqueued

The command buffer is not enqueued yet.

MTLCommandBufferStatusEnqueued

The command buffer is enqueued.

MTLCommandBufferStatusCommitted

The command buffer is committed for execution.

MTLCommandBufferStatusScheduled

The command buffer is scheduled.

MTLCommandBufferStatusCompleted

The command buffer completed execution successfully.

MTLCommandBufferStatusError

Execution of the command buffer was aborted due to an error during execution.

See Also

Obtaining Status and Timestamps

status

The current stage in the lifetime of the command buffer.

Required.

error

The error that occurred when the command buffer was executed.

Required.

MTLCommandBufferErrorDomain

The error domain used by MTLCommandBuffer when returning command buffer execution errors.

MTLCommandBufferError

Error codes that indicate why the execution of the command buffer has failed. The error property contains the error code.

kernelStartTime

The host time, in seconds, when the CPU began scheduling this command buffer for execution.

Required.

kernelEndTime

The host time, in seconds, when the CPU finished scheduling this command buffer for execution.

Required.

GPUStartTime

The host time, in seconds, when the GPU began executing this command buffer.

Required.

GPUEndTime

The host time, in seconds, when the GPU finished executing this command buffer.

Required.