Skip to content

Uses commas to separate struct members intead of semicolons - #2656

Merged
dneto0 merged 1 commit into
gpuweb:mainfrom
alan-baker:struct-commas
Mar 10, 2022
Merged

dneto0 merged 1 commit into
gpuweb:mainfrom
alan-baker:struct-commas

Conversation

@alan-baker

Copy link
Copy Markdown
Contributor

Fixes #2587

  • Change the separator for struct members from semicolons to commas
    • Comma is optional after the last member
  • Changes the grammar to require one or more struct members
    • Already required by the prose of the spec

Fixes gpuweb#2587

* Change the separator for struct members from semicolons to commas
  * Comma is optional after the last member
* Changes the grammar to require one or more struct members
  * Already required by the prose of the spec
@alan-baker alan-baker added the wgsl WebGPU Shading Language Issues label Mar 9, 2022
@alan-baker
alan-baker requested review from dneto0, kdashg and litherum March 9, 2022 18:32
@github-actions

github-actions Bot commented Mar 9, 2022

Copy link
Copy Markdown
Contributor

Previews, as seen when this build job started (2bad976):
WebGPU | IDL
WGSL
Explainer

@dneto0
dneto0 merged commit 0ed5243 into gpuweb:main Mar 10, 2022
github-actions Bot added a commit that referenced this pull request Mar 10, 2022
SHA: 0ed5243
Reason: push, by @dneto0

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request Mar 10, 2022
SHA: 0ed5243
Reason: push, by @dneto0

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request Mar 10, 2022
SHA: 0ed5243
Reason: push, by @dneto0

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ben-clayton added a commit to ben-clayton/cts that referenced this pull request Apr 25, 2022
ben-clayton added a commit to gpuweb/cts that referenced this pull request Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wgsl WebGPU Shading Language Issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should struct member declarations use commas instead of semicolons?

3 participants