demo · v132

Live GPUAdapterInfo probe

Probe the running browser's GPU. Compare what's available from the adapter (always-on) vs the device (the v132 addition). Detect isFallbackAdapter — a software fallback — while you've still got a device handle.

checking support…

GPUAdapter.info (existing API)

click "probe"

GPUDevice.adapterInfo (v132 addition)

click "probe"

use case: telemetry from a long-running session

// Without v132 you had to capture adapter.info up front:
const adapter = await navigator.gpu.requestAdapter();
const adapterInfo = adapter.info; // hold onto this
const device = await adapter.requestDevice();
// ... 30 minutes later, want to emit telemetry:
sendTelemetry({ gpu: adapterInfo.vendor });

// With v132 the device holds it for you:
const device2 = await (await navigator.gpu
  .requestAdapter()).requestDevice();
// 30 minutes later:
sendTelemetry({ gpu: device2.adapterInfo.vendor });

see also