Bagikan melalui


PresentationParameters.SwapEffect Property

Gets or sets the swap effect.

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

Syntax

public SwapEffect SwapEffect { get; set; }

Property Value

The swap effect to use.

Remarks

The runtime will guarantee the implied semantics concerning buffer swap behavior; therefore, if IsFullScreen is false and SwapEffect is set to SwapEffect.Flip, the runtime will create one extra back buffer and copy whichever becomes the front buffer at presentation time.

SwapEffect.Copy requires that BackBufferCount be set to 1.

SwapEffect.Discard will be enforced in the debug runtime by filling any buffer with noise after it is presented.

See Also

Reference

PresentationParameters Class
PresentationParameters Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista