Table of Contents

Enum Blend

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Blend option. A blend option identifies the data source and an optional pre-blend operation.

[DataContract]
public enum Blend

Fields

BlendFactor = 14

The data source is the blend factor set with BlendStates. No pre-blend operation.

DestinationAlpha = 7

The data source is alpha data from a rendertarget. No pre-blend operation.

DestinationColor = 9

The data source is color data from a rendertarget. No pre-blend operation.

InverseBlendFactor = 15

The data source is the blend factor set with BlendStates. The pre-blend operation inverts the blend factor, generating 1 - blend_factor.

InverseDestinationAlpha = 8

The data source is alpha data from a rendertarget. The pre-blend operation inverts the data, generating 1 - A.

InverseDestinationColor = 10

The data source is color data from a rendertarget. The pre-blend operation inverts the data, generating 1 - RGB.

InverseSecondarySourceAlpha = 19

The data sources are alpha data output by a pixel shader. The pre-blend operation inverts the data, generating 1 - A. This options supports dual-source color blending.

InverseSecondarySourceColor = 17

The data sources are both color data output by a pixel shader. The pre-blend operation inverts the data, generating 1 - RGB. This options supports dual-source color blending.

InverseSourceAlpha = 6

The data source is alpha data (A) from a pixel shader. The pre-blend operation inverts the data, generating 1 - A.

InverseSourceColor = 4

The data source is color data (RGB) from a pixel shader. The pre-blend operation inverts the data, generating 1 - RGB.

One = 2

The data source is the color white (1, 1, 1, 1). No pre-blend operation.

SecondarySourceAlpha = 18

The data sources are alpha data output by a pixel shader. There is no pre-blend operation. This options supports dual-source color blending.

SecondarySourceColor = 16

The data sources are both color data output by a pixel shader. There is no pre-blend operation. This options supports dual-source color blending.

SourceAlpha = 5

The data source is alpha data (A) from a pixel shader. No pre-blend operation.

SourceAlphaSaturate = 11

The data source is alpha data from a pixel shader. The pre-blend operation clamps the data to 1 or less.

SourceColor = 3

The data source is color data (RGB) from a pixel shader. No pre-blend operation.

Zero = 1

The data source is the color black (0, 0, 0, 0). No pre-blend operation.

Remarks

Blend options are specified in a BlendStateDescription.