> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetAutoBreadcrumbsOutput

> 在设备移除后检索设备已移除扩展数据 (DRED) 自动痕迹面包屑输出。

在设备移除后检索设备已移除扩展数据 (DRED) 自动痕迹面包屑输出。

## 语法

```cpp theme={null}
HRESULT GetAutoBreadcrumbsOutput(
    D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT  pOutput
)
```

### 参数

*pOutput*\
类型：D3D12\_DRED\_AUTO\_BREADCRUMBS\_OUTPUT \*

一个输出参数，接受 [D3D12\_DRED\_AUTO\_BREADCRUMBS\_OUTPUT](/reference/graphics/d3d12/structs/d3d12_dred_auto_breadcrumbs_output_public) 对象的地址。其地址被传递的对象接收数据。

### 返回值

类型：HRESULT

如果函数成功，则返回 **S\_OK**。否则，返回 [HRESULT](https://learn.microsoft.com/en-us/windows/desktop/com/structure-of-com-error-codes) [错误代码](https://learn.microsoft.com/en-us/windows/desktop/com/com-error-codes-10)。如果设备*不*处于已移除状态，则返回 **DXGI\_ERROR\_NOT\_CURRENTLY\_AVAILABLE**。如果尚未使用 [ID3D12DeviceRemovedExtendedDataSettings::SetAutoBreadcrumbsEnablement](/reference/graphics/d3d12/interfaces/id3d12deviceremovedextendeddatasettings/methods/id3d12deviceremovedextendeddatasettings_setautobreadcrumbsenablement_public) 启用自动痕迹面包屑，则返回 **DXGI\_ERROR\_UNSUPPORTED**。

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h\
**库：** d3d12\_xs.lib 或 d3d12\_x.lib\
**支持的平台**：XBOX Series 主机和 XBOX One 系列

## 另请参阅

* [ID3D12DeviceRemovedExtendedData 接口](/reference/graphics/d3d12/interfaces/id3d12deviceremovedextendeddata/id3d12deviceremovedextendeddata_public)
* [使用 DRED 诊断 GPU 故障](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/use-dred)


## Related topics

- [D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT](/zh-CN/reference/graphics/d3d12/structs/d3d12_dred_auto_breadcrumbs_output_public.md)
- [D3D12_AUTO_BREADCRUMB_OP](/zh-CN/reference/graphics/d3d12/enums/d3d12_auto_breadcrumb_op_public.md)
- [D3D12_DEVICE_REMOVED_EXTENDED_DATA1](/zh-CN/reference/graphics/d3d12/structs/d3d12_device_removed_extended_data1_public.md)
- [D3D12_AUTO_BREADCRUMB_NODE](/zh-CN/reference/graphics/d3d12/structs/d3d12_auto_breadcrumb_node_public.md)
- [D3D12_DEVICE_REMOVED_EXTENDED_DATA](/zh-CN/reference/graphics/d3d12/structs/d3d12_device_removed_extended_data_public.md)
