mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-28 03:23:05 +00:00
Fix sample-less reads with lod
This commit is contained in:
parent
970914e2b4
commit
362672ae12
1 changed files with 8 additions and 1 deletions
|
@ -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 a new issue