[dawn][emscripten] Adds new MultipleDevicesPerAdapter instance feature.
- Adds handling for the enum since it was introduced but not handled
in emscripten bindings.
No-Try: true
Change-Id: I8a67623070efa88e5be943b7abe4680193b57dba
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/251474
Commit-Queue: David Neto <dneto@google.com>
Reviewed-by: David Neto <dneto@google.com>
Auto-Submit: Loko Kung <lokokung@google.com>
diff --git a/third_party/emdawnwebgpu/pkg/webgpu/src/webgpu.cpp b/third_party/emdawnwebgpu/pkg/webgpu/src/webgpu.cpp
index 0d4190c..cf6da7b 100644
--- a/third_party/emdawnwebgpu/pkg/webgpu/src/webgpu.cpp
+++ b/third_party/emdawnwebgpu/pkg/webgpu/src/webgpu.cpp
@@ -1655,6 +1655,11 @@
instance->mTimedWaitAnyMaxCount = kTimedWaitAnyMaxCountDefault;
}
continue;
+ case WGPUInstanceFeatureName_MultipleDevicesPerAdapter:
+ DEBUG_PRINTF(
+ "MultipleDevicesPerAdapter requested, but not supported in "
+ "WASM.\n");
+ return {};
case WGPUInstanceFeatureName_Force32:
return {};
}