pub struct WgpuViewportSurfaceConfig {
pub present_mode: PresentMode,
pub alpha_mode: CompositeAlphaMode,
pub desired_maximum_frame_latency: u32,
}Expand description
Presentation policy for WGPU surfaces created for secondary viewports.
Surface format and dimensions are renderer- and viewport-owned respectively. Secondary surfaces use the renderer’s sRGB output contract; this value keeps the remaining scheduling and compositor choices together so creation and surface-loss recovery cannot silently diverge.
Fields§
§present_mode: PresentModeRequested presentation mode.
alpha_mode: CompositeAlphaModeRequested compositor alpha mode.
desired_maximum_frame_latency: u32Maximum number of monitor refreshes between acquisition and presentation.
Trait Implementations§
Source§impl Clone for WgpuViewportSurfaceConfig
impl Clone for WgpuViewportSurfaceConfig
Source§fn clone(&self) -> WgpuViewportSurfaceConfig
fn clone(&self) -> WgpuViewportSurfaceConfig
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 WgpuViewportSurfaceConfig
Source§impl Debug for WgpuViewportSurfaceConfig
impl Debug for WgpuViewportSurfaceConfig
Source§impl Default for WgpuViewportSurfaceConfig
impl Default for WgpuViewportSurfaceConfig
impl Eq for WgpuViewportSurfaceConfig
Source§impl From<&SurfaceConfiguration<Vec<TextureFormat>>> for WgpuViewportSurfaceConfig
impl From<&SurfaceConfiguration<Vec<TextureFormat>>> for WgpuViewportSurfaceConfig
Source§fn from(config: &SurfaceConfiguration) -> Self
fn from(config: &SurfaceConfiguration) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for WgpuViewportSurfaceConfig
Auto Trait Implementations§
impl Freeze for WgpuViewportSurfaceConfig
impl RefUnwindSafe for WgpuViewportSurfaceConfig
impl Send for WgpuViewportSurfaceConfig
impl Sync for WgpuViewportSurfaceConfig
impl Unpin for WgpuViewportSurfaceConfig
impl UnsafeUnpin for WgpuViewportSurfaceConfig
impl UnwindSafe for WgpuViewportSurfaceConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.