#[repr(C, align(16))]pub struct GpuRadialGradient {
pub texture_width_and_extend_mode: u32,
pub gradient_start: u32,
pub transform: [f32; 6],
pub kind_and_f_is_swapped: u32,
pub bias: f32,
pub scale: f32,
pub fp0: f32,
pub fp1: f32,
pub fr1: f32,
pub f_focal_x: f32,
pub scaled_r0_squared: f32,
}Expand description
An encoded radial 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].
kind_and_f_is_swapped: u32Packed gradient kind and focal-swap flag
(pack_kind_and_f_is_swapped).
bias: f32Bias term.
scale: f32Scale factor.
fp0: f32First focal-point parameter.
fp1: f32Second focal-point parameter.
fr1: f32Focal radius parameter.
f_focal_x: f32Focal x coordinate.
scaled_r0_squared: f32Scaled inner radius, squared (strip kind).
Implementations§
Trait Implementations§
Source§impl Clone for GpuRadialGradient
impl Clone for GpuRadialGradient
impl Copy for GpuRadialGradient
Source§impl Debug for GpuRadialGradient
impl Debug for GpuRadialGradient
impl Pod for GpuRadialGradient
Auto Trait Implementations§
impl Freeze for GpuRadialGradient
impl RefUnwindSafe for GpuRadialGradient
impl Send for GpuRadialGradient
impl Sync for GpuRadialGradient
impl Unpin for GpuRadialGradient
impl UnsafeUnpin for GpuRadialGradient
impl UnwindSafe for GpuRadialGradient
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.