#[repr(C)]pub struct WGPUSurfaceConfiguration {
pub nextInChain: *mut WGPUChainedStruct,
pub device: WGPUDevice,
pub format: WGPUTextureFormat,
pub usage: WGPUTextureUsage,
pub width: u32,
pub height: u32,
pub viewFormatCount: usize,
pub viewFormats: *const WGPUTextureFormat,
pub alphaMode: WGPUCompositeAlphaMode,
pub presentMode: WGPUPresentMode,
}Fields§
§nextInChain: *mut WGPUChainedStruct§device: WGPUDevice§format: WGPUTextureFormat§usage: WGPUTextureUsage§width: u32§height: u32§viewFormatCount: usize§viewFormats: *const WGPUTextureFormat§alphaMode: WGPUCompositeAlphaMode§presentMode: WGPUPresentModeTrait Implementations§
Source§impl Clone for WGPUSurfaceConfiguration
impl Clone for WGPUSurfaceConfiguration
Source§fn clone(&self) -> WGPUSurfaceConfiguration
fn clone(&self) -> WGPUSurfaceConfiguration
Returns a duplicate 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 moreSource§impl Debug for WGPUSurfaceConfiguration
impl Debug for WGPUSurfaceConfiguration
Source§impl Default for WGPUSurfaceConfiguration
impl Default for WGPUSurfaceConfiguration
Source§impl Hash for WGPUSurfaceConfiguration
impl Hash for WGPUSurfaceConfiguration
Source§impl Ord for WGPUSurfaceConfiguration
impl Ord for WGPUSurfaceConfiguration
Source§fn cmp(&self, other: &WGPUSurfaceConfiguration) -> Ordering
fn cmp(&self, other: &WGPUSurfaceConfiguration) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WGPUSurfaceConfiguration
impl PartialEq for WGPUSurfaceConfiguration
Source§impl PartialOrd for WGPUSurfaceConfiguration
impl PartialOrd for WGPUSurfaceConfiguration
impl Copy for WGPUSurfaceConfiguration
impl Eq for WGPUSurfaceConfiguration
impl StructuralPartialEq for WGPUSurfaceConfiguration
Auto Trait Implementations§
impl Freeze for WGPUSurfaceConfiguration
impl RefUnwindSafe for WGPUSurfaceConfiguration
impl !Send for WGPUSurfaceConfiguration
impl !Sync for WGPUSurfaceConfiguration
impl Unpin for WGPUSurfaceConfiguration
impl UnwindSafe for WGPUSurfaceConfiguration
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