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

> Specifies the predication operation to apply.

Specifies the predication operation to apply.

## Syntax

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

## Constants

| Constant                                 | Description                                                      |
| ---------------------------------------- | ---------------------------------------------------------------- |
| D3D12\_PREDICATION\_OP\_EQUAL\_ZERO      | Enables predication if all 64-bits are zero.                     |
| D3D12\_PREDICATION\_OP\_NOT\_EQUAL\_ZERO | Enables predication if at least one of the 64-bits are not zero. |

## Remarks

This enum is used by [SetPredication](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setpredication_public).

Predication is decoupled from queries.
Predication can be set based on the value of 64-bits within a buffer.

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

[Core Enumerations](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-enumerations)

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


## Related topics

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