Struct nannou::window::SurfaceConfigurationBuilder [−][src]
pub struct SurfaceConfigurationBuilder {
pub usage: Option<TextureUsages>,
pub format: Option<TextureFormat>,
pub present_mode: Option<PresentMode>,
}
Expand description
Surface configuration for which nannou will provide a default if unspecified.
See the builder methods for more details on each parameter.
Fields
usage: Option<TextureUsages>
format: Option<TextureFormat>
present_mode: Option<PresentMode>
Implementations
Only used in the case that the wgpu::Surface::get_preferred_format
method returns None
.
Create a SurfaceConfigurationBuilder from an existing descriptor.
Specify the texture usages for the surface.
Specify the texture format for the surface.
The way in which a surface’s frames are presented to the display.
By default, nannou will attempt to select the ideal present mode depending on the current
app LoopMode
.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SurfaceConfigurationBuilder
impl Send for SurfaceConfigurationBuilder
impl Sync for SurfaceConfigurationBuilder
impl Unpin for SurfaceConfigurationBuilder
impl UnwindSafe for SurfaceConfigurationBuilder
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more