I recently used the depth bias field in the rasterizer state description to get rid of some z-fighting issues that I had. I drew some stuff, then changed the rasterizer state to a depth bias of -10, then drew other stuff. This eliminated any z fighting perfectly.
I have a question though. My next step will involving some more co-planer drawing, and I could simplify some things if I could allow these quads to overlap in places. Does the depth bias apply only to reads of the depth buffer? I'm not sure how to formulate this question... let me express what I want to do.
Can I, in the same draw call of many, possibly overlapping instanced quads, ensure that whatever is drawn after, or before, always wins the depth test? I just need one quad or the other to always win. It could be those drawn first or those drawn last. I'm unsure of exactly how the depth bias works.
Edited by cephalo, 23 June 2014 - 09:23 AM.