Add a linter hook for GLSL shader programs.
Description
Linting our GLSL programs could help us save time and ensure better cross-platform compatibility.
It also avoids us from resorting to ugly ineffective solutions such as Hungarian notation.
Proposal
Use glslang which is the reference glsl compiler developed by the Khronos group.
Khronos' binaries provide a command named glslangValidator
which takes any shader as an input and detects compile errors.
The hook should be enabled on the CI but should be optional for developers (but required if you write GLSL code).