2018-09-18 04:30:35 +00:00
|
|
|
|
using Ryujinx.Graphics.Texture;
|
2018-08-20 01:25:26 +00:00
|
|
|
|
|
|
|
|
|
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; }
|
|
|
|
|
|
2018-09-18 04:30:35 +00:00
|
|
|
|
public bool HasColor => ImageUtils.HasColor(Image.Format);
|
|
|
|
|
public bool HasDepth => ImageUtils.HasDepth(Image.Format);
|
|
|
|
|
public bool HasStencil => ImageUtils.HasStencil(Image.Format);
|
2018-08-20 01:25:26 +00:00
|
|
|
|
|
|
|
|
|
public ImageHandler(int Handle, GalImage Image)
|
|
|
|
|
{
|
|
|
|
|
this.Handle = Handle;
|
2018-09-18 04:30:35 +00:00
|
|
|
|
this.Image = Image;
|
2018-08-20 01:25:26 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|