setThreadgroupMemoryLength(_:index:)
Configures the size of a threadgroup memory buffer for a threadgroup argument in the compute shader function.
Declaration
func setThreadgroupMemoryLength(_ length: Int, index: Int)Parameters
- length:
The size of the threadgroup memory, in bytes. Use a multiple of
16bytes. - index:
An integer that corresponds to the index of the argument you annotate with attribute
[[threadgroup(index)]]in the shader function.