misc: chore: Use collection expressions in Shader project
This commit is contained in:
@@ -1242,11 +1242,11 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
|
||||
|
||||
if (hasDerivatives)
|
||||
{
|
||||
derivatives = new[]
|
||||
{
|
||||
derivatives =
|
||||
[
|
||||
AssembleDerivativesVector(coordsCount), // dPdx
|
||||
AssembleDerivativesVector(coordsCount), // dPdy
|
||||
};
|
||||
AssembleDerivativesVector(coordsCount) // dPdy
|
||||
];
|
||||
}
|
||||
|
||||
SpvInstruction sample = null;
|
||||
@@ -1286,17 +1286,17 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
|
||||
|
||||
if (hasOffset)
|
||||
{
|
||||
offsets = new[] { AssembleOffsetVector(coordsCount) };
|
||||
offsets = [AssembleOffsetVector(coordsCount)];
|
||||
}
|
||||
else if (hasOffsets)
|
||||
{
|
||||
offsets = new[]
|
||||
{
|
||||
offsets =
|
||||
[
|
||||
AssembleOffsetVector(coordsCount),
|
||||
AssembleOffsetVector(coordsCount),
|
||||
AssembleOffsetVector(coordsCount),
|
||||
AssembleOffsetVector(coordsCount),
|
||||
};
|
||||
AssembleOffsetVector(coordsCount)
|
||||
];
|
||||
}
|
||||
|
||||
SpvInstruction lodBias = null;
|
||||
@@ -1327,7 +1327,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
|
||||
compIdx = Src(AggregateType.S32);
|
||||
}
|
||||
|
||||
List<SpvInstruction> operandsList = new();
|
||||
List<SpvInstruction> operandsList = [];
|
||||
ImageOperandsMask operandsMask = ImageOperandsMask.MaskNone;
|
||||
|
||||
if (hasLodBias)
|
||||
|
||||
Reference in New Issue
Block a user