GO-V.ORG
As seen in

GPUDevice: adapterInfo property

WebGPU API

WebGPU API

The **`adapterInfo`** read-only property of the
GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.

## Value

A GPUAdapterInfo object instance.

## Examples

### Basic adapterInfo usage

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

const myDevice = await adapter.requestDevice();

function optimizeForGpuDevice(device) {
if (device.adapterInfo.vendor === "amd") {
// Use AMD-specific optimizations
} else if (device.adapterInfo.architecture.includes("turing")) {
// Optimize for NVIDIA Turing architecture
}
}

optimizeForGpuDevice(myDevice);
```

## Specifications

## Browser compatibility

## See also

- The [WebGPU API](/docs/Web/API/WebGPU_API)

source: MDN Web Docs mirror · page

Cite this

"GPUDevice: adapterInfo property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/adapterInfo

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·