Firefox Tomorrow

web api instance property

GPUAdapter: info property

View on MDN ↗

Secure contextAvailable in workers

The info read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter.

Value

A GPUAdapterInfo object instance.

Examples

Basic info usage

const adapter = await navigator.gpu.requestAdapter();
if (!adapter) {
  throw Error("Couldn't request WebGPU adapter.");
}

const adapterInfo = adapter.info;
console.log(adapterInfo.vendor);
console.log(adapterInfo.architecture);

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also