It is important for libraries that take user-provided GPUDevice objects to access information about the physical GPU, as they may need to optimize or implement workarounds based on the GPU architecture. While it is possible to access this information through the GPUAdapter object, there is no direct way to get it from a GPUDevice alone. This can be inconvenient, as it may require users to provide additional information alongside the GPUDevice.
To address this problem, we expose GPUAdapterInfo through the GPUDevice adapterInfo attribute. Those are similar to the existing GPUAdapter info attribute.
https://github.com/gpuweb/gpuweb/pull/4809
https://www.w3.org/TR/webgpu/#dom-gpudevice-adapterinfo
Functionality added to the WebGPU spec after its first shipment in a browser.
The GPUDevice adapterInfo attribute exposes the same GPUAdapterInfo as the GPUAdapter object..
None
Not applicable
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://docs.google.com/document/d/1FlVeiqRzx5t-9z03Ocx7_gw-lPpysUaw_83xofJyxQQ/edit and https://github.com/gpuweb/gpuweb/pull/4809
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/4810)
Other signals:
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
None
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.
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/4023
chrome://flags/#enable-unsafe-webgpu
WebGPUDeviceAdapterInfo
False
https://issues.chromium.org/issues/376600838
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
LGTM1
Contact emails
Explainer
It is important for libraries that take user-provided GPUDevice objects to access information about the physical GPU, as they may need to optimize or implement workarounds based on the GPU architecture. While it is possible to access this information through the GPUAdapter object, there is no direct way to get it from a GPUDevice alone. This can be inconvenient, as it may require users to provide additional information alongside the GPUDevice.
To address this problem, we expose GPUAdapterInfo through the GPUDevice adapterInfo attribute. Those are similar to the existing GPUAdapter info attribute.
https://github.com/gpuweb/gpuweb/pull/4809
Specification
https://www.w3.org/TR/webgpu/#dom-gpudevice-adapterinfo
Summary
Functionality added to the WebGPU spec after its first shipment in a browser.
The GPUDevice adapterInfo attribute exposes the same GPUAdapterInfo as the GPUAdapter object..
Blink component
TAG review
None
TAG review status
Not applicable
--
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/CAPpwU5LW-1pCayKc9uUfXHRibCfg8LZQ3s8irHxZbwSmAGT6MQ%40mail.gmail.com.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6b25b56d-738c-4d6d-8925-01e83f94b6a4%40chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
--
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+unsubscribe@chromium.org.