Original Post
I want to be able to get values out of the depth buffer so i can speed up my terrain tile picker by using D3DXVec3Unproject.
I need the depth of the pixel that the mouse is over so i can parse unproject the distance from the screen.
So can a stencil buffer be used for this and if so how can i do it