Fix fragment shaders (and fuck everything up)
This commit is contained in:
committed by
Evan Husted
parent
b3629e3a8b
commit
d45c7711ba
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user