How to manage the Z buffer with DirectX 10?
Tutorial 05 demonstrate how to create and use a z buffer.