Skip to content

Commit

Permalink
WebGPU - skip unsupported device limits when creating device
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Valigursky committed Apr 19, 2024
1 parent 15172d8 commit 6532fb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform/graphics/webgpu/webgpu-graphics-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}
Expand Down

0 comments on commit 6532fb6

Please sign in to comment.