FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ShaderUniformValue

    enum · ferroui-base · v0.5.0

    enum ShaderUniformValue
    

    The value of a uniform of the convention.

    View source

    Members

    Float

    Float(f32)
    

    A float.

    Source

    Float2

    Float2([f32; 2])
    

    A float2.

    Source

    Float4

    Float4([f32; 4])
    

    A float4.

    Source

    Int

    Int(i32)
    

    An int.

    Source

    ty

    fn ty(self: &Self) -> ShaderUniformType
    

    The type of the value.

    Source

    from_parameter

    fn from_parameter(value: &EffectParameterValue) -> Option<Self>
    

    The uniform of a parameter value by the convention; None for text, which has none, and for an image, which is a child.

    Source

    floats

    fn floats(self: &Self) -> &[f32]
    

    The scalars of a float value, in order; empty for an int.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • 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

    Availability

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