1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 14:50:03 -04:00

egui-wgpu: only depend on epaint (not entire egui) (#2438)

* egui-wgpu: only depend on epaint (not entire egui)

* Update changelog link

* Fix doclinks
This commit is contained in:
Emil Ernerfeldt
2022-12-12 17:25:00 +01:00
committed by GitHub
parent e0b5bb17e5
commit c58ac86935
6 changed files with 47 additions and 42 deletions

View File

@@ -8,18 +8,19 @@
pub use wgpu;
/// Low-level painting of [`egui`] on [`wgpu`].
/// Low-level painting of [`egui`](https://github.com/emilk/egui) on [`wgpu`].
pub mod renderer;
pub use renderer::CallbackFn;
pub use renderer::Renderer;
/// Module for painting [`egui`] with [`wgpu`] on [`winit`].
/// Module for painting [`egui`](https://github.com/emilk/egui) with [`wgpu`] on [`winit`].
#[cfg(feature = "winit")]
pub mod winit;
use egui::mutex::RwLock;
use std::sync::Arc;
use epaint::mutex::RwLock;
/// Access to the render state for egui.
#[derive(Clone)]
pub struct RenderState {