[−][src]Enum druid_shell::windows::PresentStrategy
It's very tricky to get smooth dynamics (especially resizing) and good performance on Windows. This setting lets clients experiment with different strategies.
Variants
Don't try to use DXGI at all, only create Hwnd render targets. Note: on Windows 7 this is the only mode available.
Corresponds to the swap effect DXGI_SWAP_EFFECT_SEQUENTIAL. In testing, it causes diagonal banding artifacts with Nvidia adapters, and incremental present doesn't work. However, it is compatible with GDI (such as menus).
Corresponds to the swap effect DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL. In testing, it seems to perform well (including allowing smooth resizing when the frame can be rendered quickly), but isn't compatible with GDI.
Corresponds to the swap effect DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL but with a redirection surface for GDI compatibility. Resize is very laggy and artifacty.
Trait Implementations
impl Clone for PresentStrategy[src]
fn clone(&self) -> PresentStrategy[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for PresentStrategy[src]
impl Default for PresentStrategy[src]
fn default() -> PresentStrategy[src]
impl Eq for PresentStrategy[src]
impl PartialEq<PresentStrategy> for PresentStrategy[src]
fn eq(&self, other: &PresentStrategy) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl Debug for PresentStrategy[src]
impl StructuralPartialEq for PresentStrategy[src]
impl StructuralEq for PresentStrategy[src]
Auto Trait Implementations
impl Send for PresentStrategy
impl Sync for PresentStrategy
impl Unpin for PresentStrategy
impl UnwindSafe for PresentStrategy
impl RefUnwindSafe for PresentStrategy
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> RoundFrom<T> for T
fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,