← Back to release summary

WebGPU: Expose GPUAdapterInfo from GPUDevice

Category
Graphics
Type
New or changed feature
Status
Enabled by default (Chrome 132)
Intent stage
None

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

Motivation

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 to 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

Standards & signals

View on chromestatus.com