You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- : A boolean value. Returns `true` if the adapter is a [fallback adapter](/en-US/docs/Web/API/GPU/requestAdapter#fallback_adapters), and `false` if not.
- : A boolean value. Returns `true` if the adapter is a [fallback adapter](/en-US/docs/Web/API/GPU/requestAdapter#fallback_adapters), and `false` if not. This property has been removed from the web platform. Use {{domxref("GPUAdapterInfo.isFallbackAdapter")}} instead.
The **`isFallbackAdapter`** read-only property of the
15
15
{{domxref("GPUAdapter")}} interface returns `true` if the adapter is a [fallback adapter](/en-US/docs/Web/API/GPU/requestAdapter#fallback_adapters), and `false` if not.
16
16
17
+
This property has been removed from the web platform. Use {{domxref("GPUAdapterInfo.isFallbackAdapter")}} instead.
- : A boolean value. Returns `true` if the adapter is a [fallback adapter](/en-US/docs/Web/API/GPU/requestAdapter#fallback_adapters), and `false`if not.
The **`isFallbackAdapter`** read-only property of the
12
+
{{domxref("GPUAdapterInfo")}} interface returns `true` if the adapter is a [fallback adapter](/en-US/docs/Web/API/GPU/requestAdapter#fallback_adapters), and `false` if not.
13
+
14
+
## Value
15
+
16
+
A boolean.
17
+
18
+
## Examples
19
+
20
+
```js
21
+
asyncfunctioninit() {
22
+
if (!navigator.gpu) {
23
+
throwError("WebGPU not supported.");
24
+
}
25
+
26
+
constadapter=awaitnavigator.gpu.requestAdapter();
27
+
if (!adapter) {
28
+
throwError("Couldn't request WebGPU adapter.");
29
+
}
30
+
31
+
constisFallback=adapter.info.isFallbackAdapter;
32
+
console.log(isFallback);
33
+
34
+
// …
35
+
}
36
+
```
37
+
38
+
## Specifications
39
+
40
+
{{Specifications}}
41
+
42
+
## Browser compatibility
43
+
44
+
{{Compat}}
45
+
46
+
## See also
47
+
48
+
- The [WebGPU API](/en-US/docs/Web/API/WebGPU_API)
0 commit comments