mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-07 22:40:00 +02:00
Fix fragment ClipDistance SPIR-V lookup
- Fixed ClipDistance being treated as VTG gl_PerVertex block, Causing the lookup of Input.Position when it's undeclared.
This commit is contained in:
@@ -1790,7 +1790,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
|
|||||||
{
|
{
|
||||||
(_, varType) = IoMap.GetSpirvBuiltIn(ioVariable);
|
(_, varType) = IoMap.GetSpirvBuiltIn(ioVariable);
|
||||||
|
|
||||||
if (IoMap.IsPerVertexBuiltIn(ioVariable))
|
if (context.Definitions.Stage.IsVtg() && IoMap.IsPerVertexBuiltIn(ioVariable))
|
||||||
{
|
{
|
||||||
perVertexBuiltIn = ioVariable;
|
perVertexBuiltIn = ioVariable;
|
||||||
ioVariable = IoVariable.Position;
|
ioVariable = IoVariable.Position;
|
||||||
|
|||||||
Reference in New Issue
Block a user