-
Notifications
You must be signed in to change notification settings - Fork 926
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
Add a skeleton for directives that reports nice errors #6352
Merged
ErichDonGubler
merged 2 commits into
gfx-rs:trunk
from
erichdongubler-mozilla:erichdongubler/push-nzmmrzzmyvqu
Oct 18, 2024
Merged
Add a skeleton for directives that reports nice errors #6352
ErichDonGubler
merged 2 commits into
gfx-rs:trunk
from
erichdongubler-mozilla:erichdongubler/push-nzmmrzzmyvqu
Oct 18, 2024
Conversation
This file contains 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
11 tasks
ErichDonGubler
force-pushed
the
erichdongubler/push-nzmmrzzmyvqu
branch
from
October 1, 2024 21:00
0994648
to
2d56bab
Compare
ErichDonGubler
force-pushed
the
erichdongubler/push-nzmmrzzmyvqu
branch
from
October 3, 2024 20:25
2d56bab
to
b0c008b
Compare
ErichDonGubler
commented
Oct 4, 2024
7 tasks
ErichDonGubler
added a commit
to erichdongubler-mozilla/wgpu
that referenced
this pull request
Oct 5, 2024
ErichDonGubler
force-pushed
the
erichdongubler/push-nzmmrzzmyvqu
branch
4 times, most recently
from
October 13, 2024 15:54
a6ac9f2
to
db334f7
Compare
ErichDonGubler
commented
Oct 17, 2024
ErichDonGubler
force-pushed
the
erichdongubler/push-nzmmrzzmyvqu
branch
2 times, most recently
from
October 18, 2024 01:51
544a07b
to
1f3a0ef
Compare
ErichDonGubler
commented
Oct 18, 2024
ErichDonGubler
force-pushed
the
erichdongubler/push-nzmmrzzmyvqu
branch
2 times, most recently
from
October 18, 2024 02:30
be9b1ab
to
18907ee
Compare
teoxoy
approved these changes
Oct 18, 2024
ErichDonGubler
force-pushed
the
erichdongubler/push-nzmmrzzmyvqu
branch
from
October 18, 2024 16:40
18907ee
to
25431df
Compare
1. Break out `word_as_ident*` helpers to keep validation of identifiers DRY. 2. Add `peek_*` variant of `Lexer::next_ident_with_span`. This will be consumed immediately in the subsequent commit.
ErichDonGubler
force-pushed
the
erichdongubler/push-nzmmrzzmyvqu
branch
from
October 18, 2024 16:40
25431df
to
96184a7
Compare
This comment was marked as resolved.
This comment was marked as resolved.
ErichDonGubler
force-pushed
the
erichdongubler/push-nzmmrzzmyvqu
branch
from
October 18, 2024 19:55
96184a7
to
141b839
Compare
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.
Connections
Dependency of #6148.
May conflict with changes in #5701. If this merges first, I'll resolve conflicts there.
Lays groundwork for:
enable
directive #5476 (see also feat: implement F16 support in shaders #5701)diagnostic(…);
directives andderivative_uniformity
triggering rule #6148requires
directive #6350Description
Recommended review experience is commit-by-commit. Each individual commit should pass CI!
There's not a parse path for any directives, let alone what I'm working on with the
diagnostic(…)
directive in #6148. It turns out that adding the starting point with some diagnostics is enough code that a PR checkpoint sounds wise. As a bonus, this can also serve as the base for a full solution to #5476 and #6350.Testing
Tests will be added before this PR comes out of draft, to ensure that the error cases added here are covered.
Checklist
cargo fmt
.cargo clippy
. If applicable, add:--target wasm32-unknown-unknown
--target wasm32-unknown-emscripten
cargo xtask test
to run tests.CHANGELOG.md
. See simple instructions inside file.