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 moreSource§impl Debug for CopyExtent
impl Debug for CopyExtent
impl Copy for CopyExtent
Auto Trait Implementations§
impl Freeze for CopyExtent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)