Bevy Shader Explorer
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
☾
Packages
›
bevy_hanabi
0.15.1
0.15.0
0.19.0
›
vfx_indirect.wgsl
Save
Bindings
sim_params
#
@
group
(
0
)
@
binding
(
0
)
var
<
uniform
>
sim_params:
SimParams
effect_metadata_buffer
#
@
group
(
1
)
@
binding
(
0
)
var
<
storage, read_write
>
effect_metadata_buffer:
array
<
u32
>
dispatch_indirect_buffer
#
@
group
(
1
)
@
binding
(
1
)
var
<
storage, read_write
>
dispatch_indirect_buffer:
array
<
u32
>
spawner_buffer
#
@
group
(
2
)
@
binding
(
0
)
var
<
storage, read_write
>
spawner_buffer:
array
<
Spawner
>
child_info_buffer
#
Active when
HAS_GPU_SPAWN_EVENTS
@
group
(
3
)
@
binding
(
0
)
var
<
storage, read_write
>
child_info_buffer:
ChildInfoBuffer
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
Calculate the indirect workgroups counts based on the number of particles alive.
fn
main
(
@
builtin
(
global_invocation_id
)
global_invocation_id:
vec3
<
u32
>
)
Contents
Bindings
sim_params
effect_metadata_buffer
dispatch_indirect_buffer
spawner_buffer
child_info_buffer
Functions
main
Calculate the indirect workgroups counts based on the number of particles alive.