Changing Depth Buffer Write Access
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::SetRenderState method with the State parameter set to D3DMRS_ZWRITEENABLE (see D3DMRENDERSTATETYPE) and the Value parameter set to 0.