Share via


PresentOptions Enumeration

Defines flags that control the behavior of the back buffer and depth buffer.

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

Syntax

[FlagsAttribute]
public enum PresentOptions

Members

  Member name Description
DeviceClip Clips a windowed Present blit into the window client area, within the monitor screen area of the video adapter that created the Microsoft Direct3D device. This flag works only on Microsoft Windows 2000 and Windows XP.
DiscardDepthStencil

Enables depth-buffer discarding if set when the device or swap chain is created. When this flag is set, the contents of the depth stencil buffer are invalid after either Present or DepthStencilBuffer is called.

Discarding depth-buffer data can increase performance and is dependent on the driver. The debug runtime enforces discarding by clearing the depth-buffer to some constant value after calling either Present or DepthStencilBuffer with a different depth surface.

Discarding depth-buffer data is illegal for all lockable formats, DepthFormat.Depth16Lockable, and DepthFormat.D32Lockable. Using the GraphicsDevice constructor to specify a lockable format and depth-buffer discarding will result in failure.

None Use no presentation flags.
Video Informs the driver that the back buffers contain video data.

See Also

Reference

PresentationParameters.PresentOptions Property
DepthFormat Enumeration
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista