Set up demo
This commit is contained in:
parent
abf3803cdc
commit
8817e5b090
17 changed files with 193 additions and 149 deletions
|
|
@ -5,3 +5,7 @@ struct Agent {
|
|||
}
|
||||
|
||||
@group(1) @binding(1) var<storage, read_write> agents: array<Agent>;
|
||||
|
||||
fn get_id(global_id: vec3<u32>, workgroup_count: vec3<u32>) -> u32 {
|
||||
return global_id.x + global_id.y * (workgroup_count.x * 64) + global_id.z * (workgroup_count.x * workgroup_count.y * 64);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue