Skip to content

Conversation

@kvark
Copy link
Contributor

@kvark kvark commented Feb 9, 2021

Fixes #1315
I'm fairly sure this is incomplete, but it captures the core of the changes.
The example code hasn't been touched since WHSL times :)

@kvark kvark requested a review from dneto0 February 9, 2021 21:47
@kvark kvark added the wgsl WebGPU Shading Language Issues label Feb 9, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2021

Previews, as seen at the time of posting this comment:
WebGPU | IDL
WGSL
6154d1c

wgsl/index.bs Outdated
// OpDecorate %gl_SampleMaskIn BuiltIn SampleMask ; an input variable
// OpDecorate %gl_SampleMaskIn Flat
[[stage(fragment)]]
fn main(
Copy link
Member

Choose a reason for hiding this comment

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

These functions should all have unique names, so probably vert_main, frag_main and comp_main so that we can compile the example.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

would be great to compile it on CI ;)

Copy link
Member

Choose a reason for hiding this comment

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

@ben-clayton has a script to run them through Tint, but it would be tricky in most cases as the implementation lags the spec, so new spec features would always show up as broken.

@kvark
Copy link
Contributor Author

kvark commented Feb 10, 2021

@dj2 your thoughtful review is exactly what this PR needed, thank you!

@github-actions
Copy link
Contributor

Previews, as seen at the time of posting this comment:
WebGPU | IDL
WGSL
7d92dd5

Copy link
Contributor

@dneto0 dneto0 left a comment

Choose a reason for hiding this comment

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

Looks good to me on this reading.
Thanks


### Pipeline Input and Output Interface ### {#pipeline-inputs-outputs}

The <dfn dfn>Entry point IO type</dfn>s include the following:
Copy link
Contributor

Choose a reason for hiding this comment

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

I would quibble that these aren't new types but don't want to block on this.
If I think of a better way to say it I can post a followup PR.

@kvark
Copy link
Contributor Author

kvark commented Feb 16, 2021

The group has agreed to land this on the today's call.

@dj2 dj2 merged commit 8bfe620 into gpuweb:main Feb 16, 2021
@kvark kvark deleted the entry-point-arguments branch February 16, 2021 21:23
jrprice added a commit to jrprice/gpuweb that referenced this pull request Mar 5, 2021
This is required for the grammar to support the changes made in gpuweb#1426.

Also removes two obselete validation rules and replaces them with a
new one to state that builtin/location decorations can only appear on
entry points.
jrprice added a commit to jrprice/gpuweb that referenced this pull request Mar 5, 2021
This is required for the grammar to support the changes made in gpuweb#1426.

Also removes two obsolete validation rules and replaces them with a
new one to state that builtin/location decorations can only appear on
entry points.
jrprice added a commit to jrprice/gpuweb that referenced this pull request Mar 5, 2021
This is required for the grammar to support the changes made in gpuweb#1426.

Also removes two obsolete validation rules.
dneto0 pushed a commit that referenced this pull request Mar 9, 2021
This is required for the grammar to support the changes made in #1426.

Also removes two obsolete validation rules.
ben-clayton pushed a commit to ben-clayton/Tint that referenced this pull request Apr 13, 2021
Entry points are now allowed to have parameters and return types as
part of the changes made in:
gpuweb/gpuweb#1426

Bug: tint:512
Change-Id: I20caa940f6d194f62ce1dfa5d247927c5b5a9628
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/44080
Auto-Submit: James Price <[email protected]>
Commit-Queue: Ben Clayton <[email protected]>
Reviewed-by: Ben Clayton <[email protected]>
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
This PR adds unimplemented stubs for the synchronization builtin functions.

 * `storageBarrier`
 * `workgroupBarrier`

Issue gpuweb#1249, gpuweb#1295
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.

Provide shader inputs as arguments to entry point functions

3 participants