misc: chore: Use collection expressions in Gpu project

This commit is contained in:
Evan Husted
2025-01-26 15:49:22 -06:00
parent ae90db2040
commit aa0cb50c5d
41 changed files with 365 additions and 304 deletions

View File

@@ -10,8 +10,8 @@ namespace Ryujinx.Graphics.Gpu.Image
/// </summary>
struct SamplerDescriptor
{
private static readonly float[] _f5ToF32ConversionLut = new float[]
{
private static readonly float[] _f5ToF32ConversionLut =
[
0.0f,
0.055555556f,
0.1f,
@@ -43,13 +43,13 @@ namespace Ryujinx.Graphics.Gpu.Image
0.45833334f,
0.46153846f,
0.4642857f,
0.46666667f,
};
0.46666667f
];
private static readonly float[] _maxAnisotropyLut = new float[]
{
1, 2, 4, 6, 8, 10, 12, 16,
};
private static readonly float[] _maxAnisotropyLut =
[
1, 2, 4, 6, 8, 10, 12, 16
];
private const float Frac8ToF32 = 1.0f / 256.0f;