<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLCommandBufferDescriptor/errorOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLCommandBufferDescriptor(py)errorOptions"
  },
  "title" : "errorOptions"
}
-->

# errorOptions

The reporting configuration that indicates which information the GPU driver stores in a command buffer’s error property.

```
var errorOptions: MTLCommandBufferErrorOption { get set }
```

## Discussion

By default, a GPU driver doesn’t report additional error information.

To create a command buffer that saves additional GPU runtime error information, add the [`encoderExecutionStatus`](/documentation/Metal/MTLCommandBufferErrorOption/encoderExecutionStatus) option to this property. If the GPU encounters an error as it runs the command buffer, you can retrieve the additional information from the command buffer’s [`error`](/documentation/Metal/MTLCommandBuffer/error) property.

> Note:
> Enabling the ``doc://com.apple.metal/documentation/Metal/MTLCommandBufferErrorOption/encoderExecutionStatus`` option can slightly reduce your app’s CPU runtime performance.

---

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)