---
title: MTLCommandBufferEncoderInfo
framework: metal
role: symbol
role_heading: Protocol
path: metal/mtlcommandbufferencoderinfo
---

# MTLCommandBufferEncoderInfo

A container that provides additional information about a runtime failure a GPU encounters as it runs the commands in a command buffer.

## Declaration

```swift
protocol MTLCommandBufferEncoderInfo : NSObjectProtocol
```

## Overview

Overview To create a command buffer that generates additional information (when a GPU encounters an error running it), configure an MTLCommandBufferDescriptor instance’s errorOptions property. For information about how to retrieve the information from an MTLCommandBuffer instance, see its error property.

## Topics

### Inspecting execution information

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

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Getting error details

- [error](metal/mtlcommandbuffer/error.md)
- [errorOptions](metal/mtlcommandbuffer/erroroptions.md)
- [MTLCommandBufferEncoderInfoErrorKey](metal/mtlcommandbufferencoderinfoerrorkey.md)
