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: u32array_layer: u32origin: Origin3dOrigin within a texture. Note: for 1D and 2D textures, Z must be 0.
aspect: FormatAspectsImplementations
sourceimpl TextureCopyBase
impl TextureCopyBase
pub fn max_copy_size(&self, full_size: &CopyExtent) -> CopyExtent
Trait Implementations
sourceimpl Clone for TextureCopyBase
impl Clone for TextureCopyBase
sourcefn clone(&self) -> TextureCopyBase
fn clone(&self) -> TextureCopyBase
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for TextureCopyBase
impl Send for TextureCopyBase
impl Sync for TextureCopyBase
impl Unpin for TextureCopyBase
impl UnwindSafe for TextureCopyBase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more