Only declare main func out in main

This commit is contained in:
Isaac Marovitz 2024-06-22 12:29:22 +01:00
commit 308afdd8ab
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1

View file

@ -70,7 +70,6 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl
{
DeclareMemories(context, context.Properties.LocalMemories.Values, isShared: false);
DeclareMemories(context, context.Properties.SharedMemories.Values, isShared: true);
}
switch (stage)
{
@ -81,6 +80,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl
context.AppendLine("FragmentOut out;");
break;
}
}
foreach (AstOperand decl in function.Locals)
{