这是indexloc提供的服务,不要输入任何密码
Skip to content

[wgsl] Update Goals section of spec #588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

[wgsl] Update Goals section of spec #588

wants to merge 3 commits into from

Conversation

dj2
Copy link
Member

@dj2 dj2 commented Mar 3, 2020

This CL updates the goals section with the original language combined
with the discussion from #586 and the weekly meeting.

Issue #586

This CL updates the goals section with the original language combined
with the discussion from #586 and the weekly meeting.

Issue #586
@dj2 dj2 added the wgsl WebGPU Shading Language Issues label Mar 3, 2020
@dj2 dj2 requested a review from litherum March 3, 2020 20:59
@dj2
Copy link
Member Author

dj2 commented Mar 10, 2020

Did anyone else have feedback on this change?

@damyanp
Copy link

damyanp commented Mar 10, 2020 via email

@damyanp
Copy link

damyanp commented Mar 10, 2020 via email

@litherum
Copy link
Contributor

#599 includes the result of our telecon last week.

@dneto0
Copy link
Contributor

dneto0 commented Mar 10, 2020

#599 includes the result of our telecon last week.

The minutes from last week https://docs.google.com/document/d/15Pi1fYzr5F-aP92mosOLtRL4qLczmVRWQaomfQmGNzo/edit?ts=5e5d1f8e#bookmark=id.f4tachha289j say:

Resolved: Dan’s initial list of principles from #586 will be accepted. Some of them in the language, some in the README. Dan will send a pull request for this.

Dan posted this PR on the same day. So #599, which was posted 15hrs ago, should not have tried to address the parts addressed in this PR.

@litherum
Copy link
Contributor

So #599, which was posted 15hrs ago, should not have tried to address the parts addressed in this PR.

Ah, I must have mis-remembered my action item. I'll rebase mine on top of this one.

Comment on lines 50 to 51
* Constructs are defined as normative references to their SPIR-V counterparts
* All features in [SHORTNAME] are directly translatable to SPIR-V. (No polymorphism, no general pointers, no overloads, etc)
* Features and semantics are exactly the ones of SPIR-V
* Each item in this spec *must* provide the mapping to SPIR-V for the construct
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably join these two together into a single item. What's the difference between "constructs" and "items?"

It also seems that they aren't really goals, but instead are a means to achieving the "simple and efficient conversion from SPIR-V." These two probably belong in the README instead.

Copy link

Choose a reason for hiding this comment

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

In my mind these two are different to the simple and efficient conversion goal. The key part here is that the semantics of WGSL are inherited from SPIR-V. This is why we can have confidence that WGSL works as a shader language and doesn't specify things that are inherently hard or ambiguous across multiple GPU architectures. This is how WGSL leverages all the work that has been done to ensure this in SPIR-V.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm in agreement with @damyanp here. The semantics of SPIR-V are an important goal for WGSL.

@dj2
Copy link
Member Author

dj2 commented Mar 25, 2020

ping

@kvark kvark changed the base branch from master to main June 23, 2020 13:18
@dj2
Copy link
Member Author

dj2 commented Jan 12, 2021

Closing for now, we can revisit after the FAQ work is done.

@dj2 dj2 closed this Jan 12, 2021
@dj2 dj2 deleted the goals branch January 12, 2021 21:06
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 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.

4 participants