Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The following code example shows how to use the IDirect3DMobileDevice::GetDepthStencilSurfacemethod to retrieve a pointer to the depth-buffer surface owned by the device.

Copy Code
	IDirect3DMobileSurface** pZBuffer;

	m_d3dmDevice->GetDepthStencilSurface( &pZBuffer );

See Also

Concepts

Depth Buffers