pub struct FlatTransformValues {
pub data: Vec<f32>,
pub frames: usize,
pub values_per_frame: usize,
}Expand description
Efficient storage of scalar binding values.
Deserialized from Vec<Vec<f32>> (parameter axis-point grid [x][y])
but stored flat. frames = points on the X axis,
values_per_frame = points on the Y axis (1 for non-vec2 params).
Fields§
§data: Vec<f32>Flat data buffer: [x0_y0, x0_y1, …, x1_y0, …]
frames: usizeNumber of points on the X axis (outer array length).
values_per_frame: usizeNumber of points on the Y axis (inner array length).
Implementations§
Trait Implementations§
Source§impl Clone for FlatTransformValues
impl Clone for FlatTransformValues
Source§fn clone(&self) -> FlatTransformValues
fn clone(&self) -> FlatTransformValues
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FlatTransformValues
impl RefUnwindSafe for FlatTransformValues
impl Send for FlatTransformValues
impl Sync for FlatTransformValues
impl Unpin for FlatTransformValues
impl UnsafeUnpin for FlatTransformValues
impl UnwindSafe for FlatTransformValues
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