pub struct Sampler {
pub id: Option<String>,
pub inputs: Vec<Input>,
pub interpolation: usize,
}
Expand description
Declares an interpolation sampling function for an animation.
Fields§
§id: Option<String>
A text string containing the unique identifier of the element.
inputs: Vec<Input>
Assigns semantics to each Source
. See the COLLADA spec for details.
interpolation: usize
The index into inputs
for the Semantic::Interpolation
input (which must exist).
Implementations§
Source§impl Sampler
impl Sampler
Sourcepub fn new(inputs: Vec<Input>) -> Self
pub fn new(inputs: Vec<Input>) -> Self
Construct a new Sampler
from a list of inputs.
One of the inputs must have Semantic::Interpolation
.
Source§impl Sampler
impl Sampler
Sourcepub fn interpolation_input(&self) -> &Input
pub fn interpolation_input(&self) -> &Input
The input with Semantic::Interpolation
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sampler
impl RefUnwindSafe for Sampler
impl Send for Sampler
impl Sync for Sampler
impl Unpin for Sampler
impl UnwindSafe for Sampler
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