#[repr(C, align(16))]pub struct GpuSweepGradient {
pub texture_width_and_extend_mode: u32,
pub gradient_start: u32,
pub transform: [f32; 6],
pub start_angle: f32,
pub inv_angle_delta: f32,
pub _padding: [u32; 2],
}Expand description
An encoded sweep 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].
start_angle: f32Angle the sweep starts at, in radians.
inv_angle_delta: f32Reciprocal of the sweep’s angle delta.
_padding: [u32; 2]Padding to the 16-byte record alignment.
Implementations§
Trait Implementations§
Source§impl Clone for GpuSweepGradient
impl Clone for GpuSweepGradient
impl Copy for GpuSweepGradient
Source§impl Debug for GpuSweepGradient
impl Debug for GpuSweepGradient
impl Pod for GpuSweepGradient
Auto Trait Implementations§
impl Freeze for GpuSweepGradient
impl RefUnwindSafe for GpuSweepGradient
impl Send for GpuSweepGradient
impl Sync for GpuSweepGradient
impl Unpin for GpuSweepGradient
impl UnsafeUnpin for GpuSweepGradient
impl UnwindSafe for GpuSweepGradient
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.