Skip to content

Commit f33276b

Browse files
committed
Switch egui backend to crates, adjust the limits
1 parent 2edeb85 commit f33276b

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Cargo.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ winit = "0.28"
7171
# gui
7272
egui = "0.22"
7373
egui_winit_platform = "0.19"
74-
#egui_wgpu_backend = "0.24"
75-
egui_wgpu_backend = { git = "https://github.com/kvark/egui_wgpu_backend", branch = "wgpu-0.17" }
74+
egui_wgpu_backend = "0.25"
7675

7776
[dev-dependencies]
7877
naga = { version = "0.13", features = ["wgsl-in", "validate"] }
@@ -81,7 +80,7 @@ naga = { version = "0.13", features = ["wgsl-in", "validate"] }
8180
version = "1.0.1"
8281
default-features = false
8382

84-
[patch."https://github.com/gfx-rs/wgpu"]
83+
[patch.crates-io]
8584
#wgpu = { path = "../wgpu/wgpu" }
8685
#wgpu-hal = { path = "../wgpu/wgpu-hal" }
8786
#wgpu-core = { path = "../wgpu/wgpu-core" }

bin/boilerplate.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,8 @@ impl Harness {
105105
voxel_storage_size >> 20
106106
);
107107
wgpu::Limits {
108-
max_storage_buffer_binding_size: terrain_buffer_size
109-
.max(voxel_storage_size as u32),
110-
..wgpu::Limits::default()
108+
max_storage_buffer_binding_size: voxel_storage_size as u32,
109+
..wgpu::Limits::downlevel_defaults()
111110
}
112111
}
113112
Terrain::Scattered { .. } => wgpu::Limits::default(),

0 commit comments

Comments
 (0)