Struct wgpu::hal::CopyExtent
source · pub struct CopyExtent {
pub width: u32,
pub height: u32,
pub depth: u32,
}
Fields§
§width: u32
§height: u32
§depth: u32
Implementations§
source§impl CopyExtent
impl CopyExtent
pub fn map_extent_to_copy_size( extent: &Extent3d, dim: TextureDimension ) -> CopyExtent
pub fn min(&self, other: &CopyExtent) -> CopyExtent
pub fn at_mip_level(&self, level: u32) -> CopyExtent
Trait Implementations§
source§impl Clone for CopyExtent
impl Clone for CopyExtent
source§fn clone(&self) -> CopyExtent
fn clone(&self) -> CopyExtent
Returns a copy 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 CopyExtent
impl Debug for CopyExtent
impl Copy for CopyExtent
Auto Trait Implementations§
impl RefUnwindSafe for CopyExtent
impl Send for CopyExtent
impl Sync for CopyExtent
impl Unpin for CopyExtent
impl UnwindSafe for CopyExtent
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