pub struct ExtractedImageBlob(pub Blob<u8>);Expand description
Render-world sidecar carrying a pre-built peniko::Blob for an extracted image.
Queried alongside ExtractedImage by the renderer so the Blob reaches the painter unchanged, preserving its upload-cache identity.
§Node IR splice (W2.1 follow-up)
The retained Node IR’s Node::Image { blob: Option<Arc<dyn Any + Send + Sync>> } already accepts this
payload as an opaque Arc<dyn Any> so the walker downcasts back to ExtractedImageBlob and paints it.
On the on-screen winit path the splice is handled today by render_frame reading both ExtractedImage and
ExtractedImageBlob in lockstep and emitting the image draw alongside the retained-tree walk; the same
splice is the reason the offscreen retained-tree path doesn’t yet light up images. The audit-follow-up that
finishes the migration must update lumen_core::node_ir::transform_extracted_to_nodes to query
ExtractedImageBlob and set Node::Image.blob = Some(Arc::new(blob.clone())) directly - which requires a
core-touching PR that this crate is not allowed to perform alone.
Tuple Fields§
§0: Blob<u8>Trait Implementations§
Source§impl Clone for ExtractedImageBlob
impl Clone for ExtractedImageBlob
Source§fn clone(&self) -> ExtractedImageBlob
fn clone(&self) -> ExtractedImageBlob
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Component for ExtractedImageBlob
impl Component for ExtractedImageBlob
Source§const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table
const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table
Source§type Mutability = Mutable
type Mutability = Mutable
Component<Mutability = Mutable>],
while immutable components will instead have [Component<Mutability = Immutable>]. Read moreSource§fn register_required_components(
_requiree: ComponentId,
required_components: &mut RequiredComponentsRegistrator<'_, '_>,
)
fn register_required_components( _requiree: ComponentId, required_components: &mut RequiredComponentsRegistrator<'_, '_>, )
Source§fn clone_behavior() -> ComponentCloneBehavior
fn clone_behavior() -> ComponentCloneBehavior
Source§fn relationship_accessor() -> Option<ComponentRelationshipAccessor<Self>>
fn relationship_accessor() -> Option<ComponentRelationshipAccessor<Self>>
ComponentRelationshipAccessor] required for working with relationships in dynamic contexts. Read more§fn on_add() -> Option<for<'w> fn(DeferredWorld<'w>, HookContext)>
fn on_add() -> Option<for<'w> fn(DeferredWorld<'w>, HookContext)>
on_add [ComponentHook] for this [Component] if one is defined.§fn on_insert() -> Option<for<'w> fn(DeferredWorld<'w>, HookContext)>
fn on_insert() -> Option<for<'w> fn(DeferredWorld<'w>, HookContext)>
on_insert [ComponentHook] for this [Component] if one is defined.§fn on_discard() -> Option<for<'w> fn(DeferredWorld<'w>, HookContext)>
fn on_discard() -> Option<for<'w> fn(DeferredWorld<'w>, HookContext)>
on_discard [ComponentHook] for this [Component] if one is defined.§fn on_remove() -> Option<for<'w> fn(DeferredWorld<'w>, HookContext)>
fn on_remove() -> Option<for<'w> fn(DeferredWorld<'w>, HookContext)>
on_remove [ComponentHook] for this [Component] if one is defined.§fn on_despawn() -> Option<for<'w> fn(DeferredWorld<'w>, HookContext)>
fn on_despawn() -> Option<for<'w> fn(DeferredWorld<'w>, HookContext)>
on_despawn [ComponentHook] for this [Component] if one is defined.§fn map_entities<E>(_this: &mut Self, _mapper: &mut E)where
E: EntityMapper,
fn map_entities<E>(_this: &mut Self, _mapper: &mut E)where
E: EntityMapper,
EntityMapper]. This is used to remap entities in contexts like scenes and entity cloning.
When deriving [Component], this is populated by annotating fields containing entities with #[entities] Read moreAuto Trait Implementations§
impl Freeze for ExtractedImageBlob
impl !RefUnwindSafe for ExtractedImageBlob
impl Send for ExtractedImageBlob
impl Sync for ExtractedImageBlob
impl Unpin for ExtractedImageBlob
impl UnsafeUnpin for ExtractedImageBlob
impl !UnwindSafe for ExtractedImageBlob
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<C> Bundle for Cwhere
C: Component,
impl<C> Bundle for Cwhere
C: Component,
fn component_ids( components: &mut ComponentsRegistrator<'_>, ) -> impl Iterator<Item = ComponentId> + use<C>
§fn get_component_ids(
components: &Components,
) -> impl Iterator<Item = Option<ComponentId>>
fn get_component_ids( components: &Components, ) -> impl Iterator<Item = Option<ComponentId>>
Bundle]’s component ids. This will be None if the component has not been registered.