MTLCommandBufferError

Error codes that indicate why a command buffer is unable to finish its execution.

Values

ValueMeaning
None0

An error code that represents the absence of any problems.

Timeout2

An error code that indicates the system interrupted and terminated the command buffer because it took more time to execute than the system allows.

PageFault3

An error code that indicates the command buffer generated a page fault the GPU can’t service.

NotPermitted7

An error code that indicates a process doesn’t have access to a GPU device.

OutOfMemory8

An error code that indicates the GPU device doesn’t have sufficient memory to execute a command buffer.

InvalidResource9

An error code that indicates the command buffer has an invalid reference to resource.

Memoryless10

An error code that indicates the GPU ran out of one or more of its internal resources that support memoryless render pass attachments.

DeviceRemoved11

An error code that indicates a person physically removed the GPU device before the command buffer finished running.

StackOverflow12

An error code that indicates the GPU terminated the command buffer because a kernel function of tile shader used too many stack frames.

AccessRevoked4

An error code that indicates the system has revoked the Metal device’s access because it’s responsible for too many timeouts or hangs.

ErrorInternal1

An error code that indicates the Metal framework has an internal problem.

Meta