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§
sourcefn get_wgpu_texture(
&self,
plane: WgpuVideoFramePlaneTexture,
label: Option<&'static str>
) -> Result<Texture, WgpuVideoFrameError>
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