Partager via


Changing Depth Buffer Write Access (Windows Embedded CE 6.0)

1/6/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.

See Also

Concepts

Depth Buffers