How to debug (GLSL) shaders using Nsight?

时光总嘲笑我的痴心妄想 提交于 2019-12-24 10:26:41

问题


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:

  1. Open Visual Studio Project
  2. Select "Nsight" from Menu and "Start Graphics Debugging"
  3. Let the program run for a while
  4. Press "Ctrl+Z"
  5. Press "Space"
  6. Go to "API Inspector" in Visual Studio
  7. Select "Program" from left side bar
  8. Select a "Source" from "Linked Shader State"
  9. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!