Struct macroquad::material::MaterialParams
source · pub struct MaterialParams {
pub pipeline_params: PipelineParams,
pub uniforms: Vec<(String, UniformType)>,
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<(String, UniformType)>
List of custom uniforms used in this material
textures: Vec<String>
List of textures used in this material
Trait Implementations§
Auto Trait Implementations§
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