Fix fragment shaders (and fuck everything up)

This commit is contained in:
Isaac Marovitz 2023-10-10 20:00:56 -04:00 committed by Isaac Marovitz
parent 2890fc1069
commit 511db833db
4 changed files with 21 additions and 6 deletions

View file

@ -70,7 +70,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl.Instructions
{
return $"{op} {GetSourceExpr(context, operation.GetSource(0), context.CurrentFunction.ReturnType)}";
}
else if (inst == Instruction.Return && context.Definitions.Stage == ShaderStage.Vertex)
if (inst == Instruction.Return && context.Definitions.Stage is ShaderStage.Vertex or ShaderStage.Fragment)
{
return $"{op} out";
}