pathtracer.wgsl
Bindings
@group(1)
@binding(0)
var
accumulation_texture:
texture_storage_2d<rgba32float, read_write>
@group(1)
@binding(1)
var
view_output:
texture_storage_2d<rgba16float, write>
Structures
Functions
@compute
Runs custom parallel code on the GPU, not limited to graphics
@workgroup_size(8, 8, 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
importance_sample_next_bounce
(
wo:
vec3<f32>
,
ray_hit:
ResolvedRayHitFull
,
rng:
ptr<function, u32>
)
->
NextBounce