#[repr(u32)]pub enum PaintType {
Solid = 0,
Image = 1,
LinearGradient = 2,
RadialGradient = 3,
SweepGradient = 4,
BlurredRoundedRect = 5,
}Expand description
How the fragment shader turns an instance’s payload into colour.
The discriminants are the shader’s own paint-type numbering, not an
arbitrary ordering — they are written into
GpuStrip::paint_and_rect_flag as-is.
Variants§
Solid = 0
The payload is a premultiplied RGBA8 colour, used directly.
Image = 1
The payload is a sample position; the record names an atlas image.
LinearGradient = 2
The payload is a sample position; the record names a linear gradient.
RadialGradient = 3
The payload is a sample position; the record names a radial gradient.
SweepGradient = 4
The payload is a sample position; the record names a sweep gradient.
BlurredRoundedRect = 5
The payload is a sample position; the record names a blurred rounded rectangle.
Trait Implementations§
impl Copy for PaintType
impl Eq for PaintType
impl StructuralPartialEq for PaintType
Auto Trait Implementations§
impl Freeze for PaintType
impl RefUnwindSafe for PaintType
impl Send for PaintType
impl Sync for PaintType
impl Unpin for PaintType
impl UnsafeUnpin for PaintType
impl UnwindSafe for PaintType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.