Thanks to visit codestin.com
Credit goes to github.com

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

@github-actions
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

@rezadzed

This comment was marked as spam.

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