aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Shader/Decoders/OpCodeAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics/Shader/Decoders/OpCodeAttribute.cs')
-rw-r--r--Ryujinx.Graphics/Shader/Decoders/OpCodeAttribute.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/Shader/Decoders/OpCodeAttribute.cs b/Ryujinx.Graphics/Shader/Decoders/OpCodeAttribute.cs
new file mode 100644
index 00000000..fd8e63fc
--- /dev/null
+++ b/Ryujinx.Graphics/Shader/Decoders/OpCodeAttribute.cs
@@ -0,0 +1,16 @@
+using Ryujinx.Graphics.Shader.Instructions;
+
+namespace Ryujinx.Graphics.Shader.Decoders
+{
+ class OpCodeAttribute : OpCodeAluReg
+ {
+ public int AttributeOffset { get; }
+ public int Count { get; }
+
+ public OpCodeAttribute(InstEmitter emitter, ulong address, long opCode) : base(emitter, address, opCode)
+ {
+ AttributeOffset = opCode.Extract(20, 10);
+ Count = opCode.Extract(47, 2) + 1;
+ }
+ }
+} \ No newline at end of file