Export (0) Print
Expand All
Expand Minimize

DepthFormat Enumeration

Defines the format of data in a depth buffer.

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

public enum DepthFormat

 Member nameDescription
Depth15Stencil1A 16-bit depth-buffer bit depth in which 15 bits are reserved for the depth channel and 1 bit is reserved for the stencil channel.
Depth16A 16-bit depth-buffer bit depth.
Depth24A 32-bit depth-buffer bit depth that uses 24 bits for the depth channel.
Depth24Stencil4A 32-bit depth-buffer bit depth that uses 24 bits for the depth channel and 4 bits for the stencil channel.
Depth24Stencil8A non-lockable format that contains 24 bits of depth (in a 24-bit floating-point format − 20E4) and 8 bits of stencil.
Depth24Stencil8SingleA 32-bit depth-buffer bit depth that uses 24 bits for the depth channel and 8 bits for the stencil channel.
Depth32a 32-bit depth-buffer bit depth.
UnknownFormat is unknown.

All depth-stencil formats except Depth16Lockable indicate no particular bit ordering per pixel, and the driver is allowed to consume more than the indicated number of bits per depth channel (but not stencil channel).

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

ADD
Show:
© 2014 Microsoft