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

[naga wgsl] Impl const_assert #6198

Merged
merged 3 commits into from
Sep 2, 2024
Merged

[naga wgsl] Impl const_assert #6198

merged 3 commits into from
Sep 2, 2024

Conversation

sagudev
Copy link
Contributor

@sagudev sagudev commented Sep 2, 2024

Connections
Fixes #5391

Description
const_asserts are checked when lowering wgsl to naga-ir (so we do not need to add anything to naga-ir).

Testing
There are new test for asserts and I did CTS run in servo and looks good (except for any/all not impl as const)

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.

@sagudev sagudev marked this pull request as ready for review September 2, 2024 13:42
@sagudev sagudev requested a review from a team as a code owner September 2, 2024 13:42
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.

Looks good!

@teoxoy teoxoy enabled auto-merge (squash) September 2, 2024 17:36
@teoxoy teoxoy merged commit 4e9a2a5 into gfx-rs:trunk Sep 2, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement const_assert
2 participants