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] Use alias instead of type for type aliases #2299

Merged
merged 6 commits into from
Apr 4, 2023

Conversation

FL33TW00D
Copy link
Contributor

This brings us in line with the spec: https://gpuweb.github.io/gpuweb/wgsl/#type-aliases

Currently Canary fails with type keyword.

@codecov-commenter
Copy link

Codecov Report

Merging #2299 (0cb4995) into master (da8e911) will increase coverage by 0.00%.
The diff coverage is 91.66%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##           master    #2299   +/-   ##
=======================================
  Coverage   82.19%   82.19%           
=======================================
  Files          82       82           
  Lines       44262    44272   +10     
=======================================
+ Hits        36379    36389   +10     
  Misses       7883     7883           
Impacted Files Coverage Δ
src/front/wgsl/error.rs 64.50% <0.00%> (ø)
src/front/wgsl/parse/mod.rs 88.25% <100.00%> (ø)
src/front/wgsl/tests.rs 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@ErichDonGubler ErichDonGubler left a comment

Choose a reason for hiding this comment

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

I don't have merge rights, but this LGTM. Let's see who else can approve this. 🙂

Copy link
Member

@jimblandy jimblandy left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! Just a few minor things.

src/front/wgsl/parse/mod.rs Outdated Show resolved Hide resolved
tests/in/boids.wgsl Outdated Show resolved Hide 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.

LGTM

@teoxoy teoxoy dismissed jimblandy’s stale review April 4, 2023 10:32

Comments have been addressed

@teoxoy teoxoy changed the title feat: Allow alias keyword for types [wgsl] Use alias instead of type for type aliases Apr 4, 2023
@teoxoy teoxoy added this to the WGSL Specification V1 milestone Apr 4, 2023
@teoxoy teoxoy merged commit 7c00548 into gfx-rs:master Apr 4, 2023
HeroicKatora added a commit to HeroicKatora/rend3 that referenced this pull request Jul 6, 2023
Following the spec, via: <gfx-rs/naga#2299>
cwfitzgerald pushed a commit to BVE-Reborn/rend3 that referenced this pull request Jul 16, 2023
Following the spec, via: <gfx-rs/naga#2299>
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.

5 participants