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) -> Self
pub fn min(&self, other: &Self) -> Self
pub fn at_mip_level(&self, level: u32) -> Self
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 more