pub enum MeshBlock {
Mesh,
ProceduralMesh,
VoxelChunk,
File,
Runtime,
}Expand description
Which block of the shared mesh-source handle space an asset belongs to.
Handles are assigned block by block, so a .mesh reference resolves to the
same index the runtime reaches that geometry at while decoding.
Variants§
Mesh
A Mesh resource, compiled into the blob’s resource stream.
ProceduralMesh
A ProceduralMesh component, whose payload rides its own def.
VoxelChunk
A VoxelChunk component.
File
A mesh-kind File component.
Runtime
Geometry a running world baked for itself at start, whose payload is a
RuntimeMeshPayloads entry. Last, so
minting one moves no handle the build handed out. Neither producer of a
world assigns into it: the block exists at load time only.
Implementations§
Trait Implementations§
impl Copy for MeshBlock
impl Eq for MeshBlock
Source§impl Ord for MeshBlock
impl Ord for MeshBlock
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for MeshBlock
impl PartialOrd for MeshBlock
impl StructuralPartialEq for MeshBlock
Auto Trait Implementations§
impl Freeze for MeshBlock
impl RefUnwindSafe for MeshBlock
impl Send for MeshBlock
impl Sync for MeshBlock
impl Unpin for MeshBlock
impl UnsafeUnpin for MeshBlock
impl UnwindSafe for MeshBlock
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.