NSight图形调试无法启动 [英] NSight Graphics Debugging cannot start

查看:94
本文介绍了NSight图形调试无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用NSight在VS2012中调试HLSL着色器,但无法启动.

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

当我单击开始图形调试"时,似乎启动了应用程序片刻,然后将其关闭(NSight的输出窗口显示了几行着色器已加载"/着色器已卸载"行).Windows事件日志不显示任何内容("NVIDIA Network Service"无法启动,但据我所知,这与更新有关.)

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).

另一方面,如果我开始进行GPU性能分析,那么它将运行正常.

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?

或者,还有其他方法可以在Windows上(可能在Visual Studio之外)调试HLSL着色器吗?

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

推荐答案

Visual Studio 2012和2013具有自己的图形调试引擎.这是相当不错的,尤其是在使用Windows 8.1的VS2013中,但是我相信它也应该在VS2012 + Win7上也可以使用.您可以从调试"->图形"->启动诊断"启动诊断会话.应用程序运行后,捕获一个框架并在诊断工具中将其打开.您可以查看缓冲区内容,纹理,甚至是单步着色器.

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.

存在一些错误和局限性,但最好的情况下,它的效果很好.我也尝试过NSight和PerfStudio,但从来没有像VS那样能使它们正常工作.

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.

这篇关于NSight图形调试无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆