aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/BlendDescriptor.cs
diff options
context:
space:
mode:
authormageven <62494521+mageven@users.noreply.github.com>2020-04-25 18:30:43 +0530
committerGitHub <noreply@github.com>2020-04-25 23:00:43 +1000
commita728610b4016e153fed670eddaa45909ab51f18b (patch)
treee29a3a2e35b64b255fa5829af30437a9e15bc16d /Ryujinx.Graphics.GAL/BlendDescriptor.cs
parent75ec30c962bcfa4251f29a29c659b959170018ce (diff)
Implement Constant Color blends (#1119)
* Implement Constant Color blends and init blend states * Address gdkchan's comments Also adds Set methods to GpuState * Fix descriptions of QueryModified
Diffstat (limited to 'Ryujinx.Graphics.GAL/BlendDescriptor.cs')
-rw-r--r--Ryujinx.Graphics.GAL/BlendDescriptor.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.GAL/BlendDescriptor.cs b/Ryujinx.Graphics.GAL/BlendDescriptor.cs
index b35a0169..cc1e17c7 100644
--- a/Ryujinx.Graphics.GAL/BlendDescriptor.cs
+++ b/Ryujinx.Graphics.GAL/BlendDescriptor.cs
@@ -4,6 +4,7 @@ namespace Ryujinx.Graphics.GAL
{
public bool Enable { get; }
+ public ColorF BlendConstant { get; }
public BlendOp ColorOp { get; }
public BlendFactor ColorSrcFactor { get; }
public BlendFactor ColorDstFactor { get; }
@@ -13,6 +14,7 @@ namespace Ryujinx.Graphics.GAL
public BlendDescriptor(
bool enable,
+ ColorF blendConstant,
BlendOp colorOp,
BlendFactor colorSrcFactor,
BlendFactor colorDstFactor,
@@ -21,6 +23,7 @@ namespace Ryujinx.Graphics.GAL
BlendFactor alphaDstFactor)
{
Enable = enable;
+ BlendConstant = blendConstant;
ColorOp = colorOp;
ColorSrcFactor = colorSrcFactor;
ColorDstFactor = colorDstFactor;