files/en-us/web/api/gpuadapter/requestadapterinfo/index.md
{{APIRef("WebGPU API")}}{{SecureContext_Header}}{{deprecated_header}}{{non-standard_header}}{{AvailableInWorkers}}
The requestAdapterInfo() method of the
{{domxref("GPUAdapter")}} interface returns a {{jsxref("Promise")}} that fulfills with a {{domxref("GPUAdapterInfo")}} object containing identifying information about an adapter.
requestAdapterInfo() has been removed from the WebGPU specification. Use {{domxref("GPUAdapter.info")}} to access adapter information instead.
requestAdapterInfo()
None.
A {{jsxref("Promise")}} that fulfills with a {{domxref("GPUAdapterInfo")}} object instance.
async function init() {
if (!navigator.gpu) {
throw Error("WebGPU not supported.");
}
const adapter = await navigator.gpu.requestAdapter();
if (!adapter) {
throw Error("Couldn't request WebGPU adapter.");
}
const adapterInfo = await adapter.requestAdapterInfo();
console.log(adapterInfo.vendor);
console.log(adapterInfo.architecture);
// …
}
No longer part of the WebGPU specification.
{{Compat}}