Jump to content
  • Advertisement
Sign in to follow this  
TobiasK

HLSL debugger appears confused

This topic is 1940 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
Advertisement

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  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!