demo · v132
GPUDevice.adapterInfo — live read
Request a real GPUDevice on your machine and read adapter info directly off the device (new in 132) and from the adapter (existed before). The two surfaces show the same data — that is the point: no bookkeeping needed.
click below to request a device…
adapter.info (pre-132)
—
device.adapterInfo (132+)
—
the code
const adapter = await navigator.gpu.requestAdapter();
const device = await adapter.requestDevice();
console.log(device.adapterInfo); // {vendor, architecture, device, description}
// Pre-132 you had to hold onto the adapter alongside the device.
see also
- GPUDevice.adapterInfo — feature index
- ChromeStatus entry
- Spec