Skip to content

Commit

Permalink
vec3<u32> -> vec3u
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jun 16, 2024
1 parent 6ac72a4 commit 6df64ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webgpu/webgpu-simple-compute.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
@group(0) @binding(0) var<storage, read_write> data: array<f32>;
@compute @workgroup_size(1) fn computeSomething(
@builtin(global_invocation_id) id: vec3<u32>
@builtin(global_invocation_id) id: vec3u
) {
let i = id.x;
data[i] = data[i] * 2.0;
Expand Down

0 comments on commit 6df64ec

Please sign in to comment.