switch scene authoring paths from direct Vello scenes to imaging - #218
Draft
waywardmonkeys wants to merge 1 commit into
Draft
switch scene authoring paths from direct Vello scenes to imaging#218waywardmonkeys wants to merge 1 commit into
waywardmonkeys wants to merge 1 commit into
Conversation
Member
|
Woot! Thanks @waywardmonkeys . I will take a look soon. :) |
waywardmonkeys
force-pushed
the
imaging-first
branch
2 times, most recently
from
May 22, 2026 06:40
bf68bff to
378d5a4
Compare
waywardmonkeys
force-pushed
the
imaging-first
branch
from
May 22, 2026 17:20
378d5a4 to
fb342ce
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This draft moves
bevy_vellotoward an imaging-first architecture while keeping Vello as the final rendering backend.The main change is that scene-producing integrations no longer author directly into
vello::Scene. Instead, they lower intoimaging::record::Scene, and the renderer replays those retained imaging scenes into the transient framevello::Sceneviaimaging_vello::VelloSceneSink.This is intended as the first stage of the migration, not the final cleanup pass.
Why
bevy_vellohas historically exposed nativevello::Sceneas both its public scene model and its internal interchange format. That makes the crate tightly coupled to one backend and forces each integration path to speak Vello directly.With
imaging,svg_imaging, andvelato_imagingnow available, we can move scene authoring and format lowering onto a shared retained IR while still using Vello for actual rendering.That gives us:
imagingadapters, rendering in backend-specific sinks.What changed
VelloScene2dandUiVelloScenenow retainimaging::record::Sceneinstead ofvello::Scene.imagingscenes into the transient framevello::Scenewithimaging_vello::VelloSceneSink.What did not change
vello::Sceneper frame and renders it as before.Why this is still a draft
This gets the architecture moving in the right direction, but it is not yet the final polish pass.
In particular, this PR does not yet try to:
VelloScenetypesSo this should be read as the structural first step, not the finished end state.
Follow-up work