pub struct MeshBoundsRecord {
pub handle: u32,
pub min: [f32; 3],
pub max: [f32; 3],
pub vertex_count: u32,
pub index_count: u32,
}Expand description
Baked geometry summary of one static mesh payload, keyed by its unified mesh-source handle. Lets the runtime build draw records (AABB) and size geometry reservations (counts) without decoding the payload; a payload with no record decodes eagerly.
Fields§
§handle: u32The mesh-source handle this record summarizes.
min: [f32; 3]Lower corner of the mesh’s local AABB.
max: [f32; 3]Upper corner of the mesh’s local AABB.
vertex_count: u32Vertices in the payload.
index_count: u32Indices in the payload.
Trait Implementations§
Source§impl Clone for MeshBoundsRecord
impl Clone for MeshBoundsRecord
Source§fn clone(&self) -> MeshBoundsRecord
fn clone(&self) -> MeshBoundsRecord
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 moreimpl Copy for MeshBoundsRecord
Source§impl Debug for MeshBoundsRecord
impl Debug for MeshBoundsRecord
Source§impl<'de> Deserialize<'de> for MeshBoundsRecord
impl<'de> Deserialize<'de> for MeshBoundsRecord
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MeshBoundsRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MeshBoundsRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MeshBoundsRecord
impl PartialEq for MeshBoundsRecord
Source§impl Serialize for MeshBoundsRecord
impl Serialize for MeshBoundsRecord
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MeshBoundsRecord
Auto Trait Implementations§
impl Freeze for MeshBoundsRecord
impl RefUnwindSafe for MeshBoundsRecord
impl Send for MeshBoundsRecord
impl Sync for MeshBoundsRecord
impl Unpin for MeshBoundsRecord
impl UnsafeUnpin for MeshBoundsRecord
impl UnwindSafe for MeshBoundsRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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