FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ShaderUniformType

    enum · ferroui-base · v0.5.0

    enum ShaderUniformType
    

    The type of a uniform of the convention.

    View source

    Members

    Float

    Float
    

    float (WGSL f32).

    Source

    Float2

    Float2
    

    float2 (WGSL vec2<f32>).

    Source

    Float4

    Float4
    

    float4 (WGSL vec4<f32>).

    Source

    Int

    Int
    

    int (WGSL i32).

    Source

    sksl

    fn sksl(self: Self) -> &'static str
    

    The name of the type in SkSL.

    Source

    wgsl

    fn wgsl(self: Self) -> &'static str
    

    The name of the type in WGSL.

    Source

    components

    fn components(self: Self) -> usize
    

    The number of scalars of the type.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.