mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
Use new LINQ Order() methods (#3851)
This commit is contained in:
parent
f1d1670b0b
commit
b96794e72b
2 changed files with 3 additions and 3 deletions
|
@ -525,7 +525,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
|
||||||
|
|
||||||
private static void DeclareInputAttributesPerPatch(CodeGenContext context, HashSet<int> attrs)
|
private static void DeclareInputAttributesPerPatch(CodeGenContext context, HashSet<int> attrs)
|
||||||
{
|
{
|
||||||
foreach (int attr in attrs.OrderBy(x => x))
|
foreach (int attr in attrs.Order())
|
||||||
{
|
{
|
||||||
DeclareInputAttributePerPatch(context, attr);
|
DeclareInputAttributePerPatch(context, attr);
|
||||||
}
|
}
|
||||||
|
@ -658,7 +658,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
|
||||||
|
|
||||||
private static void DeclareUsedOutputAttributesPerPatch(CodeGenContext context, HashSet<int> attrs)
|
private static void DeclareUsedOutputAttributesPerPatch(CodeGenContext context, HashSet<int> attrs)
|
||||||
{
|
{
|
||||||
foreach (int attr in attrs.OrderBy(x => x))
|
foreach (int attr in attrs.Order())
|
||||||
{
|
{
|
||||||
DeclareOutputAttributePerPatch(context, attr);
|
DeclareOutputAttributePerPatch(context, attr);
|
||||||
}
|
}
|
||||||
|
|
|
@ -207,7 +207,7 @@ namespace Ryujinx.Graphics.Shader.Translation
|
||||||
|
|
||||||
if (context.Config.NextUsedInputAttributesPerPatch != null)
|
if (context.Config.NextUsedInputAttributesPerPatch != null)
|
||||||
{
|
{
|
||||||
foreach (int vecIndex in context.Config.NextUsedInputAttributesPerPatch.OrderBy(x => x))
|
foreach (int vecIndex in context.Config.NextUsedInputAttributesPerPatch.Order())
|
||||||
{
|
{
|
||||||
InitializeOutput(context, AttributeConsts.UserAttributePerPatchBase + vecIndex * 16, perPatch: true);
|
InitializeOutput(context, AttributeConsts.UserAttributePerPatchBase + vecIndex * 16, perPatch: true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue