MDN self-hosted library · e01.org

GPUAdapter: info property

WebGPU API

Open notebook · 1 cells web-api-instance-property upstream source

WebGPU API

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

Browser compatibility

See also