What is the conceptional between MPSImage and MPSImageBatch?

Theoretically, I can also add a couple of images to MPSImage to support batch operation. Why do I need an MPSImageBatch? Besides the fact that some methods use as a parameter MPSImageBatch (but have at the same time the same method using MPSImage).

Replies

MPSImageBatch is essentially just an NSArray of MPSImages and it is how MPSCNNKernels handle batching. These kernels typically handle multiple MPSImages simultaneously improving GPU utilization, which increases performance. Also some filters, such as batch-normalization, require full batches to function correctly.