Sitelet https://github.com/gpuweb/gpuweb/pull/2563
Skip to content

Add optional trailing comma for the attribute syntax. - #2563

Merged
kdashg merged 1 commit into
gpuweb:mainfrom
Kangz:trailing-commas
Feb 8, 2022
Merged

kdashg merged 1 commit into
gpuweb:mainfrom
Kangz:trailing-commas

Conversation

@Kangz

@Kangz Kangz commented Feb 3, 2022

Copy link
Copy Markdown
Contributor

All places that use a variable number of comma-separated things now
support trailing commas. However things with a fixed number of
comma-separated arguments don't. They are:

  • array_type_decl
  • texture_sampler_types
  • type_decl
  • variable_qualifier

Fixes #1243

@Kangz
Kangz requested review from dneto0 and litherum February 3, 2022 10:52
@github-actions

github-actions Bot commented Feb 3, 2022

Copy link
Copy Markdown
Contributor

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

@mehmetoguzderin mehmetoguzderin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great!

Comment thread wgsl/index.bs Outdated
All places that use a variable number of comma-separated things now
support trailing commas. However things with a fixed number of
comma-separated arguments don't. They are:

 - array_type_decl
 - texture_sampler_types
 - type_decl
 - variable_qualifier

Fixes gpuweb#1243

@mehmetoguzderin mehmetoguzderin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@github-actions

github-actions Bot commented Feb 3, 2022

Copy link
Copy Markdown
Contributor

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

@dneto0 dneto0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems harmless to me, but should be approved by the group

@dneto0 dneto0 added the wgsl WebGPU Shading Language Issues label Feb 4, 2022
@kvark

kvark commented Feb 4, 2022

Copy link
Copy Markdown
Contributor

I'm confused. The subject says it apples to attributes. The description lists things that aren't attributes:

    array_type_decl
    texture_sampler_types
    type_decl
    variable_qualifier

The code appears to agree with the subject but not the description.

@Kangz

Kangz commented Feb 7, 2022

Copy link
Copy Markdown
Contributor Author

The description was to explain that I went through the spec and didn't see another place where to add trailing commas because it was either already supported, or not needed (because it is a restricted number of arguments).

@kdashg
kdashg merged commit 3e07564 into gpuweb:main Feb 8, 2022
github-actions Bot added a commit that referenced this pull request Feb 8, 2022
SHA: 3e07564
Reason: push, by @kdashg

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 Feb 8, 2022
SHA: 3e07564
Reason: push, by @kdashg

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 Feb 8, 2022
SHA: 3e07564
Reason: push, by @kdashg

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@kdashg

kdashg commented Feb 16, 2022

Copy link
Copy Markdown
Contributor
WGSL meeting minutes 2022-02-08
  • MM: workgroup_size can take 1,2 or 3 parameters
  • AB: interpolation is similar. Can have 1 or 2.
  • Consensus to land

(break!)

@Kangz
Kangz deleted the trailing-commas branch March 25, 2022 14:22
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.

Consider whether to allow trailing commas

5 participants