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

Add information on unrestricted_pointer_parameters extension #36899

Conversation

chrisdavidmills
Copy link
Contributor

Description

Chrome 123 supports the unrestricted_pointer_parameters language extension (see WGSLLanguageFeatures), which loosens restrictions on pointers being passed to WGSL functions as follows:

  • Parameter pointers to storage, uniform, and workgroup address spaces being passed to user-declared functions.
  • Pointers to structure members and array elements being passed to user-declared functions.

This PR adds an entry to the "Available features" table on the WGSLLanguageFeatures ref page for this feature. I'm copying the same structure as I used in #36880, and will deal with merging them as they start to get published.

See https://developer.chrome.com/blog/new-in-webgpu-123#unrestricted_pointer_parameters_in_wgsl for the data source.

Motivation

Additional details

Related issues and pull requests

Project issue: #36350

@chrisdavidmills chrisdavidmills requested a review from a team as a code owner November 21, 2024 13:04
@chrisdavidmills chrisdavidmills requested review from sideshowbarker and removed request for a team November 21, 2024 13:04
@github-actions github-actions bot added Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed labels Nov 21, 2024
Copy link
Contributor

Preview URLs

External URLs (2)

URL: /en-US/docs/Web/API/WGSLLanguageFeatures
Title: WGSLLanguageFeatures

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

@sideshowbarker sideshowbarker merged commit 3ab81b7 into mdn:main Nov 22, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants