---
title: MTLCommandBufferErrorOption
framework: metal
role: symbol
role_heading: Structure
path: metal/mtlcommandbuffererroroption
---

# MTLCommandBufferErrorOption

Options for reporting errors from a command buffer.

## Declaration

```swift
struct MTLCommandBufferErrorOption
```

## Topics

### Buffer error options

- [encoderExecutionStatus](metal/mtlcommandbuffererroroption/encoderexecutionstatus.md)

### Protocol support

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

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Configuring the command buffer

- [logState](metal/mtlcommandbufferdescriptor/logstate.md)
- [retainedReferences](metal/mtlcommandbufferdescriptor/retainedreferences.md)
- [errorOptions](metal/mtlcommandbufferdescriptor/erroroptions.md)
