zoukankan      html  css  js  c++  java
  • What is a recommended tool for debugging shaders that I am writing for DirectX?

     微博字数限制,不爽,但是不限制的话就不是微博了,呵呵。

     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. 
  • 相关阅读:
    没有完成的题目
    哈尔滨工程大学 ACM online contest 1008 how many
    POJ 2976 分数规划
    长沙理工 ACM 数位 DP 1488
    POJ 2663
    USETC 1821 AC 自动机
    长沙理工 ACM 分数规划 1494
    正则表达式基础知识(转)
    上传头像代码
    datalist 分页(转)
  • 原文地址:https://www.cnblogs.com/lai3d/p/2025991.html
Copyright © 2011-2022 走看看