Sets a buffer for the compute function.
- iOS 8.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
MTLBufferobject to set in the argument table.
Where the data begins, in bytes, from the start of the buffer.
An index in the buffer argument table.
For buffers in the device address space, align the offset to the data type consumed by the compute function (which is always less than or equal to 16 bytes).
For buffers in the constant address space, align the offset to 256 bytes in macOS. In iOS, align the offset to the maximum of either the data type consumed by the compute function, or 4 bytes. A 16-byte alignment is safe in iOS if you don't need to consider the data type.