Skip to main content

NativeFrame

Trait NativeFrame 

Source
pub trait NativeFrame: Send + Sync {
    // Required method
    fn texture(&self, context: &Context) -> Result<Texture, String>;
}
Expand description

A decoder snapshot, independently retained across playback, seek and source changes. Return a single-sample BGRA/RGBA unorm texture with TEXTURE_BINDING usage.

Required Methods§

Source

fn texture(&self, context: &Context) -> Result<Texture, String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§