<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLCommandBufferStatus",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLCommandBufferStatus"
  },
  "title" : "MTLCommandBufferStatus"
}
-->

# MTLCommandBufferStatus

The discrete states for a command buffer that represent its life cycle stages.

```
enum MTLCommandBufferStatus
```

## Topics

### Command buffer states

[`MTLCommandBufferStatus.notEnqueued`](/documentation/Metal/MTLCommandBufferStatus/notEnqueued)

A command buffer’s initial state, which indicates its command queue isn’t reserving a place for it.

[`MTLCommandBufferStatus.enqueued`](/documentation/Metal/MTLCommandBufferStatus/enqueued)

A command buffer’s second state, which indicates its command queue is reserving a place for it.

[`MTLCommandBufferStatus.committed`](/documentation/Metal/MTLCommandBufferStatus/committed)

A command buffer’s third state, which indicates the command queue is preparing to schedule the command buffer by resolving its dependencies.

[`MTLCommandBufferStatus.scheduled`](/documentation/Metal/MTLCommandBufferStatus/scheduled)

A command buffer’s fourth state, which indicates the command buffer has its resources ready and is waiting for the GPU to run its commands.

[`MTLCommandBufferStatus.completed`](/documentation/Metal/MTLCommandBufferStatus/completed)

A command buffer’s successful, final state, which indicates the GPU finished running the command buffer’s commands without any problems.

[`MTLCommandBufferStatus.error`](/documentation/Metal/MTLCommandBufferStatus/error)

A command buffer’s unsuccessful, final state, which indicates the GPU stopped running the buffer’s commands because of a runtime issue.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)