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

# SetWatsonDumpEnablement

> 配置设备已移除扩展数据 (DRED) Watson 转储创建的启用设置。

配置设备已移除扩展数据 (DRED) 转储创建的启用设置，用于 [Windows 错误报告 (WER)](https://learn.microsoft.com/en-us/windows/desktop/wer/windows-error-reporting)，也称为 Watson。

## 语法

```cpp theme={null}
void SetWatsonDumpEnablement(
    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

- [xbWatson](/zh-CN/tools/tools-console/xbWatson/xbwatson.md)
- [SetPageFaultEnablement](/zh-CN/reference/graphics/d3d12/interfaces/id3d12deviceremovedextendeddatasettings/methods/id3d12deviceremovedextendeddatasettings_setpagefaultenablement_public.md)
- [D3D12_DRED_ENABLEMENT](/zh-CN/reference/graphics/d3d12/enums/d3d12_dred_enablement_public.md)
- [XBOX 上的 Address Sanitizer 支持](/zh-CN/tools/tools-console/visualstudio/address-sanitizer-support.md)
- [IXtfConsoleControlClient::GenerateStackDump](/zh-CN/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_generatestackdump.md)
