pub struct SourceMaterialAsset {
pub material_index: usize,
pub name: Option<String>,
pub texture_bindings: Vec<SourceMaterialTextureBinding>,
}Expand description
One source material definition, independent of writer-facing material data.
Fields§
§material_index: usizeStable source material index.
name: Option<String>Authored name, when present.
texture_bindings: Vec<SourceMaterialTextureBinding>Source texture bindings, sorted by SourceMaterialTextureBinding::slot.
Trait Implementations§
Source§impl Clone for SourceMaterialAsset
impl Clone for SourceMaterialAsset
Source§fn clone(&self) -> SourceMaterialAsset
fn clone(&self) -> SourceMaterialAsset
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 moreSource§impl Debug for SourceMaterialAsset
impl Debug for SourceMaterialAsset
Source§impl Default for SourceMaterialAsset
impl Default for SourceMaterialAsset
Source§fn default() -> SourceMaterialAsset
fn default() -> SourceMaterialAsset
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SourceMaterialAsset
impl RefUnwindSafe for SourceMaterialAsset
impl Send for SourceMaterialAsset
impl Sync for SourceMaterialAsset
impl Unpin for SourceMaterialAsset
impl UnsafeUnpin for SourceMaterialAsset
impl UnwindSafe for SourceMaterialAsset
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