mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-29 01:19:20 +00:00
57d3296ba4
* infra: Migrate to .NET 6 * Rollback version naming change * Workaround .NET 6 ZipArchive API issues * ci: Switch to VS 2022 for AppVeyor CI is now ready for .NET 6 * Suppress WebClient warning in DoUpdateWithMultipleThreads * Attempt to workaround System.Drawing.Common changes on 6.0.0 * Change keyboard rendering from System.Drawing to ImageSharp * Make the software keyboard renderer multithreaded * Bump ImageSharp version to 1.0.4 to fix a bug in Image.Load * Add fallback fonts to the keyboard renderer * Fix warnings * Address caian's comment * Clean up linux workaround as it's uneeded now * Update readme Co-authored-by: Caian Benedicto <caianbene@gmail.com>
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using Ryujinx.HLE.HOS.Services.SurfaceFlinger;
|
|
using System;
|
|
|
|
namespace Ryujinx.HLE.Ui
|
|
{
|
|
/// <summary>
|
|
/// Information about the indirect layer that is being drawn to.
|
|
/// </summary>
|
|
class RenderingSurfaceInfo : IEquatable<RenderingSurfaceInfo>
|
|
{
|
|
public ColorFormat ColorFormat { get; }
|
|
public uint Width { get; }
|
|
public uint Height { get; }
|
|
public uint Pitch { get; }
|
|
public uint Size { get; }
|
|
|
|
public RenderingSurfaceInfo(ColorFormat colorFormat, uint width, uint height, uint pitch, uint size)
|
|
{
|
|
ColorFormat = colorFormat;
|
|
Width = width;
|
|
Height = height;
|
|
Pitch = pitch;
|
|
Size = size;
|
|
}
|
|
|
|
public bool Equals(RenderingSurfaceInfo other)
|
|
{
|
|
return ColorFormat == other.ColorFormat &&
|
|
Width == other.Width &&
|
|
Height == other.Height &&
|
|
Pitch == other.Pitch &&
|
|
Size == other.Size;
|
|
}
|
|
}
|
|
}
|