I can do the following in my fragment shader with a nvidia 4.50 context:
int myChar = 65;
if (myChar == 'A')
Are string literals a nvidia feature or is it standard GLSL?
I can’t find anything about it in the specification.
What’s the minimum GLSL version to use character literals?
GLSL spec, section 3.1, says:
There are no character or string data types, so no quoting characters are included.
Character constants are not supported.
This is almost certainly a quirk of NVIDIA’s compiler.
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.