Skip to content

Move builtins and intrinsics out of the grammar. - #655

Merged
kdashg merged 3 commits into
gpuweb:masterfrom
kdashg:no-grammar-builtins
Apr 7, 2020
Merged

kdashg merged 3 commits into
gpuweb:masterfrom
kdashg:no-grammar-builtins

Conversation

@kdashg

@kdashg kdashg commented Mar 27, 2020

Copy link
Copy Markdown
Contributor

No description provided.

@kdashg kdashg added the wgsl WebGPU Shading Language Issues label Mar 27, 2020
@kdashg
kdashg requested review from dj2 and kvark March 27, 2020 19:07
@kdashg

kdashg commented Mar 27, 2020 •

Copy link
Copy Markdown
Contributor Author

Addresses #616

Comment thread wgsl/index.bs Resolved
Comment thread wgsl/index.bs
: LOCATION INT_LITERAL
| BUILTIN builtin_decoration
| BINDING INT_LITERAL
| SET INT_LITERAL

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.

The possible values for each decoration isn't defined anywhere anymore.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oops, listed now.

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.

Can we not mix builtins and intrinsics together in this PR?
I don't see them being the same. The case about intrinsic functions is somewhat strong, since they are, well, functions. The case about builtins is not yet convincing to me and needs to be made first.

Comment thread wgsl/index.bs Resolved
Comment thread wgsl/index.bs
: LOCATION INT_LITERAL
| BUILTIN builtin_decoration
| BINDING INT_LITERAL
| SET INT_LITERAL

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.

Can we not mix builtins and intrinsics together in this PR?
I don't see them being the same. The case about intrinsic functions is somewhat strong, since they are, well, functions. The case about builtins is not yet convincing to me and needs to be made first.

@kdashg
kdashg requested a review from kvark April 7, 2020 01:06
@grorg

grorg commented Apr 7, 2020

Copy link
Copy Markdown
Contributor

Discussed at the 2020-04-07 meeting.

@kdashg

kdashg commented Apr 7, 2020

Copy link
Copy Markdown
Contributor Author

Approved in meeting.

@kdashg
kdashg merged commit 77d3936 into gpuweb:master Apr 7, 2020
@dj2 dj2 removed the for meeting label Apr 7, 2020
JusSn pushed a commit to JusSn/gpuweb that referenced this pull request Jun 8, 2020
* Move builtins and intrinsics out of the grammar.
* Add valid decoration values per key.
JusSn pushed a commit to JusSn/gpuweb that referenced this pull request Jun 8, 2020
* Move builtins and intrinsics out of the grammar.
* Add valid decoration values per key.
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
…#655)

Tests that use fragment shaders that don't write to the output
must declare the color target with writeMask 0.

Spec PR: gpuweb#1918
Bug: crbug.com/dawn/962
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.

4 participants