pub struct BindMaterial {
pub param: Vec<Param>,
pub instance_material: Vec<InstanceMaterial>,
pub technique: Vec<Technique>,
pub extra: Vec<Extra>,
}
Expand description
Binds a specific material to a piece of geometry, binding varying and uniform parameters at the same time.
Fields§
§param: Vec<Param>
In BindMaterial
these are added to be targets for animation.
These objects can then be bound to input parameters in the normal manner
without requiring the animation targeting system to parse the internal
layout of an Effect
.
instance_material: Vec<InstanceMaterial>
The common profile data is list of InstanceMaterial
s.
technique: Vec<Technique>
Declares the information used to process some portion of the content. (optional)
extra: Vec<Extra>
Provides arbitrary additional information about this element.
Implementations§
Source§impl BindMaterial
impl BindMaterial
Sourcepub fn new(instance_material: Vec<InstanceMaterial>) -> Self
pub fn new(instance_material: Vec<InstanceMaterial>) -> Self
Construct a BindMaterial
with the given instances.
Trait Implementations§
Source§impl Clone for BindMaterial
impl Clone for BindMaterial
Source§fn clone(&self) -> BindMaterial
fn clone(&self) -> BindMaterial
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 moreAuto Trait Implementations§
impl Freeze for BindMaterial
impl RefUnwindSafe for BindMaterial
impl Send for BindMaterial
impl Sync for BindMaterial
impl Unpin for BindMaterial
impl UnwindSafe for BindMaterial
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