Only declare main func out in main
This commit is contained in:
parent
a6ff9be85f
commit
308afdd8ab
1 changed files with 9 additions and 9 deletions
|
@ -70,16 +70,16 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl
|
||||||
{
|
{
|
||||||
DeclareMemories(context, context.Properties.LocalMemories.Values, isShared: false);
|
DeclareMemories(context, context.Properties.LocalMemories.Values, isShared: false);
|
||||||
DeclareMemories(context, context.Properties.SharedMemories.Values, isShared: true);
|
DeclareMemories(context, context.Properties.SharedMemories.Values, isShared: true);
|
||||||
}
|
|
||||||
|
|
||||||
switch (stage)
|
switch (stage)
|
||||||
{
|
{
|
||||||
case ShaderStage.Vertex:
|
case ShaderStage.Vertex:
|
||||||
context.AppendLine("VertexOut out;");
|
context.AppendLine("VertexOut out;");
|
||||||
break;
|
break;
|
||||||
case ShaderStage.Fragment:
|
case ShaderStage.Fragment:
|
||||||
context.AppendLine("FragmentOut out;");
|
context.AppendLine("FragmentOut out;");
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (AstOperand decl in function.Locals)
|
foreach (AstOperand decl in function.Locals)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue