FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MetalTextureRender

    trait · ferroui-media-metal · v0.5.0

    trait MetalTextureRender: Send + Sync
    

    Client-owned scene and library adapter. Encode premultiplied sRGB BGRA8 output, including transparent pixels. Input metadata supplies crop, orientation and color; the client owns its shading and hit testing.

    View source

    Members

    encode

    fn encode(self: &Self, context: &MetalRenderContext<'_>, viewport: RendererViewport, inputs: &[FrameLease]) -> Result<(), MediaError>
    

    Source

    Availability

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