#[repr(C)]pub struct MeshMiniHeader {
pub flags: u16,
pub reserved_u16: u16,
pub vertex_count: u32,
pub triangle_count: u32,
pub min: [f32; 3],
pub max: [f32; 3],
pub reserved_u32: u32,
}Expand description
The 40-byte QuantizedMesh-section mini-header. repr(C), naturally
aligned, no implicit padding.
offset size field
0 2 flags:u16 (bit 0 = u16 indices, else u32)
2 2 reserved_u16 (must be zero)
4 4 vertex_count:u32
8 4 triangle_count:u32
12 12 min:[f32;3] (dequantization frame: position = min + (q/65535)*(max-min))
24 12 max:[f32;3]
36 4 reserved_u32 (must be zero — future: LOD tier, material index)Fields§
§flags: u16§reserved_u16: u16§vertex_count: u32§triangle_count: u32§min: [f32; 3]§max: [f32; 3]§reserved_u32: u32Implementations§
Trait Implementations§
Source§impl Clone for MeshMiniHeader
impl Clone for MeshMiniHeader
Source§fn clone(&self) -> MeshMiniHeader
fn clone(&self) -> MeshMiniHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MeshMiniHeader
impl Debug for MeshMiniHeader
Source§impl PartialEq for MeshMiniHeader
impl PartialEq for MeshMiniHeader
Source§fn eq(&self, other: &MeshMiniHeader) -> bool
fn eq(&self, other: &MeshMiniHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MeshMiniHeader
impl Pod for MeshMiniHeader
impl StructuralPartialEq for MeshMiniHeader
Auto Trait Implementations§
impl Freeze for MeshMiniHeader
impl RefUnwindSafe for MeshMiniHeader
impl Send for MeshMiniHeader
impl Sync for MeshMiniHeader
impl Unpin for MeshMiniHeader
impl UnsafeUnpin for MeshMiniHeader
impl UnwindSafe for MeshMiniHeader
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>,
Aggregate shares in an MPC protocol.
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
§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
If this function returns true, then it must be valid to reinterpret
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>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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