web api instance property
GPUAdapterInfo: isFallbackAdapter property
Secure contextAvailable in workers
The isFallbackAdapter read-only property of the
GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
Value
A boolean.
Examples
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
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
- The WebGPU API