---
title: MTLCommandEncoderErrorState.faulted
framework: metal
role: symbol
role_heading: Case
path: metal/mtlcommandencodererrorstate/faulted
---

# MTLCommandEncoderErrorState.faulted

An error state that indicates the commands in the command buffer are the cause of an error.

## Declaration

```swift
case faulted
```

## See Also

### Getting the error state

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