pub struct BufferLayout {
pub scalar: ScalarType,
pub components: u32,
pub stride_bytes: u32,
pub count: u32,
}Expand description
Memory layout of one GPU buffer.
Fields§
§scalar: ScalarTypeScalar type of each component.
components: u32Components per row (1 for scalar columns, 3 or 4 for positions, 2 for line indices).
stride_bytes: u32Bytes between the start of consecutive rows.
count: u32Number of rows.
Implementations§
Trait Implementations§
Source§impl Clone for BufferLayout
impl Clone for BufferLayout
Source§fn clone(&self) -> BufferLayout
fn clone(&self) -> BufferLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BufferLayout
Source§impl Debug for BufferLayout
impl Debug for BufferLayout
impl Eq for BufferLayout
Source§impl Hash for BufferLayout
impl Hash for BufferLayout
Source§impl PartialEq for BufferLayout
impl PartialEq for BufferLayout
impl StructuralPartialEq for BufferLayout
Auto Trait Implementations§
impl Freeze for BufferLayout
impl RefUnwindSafe for BufferLayout
impl Send for BufferLayout
impl Sync for BufferLayout
impl Unpin for BufferLayout
impl UnsafeUnpin for BufferLayout
impl UnwindSafe for BufferLayout
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