D3D12_STENCIL_OP Enumeration

Identifies the stencil operations that can be performed during depth-stencil testing.

Syntax

typedef enum D3D12_STENCIL_OP {
  D3D12_STENCIL_OP_KEEP,
  D3D12_STENCIL_OP_ZERO,
  D3D12_STENCIL_OP_REPLACE,
  D3D12_STENCIL_OP_INCR_SAT,
  D3D12_STENCIL_OP_DECR_SAT,
  D3D12_STENCIL_OP_INVERT,
  D3D12_STENCIL_OP_INCR,
  D3D12_STENCIL_OP_DECR
} ;

Constants

D3D12_STENCIL_OP_KEEP Keep the existing stencil data.
D3D12_STENCIL_OP_ZERO Set the stencil data to 0.
D3D12_STENCIL_OP_REPLACE Set the stencil data to the reference value set by calling ID3D11DeviceContext::OMSetDepthStencilState.
D3D12_STENCIL_OP_INCR_SAT Increment the stencil value by 1, and clamp the result.
D3D12_STENCIL_OP_DECR_SAT Decrement the stencil value by 1, and clamp the result.
D3D12_STENCIL_OP_INVERT Invert the stencil data.
D3D12_STENCIL_OP_INCR Increment the stencil value by 1, and wrap the result if necessary.
D3D12_STENCIL_OP_DECR 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

   
Header d3d12.h

See Also

CD3DX12_DEPTH_STENCIL_DESC

Core Enumerations