How to split rgba MTLTexture into 4 MTLTexture or buffer with BlitCommandEncoder

Hi,

Anyone knows fast method in GPU for spliting rgba MTLTexture inot 4 channel MTLTextures or Buffers?

Thanks

Replies

You'll need either to render to multiple targets (into four MTLTextures at once), or create compute kernel reading from one texture, and writing to four MTLTextures/MTLBuffers.


Michal