pub struct SurfaceConfiguration {
pub maximum_frame_latency: u32,
pub present_mode: PresentMode,
pub composite_alpha_mode: CompositeAlphaMode,
pub format: TextureFormat,
pub extent: Extent3d,
pub usage: TextureUses,
pub view_formats: Vec<TextureFormat>,
}
Fields§
§maximum_frame_latency: u32
Maximum number of queued frames. Must be in
SurfaceCapabilities::maximum_frame_latency
range.
present_mode: PresentMode
Vertical synchronization mode.
composite_alpha_mode: CompositeAlphaMode
Alpha composition mode.
format: TextureFormat
Format of the surface textures.
extent: Extent3d
Requested texture extent. Must be in
SurfaceCapabilities::extents
range.
usage: TextureUses
Allowed usage of surface textures,
view_formats: Vec<TextureFormat>
Allows views of swapchain texture to have a different format than the texture does.
Trait Implementations§
Source§impl Clone for SurfaceConfiguration
impl Clone for SurfaceConfiguration
Source§fn clone(&self) -> SurfaceConfiguration
fn clone(&self) -> SurfaceConfiguration
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SurfaceConfiguration
impl RefUnwindSafe for SurfaceConfiguration
impl Send for SurfaceConfiguration
impl Sync for SurfaceConfiguration
impl Unpin for SurfaceConfiguration
impl UnwindSafe for SurfaceConfiguration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)