#[repr(C, align(16))]pub struct GpuLinearGradient {
pub texture_width_and_extend_mode: u32,
pub gradient_start: u32,
pub transform: [f32; 6],
}Expand description
An encoded linear gradient paint.
Fields§
§texture_width_and_extend_mode: u32Packed gradient-texture width and extend mode
(pack_texture_width_and_extend_mode).
gradient_start: u32Start coordinate in the flat gradient texture.
transform: [f32; 6]Transform matrix [a, b, c, d, tx, ty].
Implementations§
Trait Implementations§
Source§impl Clone for GpuLinearGradient
impl Clone for GpuLinearGradient
impl Copy for GpuLinearGradient
Source§impl Debug for GpuLinearGradient
impl Debug for GpuLinearGradient
impl Pod for GpuLinearGradient
Auto Trait Implementations§
impl Freeze for GpuLinearGradient
impl RefUnwindSafe for GpuLinearGradient
impl Send for GpuLinearGradient
impl Sync for GpuLinearGradient
impl Unpin for GpuLinearGradient
impl UnsafeUnpin for GpuLinearGradient
impl UnwindSafe for GpuLinearGradient
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.