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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".