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

> ## Name

> ColorWriteEnable - 3D API color write enable

> ## Usage

> ColorWriteEnable = bool4(r, g, b, a)

> ## Valid Enumerants

> r, g, b, a: true, false

> ## Description

> Enable/disable writing of frame buffer color components. See the OpenGL glColorMask manual page for details. See the D3DRS_COLORWRITEENABLE render state description for DirectX 9.

> The standard reset callback sets the ColorWriteEnable state to bool4(true, true, true, true).

> ## Opengl Functionality Requirements

> OpenGL 1.0

> ## Direct3D Functionality Requirements

> DirectX 9

> ## See Also

> BlendColor, ClearColor, ColorArg0, ColorArg1, ColorArg2, ColorLogicOpEnable, ColorMask, ColorMaterial, ColorMatrix, ColorOp, ColorTransform, ColorVertex, ColorWriteEnable1, ColorWriteEnable2, ColorWriteEnable3