Fix indentations

This commit is contained in:
Yutaro Ohno 2024-07-25 03:04:52 +09:00
parent 6ca45ed694
commit 607b535135
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ Let's use the `adapter` to create the device and queue.
required_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.
required_limits: if cfg!(target_arch = "wasm32") {
required_limits: if cfg!(target_arch = "wasm32") {
wgpu::Limits::downlevel_webgl2_defaults()
} else {
wgpu::Limits::default()

View File

@ -477,7 +477,7 @@ let (device, queue) = adapter
// UPDATED!
features: wgpu::Features::all_webgpu_mask(),
// UPDATED!
required_limits: wgpu::Limits::downlevel_defaults(),
required_limits: wgpu::Limits::downlevel_defaults(),
},
None, // Trace path
)