Set up demo

This commit is contained in:
Andras Schmelczer 2023-05-31 22:22:43 +01:00
commit 8817e5b090
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
17 changed files with 193 additions and 149 deletions

View file

@ -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);
}