I need to debug a GLSL program but I don\'t know how to output intermediate result.
Is it possible to make some debug traces (like with printf) with GLSL ?
The GLSL Shader source code is compiled and linked by the graphics driver and executed on the GPU.
If you want to debug the shader, then you have to use graphics debugger like RenderDoc or NVIDIA Nsight.