pub struct CopyExtent {
pub width: u32,
pub height: u32,
pub depth: u32,
}Fields§
§width: u32§height: u32§depth: u32Implementations§
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 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 CopyExtent
impl Debug for CopyExtent
Source§impl From<CopyExtent> for Extent3d
impl From<CopyExtent> for Extent3d
Source§fn from(value: CopyExtent) -> Extent3d
fn from(value: CopyExtent) -> Extent3d
Converts to this type from the input type.
Source§impl From<Extent3d> for CopyExtent
impl From<Extent3d> for CopyExtent
Source§fn from(value: Extent3d) -> CopyExtent
fn from(value: Extent3d) -> CopyExtent
Converts to this type from the input type.
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more