pub struct LocalMeshletGeneric<I: Index = u32> {
pub vertices: Vec<I>,
pub triangles: Vec<u8>,
}Expand description
Meshlet-local topology with first-visit vertex references.
Fields§
§vertices: Vec<I>References to the original vertex buffer.
triangles: Vec<u8>Three local byte indices per triangle.
Trait Implementations§
impl<I: Eq + Index> Eq for LocalMeshletGeneric<I>
Source§impl From<LocalMeshlet> for LocalMeshletGeneric<u32>
impl From<LocalMeshlet> for LocalMeshletGeneric<u32>
Source§fn from(value: LocalMeshlet) -> Self
fn from(value: LocalMeshlet) -> Self
Converts to this type from the input type.
Source§impl From<LocalMeshletGeneric> for LocalMeshlet
impl From<LocalMeshletGeneric> for LocalMeshlet
Source§fn from(value: LocalMeshletGeneric<u32>) -> Self
fn from(value: LocalMeshletGeneric<u32>) -> Self
Converts to this type from the input type.
impl<I: PartialEq + Index> StructuralPartialEq for LocalMeshletGeneric<I>
Auto Trait Implementations§
impl<I> Forget for LocalMeshletGeneric<I>
impl<I> Freeze for LocalMeshletGeneric<I>
impl<I> RefUnwindSafe for LocalMeshletGeneric<I>where
Vec<I>: RefUnwindSafe,
impl<I> Send for LocalMeshletGeneric<I>
impl<I> Sync for LocalMeshletGeneric<I>
impl<I> Unpin for LocalMeshletGeneric<I>
impl<I> UnsafeUnpin for LocalMeshletGeneric<I>where
Vec<I>: UnsafeUnpin,
impl<I> UnwindSafe for LocalMeshletGeneric<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