Controls the front and back writing of individual bits in the stencil planes.
- mask [in]
Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, this mask composed entirely of 1's.
This method does not return a value.
The stencil write mask can be used to control writing to the stencil buffer during both rendering and clear operations.
Only the n least significant bits of the mask parameter value are saved (where n is the size of the stencil buffer in bits).
The write mask value is set on both the front and back stencil buffers.
The write mask value can be set when the stencil test is disabled or a stencil buffer is unavailable.
The write mask defaults to an integer which has the n least significant bits set to all 1s on both the front and back-facing stencil buffers.