pub struct Custom {
pub color: Color,
pub map: Option<Texture<[f32; 4]>>,
pub pipeline: BasicPipelineState,
}
Expand description
Parameters for a basic solid mesh material with a custom pipeline.
Renders triangle meshes with a custom pipeline with a basic material as its input.
Fields
color: Color
Solid color applied in the absense of map
.
map: Option<Texture<[f32; 4]>>
Texture applied using the mesh texture co-ordinates.
pipeline: BasicPipelineState
The custom pipeline state object to be applied to the mesh.
Trait Implementations
impl Eq for Custom
impl StructuralPartialEq for Custom
Auto Trait Implementations
impl !RefUnwindSafe for Custom
impl Send for Custom
impl Sync for Custom
impl Unpin for Custom
impl !UnwindSafe for Custom
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.