DepthFormat Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

'Declaration
Public Enumeration DepthFormat
public enum DepthFormat

Members

Member name Description
None Do not create a depth buffer.
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.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.