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

[wgsl] Updating loop section to include for - #757

Merged
dj2 merged 4 commits into
gpuweb:mainfrom
dj2:loops
Jun 24, 2020
Merged

dj2 merged 4 commits into
gpuweb:mainfrom
dj2:loops

Conversation

@dj2

@dj2 dj2 commented May 6, 2020 •

Copy link
Copy Markdown
Member

This CL adds the for keyword syntax into the language. The for is a
sugaring on top of the loop/continue statement.

Fixes #569


💥 Error: 400 Bad Request 💥

PR Preview failed to build. (Last tried on Jun 1, 2020, 8:20 PM UTC).

More

PR Preview relies on a number of web services to run. There seems to be an issue with the following one:

🚨 CSS Spec Preprocessor - CSS Spec Preprocessor is the web service used to build Bikeshed specs.

🔗 Related URL

If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.

@dj2 dj2 added the wgsl WebGPU Shading Language Issues label May 6, 2020
@dj2
dj2 requested review from kvark and litherum May 6, 2020 17:09
@dj2 dj2 self-assigned this May 6, 2020
Comment thread wgsl/index.bs Outdated
Comment thread wgsl/index.bs
Comment thread wgsl/index.bs Outdated
Comment thread wgsl/index.bs Outdated
@litherum

Copy link
Copy Markdown
Contributor

(Adding the flag to add to the agenda to discuss what "simple" means)

@grorg

grorg commented May 26, 2020

Copy link
Copy Markdown
Contributor

Discussed at the 2020-05-26 meeting.

@grorg

grorg commented May 26, 2020

Copy link
Copy Markdown
Contributor

@litherum said that he's happy with the definition of "simple" provided in another PR.

@litherum

Copy link
Copy Markdown
Contributor

It's this same PR. I said we were okay with the proposal in https://github.com/gpuweb/gpuweb/pull/757/files#r421484430

@dj2

dj2 commented Jun 1, 2020

Copy link
Copy Markdown
Member Author

I've updated this based on the feedback provided. A func_call_stmt (#716) is also added in here so it can be used for the for().

Comment thread wgsl/index.bs
@kvark
kvark changed the base branch from master to main June 23, 2020 13:15

@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.

Approve, but needs a typo fix.

Comment thread wgsl/index.bs
@dj2
dj2 dismissed othermaciej’s stale review June 24, 2020 14:30

Change has been updated.

dj2 added 4 commits June 24, 2020 10:36
This CL adds the `for` keyword syntax into the language. The `for` is a
sugaring on top of the `loop/continue` statement.

Fixes #569
@dj2

dj2 commented Jun 24, 2020

Copy link
Copy Markdown
Member Author

Travis has passed, https://travis-ci.org/github/gpuweb/gpuweb/builds/701681777 not sure why it isn't reporting the status back.

@dj2
dj2 merged commit 877cb38 into gpuweb:main Jun 24, 2020
@dj2
dj2 deleted the loops branch June 24, 2020 15:55
ben-clayton added a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
Just dumps all the test lists then returns

Also improve some of the error conditions to provide more information.
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 adding sugar for familiar loop constructs

6 participants