2018-09-18 00:30:35 -04:00
|
|
|
|
using Ryujinx.Graphics.Texture;
|
2018-08-19 21:25:26 -04:00
|
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.Gal.OpenGL
|
|
|
|
|
{
|
|
|
|
|
class ImageHandler
|
|
|
|
|
{
|
|
|
|
|
public GalImage Image { get; private set; }
|
|
|
|
|
|
|
|
|
|
public int Width => Image.Width;
|
|
|
|
|
public int Height => Image.Height;
|
2019-02-27 20:12:24 -05:00
|
|
|
|
public int Depth => Image.Depth;
|
2018-08-19 21:25:26 -04:00
|
|
|
|
|
|
|
|
|
public GalImageFormat Format => Image.Format;
|
|
|
|
|
|
|
|
|
|
public int Handle { get; private set; }
|
|
|
|
|
|
2018-09-18 00:30:35 -04:00
|
|
|
|
public bool HasColor => ImageUtils.HasColor(Image.Format);
|
|
|
|
|
public bool HasDepth => ImageUtils.HasDepth(Image.Format);
|
|
|
|
|
public bool HasStencil => ImageUtils.HasStencil(Image.Format);
|
2018-08-19 21:25:26 -04:00
|
|
|
|
|
2019-03-03 20:45:25 -05:00
|
|
|
|
public ImageHandler(int handle, GalImage image)
|
2018-08-19 21:25:26 -04:00
|
|
|
|
{
|
2019-03-03 20:45:25 -05:00
|
|
|
|
Handle = handle;
|
|
|
|
|
Image = image;
|
2018-08-19 21:25:26 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|