pub struct GradientCtx {
    pub len: usize,
    pub factors: Vec<GradientColor>,
    pub biases: Vec<GradientColor>,
    pub t_values: Vec<NormalizedF32>,
}Fields§
§len: usizeThis value stores the actual colors count.
factors and biases must store at least 16 values,
since this is the length of a lowp pipeline stage.
So any any value past len is just zeros.
factors: Vec<GradientColor>§biases: Vec<GradientColor>§t_values: Vec<NormalizedF32>Implementations§
Source§impl GradientCtx
 
impl GradientCtx
pub fn push_const_color(&mut self, color: GradientColor)
Trait Implementations§
Source§impl Clone for GradientCtx
 
impl Clone for GradientCtx
Source§fn clone(&self) -> GradientCtx
 
fn clone(&self) -> GradientCtx
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for GradientCtx
 
impl Debug for GradientCtx
Source§impl Default for GradientCtx
 
impl Default for GradientCtx
Source§fn default() -> GradientCtx
 
fn default() -> GradientCtx
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GradientCtx
impl RefUnwindSafe for GradientCtx
impl Send for GradientCtx
impl Sync for GradientCtx
impl Unpin for GradientCtx
impl UnwindSafe for GradientCtx
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