RenderingSurfaceInfo.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. using Ryujinx.HLE.HOS.Services.SurfaceFlinger;
  2. namespace Ryujinx.HLE.Ui
  3. {
  4. /// <summary>
  5. /// Information about the indirect layer that is being drawn to.
  6. /// </summary>
  7. class RenderingSurfaceInfo
  8. {
  9. public ColorFormat ColorFormat { get; }
  10. public uint Width { get; }
  11. public uint Height { get; }
  12. public uint Pitch { get; }
  13. public uint Size { get; }
  14. public RenderingSurfaceInfo(ColorFormat colorFormat, uint width, uint height, uint pitch, uint size)
  15. {
  16. ColorFormat = colorFormat;
  17. Width = width;
  18. Height = height;
  19. Pitch = pitch;
  20. Size = size;
  21. }
  22. public bool Equals(RenderingSurfaceInfo other)
  23. {
  24. return ColorFormat == other.ColorFormat &&
  25. Width == other.Width &&
  26. Height == other.Height &&
  27. Pitch == other.Pitch &&
  28. Size == other.Size;
  29. }
  30. }
  31. }