v132 · graphics
WebGPU: Expose GPUAdapterInfo from GPUDevice
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..
concepts
-
GPUDevice.adapterInfo
GPUDevice exposes adapterInfo directly. No more 'remember the adapter you requested the device from' bookkeeping.
-
lost-device telemetry
The motivating use case: when
device.lostfires, file a crash report with vendor/architecture in one line. -
live adapterInfo probe
Real WebGPU probe of the browser's GPU. Side-by-side adapter.info vs device.adapterInfo, with detection for
isFallbackAdapter. -
Device Info Explorer
Reads all GPUAdapterInfo fields from both
adapter.infoanddevice.adapterInfoside by side. Generates a simulated error report showing the new pattern in action. -
Device Info Dashboard
Probe your real GPU via
device.adapterInfo(Chrome 132) and display vendor, architecture, description, and feature level. Falls back to the adapter-sideadapter.infofor pre-132 browsers, with a simulated data view showing the full object shape.
why it shipped
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.