---
title: MTLCommandEncoderErrorState
framework: metal
role: symbol
role_heading: Enumeration
path: metal/mtlcommandencodererrorstate
---

# MTLCommandEncoderErrorState

Possible error conditions for the command encoder’s commands.

## Declaration

```swift
enum MTLCommandEncoderErrorState
```

## Topics

### Getting the error state

- [MTLCommandEncoderErrorState.completed](metal/mtlcommandencodererrorstate/completed.md)
- [MTLCommandEncoderErrorState.pending](metal/mtlcommandencodererrorstate/pending.md)
- [MTLCommandEncoderErrorState.affected](metal/mtlcommandencodererrorstate/affected.md)
- [MTLCommandEncoderErrorState.faulted](metal/mtlcommandencodererrorstate/faulted.md)
- [MTLCommandEncoderErrorState.unknown](metal/mtlcommandencodererrorstate/unknown.md)

### Initializers

- [init(rawValue:)](metal/mtlcommandencodererrorstate/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Inspecting execution information

- [label](metal/mtlcommandbufferencoderinfo/label.md)
- [debugSignposts](metal/mtlcommandbufferencoderinfo/debugsignposts.md)
- [errorState](metal/mtlcommandbufferencoderinfo/errorstate.md)
