Contents

setThreadgroupMemoryLength(_:offset:index:)

Configures the size of a threadgroup memory buffer for an entry in the fragment or tile shader argument table.

Declaration

func setThreadgroupMemoryLength(_ length: Int, offset: Int, index: Int)

Parameters

  • length:

    The threadgroup memory length, in bytes.

  • offset:

    An integer that represents the location, in bytes, from the start of the buffer at index where the threadgroup memory begins.

  • index:

    An integer that represents an entry in the buffer argument table.

Discussion

You can only change the threadgroup memory’s size between tile dispatches (see dispatchThreadsPerTile(_:)).

See Also

Configuring persistent threadgroup memory