We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5386d38 commit b233d20Copy full SHA for b233d20
examples/standalone/01_hello_compute/src/shader.wgsl
@@ -17,7 +17,7 @@ fn doubleMe(@builtin(global_invocation_id) global_id: vec3<u32>) {
17
// Because we're using a workgroup size of 64, if the input size isn't a multiple of 64,
18
// we will have some "extra" invocations. This is fine, but we should tell them to stop
19
// to avoid out-of-bounds accesses.
20
- let array_length = arrayLength(input);
+ let array_length = arrayLength(&input);
21
if (global_id.x >= array_length) {
22
return;
23
}
0 commit comments