You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found error while compiling fragment shader
0:6(26): error: syntax error, unexpected FLOATCONSTANT, expecting ')' or ','
Note that line 6 is the one with the macro expansion in it, and column 26 would be the closing parenthesis.
Of course I tested the above code with glslangValidator and it compiles without any errors. It even works on the website editor.thebookofshaders.com.
The text was updated successfully, but these errors were encountered:
slaimon
changed the title
Macro expansion causes syntax error
[BUG] macro expansion causes syntax error
Nov 22, 2023
This is the minimum code that reproduces the error on my platform:
glslViewer produces the following error message:
Note that line 6 is the one with the macro expansion in it, and column 26 would be the closing parenthesis.
Of course I tested the above code with glslangValidator and it compiles without any errors. It even works on the website editor.thebookofshaders.com.
The text was updated successfully, but these errors were encountered: