mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
* [egui-wgpu] Do vertex & index buffer in a single copy each Also, copy uniform buffer only if necessary. Previously, we did hundreds of small copies via queue.write_buffer which would create a new buffer for each of these copies. Now, there are only two gpu sided copy operations and the memory goes directly to the staging buffer. In a quick debug test on Rerun this decreased time for the `update_buffer` method from about 0.87ms to 0.37ms! * fix comparing padding on UniformBuffer in wgpu renderer --------- Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2.6 KiB
2.6 KiB
Changelog for egui-wgpu
All notable changes to the egui-wgpu integration will be noted in this file.
Unreleased
- Add
read_screan_rgbato the egui-wgpuPainter, to allow for capturing the current frame when using wgpu. Used in conjuction withFrame::request_screenshot. (#2676) - Improve performance of
update_buffers(#2820)
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.