fleeting-garden/src/pipelines/agents/agent-generation/agent-schema.wgsl

9 lines
179 B
WebGPU Shading Language

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