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

# D3D12XBOX_WAIT_FLAGS (XBOX Series 主機)

> D3D12XBOX_WAIT_FLAGS (XBOX Series 主機) — 用於選取執行等候之引擎的旗標。適用於 XBOX 開發的 Direct3D 12 圖形 API 參考。

用於選取執行等候之引擎的旗標。

## 語法

```cpp theme={null}
typedef enum D3D12XBOX_WAIT_FLAGS  : UINT  
{  
    D3D12XBOX_WAIT_FLAG_NONE = 0x0,  
    D3D12XBOX_WAIT_FLAG_SELECT_ENGINE_PFP = 0x1,  
    D3D12XBOX_WAIT_FLAG_SELECT_ENGINE_CE = 0x2,
} D3D12XBOX_WAIT_FLAGS  
```

## 常數

| 常數 | 描述 |
| - | - |
| D3D12XBOX\_WAIT\_FLAG\_NONE | 無旗標。使用微引擎執行等候。 |
| D3D12XBOX\_WAIT\_FLAG\_SELECT\_ENGINE\_PFP | 使用預先擷取剖析器引擎執行等候。 |
| D3D12XBOX\_WAIT\_FLAG\_SELECT\_ENGINE\_CE | 使用常數引擎執行等候 |

## 備註

下列方法會使用此列舉:

* [Wait32BitValueX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_wait32bitvaluex)
* [ID3D12GraphicsCommandList::Wait64BitValueX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_wait64bitvaluex)
* [ID3D12XboxDmaCommandList::Wait64BitValueX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12xboxdmacommandlist/methods/id3d12xboxdmacommandlist_wait64bitvaluex)

視使用案例而定，選取正確的命令處理器引擎來等候可能很重要。例如，ExecuteIndirect 會在 CE 和 PFP 上同時處理，在此情況下，如果特定的 Execute Indirect 需要資料相依性，則 CE 和 PFP 都必須等候相依性滿足後才能繼續。

## 需求

**標頭:** d3d12\_xs.h\
**支援的平台**: XBOX Series 主機

## 另請參閱

[d3d12\_xs](/zh-TW/reference/graphics/d3d12_xs/d3d12_xs_members)


## Related topics

- [D3D12_EXPORT_FLAGS (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_export_flags_public.md)
- [D3D12_RAYTRACING_INSTANCE_FLAGS (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_raytracing_instance_flags_public.md)
- [D3D12_COMMAND_LIST_FLAGS (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_command_list_flags_public.md)
- [D3D12_RAYTRACING_GEOMETRY_FLAGS (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_raytracing_geometry_flags_public.md)
- [D3D12_COMMAND_LIST_FLAGS (consolas XBOX Series)](/es/reference/graphics/d3d12/enums/d3d12_command_list_flags_public.md)
