We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
num_workgroups
1 parent b5e4b08 commit 0410482Copy full SHA for 0410482
assets/shaders/game_of_life.wgsl
@@ -30,7 +30,7 @@ fn randomFloat(value: u32) -> f32 {
30
}
31
32
@compute @workgroup_size(8, 8, 1)
33
-fn init(@builtin(global_invocation_id) invocation_id: vec3<u32>, @builtin(num_workgroups) num_workgroups: vec3<u32>) {
+fn init(@builtin(global_invocation_id) invocation_id: vec3<u32>) {
34
let location = vec2<i32>(i32(invocation_id.x), i32(invocation_id.y));
35
36
let randomNumber = randomFloat((invocation_id.y << 16u) | invocation_id.x);
0 commit comments