pub struct AoSoAAttributeLayout { /* private fields */ }Expand description
Explicit interleaved field layout for an AoSoAAttributeChunk.
Implementations§
Source§impl AoSoAAttributeLayout
impl AoSoAAttributeLayout
Sourcepub const XYZ_INTENSITY: Self
pub const XYZ_INTENSITY: Self
Interleaved [x, y, z, intensity] layout.
Sourcepub const XYZ_NORMALS: Self
pub const XYZ_NORMALS: Self
Interleaved [x, y, z, nx, ny, nz] layout.
Sourcepub const XYZ_INTENSITY_NORMALS: Self
pub const XYZ_INTENSITY_NORMALS: Self
Interleaved [x, y, z, intensity, nx, ny, nz] layout.
Sourcepub const fn stride_f32(self) -> usize
pub const fn stride_f32(self) -> usize
Returns the distance between adjacent points in f32 elements.
Sourcepub const fn position_offsets(self) -> [usize; 3]
pub const fn position_offsets(self) -> [usize; 3]
Returns the x/y/z offsets within one point record.
Sourcepub const fn intensity_offset(self) -> Option<usize>
pub const fn intensity_offset(self) -> Option<usize>
Returns the intensity offset when present.
Sourcepub const fn normal_offsets(self) -> Option<[usize; 3]>
pub const fn normal_offsets(self) -> Option<[usize; 3]>
Returns the normal x/y/z offsets when present.
Trait Implementations§
Source§impl Clone for AoSoAAttributeLayout
impl Clone for AoSoAAttributeLayout
Source§fn clone(&self) -> AoSoAAttributeLayout
fn clone(&self) -> AoSoAAttributeLayout
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 moreSource§impl Debug for AoSoAAttributeLayout
impl Debug for AoSoAAttributeLayout
Source§impl PartialEq for AoSoAAttributeLayout
impl PartialEq for AoSoAAttributeLayout
Source§fn eq(&self, other: &AoSoAAttributeLayout) -> bool
fn eq(&self, other: &AoSoAAttributeLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AoSoAAttributeLayout
impl Eq for AoSoAAttributeLayout
impl StructuralPartialEq for AoSoAAttributeLayout
Auto Trait Implementations§
impl Freeze for AoSoAAttributeLayout
impl RefUnwindSafe for AoSoAAttributeLayout
impl Send for AoSoAAttributeLayout
impl Sync for AoSoAAttributeLayout
impl Unpin for AoSoAAttributeLayout
impl UnsafeUnpin for AoSoAAttributeLayout
impl UnwindSafe for AoSoAAttributeLayout
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