Skip to content

Commit

Permalink
Wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurBrussee committed Oct 29, 2024
1 parent f481fca commit 36f51f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions crates/eframe/src/web/web_painter_wgpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use wasm_bindgen::JsValue;
use web_sys::HtmlCanvasElement;

use crate::WebOptions;
use egui_wgpu::{RenderState, SurfaceErrorAction, WgpuDeviceSetup};
use egui_wgpu::{RenderState, SurfaceErrorAction, WgpuSetup};

use super::web_painter::WebPainter;

Expand Down Expand Up @@ -87,8 +87,8 @@ impl WebPainterWgpu {
) -> Result<Self, String> {
log::debug!("Creating wgpu painter");

let instance = match &options.wgpu_options.wgpu_device_setup {
WgpuDeviceSetup::Standard {
let instance = match &options.wgpu_options.wgpu_setup {
WgpuSetup::CreateNew {
supported_backends: backends,
power_preference,
..
Expand Down Expand Up @@ -176,7 +176,7 @@ impl WebPainterWgpu {
#[allow(clippy::arc_with_non_send_sync)]
Arc::new(instance)
}
WgpuDeviceSetup::Existing { instance, .. } => instance.clone(),
WgpuSetup::Existing { instance, .. } => instance.clone(),
};

let surface = instance
Expand Down
2 changes: 1 addition & 1 deletion crates/egui-wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//! ```
//!
//! You can control whether WebGL or WebGPU will be picked at runtime by configuring
//! [`WgpuConfiguration::wgpu_device_setup`].
//! [`WgpuConfiguration::wgpu_setup`].
//! The default is to prefer WebGPU and fall back on WebGL.
//!
//! ## Feature flags
Expand Down

0 comments on commit 36f51f2

Please sign in to comment.