Generate agents with compute shader

This commit is contained in:
Andras Schmelczer 2023-05-20 13:28:15 +01:00
commit 6b17a8e023
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
15 changed files with 206 additions and 154 deletions

View file

@ -0,0 +1,9 @@
struct Agent {
position: vec2<f32>,
angle: f32,
species: f32,
timeToLive: f32,
timeToLive2: f32,
}
@group(1) @binding(1) var<storage, read_write> agents: array<Agent>;