Skip to content

Commit

Permalink
wgpu: fix mode which is u64 not unwrapping big int
Browse files Browse the repository at this point in the history
  • Loading branch information
laytan committed Feb 27, 2025
1 parent b6f3433 commit 1223b3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vendor/wgpu/wgpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,7 @@ class WebGPUInterface {
*/
wgpuBufferMapAsync: (bufferIdx, mode, offset, size, callbackInfoPtr) => {
const buffer = this.buffers.get(bufferIdx);
mode = this.unwrapBigInt(mode);
offset = this.unwrapBigInt(offset);
size = this.unwrapBigInt(size);

Expand Down

0 comments on commit 1223b3e

Please sign in to comment.