Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

how to use pix to debug hlsl?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 winsrp   Members   

277
Like
0Likes
Like

Posted 07 July 2012 - 11:26 AM

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.

#2 Dunge   Members   

405
Like
0Likes
Like

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.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.