RenderingSurfaceInfo.cs 1.1 KB

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