diff --git a/Ryujinx.Graphics.Texture/Astc/AstcDecoder.cs b/Ryujinx.Graphics.Texture/Astc/AstcDecoder.cs index dbc1a57778..202df1ab66 100644 --- a/Ryujinx.Graphics.Texture/Astc/AstcDecoder.cs +++ b/Ryujinx.Graphics.Texture/Astc/AstcDecoder.cs @@ -339,7 +339,7 @@ namespace Ryujinx.Graphics.Texture.Astc int partitionIndex; Span colorEndpointMode = stackalloc uint[4]; - var colorEndpointStream = new BitStream128(); + BitStream128 colorEndpointStream = new BitStream128(); // Read extra config data... uint baseColorEndpointMode = 0; @@ -488,7 +488,7 @@ namespace Ryujinx.Graphics.Texture.Astc unsafe { _ = &texelWeightValues; } // Skip struct initialization texelWeightValues.Reset(); - var weightBitStream = new BitStream128(texelWeightData); + BitStream128 weightBitStream = new BitStream128(texelWeightData); IntegerEncoded.DecodeIntegerSequence(ref texelWeightValues, ref weightBitStream, texelParams.MaxWeight, texelParams.GetNumWeightValues()); diff --git a/Ryujinx.Graphics.Texture/Astc/BitStream.cs b/Ryujinx.Graphics.Texture/Astc/BitStream128.cs similarity index 100% rename from Ryujinx.Graphics.Texture/Astc/BitStream.cs rename to Ryujinx.Graphics.Texture/Astc/BitStream128.cs diff --git a/Ryujinx.Graphics.Texture/Astc/IntegerEncoded.cs b/Ryujinx.Graphics.Texture/Astc/IntegerEncoded.cs index e6858e25bd..065de46be9 100644 --- a/Ryujinx.Graphics.Texture/Astc/IntegerEncoded.cs +++ b/Ryujinx.Graphics.Texture/Astc/IntegerEncoded.cs @@ -1,9 +1,5 @@ -using Ryujinx.Common.Utilities; -using System; -using System.Diagnostics; +using System; using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; namespace Ryujinx.Graphics.Texture.Astc { @@ -168,6 +164,7 @@ namespace Ryujinx.Graphics.Texture.Astc BitValue = m[i], QuintValue = encodings[i] }; + listIntegerEncoded.Add(ref intEncoded); } }