This works for texture, framebuffer, depth, and stencil. Importantly, allows debugging the actual depth values present.