uint64_t as buffer in 2.3 please

Please add support for uint64_t buffers.

I can reinterpret_cast an uint2 to a uint64_t and the metal compiler can generate load instructions to fetch uint2s.

The remainder is just unnecessary typing work for the programmer.



Accepted Reply

Thanks for bringing this to our attention. We will be updating the docs soon.

Replies

We have added support for uint64_t buffers in v2.3 of the Metal Shading Language.

Please note that 64-bit integers are only supported on MTLGPUFamily.apple3 and above.
On other GPU families 64-bit integers aren't fully supported yet.

That means the doc hasn't been updated yet?

https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf

"Note: Metal does not support buffers that contain long or ulong data types"


Thanks for bringing this to our attention. We will be updating the docs soon.