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

Expose all interfaces to DedicatedWorker - #1883

Merged
kainino0x merged 2 commits into
gpuweb:mainfrom
kainino0x:exposed
Jul 12, 2021
Merged

kainino0x merged 2 commits into
gpuweb:mainfrom
kainino0x:exposed

Conversation

@kainino0x

@kainino0x kainino0x commented Jun 28, 2021 •

Copy link
Copy Markdown
Contributor

Exposes the whole WebGPU API to DedicatedWorker. There's no reason this can't be exposed now (and in fact Chromium already exposes it). This doesn't require multithreading support - just single-threaded access from a worker.

In the second commit, I also tentatively remove the [Serializable] attribute from all of the interfaces. We already agreed on adding these, but we still have yet to actually fully write down how it works. We should figure out whether we want to keep the partially-defined multithreading in the spec for now. If we do, I'll just cut that commit from the PR.

Fixes #1882


Preview | Diff

@kainino0x
kainino0x requested a review from toji June 28, 2021 21:46
@github-actions

Copy link
Copy Markdown
Contributor

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

@toji toji 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 with one nit about the Serializable issues.

Comment thread spec/index.bs
@kdashg

kdashg commented Jun 29, 2021

Copy link
Copy Markdown
Contributor

This is free to spec, but not free to implement. I think we should hit MVP first.

@kainino0x

Copy link
Copy Markdown
Contributor Author

Resolved: merge

@kainino0x
kainino0x merged commit 8dccd43 into gpuweb:main Jul 12, 2021
@kainino0x
kainino0x deleted the exposed branch July 12, 2021 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API should be exposed to DedicatedWorker

4 participants