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

# ReportGpuHangX (XBOX One 系列)

> 回報 GPU 中的停止回應。

回報 GPU 中的停止回應。

此 API 在 XBOX Series X|S 上已被取代。請改用 [ReportGpuHaltX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12Device11/methods/id3d12device11_reportgpuhaltx)，它在 GPU 停止後提供更多可用的選項。

## 語法

```cpp theme={null}
void ReportGpuHangX(  
         D3D12XBOX_REPORT_GPU_HANG_FLAGS Flags  
)  
```

### 參數

*Flags*   \_In\_\
類型：[D3D12XBOX\_REPORT\_GPU\_HANG\_FLAGS](/zh-TW/reference/graphics/d3d12_x/enums/d3d12xbox_report_gpu_hang_flags)

用來回報 GPU 停止回應的選項，以 **D3D12XBOX\_REPORT\_GPU\_HANG\_FLAGS** 列舉常數的位元 OR 組合表示。

### 傳回值

類型：void

## 需求

**標頭：** d3d12\_x.h

**程式庫：** d3d12\_x.lib

**支援的平台：** XBOX One 系列

## 另請參閱

[ID3D12Device](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12device/id3d12device)

[ReportGpuHaltX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12Device11/methods/id3d12device11_reportgpuhaltx)

[SetHangCallbacksX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12device/methods/id3d12device_sethangcallbacksx)


## Related topics

- [XBOX Hang Investigation Tool (XHIT)](/zh-TW/tools/tools-console/xhit/index.md)
- [D3D12_GPU_DESCRIPTOR_HANDLE](/zh-TW/reference/graphics/d3d12/structs/d3d12_gpu_descriptor_handle_public.md)
- [D3D12_GPU_VIRTUAL_ADDRESS_RANGE](/zh-TW/reference/graphics/d3d12/structs/d3d12_gpu_virtual_address_range_public.md)
- [D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE](/zh-TW/reference/graphics/d3d12/structs/d3d12_gpu_virtual_address_and_stride_public.md)
- [D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE](/zh-TW/reference/graphics/d3d12/structs/d3d12_gpu_virtual_address_range_and_stride_public.md)
