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.

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