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.
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.