#wgpu #egui #gamedev

egui-wgpu

Bindings for using egui natively using the wgpu library

31 releases (14 breaking)

0.31.1 Mar 5, 2025
0.30.0 Dec 16, 2024
0.29.1 Oct 1, 2024
0.28.1 Jul 5, 2024
0.0.1-alpha.1 Jul 28, 2021

#1459 in GUI

Download history 25393/week @ 2024-12-05 27929/week @ 2024-12-12 21518/week @ 2024-12-19 17115/week @ 2024-12-26 27976/week @ 2025-01-02 28136/week @ 2025-01-09 30267/week @ 2025-01-16 30981/week @ 2025-01-23 34267/week @ 2025-01-30 30951/week @ 2025-02-06 24088/week @ 2025-02-13 38075/week @ 2025-02-20 38536/week @ 2025-02-27 57319/week @ 2025-03-06 65279/week @ 2025-03-13 49017/week @ 2025-03-20

216,431 downloads per month
Used in 233 crates (29 directly)

MIT/Apache

2MB
40K 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 configuring WgpuConfiguration::wgpu_setup. The default is to prefer WebGPU and fall back on WebGL.

Feature flags

Dependencies

~14–50MB
~817K SLoC