> ## 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_FRAME_EVENT_FLAGS (XBOX One 系列)

> 指定事件等候選項。

指定事件等候選項。

## 語法

```cpp theme={null}
typedef enum D3D12XBOX_WAIT_FRAME_EVENT_FLAGS
{
    D3D12XBOX_WAIT_FRAME_EVENT_FLAG_NONE                     = 0x0,
    D3D12XBOX_WAIT_FRAME_EVENT_FLAG_WAIT_ALL                 = 0x1,
    D3D12XBOX_WAIT_FRAME_EVENT_FLAG_PROCESS_TOKEN_ON_TIMEOUT = 0x2,
} D3D12XBOX_WAIT_FRAME_EVENT_FLAGS;
```

## 常數

| 常數 | 描述 |
| - | - |
| D3D12XBOX\_WAIT\_FRAME\_EVENT\_FLAG\_NONE | 未指定任何選項。 |
| D3D12XBOX\_WAIT\_FRAME\_EVENT\_FLAG\_WAIT\_ALL | 指定引擎必須等候主要事件及輔助物件清單中包含的所有物件都變成已收到訊號。 |
| D3D12XBOX\_WAIT\_FRAME\_EVENT\_FLAG\_PROCESS\_TOKEN\_ON\_TIMEOUT | 一律處理框架的等候事件，即使在逾時期間結束前未滿足等候也一樣。若為起點事件，(1) 會為框架產生管線權杖，且 (2) 即使起點尚未正確收到訊號，也可以開始建構框架。若為其他事件，等候作業會包含在框架的統計資料報告中。 |

## 備註

[WaitFrameEventX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12device/methods/id3d12device_waitframeeventx) 使用此列舉。等候選項會指定當一個或所有指定物件處於已收到訊號狀態，或逾時間隔結束時，函式的回應方式。

**D3D12XBOX\_WAIT\_FRAME\_EVENT\_FLAG\_WAIT\_ALL** 相當於在呼叫 [WaitForMultipleObjects](https://learn.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-waitformultipleobjects) 時將 *bWaitAll* 設定為 **true**。

## 需求

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

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

## 另請參閱

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


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [D3D12_MULTIPLE_FENCE_WAIT_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_multiple_fence_wait_flags_public.md)
- [D3D12_RESIDENCY_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_residency_flags_public.md)
- [D3D12_FENCE_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_fence_flags_public.md)
- [D3D12_DRED_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_dred_flags_public.md)
