pub struct Meshlet {
pub vertex_offset: u32,
pub triangle_offset: u32,
pub vertex_count: u32,
pub triangle_count: u32,
}Expand description
Current 1.3 descriptor: triangle offsets are consecutive byte offsets, without padding.
Fields§
§vertex_offset: u32Offset in the vertex-reference array.
triangle_offset: u32Offset in the byte triangle array.
vertex_count: u32Number of referenced vertices.
triangle_count: u32Number of triangles (three bytes each).
Trait Implementations§
impl Copy for Meshlet
impl Eq for Meshlet
impl StructuralPartialEq for Meshlet
Auto Trait Implementations§
impl Freeze for Meshlet
impl RefUnwindSafe for Meshlet
impl Send for Meshlet
impl Sync for Meshlet
impl Unpin for Meshlet
impl UnsafeUnpin for Meshlet
impl UnwindSafe for Meshlet
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