Bindings
@group(0)
@binding(1)
var<storage, read_write>
index_lists:
ClusterableObjectIndexLists
@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
@group(0)
@binding(7)
var<storage>
offsets_and_counts:
ClusterOffsetsAndCounts
@group(0)
@binding(8)
var<storage, read_write>
scratchpad_offsets_and_counts:
ClusterOffsetsAndCountsAtomic
Structures
The same as the ClusterOffsetsAndCounts structure, but with atomic fields
so that we can write to it.
The same as the ClusterOffsetsAndCountsElement structure, but with atomic
fields so that we can write to it.
Functions
@vertex
Processes each 3D point in a model before it's drawn
@fragment
Calculates the final color of each pixel on the screen
Computes cos(atan(x)) cheaply.
See https://en.wikipedia.org/wiki/List_of_trigonometric_identities
Computes sin(atan(x)) cheaply.
See https://en.wikipedia.org/wiki/List_of_trigonometric_identities
Data output from the vertex shader and input to the fragment shader.