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

32 lines
902 B
C#
Raw Normal View History

2019-12-29 12:41:50 -05:00
using Ryujinx.Graphics.GAL;
2019-10-13 02:02:07 -04:00
namespace Ryujinx.Graphics.Gpu.State
{
/// <summary>
/// Color buffer blending parameters.
/// </summary>
2019-10-13 02:02:07 -04:00
struct BlendState
{
#pragma warning disable CS0649
public Boolean32 SeparateAlpha;
2019-10-13 02:02:07 -04: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 02:02:07 -04:00
}
}