pub fn capture(
render: &RenderState,
ctx: &Context,
shapes: Vec<ClippedShape>,
pixels_per_point: f32,
size_px: [u32; 2],
clear: [f32; 4],
) -> Result<ColorImage, String>Expand description
Draw shapes at size_px (pixels_per_point) over clear and return the
picture, waiting for the GPU. Its texture delta must already be applied
(apply_texture_sets). Native only: the browser reads back with
Drawn::on_ready.