Intent to Ship: WebGPU: Texture and Sampler Lets

13 views
Skip to first unread message

Chromestatus

unread,
8:49 AM (4 hours ago) 8:49 AM
to blin...@chromium.org, dsin...@google.com
Contact emails
dsin...@google.com

Explainer
No information provided

Specification
https://github.com/gpuweb/gpuweb/pull/5389

Summary
Add a language feature to WGSL, `texture_and_sampler_let` that adds the ability to store texture and sampler objects into a let declaration in WGSL.

Blink component
Blink>WebGPU

Web Feature ID
webgpu

Motivation
To allow storing texture and samples in WGSL shaders into lets. This allows creating local names for what are usually global objects.

Initial public proposal
https://github.com/gpuweb/gpuweb/issues/5339

TAG review
No information provided

TAG review status
Pending

Risks


Interoperability and Compatibility
This feature has been approved in W3C GPU for the Web WG meetings including participants from Safari and Firefox. Meeting minutes: https://docs.google.com/document/d/1kTmVO9okQZOotWtCNDzRaF-rPXgyIVJ-u5PEe7rnjQc/edit?tab=t.0#bookmark=id.u8bh2sfreh45

Gecko: No signal Mozilla members have approved https://github.com/gpuweb/gpuweb/pull/5389 and requested during weekly standardization meetings that we postpone filing standard positions until we reach Candidate Recommendation (CR) status in Q4.

WebKit: Closed Without a Position (https://github.com/WebKit/standards-positions/issues/294#issuecomment-1877411933)

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

No information provided


Debuggability
No information provided

Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?
No
All platforms will eventually have support. Will immediately be available on Android, Android WebView, ChromeOS, Mac, and Windows, where hardware support is available. Linux is planned to have WebGPU support in the future, so this feature will become available when WebGPU does.

Is this feature fully tested by web-platform-tests?
Yes
WebGPU/WGSL have a conformance test suite (https://github.com/gpuweb/cts) that is regularly pulled into Chromium and part of the testing of Dawn/Tint in Chromium. While the CTS can be embedded in WPT, the WebGPU team opted to keep it separate in Chromium testing to use a customized harness for robustness and performance. CTS: https://github.com/gpuweb/cts/pull/4490

Flag name on about://flags
No information provided

Finch feature name
UnsafeWGSLFeatures

Rollout plan
Will ship enabled for all users

Requires code in //chrome?
False

Tracking bug
https://crbug.com/459500757

Estimated milestones
Shipping on desktop146
Shipping on Android146
Shipping on WebView146


Anticipated spec changes

Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).

No information provided

Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5102334940151808?gate=6582632798355456

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages