pub struct RowLayoutDescription {
pub width: u32,
pub height: u32,
pub row_stride: u64,
pub texel: Texel,
}
Expand description
Describe a row-major rectangular matrix layout.
This is only concerned with byte-buffer compatibility and not type or color space semantics of texels. It assumes a row-major layout without space between texels of a row as that is the most efficient and common such layout.
For usage as an actual image buffer, to convert it to a CanvasLayout
by calling
CanvasLayout::with_row_layout
.
Fields§
§width: u32
§height: u32
§row_stride: u64
§texel: Texel
Trait Implementations§
Source§impl Clone for RowLayoutDescription
impl Clone for RowLayoutDescription
Source§fn clone(&self) -> RowLayoutDescription
fn clone(&self) -> RowLayoutDescription
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RowLayoutDescription
impl Debug for RowLayoutDescription
Source§impl Hash for RowLayoutDescription
impl Hash for RowLayoutDescription
Source§impl PartialEq for RowLayoutDescription
impl PartialEq for RowLayoutDescription
impl StructuralPartialEq for RowLayoutDescription
Auto Trait Implementations§
impl Freeze for RowLayoutDescription
impl RefUnwindSafe for RowLayoutDescription
impl Send for RowLayoutDescription
impl Sync for RowLayoutDescription
impl Unpin for RowLayoutDescription
impl UnwindSafe for RowLayoutDescription
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