#wgpu #egui #gamedev #web-native

egui-wgpu

Bindings for using egui natively using the wgpu library

22 releases (10 breaking)

new 0.27.0 Mar 26, 2024
0.25.0 Jan 8, 2024
0.24.1 Nov 30, 2023
0.22.0 May 23, 2023
0.0.1-alpha.1 Jul 28, 2021

#260 in GUI

Download history 2759/week @ 2023-12-07 3035/week @ 2023-12-14 2691/week @ 2023-12-21 2198/week @ 2023-12-28 4137/week @ 2024-01-04 3822/week @ 2024-01-11 3484/week @ 2024-01-18 2682/week @ 2024-01-25 3714/week @ 2024-02-01 6222/week @ 2024-02-08 7852/week @ 2024-02-15 7548/week @ 2024-02-22 11126/week @ 2024-02-29 12299/week @ 2024-03-07 10370/week @ 2024-03-14 11526/week @ 2024-03-21

46,501 downloads per month
Used in 63 crates (19 directly)

MIT/Apache

2.5MB
34K SLoC

egui-wgpu

Latest version Documentation MIT Apache

This crates provides bindings between egui and wgpu.

This was originally hosted at https://github.com/hasenbanck/egui_wgpu_backend


lib.rs:

This crates provides bindings between egui and wgpu.

If you're targeting WebGL you also need to turn on the webgl feature of the wgpu crate:

# Enable both WebGL and WebGPU backends on web.
wgpu = { version = "*", features = ["webgpu", "webgl"] }

You can control whether WebGL or WebGPU will be picked at runtime by setting WgpuConfiguration::supported_backends. The default is to prefer WebGPU and fall back on WebGL.

Feature flags

Dependencies

~11–52MB
~833K SLoC