How to debug a GLSL shader?

后端 未结 11 1354
青春惊慌失措
青春惊慌失措 2020-11-28 17:38

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 ?

11条回答
  •  抹茶落季
    2020-11-28 18:17

    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.

提交回复
热议问题