Crate egui_wgpu

source ·
Expand description

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

  • puffin — Enable profiling with the puffin crate.
  • winit — Enable winit integration. On Linux, requires either wayland or x11
  • wayland — Enables Wayland support for winit.
  • x11 — Enables x11 support for winit.

Re-exports§

Modules§

Structs§

Enums§

Traits§

Functions§

Type Aliases§