Sets a block of data for the tile function at an index in the buffer argument table.
- iOS 11.0+
The memory address from which to copy the data.
The size, in bytes, of the data to be copied.
The index in the buffer argument table.
Using this method is equivalent to creating a new
MTLBuffer object from the specified data and then binding it to the tile shader with the
set method, but avoids the possible performance overhead of creating an intermediary
This method is appropriate only for small, single-use data buffers. If your buffer exceeds 4 KB in length or will persist for multiple uses (for example, to be bound to another command encoder for rendering the next frame), create a
MTLBuffer object instead.