|
|
|
@ -109,12 +109,12 @@ Let's use the `adapter` to create the device and queue.
|
|
|
|
|
&wgpu::DeviceDescriptor {
|
|
|
|
|
features: wgpu::Features::empty(),
|
|
|
|
|
// WebGL doesn't support all of wgpu's features, so if
|
|
|
|
|
// we're building for the web we'll have to disable some.
|
|
|
|
|
limits: if cfg!(target_arch = "wasm32") {
|
|
|
|
|
wgpu::Limits::downlevel_webgl2_defaults()
|
|
|
|
|
} else {
|
|
|
|
|
wgpu::Limits::default()
|
|
|
|
|
},
|
|
|
|
|
// we're building for the web we'll have to disable some.
|
|
|
|
|
limits: if cfg!(target_arch = "wasm32") {
|
|
|
|
|
wgpu::Limits::downlevel_webgl2_defaults()
|
|
|
|
|
} else {
|
|
|
|
|
wgpu::Limits::default()
|
|
|
|
|
},
|
|
|
|
|
label: None,
|
|
|
|
|
},
|
|
|
|
|
None, // Trace path
|
|
|
|
|