Typo + Format
This commit is contained in:
parent
0f8bf07d05
commit
66d500bb50
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue