Doc++

Also remove redundant preprocessor branches.
Implemented depth texture compare mode and function.