diff options
Diffstat (limited to 'Ryujinx.HLE/Ui/RenderingSurfaceInfo.cs')
| -rw-r--r-- | Ryujinx.HLE/Ui/RenderingSurfaceInfo.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Ryujinx.HLE/Ui/RenderingSurfaceInfo.cs b/Ryujinx.HLE/Ui/RenderingSurfaceInfo.cs new file mode 100644 index 00000000..0903ffdd --- /dev/null +++ b/Ryujinx.HLE/Ui/RenderingSurfaceInfo.cs @@ -0,0 +1,34 @@ +using Ryujinx.HLE.HOS.Services.SurfaceFlinger; + +namespace Ryujinx.HLE.Ui +{ + /// <summary> + /// Information about the indirect layer that is being drawn to. + /// </summary> + class 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; + } + } +} |
