mirror of
https://github.com/sotrh/learn-wgpu.git
synced 2024-11-16 06:12:55 +00:00
Fix indentations
This commit is contained in:
parent
6ca45ed694
commit
607b535135
@ -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()
|
||||
|
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user