Struct wgpu_hal::SurfaceConfiguration
source · [−]pub struct SurfaceConfiguration {
pub swap_chain_size: u32,
pub present_mode: PresentMode,
pub composite_alpha_mode: CompositeAlphaMode,
pub format: TextureFormat,
pub extent: Extent3d,
pub usage: TextureUses,
}Fields
swap_chain_size: u32Number of textures in the swap chain. Must be in
SurfaceCapabilities::swap_chain_size range.
present_mode: PresentModeVertical synchronization mode.
composite_alpha_mode: CompositeAlphaModeAlpha composition mode.
format: TextureFormatFormat of the surface textures.
extent: Extent3dRequested texture extent. Must be in
SurfaceCapabilities::extents range.
usage: TextureUsesAllowed usage of surface textures,
Trait Implementations
sourceimpl Clone for SurfaceConfiguration
impl Clone for SurfaceConfiguration
sourcefn clone(&self) -> SurfaceConfiguration
fn clone(&self) -> SurfaceConfiguration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for SurfaceConfiguration
impl Send for SurfaceConfiguration
impl Sync for SurfaceConfiguration
impl Unpin for SurfaceConfiguration
impl UnwindSafe for SurfaceConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more