Jump to content
  • Advertisement
Sign in to follow this  

how to use pix to debug hlsl?

This topic is 2143 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!