1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-24 07:26:03 +00:00

Fix sample-less reads with lod

This commit is contained in:
Isaac Marovitz 2024-05-30 02:23:37 +01:00 committed by Isaac Marovitz
parent 970914e2b4
commit 362672ae12

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