Skip to content

Conversation

@chrisdavidmills
Copy link
Contributor

Summary

In Chrome 140+, there are multiple places in WebGPU methods where a GPUTextureView was expected, but now you can specify a GPUTexture as a shorthand, provided a default GPUTextureView is desired (it is equivalent to a GPUTextureView created using a call to GPUTexture.createView() with no descriptor specified).

See https://developer.chrome.com/blog/new-in-webgpu-140#shorthand_for_using_texture_where_texture_view_is_used.

This PR adds data points in the appropriate places.

Test results and supporting details

Related issues

@github-actions github-actions bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:m [PR only] 25-100 LoC changed labels Oct 20, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 20, 2025

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@github-actions github-actions bot added the merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. label Oct 22, 2025
@github-actions
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

chrisdavidmills and others added 2 commits October 27, 2025 10:49
Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
@github-actions github-actions bot removed the merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. label Oct 27, 2025
@caugner caugner changed the title Chrome 140 Specify GPUTexture in place of GPUTextureView for default views Chrome 140 accepts GPUTexture instead of GPUTextureView in two more places Oct 31, 2025
@caugner caugner merged commit f76ff01 into mdn:main Oct 31, 2025
6 checks passed
@mdn-bot mdn-bot mentioned this pull request Oct 31, 2025
@chrisdavidmills chrisdavidmills deleted the gputexture-for-default-gputextureview branch November 3, 2025 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:m [PR only] 25-100 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants