pub struct FlatDeformValues {
pub data: Vec<[f32; 2]>,
pub frames: usize,
pub vertices_per_frame: usize,
}Expand description
Efficient storage of deformation binding values.
Deserialized from values[x][y][vertex] = [dx, dy] but stored flat.
frames = points on the X axis; vertices_per_frame flattens
the Y axis together with the per-vertex offsets.
Fields§
§data: Vec<[f32; 2]>Flat offset buffer: [x0_v0, x0_v1, …, x1_v0, …]
frames: usizeNumber of points on the X axis (outer array length).
vertices_per_frame: usizeNumber of [dx, dy] entries per X-axis point (Y-axis points × vertex count).
Implementations§
Source§impl FlatDeformValues
impl FlatDeformValues
Trait Implementations§
Source§impl Clone for FlatDeformValues
impl Clone for FlatDeformValues
Source§fn clone(&self) -> FlatDeformValues
fn clone(&self) -> FlatDeformValues
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 FlatDeformValues
impl RefUnwindSafe for FlatDeformValues
impl Send for FlatDeformValues
impl Sync for FlatDeformValues
impl Unpin for FlatDeformValues
impl UnsafeUnpin for FlatDeformValues
impl UnwindSafe for FlatDeformValues
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