What is a recommended tool for debugging shaders that I am writing for DirectX?
2011-04-24 00:07
435 查看
微博字数限制,不爽,但是不限制的话就不是微博了,呵呵。
http://www.gamedev.net/topic/587926-directx-11-shader-debugging/
Q:What is a recommended tool for debugging shaders that I am writing for DirectX? There is two steps that I would like to debug a shader, compiling errors and values during run time.
A:
Use the command line compiler fxc.exe which is included in the sdk to compile shaders. It works like a normal compiler and has lots of options.
PIX is a great debugging tool for figuring out errors in pipeline setup, textures, and other resources and can be used to debug shader issues, although you can't step through your shader line by line. PIX is also in the SDK.
NVIDIA has a tool for debugging shaders. However it requires two machines, one for rendering and one for debugging. You have to select the pixel or vertex that you want to debug for a draw call. It's pretty hardcore and probably only worth it for the most complex shader issues where other debugging attempts have failed.
AMD has GPUPerfStudio which you can use to debug the shader pipeline. It's sort of an alternate version of PIX, though it comes with counters so that you can work on optimization.
Microsoft: GPUView - performance analyzer. Shows how long API calls take and how long work packets take on the GPU. Really good for optimizing the entire program with ns resolution.
http://www.gamedev.net/topic/587926-directx-11-shader-debugging/
Q:What is a recommended tool for debugging shaders that I am writing for DirectX? There is two steps that I would like to debug a shader, compiling errors and values during run time.
A:
Use the command line compiler fxc.exe which is included in the sdk to compile shaders. It works like a normal compiler and has lots of options.
PIX is a great debugging tool for figuring out errors in pipeline setup, textures, and other resources and can be used to debug shader issues, although you can't step through your shader line by line. PIX is also in the SDK.
NVIDIA has a tool for debugging shaders. However it requires two machines, one for rendering and one for debugging. You have to select the pixel or vertex that you want to debug for a draw call. It's pretty hardcore and probably only worth it for the most complex shader issues where other debugging attempts have failed.
AMD has GPUPerfStudio which you can use to debug the shader pipeline. It's sort of an alternate version of PIX, though it comes with counters so that you can work on optimization.
Microsoft: GPUView - performance analyzer. Shows how long API calls take and how long work packets take on the GPU. Really good for optimizing the entire program with ns resolution.
相关文章推荐
- What is the best way to calculate a checksum for a file that is on my machine?
- GMail is great, but what I am really looking for is myKM service!
- A ship is always safe at the shore - but that is not what it is built for.
- vmware-tool 安装缺少头文件 What is the location of the directory of C header files that match your running
- Question 30: What is the order of destructor calls for an object of class Y inherited from class X that has an object of class A
- Transmitting Network Data Using Volley - Volley is an HTTP library that makes networking for Android
- Qt中次线程里创建对象,出现Cannot create children for a parent that is in a different thread
- What can I learn right now in just 10 minutes that could be useful for the rest of my life?
- What is the difference between max-device-width and max-width for mobile web?
- What is the future for ABAPers?
- the name or security ID(SID) of the domain specified is inconsistent with the trust information for that domain
- ZOJ 3785 What day is that day?(循环节找规律)
- Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in
- The Mt.exe file is a tool that generates signed files and catalogs
- ACM刷题之ZOJ————What day is that day?
- What is DirectX
- The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
- QThread报错: Cannot create children for a parent that is
- VMware虚拟机ubuntu和主操作系统硬盘之间的文件共享的实现和What is the location of the directory of C header files that match your running问题的解决办法
- What is the largest TCP/IP network port number allowable for IPv4