Fix fragment shaders (and fuck everything up)
This commit is contained in:
parent
2890fc1069
commit
511db833db
4 changed files with 21 additions and 6 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue