1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -04:00

Update to wgpu 0.14 (#2114)

This commit is contained in:
Andreas Reich
2022-10-06 15:50:46 +02:00
committed by GitHub
parent 3ec170cc1e
commit cd74c74f6f
5 changed files with 26 additions and 36 deletions

View File

@@ -88,7 +88,7 @@ dark-light = { version = "0.2.1", optional = true }
directories-next = { version = "2", optional = true }
egui-wgpu = { version = "0.19.0", path = "../egui-wgpu", optional = true, features = ["winit"] } # if wgpu is used, use it with winit
puffin = { version = "0.13", optional = true }
wgpu = { version = "0.13", optional = true }
wgpu = { version = "0.14", optional = true }
# -------------------------------------------
# web:
@@ -145,4 +145,4 @@ web-sys = { version = "0.3.58", features = [
# optional web:
egui-wgpu = { version = "0.19.0", path = "../egui-wgpu", optional = true } # if wgpu is used, use it without (!) winit
tts = { version = "0.20", optional = true } # Can't use 0.21-0.24 due to compilation problems on linux
wgpu = { version = "0.13", optional = true, features = ["webgl"] }
wgpu = { version = "0.14", optional = true, features = ["webgl"] }

View File

@@ -115,6 +115,7 @@ impl WebPainter for WebPainterWgpu {
width: canvas_size[0],
height: canvas_size[1],
present_mode: wgpu::PresentMode::Fifo,
alpha_mode: wgpu::CompositeAlphaMode::Auto,
},
);
self.surface_size = canvas_size.clone();