Struct webrender::renderer::ExternalImage[][src]

pub struct ExternalImage<'a> {
    pub uv: TexelRect,
    pub source: ExternalImageSource<'a>,

The data that an external client should provide about an external image. The timestamp is used to test if the renderer should upload new texture data this frame. For instance, if providing video frames, the application could call wr.render() whenever a new video frame is ready. If the callback increments the returned timestamp for a given image, the renderer will know to re-upload the image data to the GPU. Note that the UV coords are supplied in texel-space!


Auto Trait Implementations

impl<'a> Send for ExternalImage<'a>

impl<'a> Sync for ExternalImage<'a>