Open kocsis1david opened 1 year ago
Yes it's intended,
from https://gpuweb.github.io/gpuweb/wgsl/#user-defined-inputs-outputs
I haven't looked into whether or not other shading languages support arrays for user-defined IO. If they do, this could potentially be a feature.
Glsl supports passing arrays from vertex to fragment shader. I tried to use naga to infer bind group layout types for the compiled glsl shader.
Do you know about msl/hlsl?
HLSL supports it too, I don't know about MSL. But I guess naga needs to support it anyways if it wants to parse all valid SPIR-V modules.
I tried to validate my SPIR-V shader which uses an array varying, but it fails. Is it intentional that arrays are not accepted for varyings by the validator?