aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2020-07-10 18:23:15 +0100
committerGitHub <noreply@github.com>2020-07-10 14:23:15 -0300
commitf224769c493e80ab2bd9a674be697461749e0b94 (patch)
tree7cf61d4b96a0ceaf87d7877be63a5b2abc2543df /Ryujinx.Graphics.GAL
parent189c0c9c726b3a700272831cd5cf10b2fc817cc2 (diff)
Implement Logical Operation registers and functionality (#1380)
* Implement Logical Operation registers and functionality. * Address Feedback 1
Diffstat (limited to 'Ryujinx.Graphics.GAL')
-rw-r--r--Ryujinx.Graphics.GAL/IPipeline.cs2
-rw-r--r--Ryujinx.Graphics.GAL/LogicalOp.cs22
2 files changed, 24 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.GAL/IPipeline.cs b/Ryujinx.Graphics.GAL/IPipeline.cs
index e365529b..3eb778e0 100644
--- a/Ryujinx.Graphics.GAL/IPipeline.cs
+++ b/Ryujinx.Graphics.GAL/IPipeline.cs
@@ -42,6 +42,8 @@ namespace Ryujinx.Graphics.GAL
void SetImage(int index, ShaderStage stage, ITexture texture);
+ void SetLogicOpState(bool enable, LogicalOp op);
+
void SetOrigin(Origin origin);
void SetPointSize(float size);
diff --git a/Ryujinx.Graphics.GAL/LogicalOp.cs b/Ryujinx.Graphics.GAL/LogicalOp.cs
new file mode 100644
index 00000000..848215d0
--- /dev/null
+++ b/Ryujinx.Graphics.GAL/LogicalOp.cs
@@ -0,0 +1,22 @@
+namespace Ryujinx.Graphics.GAL
+{
+ public enum LogicalOp
+ {
+ Clear = 0x1500,
+ And = 0x1501,
+ AndReverse = 0x1502,
+ Copy = 0x1503,
+ AndInverted = 0x1504,
+ Noop = 0x1505,
+ Xor = 0x1506,
+ Or = 0x1507,
+ Nor = 0x1508,
+ Equiv = 0x1509,
+ Invert = 0x150A,
+ OrReverse = 0x150B,
+ CopyInverted = 0x150C,
+ OrInverted = 0x150D,
+ Nand = 0x150E,
+ Set = 0x150F
+ }
+}