FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ShaderEffectMode

    enum · ferroui-base · v0.5.0

    enum ShaderEffectMode
    

    What the program of a shader effect computes.

    View source

    Members

    ContentSampling

    ContentSampling
    

    The program samples the content (the child content) and its output replaces the content over the area of the effect (a pixelation, a distortion). Skia draws it as the runtime shader image filter of the layer of the content, so the content stays a texture of the GPU.

    Source

    Overlay

    Overlay
    

    The program does not sample the content: its output is drawn over the content with the blend mode of the description (a procedural overlay: scan lines, a spotlight), inside the layer of the content, so it blends with the content only; masked by the alpha of the content when the description is masked.

    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
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash

    Availability

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