Sign in to follow this  
neeker

HLSL discard and PIX

Recommended Posts

Hi,

 

Just a general question.  In my PS 2.0 shader I was using discard on certain pixels and noticed a bunch of other pixels being discarded as well.  When I used PIX to try to determine what was happening, it didn't show the shader being ran for these pixels.  I know the problem was in the shader (because I've fixed the problem), but I'm wondering if this is normal behavior for PIX (or a bug)?

Share this post


Link to post
Share on other sites

Pix uses an emulator for shaders.

 

I have had many cases where code works perfectly in pix, and fails on the real hardware.

 

I've also had cases of parts of the render loop going "missing" from pix.

 

Pix is a great tool, but you cannot rely on it, and it's pretty much dead as Microshaft have moved on and left it behind.

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