Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DepthStencilState.DepthBufferWriteEnable Property

Enables or disables writing to the depth buffer. The default is true.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

public bool DepthBufferWriteEnable { get; set; }

Property Value

true if writing to the depth buffer is enabled; false otherwise.

This property enables an application to prevent the system from updating the depth buffer with new depth values.

If false, depth comparisons are still made according to the render state DepthBufferFunction, assuming that depth buffering is taking place, but depth values are not written to the buffer.

Xbox 360, Windows 7, Windows Vista, Windows XP
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.