Struct nannou::wgpu::SwapChainDescriptor [−]
#[repr(C)]pub struct SwapChainDescriptor { pub usage: TextureUsage, pub format: TextureFormat, pub width: u32, pub height: u32, pub present_mode: PresentMode, }
Expand description
Describes a [SwapChain
].
Fields
usage: TextureUsage
The usage of the swap chain. The only supported usage is RENDER_ATTACHMENT
.
format: TextureFormat
The texture format of the swap chain. The only formats that are guaranteed are
Bgra8Unorm
and Bgra8UnormSrgb
width: u32
Width of the swap chain. Must be the same size as the surface.
height: u32
Height of the swap chain. Must be the same size as the surface.
present_mode: PresentMode
Presentation mode of the swap chain. FIFO is the only guaranteed to be supported, though other formats will automatically fall back to FIFO.
Trait Implementations
impl Clone for SwapChainDescriptor
impl Clone for SwapChainDescriptor
pub fn clone(&self) -> SwapChainDescriptor
pub fn clone(&self) -> SwapChainDescriptor
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for SwapChainDescriptor
impl Debug for SwapChainDescriptor
impl Hash for SwapChainDescriptor
impl Hash for SwapChainDescriptor
impl PartialEq<SwapChainDescriptor> for SwapChainDescriptor
impl PartialEq<SwapChainDescriptor> for SwapChainDescriptor
pub fn eq(&self, other: &SwapChainDescriptor) -> bool
pub fn eq(&self, other: &SwapChainDescriptor) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &SwapChainDescriptor) -> bool
pub fn ne(&self, other: &SwapChainDescriptor) -> bool
This method tests for !=
.
impl Eq for SwapChainDescriptor
impl StructuralEq for SwapChainDescriptor
impl StructuralPartialEq for SwapChainDescriptor
Auto Trait Implementations
impl RefUnwindSafe for SwapChainDescriptor
impl Send for SwapChainDescriptor
impl Sync for SwapChainDescriptor
impl Unpin for SwapChainDescriptor
impl UnwindSafe for SwapChainDescriptor
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
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
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V