diff options
| author | mageven <62494521+mageven@users.noreply.github.com> | 2020-04-25 18:30:43 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-25 23:00:43 +1000 |
| commit | a728610b4016e153fed670eddaa45909ab51f18b (patch) | |
| tree | e29a3a2e35b64b255fa5829af30437a9e15bc16d /Ryujinx.Graphics.Gpu/State/BlendStateCommon.cs | |
| parent | 75ec30c962bcfa4251f29a29c659b959170018ce (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.Gpu/State/BlendStateCommon.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/State/BlendStateCommon.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/State/BlendStateCommon.cs b/Ryujinx.Graphics.Gpu/State/BlendStateCommon.cs index cbb1880b..f402a5a7 100644 --- a/Ryujinx.Graphics.Gpu/State/BlendStateCommon.cs +++ b/Ryujinx.Graphics.Gpu/State/BlendStateCommon.cs @@ -17,5 +17,15 @@ namespace Ryujinx.Graphics.Gpu.State public uint Unknown0x1354; public BlendFactor AlphaDstFactor; #pragma warning restore CS0649 + + public static BlendStateCommon Default = new BlendStateCommon + { + ColorOp = BlendOp.Add, + ColorSrcFactor = BlendFactor.One, + ColorDstFactor = BlendFactor.Zero, + AlphaOp = BlendOp.Add, + AlphaSrcFactor = BlendFactor.One, + AlphaDstFactor = BlendFactor.Zero + }; } } |
