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

# MTLIOStatus

Represents the state of an input/output command buffer.

```
enum MTLIOStatus
```

## Topics

### I/O command queue states

[`MTLIOStatusPending`](/documentation/Metal/MTLIOStatus/pending)

Indicates the GPU hasn’t finished executing the input/output command buffer.

[`MTLIOStatusComplete`](/documentation/Metal/MTLIOStatus/complete)

Indicates the GPU has successfully finished executing the input/output command buffer.

[`MTLIOStatusCancelled`](/documentation/Metal/MTLIOStatus/cancelled)

Indicates the GPU has successfully abandoned the input/output command buffer.

[`MTLIOStatusError`](/documentation/Metal/MTLIOStatus/error)

Indicates the GPU experienced a problem with the input/output command buffer.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)