pub enum MaterialAsset {
None,
Graph {
default_values: HashMap<String, MaterialValue>,
draw_options: MaterialDrawOptions,
content: MaterialGraph,
},
Domain(MaterialGraph),
Baked {
default_values: HashMap<String, MaterialValue>,
draw_options: MaterialDrawOptions,
content: Vec<BakedMaterialAsset>,
},
Function(MaterialFunction),
}Variants§
None
Graph
Fields
§
default_values: HashMap<String, MaterialValue>§
draw_options: MaterialDrawOptions§
content: MaterialGraphDomain(MaterialGraph)
Baked
Fields
§
default_values: HashMap<String, MaterialValue>§
draw_options: MaterialDrawOptions§
content: Vec<BakedMaterialAsset>Function(MaterialFunction)
Trait Implementations§
source§impl Clone for MaterialAsset
impl Clone for MaterialAsset
source§fn clone(&self) -> MaterialAsset
fn clone(&self) -> MaterialAsset
Returns a copy 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 MaterialAsset
impl Debug for MaterialAsset
source§impl Default for MaterialAsset
impl Default for MaterialAsset
source§impl<'de> Deserialize<'de> for MaterialAsset
impl<'de> Deserialize<'de> for MaterialAsset
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
Auto Trait Implementations§
impl RefUnwindSafe for MaterialAsset
impl Send for MaterialAsset
impl Sync for MaterialAsset
impl Unpin for MaterialAsset
impl UnwindSafe for MaterialAsset
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<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more