Ryujinx/Ryujinx.Graphics.Gpu/State/BlendState.cs

32 lines
902 B
C#
Raw Normal View History

2019-12-29 18:41:50 +01:00
using Ryujinx.Graphics.GAL;
2019-10-13 08:02:07 +02:00
namespace Ryujinx.Graphics.Gpu.State
{
/// <summary>
/// Color buffer blending parameters.
/// </summary>
2019-10-13 08:02:07 +02:00
struct BlendState
{
#pragma warning disable CS0649
public Boolean32 SeparateAlpha;
2019-10-13 08:02:07 +02:00
public BlendOp ColorOp;
public BlendFactor ColorSrcFactor;
public BlendFactor ColorDstFactor;
public BlendOp AlphaOp;
public BlendFactor AlphaSrcFactor;
public BlendFactor AlphaDstFactor;
public uint Padding;
#pragma warning restore CS0649
public static BlendState Default = new BlendState
{
ColorOp = BlendOp.Add,
ColorSrcFactor = BlendFactor.One,
ColorDstFactor = BlendFactor.Zero,
AlphaOp = BlendOp.Add,
AlphaSrcFactor = BlendFactor.One,
AlphaDstFactor = BlendFactor.Zero
};
2019-10-13 08:02:07 +02:00
}
}