mirror of https://github.com/Ryujinx/Ryujinx.git
Fix sample-less reads with lod
This commit is contained in:
parent
fdfd457d6e
commit
66f68e08a3
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue