Table of Contents

Enum Blend

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

A Blend Option identifying the data source and an optional pre-blend operation, which help define how Pixel Shader output is mixed with the destination color in rendering operations.

[DataContract]
public enum Blend
Extension Methods

Fields

BlendFactor = 14

The data source is a blend factor set in the BlendStateDescription.
No pre-blend operation. The blend factor is directly used for blending.

DestinationAlpha = 7

The data source is the alpha value that comes from the existing Render Target before blending.
No pre-blend operation. The alpha value is directly used for blending.

DestinationColor = 9

The data source is color data already present in a Render Target.
No pre-blend operation. Each component is directly used for blending.

InverseBlendFactor = 15

The data source is a blend factor set in the BlendStateDescription.
The pre-blend operation inverts the data. The blend factor is inverted (1 - blendFactor) before blending.

InverseDestinationAlpha = 8

The data source is the alpha value that comes from the existing Render Target before blending.
The pre-blend operation inverts the data. The alpha value is inverted (1 - A) before blending.

InverseDestinationColor = 10

The data source is color data already present in a Render Target.
The pre-blend operation inverts the data. Each component is inverted (1 - RGB) before blending.

InverseSecondarySourceAlpha = 19

The data source is primary alpha data (A0) and secondary alpha data (A1), both generated by the Pixel Shader, for use in dual-source color blending.
The pre-blend operation inverts the data. Both alpha values are inverted (1 - A) before blending.

InverseSecondarySourceColor = 17

The data source is primary color data (RGB0) and secondary color data (RGB1), both generated by the Pixel Shader, for use in dual-source color blending.
The pre-blend operation inverts the data. Each component of both of the colors is inverted (1 - RGB) before blending. This can create interesting effects like color negation.

InverseSourceAlpha = 6

The data source is alpha data (A) generated by the Pixel Shader.
The pre-blend operation inverts the data. The alpha value is inverted (1 - A) before blending.

InverseSourceColor = 4

The data source is color data (RGB) generated by the Pixel Shader.
The pre-blend operation inverts the data. Each component is inverted (1 - RGB) before blending.

One = 2

The data source is the one vector (1, 1, 1, 1), meaning each component of the color generated by the Pixel Shader is multiplied by one
No pre-blend operation.

SecondarySourceAlpha = 18

The data source is primary alpha data (A0) and secondary alpha data (A1), both generated by the Pixel Shader, for use in dual-source color blending.
No pre-blend operation. The alpha value is directly used for blending.

SecondarySourceColor = 16

Uses two color outputs (RGB0 and RGB1) from the Pixel Shader for advanced blending techniques.
No pre-blend operation. Each component is directly used for blending.

SourceAlpha = 5

The data source is alpha data (A) generated by the Pixel Shader.
No pre-blend operation. The alpha value is directly used for blending.

SourceAlphaSaturate = 11

The data source is alpha data generated by the Pixel Shader.
The pre-blend operation clamps the data to 1 or less. This ensures the alpha value does not exceed 1, preventing unintended brightness shifts.

SourceColor = 3

The data source is color data (RGB) generated by the Pixel Shader.
No pre-blend operation. Each component is directly used for blending.

Zero = 1

The data source is the zero vector (0, 0, 0, 0), meaning each component of the color generated by the Pixel Shader is multiplied by zero.
No pre-blend operation.

Remarks

Blend options are specified in a BlendStateDescription.