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
By default, Microsoft® Direct3D® Mobile is allowed to write to the depth buffer. Most applications leave writing to the depth buffer enabled, but you can achieve some special effects by not allowing the Direct3D Mobile middleware to write to the depth buffer.
You can disable depth buffer writes by calling the IDirect3DMobileDevice::SetRenderStatemethod with the Stateparameter set to D3DMRS_ZWRITEENABLE (see D3DMRENDERSTATETYPE) and the Valueparameter set to 0.