OpenGL Shader Debugging

OpenGL Shader Debugging
调试OpenGL和Shader

NVDIA Nsight Shader Debugger

  • NVIDIA Nsight Shader Debugger 工具可以让你对所有GLSL Shader进行源码级别的调试.
  • 除了OpenGL4.3的计算着色器.

如何使用

  1. 打开你要调试的图形学工程;
  2. 从Nsight的菜单栏. 选择 Windows > Shaders . 从中
    可以在VS中打开 Shaders

OpenGL Shader Debugging

以下表格展示了可能的状态:

Status Meaning
Ready The shader can be debugged (着色器可以被调试)
Shader has not yet been used by the application (着色器还未被应用程序使用) The shader is created, but it has not been used by the application. That means that it cannot yet be debugged (着色器已经被创建,但是未被使用.无法调试)
No symbols have been loaded for this shader(没有符号被载入) The shader cannot yet be debugged. This usually happens during startup when the debugger is still loading a defined shader, but has not yet loaded the debug symbolics required for debugging(这个着色器无法被调试.通常发生在调试器正在载入)
Not a debuggable shader(不是一个可调试的着色器) The shader cannot be debugged. The shader was likely submitted as a binary shader compiled without debug information, which means that the instructions being executed cannot be mapped to the original GLSL source code(着色器无法被调试)
  1. 为了看某个特定的着色器源码. 打开Shader View. 点击 hyperlink .
    OpenGL Shader Debugging

Debugging OpenGL 4.2 - NVIDIA Nsight Visual Studio Edition 3.2

官方**** 地址