From d16765d87a5cc956138305c5afba914531c9796c Mon Sep 17 00:00:00 2001 From: Martin Valigursky <59932779+mvaligursky@users.noreply.github.com> Date: Fri, 19 Apr 2024 11:54:26 +0100 Subject: [PATCH] WebGPU - skip unsupported device limits when creating device (#6263) Co-authored-by: Martin Valigursky --- src/platform/graphics/webgpu/webgpu-graphics-device.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platform/graphics/webgpu/webgpu-graphics-device.js b/src/platform/graphics/webgpu/webgpu-graphics-device.js index 1a3e4d46d60..e1cd1506b08 100644 --- a/src/platform/graphics/webgpu/webgpu-graphics-device.js +++ b/src/platform/graphics/webgpu/webgpu-graphics-device.js @@ -239,6 +239,10 @@ class WebgpuGraphicsDevice extends GraphicsDevice { const requiredLimits = {}; if (adapterLimits) { for (const limitName in adapterLimits) { + // skip these as they fail on Windows Chrome and are not part of spec currently + if (limitName === "minSubgroupSize" || limitName === "maxSubgroupSize") { + continue; + } requiredLimits[limitName] = adapterLimits[limitName]; } }