From e44a43c7e1ee0b25ef93a9419dbd6ac2eb7665b5 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Fri, 8 Apr 2022 07:42:39 -0300 Subject: Implement VMAD shader instruction and improve InvocationInfo and ISBERD handling (#3251) * Implement VMAD shader instruction and improve InvocationInfo and ISBERD handling * Shader cache version bump * Fix typo --- Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Shader/CodeGen') diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs index b1bd8188..2d6607ad 100644 --- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs +++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs @@ -250,9 +250,9 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl : "gl_SubgroupInvocationID"; } - // TODO: There must be a better way to handle this... if (config.Stage == ShaderStage.Fragment) { + // TODO: There must be a better way to handle this... switch (value) { case AttributeConsts.PositionX: return $"(gl_FragCoord.x / {DefaultNames.SupportBlockRenderScaleName}[0])"; -- cgit v1.2.3