Passing arbitrarily structured data to CIKernel

From the iOS 13 release notes:

Metal CIKernel instances support arguments with arbitrarily structured data.

How does this work? Is there any example code for this?

So far I was only able to pass float-typed literals, CIVectors, NSNumbers , CIImages, and CISamplers into kernels as arguments when calling apply.
Passing arbitrarily structured data to CIKernel
 
 
Q