diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-04-08 17:09:41 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-04-08 17:09:41 -0300 |
| commit | 36dfd20c879967fc67721ed46ac773d341aa80d9 (patch) | |
| tree | 6f7569630d5cf5955358bc4ebcc0705f16912065 /Ryujinx.Graphics/Gpu/Texture.cs | |
| parent | b9aa3966c00b4bb3ff0292dc28ed53ad26cf284b (diff) | |
Use correct pitch value when decoding linear swizzle textures
Diffstat (limited to 'Ryujinx.Graphics/Gpu/Texture.cs')
| -rw-r--r-- | Ryujinx.Graphics/Gpu/Texture.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/Gpu/Texture.cs b/Ryujinx.Graphics/Gpu/Texture.cs index c8d4e527..831c664d 100644 --- a/Ryujinx.Graphics/Gpu/Texture.cs +++ b/Ryujinx.Graphics/Gpu/Texture.cs @@ -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; |
