pub struct DataLayout {
pub offset: u64,
pub bytes_per_row: u32,
pub rows_per_image: u32,
}Expand description
the layout of texel data in a buffer or slice: rows of bytes_per_row bytes (0: tightly packed), rows_per_image rows per layer / slice (0: the region’s height)
Fields§
§offset: u64§bytes_per_row: u32§rows_per_image: u32Trait Implementations§
Auto Trait Implementations§
impl Forget for DataLayout
impl Freeze for DataLayout
impl RefUnwindSafe for DataLayout
impl Send for DataLayout
impl Sync for DataLayout
impl Unpin for DataLayout
impl UnsafeUnpin for DataLayout
impl UnwindSafe for DataLayout
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