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.
Based on the discussion in #1555, it looks like providing an official wgpu backend might have its benefits.
This builds on Nils Hasenbanck's egui_wgpu_backend but removes the need for egui_winit_platform and some boilerplate code and instead uses egui's own
egui-winit
andeframe
. This approach worked well in egui 0.17 using the separateepi
crate. 0.18 made this approach invalid asepi
was moved intoeframe
.@hasenbanck Since this is a heavily modified fork from your repository from around egui 0.16, you are still listed as the primary author. I also left the original license files in here, at least for now. Let me know if this is okay for you.
This does not compile right now. But as outlined in #1555, there is some potential for sharing code between the glow and wgpu backend which we can experiment with in this PR.