Intent to Ship: WebGPU: render to slice of 3D texture

329 views
Skip to first unread message

Corentin Wallez

unread,
Jan 5, 2024, 8:18:27 AM1/5/24
to blink-dev

Contact emails

cwa...@google.com

Explainer

None

Specification

https://gpuweb.github.io/gpuweb/#dom-gpurenderpasscolorattachment-depthslice

Summary

Functionality added to the WebGPU/WGSL spec after its first shipment in a browser. Adds support using a render pass to render to slices of 3D textures in addition to rendering to 2D textures. This is used in graphical algorithm to do voxelization between others.



Blink component

Blink>WebGPU

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

Read-write storage textures have not yet been implemented in any browser, but have been approved by the GPU for the Web Community Group, with representatives from Chrome, Firefox, and Safari.



Gecko: No signal (https://github.com/mozilla/standards-positions/issues/952)

WebKit: Positive (https://github.com/WebKit/standards-positions/issues/294#issuecomment-1877411933) Note that this is a blanket approval from Safari for additions to the v1 WebGPU/WGSL spec.

Web developers: Positive This feature has been requested by developers multiple times.

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?

None at the moment, WebGPU currently does not ship on Android WebView.



Debuggability

None



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, ChromeOS, Mac, and Windows, since those platforms already support WebGPU. 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. Note that tests are still being written, but the feature will not be launched until it is fully tested.



Flag name on chrome://flags

None

Finch feature name

None

Non-finch justification

None

Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/dawn/issues/detail?id=1020

Availability expectation

Feature is available only in Chromium browsers for the near future, on the order of months. Other browsers intend to ship WebGPU support, but don't have specified timelines.

Non-OSS dependencies

Does the feature depend on any code or APIs outside the Chromium open source repository and its open-source dependencies to function?

No

Estimated milestones

No milestones specified



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

None

Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5196871364771840

This intent message was generated by Chrome Platform Status.

Chris Harrelson

unread,
Jan 17, 2024, 7:50:33 PM1/17/24
to Corentin Wallez, blink-dev
LGTM1 (as noted in the other intent, tests are needed but we aren't blocking approval on them in this case)


--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGdfWNOcdCrMEuv3atOcbRw8K_xywF%2BVo-8q-hn1Y87bHk91iw%40mail.gmail.com.

Mike Taylor

unread,
Jan 17, 2024, 8:26:31 PM1/17/24
to Chris Harrelson, Corentin Wallez, blink-dev

Yoav Weiss (@Shopify)

unread,
Jan 19, 2024, 12:02:58 AM1/19/24
to Mike Taylor, Chris Harrelson, Corentin Wallez, blink-dev
Reply all
Reply to author
Forward
0 new messages