Skip to content

Commit 0410482

Browse files
authored
Remove unused num_workgroups from game_of_life shader (#21944)
# Objective Remove unused `num_workgroups`. ## Testing ``` cargo run --example compute_shader_game_of_life ```
1 parent b5e4b08 commit 0410482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/shaders/game_of_life.wgsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn randomFloat(value: u32) -> f32 {
3030
}
3131

3232
@compute @workgroup_size(8, 8, 1)
33-
fn init(@builtin(global_invocation_id) invocation_id: vec3<u32>, @builtin(num_workgroups) num_workgroups: vec3<u32>) {
33+
fn init(@builtin(global_invocation_id) invocation_id: vec3<u32>) {
3434
let location = vec2<i32>(i32(invocation_id.x), i32(invocation_id.y));
3535

3636
let randomNumber = randomFloat((invocation_id.y << 16u) | invocation_id.x);

0 commit comments

Comments
 (0)