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

# SetPageFaultEnablement

> 配置设备已移除扩展数据 (DRED) 页面错误报告的启用设置。

配置设备已移除扩展数据 (DRED) 页面错误报告的启用设置。

## 语法

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

- [GetPageFaultAllocationOutput](/zh-CN/reference/graphics/d3d12/interfaces/id3d12deviceremovedextendeddata/methods/id3d12deviceremovedextendeddata_getpagefaultallocationoutput_public.md)
- [D3D12_DRED_PAGE_FAULT_OUTPUT](/zh-CN/reference/graphics/d3d12/structs/d3d12_dred_page_fault_output_public.md)
- [SetWatsonDumpEnablement](/zh-CN/reference/graphics/d3d12/interfaces/id3d12deviceremovedextendeddatasettings/methods/id3d12deviceremovedextendeddatasettings_setwatsondumpenablement_public.md)
- [D3D12_DRED_ENABLEMENT](/zh-CN/reference/graphics/d3d12/enums/d3d12_dred_enablement_public.md)
- [D3D12_DEVICE_REMOVED_EXTENDED_DATA1](/zh-CN/reference/graphics/d3d12/structs/d3d12_device_removed_extended_data1_public.md)
