VertexAttribState.cs 424 B

12345678910111213141516171819202122
  1. namespace Ryujinx.Graphics.Gpu.State
  2. {
  3. struct VertexAttribState
  4. {
  5. public uint Attribute;
  6. public int UnpackBufferIndex()
  7. {
  8. return (int)(Attribute & 0x1f);
  9. }
  10. public int UnpackOffset()
  11. {
  12. return (int)((Attribute >> 7) & 0x3fff);
  13. }
  14. public uint UnpackFormat()
  15. {
  16. return Attribute & 0x3fe00000;
  17. }
  18. }
  19. }