Sign in to follow this  
TobiasK

HLSL debugger appears confused

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

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