1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -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

@@ -1,9 +1,10 @@
use std::sync::Arc;
use egui::mutex::RwLock;
use tracing::error;
use wgpu::{Adapter, Instance, Surface};
use epaint::mutex::RwLock;
use crate::{renderer, RenderState, Renderer, SurfaceErrorAction, WgpuConfiguration};
struct SurfaceState {
@@ -249,9 +250,9 @@ impl Painter {
pub fn paint_and_update_textures(
&mut self,
pixels_per_point: f32,
clear_color: egui::Rgba,
clipped_primitives: &[egui::ClippedPrimitive],
textures_delta: &egui::TexturesDelta,
clear_color: epaint::Rgba,
clipped_primitives: &[epaint::ClippedPrimitive],
textures_delta: &epaint::textures::TexturesDelta,
) {
crate::profile_function!();