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

# D3D12XboxSetProcessDebugFlags (XBOX One 系列)

> 設定將用於偵錯處理序的選項。

設定用於偵錯處理序的選項。

## 語法

```cpp theme={null}
HRESULT D3D12XboxSetProcessDebugFlags(  
         D3D12XBOX_PROCESS_DEBUG_FLAGS Flags  
)  
```

### 參數

*Flags*   \
類型：[D3D12XBOX\_PROCESS\_DEBUG\_FLAGS](/zh-TW/reference/graphics/d3d12_x/enums/d3d12xbox_process_debug_flags)

[D3D12XBOX\_PROCESS\_DEBUG\_FLAGS](/zh-TW/reference/graphics/d3d12_x/enums/d3d12xbox_process_debug_flags) 值的位元 OR 組合，指定用於偵錯處理序的選項。

### 傳回值

類型：HRESULT

傳回 S\_OK。

## 備註

旗標會在建立裝置時套用。若要擷取目前設定的旗標，請呼叫 [D3D12XboxGetProcessDebugFlags](/zh-TW/reference/graphics/d3d12_x/functions/d3d12xboxgetprocessdebugflags)。

## 需求

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

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

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

## 另請參閱

[d3d12\_x](/zh-TW/reference/graphics/d3d12_x/d3d12_x_members)


## Related topics

- [NDA topic directory - live Microsoft Learn links](/nda/nda-topic-directory.md)
- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [D3D12_FENCE_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_fence_flags_public.md)
- [D3D12_DRED_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_dred_flags_public.md)
- [D3D12_DSV_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_dsv_flags_public.md)
