@docmentis/udoc-viewer 0.6.5 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +1 -1
- package/dist/src/UDocClient.d.ts +6 -0
- package/dist/src/UDocClient.d.ts.map +1 -1
- package/dist/src/UDocClient.js +2 -2
- package/dist/src/UDocClient.js.map +1 -1
- package/dist/src/UDocViewer.d.ts.map +1 -1
- package/dist/src/UDocViewer.js +10 -7
- package/dist/src/UDocViewer.js.map +1 -1
- package/dist/src/ui/viewer/components/Spread.d.ts.map +1 -1
- package/dist/src/ui/viewer/components/Spread.js +88 -26
- package/dist/src/ui/viewer/components/Spread.js.map +1 -1
- package/dist/src/ui/viewer/styles-inline.d.ts +1 -1
- package/dist/src/ui/viewer/styles-inline.d.ts.map +1 -1
- package/dist/src/ui/viewer/styles-inline.js +19 -0
- package/dist/src/ui/viewer/styles-inline.js.map +1 -1
- package/dist/src/wasm/LICENSE +9 -1
- package/dist/src/wasm/udoc.d.ts +42 -0
- package/dist/src/wasm/udoc.js +634 -0
- package/dist/src/wasm/udoc_bg.wasm +0 -0
- package/dist/src/wasm/udoc_bg.wasm.d.ts +7 -0
- package/dist/src/worker/WorkerClient.d.ts +9 -2
- package/dist/src/worker/WorkerClient.d.ts.map +1 -1
- package/dist/src/worker/WorkerClient.js +63 -11
- package/dist/src/worker/WorkerClient.js.map +1 -1
- package/dist/src/worker/worker-inline.js +1 -1
- package/dist/src/worker/worker.d.ts +1 -0
- package/dist/src/worker/worker.d.ts.map +1 -1
- package/dist/src/worker/worker.js +679 -3
- package/dist/src/worker/worker.js.map +1 -1
- package/package.json +1 -1
package/dist/src/wasm/udoc.js
CHANGED
|
@@ -9,6 +9,10 @@ function addHeapObject(obj) {
|
|
|
9
9
|
return idx;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
13
|
+
? { register: () => {}, unregister: () => {} }
|
|
14
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
15
|
+
|
|
12
16
|
function debugString(val) {
|
|
13
17
|
// primitive types
|
|
14
18
|
const type = typeof val;
|
|
@@ -90,6 +94,11 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
90
94
|
return result;
|
|
91
95
|
}
|
|
92
96
|
|
|
97
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
98
|
+
ptr = ptr >>> 0;
|
|
99
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
100
|
+
}
|
|
101
|
+
|
|
93
102
|
function getArrayU8FromWasm0(ptr, len) {
|
|
94
103
|
ptr = ptr >>> 0;
|
|
95
104
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -108,6 +117,14 @@ function getStringFromWasm0(ptr, len) {
|
|
|
108
117
|
return decodeText(ptr, len);
|
|
109
118
|
}
|
|
110
119
|
|
|
120
|
+
let cachedUint32ArrayMemory0 = null;
|
|
121
|
+
function getUint32ArrayMemory0() {
|
|
122
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
123
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
124
|
+
}
|
|
125
|
+
return cachedUint32ArrayMemory0;
|
|
126
|
+
}
|
|
127
|
+
|
|
111
128
|
let cachedUint8ArrayMemory0 = null;
|
|
112
129
|
function getUint8ArrayMemory0() {
|
|
113
130
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
@@ -135,6 +152,34 @@ function isLikeNone(x) {
|
|
|
135
152
|
return x === undefined || x === null;
|
|
136
153
|
}
|
|
137
154
|
|
|
155
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
156
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
157
|
+
const real = (...args) => {
|
|
158
|
+
|
|
159
|
+
// First up with a closure we increment the internal reference
|
|
160
|
+
// count. This ensures that the Rust closure environment won't
|
|
161
|
+
// be deallocated while we're invoking it.
|
|
162
|
+
state.cnt++;
|
|
163
|
+
const a = state.a;
|
|
164
|
+
state.a = 0;
|
|
165
|
+
try {
|
|
166
|
+
return f(a, state.b, ...args);
|
|
167
|
+
} finally {
|
|
168
|
+
state.a = a;
|
|
169
|
+
real._wbg_cb_unref();
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
real._wbg_cb_unref = () => {
|
|
173
|
+
if (--state.cnt === 0) {
|
|
174
|
+
state.dtor(state.a, state.b);
|
|
175
|
+
state.a = 0;
|
|
176
|
+
CLOSURE_DTORS.unregister(state);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
180
|
+
return real;
|
|
181
|
+
}
|
|
182
|
+
|
|
138
183
|
function passArray8ToWasm0(arg, malloc) {
|
|
139
184
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
140
185
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -214,6 +259,32 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
214
259
|
|
|
215
260
|
let WASM_VECTOR_LEN = 0;
|
|
216
261
|
|
|
262
|
+
function __wasm_bindgen_func_elem_2525(arg0, arg1, arg2) {
|
|
263
|
+
wasm.__wasm_bindgen_func_elem_2525(arg0, arg1, addHeapObject(arg2));
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
function __wasm_bindgen_func_elem_16210(arg0, arg1, arg2, arg3) {
|
|
267
|
+
wasm.__wasm_bindgen_func_elem_16210(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
|
|
271
|
+
|
|
272
|
+
const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
|
|
273
|
+
|
|
274
|
+
const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
|
|
275
|
+
|
|
276
|
+
const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
|
|
277
|
+
|
|
278
|
+
const __wbindgen_enum_GpuTextureAspect = ["all", "stencil-only", "depth-only"];
|
|
279
|
+
|
|
280
|
+
const __wbindgen_enum_GpuTextureDimension = ["1d", "2d", "3d"];
|
|
281
|
+
|
|
282
|
+
const __wbindgen_enum_GpuTextureFormat = ["r8unorm", "r8snorm", "r8uint", "r8sint", "r16uint", "r16sint", "r16float", "rg8unorm", "rg8snorm", "rg8uint", "rg8sint", "r32uint", "r32sint", "r32float", "rg16uint", "rg16sint", "rg16float", "rgba8unorm", "rgba8unorm-srgb", "rgba8snorm", "rgba8uint", "rgba8sint", "bgra8unorm", "bgra8unorm-srgb", "rgb9e5ufloat", "rgb10a2uint", "rgb10a2unorm", "rg11b10ufloat", "rg32uint", "rg32sint", "rg32float", "rgba16uint", "rgba16sint", "rgba16float", "rgba32uint", "rgba32sint", "rgba32float", "stencil8", "depth16unorm", "depth24plus", "depth24plus-stencil8", "depth32float", "depth32float-stencil8", "bc1-rgba-unorm", "bc1-rgba-unorm-srgb", "bc2-rgba-unorm", "bc2-rgba-unorm-srgb", "bc3-rgba-unorm", "bc3-rgba-unorm-srgb", "bc4-r-unorm", "bc4-r-snorm", "bc5-rg-unorm", "bc5-rg-snorm", "bc6h-rgb-ufloat", "bc6h-rgb-float", "bc7-rgba-unorm", "bc7-rgba-unorm-srgb", "etc2-rgb8unorm", "etc2-rgb8unorm-srgb", "etc2-rgb8a1unorm", "etc2-rgb8a1unorm-srgb", "etc2-rgba8unorm", "etc2-rgba8unorm-srgb", "eac-r11unorm", "eac-r11snorm", "eac-rg11unorm", "eac-rg11snorm", "astc-4x4-unorm", "astc-4x4-unorm-srgb", "astc-5x4-unorm", "astc-5x4-unorm-srgb", "astc-5x5-unorm", "astc-5x5-unorm-srgb", "astc-6x5-unorm", "astc-6x5-unorm-srgb", "astc-6x6-unorm", "astc-6x6-unorm-srgb", "astc-8x5-unorm", "astc-8x5-unorm-srgb", "astc-8x6-unorm", "astc-8x6-unorm-srgb", "astc-8x8-unorm", "astc-8x8-unorm-srgb", "astc-10x5-unorm", "astc-10x5-unorm-srgb", "astc-10x6-unorm", "astc-10x6-unorm-srgb", "astc-10x8-unorm", "astc-10x8-unorm-srgb", "astc-10x10-unorm", "astc-10x10-unorm-srgb", "astc-12x10-unorm", "astc-12x10-unorm-srgb", "astc-12x12-unorm", "astc-12x12-unorm-srgb"];
|
|
283
|
+
|
|
284
|
+
const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "depth", "sint", "uint"];
|
|
285
|
+
|
|
286
|
+
const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
|
|
287
|
+
|
|
217
288
|
const __wbindgen_enum_XmlHttpRequestResponseType = ["", "arraybuffer", "blob", "document", "json", "text"];
|
|
218
289
|
|
|
219
290
|
const UDocFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -771,6 +842,28 @@ export class UDoc {
|
|
|
771
842
|
const ret = wasm.udoc_remove_document(this.__wbg_ptr, ptr0, len0);
|
|
772
843
|
return ret !== 0;
|
|
773
844
|
}
|
|
845
|
+
/**
|
|
846
|
+
* Render a page using the GPU backend (Vello + WebGPU).
|
|
847
|
+
*
|
|
848
|
+
* Returns raw RGBA pixel data in premultiplied alpha format,
|
|
849
|
+
* identical to `render_page_to_rgba` but GPU-accelerated.
|
|
850
|
+
*
|
|
851
|
+
* # Errors
|
|
852
|
+
* Returns an error if the GPU backend is not initialized
|
|
853
|
+
* (call `init_gpu()` first), if the document is not found,
|
|
854
|
+
* or if rendering fails.
|
|
855
|
+
* @param {string} id
|
|
856
|
+
* @param {number} page_index
|
|
857
|
+
* @param {number} width
|
|
858
|
+
* @param {number} height
|
|
859
|
+
* @returns {Promise<Uint8Array>}
|
|
860
|
+
*/
|
|
861
|
+
render_page_gpu(id, page_index, width, height) {
|
|
862
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
863
|
+
const len0 = WASM_VECTOR_LEN;
|
|
864
|
+
const ret = wasm.udoc_render_page_gpu(this.__wbg_ptr, ptr0, len0, page_index, width, height);
|
|
865
|
+
return takeObject(ret);
|
|
866
|
+
}
|
|
774
867
|
/**
|
|
775
868
|
* Extract all embedded fonts from a PDF document.
|
|
776
869
|
*
|
|
@@ -1290,6 +1383,27 @@ export class UDoc {
|
|
|
1290
1383
|
const len2 = WASM_VECTOR_LEN;
|
|
1291
1384
|
wasm.udoc_setup(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
1292
1385
|
}
|
|
1386
|
+
/**
|
|
1387
|
+
* Check whether the GPU render backend is available.
|
|
1388
|
+
* @returns {boolean}
|
|
1389
|
+
*/
|
|
1390
|
+
has_gpu() {
|
|
1391
|
+
const ret = wasm.udoc_has_gpu(this.__wbg_ptr);
|
|
1392
|
+
return ret !== 0;
|
|
1393
|
+
}
|
|
1394
|
+
/**
|
|
1395
|
+
* Initialize the GPU render backend (Vello + WebGPU).
|
|
1396
|
+
*
|
|
1397
|
+
* This is async because wgpu device initialization requires yielding
|
|
1398
|
+
* to the browser event loop. Call this once after construction.
|
|
1399
|
+
* Returns `true` if GPU initialization succeeded, `false` if no
|
|
1400
|
+
* WebGPU adapter is available (the CPU backend remains usable).
|
|
1401
|
+
* @returns {Promise<boolean>}
|
|
1402
|
+
*/
|
|
1403
|
+
init_gpu() {
|
|
1404
|
+
const ret = wasm.udoc_init_gpu(this.__wbg_ptr);
|
|
1405
|
+
return takeObject(ret);
|
|
1406
|
+
}
|
|
1293
1407
|
/**
|
|
1294
1408
|
* Load a PDF document and return its ID.
|
|
1295
1409
|
*
|
|
@@ -1443,6 +1557,43 @@ export class UDoc {
|
|
|
1443
1557
|
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1444
1558
|
}
|
|
1445
1559
|
}
|
|
1560
|
+
/**
|
|
1561
|
+
* Load an XLSX document and return its ID.
|
|
1562
|
+
*
|
|
1563
|
+
* # Arguments
|
|
1564
|
+
* * `bytes` - Raw XLSX file data
|
|
1565
|
+
*
|
|
1566
|
+
* # Returns
|
|
1567
|
+
* A unique document ID that can be used to reference this document.
|
|
1568
|
+
* @param {Uint8Array} bytes
|
|
1569
|
+
* @returns {string}
|
|
1570
|
+
*/
|
|
1571
|
+
load_xlsx(bytes) {
|
|
1572
|
+
let deferred3_0;
|
|
1573
|
+
let deferred3_1;
|
|
1574
|
+
try {
|
|
1575
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1576
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export);
|
|
1577
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1578
|
+
wasm.udoc_load_xlsx(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1579
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1580
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1581
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1582
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1583
|
+
var ptr2 = r0;
|
|
1584
|
+
var len2 = r1;
|
|
1585
|
+
if (r3) {
|
|
1586
|
+
ptr2 = 0; len2 = 0;
|
|
1587
|
+
throw takeObject(r2);
|
|
1588
|
+
}
|
|
1589
|
+
deferred3_0 = ptr2;
|
|
1590
|
+
deferred3_1 = len2;
|
|
1591
|
+
return getStringFromWasm0(ptr2, len2);
|
|
1592
|
+
} finally {
|
|
1593
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1594
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1446
1597
|
/**
|
|
1447
1598
|
* Get info for a specific page.
|
|
1448
1599
|
* @param {string} id
|
|
@@ -1519,6 +1670,14 @@ function __wbg_get_imports() {
|
|
|
1519
1670
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1520
1671
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1521
1672
|
};
|
|
1673
|
+
imports.wbg.__wbg_Window_a4c5a48392f234ba = function(arg0) {
|
|
1674
|
+
const ret = getObject(arg0).Window;
|
|
1675
|
+
return addHeapObject(ret);
|
|
1676
|
+
};
|
|
1677
|
+
imports.wbg.__wbg_WorkerGlobalScope_2b2b89e1ac952b50 = function(arg0) {
|
|
1678
|
+
const ret = getObject(arg0).WorkerGlobalScope;
|
|
1679
|
+
return addHeapObject(ret);
|
|
1680
|
+
};
|
|
1522
1681
|
imports.wbg.__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d = function(arg0, arg1) {
|
|
1523
1682
|
const v = getObject(arg1);
|
|
1524
1683
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
@@ -1549,6 +1708,10 @@ function __wbg_get_imports() {
|
|
|
1549
1708
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
1550
1709
|
return ret;
|
|
1551
1710
|
};
|
|
1711
|
+
imports.wbg.__wbg___wbindgen_is_null_dfda7d66506c95b5 = function(arg0) {
|
|
1712
|
+
const ret = getObject(arg0) === null;
|
|
1713
|
+
return ret;
|
|
1714
|
+
};
|
|
1552
1715
|
imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
1553
1716
|
const val = getObject(arg0);
|
|
1554
1717
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -1587,6 +1750,17 @@ function __wbg_get_imports() {
|
|
|
1587
1750
|
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
1588
1751
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1589
1752
|
};
|
|
1753
|
+
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
1754
|
+
getObject(arg0)._wbg_cb_unref();
|
|
1755
|
+
};
|
|
1756
|
+
imports.wbg.__wbg_beginComputePass_304dccb30a4db2cc = function(arg0, arg1) {
|
|
1757
|
+
const ret = getObject(arg0).beginComputePass(getObject(arg1));
|
|
1758
|
+
return addHeapObject(ret);
|
|
1759
|
+
};
|
|
1760
|
+
imports.wbg.__wbg_buffer_6cb2fecb1f253d71 = function(arg0) {
|
|
1761
|
+
const ret = getObject(arg0).buffer;
|
|
1762
|
+
return addHeapObject(ret);
|
|
1763
|
+
};
|
|
1590
1764
|
imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1591
1765
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1592
1766
|
return addHeapObject(ret);
|
|
@@ -1595,6 +1769,64 @@ function __wbg_get_imports() {
|
|
|
1595
1769
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
1596
1770
|
return addHeapObject(ret);
|
|
1597
1771
|
}, arguments) };
|
|
1772
|
+
imports.wbg.__wbg_call_c8baa5c5e72d274e = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1773
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1774
|
+
return addHeapObject(ret);
|
|
1775
|
+
}, arguments) };
|
|
1776
|
+
imports.wbg.__wbg_clearBuffer_b7d0381b50c8f5bb = function(arg0, arg1, arg2, arg3) {
|
|
1777
|
+
getObject(arg0).clearBuffer(getObject(arg1), arg2, arg3);
|
|
1778
|
+
};
|
|
1779
|
+
imports.wbg.__wbg_clearBuffer_e3fa352fcc8ecc67 = function(arg0, arg1, arg2) {
|
|
1780
|
+
getObject(arg0).clearBuffer(getObject(arg1), arg2);
|
|
1781
|
+
};
|
|
1782
|
+
imports.wbg.__wbg_copyBufferToBuffer_38cb6919320bd451 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1783
|
+
getObject(arg0).copyBufferToBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5);
|
|
1784
|
+
}, arguments) };
|
|
1785
|
+
imports.wbg.__wbg_copyBufferToBuffer_8db6b1d1ef2bcea4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1786
|
+
getObject(arg0).copyBufferToBuffer(getObject(arg1), arg2, getObject(arg3), arg4);
|
|
1787
|
+
}, arguments) };
|
|
1788
|
+
imports.wbg.__wbg_copyTextureToBuffer_21b9dc9b4d87baf0 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1789
|
+
getObject(arg0).copyTextureToBuffer(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1790
|
+
}, arguments) };
|
|
1791
|
+
imports.wbg.__wbg_copyTextureToTexture_0eb51a215ab2cc31 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1792
|
+
getObject(arg0).copyTextureToTexture(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1793
|
+
}, arguments) };
|
|
1794
|
+
imports.wbg.__wbg_createBindGroupLayout_3fb59c14aed4b64e = function() { return handleError(function (arg0, arg1) {
|
|
1795
|
+
const ret = getObject(arg0).createBindGroupLayout(getObject(arg1));
|
|
1796
|
+
return addHeapObject(ret);
|
|
1797
|
+
}, arguments) };
|
|
1798
|
+
imports.wbg.__wbg_createBindGroup_03f26b8770895116 = function(arg0, arg1) {
|
|
1799
|
+
const ret = getObject(arg0).createBindGroup(getObject(arg1));
|
|
1800
|
+
return addHeapObject(ret);
|
|
1801
|
+
};
|
|
1802
|
+
imports.wbg.__wbg_createBuffer_76f7598789ecc3d7 = function() { return handleError(function (arg0, arg1) {
|
|
1803
|
+
const ret = getObject(arg0).createBuffer(getObject(arg1));
|
|
1804
|
+
return addHeapObject(ret);
|
|
1805
|
+
}, arguments) };
|
|
1806
|
+
imports.wbg.__wbg_createCommandEncoder_f8056019328bd192 = function(arg0, arg1) {
|
|
1807
|
+
const ret = getObject(arg0).createCommandEncoder(getObject(arg1));
|
|
1808
|
+
return addHeapObject(ret);
|
|
1809
|
+
};
|
|
1810
|
+
imports.wbg.__wbg_createComputePipeline_e6192c920efba35b = function(arg0, arg1) {
|
|
1811
|
+
const ret = getObject(arg0).createComputePipeline(getObject(arg1));
|
|
1812
|
+
return addHeapObject(ret);
|
|
1813
|
+
};
|
|
1814
|
+
imports.wbg.__wbg_createPipelineLayout_5039b0679b6b7f36 = function(arg0, arg1) {
|
|
1815
|
+
const ret = getObject(arg0).createPipelineLayout(getObject(arg1));
|
|
1816
|
+
return addHeapObject(ret);
|
|
1817
|
+
};
|
|
1818
|
+
imports.wbg.__wbg_createShaderModule_3facfe98356b79a9 = function(arg0, arg1) {
|
|
1819
|
+
const ret = getObject(arg0).createShaderModule(getObject(arg1));
|
|
1820
|
+
return addHeapObject(ret);
|
|
1821
|
+
};
|
|
1822
|
+
imports.wbg.__wbg_createTexture_49002c91188f6137 = function() { return handleError(function (arg0, arg1) {
|
|
1823
|
+
const ret = getObject(arg0).createTexture(getObject(arg1));
|
|
1824
|
+
return addHeapObject(ret);
|
|
1825
|
+
}, arguments) };
|
|
1826
|
+
imports.wbg.__wbg_createView_0ce5c82d78f482df = function() { return handleError(function (arg0, arg1) {
|
|
1827
|
+
const ret = getObject(arg0).createView(getObject(arg1));
|
|
1828
|
+
return addHeapObject(ret);
|
|
1829
|
+
}, arguments) };
|
|
1598
1830
|
imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
1599
1831
|
const ret = getObject(arg0).crypto;
|
|
1600
1832
|
return addHeapObject(ret);
|
|
@@ -1602,10 +1834,19 @@ function __wbg_get_imports() {
|
|
|
1602
1834
|
imports.wbg.__wbg_debug_9d0c87ddda3dc485 = function(arg0) {
|
|
1603
1835
|
console.debug(getObject(arg0));
|
|
1604
1836
|
};
|
|
1837
|
+
imports.wbg.__wbg_dispatchWorkgroupsIndirect_6594fbc416b287d6 = function(arg0, arg1, arg2) {
|
|
1838
|
+
getObject(arg0).dispatchWorkgroupsIndirect(getObject(arg1), arg2);
|
|
1839
|
+
};
|
|
1840
|
+
imports.wbg.__wbg_dispatchWorkgroups_4e59e078119b5bab = function(arg0, arg1, arg2, arg3) {
|
|
1841
|
+
getObject(arg0).dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
|
|
1842
|
+
};
|
|
1605
1843
|
imports.wbg.__wbg_done_62ea16af4ce34b24 = function(arg0) {
|
|
1606
1844
|
const ret = getObject(arg0).done;
|
|
1607
1845
|
return ret;
|
|
1608
1846
|
};
|
|
1847
|
+
imports.wbg.__wbg_end_ece2bf3a25678f12 = function(arg0) {
|
|
1848
|
+
getObject(arg0).end();
|
|
1849
|
+
};
|
|
1609
1850
|
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
1610
1851
|
let deferred0_0;
|
|
1611
1852
|
let deferred0_1;
|
|
@@ -1624,6 +1865,18 @@ function __wbg_get_imports() {
|
|
|
1624
1865
|
const ret = fetch(getObject(arg0));
|
|
1625
1866
|
return addHeapObject(ret);
|
|
1626
1867
|
};
|
|
1868
|
+
imports.wbg.__wbg_finish_17a0b297901010d5 = function(arg0) {
|
|
1869
|
+
const ret = getObject(arg0).finish();
|
|
1870
|
+
return addHeapObject(ret);
|
|
1871
|
+
};
|
|
1872
|
+
imports.wbg.__wbg_finish_ab9e01a922269f3a = function(arg0, arg1) {
|
|
1873
|
+
const ret = getObject(arg0).finish(getObject(arg1));
|
|
1874
|
+
return addHeapObject(ret);
|
|
1875
|
+
};
|
|
1876
|
+
imports.wbg.__wbg_getMappedRange_1229810ff58e27ce = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1877
|
+
const ret = getObject(arg0).getMappedRange(arg1, arg2);
|
|
1878
|
+
return addHeapObject(ret);
|
|
1879
|
+
}, arguments) };
|
|
1627
1880
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
1628
1881
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
1629
1882
|
}, arguments) };
|
|
@@ -1639,6 +1892,10 @@ function __wbg_get_imports() {
|
|
|
1639
1892
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
1640
1893
|
return addHeapObject(ret);
|
|
1641
1894
|
};
|
|
1895
|
+
imports.wbg.__wbg_gpu_a6bce2913fb8f574 = function(arg0) {
|
|
1896
|
+
const ret = getObject(arg0).gpu;
|
|
1897
|
+
return addHeapObject(ret);
|
|
1898
|
+
};
|
|
1642
1899
|
imports.wbg.__wbg_info_ce6bcc489c22f6f0 = function(arg0) {
|
|
1643
1900
|
console.info(getObject(arg0));
|
|
1644
1901
|
};
|
|
@@ -1652,6 +1909,16 @@ function __wbg_get_imports() {
|
|
|
1652
1909
|
const ret = result;
|
|
1653
1910
|
return ret;
|
|
1654
1911
|
};
|
|
1912
|
+
imports.wbg.__wbg_instanceof_GpuAdapter_fb230cdccb184887 = function(arg0) {
|
|
1913
|
+
let result;
|
|
1914
|
+
try {
|
|
1915
|
+
result = getObject(arg0) instanceof GPUAdapter;
|
|
1916
|
+
} catch (_) {
|
|
1917
|
+
result = false;
|
|
1918
|
+
}
|
|
1919
|
+
const ret = result;
|
|
1920
|
+
return ret;
|
|
1921
|
+
};
|
|
1655
1922
|
imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
|
|
1656
1923
|
let result;
|
|
1657
1924
|
try {
|
|
@@ -1674,6 +1941,13 @@ function __wbg_get_imports() {
|
|
|
1674
1941
|
const ret = Symbol.iterator;
|
|
1675
1942
|
return addHeapObject(ret);
|
|
1676
1943
|
};
|
|
1944
|
+
imports.wbg.__wbg_label_cda985b32d44cee0 = function(arg0, arg1) {
|
|
1945
|
+
const ret = getObject(arg1).label;
|
|
1946
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1947
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1948
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1949
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1950
|
+
};
|
|
1677
1951
|
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
1678
1952
|
const ret = getObject(arg0).length;
|
|
1679
1953
|
return ret;
|
|
@@ -1685,10 +1959,22 @@ function __wbg_get_imports() {
|
|
|
1685
1959
|
imports.wbg.__wbg_log_1d990106d99dacb7 = function(arg0) {
|
|
1686
1960
|
console.log(getObject(arg0));
|
|
1687
1961
|
};
|
|
1962
|
+
imports.wbg.__wbg_mapAsync_4a34082bad283ccf = function(arg0, arg1, arg2, arg3) {
|
|
1963
|
+
const ret = getObject(arg0).mapAsync(arg1 >>> 0, arg2, arg3);
|
|
1964
|
+
return addHeapObject(ret);
|
|
1965
|
+
};
|
|
1688
1966
|
imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
1689
1967
|
const ret = getObject(arg0).msCrypto;
|
|
1690
1968
|
return addHeapObject(ret);
|
|
1691
1969
|
};
|
|
1970
|
+
imports.wbg.__wbg_navigator_11b7299bb7886507 = function(arg0) {
|
|
1971
|
+
const ret = getObject(arg0).navigator;
|
|
1972
|
+
return addHeapObject(ret);
|
|
1973
|
+
};
|
|
1974
|
+
imports.wbg.__wbg_navigator_b49edef831236138 = function(arg0) {
|
|
1975
|
+
const ret = getObject(arg0).navigator;
|
|
1976
|
+
return addHeapObject(ret);
|
|
1977
|
+
};
|
|
1692
1978
|
imports.wbg.__wbg_new_0_23cedd11d9b40c9d = function() {
|
|
1693
1979
|
const ret = new Date();
|
|
1694
1980
|
return addHeapObject(ret);
|
|
@@ -1721,10 +2007,36 @@ function __wbg_get_imports() {
|
|
|
1721
2007
|
const ret = new Map();
|
|
1722
2008
|
return addHeapObject(ret);
|
|
1723
2009
|
};
|
|
2010
|
+
imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
|
|
2011
|
+
try {
|
|
2012
|
+
var state0 = {a: arg0, b: arg1};
|
|
2013
|
+
var cb0 = (arg0, arg1) => {
|
|
2014
|
+
const a = state0.a;
|
|
2015
|
+
state0.a = 0;
|
|
2016
|
+
try {
|
|
2017
|
+
return __wasm_bindgen_func_elem_16210(a, state0.b, arg0, arg1);
|
|
2018
|
+
} finally {
|
|
2019
|
+
state0.a = a;
|
|
2020
|
+
}
|
|
2021
|
+
};
|
|
2022
|
+
const ret = new Promise(cb0);
|
|
2023
|
+
return addHeapObject(ret);
|
|
2024
|
+
} finally {
|
|
2025
|
+
state0.a = state0.b = 0;
|
|
2026
|
+
}
|
|
2027
|
+
};
|
|
2028
|
+
imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
|
|
2029
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
2030
|
+
return addHeapObject(ret);
|
|
2031
|
+
};
|
|
1724
2032
|
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
1725
2033
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1726
2034
|
return addHeapObject(ret);
|
|
1727
2035
|
};
|
|
2036
|
+
imports.wbg.__wbg_new_with_byte_offset_and_length_d85c3da1fd8df149 = function(arg0, arg1, arg2) {
|
|
2037
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
2038
|
+
return addHeapObject(ret);
|
|
2039
|
+
};
|
|
1728
2040
|
imports.wbg.__wbg_new_with_length_aa5eaf41d35235e5 = function(arg0) {
|
|
1729
2041
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1730
2042
|
return addHeapObject(ret);
|
|
@@ -1759,13 +2071,40 @@ function __wbg_get_imports() {
|
|
|
1759
2071
|
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
1760
2072
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
1761
2073
|
};
|
|
2074
|
+
imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
|
|
2075
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
2076
|
+
return ret;
|
|
2077
|
+
};
|
|
2078
|
+
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
2079
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
2080
|
+
return addHeapObject(ret);
|
|
2081
|
+
};
|
|
2082
|
+
imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
2083
|
+
queueMicrotask(getObject(arg0));
|
|
2084
|
+
};
|
|
2085
|
+
imports.wbg.__wbg_queue_39d4f3bda761adef = function(arg0) {
|
|
2086
|
+
const ret = getObject(arg0).queue;
|
|
2087
|
+
return addHeapObject(ret);
|
|
2088
|
+
};
|
|
1762
2089
|
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
1763
2090
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
1764
2091
|
}, arguments) };
|
|
2092
|
+
imports.wbg.__wbg_requestAdapter_55d15e6d14e8392c = function(arg0, arg1) {
|
|
2093
|
+
const ret = getObject(arg0).requestAdapter(getObject(arg1));
|
|
2094
|
+
return addHeapObject(ret);
|
|
2095
|
+
};
|
|
2096
|
+
imports.wbg.__wbg_requestDevice_66e864eaf1ffbb38 = function(arg0, arg1) {
|
|
2097
|
+
const ret = getObject(arg0).requestDevice(getObject(arg1));
|
|
2098
|
+
return addHeapObject(ret);
|
|
2099
|
+
};
|
|
1765
2100
|
imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
1766
2101
|
const ret = module.require;
|
|
1767
2102
|
return addHeapObject(ret);
|
|
1768
2103
|
}, arguments) };
|
|
2104
|
+
imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
2105
|
+
const ret = Promise.resolve(getObject(arg0));
|
|
2106
|
+
return addHeapObject(ret);
|
|
2107
|
+
};
|
|
1769
2108
|
imports.wbg.__wbg_responseText_7a33f62863958740 = function() { return handleError(function (arg0, arg1) {
|
|
1770
2109
|
const ret = getObject(arg1).responseText;
|
|
1771
2110
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -1780,31 +2119,296 @@ function __wbg_get_imports() {
|
|
|
1780
2119
|
imports.wbg.__wbg_send_3accfe4b9b207011 = function() { return handleError(function (arg0) {
|
|
1781
2120
|
getObject(arg0).send();
|
|
1782
2121
|
}, arguments) };
|
|
2122
|
+
imports.wbg.__wbg_setBindGroup_250647fe6341e1db = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
2123
|
+
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2), getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
2124
|
+
}, arguments) };
|
|
2125
|
+
imports.wbg.__wbg_setBindGroup_92f5fbfaea0311a0 = function(arg0, arg1, arg2) {
|
|
2126
|
+
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2));
|
|
2127
|
+
};
|
|
2128
|
+
imports.wbg.__wbg_setPipeline_95448e1c3bb1e875 = function(arg0, arg1) {
|
|
2129
|
+
getObject(arg0).setPipeline(getObject(arg1));
|
|
2130
|
+
};
|
|
1783
2131
|
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
1784
2132
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
1785
2133
|
};
|
|
1786
2134
|
imports.wbg.__wbg_set_425eb8b710d5beee = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1787
2135
|
getObject(arg0).set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1788
2136
|
}, arguments) };
|
|
2137
|
+
imports.wbg.__wbg_set_781438a03c0c3c81 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2138
|
+
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
2139
|
+
return ret;
|
|
2140
|
+
}, arguments) };
|
|
1789
2141
|
imports.wbg.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
|
|
1790
2142
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
1791
2143
|
};
|
|
2144
|
+
imports.wbg.__wbg_set_access_c87a9bdb5c449e6b = function(arg0, arg1) {
|
|
2145
|
+
getObject(arg0).access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
|
|
2146
|
+
};
|
|
2147
|
+
imports.wbg.__wbg_set_array_layer_count_3a8ad1adab3aded1 = function(arg0, arg1) {
|
|
2148
|
+
getObject(arg0).arrayLayerCount = arg1 >>> 0;
|
|
2149
|
+
};
|
|
2150
|
+
imports.wbg.__wbg_set_aspect_4066a62e6528c589 = function(arg0, arg1) {
|
|
2151
|
+
getObject(arg0).aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
2152
|
+
};
|
|
2153
|
+
imports.wbg.__wbg_set_base_array_layer_85c4780859e3e025 = function(arg0, arg1) {
|
|
2154
|
+
getObject(arg0).baseArrayLayer = arg1 >>> 0;
|
|
2155
|
+
};
|
|
2156
|
+
imports.wbg.__wbg_set_base_mip_level_f90525112a282a1d = function(arg0, arg1) {
|
|
2157
|
+
getObject(arg0).baseMipLevel = arg1 >>> 0;
|
|
2158
|
+
};
|
|
2159
|
+
imports.wbg.__wbg_set_bc3a432bdcd60886 = function(arg0, arg1, arg2) {
|
|
2160
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
2161
|
+
};
|
|
2162
|
+
imports.wbg.__wbg_set_beginning_of_pass_write_index_1175eec9e005d722 = function(arg0, arg1) {
|
|
2163
|
+
getObject(arg0).beginningOfPassWriteIndex = arg1 >>> 0;
|
|
2164
|
+
};
|
|
2165
|
+
imports.wbg.__wbg_set_bind_group_layouts_54f980eb55071c87 = function(arg0, arg1) {
|
|
2166
|
+
getObject(arg0).bindGroupLayouts = getObject(arg1);
|
|
2167
|
+
};
|
|
2168
|
+
imports.wbg.__wbg_set_binding_1ddbf5eebabdc48c = function(arg0, arg1) {
|
|
2169
|
+
getObject(arg0).binding = arg1 >>> 0;
|
|
2170
|
+
};
|
|
2171
|
+
imports.wbg.__wbg_set_binding_5ea4d52c77434dfa = function(arg0, arg1) {
|
|
2172
|
+
getObject(arg0).binding = arg1 >>> 0;
|
|
2173
|
+
};
|
|
1792
2174
|
imports.wbg.__wbg_set_body_8e743242d6076a4f = function(arg0, arg1) {
|
|
1793
2175
|
getObject(arg0).body = getObject(arg1);
|
|
1794
2176
|
};
|
|
2177
|
+
imports.wbg.__wbg_set_buffer_2dac3e64a7099038 = function(arg0, arg1) {
|
|
2178
|
+
getObject(arg0).buffer = getObject(arg1);
|
|
2179
|
+
};
|
|
2180
|
+
imports.wbg.__wbg_set_buffer_489d923366e1f63a = function(arg0, arg1) {
|
|
2181
|
+
getObject(arg0).buffer = getObject(arg1);
|
|
2182
|
+
};
|
|
2183
|
+
imports.wbg.__wbg_set_buffer_a3a7f00fa797e1d1 = function(arg0, arg1) {
|
|
2184
|
+
getObject(arg0).buffer = getObject(arg1);
|
|
2185
|
+
};
|
|
2186
|
+
imports.wbg.__wbg_set_bytes_per_row_61fdc31fb1e978f4 = function(arg0, arg1) {
|
|
2187
|
+
getObject(arg0).bytesPerRow = arg1 >>> 0;
|
|
2188
|
+
};
|
|
2189
|
+
imports.wbg.__wbg_set_bytes_per_row_7eb4ea50ad336975 = function(arg0, arg1) {
|
|
2190
|
+
getObject(arg0).bytesPerRow = arg1 >>> 0;
|
|
2191
|
+
};
|
|
2192
|
+
imports.wbg.__wbg_set_code_e66de35c80aa100f = function(arg0, arg1, arg2) {
|
|
2193
|
+
getObject(arg0).code = getStringFromWasm0(arg1, arg2);
|
|
2194
|
+
};
|
|
2195
|
+
imports.wbg.__wbg_set_compute_7e84d836a17ec8dc = function(arg0, arg1) {
|
|
2196
|
+
getObject(arg0).compute = getObject(arg1);
|
|
2197
|
+
};
|
|
2198
|
+
imports.wbg.__wbg_set_depth_or_array_layers_57e35a31ded46b97 = function(arg0, arg1) {
|
|
2199
|
+
getObject(arg0).depthOrArrayLayers = arg1 >>> 0;
|
|
2200
|
+
};
|
|
2201
|
+
imports.wbg.__wbg_set_dimension_1e40af745768ac00 = function(arg0, arg1) {
|
|
2202
|
+
getObject(arg0).dimension = __wbindgen_enum_GpuTextureDimension[arg1];
|
|
2203
|
+
};
|
|
2204
|
+
imports.wbg.__wbg_set_dimension_8523a7df804e7839 = function(arg0, arg1) {
|
|
2205
|
+
getObject(arg0).dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
2206
|
+
};
|
|
1795
2207
|
imports.wbg.__wbg_set_efaaf145b9377369 = function(arg0, arg1, arg2) {
|
|
1796
2208
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
1797
2209
|
return addHeapObject(ret);
|
|
1798
2210
|
};
|
|
2211
|
+
imports.wbg.__wbg_set_end_of_pass_write_index_c9e77fba223f5e64 = function(arg0, arg1) {
|
|
2212
|
+
getObject(arg0).endOfPassWriteIndex = arg1 >>> 0;
|
|
2213
|
+
};
|
|
2214
|
+
imports.wbg.__wbg_set_entries_5ebe60dce5e74a0b = function(arg0, arg1) {
|
|
2215
|
+
getObject(arg0).entries = getObject(arg1);
|
|
2216
|
+
};
|
|
2217
|
+
imports.wbg.__wbg_set_entries_9e330e1730f04662 = function(arg0, arg1) {
|
|
2218
|
+
getObject(arg0).entries = getObject(arg1);
|
|
2219
|
+
};
|
|
2220
|
+
imports.wbg.__wbg_set_entry_point_0dd252068a92e7b1 = function(arg0, arg1, arg2) {
|
|
2221
|
+
getObject(arg0).entryPoint = getStringFromWasm0(arg1, arg2);
|
|
2222
|
+
};
|
|
2223
|
+
imports.wbg.__wbg_set_external_texture_c45a65eda8f1c7e7 = function(arg0, arg1) {
|
|
2224
|
+
getObject(arg0).externalTexture = getObject(arg1);
|
|
2225
|
+
};
|
|
2226
|
+
imports.wbg.__wbg_set_format_071b082598e71ae2 = function(arg0, arg1) {
|
|
2227
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
2228
|
+
};
|
|
2229
|
+
imports.wbg.__wbg_set_format_45c59d08eefdcb12 = function(arg0, arg1) {
|
|
2230
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
2231
|
+
};
|
|
2232
|
+
imports.wbg.__wbg_set_format_726ed8f81a287fdc = function(arg0, arg1) {
|
|
2233
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
2234
|
+
};
|
|
2235
|
+
imports.wbg.__wbg_set_has_dynamic_offset_dcbae080558be467 = function(arg0, arg1) {
|
|
2236
|
+
getObject(arg0).hasDynamicOffset = arg1 !== 0;
|
|
2237
|
+
};
|
|
1799
2238
|
imports.wbg.__wbg_set_headers_5671cf088e114d2b = function(arg0, arg1) {
|
|
1800
2239
|
getObject(arg0).headers = getObject(arg1);
|
|
1801
2240
|
};
|
|
2241
|
+
imports.wbg.__wbg_set_height_28e79506f626af82 = function(arg0, arg1) {
|
|
2242
|
+
getObject(arg0).height = arg1 >>> 0;
|
|
2243
|
+
};
|
|
2244
|
+
imports.wbg.__wbg_set_label_03ef288b104476b5 = function(arg0, arg1, arg2) {
|
|
2245
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2246
|
+
};
|
|
2247
|
+
imports.wbg.__wbg_set_label_1183ccaccddf4c32 = function(arg0, arg1, arg2) {
|
|
2248
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2249
|
+
};
|
|
2250
|
+
imports.wbg.__wbg_set_label_3d8a20f328073061 = function(arg0, arg1, arg2) {
|
|
2251
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2252
|
+
};
|
|
2253
|
+
imports.wbg.__wbg_set_label_491466139034563c = function(arg0, arg1, arg2) {
|
|
2254
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2255
|
+
};
|
|
2256
|
+
imports.wbg.__wbg_set_label_53b47ffdebccf638 = function(arg0, arg1, arg2) {
|
|
2257
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2258
|
+
};
|
|
2259
|
+
imports.wbg.__wbg_set_label_7ffda3ed69c72b85 = function(arg0, arg1, arg2) {
|
|
2260
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2261
|
+
};
|
|
2262
|
+
imports.wbg.__wbg_set_label_828e6fe16c83ad61 = function(arg0, arg1, arg2) {
|
|
2263
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2264
|
+
};
|
|
2265
|
+
imports.wbg.__wbg_set_label_95bae3d54f33d3c6 = function(arg0, arg1, arg2) {
|
|
2266
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2267
|
+
};
|
|
2268
|
+
imports.wbg.__wbg_set_label_a1c8caea9f6c17d7 = function(arg0, arg1, arg2) {
|
|
2269
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2270
|
+
};
|
|
2271
|
+
imports.wbg.__wbg_set_label_a3e682ef8c10c947 = function(arg0, arg1, arg2) {
|
|
2272
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2273
|
+
};
|
|
2274
|
+
imports.wbg.__wbg_set_label_c880c612e67bf9d9 = function(arg0, arg1, arg2) {
|
|
2275
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2276
|
+
};
|
|
2277
|
+
imports.wbg.__wbg_set_label_eb73d9dd282c005a = function(arg0, arg1, arg2) {
|
|
2278
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2279
|
+
};
|
|
2280
|
+
imports.wbg.__wbg_set_layout_934f9127172b906e = function(arg0, arg1) {
|
|
2281
|
+
getObject(arg0).layout = getObject(arg1);
|
|
2282
|
+
};
|
|
2283
|
+
imports.wbg.__wbg_set_layout_a9aebce493b15bfb = function(arg0, arg1) {
|
|
2284
|
+
getObject(arg0).layout = getObject(arg1);
|
|
2285
|
+
};
|
|
2286
|
+
imports.wbg.__wbg_set_mapped_at_creation_37dd8bbd1a910924 = function(arg0, arg1) {
|
|
2287
|
+
getObject(arg0).mappedAtCreation = arg1 !== 0;
|
|
2288
|
+
};
|
|
1802
2289
|
imports.wbg.__wbg_set_method_76c69e41b3570627 = function(arg0, arg1, arg2) {
|
|
1803
2290
|
getObject(arg0).method = getStringFromWasm0(arg1, arg2);
|
|
1804
2291
|
};
|
|
2292
|
+
imports.wbg.__wbg_set_min_binding_size_f7d3351b78c71fbc = function(arg0, arg1) {
|
|
2293
|
+
getObject(arg0).minBindingSize = arg1;
|
|
2294
|
+
};
|
|
2295
|
+
imports.wbg.__wbg_set_mip_level_4adfe9f0872d052d = function(arg0, arg1) {
|
|
2296
|
+
getObject(arg0).mipLevel = arg1 >>> 0;
|
|
2297
|
+
};
|
|
2298
|
+
imports.wbg.__wbg_set_mip_level_count_3368440f1c3c34b9 = function(arg0, arg1) {
|
|
2299
|
+
getObject(arg0).mipLevelCount = arg1 >>> 0;
|
|
2300
|
+
};
|
|
2301
|
+
imports.wbg.__wbg_set_mip_level_count_9de96fe0db85420d = function(arg0, arg1) {
|
|
2302
|
+
getObject(arg0).mipLevelCount = arg1 >>> 0;
|
|
2303
|
+
};
|
|
2304
|
+
imports.wbg.__wbg_set_module_0700e7e0b7b4f128 = function(arg0, arg1) {
|
|
2305
|
+
getObject(arg0).module = getObject(arg1);
|
|
2306
|
+
};
|
|
2307
|
+
imports.wbg.__wbg_set_multisampled_dc1cdd807d0170e1 = function(arg0, arg1) {
|
|
2308
|
+
getObject(arg0).multisampled = arg1 !== 0;
|
|
2309
|
+
};
|
|
2310
|
+
imports.wbg.__wbg_set_offset_49dfc93674b6347b = function(arg0, arg1) {
|
|
2311
|
+
getObject(arg0).offset = arg1;
|
|
2312
|
+
};
|
|
2313
|
+
imports.wbg.__wbg_set_offset_51eb43b37f1e9525 = function(arg0, arg1) {
|
|
2314
|
+
getObject(arg0).offset = arg1;
|
|
2315
|
+
};
|
|
2316
|
+
imports.wbg.__wbg_set_offset_a90a41961b1df9b4 = function(arg0, arg1) {
|
|
2317
|
+
getObject(arg0).offset = arg1;
|
|
2318
|
+
};
|
|
2319
|
+
imports.wbg.__wbg_set_origin_154a83d3703121d7 = function(arg0, arg1) {
|
|
2320
|
+
getObject(arg0).origin = getObject(arg1);
|
|
2321
|
+
};
|
|
2322
|
+
imports.wbg.__wbg_set_power_preference_229fffedb859fda8 = function(arg0, arg1) {
|
|
2323
|
+
getObject(arg0).powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
|
|
2324
|
+
};
|
|
2325
|
+
imports.wbg.__wbg_set_query_set_5d767886356c7b79 = function(arg0, arg1) {
|
|
2326
|
+
getObject(arg0).querySet = getObject(arg1);
|
|
2327
|
+
};
|
|
2328
|
+
imports.wbg.__wbg_set_required_features_8135f6ab89e06b58 = function(arg0, arg1) {
|
|
2329
|
+
getObject(arg0).requiredFeatures = getObject(arg1);
|
|
2330
|
+
};
|
|
2331
|
+
imports.wbg.__wbg_set_resource_97233a9ead07e4bc = function(arg0, arg1) {
|
|
2332
|
+
getObject(arg0).resource = getObject(arg1);
|
|
2333
|
+
};
|
|
1805
2334
|
imports.wbg.__wbg_set_responseType_df7a5fa93f0dd4be = function(arg0, arg1) {
|
|
1806
2335
|
getObject(arg0).responseType = __wbindgen_enum_XmlHttpRequestResponseType[arg1];
|
|
1807
2336
|
};
|
|
2337
|
+
imports.wbg.__wbg_set_rows_per_image_b2e56467282d270a = function(arg0, arg1) {
|
|
2338
|
+
getObject(arg0).rowsPerImage = arg1 >>> 0;
|
|
2339
|
+
};
|
|
2340
|
+
imports.wbg.__wbg_set_rows_per_image_ca194ae8c040a0d0 = function(arg0, arg1) {
|
|
2341
|
+
getObject(arg0).rowsPerImage = arg1 >>> 0;
|
|
2342
|
+
};
|
|
2343
|
+
imports.wbg.__wbg_set_sample_count_df26d31cf04a57d8 = function(arg0, arg1) {
|
|
2344
|
+
getObject(arg0).sampleCount = arg1 >>> 0;
|
|
2345
|
+
};
|
|
2346
|
+
imports.wbg.__wbg_set_sample_type_5671a405c6474494 = function(arg0, arg1) {
|
|
2347
|
+
getObject(arg0).sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
|
|
2348
|
+
};
|
|
2349
|
+
imports.wbg.__wbg_set_sampler_43a3dd77c3b0a5ba = function(arg0, arg1) {
|
|
2350
|
+
getObject(arg0).sampler = getObject(arg1);
|
|
2351
|
+
};
|
|
2352
|
+
imports.wbg.__wbg_set_size_1a3d1e3a2e547ec1 = function(arg0, arg1) {
|
|
2353
|
+
getObject(arg0).size = getObject(arg1);
|
|
2354
|
+
};
|
|
2355
|
+
imports.wbg.__wbg_set_size_a45dd219534f95ed = function(arg0, arg1) {
|
|
2356
|
+
getObject(arg0).size = arg1;
|
|
2357
|
+
};
|
|
2358
|
+
imports.wbg.__wbg_set_size_e0576eacd9f11fed = function(arg0, arg1) {
|
|
2359
|
+
getObject(arg0).size = arg1;
|
|
2360
|
+
};
|
|
2361
|
+
imports.wbg.__wbg_set_storage_texture_4853479f6eb61a57 = function(arg0, arg1) {
|
|
2362
|
+
getObject(arg0).storageTexture = getObject(arg1);
|
|
2363
|
+
};
|
|
2364
|
+
imports.wbg.__wbg_set_texture_5f219a723eb7db43 = function(arg0, arg1) {
|
|
2365
|
+
getObject(arg0).texture = getObject(arg1);
|
|
2366
|
+
};
|
|
2367
|
+
imports.wbg.__wbg_set_texture_84c4ac5434a9ddb5 = function(arg0, arg1) {
|
|
2368
|
+
getObject(arg0).texture = getObject(arg1);
|
|
2369
|
+
};
|
|
2370
|
+
imports.wbg.__wbg_set_timestamp_writes_db44391e390948e2 = function(arg0, arg1) {
|
|
2371
|
+
getObject(arg0).timestampWrites = getObject(arg1);
|
|
2372
|
+
};
|
|
2373
|
+
imports.wbg.__wbg_set_type_0a9fcee42b714ba8 = function(arg0, arg1) {
|
|
2374
|
+
getObject(arg0).type = __wbindgen_enum_GpuBufferBindingType[arg1];
|
|
2375
|
+
};
|
|
2376
|
+
imports.wbg.__wbg_set_type_ba111b7f1813a222 = function(arg0, arg1) {
|
|
2377
|
+
getObject(arg0).type = __wbindgen_enum_GpuSamplerBindingType[arg1];
|
|
2378
|
+
};
|
|
2379
|
+
imports.wbg.__wbg_set_usage_0f3970011718ab12 = function(arg0, arg1) {
|
|
2380
|
+
getObject(arg0).usage = arg1 >>> 0;
|
|
2381
|
+
};
|
|
2382
|
+
imports.wbg.__wbg_set_usage_49bed7c9b47e7849 = function(arg0, arg1) {
|
|
2383
|
+
getObject(arg0).usage = arg1 >>> 0;
|
|
2384
|
+
};
|
|
2385
|
+
imports.wbg.__wbg_set_usage_8a5ac4564d826d9d = function(arg0, arg1) {
|
|
2386
|
+
getObject(arg0).usage = arg1 >>> 0;
|
|
2387
|
+
};
|
|
2388
|
+
imports.wbg.__wbg_set_view_dimension_2e3a58d96671f97a = function(arg0, arg1) {
|
|
2389
|
+
getObject(arg0).viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
2390
|
+
};
|
|
2391
|
+
imports.wbg.__wbg_set_view_dimension_88c1a47ce71f7839 = function(arg0, arg1) {
|
|
2392
|
+
getObject(arg0).viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
2393
|
+
};
|
|
2394
|
+
imports.wbg.__wbg_set_view_formats_dbd4d0d50ed403ff = function(arg0, arg1) {
|
|
2395
|
+
getObject(arg0).viewFormats = getObject(arg1);
|
|
2396
|
+
};
|
|
2397
|
+
imports.wbg.__wbg_set_visibility_f4f66940005e5c39 = function(arg0, arg1) {
|
|
2398
|
+
getObject(arg0).visibility = arg1 >>> 0;
|
|
2399
|
+
};
|
|
2400
|
+
imports.wbg.__wbg_set_width_64c5783b064042bc = function(arg0, arg1) {
|
|
2401
|
+
getObject(arg0).width = arg1 >>> 0;
|
|
2402
|
+
};
|
|
2403
|
+
imports.wbg.__wbg_set_x_d5236bf9391eb053 = function(arg0, arg1) {
|
|
2404
|
+
getObject(arg0).x = arg1 >>> 0;
|
|
2405
|
+
};
|
|
2406
|
+
imports.wbg.__wbg_set_y_413262ade3cc0d56 = function(arg0, arg1) {
|
|
2407
|
+
getObject(arg0).y = arg1 >>> 0;
|
|
2408
|
+
};
|
|
2409
|
+
imports.wbg.__wbg_set_z_a136ba9bd16085f0 = function(arg0, arg1) {
|
|
2410
|
+
getObject(arg0).z = arg1 >>> 0;
|
|
2411
|
+
};
|
|
1808
2412
|
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
1809
2413
|
const ret = getObject(arg1).stack;
|
|
1810
2414
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -1836,6 +2440,17 @@ function __wbg_get_imports() {
|
|
|
1836
2440
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1837
2441
|
return addHeapObject(ret);
|
|
1838
2442
|
};
|
|
2443
|
+
imports.wbg.__wbg_submit_068b03683463d934 = function(arg0, arg1) {
|
|
2444
|
+
getObject(arg0).submit(getObject(arg1));
|
|
2445
|
+
};
|
|
2446
|
+
imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
2447
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
2448
|
+
return addHeapObject(ret);
|
|
2449
|
+
};
|
|
2450
|
+
imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
2451
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
2452
|
+
return addHeapObject(ret);
|
|
2453
|
+
};
|
|
1839
2454
|
imports.wbg.__wbg_toISOString_eca15cbe422eeea5 = function(arg0) {
|
|
1840
2455
|
const ret = getObject(arg0).toISOString();
|
|
1841
2456
|
return addHeapObject(ret);
|
|
@@ -1851,16 +2466,34 @@ function __wbg_get_imports() {
|
|
|
1851
2466
|
imports.wbg.__wbg_warn_6e567d0d926ff881 = function(arg0) {
|
|
1852
2467
|
console.warn(getObject(arg0));
|
|
1853
2468
|
};
|
|
2469
|
+
imports.wbg.__wbg_writeBuffer_b479dd5b90cd43eb = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2470
|
+
getObject(arg0).writeBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5);
|
|
2471
|
+
}, arguments) };
|
|
2472
|
+
imports.wbg.__wbg_writeTexture_c70826cc2ae8e127 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2473
|
+
getObject(arg0).writeTexture(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
|
|
2474
|
+
}, arguments) };
|
|
1854
2475
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1855
2476
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1856
2477
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1857
2478
|
return addHeapObject(ret);
|
|
1858
2479
|
};
|
|
2480
|
+
imports.wbg.__wbindgen_cast_3a49331188f32bb6 = function(arg0, arg1) {
|
|
2481
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 208, function: Function { arguments: [Externref], shim_idx: 209, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2482
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2509, __wasm_bindgen_func_elem_2525);
|
|
2483
|
+
return addHeapObject(ret);
|
|
2484
|
+
};
|
|
1859
2485
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
1860
2486
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1861
2487
|
const ret = BigInt.asUintN(64, arg0);
|
|
1862
2488
|
return addHeapObject(ret);
|
|
1863
2489
|
};
|
|
2490
|
+
imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
|
|
2491
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
2492
|
+
wasm.__wbindgen_export4(arg0, arg1 * 1, 1);
|
|
2493
|
+
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
2494
|
+
const ret = v0;
|
|
2495
|
+
return addHeapObject(ret);
|
|
2496
|
+
};
|
|
1864
2497
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
1865
2498
|
// Cast intrinsic for `I64 -> Externref`.
|
|
1866
2499
|
const ret = arg0;
|
|
@@ -1891,6 +2524,7 @@ function __wbg_finalize_init(instance, module) {
|
|
|
1891
2524
|
wasm = instance.exports;
|
|
1892
2525
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
1893
2526
|
cachedDataViewMemory0 = null;
|
|
2527
|
+
cachedUint32ArrayMemory0 = null;
|
|
1894
2528
|
cachedUint8ArrayMemory0 = null;
|
|
1895
2529
|
|
|
1896
2530
|
|