So finally I'm trying to understand better the HLSL, so I would like to debug it or at least try to understand the behavior of each command.
I fired up pix took a snapshot and the amount of information is just staggering and I can't put 2 +2 together here. Help please.
how to use pix to debug hlsl?
1 reply to this topic
Members - Reputation: 405
Posted 07 July 2012 - 12:22 PM
I'm no expert, but I fiddled with it. As you can see you took a snapshot of a single frame, and you can see the timeline of all DirectX calls and more importantly draw calls. If you go to the bottom of the list, at the last draw call, you can see the final scene preview on the right. Right click on a pixel on the backbuffer there and select "debug this pixel", it will enter a line-per-line debugger of your hlsl shader with the values for this pixel.