diff --git a/crates/eframe/src/web/web_painter_wgpu.rs b/crates/eframe/src/web/web_painter_wgpu.rs index 0ec0f8239d1..857a1f5404c 100644 --- a/crates/eframe/src/web/web_painter_wgpu.rs +++ b/crates/eframe/src/web/web_painter_wgpu.rs @@ -7,7 +7,7 @@ use raw_window_handle::{ use wasm_bindgen::JsValue; use web_sys::HtmlCanvasElement; -use egui_wgpu::{renderer::ScreenDescriptor, RenderState, SurfaceErrorAction}; +use egui_wgpu::{RenderState, SurfaceErrorAction}; use crate::WebOptions; @@ -233,7 +233,7 @@ impl WebPainter for WebPainterWgpu { }); // Upload all resources for the GPU. - let screen_descriptor = ScreenDescriptor { + let screen_descriptor = egui_wgpu::ScreenDescriptor { size_in_pixels, pixels_per_point, }; diff --git a/crates/egui-wgpu/src/winit.rs b/crates/egui-wgpu/src/winit.rs index 12e8e25ad06..07c917155aa 100644 --- a/crates/egui-wgpu/src/winit.rs +++ b/crates/egui-wgpu/src/winit.rs @@ -73,7 +73,7 @@ impl BufferPadding { /// Everything you need to paint egui with [`wgpu`] on [`winit`]. /// -/// Alternatively you can use [`crate::renderer`] directly. +/// Alternatively you can use [`crate::Renderer`] directly. /// /// NOTE: all egui viewports share the same painter. pub struct Painter {