aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Shader/Decoders/OpCodeFArith.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics/Shader/Decoders/OpCodeFArith.cs')
-rw-r--r--Ryujinx.Graphics/Shader/Decoders/OpCodeFArith.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/Shader/Decoders/OpCodeFArith.cs b/Ryujinx.Graphics/Shader/Decoders/OpCodeFArith.cs
new file mode 100644
index 00000000..c88f7f0e
--- /dev/null
+++ b/Ryujinx.Graphics/Shader/Decoders/OpCodeFArith.cs
@@ -0,0 +1,24 @@
+using Ryujinx.Graphics.Shader.Instructions;
+
+namespace Ryujinx.Graphics.Shader.Decoders
+{
+ class OpCodeFArith : OpCodeAlu, IOpCodeFArith
+ {
+ public RoundingMode RoundingMode { get; }
+
+ public FmulScale Scale { get; }
+
+ public bool FlushToZero { get; }
+ public bool AbsoluteA { get; }
+
+ public OpCodeFArith(InstEmitter emitter, ulong address, long opCode) : base(emitter, address, opCode)
+ {
+ RoundingMode = (RoundingMode)opCode.Extract(39, 2);
+
+ Scale = (FmulScale)opCode.Extract(41, 3);
+
+ FlushToZero = opCode.Extract(44);
+ AbsoluteA = opCode.Extract(46);
+ }
+ }
+} \ No newline at end of file