#[repr(C, align(16))]pub struct GpuBlurredRoundedRect {
pub transform: [f32; 6],
pub color: u32,
pub invert: u32,
pub params0: [f32; 4],
pub params1: [f32; 4],
pub size: [f32; 2],
pub _padding1: [u32; 2],
}Expand description
An encoded blurred rounded rectangle paint.
Fields§
§transform: [f32; 6]Transform matrix [a, b, c, d, tx, ty].
color: u32Premultiplied color, packed as RGBA8 unorm.
invert: u32Whether to paint the inverse (1 - alpha) of the blur coverage.
params0: [f32; 4]Blur parameters: exponent, reciprocal exponent, scale, inverse standard deviation.
params1: [f32; 4]Blur parameters: minimum edge length, adjusted width, adjusted height, outer radius.
size: [f32; 2]Rectangle size [width, height].
_padding1: [u32; 2]Padding to the 16-byte record alignment.
Implementations§
Trait Implementations§
Source§impl Clone for GpuBlurredRoundedRect
impl Clone for GpuBlurredRoundedRect
impl Copy for GpuBlurredRoundedRect
Source§impl Debug for GpuBlurredRoundedRect
impl Debug for GpuBlurredRoundedRect
impl Pod for GpuBlurredRoundedRect
Auto Trait Implementations§
impl Freeze for GpuBlurredRoundedRect
impl RefUnwindSafe for GpuBlurredRoundedRect
impl Send for GpuBlurredRoundedRect
impl Sync for GpuBlurredRoundedRect
impl Unpin for GpuBlurredRoundedRect
impl UnsafeUnpin for GpuBlurredRoundedRect
impl UnwindSafe for GpuBlurredRoundedRect
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.