CopyBufferSwizzle.cs 459 B

12345678910111213141516171819202122
  1. namespace Ryujinx.Graphics.Gpu.State
  2. {
  3. struct CopyBufferSwizzle
  4. {
  5. public uint Swizzle;
  6. public int UnpackComponentSize()
  7. {
  8. return (int)((Swizzle >> 16) & 3) + 1;
  9. }
  10. public int UnpackSrcComponentsCount()
  11. {
  12. return (int)((Swizzle >> 20) & 7) + 1;
  13. }
  14. public int UnpackDstComponentsCount()
  15. {
  16. return (int)((Swizzle >> 24) & 7) + 1;
  17. }
  18. }
  19. }