Back to Content

GPUAdapterInfo: description property

files/en-us/web/api/gpuadapterinfo/description/index.md

latest641 B
Original Source

{{APIRef("WebGPU API")}}{{SecureContext_Header}}{{AvailableInWorkers}}

The description read-only property of the {{domxref("GPUAdapterInfo")}} interface returns a human-readable string describing the adapter, or an empty string if it is not available.

Value

A string.

Examples

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

const adapterInfo = adapter.info;
console.log(adapterInfo.description);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also