mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-23 06:42:44 +00:00
a728610b40
* Implement Constant Color blends and init blend states * Address gdkchan's comments Also adds Set methods to GpuState * Fix descriptions of QueryModified
32 lines
902 B
C#
32 lines
902 B
C#
using Ryujinx.Graphics.GAL;
|
|
|
|
namespace Ryujinx.Graphics.Gpu.State
|
|
{
|
|
/// <summary>
|
|
/// Color buffer blending parameters.
|
|
/// </summary>
|
|
struct BlendState
|
|
{
|
|
#pragma warning disable CS0649
|
|
public Boolean32 SeparateAlpha;
|
|
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
|
|
};
|
|
}
|
|
}
|