Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. GPUAdapterInfo
  4. isFallbackAdapter

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.

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

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp