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

# SetProcessDebugFlags (XBOX One 系列)

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

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

## 語法

```cpp theme={null}
public:
HRESULT SetProcessDebugFlags(
         D3D12XBOX_PROCESS_DEBUG_FLAGS Flags
)  
```

### 參數

*Flags*\
類型：D3D12XBOX\_PROCESS\_DEBUG\_FLAGS

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

### 傳回值

類型：HRESULT

其中一個 [Direct3D 12 傳回碼](https://msdn.microsoft.com/library/windows/desktop/dn706075\(v=vs.85\).aspx)。

## 備註

使用 **SetProcessDebugFlags** 可選取支援 PIX 分析，且執行效能更接近零售版本的檢測執行階段。

若要調整驗證層級，請呼叫 [SetDebugFlagsX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12device/methods/id3d12device_setdebugflagsx)。

當您呼叫 [D3D12XboxCreateDevice](/zh-TW/reference/graphics/d3d12_x/functions/d3d12xboxcreatedevice) 並設定所傳遞之 [D3D12XBOX\_CREATE\_DEVICE\_PARAMETERS](/zh-TW/reference/graphics/d3d12_x/structs/d3d12xbox_create_device_parameters) 結構的 *ProcessDebugFlags* 成員時，**SetProcessDebugFlags** 所設定的旗標會被覆寫。

## 需求

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

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

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

## 另請參閱

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


## Related topics

- [IXtfApplicationClient::DebugEnable](/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/debugenable-ixtfapplicationclient-xtfapplication-xbox-microsoft-m.md)
- [NDA topic directory - live Microsoft Learn links](/nda/nda-topic-directory.md)
- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [XTaskQueueSetCurrentProcessTaskQueue](/zh-CN/reference/system/xtaskqueue/functions/xtaskqueuesetcurrentprocesstaskqueue.md)
- [IXtfDebugMonitorClient::Stop Method](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/stop-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m.md)
