This documentation is archived and is not being maintained.

DepthFormat Enumeration

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

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in

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