Struct dae_parser::BindMaterial
source · [−]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
sourceimpl 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
sourceimpl Clone for BindMaterial
impl Clone for BindMaterial
sourcefn clone(&self) -> BindMaterial
fn clone(&self) -> BindMaterial
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for BindMaterial
impl Send for BindMaterial
impl Sync for BindMaterial
impl Unpin for BindMaterial
impl UnwindSafe for BindMaterial
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