clean up
This commit is contained in:
parent
d6a8f898d1
commit
15e99380b5
84 changed files with 1659 additions and 4726 deletions
|
|
@ -9,6 +9,8 @@ struct Agent {
|
|||
|
||||
@group(1) @binding(1) var<storage, read_write> agents: array<Agent>;
|
||||
|
||||
fn get_id(global_id: vec3<u32>) -> u32 {
|
||||
return global_id.x;
|
||||
const agentWorkgroupSize = 64u;
|
||||
|
||||
fn get_id(global_id: vec3<u32>, num_workgroups: vec3<u32>) -> u32 {
|
||||
return global_id.x + global_id.y * num_workgroups.x * agentWorkgroupSize;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue