1

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

genpfault
  • 51,148
  • 11
  • 85
  • 139
JekasG
  • 161
  • 1
  • 5
  • 14
  • https://developer.nvidia.com/nsight-visual-studio-edition-supported-gpus-full-list Looks like your ASUSTeK COMPUTER INC. G751JT should work. Make sure you have the latest drivers straight from nvidia. – xaxxon Sep 16 '16 at 02:59
  • Yeah i have installed the latest drivers – JekasG Sep 16 '16 at 03:14

1 Answers1

0

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

Community
  • 1
  • 1
xaxxon
  • 19,189
  • 5
  • 50
  • 80