Skip to content
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: Add a skeleton for diagnostic filter rules/diagnostic(…); that reports nice errors #6456

Conversation

ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Oct 23, 2024

Connections

Description

Recommended review experience is commit-by-commit. Each individual commit should pass CI!

Finishes building out a parsing skeleton for all directives (see also #6352, #6424, #6350). Paves the way for us to actually track diagnostic filters, and apply them.

Testing

Testing has been done manually to @ErichDonGubler's satisfaction. Test coverage for this parsing will be added in #6457.

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@ErichDonGubler ErichDonGubler self-assigned this Oct 23, 2024
@ErichDonGubler ErichDonGubler changed the title refactor(wgsl-in): specify more closure ret. types in parsing WGSL: Add a skeleton for diagnostic filter rules/diagnostic(…); that reports nice errors Oct 23, 2024
@ErichDonGubler ErichDonGubler marked this pull request as ready for review October 23, 2024 22:14
@ErichDonGubler ErichDonGubler requested a review from a team as a code owner October 23, 2024 22:14
@ErichDonGubler ErichDonGubler added lang: WGSL WebGPU Shading Language type: enhancement New feature or request labels Oct 23, 2024
@ErichDonGubler ErichDonGubler force-pushed the diagnostic-directive-skeleton branch 2 times, most recently from 04794a4 to 3764f91 Compare October 25, 2024 02:50
teoxoy
teoxoy previously requested changes Oct 25, 2024
naga/src/front/wgsl/parse/mod.rs Outdated Show resolved Hide resolved
naga/src/diagnostic_filter.rs Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@ErichDonGubler ErichDonGubler enabled auto-merge (rebase) October 30, 2024 22:23
@ErichDonGubler ErichDonGubler merged commit 8c13d8f into gfx-rs:trunk Oct 30, 2024
27 checks passed
@ErichDonGubler ErichDonGubler deleted the diagnostic-directive-skeleton branch October 30, 2024 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: naga front-end lang: WGSL WebGPU Shading Language naga Shader Translator type: enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants