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

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