Use correct pitch value when decoding linear swizzle textures

This commit is contained in:
gdkchan 2018-04-08 17:09:41 -03:00
parent b9aa3966c0
commit 36dfd20c87
4 changed files with 19 additions and 14 deletions

View file

@ -8,6 +8,7 @@ namespace Ryujinx.Graphics.Gpu
public int Width { get; private set; }
public int Height { get; private set; }
public int Pitch { get; private set; }
public int BlockHeight { get; private set; }
@ -19,6 +20,7 @@ namespace Ryujinx.Graphics.Gpu
long Position,
int Width,
int Height,
int Pitch,
int BlockHeight,
TextureSwizzle Swizzle,
GalTextureFormat Format)
@ -26,6 +28,7 @@ namespace Ryujinx.Graphics.Gpu
this.Position = Position;
this.Width = Width;
this.Height = Height;
this.Pitch = Pitch;
this.BlockHeight = BlockHeight;
this.Swizzle = Swizzle;
this.Format = Format;