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

> ## Name

> StencilMaskSeparate - 3D API stencil mask separate

> ## Usage

> StencilMaskSeparate = int2(face, mask)

> ## Valid Enumerants

> face: Front, Back, FrontAndBack mask: integer value

> ## Description

> Specify front and/or back stencil plane write mask. See the OpenGL glStencilMaskSeparate manual page for details. See the D3DRS_STENCILMASK render state description for DirectX 9.

> The standard reset callback sets the StencilMaskSeparate state to int2(FrontAndBack, ~0).

> ## Opengl Functionality Requirements

> OpenGL 2.0

> ## Direct3D Functionality Requirements

> DirectX 9

> ## See Also

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