BC7ModeInfo.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. namespace Ryujinx.Graphics.Texture.Utils
  2. {
  3. readonly struct BC7ModeInfo
  4. {
  5. public readonly int SubsetCount;
  6. public readonly int PartitionBitCount;
  7. public readonly int PBits;
  8. public readonly int RotationBitCount;
  9. public readonly int IndexModeBitCount;
  10. public readonly int ColorIndexBitCount;
  11. public readonly int AlphaIndexBitCount;
  12. public readonly int ColorDepth;
  13. public readonly int AlphaDepth;
  14. public BC7ModeInfo(
  15. int subsetCount,
  16. int partitionBitsCount,
  17. int pBits,
  18. int rotationBitCount,
  19. int indexModeBitCount,
  20. int colorIndexBitCount,
  21. int alphaIndexBitCount,
  22. int colorDepth,
  23. int alphaDepth)
  24. {
  25. SubsetCount = subsetCount;
  26. PartitionBitCount = partitionBitsCount;
  27. PBits = pBits;
  28. RotationBitCount = rotationBitCount;
  29. IndexModeBitCount = indexModeBitCount;
  30. ColorIndexBitCount = colorIndexBitCount;
  31. AlphaIndexBitCount = alphaIndexBitCount;
  32. ColorDepth = colorDepth;
  33. AlphaDepth = alphaDepth;
  34. }
  35. }
  36. }