Skip to content

Commit

Permalink
Switch egui backend to crates, adjust the limits
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Jul 27, 2023
1 parent 2edeb85 commit f33276b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ winit = "0.28"
# gui
egui = "0.22"
egui_winit_platform = "0.19"
#egui_wgpu_backend = "0.24"
egui_wgpu_backend = { git = "https://github.com/kvark/egui_wgpu_backend", branch = "wgpu-0.17" }
egui_wgpu_backend = "0.25"

[dev-dependencies]
naga = { version = "0.13", features = ["wgsl-in", "validate"] }
Expand All @@ -81,7 +80,7 @@ naga = { version = "0.13", features = ["wgsl-in", "validate"] }
version = "1.0.1"
default-features = false

[patch."https://github.com/gfx-rs/wgpu"]
[patch.crates-io]
#wgpu = { path = "../wgpu/wgpu" }
#wgpu-hal = { path = "../wgpu/wgpu-hal" }
#wgpu-core = { path = "../wgpu/wgpu-core" }
Expand Down
5 changes: 2 additions & 3 deletions bin/boilerplate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ impl Harness {
voxel_storage_size >> 20
);
wgpu::Limits {
max_storage_buffer_binding_size: terrain_buffer_size
.max(voxel_storage_size as u32),
..wgpu::Limits::default()
max_storage_buffer_binding_size: voxel_storage_size as u32,
..wgpu::Limits::downlevel_defaults()
}
}
Terrain::Scattered { .. } => wgpu::Limits::default(),
Expand Down

0 comments on commit f33276b

Please sign in to comment.