Skip to content

Conversation

beaufortfrancois
Copy link
Contributor

This PR adds GPUTexture support to the following attributes:

  • GPUBindingResource
  • GPURenderPassColorAttachment view
  • GPURenderPassColorAttachment resolveTarget
  • GPURenderPassDepthStencilAttachment view

It also updates parts of the WebGPU and WGSL specs that I've missed when adding GPUBuffer in GPUBindingResource with #5193

FIX #5215

Copy link
Contributor

github-actions bot commented Jun 20, 2025

Previews, as seen when this build job started (b3898a4):
WebGPU webgpu.idl | Explainer | Correspondence Reference
WGSL grammar.js | wgsl.lalr.txt

Copy link
Member

@toji toji left a comment

Choose a reason for hiding this comment

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

I missed last weeks meeting so I don't know if this was agreed upon behavior. Doesn't seem like the linked issue reached a resolution, at least.

Assuming that the group has agreed on this, though, the PR looks good. Just a couple of nits.

Copy link
Contributor Author

@beaufortfrancois beaufortfrancois left a comment

Choose a reason for hiding this comment

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

@toji Thanks for the review! My understanding from past meeting notes is that it had reached consensus.

Copy link
Member

@toji toji left a comment

Choose a reason for hiding this comment

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

Thanks for the updates! WebGPU spec LGTM, but would you mind getting someone from the WGSL side (like @dneto0) to approve the WGSL spec changes?

@beaufortfrancois beaufortfrancois requested a review from dneto0 June 27, 2025 07:22
@kainino0x kainino0x added the needs-cts-issue This change requires tests (or would need tests if accepted), but may not have a CTS issue filed yet label Jul 2, 2025
@beaufortfrancois
Copy link
Contributor Author

@dneto0 Please review

Copy link
Member

@toji toji left a comment

Choose a reason for hiding this comment

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

Kai's edits LGTM.

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.

LGTM. Thanks!

@dneto0 dneto0 merged commit e93276a into gpuweb:main Jul 3, 2025
4 checks passed
@beaufortfrancois
Copy link
Contributor Author

@kainino0x Shall we update webgpu.h as well or is it only for Javascript?

@kainino0x
Copy link
Contributor

@beaufortfrancois no, we'll do this only for Javascript. It's just an implicit .createView() and there's no issue if the C API user has to do that themselves.

@toji
Copy link
Member

toji commented Jul 7, 2025

I'm happy to do the Blink change unless this is something you wanted to tackle, @beaufortfrancois?

@beaufortfrancois
Copy link
Contributor Author

I already had one ;) Feel free to review https://chromium-review.googlesource.com/c/chromium/src/+/6656722

kainino0x pushed a commit to gpuweb/types that referenced this pull request Jul 7, 2025
This PR reflects the following spec changes:
- gpuweb/gpuweb#5228
aarongable pushed a commit to chromium/chromium that referenced this pull request Jul 9, 2025
Spec PR: gpuweb/gpuweb#5228

Change-Id: I260164692b6476bb298ec8ad23bf8d1696d68778
Bug: 425906323
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6656722
Commit-Queue: Fr <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1484331}
ErichDonGubler added a commit to erichdongubler-mozilla/firefox that referenced this pull request Jul 11, 2025
ErichDonGubler added a commit to erichdongubler-mozilla/firefox that referenced this pull request Jul 11, 2025
…`s are allowed r=#webgpu-reviewers!

Changed in spec. upstream by [gpuweb#5228](gpuweb/gpuweb#5228), tested by CTS in [gpuweb/cts#4407](gpuweb/cts#4407) (which is what caused the `FAIL`s removed here to be introduced with bug 1976874).

Differential Revision: https://phabricator.services.mozilla.com/D257054
ErichDonGubler added a commit to erichdongubler-mozilla/firefox that referenced this pull request Jul 12, 2025
…`s are allowed r=#webgpu-reviewers!

Changed in spec. upstream by [gpuweb#5228](gpuweb/gpuweb#5228), tested by CTS in [gpuweb/cts#4407](gpuweb/cts#4407) (which is what caused the `FAIL`s removed here to be introduced with bug 1976874).

Differential Revision: https://phabricator.services.mozilla.com/D257054
ErichDonGubler added a commit to erichdongubler-mozilla/firefox that referenced this pull request Jul 12, 2025
…`s are allowed r=#webgpu-reviewers!

Changed in spec. upstream by [gpuweb#5228](gpuweb/gpuweb#5228), tested by CTS in [gpuweb/cts#4407](gpuweb/cts#4407) (which is what caused the `FAIL`s removed here to be introduced with bug 1976874).

Differential Revision: https://phabricator.services.mozilla.com/D257054
@rezadzed

This comment was marked as spam.

@gpuweb gpuweb deleted a comment from rezadzed Jul 13, 2025
ErichDonGubler added a commit to erichdongubler-mozilla/firefox that referenced this pull request Jul 16, 2025
…`s are allowed r=#webgpu-reviewers!

Changed in spec. upstream by [gpuweb#5228](gpuweb/gpuweb#5228), tested by CTS in [gpuweb/cts#4407](gpuweb/cts#4407) (which is what caused the `FAIL`s removed here to be introduced with bug 1976874).

Differential Revision: https://phabricator.services.mozilla.com/D257054
ErichDonGubler added a commit to erichdongubler-mozilla/firefox that referenced this pull request Jul 16, 2025
…`s are allowed r=#webgpu-reviewers!

Changed in spec. upstream by [gpuweb#5228](gpuweb/gpuweb#5228), tested by CTS in [gpuweb/cts#4407](gpuweb/cts#4407) (which is what caused the `FAIL`s removed here to be introduced with bug 1976874).

Differential Revision: https://phabricator.services.mozilla.com/D257054
lando-prod-mozilla bot pushed a commit to mozilla-firefox/firefox that referenced this pull request Jul 17, 2025
…`s are allowed r=webgpu-reviewers,webidl,smaug,nical

Changed in spec. upstream by [gpuweb#5228](gpuweb/gpuweb#5228), tested by CTS in [gpuweb/cts#4407](gpuweb/cts#4407) (which is what caused the `FAIL`s removed here to be introduced with bug 1976874).

Differential Revision: https://phabricator.services.mozilla.com/D257054
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request Jul 21, 2025
…`s are allowed r=webgpu-reviewers,webidl,smaug,nical

Changed in spec. upstream by [gpuweb#5228](gpuweb/gpuweb#5228), tested by CTS in [gpuweb/cts#4407](gpuweb/cts#4407) (which is what caused the `FAIL`s removed here to be introduced with bug 1976874).

Differential Revision: https://phabricator.services.mozilla.com/D257054
Chainsawkitten added a commit to Chainsawkitten/WebGPUReconstruct that referenced this pull request Aug 5, 2025
gpuweb/gpuweb#5228 allows using GPUTexture instead of GPUTextureView in a number of places.
juj added a commit to juj/wasm_webgpu that referenced this pull request Sep 12, 2025
No functional changes since the object types are not strongly checked in the Wasm -> JS bridge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-cts-issue This change requires tests (or would need tests if accepted), but may not have a CTS issue filed yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Let you pass a GPUTexture everywhere a GPUTextureView is currently used
5 participants