Microsoft DirectX 8.1 (C++)

Manipulating the Depth Buffer

Depth buffers are associated with the device. Applications are required to move the depth buffers when they set render targets. The IDirect3DDevice8::GetDepthStencilSurface and IDirect3DDevice8::SetRenderTarget methods are used to manipulate depth buffers.