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

wgpu implementation for viewport sync

This commit is contained in:
Konkitoman
2023-08-06 10:11:57 +03:00
parent 860160ed05
commit 085724b685
2 changed files with 224 additions and 66 deletions

View File

@@ -88,6 +88,9 @@ pub struct Painter {
surfaces: HashMap<u64, SurfaceState>,
}
unsafe impl Send for Painter {}
unsafe impl Sync for Painter {}
impl Painter {
/// Manages [`wgpu`] state, including surface state, required to render egui.
///