DarkBASIC Professional Help File

DX11 SET STENCIL WRITE MASK

Sets a stencil mask that is bitwise AND:ed together with the stencil value when writing to the depth/stencil buffer.
This allows you to ensure that only certain stencil bits are written by shader techniques using this depth stencil state.
Take note that the stencil value is an 8-bit value (a BYTE), thus the mask is as well.

Syntax

    DX11 SET STENCIL WRITE MASK depthStencilState, writeMask

Parameters

    depthStencilState

> Dword
> The depth stencil state to set the stencil write mask for.

    writeMask

> Byte
> The stencil write mask to set for the given depth stencil state. This mask is bitwise AND:ed together with any value to be written to the stencil buffer.

Returns

This function does not return a value.

See also

DEPTHSTENCILSTATE Functions Menu
DX11 Function Categories