Microsoft DirectX 9.0 SDK Update (October 2004)

PresentParameters.SwapEffect Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves or sets the swap effect.

Definition

Visual Basic .NET Public Property SwapEffect As SwapEffect
C# public SwapEffect SwapEffect { get; set; }
Managed C++ public: __property SwapEffect get_SwapEffect();
public: __property void set_SwapEffect(SwapEffect);
JScript .NET public function get SwapEffect() : SwapEffect
public function set SwapEffect(SwapEffect);

Property Value

Microsoft.DirectX.Direct3D.SwapEffect . Member of the SwapEffect enumerated type that indicates how buffers are swapped.

This property is read/write. 

Remarks

The runtime guarantees the implied semantics concerning buffer swap behavior. So if Windowed is set to true and SwapEffect is set to SwapEffect.Flip, the runtime creates one extra back buffer and copies whichever becomes the front buffer at presentation time.

The SwapEffect.Copy setting requires that BackBufferCount be set to 1. This setting is enforced in the debug runtime, which fills any buffer with noise after it is presented.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center