NSight Graphics Debugging cannot start

自闭症网瘾萝莉.ら 提交于 2020-04-30 07:43:07

问题


I am trying to debug a HLSL shader in VS2012 using NSight, but it can't start.

When I click on "Start Graphics Debugging", it seems like it starts the app for a moment, and then closes it (output windows from NSight shows several "shader loaded"/"shader unloaded" lines). Windows Event log doesn't show anything (except "NVIDIA Network Service" failing to start, but if I understood well, this is something related to updates).

On the other hand, if I start GPU Perfomannce analysis, then it runs fine.

Is there a place where I could see a log or something?

Alternatively, are there other ways to debug a HLSL shader on Windows, perhaps outside Visual Studio?


回答1:


Visual Studio 2012 and 2013 have their own graphics debugging engine. It's pretty good, especially with VS2013 when using Windows 8.1, but I believe it should work on VS2012 + Win7 as well. You can start a diagnostics session from Debug->Graphics->Start Diagnostics. Once your app is running, capture a frame and open it in the diagnostics tool. You can view buffer contents, textures and even single-step shaders.

There are some bugs and limitations, but at its best it works great. I've tried NSight and PerfStudio as well but never could get them to work as well as VS.



来源:https://stackoverflow.com/questions/31247966/nsight-graphics-debugging-cannot-start

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