问题
How can I debug glsl shaders using Nsight?
I am using Nsight Visual Studio Edition 5.2. I've tried using Nsight Visual Studio Edition 5.1. These both don't work. What I mean is that I've tried using this method and it doesn't work:
- Open Visual Studio Project
- Select "Nsight" from Menu and "Start Graphics Debugging"
- Let the program run for a while
- Press "Ctrl+Z"
- Press "Space"
- Go to "API Inspector" in Visual Studio
- Select "Program" from left side bar
- Select a "Source" from "Linked Shader State"
- Place a breakpoint, exactly as I would when I debug for Visual Studio
Then after all that. The breakpoint that I've placed is icon-ed as a warning and errors this whenever I hover over it, "The breakpoint will currently be hit. Shader Debugging is not supported for this GPU"
Here is the link for all the supported graphics cards for Nsight Visual Studio Edition 5.2.
My graphics card is NVIDIA GEFORCE GTX 970M (Notebook)
I'm currently using Visual Studio 2015 Enterprise
回答1:
Unfortunately:
from: 06/22/2016
Maxwell[GTX9xx] doesn’t support shader debugger, only Kepler and Fermi GPU support shader debug.
https://devtalk.nvidia.com/default/topic/945730/graphics-card-for-shader-debugging-hlsl-directx11/
edit:
Shader debugging is supported on Kepler family GPUs for Direct3D 11 and OpenGL. Direct3D 12 & Vulkan APIs and Maxwell & Pascal family GPUs will be supported in upcoming releases.
https://developer.nvidia.com/nsight-visual-studio-edition-features
来源:https://stackoverflow.com/questions/39522520/how-to-debug-glsl-shaders-using-nsight