#wgpu #egui #gamedev #web-gui #web-native

egui-wgpu

Bindings for using egui natively using the wgpu library

28 releases (12 breaking)

0.29.1 Oct 1, 2024
0.28.1 Jul 5, 2024
0.27.1 Mar 29, 2024
0.24.1 Nov 30, 2023
0.0.1-alpha.1 Jul 28, 2021

#147 in Game dev

Download history 14247/week @ 2024-07-28 15516/week @ 2024-08-04 18107/week @ 2024-08-11 12952/week @ 2024-08-18 15336/week @ 2024-08-25 14152/week @ 2024-09-01 14413/week @ 2024-09-08 12198/week @ 2024-09-15 16563/week @ 2024-09-22 17402/week @ 2024-09-29 18783/week @ 2024-10-06 24824/week @ 2024-10-13 20950/week @ 2024-10-20 23101/week @ 2024-10-27 23958/week @ 2024-11-03 19290/week @ 2024-11-10

89,359 downloads per month
Used in 136 crates (24 directly)

MIT/Apache

2MB
38K 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

~13–49MB
~828K SLoC