It would be nice to have a possibility to declare #define-like constants from the main app code. This will allow for conditinal compiling of shader code without need for multiply sahders. Like:
- do some sort of advanced lighting
- simple lighting
I think this possibility will allow better interaction with extensions. For example, nvidia has it’s glslang implementation based on cg. One could test the presence of EXT_cg_shader and make use of mixed precision. This could be nice(from my point of view) mechanism for glslang extensions - you can write one shader that would handle everything.
Of cource, a workaround is to manually add #define lines into the code string. But it’s not so elegant.