From b233d204f72305cbdef9ffc9f04f0e029b1b696b Mon Sep 17 00:00:00 2001 From: Connor Fitzgerald Date: Fri, 24 Jan 2025 13:26:49 -0500 Subject: [PATCH] Fix Hello Compute Shader (#6985) --- examples/standalone/01_hello_compute/src/shader.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/standalone/01_hello_compute/src/shader.wgsl b/examples/standalone/01_hello_compute/src/shader.wgsl index 9ae3a341cc..54285d6da6 100644 --- a/examples/standalone/01_hello_compute/src/shader.wgsl +++ b/examples/standalone/01_hello_compute/src/shader.wgsl @@ -17,7 +17,7 @@ fn doubleMe(@builtin(global_invocation_id) global_id: vec3) { // Because we're using a workgroup size of 64, if the input size isn't a multiple of 64, // we will have some "extra" invocations. This is fine, but we should tell them to stop // to avoid out-of-bounds accesses. - let array_length = arrayLength(input); + let array_length = arrayLength(&input); if (global_id.x >= array_length) { return; }