Jump to content
  • Advertisement

DX11 Direct 3D 11 Shader Debugging with NSight

Recommended Posts

I am trying to debug D3D11 shader bytecode without source. 

According to this page:


This should be possible, under 'Byte Code Debugging'

However it doesn't actually say how to start debugging them.

I Ctrl-Z the app and hit Space to capture a frame. Then in Windows->Shaders I choose the pixel shader to debug (while having the draw call that uses that shader selected in the scrubber). 

The next step it says to choose Windows -> Choose Graphics Focus, but that doesn't exist in the latest version(?)

I can set breakpoints in the shader bytecode file that comes up when clicking through to the shader, however they are never hit.

What am I missing?

Has anyone successfully done this?

Is there any software you can debug/breakpoint shader bytecode and see registers after each instruction etc?

Share this post

Link to post
Share on other sites

I never managed to use Nsight for shader debugging. I never got my way around that tool, it's a bit cluttered.
For D3D11, I've always been using the built-in graphics debugger in Visual Studio. I think that one is pretty good ans it allows you to step in shaders. You can find it under Debug > Graphics > Start Graphics Debugging in the toolbar.
For D3D12, I use PIX, which is by far the best graphics debugger I've ever tried but it only works on D3D12 AFAIK.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!