Reworked depth textures to support compare mode