Skip to content

Commit b233d20

Browse files
authored
Fix Hello Compute Shader (#6985)
1 parent 5386d38 commit b233d20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/standalone/01_hello_compute/src/shader.wgsl

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fn doubleMe(@builtin(global_invocation_id) global_id: vec3<u32>) {
1717
// Because we're using a workgroup size of 64, if the input size isn't a multiple of 64,
1818
// we will have some "extra" invocations. This is fine, but we should tell them to stop
1919
// to avoid out-of-bounds accesses.
20-
let array_length = arrayLength(input);
20+
let array_length = arrayLength(&input);
2121
if (global_id.x >= array_length) {
2222
return;
2323
}

0 commit comments

Comments
 (0)