glslLangValidator: OpenGL / OpenGL ES Reference Compiler

glslLangValidator is GLSL tool for Windows / Linux released by the Khronos Group. glslLangValidator is the official reference compiler front end for both OpenGL ES and OpenGL shading languages. It implements a strict interpretation of the specifications for these languages. It is open and free for anyone to use, either from a command line or programmatically.

According to the documentation, the current version of glslangValidator supports GLSL shaders up to GLSL #version 1.40 / OpenGL 3.1 (so why it tells that version 140 is not yet complete? Is it related to the machine I currently use to write this new?).

Using the -i option, you can generate the intermediate tree (glslang AST, AST is the not structured flow control representation of the GLSL shader). The tree of our vertex shader is: