diff --git a/src/Ryujinx.Graphics.Shader/CodeGen/Msl/Instructions/InstGenMemory.cs b/src/Ryujinx.Graphics.Shader/CodeGen/Msl/Instructions/InstGenMemory.cs index 31f904787..005f5eafc 100644 --- a/src/Ryujinx.Graphics.Shader/CodeGen/Msl/Instructions/InstGenMemory.cs +++ b/src/Ryujinx.Graphics.Shader/CodeGen/Msl/Instructions/InstGenMemory.cs @@ -253,13 +253,12 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl.Instructions texCallBuilder.Append($"{prefix}4({string.Join(", ", cElems)})"); texCallBuilder.Append(", "); - texCallBuilder.Append(coordsBuilder); } + texCallBuilder.Append(coordsBuilder); + if (texOp.Inst == Instruction.ImageAtomic) { - // Atomics do (coord, value) - texCallBuilder.Append(coordsBuilder); texCallBuilder.Append(", "); AggregateType type = texOp.Format.GetComponentType();