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)
Syntax
public CompareFunction DepthBufferFunction { get; set; }
Property Value
Value of a CompareFunction that represents the comparison function to set or get.
Remarks
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.
See Also
Reference
DepthStencilState Class
DepthStencilState Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP