0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-25 02:05:49 +00:00
ryujinx-fork/Ryujinx.Graphics.Gpu/State/BlendState.cs

32 lines
902 B
C#
Raw Normal View History

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