Fix non atomic image loads again

This commit is contained in:
Isaac Marovitz 2024-08-01 18:40:34 +01:00 committed by Isaac Marovitz
parent 068a83bdfb
commit 29e6f17978

View file

@ -253,13 +253,12 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl.Instructions
texCallBuilder.Append($"{prefix}4({string.Join(", ", cElems)})"); texCallBuilder.Append($"{prefix}4({string.Join(", ", cElems)})");
texCallBuilder.Append(", "); texCallBuilder.Append(", ");
texCallBuilder.Append(coordsBuilder);
} }
texCallBuilder.Append(coordsBuilder);
if (texOp.Inst == Instruction.ImageAtomic) if (texOp.Inst == Instruction.ImageAtomic)
{ {
// Atomics do (coord, value)
texCallBuilder.Append(coordsBuilder);
texCallBuilder.Append(", "); texCallBuilder.Append(", ");
AggregateType type = texOp.Format.GetComponentType(); AggregateType type = texOp.Format.GetComponentType();