pub struct MeshletsGeneric<I: Index = u32> {
pub meshlets: Vec<Meshlet>,
pub vertices: Vec<I>,
pub triangles: Vec<u8>,
}Expand description
Complete tightly packed meshlet output.
Fields§
§meshlets: Vec<Meshlet>Meshlet descriptors in construction order.
vertices: Vec<I>Original vertex references.
triangles: Vec<u8>Local triangle bytes, without per-meshlet padding.
Trait Implementations§
impl<I: Eq + Index> Eq for MeshletsGeneric<I>
Source§impl From<MeshletsGeneric> for Meshlets
impl From<MeshletsGeneric> for Meshlets
Source§fn from(value: MeshletsGeneric<u32>) -> Self
fn from(value: MeshletsGeneric<u32>) -> Self
Converts to this type from the input type.
impl<I: PartialEq + Index> StructuralPartialEq for MeshletsGeneric<I>
Auto Trait Implementations§
impl<I> Forget for MeshletsGeneric<I>
impl<I> Freeze for MeshletsGeneric<I>
impl<I> RefUnwindSafe for MeshletsGeneric<I>where
Vec<I>: RefUnwindSafe,
impl<I> Send for MeshletsGeneric<I>
impl<I> Sync for MeshletsGeneric<I>
impl<I> Unpin for MeshletsGeneric<I>
impl<I> UnsafeUnpin for MeshletsGeneric<I>where
Vec<I>: UnsafeUnpin,
impl<I> UnwindSafe for MeshletsGeneric<I>where
Vec<I>: UnwindSafe,
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> 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