Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

D3D11_STENCIL_OP enumeration

The stencil operations that can be performed during depth-stencil testing.

Syntax


typedef enum D3D11_STENCIL_OP { 
  D3D11_STENCIL_OP_KEEP      = 1,
  D3D11_STENCIL_OP_ZERO      = 2,
  D3D11_STENCIL_OP_REPLACE   = 3,
  D3D11_STENCIL_OP_INCR_SAT  = 4,
  D3D11_STENCIL_OP_DECR_SAT  = 5,
  D3D11_STENCIL_OP_INVERT    = 6,
  D3D11_STENCIL_OP_INCR      = 7,
  D3D11_STENCIL_OP_DECR      = 8
} D3D11_STENCIL_OP;

Constants

D3D11_STENCIL_OP_KEEP

Keep the existing stencil data.

D3D11_STENCIL_OP_ZERO

Set the stencil data to 0.

D3D11_STENCIL_OP_REPLACE

Set the stencil data to the reference value set by calling ID3D11DeviceContext::OMSetDepthStencilState.

D3D11_STENCIL_OP_INCR_SAT

Increment the stencil value by 1, and clamp the result.

D3D11_STENCIL_OP_DECR_SAT

Decrement the stencil value by 1, and clamp the result.

D3D11_STENCIL_OP_INVERT

Invert the stencil data.

D3D11_STENCIL_OP_INCR

Increment the stencil value by 1, and wrap the result if necessary.

D3D11_STENCIL_OP_DECR

Decrement the stencil value by 1, and wrap the result if necessary.

Requirements

Header

D3D11.h

See also

Core Enumerations

 

 

Show:
© 2017 Microsoft