Repository navigation
feat!: support Bevy 0.20 - #66
Merged
Merged
Conversation
added 9 commits
October 14, 2026 23:38
Bump bevy / bevy_remote to 0.20 and wgpu to 30, declare MSRV 1.97.1, migrate to flat pointer events, move every shader to WESL (bevy_cef::webview::util replaces webview::util), and rebind sprite webview materials now that Bevy renders Sprite through Mesh2d + SpriteMeshMaterial.
…--locked A library's Cargo.lock does not apply to dependent applications, so the caret requirement let them resolve newer 152.x bindings against the 152.0.6 runtime. cargo install ignores the lockfile without --locked.
not-elm
marked this pull request as ready for review
October 15, 2026 01:30
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.
Problem
bevy_cef 0.13 targets Bevy 0.19. Bevy 0.20 (wgpu 30, MSRV 1.97.1) changes several APIs bevy_cef depends on (pointer events,
MeshAabb, WGSL → WESL shader modules, wgpu HAL texture import) and also changes behavior silently:Spritenow renders throughMesh2d+MeshMaterial2d<SpriteMeshMaterial>, so every sprite matches the mesh-pathWith<Mesh2d>filters (double input) and its cached material keeps a stale bind group after the webview image is reallocated.Material2d/MeshMaterial3dpreparation has no ordering dependency onGpuImagepreparation.MaterialPlugin::buildstarts loading the fragment shader immediately.Solution
refactor: route mesh webview filters through MeshWebviewFilter: behavior-neutral on 0.19; one alias(Or<(With<Mesh3d>, With<Mesh2d>)>, Without<Sprite>)for all four mesh-path sites.feat!: support Bevy 0.20:rust-version = "1.97.1".PointerPress, …),MeshAabb::get_aabb, wgpu 30 IOSurface import.bevy_cef::webview::util(load_shader_library!). Embedded shaders are registered before theirMaterialPluginis added.WebviewExtendedMaterial<E>material preparation afterGpuImage. The CPU paint systems run beforeAssetEventSystems.webview_blitis ordered.before(RenderGraphSystems::Render)explicitly.docs: release notes and compatibility table for 0.14.0: version 0.14.0, README / CLAUDE.md / CHANGELOG.build: pin cef to =152.3.0+152.0.6 and install render processes with --locked.docs(website): update the custom material guide for WESL.CEF stays at 152.3.0+152.0.6.
Spec:
docs/superpowers/specs/2026-10-14-bevy-0.20-migration-design.mdPlan:
docs/superpowers/plans/2026-10-15-bevy-0.20-migration.mdTest Pattern
Done (macOS):
cargo clippy --workspace --all-targets --all-features -- -Dwarnings,cargo fmt --all -- --checkcargo test --workspace --no-default-features --tests(76 + 54),cargo test --doctarget_os = "macos"to"ios"in a temporary worktree (clippy clean, tests pass, including the CPU-onlyupdate_webview_imageand sprite repaint tests)simple,custom_material,ui_webview,headless_texture,sprite,resizelaunched with--features debug: no shader, schedule or panic errors in the logsPending (this draft PR is for CI first):
sprite_regressionscenario (click/wheel delivered once, R-key resize, lateWebviewSource,HDR=1,SHUFFLE_SEED=1..3)