mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 14:49:06 -04:00
## Short bluesky announcement: We just released egui 0.33.0! Highlights: - `egui::Plugin` a improved way to create and access egui plugins - [kitdiff](https://github.com/rerun-io/kitdiff), a viewer for egui_kittest image snapshots (and a general image diff tool) - better kerning (check the diff on [kitdiff](https://rerun-io.github.io/kitdiff/?url=https://github.com/emilk/egui/pull/7431)) https://github.com/user-attachments/assets/971f0493-6dae-42e5-8019-58b74cf5d203 ## Relaese Changelog: egui is an easy-to-use immediate mode GUI for Rust that runs on both web and native. Try it now: <https://www.egui.rs/> egui development is sponsored by [Rerun](https://www.rerun.io/), a startup building an SDK for visualizing streams of multimodal data. # egui 0.33.0 changelog Highlights from this release: - `egui::Plugin` a improved way to create and access egui plugins - [kitdiff](https://github.com/rerun-io/kitdiff), a viewer for egui_kittest image snapshots (and a general image diff tool) - better kerning ### Improved kerning As a step towards using [parley](https://github.com/linebender/parley) for font rendering, @valadaptive has refactored the font loading and rendering code. A result of this (next to the font rendering code being much nicer now) is improved kerning. Notice how the c moved away from the k:  ### `egui::Plugin` trait We've added a new trait-based plugin api, meant to replace `Context::on_begin_pass` and `Context::on_end_pass`. This makes it a lot easier to handle state in your plugins. Instead of having to write to egui memory it can live right on your plugin struct. The trait based api also makes easier to add new hooks that plugins can use. In addition to `on_begin_pass` and `on_end_pass`, the `Plugin` trait now has a `input_hook` and `output_hook` which you can use to inspect / modify the `RawInput` / `FullOutput`. ### kitdiff, a image diff viewer At rerun we have a ton of snapshots. Some PRs will change most of them (e.g. [the](https://github.com/rerun-io/rerun/pull/11253/files) [one](https://rerun-io.github.io/kitdiff/?url=https://github.com/rerun-io/rerun/pull/11253/files) that updated egui and introduced the kerning improvements, ~500 snapshots changed!). If you really want to look at every changed snapshot it better be as efficient as possible, and the experience on github, fiddeling with the sliders, is kind of frustrating. In order to fix this, we've made [kitdiff](https://rerun-io.github.io/kitdiff/). You can use it locally via - `kitdiff files .` will search for .new.png and .diff.png files - `kitdiff git` will compare the current files to the default branch (main/master) Or in the browser via - going to https://rerun-io.github.io/kitdiff/ and pasting a PR or github artifact url - linking to kitdiff via e.g. a github workflow `https://rerun-io.github.io/kitdiff/?url=<link_to_pr_or_artefact>` To install kitdiff run `cargo install --git https://github.com/rerun-io/kitdiff` Here is a video showing the kerning changes in kitdiff ([try it yourself](https://rerun-io.github.io/kitdiff/?url=https://github.com/rerun-io/rerun/pull/11253/files)): https://github.com/user-attachments/assets/74640af1-09ba-435a-9d0c-2cbeee140c8f ### Migration guide - `egui::Mutex` now has a timeout as a simple deadlock detection - If you use a `egui::Mutex` in some place where it's held for longer than a single frame, you should switch to the std mutex or parking_lot instead (egui mutexes are wrappers around parking lot) - `screen_rect` is deprecated - In order to support safe areas, egui now has `viewport_rect` and `content_rect`. - Update all usages of `screen_rect` to `content_rect`, unless you are sure that you want to draw outside the `safe area` (which would mean your Ui may be covered by notches, system ui, etc.)
10 KiB
10 KiB
Changelog for egui-wgpu
All notable changes to the egui-wgpu integration will be noted in this file.
This file is updated upon each release.
Changes since the last release can be found at https://github.com/emilk/egui/compare/latest...HEAD or by running the scripts/generate_changelog.py script.
0.33.0 - 2025-10-09
🔧 Changed
- Update wgpu to 26 and wasm-bindgen to 0.2.100 #7540 by @Kumpelinus
- Warn if
DYLD_LIBRARY_PATHis set and we find no wgpu adapter #7572 by @emilk - Update MSRV from 1.86 to 1.88 #7579 by @Wumpf
- Update wgpu to 27.0.0 #7580 by @Wumpf
- Create
egui_wgpu::RendererOptions#7601 by @emilk - Use software texture filtering in kittest #7602 by @emilk
0.32.3 - 2025-09-12
Nothing new
0.32.2 - 2025-09-04
Nothing new
0.32.1 - 2025-08-15
- Enable wgpu default features in eframe / egui_wgpu default features #7344 by @lucasmerlin
0.32.0 - 2025-07-10
- Update to wgpu 25 #6744 by @torokati44
- Free textures after submitting queue instead of before with wgpu renderer on Web #7291 by @Wumpf
- Improve texture filtering by doing it in gamma space #7311 by @emilk
0.31.1 - 2025-03-05
Nothing new
0.31.0 - 2025-02-04
- Upgrade to wgpu 24 #5610 by @torokati44
- Extend
WgpuSetup,egui_kittestnow prefers software rasterizers for testing #5506 by @Wumpf - Wgpu resources are no longer wrapped in
Arc(since they are nowClone) #5612 by @Wumpf
0.30.0 - 2024-12-16
- Fix docs.rs build #5204 by @lucasmerlin
- Free textures after submitting queue instead of before with wgpu renderer #5226 by @Rusty-Cube
- Add option to initialize with existing wgpu instance/adapter/device/queue #5319 by @ArthurBrussee
- Updare to
wgpu23.0.0 andwasm-bindgento 0.2.95 #5330 by @torokati44 - Support wgpu-tracing with same mechanism as wgpu examples #5450 by @EriKWDev
0.29.1 - 2024-10-01
Nothing new
0.29.0 - 2024-09-26 - wgpu 22.0
⭐ Added
🔧 Changed
- Upgrade to wgpu 22.0.0 #4847 by @KeKsBoTer
- Introduce dithering to reduce banding #4497 by @jwagner
- Ensure that
WgpuConfigurationisSend + Sync#4803 by @murl-digital - Wgpu render pass on paint callback has now
'staticlifetime #5149 by @Wumpf
🐛 Fixed
- Update sampler along with texture on wgpu backend #5122 by @valadaptive
0.28.1 - 2024-07-05
Nothing new
0.28.0 - 2024-07-03
- Update to wgpu 0.20 #4433 by @KeKsBoTer
- Fix doclinks in egui-wgpu docs #4677 by @emilk
0.27.2 - 2024-04-02
- Nothing new
0.27.1 - 2024-03-29
- Nothing new
0.27.0 - 2024-03-26
- Improve panic message in egui-wgpu when failing to create buffers #3986
0.26.2 - 2024-02-14
- Nothing new
0.26.1 - 2024-02-11
- Improve panic message in egui-wgpu when failing to create buffers #3986
0.26.0 - 2024-02-05
- Update wgpu to 0.19 #3824
- Add
WgpuConfiguration::desired_maximum_frame_latency#3874 - Disable the default features of
wgpu#3875 - If WebGPU fails, re-try adapter creation with WebGL #3895 (thanks @Wumpf!)
- Delay call to
get_current_texture(possible small performance win) #3914 - Add
x11andwaylandfeatures #3909 (thanks @YgorSouza!) - Pass
ScreenDescriptortoegui_wgpu::CallbackTrait::prepare#3960 (thanks @StratusFearMe21!) - Make
egui_wgpu::renderera private module #3979
0.25.0 - 2024-01-08
- Only call wgpu paint callback if viewport is positive #3778 (thanks @msparkles!)
0.24.1 - 2023-11-30
- Add a few
puffinprofile scopes
0.24.0 - 2023-11-23
- Updated to wgpu 0.18 #3505 (thanks @Wumpf!)
- Update MSRV to Rust 1.72 #3595
- Properly clamp and round viewport values, preventing rare warnings #3604 (thanks @Wumpf!)
0.23.0 - 2023-09-27
- Update to
wgpu0.17.0 #3170 (thanks @Aaron1011!) - Improved wgpu callbacks #3253 (thanks @Wumpf!)
- Fix depth texture init with multisampling #3207 (thanks @mauliu!)
- Fix panic on wgpu GL backend due to new screenshot capability #3078 (thanks @amfaber!)
0.22.0 - 2023-05-23
- Update to wgpu 0.16 #2884 (thanks @niklaskorz!)
- Device configuration is now dependent on adapter #2951 (thanks @Wumpf!)
- Expose
wgpu::AdapterviaRenderState#2954 (thanks @Wumpf!) - Add
read_screen_rgbato the egui-wgpuPainter, to allow for capturing the current frame when using wgpu. Used in conjunction withFrame::request_screenshot#2676 - Improve performance of
update_buffers#2820 (thanks @Wumpf!) - Added support for multisampling (MSAA) #2878 (thanks @PPakalns!)
0.21.0 - 2023-02-08
- Update to
wgpu0.15 (#2629) - Return
Errinstead of panic if we can't find a device (#2428). winit::Painter::set_windowis nowasync(#2434).egui-wgpunow only depends onepaintinstead of the entireegui(#2438).winit::Painternow supports transparent backbuffer (#2684).
0.20.0 - 2022-12-08 - web support
- Renamed
RenderPasstoRenderer. - Renamed
RenderPass::executetoRenderPass::render. - Renamed
RenderPass::execute_with_renderpasstoRenderer::render(replacing existingRenderer::render) - Reexported
Renderer. - You can now use
egui-wgpuon web, using WebGL (#2107). Rendererno longer handles pass creation and depth buffer creation (#2136)PrepareCallbacknow passeswgpu::CommandEncoder(#2136)PrepareCallbackcan now returnswgpu::CommandBufferthat are bundled into a singlewgpu::Queue::submitcall (#2230)- Only a single vertex & index buffer is now created and resized when necessary (previously, vertex/index buffers were allocated for every mesh) (#2148).
Renderer::update_textureno longer creates a newwgpu::Samplerwith every new texture (#2198)Painter's instance/device/adapter/surface creation is now configurable viaWgpuConfiguration(#2207)- Fix panic on using a depth buffer (#2316)
0.19.0 - 2022-08-20
- Enables deferred render + surface state initialization for Android (#1634).
- Make
RenderPassSendandSync(#1883).
0.18.0 - 2022-05-15
First published version since moving the code into the egui repository from https://github.com/LU15W1R7H/eww.