Skip to content

wgpu backend: Enable WebGL fallback#8038

Merged
emilk merged 4 commits intomainfrom
emilk/wgpu-webgl-default
Mar 27, 2026
Merged

wgpu backend: Enable WebGL fallback#8038
emilk merged 4 commits intomainfrom
emilk/wgpu-webgl-default

Conversation

@emilk
Copy link
Copy Markdown
Owner

@emilk emilk commented Mar 27, 2026

By default, we would only turn on the WebGPU backend on web, which means browsers without WebGPU support would just crash.

You can still opt-out of all the default wgpu features by enabling eframe/wgpu_no_default_features instead of eframe/wgpu

@emilk emilk requested a review from Wumpf as a code owner March 27, 2026 09:56
@emilk emilk added eframe Relates to epi and eframe egui-wgpu labels Mar 27, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 27, 2026

Preview available at https://egui-pr-preview.github.io/pr/8038-emilkwgpu-webgl-default
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

View snapshot changes at kitdiff

@emilk emilk merged commit 3cf3141 into main Mar 27, 2026
46 checks passed
@emilk emilk deleted the emilk/wgpu-webgl-default branch March 27, 2026 10:12
Masterchef365 pushed a commit to Masterchef365/egui that referenced this pull request Apr 3, 2026
* Fix for emilk/eframe_template#223
* Related: gfx-rs/wgpu#9319

By default, we would only turn on the WebGPU backend on web, which means
browsers without WebGPU support would just crash.

You can still opt-out of all the default `wgpu` features by enabling
`eframe/wgpu_no_default_features` instead of `eframe/wgpu`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

eframe Relates to epi and eframe egui-wgpu

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants