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
›
wgpu-core
30.0.1
26.0.1
27.0.3
29.0.4
›
validate_draw.wgsl
Save
Constants
supports_indirect_first_instance
#
const
supports_indirect_first_instance:
bool
=
override supports_indirect_first_instance: bool
write_d3d12_special_constants
#
const
write_d3d12_special_constants:
bool
=
override write_d3d12_special_constants: bool
OFFSET_MASK
#
const
OFFSET_MASK:
u32
=
0x3FFFFFFF
Bindings
metadata
#
@
group
(
0
)
@
binding
(
0
)
var
<
storage, read
>
metadata:
array
<
MetadataEntry
>
src
#
@
group
(
1
)
@
binding
(
0
)
var
<
storage, read
>
src:
array
<
u32
>
dst
#
@
group
(
2
)
@
binding
(
0
)
var
<
storage, read_write
>
dst:
array
<
u32
>
Structures
MetadataEntry
#
struct
MetadataEntry
{
src_offset:
u32
,
dst_offset:
u32
,
vertex_or_index_limit:
u32
,
instance_limit:
u32
,
}
MetadataRange
#
struct
MetadataRange
{
start:
u32
,
count:
u32
,
}
Functions
is_bit_set
#
fn
is_bit_set
(
data:
u32
,
index:
u32
)
->
bool
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:
vec3u
)
Contents
Constants
supports_indirect_first_instance
write_d3d12_special_constants
OFFSET_MASK
Bindings
metadata
src
dst
Structures
MetadataEntry
MetadataRange
Functions
is_bit_set
main