Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Identifies the stencil operations that can be performed during depth-stencil testing.
Syntax
typedef enum D3D12_STENCIL_OP {
D3D12_STENCIL_OP_KEEP = 1,
D3D12_STENCIL_OP_ZERO = 2,
D3D12_STENCIL_OP_REPLACE = 3,
D3D12_STENCIL_OP_INCR_SAT = 4,
D3D12_STENCIL_OP_DECR_SAT = 5,
D3D12_STENCIL_OP_INVERT = 6,
D3D12_STENCIL_OP_INCR = 7,
D3D12_STENCIL_OP_DECR = 8
} ;
Constants
D3D12_STENCIL_OP_KEEPValue: 1 Keep the existing stencil data. |
D3D12_STENCIL_OP_ZEROValue: 2 Set the stencil data to 0. |
D3D12_STENCIL_OP_REPLACEValue: 3 Set the stencil data to the reference value set by calling ID3D12GraphicsCommandList::OMSetStencilRef. |
D3D12_STENCIL_OP_INCR_SATValue: 4 Increment the stencil value by 1, and clamp the result. |
D3D12_STENCIL_OP_DECR_SATValue: 5 Decrement the stencil value by 1, and clamp the result. |
D3D12_STENCIL_OP_INVERTValue: 6 Invert the stencil data. |
D3D12_STENCIL_OP_INCRValue: 7 Increment the stencil value by 1, and wrap the result if necessary. |
D3D12_STENCIL_OP_DECRValue: 8 Decrement the stencil value by 1, and wrap the result if necessary. |
Remarks
This enum is used by the D3D12_DEPTH_STENCILOP_DESC structure.
Requirements
| Requirement | Value |
|---|---|
| Header | d3d12.h |