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

Impl. const. eval. for yet more trivial component-wise numeric built-ins in WGSL #5098

Merged
merged 20 commits into from
Jan 30, 2024

Conversation

ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Jan 19, 2024

Connections
Link to the issues addressed by this PR, or dependent PRs in other repositories

Resolves many more of the now-trivial-to-implement built-ins, as an iteration over #4879.

Description
Describe what problem this is solving, and how it's solved.

See above.

Testing
Explain how this change is tested.

The current form of this PR depends on our snapshot test coverage for naga. I don't think it's complete; I'd be open to adding more coverage as part of this PR.

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 added area: correctness We're behaving incorrectly area: cts Issues stemming from the WebGPU Conformance Test Suite lang: WGSL WebGPU Shading Language labels Jan 19, 2024
@ErichDonGubler ErichDonGubler self-assigned this Jan 19, 2024
@ErichDonGubler ErichDonGubler requested a review from a team as a code owner January 19, 2024 17:59
@ErichDonGubler ErichDonGubler force-pushed the builtins-const-eval-2 branch 2 times, most recently from c4df992 to c9176fb Compare January 19, 2024 18:04
@ErichDonGubler ErichDonGubler added area: naga processing Passes over IR in the middle and removed lang: WGSL WebGPU Shading Language labels Jan 19, 2024
teoxoy

This comment was marked as resolved.

Copy link
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.

Good stuff!

@teoxoy teoxoy merged commit 443d5f9 into gfx-rs:trunk Jan 30, 2024
27 checks passed
@ErichDonGubler ErichDonGubler deleted the builtins-const-eval-2 branch January 31, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: correctness We're behaving incorrectly area: cts Issues stemming from the WebGPU Conformance Test Suite area: naga processing Passes over IR in the middle
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants