Ryujinx/Ryujinx.Graphics/Gal/GalImage.cs

39 lines
1.2 KiB
C#
Raw Normal View History

namespace Ryujinx.Graphics.Gal
{
public struct GalImage
{
public int Width;
public int Height;
2018-08-23 02:54:15 +00:00
public int Depth;
public GalImageFormat Format;
2018-08-23 02:54:15 +00:00
public GalImageTarget Target;
public GalTextureSource XSource;
public GalTextureSource YSource;
public GalTextureSource ZSource;
public GalTextureSource WSource;
public GalImage(
int Width,
int Height,
2018-08-23 02:54:15 +00:00
int Depth,
GalImageFormat Format,
2018-08-23 02:54:15 +00:00
GalImageTarget Target,
GalTextureSource XSource = GalTextureSource.Red,
GalTextureSource YSource = GalTextureSource.Green,
GalTextureSource ZSource = GalTextureSource.Blue,
GalTextureSource WSource = GalTextureSource.Alpha)
{
this.Width = Width;
this.Height = Height;
2018-08-23 02:54:15 +00:00
this.Depth = Depth;
this.Format = Format;
2018-08-23 02:54:15 +00:00
this.Target = Target;
this.XSource = XSource;
this.YSource = YSource;
this.ZSource = ZSource;
this.WSource = WSource;
}
}
}