Code style and cleanup

This commit is contained in:
Alex Barney 2019-12-19 17:25:55 -06:00
parent 0b3e6afbe2
commit aab41e5ee0
3 changed files with 4 additions and 7 deletions

View file

@ -339,7 +339,7 @@ namespace Ryujinx.Graphics.Texture.Astc
int partitionIndex;
Span<uint> 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());

View file

@ -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);
}
}