Share via


RenderState.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 (in microsoft.xna.framework.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

RenderState Class
RenderState Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista