diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2022-08-04 01:00:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 01:00:51 +0200 |
commit | 864af52a1bf242bdf59790ba28a08042aab8c66b (patch) | |
tree | 65c1cf28aae00a775085c6d83f10622d1c40c328 /ext/webgpu/src/01_webgpu.js | |
parent | bc4ee5924682fee9e22922c1b8c07fad32728a83 (diff) |
fix(ext/webgpu): use correct IDL key name (#15278)
Diffstat (limited to 'ext/webgpu/src/01_webgpu.js')
-rw-r--r-- | ext/webgpu/src/01_webgpu.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/webgpu/src/01_webgpu.js b/ext/webgpu/src/01_webgpu.js index 21599a117..79d1f497c 100644 --- a/ext/webgpu/src/01_webgpu.js +++ b/ext/webgpu/src/01_webgpu.js @@ -323,7 +323,13 @@ ); } } - const requiredLimits = descriptor.requiredLimits; + let requiredLimits = descriptor.requiredLimits; + if (requiredLimits) { + requiredLimits = { + ...this[_adapter].limits[_limits], + ...requiredLimits, + }; + } // TODO(lucacasonato): validate requiredLimits const { rid, features, limits } = await core.opAsync( |