Skip to content

Commit 1cd76e3

Browse files
committed
Update
[ghstack-poisoned]
1 parent 1f26b44 commit 1cd76e3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

backends/webgpu/runtime/WebGPUDevice.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ WebGPUContext create_webgpu_context() {
9090

9191
// TimedWaitAny lets webgpu_wait() block on futures via wgpuInstanceWaitAny.
9292
WGPUInstanceDescriptor instance_desc = {};
93-
#if defined(__EMSCRIPTEN__)
93+
// Vendored (buck) Dawn uses the older capabilities.* API; the rig's native
94+
// Dawn and emscripten's emdawnwebgpu (emcc 4.0.19+) use requiredFeatures.
95+
#if defined(WEBGPU_DAWN_INSTANCE_CAPABILITIES)
9496
instance_desc.capabilities.timedWaitAnyEnable = true;
9597
instance_desc.capabilities.timedWaitAnyMaxCount = 1;
9698
#else

0 commit comments

Comments
 (0)