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

> Recupera os dados de falha de página do DRED (Device Removed Extended Data).

Recupera os dados de falha de página do DRED (Device Removed Extended Data), incluindo a alocação correspondente para objetos de runtime ativos e excluídos recentemente. O objeto cujo endereço é passado recebe os dados.

## Sintaxe

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

### Parâmetros

*pOutput*\
Tipo: D3D12\_DRED\_PAGE\_FAULT\_OUTPUT \*

Um parâmetro de saída que recebe o endereço de um objeto [D3D12\_DRED\_PAGE\_FAULT\_OUTPUT](/pt-BR/reference/graphics/d3d12/structs/d3d12_dred_page_fault_output_public).

### Valor retornado

Tipo: HRESULT

Se a função for bem-sucedida, ela retornará **S\_OK**. Caso contrário, retornará um [código de erro](https://learn.microsoft.com/en-us/windows/desktop/com/com-error-codes-10) [HRESULT](https://learn.microsoft.com/en-us/windows/desktop/com/structure-of-com-error-codes). Retorna **DXGI\_ERROR\_NOT\_CURRENTLY\_AVAILABLE** se o dispositivo *não* estiver em um estado removido. Retorna **DXGI\_ERROR\_UNSUPPORTED** se o relatório de falhas de página não tiver sido habilitado com [ID3D12DeviceRemovedExtendedDataSettings::SetPageFaultEnablement](/pt-BR/reference/graphics/d3d12/interfaces/id3d12deviceremovedextendeddatasettings/methods/id3d12deviceremovedextendeddatasettings_setpagefaultenablement_public).

## Requisitos

**Cabeçalho:** d3d12\_xs.h ou d3d12\_x.h\
**Biblioteca:** d3d12\_xs.lib ou d3d12\_x.lib\
**Plataformas com suporte**: consoles XBOX Series e família XBOX One

## Consulte também

* [Interface ID3D12DeviceRemovedExtendedData](/pt-BR/reference/graphics/d3d12/interfaces/id3d12deviceremovedextendeddata/id3d12deviceremovedextendeddata_public)
* [Usar o DRED para diagnosticar falhas de GPU](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/use-dred)


## Related topics

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