#[non_exhaustive]pub struct ProcessLevel {
pub indices: Vec<u32>,
pub vertices: Vec<u8>,
pub meshlets: Option<Meshlets>,
pub clusters: Option<ProcessClusters>,
pub encoded_indices: Option<Vec<u8>>,
pub encoded_vertices: Option<Vec<u8>>,
}Expand description
One optimized level, not in C++ meshoptimizer.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.indices: Vec<u32>Triangle indices into this level’s vertices.
vertices: Vec<u8>Complete tightly packed vertex records, preserving every attribute.
meshlets: Option<Meshlets>Optional meshlets over this level.
clusters: Option<ProcessClusters>Optional cluster hierarchy and its potentially dilated positions.
encoded_indices: Option<Vec<u8>>Optional encoded index bytes.
encoded_vertices: Option<Vec<u8>>Optional encoded vertex bytes.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ProcessLevel
impl Freeze for ProcessLevel
impl RefUnwindSafe for ProcessLevel
impl Send for ProcessLevel
impl Sync for ProcessLevel
impl Unpin for ProcessLevel
impl UnsafeUnpin for ProcessLevel
impl UnwindSafe for ProcessLevel
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