WGSL permits formal parameters to user-defined functions to be pointers only if the address space is private or function. This restriction is not mentioned in the section "Restrictions on Functions", but it should be.
I hope I didn't just miss it, but I believe the only place in the spec that explains this restriction is the description of the unrestricted_pointer_parameters language extension. It seems odd to me to document a restriction only when explaining something that can remove it.
WGSL permits formal parameters to user-defined functions to be pointers only if the address space is
privateorfunction. This restriction is not mentioned in the section "Restrictions on Functions", but it should be.I hope I didn't just miss it, but I believe the only place in the spec that explains this restriction is the description of the
unrestricted_pointer_parameterslanguage extension. It seems odd to me to document a restriction only when explaining something that can remove it.