-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wgsl-in] Fail on repeated attributes #2428
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, minus some nits!
There are more attributes that this validation should cover. I think all attributes can't be repeated (the spec mentions to look for exceptions to this rule for each attribute but at a first glance I can't see any such exception). |
Thanks @teoxoy ! I've added additional attributes in 1a7c3ab
|
1a7c3ab
to
f26999c
Compare
Rebased to fix merge conflicts in |
f26999c
to
9cd0c72
Compare
Sounds good! Given that all the attributes are an |
Sounds like a good idea, I'll try it out! |
9cd0c72
to
b385f3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for making the change!
@ErichDonGubler want to give this another look? 👀 |
Feeling silly that my unfamiliarity with WGSL led me to miss other attributes, but otherwise, this LGTM. Could we file an issue for getting |
Thanks @ErichDonGubler! Have added gfx-rs/wgpu#4567 as a follow up issue for that, and #2434 for the |
Thanks! Will merge this then. |
Fixes #2425.