GPUAdapter: info property
WebGPU API
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
- The WebGPU API