| Microsoft DirectX 8.1 (Visual Basic) | 
Defines stencil buffer capability flags
Enum CONST_D3DSTENCILCAPFLAGS
    D3DSTENCILCAPS_KEEP    =   1
    D3DSTENCILCAPS_ZERO    =   2
    D3DSTENCILCAPS_REPLACE =   4
    D3DSTENCILCAPS_INCRSAT =   8
    D3DSTENCILCAPS_DECRSAT =  16 (&H10)
    D3DSTENCILCAPS_INVERT  =  32 (&H20)
    D3DSTENCILCAPS_INCR    =  64 (&H40)
    D3DSTENCILCAPS_DECR    = 128 (&H80)
End Enum
These flags may be combined and present in the StencilCaps member of D3DCAPS8.
For a definition of stencil operations, see CONST_D3DSTENCILOP.