diff --git a/modules/webgpu/src/adapter/webgpu-device.ts b/modules/webgpu/src/adapter/webgpu-device.ts index 5e1879f8c5..6ca46ea03a 100644 --- a/modules/webgpu/src/adapter/webgpu-device.ts +++ b/modules/webgpu/src/adapter/webgpu-device.ts @@ -92,7 +92,11 @@ export class WebGPUDevice extends Device { throw new Error('Failed to request WebGPU adapter'); } - const adapterInfo = await adapter.requestAdapterInfo(); + // Note: adapter.requestAdapterInfo() has been replaced with adapter.info. Fall back in case adapter.info is not available + const adapterInfo = + adapter.info || + // @ts-ignore + (await adapter.requestAdapterInfo?.()); log.probe(2, 'Adapter available', adapterInfo)(); const requiredFeatures: GPUFeatureName[] = [];