2022-01-19 22:46:57 +00:00
|
|
|
@stage(compute) @workgroup_size(1)
|
2021-06-03 09:38:34 +00:00
|
|
|
fn main(
|
2022-01-19 22:46:57 +00:00
|
|
|
@builtin(local_invocation_id) local_invocation_id : vec3<u32>,
|
|
|
|
@builtin(local_invocation_index) local_invocation_index : u32,
|
|
|
|
@builtin(global_invocation_id) global_invocation_id : vec3<u32>,
|
|
|
|
@builtin(workgroup_id) workgroup_id : vec3<u32>,
|
|
|
|
@builtin(num_workgroups) num_workgroups : vec3<u32>,
|
2021-06-03 09:38:34 +00:00
|
|
|
) {
|
|
|
|
let foo : u32 =
|
|
|
|
local_invocation_id.x +
|
2021-09-13 17:11:58 +00:00
|
|
|
local_invocation_index +
|
|
|
|
global_invocation_id.x +
|
|
|
|
workgroup_id.x +
|
|
|
|
num_workgroups.x;
|
2021-06-03 09:38:34 +00:00
|
|
|
}
|