Sign in to follow this  

HLSL debugger appears confused

This topic is 1757 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

As I'm getting back into coding again after a break since before DX10, I'm currently struggling to get the most fundamental things working. One of my problem is that a quad I'm rendering refuses to render in anything but black.

I've tried using the HLSL debugger to see what my very simple vertex shader does, but it's kind of useless... Please see the attached picture.

Can someone explain why the left pane shows the correct data, but the watches in the debugger shows everything as 0 ? Is there a fix for this?

 

[attachment=14456:Untitled.png]

Share this post


Link to post
Share on other sites

HLSL compiler might have reordered your code. If you attempt to debug optimized shader it usually jumps all over the place for no reason, you'll need to completely disable optimizations if you want to debug like this, but there's no point if you already see result on the left.

Share this post


Link to post
Share on other sites
Sign in to follow this