pub enum MeshBinding {
None,
Primitive {
kind: PrimitiveKind,
color: [f32; 4],
},
Custom {
asset_key: String,
},
}Expand description
What mesh to render for this object.
Variants§
None
No mesh — invisible container for components only.
Primitive
Built-in primitive with pre-computed meshlets. Color is RGBA linear.
Custom
Custom mesh referenced by asset key (resolved at load time).
Trait Implementations§
Source§impl Clone for MeshBinding
impl Clone for MeshBinding
Source§fn clone(&self) -> MeshBinding
fn clone(&self) -> MeshBinding
Returns a duplicate of the value. Read more
1.0.0 · 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 MeshBinding
impl Debug for MeshBinding
Source§impl Default for MeshBinding
impl Default for MeshBinding
Source§fn default() -> MeshBinding
fn default() -> MeshBinding
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MeshBinding
impl<'de> Deserialize<'de> for MeshBinding
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 MeshBinding
impl PartialEq for MeshBinding
Source§impl Serialize for MeshBinding
impl Serialize for MeshBinding
impl StructuralPartialEq for MeshBinding
Auto Trait Implementations§
impl Freeze for MeshBinding
impl RefUnwindSafe for MeshBinding
impl Send for MeshBinding
impl Sync for MeshBinding
impl Unpin for MeshBinding
impl UnsafeUnpin for MeshBinding
impl UnwindSafe for MeshBinding
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