DepthFormat Enumeration

Defines the format of data in a depth-stencil buffer.

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

Syntax

public enum DepthFormat

Members

  Member name Description
Depth16 A buffer that contains 16-bits of depth data.
Depth24 A buffer that contains 24-bits of depth data.
Depth24Stencil8 A 32 bit buffer that contains 24 bits of depth data and 8 bits of stencil data.
None Do not create a depth buffer.

Remarks

A depth buffer contains depth data and possibly stencil data. Control a depth buffer using a state object; for a more information, see What Is Depth Stencil State?.

See Also

Concepts

What Is a Depth Buffer?
What Is a Stencil Buffer?

Reference

Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP