Identifies the stencil operations that can be performed during depth-stencil testing.
typedef enum D3D12_STENCIL_OP
{
// Xbox One extension enumeration constants:
D3D12XBOX_STENCIL_OP_ONE = 9,
D3D12XBOX_STENCIL_OP_REPLACE_OP = 10,
D3D12XBOX_STENCIL_OP_AND = 11,
D3D12XBOX_STENCIL_OP_OR = 12,
D3D12XBOX_STENCIL_OP_XOR = 13,
D3D12XBOX_STENCIL_OP_NAND = 14,
D3D12XBOX_STENCIL_OP_NOR = 15,
D3D12XBOX_STENCIL_OP_XNOR = 16
} D3D12_STENCIL_OP;
| Constant | Description |
|---|---|
| D3D12XBOX_STENCIL_OP_ONE | Set the stencil data to 1. |
| D3D12XBOX_STENCIL_OP_REPLACE_OP | Set the stencil data to the reference value set by calling ID3D11DeviceContext::OMSetDepthStencilState. |
| D3D12XBOX_STENCIL_OP_AND | Set the stencil data to the result of logical AND of the initial stencil value and the reference value that was set by calling ID3D11DeviceContext::OMSetDepthStencilState. |
| D3D12XBOX_STENCIL_OP_OR | Set the stencil data to the result of logical OR of the initial stencil value and the reference value that was set by calling ID3D11DeviceContext::OMSetDepthStencilState. |
| D3D12XBOX_STENCIL_OP_XOR | Set the stencil data to the result of logical XOR of the initial stencil value and the reference value that was set by calling ID3D11DeviceContext::OMSetDepthStencilState. |
| D3D12XBOX_STENCIL_OP_NAND | Set the stencil data to the result of logical NAND of the initial stencil value and the reference value that was set by calling ID3D11DeviceContext::OMSetDepthStencilState. |
| D3D12XBOX_STENCIL_OP_NOR | Set the stencil data to the result of logical NOR of the initial stencil value and the reference value that was set by calling ID3D11DeviceContext::OMSetDepthStencilState. |
| D3D12XBOX_STENCIL_OP_XNOR | Set the stencil data to the result of logical XNOR of the initial stencil value and the reference value that was set by calling ID3D11DeviceContext::OMSetDepthStencilState. |
This enumeration is used by the D3D12_DEPTH_STENCILOP_DESC structure.
On Xbox One, this enumeration has the same enumeration constants as [D3D12STENCIL_OP](https://msdn.microsoft.com/en-us/library/windows/desktop/Dn770409(v=VS.85).aspx) for PC, and also has the above D3D12XBOX Xbox extension enumeration constants.
Header: Declared in d3d12_x.h.