D3D12DDI_STENCIL_OP - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3d12umddi.h

typedef enum D3D12DDI_STENCIL_OP {
  D3D12DDI_STENCIL_OP_KEEP,
  D3D12DDI_STENCIL_OP_ZERO,
  D3D12DDI_STENCIL_OP_REPLACE,
  D3D12DDI_STENCIL_OP_INCR_SAT,
  D3D12DDI_STENCIL_OP_DECR_SAT,
  D3D12DDI_STENCIL_OP_INVERT,
  D3D12DDI_STENCIL_OP_INCR,
  D3D12DDI_STENCIL_OP_DECR
} ;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ne-d3d12umddi-d3d12ddi_stencil_op)

D3D12DDI_STENCIL_OP enumeration

Description

The D3D12DDI_STENCIL_OP enumeration type contains values that identify operations on stencil buffers in a call to the driver's CreateDepthStencilState function.

Constants

D3D12DDI_STENCIL_OP_KEEP

Do not update the entry in the stencil buffer. D3D12DDI_STENCIL_OP_KEEP is the default value.

D3D12DDI_STENCIL_OP_ZERO

Set the stencil-buffer entry to 0.

D3D12DDI_STENCIL_OP_REPLACE

Replace the stencil-buffer entry with a reference value.

D3D12DDI_STENCIL_OP_INCR_SAT

Increment the stencil-buffer entry, clamping to the maximum value.

D3D12DDI_STENCIL_OP_DECR_SAT

Decrement the stencil-buffer entry, clamping to zero.

D3D12DDI_STENCIL_OP_INVERT

Invert the bits in the stencil-buffer entry.

D3D12DDI_STENCIL_OP_INCR

Increment the stencil-buffer entry, wrapping to zero if the new value exceeds the maximum value.

D3D12DDI_STENCIL_OP_DECR

Decrement the stencil-buffer entry, wrapping to the maximum value if the new value is less than zero.

Remarks

See also