OpCodeAttribute.cs 617 B

123456789101112131415161718
  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 new static OpCode Create(InstEmitter emitter, ulong address, long opCode) => new OpCodeAttribute(emitter, address, opCode);
  9. public OpCodeAttribute(InstEmitter emitter, ulong address, long opCode) : base(emitter, address, opCode)
  10. {
  11. AttributeOffset = opCode.Extract(20, 10);
  12. Count = opCode.Extract(47, 2) + 1;
  13. }
  14. }
  15. }