pub struct MaterialLibrary { /* private fields */ }
Implementations§
source§impl MaterialLibrary
impl MaterialLibrary
pub fn info(&self) -> MaterialLibraryInfo
pub fn add_function(&mut self, function: MaterialFunction)
pub fn with_function(self, function: MaterialFunction) -> Self
pub fn add_functions( &mut self, functions: impl IntoIterator<Item = MaterialFunction> )
pub fn with_functions( self, functions: impl IntoIterator<Item = MaterialFunction> ) -> Self
pub fn remove_function(&mut self, name: &str) -> Option<MaterialFunction>
pub fn has_function(&self, name: &str) -> bool
pub fn function(&self, name: &str) -> Option<&MaterialFunction>
pub fn functions_count(&self) -> usize
pub fn add_domain(&mut self, name: String, graph: MaterialGraph)
pub fn with_domain(self, name: String, graph: MaterialGraph) -> Self
pub fn remove_domain(&mut self, name: &str)
pub fn has_domain(&self, name: &str) -> bool
pub fn domain(&self, name: &str) -> Option<&MaterialGraph>
pub fn domains_count(&self) -> usize
pub fn add_middleware(&mut self, name: String, graph: MaterialGraph)
pub fn with_middleware(self, name: String, graph: MaterialGraph) -> Self
pub fn remove_middleware(&mut self, name: &str)
pub fn has_middleware(&self, name: &str) -> bool
pub fn middleware(&self, name: &str) -> Option<&MaterialGraph>
pub fn middlewares_count(&self) -> usize
pub fn validate_material_compilation( vertex_layout: &VertexLayout, render_target: RenderTargetDescriptor, domain: &MaterialGraph, graph: &MaterialGraph ) -> Result<Option<BakedMaterialShaders>, MaterialError>
pub fn assert_material_compilation( vertex_layout: &VertexLayout, render_target: RenderTargetDescriptor, domain: &MaterialGraph, graph: &MaterialGraph )
Trait Implementations§
source§impl Clone for MaterialLibrary
impl Clone for MaterialLibrary
source§fn clone(&self) -> MaterialLibrary
fn clone(&self) -> MaterialLibrary
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 MaterialLibrary
impl Debug for MaterialLibrary
Auto Trait Implementations§
impl RefUnwindSafe for MaterialLibrary
impl Send for MaterialLibrary
impl Sync for MaterialLibrary
impl Unpin for MaterialLibrary
impl UnwindSafe for MaterialLibrary
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