support multiple render targets & fix: incorrect texture name

This commit is contained in:
Samuliak 2024-05-20 18:38:08 +02:00 committed by Isaac Marovitz
parent 21029e895a
commit f08d3a7517
3 changed files with 6 additions and 4 deletions

View file

@ -197,7 +197,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl
{
IoVariable.Position => "position",
IoVariable.PointSize => "point_size",
IoVariable.FragmentOutputColor => "color",
IoVariable.FragmentOutputColor => $"color{ioDefinition.Location}",
_ => $"{DefaultNames.OAttributePrefix}{ioDefinition.Location}"
};
string suffix = ioDefinition.IoVariable switch