如何使用Nsight调试(GLSL)着色器? [英] How to debug (GLSL) shaders using Nsight?

查看:1426
本文介绍了如何使用Nsight调试(GLSL)着色器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Nsight调试glsl着色器?

How can I debug glsl shaders using Nsight?

我正在使用Nsight Visual Studio Edition 5.2.我尝试使用Nsight Visual Studio Edition 5.1.这些都不起作用.我的意思是我已经尝试过使用这种方法,但它不起作用:

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. 打开Visual Studio项目
  2. 从菜单中选择"Nsight",然后选择开始图形调试"
  3. 让程序运行一段时间
  4. 按"Ctrl + Z"
  5. 按空格"
  6. 在Visual Studio中转到"API检查器"
  7. 从左侧栏中选择程序"
  8. 从链接的着色器状态"中选择一个源"
  9. 放置一个断点,就像我调试Visual Studio时一样

然后再说.我放置的断点被图标化为警告,每当我将其悬停在该断点上时,都会发生错误,该断点当前将被命中.此GPU不支持Shader Debugging"

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"

此处是链接 Nsight Visual Studio Edition 5.2支持的所有图形卡.

Here is the link for all the supported graphics cards for Nsight Visual Studio Edition 5.2.

我的显卡是NVIDIA GEFORCE GTX 970M(笔记本)

My graphics card is NVIDIA GEFORCE GTX 970M (Notebook)

我当前正在使用Visual Studio 2015 Enterprise

I'm currently using Visual Studio 2015 Enterprise

推荐答案

不幸的是:

始于:2016年6月22日

from: 06/22/2016

Maxwell [GTX9xx]不支持着色器调试器,只有Kepler和Fermi GPU支持着色器调试.

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/

开普勒(Kepler)系列GPU上的Direct3D 11和OpenGL支持着色器调试. Direct3D 12和Vulkan API和Maxwell&即将发布的版本将支持Pascal系列GPU.

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-版本功能

这篇关于如何使用Nsight调试(GLSL)着色器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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