#[repr(u8)]pub enum PrimKind {
RoundedRect = 0,
LinearGradientRect = 1,
Shadow = 2,
GlyphAlpha8 = 3,
GlyphColorRgba8 = 4,
ImageTexture = 5,
VectorShape = 6,
ExternalGpuSurface = 7,
}Expand description
Unified 8-variant primitive kind encoded in GpuPrimitiveInstance::kind_flags bits [0..4].
Variants§
RoundedRect = 0
Solid or bordered rounded rectangle with analytic per-corner SDF anti-aliasing.
LinearGradientRect = 1
Two-stop linear gradient quad with arbitrary angle and rounded corner clip.
Shadow = 2
Analytic Erf/Gaussian rounded-rect shadow SDF with interleaved gradient noise dither.
GlyphAlpha8 = 3
Monochrome R8 coverage glyph atlas quad with premultiplied text tint.
GlyphColorRgba8 = 4
Full-color RGBA8 emoji or color-font glyph atlas quad.
ImageTexture = 5
Direct GPU image or sprite-sheet region texture quad with optional rounded corners.
VectorShape = 6
Analytic SDF anti-aliased vector shape (Circle, Line, or Triangle).
ExternalGpuSurface = 7
Shared-device external GPU surface (3D game render target or hardware video texture).
Trait Implementations§
impl Copy for PrimKind
impl Eq for PrimKind
Source§impl Ord for PrimKind
impl Ord for PrimKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for PrimKind
impl PartialOrd for PrimKind
impl StructuralPartialEq for PrimKind
Auto Trait Implementations§
impl Forget for PrimKind
impl Freeze for PrimKind
impl Move for PrimKind
impl RefUnwindSafe for PrimKind
impl Send for PrimKind
impl Sync for PrimKind
impl Unpin for PrimKind
impl UnsafeUnpin for PrimKind
impl UnwindSafe for PrimKind
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