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.
Packages
›
bevy_pbr
0.20.0
0.15.0
0.15.1
0.15.2
0.15.3
0.15.4
0.16.0
0.16.1
0.16.2
0.17.0
0.17.1
0.17.2
0.17.3
0.18.0
0.18.1
0.19.0
0.19.1
›
cull_instances.wesl
Save
Functions
instance_count
#
fn
instance_count
()
->
u32
map_instance_id
#
fn
map_instance_id
(
id:
u32
)
->
u32
should_cull_instance
#
fn
should_cull_instance
(
instance_id:
u32
)
->
bool
cull_instances
#
fn
cull_instances
(
@
builtin
(
global_invocation_id
)
global_invocation_id:
vec3
<
u32
>
)
Contents
Functions
instance_count
map_instance_id
should_cull_instance
cull_instances