From 1223b3e2608d26808f26fa9b0521437221317451 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Thu, 27 Feb 2025 22:29:32 +0100 Subject: [PATCH] wgpu: fix mode which is u64 not unwrapping big int --- vendor/wgpu/wgpu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor/wgpu/wgpu.js b/vendor/wgpu/wgpu.js index 18ac52e93..fc4ffddb1 100644 --- a/vendor/wgpu/wgpu.js +++ b/vendor/wgpu/wgpu.js @@ -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);