wgpu: fix mode which is u64 not unwrapping big int

This commit is contained in:
Laytan Laats committed 2025-02-27 22:29:32 +01:00
1 parent b6f34332fe
commit 1223b3e260
1 file changed
+1
+1
View File
@@ -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);