#[repr(C, align(64))]pub struct MeshletClusterNode {Show 14 fields
pub bounding_sphere: [f32; 4],
pub parent_error_sphere: [f32; 4],
pub lod_error_self: f32,
pub lod_error_parent: f32,
pub cone_axis_oct16: [i16; 2],
pub cone_cutoff_snorm16: i16,
pub lod_level: u8,
pub vertex_count: u8,
pub triangle_count: u8,
pub material_slot: u8,
pub child_group_first: u16,
pub vertex_data_offset: u32,
pub triangle_data_offset: u32,
pub semantic_subpart_id: u32,
}Expand description
64-byte cache-line-aligned POD node representing one meshlet in the Cluster DAG.
Fields§
§bounding_sphere: [f32; 4]Bounding sphere [cx, cy, cz, radius] in local meters (16B).
parent_error_sphere: [f32; 4]Parent cluster-group bounding sphere [px, py, pz, parent_radius] (16B).
lod_error_self: f32World-space QEM geometric error of this cluster in meters (4B).
lod_error_parent: f32Monotonic parent group error (>= lod_error_self; f32::INFINITY for roots) (4B).
cone_axis_oct16: [i16; 2]Octahedral normal cone axis in snorm16 (4B).
cone_cutoff_snorm16: i16Quantized cone cutoff cos(half_angle + pi/2) in snorm16 (2B).
lod_level: u8Hierarchy level (0 = finest leaf meshlet) (1B).
vertex_count: u8Vertex count in this meshlet (<= 64) (1B).
triangle_count: u8Triangle count in this meshlet (<= 124) (1B).
material_slot: u8Material binding slot index (1B).
child_group_first: u16First child cluster group index (0xFFFF for leaf clusters) (2B).
vertex_data_offset: u32Offset into the meshlet vertex index stream (4B).
triangle_data_offset: u32Offset into the meshlet local triangle micro-index stream (4B).
semantic_subpart_id: u32Hashed did:q42: anatomical/mechanical subpart identifier (4B).
Trait Implementations§
Source§impl Clone for MeshletClusterNode
impl Clone for MeshletClusterNode
impl Copy for MeshletClusterNode
Source§impl Debug for MeshletClusterNode
impl Debug for MeshletClusterNode
Source§impl PartialEq for MeshletClusterNode
impl PartialEq for MeshletClusterNode
impl Pod for MeshletClusterNode
impl StructuralPartialEq for MeshletClusterNode
Auto Trait Implementations§
impl Freeze for MeshletClusterNode
impl RefUnwindSafe for MeshletClusterNode
impl Send for MeshletClusterNode
impl Sync for MeshletClusterNode
impl Unpin for MeshletClusterNode
impl UnsafeUnpin for MeshletClusterNode
impl UnwindSafe for MeshletClusterNode
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Interleave for Twhere
T: Pod,
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> ⓘ
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> ⓘ
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