pub struct SurfaceConfig {
pub width: u32,
pub height: u32,
pub format: TextureFormat,
}Expand description
Surface configuration, refreshed on resize.
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
format: TextureFormatThe swapchain format the surface chose at open.
Trait Implementations§
Source§impl Clone for SurfaceConfig
impl Clone for SurfaceConfig
impl Copy for SurfaceConfig
Source§impl Debug for SurfaceConfig
impl Debug for SurfaceConfig
impl Eq for SurfaceConfig
Source§impl PartialEq for SurfaceConfig
impl PartialEq for SurfaceConfig
impl StructuralPartialEq for SurfaceConfig
Auto Trait Implementations§
impl Freeze for SurfaceConfig
impl RefUnwindSafe for SurfaceConfig
impl Send for SurfaceConfig
impl Sync for SurfaceConfig
impl Unpin for SurfaceConfig
impl UnsafeUnpin for SurfaceConfig
impl UnwindSafe for SurfaceConfig
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