pub struct Meshlets {
pub meshlets: Vec<Meshlet>,
pub vertices: Vec<u32>,
pub triangles: Vec<u8>,
}Expand description
The source-compatible u32 form of MeshletsGeneric.
Complete tightly packed meshlet output.
Fields§
§meshlets: Vec<Meshlet>Meshlet descriptors in construction order.
vertices: Vec<u32>Original vertex references.
triangles: Vec<u8>Local triangle bytes, without per-meshlet padding.
Trait Implementations§
impl Eq for Meshlets
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 StructuralPartialEq for Meshlets
Auto Trait Implementations§
impl Forget for Meshlets
impl Freeze for Meshlets
impl RefUnwindSafe for Meshlets
impl Send for Meshlets
impl Sync for Meshlets
impl Unpin for Meshlets
impl UnsafeUnpin for Meshlets
impl UnwindSafe for Meshlets
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