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)
Syntax
public bool DepthBufferWriteEnable { get; set; }
Property Value
true if writing to the depth buffer is enabled; false otherwise.
Remarks
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.
See Also
Reference
DepthStencilState Class
DepthStencilState Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP