Table of Contents

Class BlendStates

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Defines a set of built-in BlendStateDescriptions for common blending configurations.

public static class BlendStates
Inheritance
object
BlendStates

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

BlendStateDescription

Remarks

This built-in state object has the following settings for the first Render Target:

PropertyValue
ColorSourceBlendSourceAlpha
AlphaSourceBlendSourceAlpha
ColorDestinationBlendOne
AlphaDestinationBlendOne

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

BlendStateDescription

Remarks

This built-in state object has the following settings for the first Render Target:

PropertyValue
ColorSourceBlendOne
AlphaSourceBlendOne
ColorDestinationBlendInverseSourceAlpha
AlphaDestinationBlendInverseSourceAlpha

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

BlendStateDescription

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

BlendStateDescription

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

BlendStateDescription

Remarks

This built-in state object has the following settings for the first Render Target:

PropertyValue
ColorSourceBlendSourceAlpha
AlphaSourceBlendSourceAlpha
ColorDestinationBlendInverseSourceAlpha
AlphaDestinationBlendInverseSourceAlpha

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

BlendStateDescription

Remarks

This built-in state object has the following settings for the first Render Target:

PropertyValue
ColorSourceBlendOne
AlphaSourceBlendOne
ColorDestinationBlendZero
AlphaDestinationBlendZero