Table of Contents

Enum BlendFunction

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

RGB or alpha blending operation.

[DataContract]
public enum BlendFunction

Fields

Add = 1

Add source 1 and source 2.

Max = 5

Find the maximum of source 1 and source 2.

Min = 4

Find the minimum of source 1 and source 2.

ReverseSubtract = 3

Subtract source 2 from source 1.

Subtract = 2

Subtract source 1 from source 2.

Remarks

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