From d1ab9fb42c2fd9f018d4410ca619cd66294eafc9 Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Thu, 26 Dec 2019 23:09:49 -0700 Subject: ASTC optimizations (#845) * ASTC optimizations * Move code to Ryujinx.Common * Support 3D textures * Address feedback * Remove ASTC logging * Use stackalloc instead of a Buffer20 struct * Code style and cleanup * Respond to feedback * Rearrange public/private property ordering --- Ryujinx.Graphics.Gpu/Image/Texture.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Gpu/Image') diff --git a/Ryujinx.Graphics.Gpu/Image/Texture.cs b/Ryujinx.Graphics.Gpu/Image/Texture.cs index 11855592..b939e0b2 100644 --- a/Ryujinx.Graphics.Gpu/Image/Texture.cs +++ b/Ryujinx.Graphics.Gpu/Image/Texture.cs @@ -7,6 +7,7 @@ using Ryujinx.Graphics.Texture.Astc; using System; using System.Collections.Generic; using System.Diagnostics; +using Ryujinx.Common.Logging; namespace Ryujinx.Graphics.Gpu.Image { @@ -246,7 +247,7 @@ namespace Ryujinx.Graphics.Gpu.Image if (!_context.Capabilities.SupportsAstcCompression && _info.FormatInfo.Format.IsAstc()) { if (!AstcDecoder.TryDecodeToRgba8( - data, + data.ToArray(), _info.FormatInfo.BlockWidth, _info.FormatInfo.BlockHeight, _info.Width, -- cgit v1.2.3