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. 
  • 相关阅读:
    洛谷 P1032 子串变换
    RCTF 2017 easyre153
    SUCTF 2016 : dMd
    南邮 base64全家桶
    洛谷 P1908 逆序对
    2019中山大学程序设计竞赛 Triangle
    WhiteHat Contest 11 : re1100
    P1010 幂次方
    洛谷 P1088 火星人
    南邮 骚年来一发吗
  • 原文地址:https://www.cnblogs.com/lai3d/p/2025991.html
Copyright © 2011-2022 走看看