Skip to main content

extract_loaded_images

Function extract_loaded_images 

Source
pub fn extract_loaded_images(main: &mut World, render: &mut World)
Expand description

Extracts every (Transform, LoadedImage) entity into a paired ExtractedImage + ExtractedImageBlob in the render world. Clones the Blob (Arc-cheap) so the renderer’s upload-cache identity is preserved across frames.

The sidecar ExtractedImageBlob is the Node-IR-ready blob payload - see its doc-comment for the splice path to Node::Image { blob: Some(...) }.