Bindings
@group(0)
@binding(0)
var<storage, read_write>
cluster_metadata:
ClusterMetadata
@group(0)
@binding(2)
var<storage>
clustered_lights:
ClusteredLights
@group(0)
@binding(3)
var<uniform>
light_probes:
LightProbes
@group(0)
@binding(4)
var<storage>
clustered_decals:
ClusteredDecals
@group(0)
@binding(5)
var<uniform>
lights:
Lights
@group(0)
@binding(6)
var<uniform>
view:
View
Functions
@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
This silently fails if the list is too small, but it still updates the instance count, which the CPU reads back. So, if the list is too small, the CPU will end up being notified and can resize the buffer.