Skip to content

Commit

Permalink
WebGPU - skip unsupported device limits when creating device (#6263)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
  • Loading branch information
mvaligursky and Martin Valigursky authored Apr 19, 2024
1 parent 15172d8 commit d16765d
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 d16765d

Please sign in to comment.