Pass pointer from vertex to fragment

Hello

I was wondering if there is a way to pass a pointer or array from a Vertex shader to a Fragment shader. Right now it dosn't seem possible, which means I have to pass arrays as individual variables which is making development very tedious. I'm hoping there is a way to do this that I've just missed after going over documentation, or maybe it is possible in the new update? If anyone can help it would be greatly appreciated!

Packed vectors, matrices, structs, references or pointers to a type, and arrays of scalars, vectors, and matrices are not supported as members of the struct declared with the

stage_in
qualifier.


https://developer.apple.com/library/prerelease/ios/documentation/Metal/Reference/MetalShadingLanguageGuide/func-var-qual/func-var-qual.html

Pass pointer from vertex to fragment
 
 
Q