Fix non atomic image loads again

This commit is contained in:
Isaac Marovitz 2024-08-01 18:40:34 +01:00
parent 4fed5634c2
commit 8674ea6752
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 2 additions and 3 deletions

View File

@ -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();