Sets an offset specifying the start of the data for a buffer already bound to the tile function.
- iOS 11.0+
How far the data is, in bytes, from the start of the buffer.
The index in the buffer argument table.
Call this method to change the offset you specified when binding a buffer with the
set method, or to specify a data offset after binding data directly to the tile shader with the
Using this method can result in faster performance than binding the same buffer again with a different offset.
For buffers in the device address space, the offset must be aligned to the data type consumed by the tile shader (which is always less than or equal to 16 bytes).
For buffers in the constant address space, the offset must be aligned to 256 bytes in macOS. In iOS, the offset must be aligned to the maximum of either the data type consumed by the tile shader, or 4 bytes. A 16-byte alignment is safe in iOS if you don't need to consider the data type.