Struct wgpu_hal::TextureCopyBase
source · pub struct TextureCopyBase {
pub mip_level: u32,
pub array_layer: u32,
pub origin: Origin3d,
pub aspect: FormatAspects,
}
Fields§
§mip_level: u32
§array_layer: u32
§origin: Origin3d
Origin within a texture. Note: for 1D and 2D textures, Z must be 0.
aspect: FormatAspects
Implementations§
source§impl TextureCopyBase
impl TextureCopyBase
pub fn max_copy_size(&self, full_size: &CopyExtent) -> CopyExtent
Trait Implementations§
source§impl Clone for TextureCopyBase
impl Clone for TextureCopyBase
source§fn clone(&self) -> TextureCopyBase
fn clone(&self) -> TextureCopyBase
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 moreAuto Trait Implementations§
impl Freeze for TextureCopyBase
impl RefUnwindSafe for TextureCopyBase
impl Send for TextureCopyBase
impl Sync for TextureCopyBase
impl Unpin for TextureCopyBase
impl UnwindSafe for TextureCopyBase
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)