Repository navigation
Remove restrictions on user-defined pointer parameters - #4323
Conversation
|
Previews, as seen when this build job started (c6a493d): |
| the following address spaces: | ||
| * [=address spaces/function=] | ||
| * [=address spaces/private=] | ||
| * For [=built-in functions=], a parameter of pointer type [=shader-creation error|must=] be in one of |
There was a problem hiding this comment.
I think I understand the logic of not needing to mention this in the unrestricted_pointer_parameters changelog.
I guess it's because the restriction on built-in functions is already implicitly enforced by the allowed signatures.
So in theory we could have removed this clause form the original text even without any new feature.
If I've gotten that wrong, please let me know.
There was a problem hiding this comment.
Right we had this there to avoid confusion that user-defined functions had restrictions that were listed.
| <td> | ||
| <td>*CF*, *CF* | ||
| <td> | ||
| <tr><td>identifier [=resolves|resolving=] to a [=formal parameter=] of |
There was a problem hiding this comment.
It took me a while to see why this completes the coverage of pointer parameters.
That's because pointers for function address space have been desugared away.
LGTM.
Fixes gpuweb#3546 * Removes address space and memory view restrictions on pointer parameters for user-defined functions * removes built-in function address space listing since it is no longer relevant * adds language extension unrestricted_pointer_parameters
* Split formal parameters into more cases
* non-pointers as before
* pointer non-read-only storage, workgroup, or private with load rule
* edge to MayBeNonUniform
* pointer non-read-only storage, workgroup, or private with no load rule
* like module scope read only var
* pointer read-only non-function
* like module scope read only var
* Move the removed rules to the description of the feature
0a67997 to
c6a493d
Compare
Fixes #3546
parameters for user-defined functions
relevant
Don't merge this until WGSL v1 is tagged.