Table of Contents

Enum BlendFunction

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Defines a function for color blending.

[DataContract]
public enum BlendFunction
Extension Methods

Fields

Add = 1

The function adds destination to the source: (srcColor * srcBlend) + (destColor * destBlend)

Max = 5

The function finds the maximum of the source and destination: max( (srcColor * srcBlend), (destColor * destBlend) )

Min = 4

The function finds the minimum of the source and destination: min( (srcColor * srcBlend), (destColor * destBlend) )

ReverseSubtract = 3

The function subtracts source from destination: (destColor * destBlend) - (srcColor * srcBlend)

Subtract = 2

The function subtracts destination from source: (srcColor * srcBlend) − (destColor * destBlend)

Remarks

The runtime implements color (RGB) blending and alpha blending separately. Therefore, a Blend State requires separate blend operations for RGB data and alpha data. These blend operations are specified in a BlendStateDescription and in a BlendStateRenderTargetDescription.