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

# D3D12_MULTIPLE_FENCE_WAIT_FLAGS

> 為多個柵欄指定多個等候旗標。

為多個柵欄指定多個等候旗標。

## 語法

```cpp theme={null}
typedef enum D3D12_MULTIPLE_FENCE_WAIT_FLAGS
{
    D3D12_MULTIPLE_FENCE_WAIT_FLAG_NONE = 0,
    D3D12_MULTIPLE_FENCE_WAIT_FLAG_ANY = 1,
    D3D12_MULTIPLE_FENCE_WAIT_FLAG_ALL = 0
} D3D12_MULTIPLE_FENCE_WAIT_FLAGS
```

## 常數

| 常數 | 描述 |
| - | - |
| D3D12\_MULTIPLE\_FENCE\_WAIT\_FLAG\_NONE | 未傳遞任何旗標。這表示使用預設行為，也就是在發出事件訊號前等候所有柵欄。 |
| D3D12\_MULTIPLE\_FENCE\_WAIT\_FLAG\_ANY | 修改行為，表示只要任何一個柵欄值已由其對應的柵欄達到，就應發出事件訊號。 |
| D3D12\_MULTIPLE\_FENCE\_WAIT\_FLAG\_ALL | **D3D12\_MULTIPLE\_FENCE\_WAIT\_FLAG\_NONE** 的別名，表示使用預設行為並等候所有柵欄。 |

## 備註

此列舉由 [SetEventOnMultipleFenceCompletion](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_seteventonmultiplefencecompletion_public) 方法使用。

## 需求

**標頭:** d3d12\_xs.h 或 d3d12\_x.h\
**程式庫:** d3d12\_xs.lib 或 d3d12\_x.lib\
**支援的平台**: XBOX Series 主機與 XBOX One 系列

## 另請參閱

[核心列舉](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-enumerations)

[根簽章 1.1 版](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/root-signature-version-1-1)


## Related topics

- [SetEventOnMultipleFenceCompletion](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_seteventonmultiplefencecompletion_public.md)
- [D3D12_FENCE_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_fence_flags_public.md)
- [D3D12_DSV_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_dsv_flags_public.md)
- [D3D12_CLEAR_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_clear_flags_public.md)
- [D3D12_DRED_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_dred_flags_public.md)
