Available on crate feature
toolkit only.Expand description
Shared egui → egui_glow rendering core on an EGL/GLES context bound to a
Wayland surface, plus zero-copy dma-buf → GL texture import.
This is the toolkit half of wlr-capture: any windowing host (the
wlr-chooser layer-shell overlay, the wlr-pip xdg-toplevel mirror, …) binds
a Gpu to its wl_surface and drives one egui frame per repaint with
Gpu::render. The host owns the GL context, so it (via the importer handed
to the UI closure) turns capture dma-bufs into drawable textures.
Structs§
- Gpu
- EGL/GL state bound to a
wl_surface, created once the surface has its first size. Owns the egui_glow painter and the dma-buf texture cache.
Traits§
- Dmabuf
Importer - Host-side importer for GPU dma-buf frames. The windowing host owns the GL context, so it (not a toolkit-agnostic UI) turns a dma-buf into a drawable egui texture. Returns the texture id + source pixel size.