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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more