GPUAdapter: isFallbackAdapter property
WebGPU API
WebGPU API
The **`isFallbackAdapter`** read-only property of the
GPUAdapter interface returns `true` if the adapter is a [fallback adapter](/docs/Web/API/GPU/requestAdapter#fallback_adapters), and `false` if not.
This property has been removed from the web platform. Use GPUAdapterInfo.isFallbackAdapter instead.
## 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.isFallbackAdapter;
console.log(isFallback);
// …
}
```
## Specifications
## Browser compatibility
## See also
- The [WebGPU API](/docs/Web/API/WebGPU_API)
Cite this
"GPUAdapter: isFallbackAdapter property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/isFallbackAdapter JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy