OpCodeAttribute.cs 477 B

12345678910111213141516
  1. using Ryujinx.Graphics.Shader.Instructions;
  2. namespace Ryujinx.Graphics.Shader.Decoders
  3. {
  4. class OpCodeAttribute : OpCodeAluReg
  5. {
  6. public int AttributeOffset { get; }
  7. public int Count { get; }
  8. public OpCodeAttribute(InstEmitter emitter, ulong address, long opCode) : base(emitter, address, opCode)
  9. {
  10. AttributeOffset = opCode.Extract(20, 10);
  11. Count = opCode.Extract(47, 2) + 1;
  12. }
  13. }
  14. }