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

> 指定要套用的述詞運算。

指定要套用的述詞運算。

## 語法

```cpp theme={null}
typedef enum D3D12_PREDICATION_OP
{
    D3D12_PREDICATION_OP_EQUAL_ZERO = 0,
    D3D12_PREDICATION_OP_NOT_EQUAL_ZERO = 1
} D3D12_PREDICATION_OP
```

## 常數

| 常數 | 描述 |
| - | - |
| D3D12\_PREDICATION\_OP\_EQUAL\_ZERO | 如果全部 64 位元皆為零，則啟用述詞。 |
| D3D12\_PREDICATION\_OP\_NOT\_EQUAL\_ZERO | 如果 64 位元中至少有一個不為零，則啟用述詞。 |

## 備註

此列舉由 [SetPredication](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setpredication_public) 使用。

述詞與查詢是分離的。
述詞可以根據緩衝區內 64 位元的值來設定。

## 需求

**標頭:** 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)

[述詞](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/predication)


## Related topics

- [SetPredication](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setpredication_public.md)
- [D3D12_LOGIC_OP](/zh-TW/reference/graphics/d3d12/enums/d3d12_logic_op_public.md)
- [D3D12_BLEND_OP](/zh-TW/reference/graphics/d3d12/enums/d3d12_blend_op_public.md)
- [D3D12_AUTO_BREADCRUMB_OP](/zh-TW/reference/graphics/d3d12/enums/d3d12_auto_breadcrumb_op_public.md)
- [D3D12_DEPTH_STENCILOP_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_depth_stencilop_desc_public.md)
