RenderStateManager.ColorWriteEnable Property |
Language: |
Retrieves or sets a value that enables a per-channel write for the render target color buffer.
Visual Basic .NET Public Property ColorWriteEnable As ColorWriteEnable C# public ColorWriteEnable ColorWriteEnable { get; set; } Managed C++ public: __property ColorWriteEnable get_ColorWriteEnable();
public: __property void set_ColorWriteEnable(ColorWriteEnable);JScript .NET public function get ColorWriteEnable() : ColorWriteEnable
public function set ColorWriteEnable(ColorWriteEnable);
Microsoft.DirectX.Direct3D.ColorWriteEnable . Value of the ColorWriteEnable enumeration that specifies the color channel to set or retrieve.
This property is read/write.
Additional ColorWriteEnable* properties are available if MiscCaps.SupportsIndependentWriteMasks is set in Caps.PrimitiveMiscCaps for the device.
Pixel shader color output registers (oC#) are write-only registers that output results to multiple render targets. The ColorWriteEnable* properties determine which components of oC# ultimately get written to the render target (after blend, if applicable).
Use the additional ColorWriteEnable* properties if the device supports independent write masks for multiple element textures or multiple render targets.
Feedback? Please provide us with your comments on this topic.