Fix sample-less reads with lod

This commit is contained in:
Isaac Marovitz 2024-05-30 02:23:37 +01:00
parent fdfd457d6e
commit 66f68e08a3
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 8 additions and 1 deletions

View File

@ -292,9 +292,16 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl.Instructions
} }
if (hasLodLevel) if (hasLodLevel)
{
if (intCoords)
{
Append(Src(coordType));
}
else
{ {
Append($"level({Src(coordType)})"); Append($"level({Src(coordType)})");
} }
}
// TODO: Support offsets // TODO: Support offsets