diff --git a/CHANGELOG.md b/CHANGELOG.md index 118e54178a..85fc2ce912 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -216,6 +216,7 @@ Passing an owned value `window` to `Surface` will return a `Surface<'static>`. S ### Examples - remove winit dependency from hello-compute example by @psvri in [#4699](https://github.com/gfx-rs/wgpu/pull/4699) +- hello-compute example fix failure with "wgpu error: Validation Error" if arguments are missing by @vilcans in [#4939](https://github.com/gfx-rs/wgpu/pull/4939) - Made the examples page not crash on Chrome on Android, and responsive to screen sizes by @Dinnerbone in [#4958](https://github.com/gfx-rs/wgpu/pull/4958) ## v0.18.1 (2023-11-15) diff --git a/examples/src/hello_compute/mod.rs b/examples/src/hello_compute/mod.rs index beffdc7bbc..6b7cfa18e0 100644 --- a/examples/src/hello_compute/mod.rs +++ b/examples/src/hello_compute/mod.rs @@ -6,7 +6,7 @@ const OVERFLOW: u32 = 0xffffffff; #[cfg_attr(test, allow(dead_code))] async fn run() { - let numbers = if std::env::args().len() <= 1 { + let numbers = if std::env::args().len() <= 2 { let default = vec![1, 2, 3, 4]; println!("No numbers were provided, defaulting to {default:?}"); default