Search across packages, versions, files, declarations, and comments. Use multiple terms to narrow results (AND), and add @vertex, @fragment, or @compute to filter by shader stage.
Star

Bindings

sim_params

#
@group(0)
@binding(0)
var<uniform> sim_params: SimParams

particle_buffer

#
@group(1)
@binding(0)
var<storage, read_write> particle_buffer: ParticleBuffer

indirect_buffer

#
@group(1)
@binding(1)
var<storage, read_write> indirect_buffer: IndirectBuffer

parent_particle_buffer

#
Active when
READ_PARENT_PARTICLE
@group(1)
@binding(2)
var<storage, read> parent_particle_buffer: ParentParticleBuffer

spawner

#
@group(2)
@binding(0)
var<storage, read> spawner: Spawner

effect_metadata

#
@group(3)
@binding(0)
var<storage, read_write> effect_metadata: EffectMetadata

child_info_buffer

#
Active when
CONSUME_GPU_SPAWN_EVENTS
@group(3)
@binding(1)
var<storage, read> child_info_buffer: ChildInfoBuffer

event_buffer

#
Active when
CONSUME_GPU_SPAWN_EVENTS
@group(3)
@binding(2)
var<storage, read> event_buffer: EventBuffer

Structures

Particle

#
struct Particle {
particles: array<Particle>,
}

ParentParticle

#
struct ParentParticle {
particles: array<ParentParticle>, READ_PARENT_PARTICLE
}

Functions

main

#
@compute
Runs custom parallel code on the GPU, not limited to graphics
@workgroup_size(64)
Defines the size of a thread group. One to three numbers: width (x), height (y), and depth (z). Missing values default to 1
fn main (
@builtin(global_invocation_id)
global_invocation_id: vec3<u32>
)
Contents