struct
fun struct(structName: String, name: String, arraySize: Int = 1, builder: ShaderStorageFormat.() -> Unit)(source)
Adds a struct definition to the shader storage format.
Parameters
structName
The name of the struct type as defined in the shader.
name
The name identifier for the struct instance.
arraySize
The number of elements in the array for this struct. Defaults to 1.
builder
A lambda used to define the individual elements of the struct.