render_next_in_batch

Function render_next_in_batch 

Source
pub fn render_next_in_batch(
    renderer: &mut BatchRenderer,
    _timeout_ms: u32,
) -> Result<Option<BatchRenderOutput>, RenderError>
Expand description

Process and execute the next render in the batch queue.

Executes a single render from the queued requests. Returns None when the queue is empty. Use this in a loop to process all queued renders.

§Arguments

  • renderer - The batch renderer instance
  • timeout_ms - Timeout in milliseconds for this render

§Returns

Some(output) if a render completed, None if queue is empty

§Example

loop {
    match render_next_in_batch(&mut renderer, 500)? {
        Some(output) => println!("Render complete: {:?}", output.status),
        None => break, // All renders done
    }
}