Typo + Format

This commit is contained in:
Isaac Marovitz 2023-10-09 15:07:23 -04:00 committed by Isaac Marovitz
parent d0bbc970eb
commit 4ca8ae1ac3
2 changed files with 3 additions and 2 deletions

View file

@ -28,7 +28,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl
*
* Metal does not have a combined image sampler like sampler2D in GLSL, as a result we need to bind
* an individual texture and a sampler object for each instance of a combined image sampler.
* Therefore, he binding indices of straight up textures (i.e. without a sampler) must start
* Therefore, the binding indices of straight up textures (i.e. without a sampler) must start
* after the last sampler/texture pair (n + Number of Pairs).
*
* Uniforms

View file

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