PDA

View Full Version : Using GLSLang Validator



robinfaury
03-09-2016, 08:35 AM
Hi,

I want to use a compiled program but the glslang validator doesn't build if there are this kind of operator : ++, ^=, >>=

the shader is :
#version 150

out vec4 outColor;

void main() {
int i = 0;
++i;
outColor = vec4(1.0, 0.0, 0.0, 1.0);
}

The output is :
#version 150

out vec4 outColor;

void main(){
int i = 0;
<bad token> i;
outColor = vec4(1.0, 0.0, 0.0, 1.0);
}

Best regards,
Robin