Debugging plus
Nothing helped.
Then I noticed that in the pixel shader, I wrote
sample = tex2D( s0, uv + vSmpOffsets[i] )
instead of
sample += tex2D( s0, uv + vSmpOffsets[i] )
Aaargh. So much for a plus sign.
How to deal with such bugs? Why some bugs are trivial to find, and some are hard? Why sometimes (often?) the time required to find the bug does not correlate with bug’s “trickiness”? Why sometimes I can find a tricky bug in big unknown codebase in a couple of minutes; yet spend two hours on the plus sign in my own small code?
I’ve got no answers to the above.
By the way: PIX is a great tool, but D3D guys should really polish the UI :)
