Advanced search tips: use spaces to require multiple terms (AND), | for alternatives (OR), wrap phrases in quotes (="a b"), =term for exact match, 'term to include, !term to exclude, ^term to match prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to exclude suffix.

validate_draw.wgsl

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

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
)