Repository navigation
Remove restrictions on user-defined pointer parameters - #4312
Merged
Merged
Conversation
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
Contributor
Author
|
Note: this will conflict with #4311 (or vice versa) due to the language extensions changes. |
Contributor
|
Previews, as seen when this build job started (60adb5c): |
* 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
dneto0
approved these changes
Oct 6, 2023
| bar(e_func); // Valid, effectively address-of a variable. | ||
|
|
||
| baz2(&ro_storage); // Valid, address-of a variable. | ||
| baz2(&rw_storage); // Invalid, access mode mismatch. |
| <td>*X* is the node corresponding to "x" | ||
| <td class="nowrap">*CF*, *Result* | ||
| <td class="nowrap">*Result* -> {*CF*, *X*} | ||
| <tr><td>identifier [=resolves|resolving=] to a [=formal parameter=] of |
Contributor
There was a problem hiding this comment.
Uniformity rules update LGTM.
dneto0
reviewed
Oct 6, 2023
| <th>Description | ||
| <tr><td colspan=2 class=note><span class="marker">Note:</span> No [=language extensions=] are currently defined. | ||
| </thead> | ||
| <tr><td>unrestricted_pointer_parameters |
Contributor
There was a problem hiding this comment.
I realized this name hasn't been reviewed by the committee..... oops.
Contributor
|
I'm getting feedback that it's bad that the details of the restrictions are now completely lost. |
Contributor
Author
WGSL meeting minutes 2023-10-10
|
alan-baker
added a commit
that referenced
this pull request
Oct 10, 2023
This reverts commit 9298d2f.
alan-baker
added a commit
that referenced
this pull request
Oct 11, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3546