Intent to Ship: WebGPU: copyBufferToBuffer overload

177 просмотров
Перейти к первому непрочитанному сообщению

François Beaufort

не прочитано,
2 апр. 2025 г., 04:15:472 апр.
– blink-dev

Contact emails

fbea...@google.com


Explainer

To simplify the copy of entire buffers, a new overload has been added to the GPUCommandEncoder copyBufferToBuffer() method, allowing developers to omit offsets and size parameters.


https://github.com/gpuweb/gpuweb/pull/5098


Specification

https://gpuweb.github.io/gpuweb/#dom-gpucommandencoder-copybuffertobuffer


Summary

Functionality added to the WebGPU spec after its first shipment in a browser.

The GPUCommandEncoder copyBufferToBuffer() method now includes a simpler way to copy entire buffers using a new overload with optional offsets and size parameters.


Blink component

Blink>WebGPU


TAG review

None


TAG review status

Not applicable


Risks



Interoperability and Compatibility

This feature has not yet been implemented in any browser. It has been approved by the GPU for the Web Community Group, with representatives from Chrome, Firefox, and Safari. See minutes at 

https://github.com/gpuweb/gpuweb/wiki/GPU-Web-2025-03-19#make-the-last-2-arguments-to-copybuffertobuffer-optional-4807


Gecko: No signal (Mozilla members have requested during weekly standardization meetings that we postpone filing standard positions until we reach Candidate Recommendation (CR) status in Q4.)


WebKit: Positive (https://github.com/WebKit/standards-positions/issues/294#issuecomment-1877411933)


Web developers: Positive (https://github.com/gpuweb/gpuweb/issues/4807)


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



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, Android WebView, 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. 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. All the tests about this feature in WebGPU CTS can be found through the below link: 

https://github.com/gpuweb/cts/pull/4310


Flag name on chrome://flags

Experimental Web Platform Features


Finch feature name

WebGPUCopyBufferToBufferOverload


Requires code in //chrome?

False


Tracking bug

https://issues.chromium.org/issues/405883444


Estimated milestones

DevTrial on desktop

136

DevTrial on Android

136


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/5172397000622080?gate=5107250466914304


This intent message was generated by Chrome Platform Status.


Alex Russell

не прочитано,
2 апр. 2025 г., 12:08:562 апр.
– blink-dev, fbea...@google.com
LGTM1, but would be good to see the other review sections started.

Daniel Bratell

не прочитано,
9 апр. 2025 г., 11:40:039 апр.
– Alex Russell, blink-dev, fbea...@google.com

LGTM2

/Daniel

--
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 visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/74f3242c-fcd6-4bb8-82aa-3ddac4aa3125n%40chromium.org.

Domenic Denicola

не прочитано,
11 апр. 2025 г., 01:06:3611 апр.
– blink-dev, Daniel Bratell, fbea...@google.com, Alex Russell
LGTM3

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
Ответить всем
Отправить сообщение автору
Переслать
0 новых сообщений