oa::video::from_texture_with_ready

Retain a texture and its exact producer completion in one video frame. This is the render-target path: it shares the texture and event without a readback, wait, or pixel copy. The event must belong to the texture’s Engine. Errors Returns an error when ready comes from a different Engine.

FnRust public API

Function Documentation

pub fn from_texture_with_ready( texture: &Texture, timing: VideoFrameTiming, color: VideoColorInfo, ready: &Event ) -> Result<VideoFrame>
Retain a texture and its exact producer completion in one video frame. This is the render-target path: it shares the texture and event without a readback, wait, or pixel copy. The event must belong to the texture’s Engine. Errors Returns an error when ready comes from a different Engine.