Sign in to follow this  
winsrp

how to use pix to debug hlsl?

Recommended Posts

winsrp    277
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.

Share this post


Link to post
Share on other sites
Dunge    405
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this