Class BlendStates
Defines a set of built-in BlendStateDescriptions for common blending configurations.
public static class BlendStates
- Inheritance
-
objectBlendStates
Fields
Additive
A built-in Blend State description with settings for additive blending, that is adding the destination data to the source data without using alpha.
public static readonly BlendStateDescription Additive
Field Value
Remarks
This built-in state object has the following settings for the first Render Target:
| Property | Value |
|---|---|
| ColorSourceBlend | SourceAlpha |
| AlphaSourceBlend | SourceAlpha |
| ColorDestinationBlend | One |
| AlphaDestinationBlend | One |
AlphaBlend
A built-in Blend State description with settings for alpha blending, that is blending the source and destination data using alpha.
public static readonly BlendStateDescription AlphaBlend
Field Value
Remarks
This built-in state object has the following settings for the first Render Target:
| Property | Value |
|---|---|
| ColorSourceBlend | One |
| AlphaSourceBlend | One |
| ColorDestinationBlend | InverseSourceAlpha |
| AlphaDestinationBlend | InverseSourceAlpha |
ColorDisabled
A built-in Blend State description with settings for disabling color rendering on the first Render Target (target 0), that is rendering only to the Depth-Stencil Buffer.
public static readonly BlendStateDescription ColorDisabled
Field Value
Remarks
This is the same as the Default state, but with the first Render Target's color write channels disabled.
Default
A built-in Blend State description with default settings, that is no blend at all.
public static readonly BlendStateDescription Default
Field Value
Remarks
The default values are:
- Alpha-to-CoverageDisabled
- Independent BlendingDisabled. Only enable blend for the first Render Target
- Disable blending for all the Render Targets.
NonPremultiplied
A built-in Blend State description with settings for blending with non-premultipled alpha, that is blending source and destination data using alpha while assuming the color data contains no alpha information.
public static readonly BlendStateDescription NonPremultiplied
Field Value
Remarks
This built-in state object has the following settings for the first Render Target:
| Property | Value |
|---|---|
| ColorSourceBlend | SourceAlpha |
| AlphaSourceBlend | SourceAlpha |
| ColorDestinationBlend | InverseSourceAlpha |
| AlphaDestinationBlend | InverseSourceAlpha |
Opaque
A built-in Blend State description with settings for opaque blending, that is overwriting the destination with the source data.
public static readonly BlendStateDescription Opaque
Field Value
Remarks
This built-in state object has the following settings for the first Render Target:
| Property | Value |
|---|---|
| ColorSourceBlend | One |
| AlphaSourceBlend | One |
| ColorDestinationBlend | Zero |
| AlphaDestinationBlend | Zero |