aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs')
-rw-r--r--Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs b/Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs
new file mode 100644
index 00000000..a7657bcf
--- /dev/null
+++ b/Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs
@@ -0,0 +1,22 @@
+using Ryujinx.Graphics.Shader.Instructions;
+using Ryujinx.Graphics.Shader.IntermediateRepresentation;
+using System.Collections.Generic;
+
+namespace Ryujinx.Graphics.Shader.Decoders
+{
+ class OpCodePush : OpCodeBranch
+ {
+ public Dictionary<OpCodeBranchPop, Operand> PopOps { get; }
+
+ public OpCodePush(InstEmitter emitter, ulong address, long opCode) : base(emitter, address, opCode)
+ {
+ PopOps = new Dictionary<OpCodeBranchPop, Operand>();
+
+ Predicate = new Register(RegisterConsts.PredicateTrueIndex, RegisterType.Predicate);
+
+ InvertPredicate = false;
+
+ PushTarget = true;
+ }
+ }
+} \ No newline at end of file