2018-04-08 20:17:35 +01:00
|
|
|
using Ryujinx.Graphics.Gal;
|
|
|
|
|
2018-06-24 01:39:25 +01:00
|
|
|
namespace Ryujinx.HLE.Gpu.Texture
|
2018-04-08 20:17:35 +01:00
|
|
|
{
|
2018-06-24 01:39:25 +01:00
|
|
|
struct TextureInfo
|
2018-04-08 20:17:35 +01:00
|
|
|
{
|
|
|
|
public long Position { get; private set; }
|
|
|
|
|
|
|
|
public int Width { get; private set; }
|
|
|
|
public int Height { get; private set; }
|
2018-04-08 21:09:41 +01:00
|
|
|
public int Pitch { get; private set; }
|
2018-04-08 20:17:35 +01:00
|
|
|
|
|
|
|
public int BlockHeight { get; private set; }
|
|
|
|
|
|
|
|
public TextureSwizzle Swizzle { get; private set; }
|
|
|
|
|
|
|
|
public GalTextureFormat Format { get; private set; }
|
|
|
|
|
2018-06-24 01:39:25 +01:00
|
|
|
public TextureInfo(
|
2018-04-13 19:12:58 +01:00
|
|
|
long Position,
|
|
|
|
int Width,
|
|
|
|
int Height)
|
|
|
|
{
|
|
|
|
this.Position = Position;
|
|
|
|
this.Width = Width;
|
|
|
|
this.Height = Height;
|
|
|
|
|
|
|
|
Pitch = 0;
|
|
|
|
|
|
|
|
BlockHeight = 16;
|
|
|
|
|
|
|
|
Swizzle = TextureSwizzle.BlockLinear;
|
|
|
|
|
|
|
|
Format = GalTextureFormat.A8B8G8R8;
|
|
|
|
}
|
|
|
|
|
2018-06-24 01:39:25 +01:00
|
|
|
public TextureInfo(
|
2018-04-08 20:17:35 +01:00
|
|
|
long Position,
|
|
|
|
int Width,
|
|
|
|
int Height,
|
2018-04-08 21:09:41 +01:00
|
|
|
int Pitch,
|
2018-04-08 20:17:35 +01:00
|
|
|
int BlockHeight,
|
|
|
|
TextureSwizzle Swizzle,
|
|
|
|
GalTextureFormat Format)
|
|
|
|
{
|
|
|
|
this.Position = Position;
|
|
|
|
this.Width = Width;
|
|
|
|
this.Height = Height;
|
2018-04-08 21:09:41 +01:00
|
|
|
this.Pitch = Pitch;
|
2018-04-08 20:17:35 +01:00
|
|
|
this.BlockHeight = BlockHeight;
|
|
|
|
this.Swizzle = Swizzle;
|
|
|
|
this.Format = Format;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|