From the iOS 13 release notes:
So far I was only able to pass float-typed literals, CIVectors, NSNumbers , CIImages, and CISamplers into kernels as arguments when calling apply.
How does this work? Is there any example code for this?Metal CIKernel instances support arguments with arbitrarily structured data.
So far I was only able to pass float-typed literals, CIVectors, NSNumbers , CIImages, and CISamplers into kernels as arguments when calling apply.