7 lines
143 B
WebGPU Shading Language
7 lines
143 B
WebGPU Shading Language
struct Agent {
|
|
position: vec2<f32>,
|
|
angle: f32,
|
|
generation: f32,
|
|
}
|
|
|
|
@group(1) @binding(1) var<storage, read_write> agents: array<Agent>;
|