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:
@@ -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"] }
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -40,7 +40,7 @@ egui = { version = "0.19.0", path = "../egui", default-features = false, feature
|
||||
bytemuck = "1.7"
|
||||
tracing = { version = "0.1", default-features = false, features = ["std"] }
|
||||
type-map = "0.5.0"
|
||||
wgpu = "0.13"
|
||||
wgpu = "0.14"
|
||||
|
||||
#! ### Optional dependencies
|
||||
## Enable this when generating docs.
|
||||
|
||||
@@ -129,6 +129,7 @@ impl<'a> Painter<'a> {
|
||||
width: width_in_pixels,
|
||||
height: height_in_pixels,
|
||||
present_mode: self.present_mode,
|
||||
alpha_mode: wgpu::CompositeAlphaMode::Auto,
|
||||
};
|
||||
|
||||
let surface_state = self
|
||||
|
||||
Reference in New Issue
Block a user