StencilWriteMask
Keywords: StencilWriteMask, NVIDIA, NVIDIA Cg Toolkit, Cg Toolkit, Shader, Shader Programming, GPU Shader Programming, GPU Program

> ## Name

> StencilWriteMask - 3D API stencil write mask

> ## Usage

> StencilWriteMask = int(mask)

> ## Valid Enumerants

> mask: integer value

> ## Description

> Specify the stencil plane write mask. See the OpenGL glStencilMask manual page for details. See the D3DRS_STENCILWRITEMASK render state description for DirectX 9.

> The standard reset callback sets the StencilWriteMask state to int(~0).

> ## Opengl Functionality Requirements

> OpenGL 1.0

> ## Direct3D Functionality Requirements

> DirectX 9

> ## See Also

> ClearStencil, StencilEnable, StencilFail, StencilFunc, StencilFuncSeparate, StencilMask, StencilMaskSeparate, StencilOp, StencilOpSeparate, StencilPass, StencilRef, StencilTestEnable, StencilTestTwoSideEnable, StencilZFail, TwoSidedStencilMode