D3DSTENCILCAPS
Driver stencil capability flags.
#define | Value | Description |
---|---|---|
D3DSTENCILCAPS_KEEP | 0x00000001L | Do not update the entry in the stencil buffer. This is the default value. |
D3DSTENCILCAPS_ZERO | 0x00000002L | Set the stencil-buffer entry to 0. |
D3DSTENCILCAPS_REPLACE | 0x00000004L | Replace the stencil-buffer entry with reference value. |
D3DSTENCILCAPS_INCRSAT | 0x00000008L | Increment the stencil-buffer entry, clamping to the maximum value. |
D3DSTENCILCAPS_DECRSAT | 0x00000010L | Decrement the stencil-buffer entry, clamping to zero. |
D3DSTENCILCAPS_INVERT | 0x00000020L | Invert the bits in the stencil-buffer entry. |
D3DSTENCILCAPS_INCR | 0x00000040L | Increment the stencil-buffer entry, wrapping to zero if the new value exceeds the maximum value. |
D3DSTENCILCAPS_DECR | 0x00000080L | Decrement the stencil-buffer entry, wrapping to the maximum value if the new value is less than zero. |
D3DSTENCILCAPS_TWOSIDED | 0x00000100L | The device supports two-sided stencil. |
Stencil-buffer entries are integer values ranging from 0 through 2ⁿ - 1, where n is the bit depth of the stencil buffer.
These constants are used by the StencilCaps member of D3DCAPS9.
Constant Information
Requirement | Value |
---|---|
Header | d3d9caps.h |
Minimum operating system | Windows 98 |
Related topics