SlotSurfaceConfig.cs 900 B

123456789101112131415161718192021
  1. namespace Ryujinx.Graphics.Vic.Types
  2. {
  3. struct SlotSurfaceConfig
  4. {
  5. private long _word0;
  6. private long _word1;
  7. public PixelFormat SlotPixelFormat => (PixelFormat)_word0.Extract(0, 7);
  8. public int SlotChromaLocHoriz => _word0.Extract(7, 2);
  9. public int SlotChromaLocVert => _word0.Extract(9, 2);
  10. public int SlotBlkKind => _word0.Extract(11, 4);
  11. public int SlotBlkHeight => _word0.Extract(15, 4);
  12. public int SlotCacheWidth => _word0.Extract(19, 3);
  13. public int SlotSurfaceWidth => _word0.Extract(32, 14);
  14. public int SlotSurfaceHeight => _word0.Extract(46, 14);
  15. public int SlotLumaWidth => _word1.Extract(64, 14);
  16. public int SlotLumaHeight => _word1.Extract(78, 14);
  17. public int SlotChromaWidth => _word1.Extract(96, 14);
  18. public int SlotChromaHeight => _word1.Extract(110, 14);
  19. }
  20. }