> ## 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.

# SetAutoBreadcrumbsEnablement

> 配置设备已移除扩展数据 (DRED) 自动痕迹面包屑的启用设置。

配置设备已移除扩展数据 (DRED) 自动痕迹面包屑的启用设置。

## 语法

```cpp theme={null}
void SetAutoBreadcrumbsEnablement(
    D3D12_DRED_ENABLEMENT Enablement
)
```

### 参数

*Enablement*\
类型：D3D12\_DRED\_ENABLEMENT

一个 [D3D12\_DRED\_ENABLEMENT](/reference/graphics/d3d12/enums/d3d12_dred_enablement_public) 值。默认值为 **D3D12\_DRED\_ENABLEMENT\_SYSTEM\_CONTROLLED**。

### 返回值

类型：void

无。

## 要求

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

## 另请参阅

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


## Related topics

- [GetAutoBreadcrumbsOutput](/zh-CN/reference/graphics/d3d12/interfaces/id3d12deviceremovedextendeddata/methods/id3d12deviceremovedextendeddata_getautobreadcrumbsoutput_public.md)
- [NDA 主题目录 - Microsoft Learn 在线链接](/zh-CN/nda/nda-topic-directory.md)
- [D3D12_AUTO_BREADCRUMB_OP](/zh-CN/reference/graphics/d3d12/enums/d3d12_auto_breadcrumb_op_public.md)
- [D3D12_AUTO_BREADCRUMB_NODE](/zh-CN/reference/graphics/d3d12/structs/d3d12_auto_breadcrumb_node_public.md)
- [D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT](/zh-CN/reference/graphics/d3d12/structs/d3d12_dred_auto_breadcrumbs_output_public.md)
