Trait crabgrab::feature::wgpu::WgpuVideoFrameExt

source ·
pub trait WgpuVideoFrameExt {
    // Required method
    fn get_wgpu_texture(
        &self,
        plane: WgpuVideoFramePlaneTexture,
        label: Option<&'static str>
    ) -> Result<Texture, WgpuVideoFrameError>;
}
Expand description

A video frame which can be used to create Wgpu textures

Required Methods§

source

fn get_wgpu_texture( &self, plane: WgpuVideoFramePlaneTexture, label: Option<&'static str> ) -> Result<Texture, WgpuVideoFrameError>

Get the texture for the given plane of the video frame

Implementors§