pub struct MaterialParams {
pub pipeline_params: PipelineParams,
pub uniforms: Vec<UniformDesc>,
pub textures: Vec<String>,
}
Expand description
Params used for material loading. It is not possible to change material params at runtime, so this struct is used only once - at “load_material”.
Fields§
§pipeline_params: PipelineParams
miniquad pipeline configuration for this material. Things like blending, culling, depth dest
uniforms: Vec<UniformDesc>
List of custom uniforms used in this material
textures: Vec<String>
List of textures used in this material
Trait Implementations§
Source§impl Default for MaterialParams
impl Default for MaterialParams
Source§fn default() -> MaterialParams
fn default() -> MaterialParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MaterialParams
impl RefUnwindSafe for MaterialParams
impl Send for MaterialParams
impl Sync for MaterialParams
impl Unpin for MaterialParams
impl UnwindSafe for MaterialParams
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