Skip to content
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

Chrome 124 supports read-write and read-only storageTexture.access + Chrome Android 121 supports WGSLLanguageFeatures #25137

Conversation

chrisdavidmills
Copy link
Contributor

@chrisdavidmills chrisdavidmills commented Nov 20, 2024

Summary

Chrome 124 supports the readonly_and_readwrite_storage_textures language extension (see WGSLLanguageFeatures), which allows the "read-write" and "read-only" storageTexture.access types to be set when specifying storageTexture bind group entry types in a bind group layout.

This PR adds data points for both the language extension and the access types.

See https://developer.chrome.com/blog/new-in-webgpu-124#read-only_and_read-write_storage_textures for the data source.

Test results and supporting details

Spec PR: gpuweb/gpuweb#4326

Related issues

Project issue: mdn/content#36346.

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

@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.

LGTM with nits

"version_added": "124"
},
"chrome_android": {
"version_added": false
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe it should be mirror as WebGPU on Chrome for Android was enabled in Chrome 121.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, in my last commit.

"version_added": "124"
},
"chrome_android": {
"version_added": false
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe it should be mirror as WebGPU on Chrome for Android was enabled in Chrome 121.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, in my last commit

…n' of github.com:chrisdavidmills/browser-compat-data into webgpu-readonly_and_readwrite_storage_textures-extension
@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 Nov 21, 2024
Copy link

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

@github-actions github-actions bot added infra Infrastructure issues (npm, GitHub Actions, releases) of this project data:webext Compat data for Browser Extensions. https://developer.mozilla.org/Add-ons/WebExtensions data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS data:svg Compat data for SVG features. https://developer.mozilla.org/docs/Web/SVG dependencies Pull requests that update a dependency package or file. size:l [PR only] 101-1000 LoC changed and removed size:m [PR only] 25-100 LoC changed merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. labels Nov 21, 2024
@caugner
Copy link
Contributor

caugner commented Nov 21, 2024

Apologies @chrisdavidmills, something went wrong when I tried to resolve the merge conflict.

Could you please git reset --hard e42049d994e031fe8a380fd81ce29ff36ea7d24d && git push --force to undo my mischief?

Copy link
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

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

FWIW I just added mirror support to my compact diff, and here's the output for this PR:

image

It looks like this PR not only adds data for read-write and read-only storageTexture.access, but also updates some versions for api.WGSLLanguageFeatures. Is this intentional, i.e. are these changes directly related?

@chrisdavidmills chrisdavidmills force-pushed the webgpu-readonly_and_readwrite_storage_textures-extension branch from 3519354 to e42049d Compare November 22, 2024 09:05
@github-actions github-actions bot added merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. and removed infra Infrastructure issues (npm, GitHub Actions, releases) of this project data:webext Compat data for Browser Extensions. https://developer.mozilla.org/Add-ons/WebExtensions data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS data:svg Compat data for SVG features. https://developer.mozilla.org/docs/Web/SVG dependencies Pull requests that update a dependency package or file. labels Nov 22, 2024
Copy link

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

@github-actions github-actions bot added size:m [PR only] 25-100 LoC changed and removed size:l [PR only] 101-1000 LoC changed labels Nov 22, 2024
@chrisdavidmills
Copy link
Contributor Author

git reset --hard e42049d && git push --force

@caugner done!

I'll have a look at the conflict now.

@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 Nov 22, 2024
@chrisdavidmills
Copy link
Contributor Author

@caugner ok, conflict fixed

@chrisdavidmills
Copy link
Contributor Author

It was intentional to update some of the values for api.WGSLLanguageFeatures while doing this — they were erroneously marked as wrong for the longest time.

@caugner caugner changed the title Add data point for read-write and read-only storageTexture.access Chrome 124 supports read-write and read-only storageTexture.access + Chrome Android 121 supports WGSLLanguageFeatures Nov 22, 2024
Copy link
Contributor

@caugner caugner 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!

Compact diff grouped by value change:

image

@caugner caugner merged commit a457775 into mdn:main Nov 22, 2024
7 checks passed
@mdn-bot mdn-bot mentioned this pull request Nov 22, 2024
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