Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DepthFormat Enumeration
Collapse the table of content
Expand the table of content

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)

public enum DepthFormat

 Member nameDescription
Depth16A buffer that contains 16-bits of depth data.
Depth24A buffer that contains 24-bits of depth data.
Depth24Stencil8A 32 bit buffer that contains 24 bits of depth data and 8 bits of stencil data.
NoneDo not create a depth buffer.

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?.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7

Community Additions

© 2015 Microsoft