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

By default, when depth-testing is performed on a rendering surface, Microsoft® Direct3D® Mobile updates the render-target surface if the corresponding depth value (z or w) for each point is less than the value in the depth buffer. In an application, you change how the system performs comparisons on depth values by calling the IDirect3DMobileDevice::SetRenderStatemethod with the Stateparameter set to D3DMRS_ZFUNC (see D3DMRENDERSTATETYPE). The Valueparameter should be set to a value in the D3DMCMPFUNCenumerated type.

See Also


Depth Buffers