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.

Bindings

transforms

#
@group(0)
@binding(0)
var<storage, read> transforms: array<array<vec4<f32>, 3>>

blas_refs

#
@group(0)
@binding(1)
var<storage, read> blas_refs: array<vec2<u32>>

instances

#
@group(0)
@binding(2)
var<storage, read_write> instances: array<TlasInstance>

Structures

TlasInstance

#
struct TlasInstance {
transform: array<vec4<f32>, 3> ,
custom_data_and_mask: u32 ,
sbt_offset_and_flags: u32 ,
blas_ref: vec2<u32> ,
}

Functions

setup_tlas_instances

#
@compute
Runs custom parallel code on the GPU, not limited to graphics
@workgroup_size(64, 1, 1)
Defines the size of a thread group. One to three numbers: width (x), height (y), and depth (z). Missing values default to 1
fn setup_tlas_instances (
@builtin(global_invocation_id)
global_id: vec3<u32>
)
Contents