Non-texture output

Does Metal support parallel processing of an input texture to produce a non-texture output? For example, generating a string from the pixel values?

Accepted Reply

Sure, Metal supports writing to buffers as well. At least from compute kernels. Of course, if you want to write data with not fixed size, things get a little complicated, because you may need to do parallel prefix sums or something like that. Fixed size data is trivial.

Replies

Sure, Metal supports writing to buffers as well. At least from compute kernels. Of course, if you want to write data with not fixed size, things get a little complicated, because you may need to do parallel prefix sums or something like that. Fixed size data is trivial.