Bindings
@group(0)
@binding(0)
var<storage, read_write>
offsets_and_counts:
ClusterOffsetsAndCounts
@group(0)
@binding(1)
var<uniform>
lights:
Lights
@group(0)
@binding(2)
var<storage, read_write>
clustering_metadata:
ClusterMetadata
@group(0)
@binding(3)
var<storage, read_write>
scratchpad_offsets_and_counts:
ClusterOffsetsAndCounts
Functions
@compute
Runs custom parallel code on the GPU, not limited to graphics
@workgroup_size(256, 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
@compute
Runs custom parallel code on the GPU, not limited to graphics
@workgroup_size(256, 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
The per-type counts are laid out as: [0] = (offset, point lights, spot lights, rect lights) [1] = (reflection probes, irradiance volumes, decals, pad)