Export (0) Print
Expand All

DepthStencilState.DepthBufferFunction Property

Gets or sets the comparison function for the depth-buffer test. The default is CompareFunction.LessEqual

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

public CompareFunction DepthBufferFunction { get; set; }

Property Value

Value of a CompareFunction that represents the comparison function to set or get.

The depth value of the pixel is compared to the depth-buffer value. If the depth value of the pixel passes the comparison function, the pixel is written.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show:
© 2014 Microsoft