pub fn update_canvas_surfaces(
images: ResMut<'_, Assets<Image>>,
query: Query<'_, '_, (&ComputedNode, &ImageNode, &mut CanvasSurface)>,
)Expand description
Paint every canvas with pending work (queued commands, a replace, or a
layout resize — which clears, per HTML canvas semantics) and upload the
result into the backing image. Reads the node’s size from ComputedNode
(already in physical pixels, so the result is crisp on HiDPI).