GraphicsDeviceManager.PreferredDepthStencilFormat Property

Gets or sets the format of the depth stencil.

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

public DepthFormat PreferredDepthStencilFormat { get; set; }

Property Value

The format of the depth stencil.

For an example of using this property, see How To: Draw a Shadow and What Is a Stencil Buffer?

Xbox 360, Windows XP SP2, Windows Vista, Zune