Skip to content

feat(wgsl-in): parse diagnostic(…) attributes on fns#6353

Merged
ErichDonGubler merged 2 commits intogfx-rs:trunkfrom
erichdongubler-mozilla:erichdongubler/push-xlypklnukzlu
Nov 15, 2024
Merged

feat(wgsl-in): parse diagnostic(…) attributes on fns#6353
ErichDonGubler merged 2 commits intogfx-rs:trunkfrom
erichdongubler-mozilla:erichdongubler/push-xlypklnukzlu

Conversation

@ErichDonGubler
Copy link
Copy Markdown
Member

@ErichDonGubler ErichDonGubler commented Oct 1, 2024

Connections

Description

Building on #6148 and #6533, we use all the plumbing we made for tracking diagnostic rules, and add a (successful) parse path for @diagnostic(…) fn function() { … }. This and #6148's parse paths are what I've observed to be the next most common places for users to apply diagnostic filtering, by a wide margin. I expect we will

Testing

Checklist

  • Run cargo fmt.
  • 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 force-pushed the erichdongubler/push-xlypklnukzlu branch from bf4eab8 to a954d89 Compare October 3, 2024 20:25
@ErichDonGubler ErichDonGubler force-pushed the erichdongubler/push-xlypklnukzlu branch 11 times, most recently from 3039803 to 6479c1d Compare October 18, 2024 16:40
@ErichDonGubler ErichDonGubler force-pushed the erichdongubler/push-xlypklnukzlu branch 14 times, most recently from 9b6f777 to 319229a Compare October 25, 2024 18:32
@ErichDonGubler ErichDonGubler force-pushed the erichdongubler/push-xlypklnukzlu branch 2 times, most recently from 05f8ba6 to 8a3e747 Compare October 26, 2024 01:10
@ErichDonGubler ErichDonGubler self-assigned this Oct 29, 2024
@ErichDonGubler ErichDonGubler deleted the erichdongubler/push-xlypklnukzlu branch November 8, 2024 19:10
@ErichDonGubler ErichDonGubler restored the erichdongubler/push-xlypklnukzlu branch November 12, 2024 17:06
@ErichDonGubler ErichDonGubler force-pushed the erichdongubler/push-xlypklnukzlu branch 6 times, most recently from b77694d to 45fb2e5 Compare November 13, 2024 17:09
@ErichDonGubler

This comment was marked as resolved.

@ErichDonGubler ErichDonGubler marked this pull request as ready for review November 13, 2024 17:10
@ErichDonGubler ErichDonGubler requested a review from a team November 13, 2024 17:10
@ErichDonGubler ErichDonGubler added type: enhancement New feature or request naga Shader Translator area: naga middle-end Intermediate representation area: naga front-end Translation to Naga IR lang: WGSL WebGPU Shading Language area: naga processing Passes over IR in the middle labels Nov 13, 2024
@ErichDonGubler ErichDonGubler changed the title Parse diagnostic(…) attributes on fns feat(wgsl-in): parse diagnostic(…) attributes on fns Nov 13, 2024
@ErichDonGubler
Copy link
Copy Markdown
Member Author

Populated the OP with test results.

@ErichDonGubler ErichDonGubler force-pushed the erichdongubler/push-xlypklnukzlu branch from 8bab515 to 544e70c Compare November 14, 2024 15:15
Copy link
Copy Markdown
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: naga front-end Translation to Naga IR area: naga middle-end Intermediate representation area: naga processing Passes over IR in the middle 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.

Support diagnostic filters in WGSL (i.e., diagnostic(…))

2 participants