共用方式為


GraphicsDeviceManager.PreferredDepthStencilFormat Property

Gets or sets the format of the depth stencil.

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

Syntax

public DepthFormat PreferredDepthStencilFormat { get; set; }

Property Value

The format of the depth stencil.

Exceptions

Exception type Condition
ArgumentOutOfRangeException

The DepthStencilFormat requested is an invalid format. Use one of the following:

See Also

Reference

GraphicsDeviceManager Class
GraphicsDeviceManager Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista