DepthFormat Enumeration (Microsoft.DirectX.Direct3D)
Defines depth buffer formats.
Visual Basic Public Enum DepthFormat C# public enum DepthFormat C++ public enum class DepthFormat JScript public enum DepthFormat
Member Value Description Unknown 0 Format is unknown. D24SingleS8 83 A 32-bit z-buffer bit depth that uses 24 bits for the depth channel and 8 bits for the stencil channel. D32SingleLockable 82 A lockable format in which the depth value is represented as a standard IEEE floating-point number. D24X4S4 79 A 32-bit z-buffer bit depth that uses 24 bits for the depth channel and 4 bits for the stencil channel. D24X8 77 A 32-bit z-buffer bit depth that uses 24 bits for the depth channel. L16 81 A 16-bit luminance format. D16 80 A 16-bit z-buffer bit depth. D24S8 75 A nonlockable format that contains 24 bits of depth (in a 24-bit floating-point format - 20E4) and 8 bits of stencil. D15S1 73 A 16-bit z-buffer bit depth in which 15 bits are reserved for the depth channel and 1 bit is reserved for the stencil channel. D32 71 A 32-bit z-buffer bit depth. D16Lockable 70 A 16-bit z-buffer bit depth.
All depth-stencil formats except D16Lockable 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).
Namespace Microsoft.DirectX.Direct3D Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll) Strong Name Microsoft.DirectX.Direct3D, Version=1.0.900.0, Culture=neutral, PublicKeyToken=d3231b57b74a1492