mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-21 06:15:54 +01:00
d4187aaa9d
* (Re)Implement format reinterpretation, other changes * Implement writeback to guest memory, some refactoring * More refactoring, implement reinterpretation the old way again * Clean up * Some fixes on M2MF (old Dma engine), added partial support for P2MF, fix conditional ssy, add Z24S8 zeta format, other fixes * nit: Formatting * Address PR feedback
27 lines
709 B
C#
27 lines
709 B
C#
using Ryujinx.Graphics.Texture;
|
|
|
|
namespace Ryujinx.Graphics.Gal.OpenGL
|
|
{
|
|
class ImageHandler
|
|
{
|
|
public GalImage Image { get; private set; }
|
|
|
|
public int Width => Image.Width;
|
|
public int Height => Image.Height;
|
|
|
|
public GalImageFormat Format => Image.Format;
|
|
|
|
public int Handle { get; private set; }
|
|
|
|
public bool HasColor => ImageUtils.HasColor(Image.Format);
|
|
public bool HasDepth => ImageUtils.HasDepth(Image.Format);
|
|
public bool HasStencil => ImageUtils.HasStencil(Image.Format);
|
|
|
|
public ImageHandler(int Handle, GalImage Image)
|
|
{
|
|
this.Handle = Handle;
|
|
this.Image = Image;
|
|
}
|
|
}
|
|
}
|