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,
    pub view_formats: Vec<TextureFormat>,
}

Fields§

§swap_chain_size: u32

Number of textures in the swap chain. Must be in SurfaceCapabilities::swap_chain_size 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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.