Skip to content

Commit

Permalink
use webgl2 limits
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriopass committed Aug 4, 2023
1 parent 6c35aa5 commit 1e6e405
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions wgpu_engine/src/gfx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,7 @@ impl GfxContext {
.await
.expect("failed to find a suitable adapter");

let limit = if cfg!(target_arch = "wasm32") {
wgpu::Limits::downlevel_webgl2_defaults()
} else {
let mut l = wgpu::Limits::default();
l.max_storage_textures_per_shader_stage = 2;
l
};
let limit = wgpu::Limits::downlevel_webgl2_defaults();

let (device, queue) = adapter
.request_device(
Expand Down

0 comments on commit 1e6e405

Please sign in to comment.