![]() |
![]() |
![]() |
PresentParameters.SwapEffect Property |
Language: |
Retrieves or sets the swap effect.
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);
Microsoft.DirectX.Direct3D.SwapEffect . Member of the SwapEffect enumerated type that indicates how buffers are swapped.
This property is read/write.
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.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center