Can you pass a fixed-size array as a GLSL function parameter? Can you pass a fixed-size array as a GLSL function parameter? arrays arrays

Can you pass a fixed-size array as a GLSL function parameter?


Yes, this is legal GLSL code.

That doesn't mean it will certainly compile, but it is legal code. That being said, it's probably better to just return the array (which you can also do), rather than pass it as an output parameter.