pub struct SurfaceConfig {
pub output: OutputPreference,
pub mode: ModePreference,
pub buffers: usize,
pub present_mode: PresentMode,
}Expand description
How to bring the display up.
Fields§
§output: OutputPreferenceWhich output to drive.
mode: ModePreferenceWhich mode to set on it.
buffers: usizeHow many scanout buffers to rotate through.
Two by default. Three trades latency for smoothness, which is the wrong trade for a panel someone is touching.
present_mode: PresentModeWhether to wait for vblank before showing a frame.
Trait Implementations§
Source§impl Clone for SurfaceConfig
impl Clone for SurfaceConfig
Source§fn clone(&self) -> SurfaceConfig
fn clone(&self) -> SurfaceConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SurfaceConfig
Source§impl Debug for SurfaceConfig
impl Debug for SurfaceConfig
Auto Trait Implementations§
impl Freeze for SurfaceConfig
impl RefUnwindSafe for SurfaceConfig
impl Send for SurfaceConfig
impl Sync for SurfaceConfig
impl Unpin for SurfaceConfig
impl UnsafeUnpin for SurfaceConfig
impl UnwindSafe for SurfaceConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more