Skip to main content

WebGPUHTMLVideoTrait

Trait WebGPUHTMLVideoTrait 

Source
pub trait WebGPUHTMLVideoTrait<D: DomTypes>: OriginIsCleanTrait {
    // Required methods
    fn planar_video_for_webgpu(
        &self,
        device: &GPUDevice<D>,
    ) -> Fallible<(Size2D<u32>, Option<Rc<PlanarTexture<D>>>)>;
    fn is_usable(&self) -> bool;
    fn get_current_frame_data(&self) -> Option<Snapshot>;
}

Required Methods§

Implementors§