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

# GetPageFaultAllocationOutput

> 擷取裝置移除擴充資料 (DRED) 分頁錯誤資料。

擷取裝置移除擴充資料 (DRED) 分頁錯誤資料，包括存留中與最近刪除之執行階段物件的相符配置。傳遞其位址的物件會接收資料。

## 語法

```cpp theme={null}
HRESULT GetPageFaultAllocationOutput(
    D3D12_DRED_PAGE_FAULT_OUTPUT  pOutput
)
```

### 參數

*pOutput*\
類型：D3D12\_DRED\_PAGE\_FAULT\_OUTPUT \*

接受 [D3D12\_DRED\_PAGE\_FAULT\_OUTPUT](/zh-TW/reference/graphics/d3d12/structs/d3d12_dred_page_fault_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::SetPageFaultEnablement](/zh-TW/reference/graphics/d3d12/interfaces/id3d12deviceremovedextendeddatasettings/methods/id3d12deviceremovedextendeddatasettings_setpagefaultenablement_public) 啟用分頁錯誤回報，則傳回 **DXGI\_ERROR\_UNSUPPORTED**。

## 需求

**標頭:** d3d12\_xs.h 或 d3d12\_x.h\
**程式庫:** d3d12\_xs.lib 或 d3d12\_x.lib\
**支援的平台**: XBOX Series 主機和 XBOX One 系列

## 另請參閱

* [ID3D12DeviceRemovedExtendedData 介面](/zh-TW/reference/graphics/d3d12/interfaces/id3d12deviceremovedextendeddata/id3d12deviceremovedextendeddata_public)
* [使用 DRED 診斷 GPU 錯誤](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/use-dred)


## Related topics

- [D3D12_DRED_PAGE_FAULT_OUTPUT](/zh-TW/reference/graphics/d3d12/structs/d3d12_dred_page_fault_output_public.md)
- [SetPageFaultEnablement](/zh-TW/reference/graphics/d3d12/interfaces/id3d12deviceremovedextendeddatasettings/methods/id3d12deviceremovedextendeddatasettings_setpagefaultenablement_public.md)
- [D3D12_DEVICE_REMOVED_EXTENDED_DATA1](/zh-TW/reference/graphics/d3d12/structs/d3d12_device_removed_extended_data1_public.md)
- [GetResourceAllocationInfo](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getresourceallocationinfo_public.md)
- [GetResourceAllocationInfo1 (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_getresourceallocationinfo1_public.md)
