working wasm build
This commit is contained in:
parent
dc3bd2a433
commit
1dc6565a26
6 changed files with 125 additions and 37 deletions
|
@ -55,7 +55,11 @@ impl State {
|
|||
.request_device(
|
||||
&wgpu::DeviceDescriptor {
|
||||
features: wgpu::Features::empty(),
|
||||
limits: wgpu::Limits::default(),
|
||||
limits: if cfg!(target_arch = "wasm32") {
|
||||
wgpu::Limits::downlevel_webgl2_defaults()
|
||||
} else {
|
||||
wgpu::Limits::default()
|
||||
},
|
||||
label: None,
|
||||
},
|
||||
None, // Trace path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue