Export (0) Print
Expand All
Expand Minimize

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)

[FlagsAttribute]
public enum PresentOptions

 Member nameDescription
DeviceClipClips 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.

NoneUse no presentation flags.
VideoInforms the driver that the back buffers contain video data.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

ADD
Show:
© 2014 Microsoft