egui/crates
Andreas Reich 1603f05818
Wgpu render pass on paint callback has now static lifetime (#5149)
A very common usability issue on egui-wgpu callbacks is that `paint`
can't access any data that doesn't strictly outlive the callback
resources' data. E.g. if the callback resources have an `Arc` to some
resource manager, you can't easily pull out resources since you
statically needed to ensure that those resource references outlived the
renderpass, whose lifetime was only constrained to the callback
resources themselves.

Wgpu 22 no longer has this restriction! Its (render/compute-)passes take
care of the lifetime of any passed resource internally. The lifetime
constraint is _still_ opt-out since it protects from a common runtime
error of adding commands/passes on the parent encoder while a previously
created pass wasn't closed yet.
This is not a concern in egui-wgpu since the paint method where we have
to access the render pass doesn't even have access to the encoder!
2024-09-23 11:48:09 +02:00
..
ecolor Use precomputed lookup table in Color32::from_rgba_unmultiplied (#5088) 2024-09-10 09:50:56 +02:00
eframe Wgpu render pass on paint callback has now static lifetime (#5149) 2024-09-23 11:48:09 +02:00
egui Improve documentation grammar and wording (#5052) 2024-09-22 19:15:11 +02:00
egui-wgpu Wgpu render pass on paint callback has now static lifetime (#5149) 2024-09-23 11:48:09 +02:00
egui-winit Keep track of why `request_discard` was called (#5134) 2024-09-20 09:17:52 +02:00
egui_demo_app Wgpu render pass on paint callback has now static lifetime (#5149) 2024-09-23 11:48:09 +02:00
egui_demo_lib Fix pan_zoom demo constraining windows (#5137) 2024-09-22 19:13:01 +02:00
egui_extras Fix some minor clippy lints from the future 2024-09-18 09:44:23 +02:00
egui_glow Add support for mipmap textures. (#5146) 2024-09-22 19:16:16 +02:00
egui_plot Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Use `log` crate instead of `eprintln` & remove some unwraps (#5010) 2024-09-13 14:23:13 +02:00
epaint Add support for mipmap textures. (#5146) 2024-09-22 19:16:16 +02:00
epaint_default_fonts Enable rustdoc `generate-link-to-definition` feature on docs.rs (#5030) 2024-08-30 11:22:29 +02:00