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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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
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