GPUAdapterInfo: isFallbackAdapter property
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
Note: This feature is available inWeb Workers.
TheisFallbackAdapter read-only property of theGPUAdapterInfo interface returnstrue if the adapter is afallback adapter, andfalse if not.
In this article
Value
A boolean.
Examples
js
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 isFallback = adapter.info.isFallbackAdapter; console.log(isFallback); // …}Specifications
| Specification |
|---|
| WebGPU> # dom-gpuadapterinfo-isfallbackadapter> |
Browser compatibility
See also
- TheWebGPU API