runmat 0.2.7 → 0.2.8
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/artifacts/stdlib.snapshot +0 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -4
- package/dist/index.js.map +1 -1
- package/dist/pkg/runmat_wasm.d.ts +52 -0
- package/dist/pkg/runmat_wasm.js +5 -0
- package/dist/pkg/runmat_wasm_bg.js +2109 -0
- package/dist/pkg/runmat_wasm_bg.wasm +0 -0
- package/dist/pkg/runmat_wasm_bg.wasm.d.ts +59 -0
- package/dist/pkg-web/runmat_wasm_web.d.ts +135 -0
- package/dist/pkg-web/runmat_wasm_web.js +1939 -0
- package/dist/pkg-web/runmat_wasm_web_bg.wasm +0 -0
- package/dist/pkg-web/runmat_wasm_web_bg.wasm.d.ts +59 -0
- package/package.json +15 -4
|
@@ -0,0 +1,1939 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
|
|
3
|
+
let WASM_VECTOR_LEN = 0;
|
|
4
|
+
|
|
5
|
+
let cachedUint8ArrayMemory0 = null;
|
|
6
|
+
|
|
7
|
+
function getUint8ArrayMemory0() {
|
|
8
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
9
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
10
|
+
}
|
|
11
|
+
return cachedUint8ArrayMemory0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
15
|
+
|
|
16
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
17
|
+
? function (arg, view) {
|
|
18
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
19
|
+
}
|
|
20
|
+
: function (arg, view) {
|
|
21
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
22
|
+
view.set(buf);
|
|
23
|
+
return {
|
|
24
|
+
read: arg.length,
|
|
25
|
+
written: buf.length
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
30
|
+
|
|
31
|
+
if (realloc === undefined) {
|
|
32
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
33
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
34
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
35
|
+
WASM_VECTOR_LEN = buf.length;
|
|
36
|
+
return ptr;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
let len = arg.length;
|
|
40
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
41
|
+
|
|
42
|
+
const mem = getUint8ArrayMemory0();
|
|
43
|
+
|
|
44
|
+
let offset = 0;
|
|
45
|
+
|
|
46
|
+
for (; offset < len; offset++) {
|
|
47
|
+
const code = arg.charCodeAt(offset);
|
|
48
|
+
if (code > 0x7F) break;
|
|
49
|
+
mem[ptr + offset] = code;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (offset !== len) {
|
|
53
|
+
if (offset !== 0) {
|
|
54
|
+
arg = arg.slice(offset);
|
|
55
|
+
}
|
|
56
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
57
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
58
|
+
const ret = encodeString(arg, view);
|
|
59
|
+
|
|
60
|
+
offset += ret.written;
|
|
61
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
WASM_VECTOR_LEN = offset;
|
|
65
|
+
return ptr;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
let cachedDataViewMemory0 = null;
|
|
69
|
+
|
|
70
|
+
function getDataViewMemory0() {
|
|
71
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
72
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
73
|
+
}
|
|
74
|
+
return cachedDataViewMemory0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function addToExternrefTable0(obj) {
|
|
78
|
+
const idx = wasm.__externref_table_alloc();
|
|
79
|
+
wasm.__wbindgen_export_4.set(idx, obj);
|
|
80
|
+
return idx;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function handleError(f, args) {
|
|
84
|
+
try {
|
|
85
|
+
return f.apply(this, args);
|
|
86
|
+
} catch (e) {
|
|
87
|
+
const idx = addToExternrefTable0(e);
|
|
88
|
+
wasm.__wbindgen_exn_store(idx);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function isLikeNone(x) {
|
|
93
|
+
return x === undefined || x === null;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
97
|
+
|
|
98
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
99
|
+
|
|
100
|
+
function getStringFromWasm0(ptr, len) {
|
|
101
|
+
ptr = ptr >>> 0;
|
|
102
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
106
|
+
ptr = ptr >>> 0;
|
|
107
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
let cachedUint32ArrayMemory0 = null;
|
|
111
|
+
|
|
112
|
+
function getUint32ArrayMemory0() {
|
|
113
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
114
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
115
|
+
}
|
|
116
|
+
return cachedUint32ArrayMemory0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
120
|
+
ptr = ptr >>> 0;
|
|
121
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
125
|
+
? { register: () => {}, unregister: () => {} }
|
|
126
|
+
: new FinalizationRegistry(state => {
|
|
127
|
+
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
131
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
132
|
+
const real = (...args) => {
|
|
133
|
+
// First up with a closure we increment the internal reference
|
|
134
|
+
// count. This ensures that the Rust closure environment won't
|
|
135
|
+
// be deallocated while we're invoking it.
|
|
136
|
+
state.cnt++;
|
|
137
|
+
const a = state.a;
|
|
138
|
+
state.a = 0;
|
|
139
|
+
try {
|
|
140
|
+
return f(a, state.b, ...args);
|
|
141
|
+
} finally {
|
|
142
|
+
if (--state.cnt === 0) {
|
|
143
|
+
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
144
|
+
CLOSURE_DTORS.unregister(state);
|
|
145
|
+
} else {
|
|
146
|
+
state.a = a;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
real.original = state;
|
|
151
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
152
|
+
return real;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
function debugString(val) {
|
|
156
|
+
// primitive types
|
|
157
|
+
const type = typeof val;
|
|
158
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
159
|
+
return `${val}`;
|
|
160
|
+
}
|
|
161
|
+
if (type == 'string') {
|
|
162
|
+
return `"${val}"`;
|
|
163
|
+
}
|
|
164
|
+
if (type == 'symbol') {
|
|
165
|
+
const description = val.description;
|
|
166
|
+
if (description == null) {
|
|
167
|
+
return 'Symbol';
|
|
168
|
+
} else {
|
|
169
|
+
return `Symbol(${description})`;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
if (type == 'function') {
|
|
173
|
+
const name = val.name;
|
|
174
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
175
|
+
return `Function(${name})`;
|
|
176
|
+
} else {
|
|
177
|
+
return 'Function';
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
// objects
|
|
181
|
+
if (Array.isArray(val)) {
|
|
182
|
+
const length = val.length;
|
|
183
|
+
let debug = '[';
|
|
184
|
+
if (length > 0) {
|
|
185
|
+
debug += debugString(val[0]);
|
|
186
|
+
}
|
|
187
|
+
for(let i = 1; i < length; i++) {
|
|
188
|
+
debug += ', ' + debugString(val[i]);
|
|
189
|
+
}
|
|
190
|
+
debug += ']';
|
|
191
|
+
return debug;
|
|
192
|
+
}
|
|
193
|
+
// Test for built-in
|
|
194
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
195
|
+
let className;
|
|
196
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
197
|
+
className = builtInMatches[1];
|
|
198
|
+
} else {
|
|
199
|
+
// Failed to match the standard '[object ClassName]'
|
|
200
|
+
return toString.call(val);
|
|
201
|
+
}
|
|
202
|
+
if (className == 'Object') {
|
|
203
|
+
// we're a user defined class or Object
|
|
204
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
205
|
+
// easier than looping through ownProperties of `val`.
|
|
206
|
+
try {
|
|
207
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
208
|
+
} catch (_) {
|
|
209
|
+
return 'Object';
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
// errors
|
|
213
|
+
if (val instanceof Error) {
|
|
214
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
215
|
+
}
|
|
216
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
217
|
+
return className;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
function takeFromExternrefTable0(idx) {
|
|
221
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
222
|
+
wasm.__externref_table_dealloc(idx);
|
|
223
|
+
return value;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* @param {any} bindings
|
|
227
|
+
*/
|
|
228
|
+
export function registerFsProvider(bindings) {
|
|
229
|
+
const ret = wasm.registerFsProvider(bindings);
|
|
230
|
+
if (ret[1]) {
|
|
231
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* @param {HTMLCanvasElement} canvas
|
|
237
|
+
* @returns {Promise<void>}
|
|
238
|
+
*/
|
|
239
|
+
export function registerPlotCanvas(canvas) {
|
|
240
|
+
const ret = wasm.registerPlotCanvas(canvas);
|
|
241
|
+
return ret;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* @param {number} handle
|
|
246
|
+
* @param {HTMLCanvasElement} canvas
|
|
247
|
+
* @returns {Promise<void>}
|
|
248
|
+
*/
|
|
249
|
+
export function registerFigureCanvas(handle, canvas) {
|
|
250
|
+
const ret = wasm.registerFigureCanvas(handle, canvas);
|
|
251
|
+
return ret;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export function deregisterPlotCanvas() {
|
|
255
|
+
wasm.deregisterPlotCanvas();
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @param {number} handle
|
|
260
|
+
*/
|
|
261
|
+
export function deregisterFigureCanvas(handle) {
|
|
262
|
+
wasm.deregisterFigureCanvas(handle);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @param {number} handle
|
|
267
|
+
* @param {number} width
|
|
268
|
+
* @param {number} height
|
|
269
|
+
*/
|
|
270
|
+
export function resizeFigureCanvas(handle, width, height) {
|
|
271
|
+
const ret = wasm.resizeFigureCanvas(handle, width, height);
|
|
272
|
+
if (ret[1]) {
|
|
273
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* @param {number} handle
|
|
279
|
+
*/
|
|
280
|
+
export function renderCurrentFigureScene(handle) {
|
|
281
|
+
const ret = wasm.renderCurrentFigureScene(handle);
|
|
282
|
+
if (ret[1]) {
|
|
283
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* @returns {number}
|
|
289
|
+
*/
|
|
290
|
+
export function newFigureHandle() {
|
|
291
|
+
const ret = wasm.newFigureHandle();
|
|
292
|
+
return ret >>> 0;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* @param {number} handle
|
|
297
|
+
*/
|
|
298
|
+
export function selectFigure(handle) {
|
|
299
|
+
wasm.selectFigure(handle);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* @returns {number}
|
|
304
|
+
*/
|
|
305
|
+
export function currentFigureHandle() {
|
|
306
|
+
const ret = wasm.currentFigureHandle();
|
|
307
|
+
return ret >>> 0;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @param {number} rows
|
|
312
|
+
* @param {number} cols
|
|
313
|
+
* @param {number} index
|
|
314
|
+
*/
|
|
315
|
+
export function configureSubplot(rows, cols, index) {
|
|
316
|
+
const ret = wasm.configureSubplot(rows, cols, index);
|
|
317
|
+
if (ret[1]) {
|
|
318
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* @param {any} mode
|
|
324
|
+
* @returns {boolean}
|
|
325
|
+
*/
|
|
326
|
+
export function setHoldMode(mode) {
|
|
327
|
+
const ret = wasm.setHoldMode(mode);
|
|
328
|
+
if (ret[2]) {
|
|
329
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
330
|
+
}
|
|
331
|
+
return ret[0] !== 0;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* @param {any} handle
|
|
336
|
+
* @returns {number}
|
|
337
|
+
*/
|
|
338
|
+
export function clearFigure(handle) {
|
|
339
|
+
const ret = wasm.clearFigure(handle);
|
|
340
|
+
if (ret[2]) {
|
|
341
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
342
|
+
}
|
|
343
|
+
return ret[0] >>> 0;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* @param {any} handle
|
|
348
|
+
* @returns {number}
|
|
349
|
+
*/
|
|
350
|
+
export function closeFigure(handle) {
|
|
351
|
+
const ret = wasm.closeFigure(handle);
|
|
352
|
+
if (ret[2]) {
|
|
353
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
354
|
+
}
|
|
355
|
+
return ret[0] >>> 0;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* @returns {any}
|
|
360
|
+
*/
|
|
361
|
+
export function currentAxesInfo() {
|
|
362
|
+
const ret = wasm.currentAxesInfo();
|
|
363
|
+
return ret;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* @param {any} handle
|
|
368
|
+
* @param {number | null} [width]
|
|
369
|
+
* @param {number | null} [height]
|
|
370
|
+
* @returns {Promise<Uint8Array>}
|
|
371
|
+
*/
|
|
372
|
+
export function renderFigureImage(handle, width, height) {
|
|
373
|
+
const ret = wasm.renderFigureImage(handle, isLikeNone(width) ? 0x100000001 : (width) >>> 0, isLikeNone(height) ? 0x100000001 : (height) >>> 0);
|
|
374
|
+
return ret;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* @returns {boolean}
|
|
379
|
+
*/
|
|
380
|
+
export function plotRendererReady() {
|
|
381
|
+
const ret = wasm.plotRendererReady();
|
|
382
|
+
return ret !== 0;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* @param {any} callback
|
|
387
|
+
*/
|
|
388
|
+
export function onFigureEvent(callback) {
|
|
389
|
+
const ret = wasm.onFigureEvent(callback);
|
|
390
|
+
if (ret[1]) {
|
|
391
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* @param {any} callback
|
|
397
|
+
* @returns {number}
|
|
398
|
+
*/
|
|
399
|
+
export function subscribeStdout(callback) {
|
|
400
|
+
const ret = wasm.subscribeStdout(callback);
|
|
401
|
+
if (ret[2]) {
|
|
402
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
403
|
+
}
|
|
404
|
+
return ret[0] >>> 0;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* @param {number} id
|
|
409
|
+
*/
|
|
410
|
+
export function unsubscribeStdout(id) {
|
|
411
|
+
wasm.unsubscribeStdout(id);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* @param {any} callback
|
|
416
|
+
* @returns {number}
|
|
417
|
+
*/
|
|
418
|
+
export function subscribeRuntimeLog(callback) {
|
|
419
|
+
const ret = wasm.subscribeRuntimeLog(callback);
|
|
420
|
+
if (ret[2]) {
|
|
421
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
422
|
+
}
|
|
423
|
+
return ret[0] >>> 0;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* @param {number} id
|
|
428
|
+
*/
|
|
429
|
+
export function unsubscribeRuntimeLog(id) {
|
|
430
|
+
wasm.unsubscribeRuntimeLog(id);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* @param {any} callback
|
|
435
|
+
* @returns {number}
|
|
436
|
+
*/
|
|
437
|
+
export function subscribeTraceEvents(callback) {
|
|
438
|
+
const ret = wasm.subscribeTraceEvents(callback);
|
|
439
|
+
if (ret[2]) {
|
|
440
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
441
|
+
}
|
|
442
|
+
return ret[0] >>> 0;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* @param {number} id
|
|
447
|
+
*/
|
|
448
|
+
export function unsubscribeTraceEvents(id) {
|
|
449
|
+
wasm.unsubscribeTraceEvents(id);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* @param {any} options
|
|
454
|
+
* @returns {Promise<RunMatWasm>}
|
|
455
|
+
*/
|
|
456
|
+
export function initRunMat(options) {
|
|
457
|
+
const ret = wasm.initRunMat(options);
|
|
458
|
+
return ret;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
function __wbg_adapter_54(arg0, arg1, arg2) {
|
|
462
|
+
wasm.closure4250_externref_shim(arg0, arg1, arg2);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
466
|
+
wasm.closure4257_externref_shim(arg0, arg1, arg2);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
function __wbg_adapter_547(arg0, arg1, arg2, arg3) {
|
|
470
|
+
wasm.closure4301_externref_shim(arg0, arg1, arg2, arg3);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
|
|
474
|
+
|
|
475
|
+
const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
|
|
476
|
+
|
|
477
|
+
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", "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"];
|
|
478
|
+
|
|
479
|
+
const __wbindgen_enum_XmlHttpRequestResponseType = ["", "arraybuffer", "blob", "document", "json", "text"];
|
|
480
|
+
|
|
481
|
+
const RunMatWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
482
|
+
? { register: () => {}, unregister: () => {} }
|
|
483
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_runmatwasm_free(ptr >>> 0, 1));
|
|
484
|
+
|
|
485
|
+
export class RunMatWasm {
|
|
486
|
+
|
|
487
|
+
static __wrap(ptr) {
|
|
488
|
+
ptr = ptr >>> 0;
|
|
489
|
+
const obj = Object.create(RunMatWasm.prototype);
|
|
490
|
+
obj.__wbg_ptr = ptr;
|
|
491
|
+
RunMatWasmFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
492
|
+
return obj;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
__destroy_into_raw() {
|
|
496
|
+
const ptr = this.__wbg_ptr;
|
|
497
|
+
this.__wbg_ptr = 0;
|
|
498
|
+
RunMatWasmFinalization.unregister(this);
|
|
499
|
+
return ptr;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
free() {
|
|
503
|
+
const ptr = this.__destroy_into_raw();
|
|
504
|
+
wasm.__wbg_runmatwasm_free(ptr, 0);
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* @param {string} source
|
|
508
|
+
* @returns {any}
|
|
509
|
+
*/
|
|
510
|
+
execute(source) {
|
|
511
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
512
|
+
const len0 = WASM_VECTOR_LEN;
|
|
513
|
+
const ret = wasm.runmatwasm_execute(this.__wbg_ptr, ptr0, len0);
|
|
514
|
+
if (ret[2]) {
|
|
515
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
516
|
+
}
|
|
517
|
+
return takeFromExternrefTable0(ret[0]);
|
|
518
|
+
}
|
|
519
|
+
resetSession() {
|
|
520
|
+
const ret = wasm.runmatwasm_resetSession(this.__wbg_ptr);
|
|
521
|
+
if (ret[1]) {
|
|
522
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
cancelExecution() {
|
|
526
|
+
wasm.runmatwasm_cancelExecution(this.__wbg_ptr);
|
|
527
|
+
}
|
|
528
|
+
cancelPendingRequests() {
|
|
529
|
+
wasm.runmatwasm_cancelPendingRequests(this.__wbg_ptr);
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* @param {string} mode
|
|
533
|
+
*/
|
|
534
|
+
setLanguageCompat(mode) {
|
|
535
|
+
const ptr0 = passStringToWasm0(mode, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
536
|
+
const len0 = WASM_VECTOR_LEN;
|
|
537
|
+
wasm.runmatwasm_setLanguageCompat(this.__wbg_ptr, ptr0, len0);
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* @param {any} handler
|
|
541
|
+
*/
|
|
542
|
+
setInputHandler(handler) {
|
|
543
|
+
const ret = wasm.runmatwasm_setInputHandler(this.__wbg_ptr, handler);
|
|
544
|
+
if (ret[1]) {
|
|
545
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* @param {string} request_id
|
|
550
|
+
* @param {any} value
|
|
551
|
+
* @returns {any}
|
|
552
|
+
*/
|
|
553
|
+
resumeInput(request_id, value) {
|
|
554
|
+
const ptr0 = passStringToWasm0(request_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
555
|
+
const len0 = WASM_VECTOR_LEN;
|
|
556
|
+
const ret = wasm.runmatwasm_resumeInput(this.__wbg_ptr, ptr0, len0, value);
|
|
557
|
+
if (ret[2]) {
|
|
558
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
559
|
+
}
|
|
560
|
+
return takeFromExternrefTable0(ret[0]);
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* @returns {any}
|
|
564
|
+
*/
|
|
565
|
+
pendingStdinRequests() {
|
|
566
|
+
const ret = wasm.runmatwasm_pendingStdinRequests(this.__wbg_ptr);
|
|
567
|
+
if (ret[2]) {
|
|
568
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
569
|
+
}
|
|
570
|
+
return takeFromExternrefTable0(ret[0]);
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* @param {boolean} enabled
|
|
574
|
+
*/
|
|
575
|
+
setFusionPlanEnabled(enabled) {
|
|
576
|
+
wasm.runmatwasm_setFusionPlanEnabled(this.__wbg_ptr, enabled);
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* Compile-only fusion plan snapshot (no execution).
|
|
580
|
+
* @param {string} source
|
|
581
|
+
* @returns {any}
|
|
582
|
+
*/
|
|
583
|
+
fusionPlanForSource(source) {
|
|
584
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
585
|
+
const len0 = WASM_VECTOR_LEN;
|
|
586
|
+
const ret = wasm.runmatwasm_fusionPlanForSource(this.__wbg_ptr, ptr0, len0);
|
|
587
|
+
if (ret[2]) {
|
|
588
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
589
|
+
}
|
|
590
|
+
return takeFromExternrefTable0(ret[0]);
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* @param {any} selector
|
|
594
|
+
* @param {any} options
|
|
595
|
+
* @returns {any}
|
|
596
|
+
*/
|
|
597
|
+
materializeVariable(selector, options) {
|
|
598
|
+
const ret = wasm.runmatwasm_materializeVariable(this.__wbg_ptr, selector, options);
|
|
599
|
+
if (ret[2]) {
|
|
600
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
601
|
+
}
|
|
602
|
+
return takeFromExternrefTable0(ret[0]);
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* @returns {any}
|
|
606
|
+
*/
|
|
607
|
+
stats() {
|
|
608
|
+
const ret = wasm.runmatwasm_stats(this.__wbg_ptr);
|
|
609
|
+
if (ret[2]) {
|
|
610
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
611
|
+
}
|
|
612
|
+
return takeFromExternrefTable0(ret[0]);
|
|
613
|
+
}
|
|
614
|
+
clearWorkspace() {
|
|
615
|
+
wasm.runmatwasm_clearWorkspace(this.__wbg_ptr);
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* @returns {boolean}
|
|
619
|
+
*/
|
|
620
|
+
telemetryConsent() {
|
|
621
|
+
const ret = wasm.runmatwasm_telemetryConsent(this.__wbg_ptr);
|
|
622
|
+
return ret !== 0;
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* @returns {any}
|
|
626
|
+
*/
|
|
627
|
+
gpuStatus() {
|
|
628
|
+
const ret = wasm.runmatwasm_gpuStatus(this.__wbg_ptr);
|
|
629
|
+
if (ret[2]) {
|
|
630
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
631
|
+
}
|
|
632
|
+
return takeFromExternrefTable0(ret[0]);
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* @returns {string | undefined}
|
|
636
|
+
*/
|
|
637
|
+
telemetryClientId() {
|
|
638
|
+
const ret = wasm.runmatwasm_telemetryClientId(this.__wbg_ptr);
|
|
639
|
+
let v1;
|
|
640
|
+
if (ret[0] !== 0) {
|
|
641
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
642
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
643
|
+
}
|
|
644
|
+
return v1;
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* @returns {any}
|
|
648
|
+
*/
|
|
649
|
+
memoryUsage() {
|
|
650
|
+
const ret = wasm.runmatwasm_memoryUsage(this.__wbg_ptr);
|
|
651
|
+
if (ret[2]) {
|
|
652
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
653
|
+
}
|
|
654
|
+
return takeFromExternrefTable0(ret[0]);
|
|
655
|
+
}
|
|
656
|
+
dispose() {
|
|
657
|
+
wasm.runmatwasm_dispose(this.__wbg_ptr);
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
async function __wbg_load(module, imports) {
|
|
662
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
663
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
664
|
+
try {
|
|
665
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
666
|
+
|
|
667
|
+
} catch (e) {
|
|
668
|
+
if (module.headers.get('Content-Type') != 'application/wasm') {
|
|
669
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
670
|
+
|
|
671
|
+
} else {
|
|
672
|
+
throw e;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
const bytes = await module.arrayBuffer();
|
|
678
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
679
|
+
|
|
680
|
+
} else {
|
|
681
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
682
|
+
|
|
683
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
684
|
+
return { instance, module };
|
|
685
|
+
|
|
686
|
+
} else {
|
|
687
|
+
return instance;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
function __wbg_get_imports() {
|
|
693
|
+
const imports = {};
|
|
694
|
+
imports.wbg = {};
|
|
695
|
+
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
696
|
+
const ret = String(arg1);
|
|
697
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
698
|
+
const len1 = WASM_VECTOR_LEN;
|
|
699
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
700
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
701
|
+
};
|
|
702
|
+
imports.wbg.__wbg_Window_09685c5b35e4318e = function(arg0) {
|
|
703
|
+
const ret = arg0.Window;
|
|
704
|
+
return ret;
|
|
705
|
+
};
|
|
706
|
+
imports.wbg.__wbg_WorkerGlobalScope_86dadc234326361b = function(arg0) {
|
|
707
|
+
const ret = arg0.WorkerGlobalScope;
|
|
708
|
+
return ret;
|
|
709
|
+
};
|
|
710
|
+
imports.wbg.__wbg_arrayBuffer_d1b44c4390db422f = function() { return handleError(function (arg0) {
|
|
711
|
+
const ret = arg0.arrayBuffer();
|
|
712
|
+
return ret;
|
|
713
|
+
}, arguments) };
|
|
714
|
+
imports.wbg.__wbg_beginComputePass_1887a662b16709f1 = function(arg0, arg1) {
|
|
715
|
+
const ret = arg0.beginComputePass(arg1);
|
|
716
|
+
return ret;
|
|
717
|
+
};
|
|
718
|
+
imports.wbg.__wbg_beginRenderPass_9179e8717d25fdb0 = function(arg0, arg1) {
|
|
719
|
+
const ret = arg0.beginRenderPass(arg1);
|
|
720
|
+
return ret;
|
|
721
|
+
};
|
|
722
|
+
imports.wbg.__wbg_body_0b8fd1fe671660df = function(arg0) {
|
|
723
|
+
const ret = arg0.body;
|
|
724
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
725
|
+
};
|
|
726
|
+
imports.wbg.__wbg_buffer_09165b52af8c5237 = function(arg0) {
|
|
727
|
+
const ret = arg0.buffer;
|
|
728
|
+
return ret;
|
|
729
|
+
};
|
|
730
|
+
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
731
|
+
const ret = arg0.buffer;
|
|
732
|
+
return ret;
|
|
733
|
+
};
|
|
734
|
+
imports.wbg.__wbg_byteLength_ea52ac3de882b483 = function(arg0) {
|
|
735
|
+
const ret = arg0.byteLength;
|
|
736
|
+
return ret;
|
|
737
|
+
};
|
|
738
|
+
imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
|
|
739
|
+
const ret = arg0.call(arg1);
|
|
740
|
+
return ret;
|
|
741
|
+
}, arguments) };
|
|
742
|
+
imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
743
|
+
const ret = arg0.call(arg1, arg2);
|
|
744
|
+
return ret;
|
|
745
|
+
}, arguments) };
|
|
746
|
+
imports.wbg.__wbg_call_833bed5770ea2041 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
747
|
+
const ret = arg0.call(arg1, arg2, arg3);
|
|
748
|
+
return ret;
|
|
749
|
+
}, arguments) };
|
|
750
|
+
imports.wbg.__wbg_clearBuffer_3cb299d33f9c17aa = function(arg0, arg1, arg2, arg3) {
|
|
751
|
+
arg0.clearBuffer(arg1, arg2, arg3);
|
|
752
|
+
};
|
|
753
|
+
imports.wbg.__wbg_clearBuffer_d1bbfb575de500c2 = function(arg0, arg1, arg2) {
|
|
754
|
+
arg0.clearBuffer(arg1, arg2);
|
|
755
|
+
};
|
|
756
|
+
imports.wbg.__wbg_configure_3545afac230e1d5e = function(arg0, arg1) {
|
|
757
|
+
arg0.configure(arg1);
|
|
758
|
+
};
|
|
759
|
+
imports.wbg.__wbg_copyBufferToBuffer_1339da3175db86a8 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
760
|
+
arg0.copyBufferToBuffer(arg1, arg2, arg3, arg4, arg5);
|
|
761
|
+
};
|
|
762
|
+
imports.wbg.__wbg_copyBufferToTexture_7fa23729d3a09bc4 = function(arg0, arg1, arg2, arg3) {
|
|
763
|
+
arg0.copyBufferToTexture(arg1, arg2, arg3);
|
|
764
|
+
};
|
|
765
|
+
imports.wbg.__wbg_copyExternalImageToTexture_a7d15aeaa14817c3 = function(arg0, arg1, arg2, arg3) {
|
|
766
|
+
arg0.copyExternalImageToTexture(arg1, arg2, arg3);
|
|
767
|
+
};
|
|
768
|
+
imports.wbg.__wbg_copyTextureToBuffer_10eda2ea3e01a012 = function(arg0, arg1, arg2, arg3) {
|
|
769
|
+
arg0.copyTextureToBuffer(arg1, arg2, arg3);
|
|
770
|
+
};
|
|
771
|
+
imports.wbg.__wbg_copyTextureToTexture_0f32dca08a58f47f = function(arg0, arg1, arg2, arg3) {
|
|
772
|
+
arg0.copyTextureToTexture(arg1, arg2, arg3);
|
|
773
|
+
};
|
|
774
|
+
imports.wbg.__wbg_createBindGroupLayout_274e16d30c603078 = function(arg0, arg1) {
|
|
775
|
+
const ret = arg0.createBindGroupLayout(arg1);
|
|
776
|
+
return ret;
|
|
777
|
+
};
|
|
778
|
+
imports.wbg.__wbg_createBindGroup_a36c90bdc3f5eb88 = function(arg0, arg1) {
|
|
779
|
+
const ret = arg0.createBindGroup(arg1);
|
|
780
|
+
return ret;
|
|
781
|
+
};
|
|
782
|
+
imports.wbg.__wbg_createBuffer_d1ac34725e5cf041 = function(arg0, arg1) {
|
|
783
|
+
const ret = arg0.createBuffer(arg1);
|
|
784
|
+
return ret;
|
|
785
|
+
};
|
|
786
|
+
imports.wbg.__wbg_createCommandEncoder_513a786f096a5637 = function(arg0, arg1) {
|
|
787
|
+
const ret = arg0.createCommandEncoder(arg1);
|
|
788
|
+
return ret;
|
|
789
|
+
};
|
|
790
|
+
imports.wbg.__wbg_createComputePipeline_4bf93ff2c10c2333 = function(arg0, arg1) {
|
|
791
|
+
const ret = arg0.createComputePipeline(arg1);
|
|
792
|
+
return ret;
|
|
793
|
+
};
|
|
794
|
+
imports.wbg.__wbg_createPipelineLayout_669f14789cde7273 = function(arg0, arg1) {
|
|
795
|
+
const ret = arg0.createPipelineLayout(arg1);
|
|
796
|
+
return ret;
|
|
797
|
+
};
|
|
798
|
+
imports.wbg.__wbg_createQuerySet_7a0251b6c175935a = function(arg0, arg1) {
|
|
799
|
+
const ret = arg0.createQuerySet(arg1);
|
|
800
|
+
return ret;
|
|
801
|
+
};
|
|
802
|
+
imports.wbg.__wbg_createRenderBundleEncoder_2e2d7a61c14a077b = function(arg0, arg1) {
|
|
803
|
+
const ret = arg0.createRenderBundleEncoder(arg1);
|
|
804
|
+
return ret;
|
|
805
|
+
};
|
|
806
|
+
imports.wbg.__wbg_createRenderPipeline_d206a6a989f60069 = function(arg0, arg1) {
|
|
807
|
+
const ret = arg0.createRenderPipeline(arg1);
|
|
808
|
+
return ret;
|
|
809
|
+
};
|
|
810
|
+
imports.wbg.__wbg_createSampler_21641deec0b72234 = function(arg0, arg1) {
|
|
811
|
+
const ret = arg0.createSampler(arg1);
|
|
812
|
+
return ret;
|
|
813
|
+
};
|
|
814
|
+
imports.wbg.__wbg_createShaderModule_6a4726ff8937a4fc = function(arg0, arg1) {
|
|
815
|
+
const ret = arg0.createShaderModule(arg1);
|
|
816
|
+
return ret;
|
|
817
|
+
};
|
|
818
|
+
imports.wbg.__wbg_createTexture_b4736ca67c208a7d = function(arg0, arg1) {
|
|
819
|
+
const ret = arg0.createTexture(arg1);
|
|
820
|
+
return ret;
|
|
821
|
+
};
|
|
822
|
+
imports.wbg.__wbg_createView_28f72f1fbf41c53a = function(arg0, arg1) {
|
|
823
|
+
const ret = arg0.createView(arg1);
|
|
824
|
+
return ret;
|
|
825
|
+
};
|
|
826
|
+
imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
827
|
+
const ret = arg0.crypto;
|
|
828
|
+
return ret;
|
|
829
|
+
};
|
|
830
|
+
imports.wbg.__wbg_destroy_24dc0325ca73bcdd = function(arg0) {
|
|
831
|
+
arg0.destroy();
|
|
832
|
+
};
|
|
833
|
+
imports.wbg.__wbg_destroy_35ef3fac72adebbd = function(arg0) {
|
|
834
|
+
arg0.destroy();
|
|
835
|
+
};
|
|
836
|
+
imports.wbg.__wbg_destroy_6ca164ec39708c30 = function(arg0) {
|
|
837
|
+
arg0.destroy();
|
|
838
|
+
};
|
|
839
|
+
imports.wbg.__wbg_dispatchWorkgroupsIndirect_5b70aa0ec2dd76d4 = function(arg0, arg1, arg2) {
|
|
840
|
+
arg0.dispatchWorkgroupsIndirect(arg1, arg2);
|
|
841
|
+
};
|
|
842
|
+
imports.wbg.__wbg_dispatchWorkgroups_eec2b1c97a77f008 = function(arg0, arg1, arg2, arg3) {
|
|
843
|
+
arg0.dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
|
|
844
|
+
};
|
|
845
|
+
imports.wbg.__wbg_document_d249400bd7bd996d = function(arg0) {
|
|
846
|
+
const ret = arg0.document;
|
|
847
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
848
|
+
};
|
|
849
|
+
imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
|
|
850
|
+
const ret = arg0.done;
|
|
851
|
+
return ret;
|
|
852
|
+
};
|
|
853
|
+
imports.wbg.__wbg_drawIndexedIndirect_7195bed12006fc7e = function(arg0, arg1, arg2) {
|
|
854
|
+
arg0.drawIndexedIndirect(arg1, arg2);
|
|
855
|
+
};
|
|
856
|
+
imports.wbg.__wbg_drawIndexedIndirect_cb0d6da766bd5105 = function(arg0, arg1, arg2) {
|
|
857
|
+
arg0.drawIndexedIndirect(arg1, arg2);
|
|
858
|
+
};
|
|
859
|
+
imports.wbg.__wbg_drawIndexed_6d903b1382862f81 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
860
|
+
arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
|
|
861
|
+
};
|
|
862
|
+
imports.wbg.__wbg_drawIndexed_c122c36f03fe07a5 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
863
|
+
arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
|
|
864
|
+
};
|
|
865
|
+
imports.wbg.__wbg_drawIndirect_9aab8bee6f6f1c22 = function(arg0, arg1, arg2) {
|
|
866
|
+
arg0.drawIndirect(arg1, arg2);
|
|
867
|
+
};
|
|
868
|
+
imports.wbg.__wbg_drawIndirect_d531975704a856b7 = function(arg0, arg1, arg2) {
|
|
869
|
+
arg0.drawIndirect(arg1, arg2);
|
|
870
|
+
};
|
|
871
|
+
imports.wbg.__wbg_draw_19d537d9832d985d = function(arg0, arg1, arg2, arg3, arg4) {
|
|
872
|
+
arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
873
|
+
};
|
|
874
|
+
imports.wbg.__wbg_draw_5beb2c11da5429ce = function(arg0, arg1, arg2, arg3, arg4) {
|
|
875
|
+
arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
876
|
+
};
|
|
877
|
+
imports.wbg.__wbg_end_2dc6d7fdcbfc2a0c = function(arg0) {
|
|
878
|
+
arg0.end();
|
|
879
|
+
};
|
|
880
|
+
imports.wbg.__wbg_end_9cc33f189e27f3fd = function(arg0) {
|
|
881
|
+
arg0.end();
|
|
882
|
+
};
|
|
883
|
+
imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
|
|
884
|
+
const ret = Object.entries(arg0);
|
|
885
|
+
return ret;
|
|
886
|
+
};
|
|
887
|
+
imports.wbg.__wbg_error_15b28e2be7953dc9 = function(arg0) {
|
|
888
|
+
const ret = arg0.error;
|
|
889
|
+
return ret;
|
|
890
|
+
};
|
|
891
|
+
imports.wbg.__wbg_error_524f506f44df1645 = function(arg0) {
|
|
892
|
+
console.error(arg0);
|
|
893
|
+
};
|
|
894
|
+
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
895
|
+
let deferred0_0;
|
|
896
|
+
let deferred0_1;
|
|
897
|
+
try {
|
|
898
|
+
deferred0_0 = arg0;
|
|
899
|
+
deferred0_1 = arg1;
|
|
900
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
901
|
+
} finally {
|
|
902
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
903
|
+
}
|
|
904
|
+
};
|
|
905
|
+
imports.wbg.__wbg_executeBundles_db3c31afbf86979f = function(arg0, arg1) {
|
|
906
|
+
arg0.executeBundles(arg1);
|
|
907
|
+
};
|
|
908
|
+
imports.wbg.__wbg_features_89059e3112366930 = function(arg0) {
|
|
909
|
+
const ret = arg0.features;
|
|
910
|
+
return ret;
|
|
911
|
+
};
|
|
912
|
+
imports.wbg.__wbg_features_e8442c6e37f8191e = function(arg0) {
|
|
913
|
+
const ret = arg0.features;
|
|
914
|
+
return ret;
|
|
915
|
+
};
|
|
916
|
+
imports.wbg.__wbg_fetch_1b7e793ab8320753 = function(arg0, arg1, arg2) {
|
|
917
|
+
const ret = arg0.fetch(getStringFromWasm0(arg1, arg2));
|
|
918
|
+
return ret;
|
|
919
|
+
};
|
|
920
|
+
imports.wbg.__wbg_finish_53e6ed746110a5e5 = function(arg0) {
|
|
921
|
+
const ret = arg0.finish();
|
|
922
|
+
return ret;
|
|
923
|
+
};
|
|
924
|
+
imports.wbg.__wbg_finish_566e5beaeaeefc34 = function(arg0, arg1) {
|
|
925
|
+
const ret = arg0.finish(arg1);
|
|
926
|
+
return ret;
|
|
927
|
+
};
|
|
928
|
+
imports.wbg.__wbg_finish_a9c9f3133e6e4514 = function(arg0, arg1) {
|
|
929
|
+
const ret = arg0.finish(arg1);
|
|
930
|
+
return ret;
|
|
931
|
+
};
|
|
932
|
+
imports.wbg.__wbg_finish_e2465079e2b30a5a = function(arg0) {
|
|
933
|
+
const ret = arg0.finish();
|
|
934
|
+
return ret;
|
|
935
|
+
};
|
|
936
|
+
imports.wbg.__wbg_from_2a5d3e218e67aa85 = function(arg0) {
|
|
937
|
+
const ret = Array.from(arg0);
|
|
938
|
+
return ret;
|
|
939
|
+
};
|
|
940
|
+
imports.wbg.__wbg_getAllResponseHeaders_83159b168d73a355 = function() { return handleError(function (arg0, arg1) {
|
|
941
|
+
const ret = arg1.getAllResponseHeaders();
|
|
942
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
943
|
+
const len1 = WASM_VECTOR_LEN;
|
|
944
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
945
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
946
|
+
}, arguments) };
|
|
947
|
+
imports.wbg.__wbg_getBindGroupLayout_06526a0d3d5b4c6a = function(arg0, arg1) {
|
|
948
|
+
const ret = arg0.getBindGroupLayout(arg1 >>> 0);
|
|
949
|
+
return ret;
|
|
950
|
+
};
|
|
951
|
+
imports.wbg.__wbg_getBindGroupLayout_0f99651172cbcabf = function(arg0, arg1) {
|
|
952
|
+
const ret = arg0.getBindGroupLayout(arg1 >>> 0);
|
|
953
|
+
return ret;
|
|
954
|
+
};
|
|
955
|
+
imports.wbg.__wbg_getBoundingClientRect_9073b0ff7574d76b = function(arg0) {
|
|
956
|
+
const ret = arg0.getBoundingClientRect();
|
|
957
|
+
return ret;
|
|
958
|
+
};
|
|
959
|
+
imports.wbg.__wbg_getContext_e9cf379449413580 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
960
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
961
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
962
|
+
}, arguments) };
|
|
963
|
+
imports.wbg.__wbg_getContext_f65a0debd1e8f8e8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
964
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
965
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
966
|
+
}, arguments) };
|
|
967
|
+
imports.wbg.__wbg_getCurrentTexture_f578d59f0860dcc9 = function(arg0) {
|
|
968
|
+
const ret = arg0.getCurrentTexture();
|
|
969
|
+
return ret;
|
|
970
|
+
};
|
|
971
|
+
imports.wbg.__wbg_getMappedRange_1a67a729fca25c5c = function(arg0, arg1, arg2) {
|
|
972
|
+
const ret = arg0.getMappedRange(arg1, arg2);
|
|
973
|
+
return ret;
|
|
974
|
+
};
|
|
975
|
+
imports.wbg.__wbg_getPreferredCanvasFormat_b4306c1470f3a2be = function(arg0) {
|
|
976
|
+
const ret = arg0.getPreferredCanvasFormat();
|
|
977
|
+
return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 95) - 1;
|
|
978
|
+
};
|
|
979
|
+
imports.wbg.__wbg_getRandomValues_38097e921c2494c3 = function() { return handleError(function (arg0, arg1) {
|
|
980
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
981
|
+
}, arguments) };
|
|
982
|
+
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
983
|
+
arg0.getRandomValues(arg1);
|
|
984
|
+
}, arguments) };
|
|
985
|
+
imports.wbg.__wbg_getReader_be0d36e5873a525b = function(arg0) {
|
|
986
|
+
const ret = arg0.getReader();
|
|
987
|
+
return ret;
|
|
988
|
+
};
|
|
989
|
+
imports.wbg.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) {
|
|
990
|
+
const ret = arg0.getTimezoneOffset();
|
|
991
|
+
return ret;
|
|
992
|
+
};
|
|
993
|
+
imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
|
|
994
|
+
const ret = Reflect.get(arg0, arg1);
|
|
995
|
+
return ret;
|
|
996
|
+
}, arguments) };
|
|
997
|
+
imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
998
|
+
const ret = arg0[arg1 >>> 0];
|
|
999
|
+
return ret;
|
|
1000
|
+
};
|
|
1001
|
+
imports.wbg.__wbg_get_e27dfaeb6f46bd45 = function(arg0, arg1) {
|
|
1002
|
+
const ret = arg0[arg1 >>> 0];
|
|
1003
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1004
|
+
};
|
|
1005
|
+
imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
|
1006
|
+
const ret = arg0[arg1];
|
|
1007
|
+
return ret;
|
|
1008
|
+
};
|
|
1009
|
+
imports.wbg.__wbg_gpu_cd94e3ed1a24e829 = function(arg0) {
|
|
1010
|
+
const ret = arg0.gpu;
|
|
1011
|
+
return ret;
|
|
1012
|
+
};
|
|
1013
|
+
imports.wbg.__wbg_has_8d7562409899ab08 = function(arg0, arg1, arg2) {
|
|
1014
|
+
const ret = arg0.has(getStringFromWasm0(arg1, arg2));
|
|
1015
|
+
return ret;
|
|
1016
|
+
};
|
|
1017
|
+
imports.wbg.__wbg_height_592a89ec0fb63726 = function(arg0) {
|
|
1018
|
+
const ret = arg0.height;
|
|
1019
|
+
return ret;
|
|
1020
|
+
};
|
|
1021
|
+
imports.wbg.__wbg_height_838cee19ba8597db = function(arg0) {
|
|
1022
|
+
const ret = arg0.height;
|
|
1023
|
+
return ret;
|
|
1024
|
+
};
|
|
1025
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
|
|
1026
|
+
let result;
|
|
1027
|
+
try {
|
|
1028
|
+
result = arg0 instanceof ArrayBuffer;
|
|
1029
|
+
} catch (_) {
|
|
1030
|
+
result = false;
|
|
1031
|
+
}
|
|
1032
|
+
const ret = result;
|
|
1033
|
+
return ret;
|
|
1034
|
+
};
|
|
1035
|
+
imports.wbg.__wbg_instanceof_DomException_ed1ccb7aaf39034c = function(arg0) {
|
|
1036
|
+
let result;
|
|
1037
|
+
try {
|
|
1038
|
+
result = arg0 instanceof DOMException;
|
|
1039
|
+
} catch (_) {
|
|
1040
|
+
result = false;
|
|
1041
|
+
}
|
|
1042
|
+
const ret = result;
|
|
1043
|
+
return ret;
|
|
1044
|
+
};
|
|
1045
|
+
imports.wbg.__wbg_instanceof_GpuAdapter_812393144f747a28 = function(arg0) {
|
|
1046
|
+
let result;
|
|
1047
|
+
try {
|
|
1048
|
+
result = arg0 instanceof GPUAdapter;
|
|
1049
|
+
} catch (_) {
|
|
1050
|
+
result = false;
|
|
1051
|
+
}
|
|
1052
|
+
const ret = result;
|
|
1053
|
+
return ret;
|
|
1054
|
+
};
|
|
1055
|
+
imports.wbg.__wbg_instanceof_GpuCanvasContext_7d8c2aee896960ef = function(arg0) {
|
|
1056
|
+
let result;
|
|
1057
|
+
try {
|
|
1058
|
+
result = arg0 instanceof GPUCanvasContext;
|
|
1059
|
+
} catch (_) {
|
|
1060
|
+
result = false;
|
|
1061
|
+
}
|
|
1062
|
+
const ret = result;
|
|
1063
|
+
return ret;
|
|
1064
|
+
};
|
|
1065
|
+
imports.wbg.__wbg_instanceof_GpuOutOfMemoryError_5661073b28c982a3 = function(arg0) {
|
|
1066
|
+
let result;
|
|
1067
|
+
try {
|
|
1068
|
+
result = arg0 instanceof GPUOutOfMemoryError;
|
|
1069
|
+
} catch (_) {
|
|
1070
|
+
result = false;
|
|
1071
|
+
}
|
|
1072
|
+
const ret = result;
|
|
1073
|
+
return ret;
|
|
1074
|
+
};
|
|
1075
|
+
imports.wbg.__wbg_instanceof_GpuValidationError_b2b2abc70da536b4 = function(arg0) {
|
|
1076
|
+
let result;
|
|
1077
|
+
try {
|
|
1078
|
+
result = arg0 instanceof GPUValidationError;
|
|
1079
|
+
} catch (_) {
|
|
1080
|
+
result = false;
|
|
1081
|
+
}
|
|
1082
|
+
const ret = result;
|
|
1083
|
+
return ret;
|
|
1084
|
+
};
|
|
1085
|
+
imports.wbg.__wbg_instanceof_Map_f3469ce2244d2430 = function(arg0) {
|
|
1086
|
+
let result;
|
|
1087
|
+
try {
|
|
1088
|
+
result = arg0 instanceof Map;
|
|
1089
|
+
} catch (_) {
|
|
1090
|
+
result = false;
|
|
1091
|
+
}
|
|
1092
|
+
const ret = result;
|
|
1093
|
+
return ret;
|
|
1094
|
+
};
|
|
1095
|
+
imports.wbg.__wbg_instanceof_Memory_111add5588accff2 = function(arg0) {
|
|
1096
|
+
let result;
|
|
1097
|
+
try {
|
|
1098
|
+
result = arg0 instanceof WebAssembly.Memory;
|
|
1099
|
+
} catch (_) {
|
|
1100
|
+
result = false;
|
|
1101
|
+
}
|
|
1102
|
+
const ret = result;
|
|
1103
|
+
return ret;
|
|
1104
|
+
};
|
|
1105
|
+
imports.wbg.__wbg_instanceof_Object_7f2dcef8f78644a4 = function(arg0) {
|
|
1106
|
+
let result;
|
|
1107
|
+
try {
|
|
1108
|
+
result = arg0 instanceof Object;
|
|
1109
|
+
} catch (_) {
|
|
1110
|
+
result = false;
|
|
1111
|
+
}
|
|
1112
|
+
const ret = result;
|
|
1113
|
+
return ret;
|
|
1114
|
+
};
|
|
1115
|
+
imports.wbg.__wbg_instanceof_Promise_935168b8f4b49db3 = function(arg0) {
|
|
1116
|
+
let result;
|
|
1117
|
+
try {
|
|
1118
|
+
result = arg0 instanceof Promise;
|
|
1119
|
+
} catch (_) {
|
|
1120
|
+
result = false;
|
|
1121
|
+
}
|
|
1122
|
+
const ret = result;
|
|
1123
|
+
return ret;
|
|
1124
|
+
};
|
|
1125
|
+
imports.wbg.__wbg_instanceof_ReadableStreamDefaultReader_056dcea99b3557aa = function(arg0) {
|
|
1126
|
+
let result;
|
|
1127
|
+
try {
|
|
1128
|
+
result = arg0 instanceof ReadableStreamDefaultReader;
|
|
1129
|
+
} catch (_) {
|
|
1130
|
+
result = false;
|
|
1131
|
+
}
|
|
1132
|
+
const ret = result;
|
|
1133
|
+
return ret;
|
|
1134
|
+
};
|
|
1135
|
+
imports.wbg.__wbg_instanceof_ReadableStream_87eac785b90f3611 = function(arg0) {
|
|
1136
|
+
let result;
|
|
1137
|
+
try {
|
|
1138
|
+
result = arg0 instanceof ReadableStream;
|
|
1139
|
+
} catch (_) {
|
|
1140
|
+
result = false;
|
|
1141
|
+
}
|
|
1142
|
+
const ret = result;
|
|
1143
|
+
return ret;
|
|
1144
|
+
};
|
|
1145
|
+
imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
|
|
1146
|
+
let result;
|
|
1147
|
+
try {
|
|
1148
|
+
result = arg0 instanceof Response;
|
|
1149
|
+
} catch (_) {
|
|
1150
|
+
result = false;
|
|
1151
|
+
}
|
|
1152
|
+
const ret = result;
|
|
1153
|
+
return ret;
|
|
1154
|
+
};
|
|
1155
|
+
imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
|
|
1156
|
+
let result;
|
|
1157
|
+
try {
|
|
1158
|
+
result = arg0 instanceof Uint8Array;
|
|
1159
|
+
} catch (_) {
|
|
1160
|
+
result = false;
|
|
1161
|
+
}
|
|
1162
|
+
const ret = result;
|
|
1163
|
+
return ret;
|
|
1164
|
+
};
|
|
1165
|
+
imports.wbg.__wbg_instanceof_Window_def73ea0955fc569 = function(arg0) {
|
|
1166
|
+
let result;
|
|
1167
|
+
try {
|
|
1168
|
+
result = arg0 instanceof Window;
|
|
1169
|
+
} catch (_) {
|
|
1170
|
+
result = false;
|
|
1171
|
+
}
|
|
1172
|
+
const ret = result;
|
|
1173
|
+
return ret;
|
|
1174
|
+
};
|
|
1175
|
+
imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
|
|
1176
|
+
const ret = Array.isArray(arg0);
|
|
1177
|
+
return ret;
|
|
1178
|
+
};
|
|
1179
|
+
imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
|
|
1180
|
+
const ret = Number.isSafeInteger(arg0);
|
|
1181
|
+
return ret;
|
|
1182
|
+
};
|
|
1183
|
+
imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
|
|
1184
|
+
const ret = Symbol.iterator;
|
|
1185
|
+
return ret;
|
|
1186
|
+
};
|
|
1187
|
+
imports.wbg.__wbg_label_ddec9d5dff390794 = function(arg0, arg1) {
|
|
1188
|
+
const ret = arg1.label;
|
|
1189
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1190
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1191
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1192
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1193
|
+
};
|
|
1194
|
+
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
1195
|
+
const ret = arg0.length;
|
|
1196
|
+
return ret;
|
|
1197
|
+
};
|
|
1198
|
+
imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
|
1199
|
+
const ret = arg0.length;
|
|
1200
|
+
return ret;
|
|
1201
|
+
};
|
|
1202
|
+
imports.wbg.__wbg_limits_100c065725b263d3 = function(arg0) {
|
|
1203
|
+
const ret = arg0.limits;
|
|
1204
|
+
return ret;
|
|
1205
|
+
};
|
|
1206
|
+
imports.wbg.__wbg_limits_adf0926aa155a224 = function(arg0) {
|
|
1207
|
+
const ret = arg0.limits;
|
|
1208
|
+
return ret;
|
|
1209
|
+
};
|
|
1210
|
+
imports.wbg.__wbg_log_c222819a41e063d3 = function(arg0) {
|
|
1211
|
+
console.log(arg0);
|
|
1212
|
+
};
|
|
1213
|
+
imports.wbg.__wbg_mapAsync_9cae92e6e45c9c69 = function(arg0, arg1, arg2, arg3) {
|
|
1214
|
+
const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
|
|
1215
|
+
return ret;
|
|
1216
|
+
};
|
|
1217
|
+
imports.wbg.__wbg_maxBindGroups_6f2433803f32568b = function(arg0) {
|
|
1218
|
+
const ret = arg0.maxBindGroups;
|
|
1219
|
+
return ret;
|
|
1220
|
+
};
|
|
1221
|
+
imports.wbg.__wbg_maxBindingsPerBindGroup_7663f800ee6c1c4d = function(arg0) {
|
|
1222
|
+
const ret = arg0.maxBindingsPerBindGroup;
|
|
1223
|
+
return ret;
|
|
1224
|
+
};
|
|
1225
|
+
imports.wbg.__wbg_maxBufferSize_7c2e7941b31faeb3 = function(arg0) {
|
|
1226
|
+
const ret = arg0.maxBufferSize;
|
|
1227
|
+
return ret;
|
|
1228
|
+
};
|
|
1229
|
+
imports.wbg.__wbg_maxComputeInvocationsPerWorkgroup_7706224e284389bb = function(arg0) {
|
|
1230
|
+
const ret = arg0.maxComputeInvocationsPerWorkgroup;
|
|
1231
|
+
return ret;
|
|
1232
|
+
};
|
|
1233
|
+
imports.wbg.__wbg_maxComputeWorkgroupSizeX_7c0caad69a9b0dd3 = function(arg0) {
|
|
1234
|
+
const ret = arg0.maxComputeWorkgroupSizeX;
|
|
1235
|
+
return ret;
|
|
1236
|
+
};
|
|
1237
|
+
imports.wbg.__wbg_maxComputeWorkgroupSizeY_add60ae79eceba95 = function(arg0) {
|
|
1238
|
+
const ret = arg0.maxComputeWorkgroupSizeY;
|
|
1239
|
+
return ret;
|
|
1240
|
+
};
|
|
1241
|
+
imports.wbg.__wbg_maxComputeWorkgroupSizeZ_b0d9e8bb90139e66 = function(arg0) {
|
|
1242
|
+
const ret = arg0.maxComputeWorkgroupSizeZ;
|
|
1243
|
+
return ret;
|
|
1244
|
+
};
|
|
1245
|
+
imports.wbg.__wbg_maxComputeWorkgroupStorageSize_bcc6c568b706b004 = function(arg0) {
|
|
1246
|
+
const ret = arg0.maxComputeWorkgroupStorageSize;
|
|
1247
|
+
return ret;
|
|
1248
|
+
};
|
|
1249
|
+
imports.wbg.__wbg_maxComputeWorkgroupsPerDimension_05c9e479d4805640 = function(arg0) {
|
|
1250
|
+
const ret = arg0.maxComputeWorkgroupsPerDimension;
|
|
1251
|
+
return ret;
|
|
1252
|
+
};
|
|
1253
|
+
imports.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_4017c7b096806162 = function(arg0) {
|
|
1254
|
+
const ret = arg0.maxDynamicStorageBuffersPerPipelineLayout;
|
|
1255
|
+
return ret;
|
|
1256
|
+
};
|
|
1257
|
+
imports.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_1d359f3196df8904 = function(arg0) {
|
|
1258
|
+
const ret = arg0.maxDynamicUniformBuffersPerPipelineLayout;
|
|
1259
|
+
return ret;
|
|
1260
|
+
};
|
|
1261
|
+
imports.wbg.__wbg_maxInterStageShaderComponents_d0d88326cf30e5cc = function(arg0) {
|
|
1262
|
+
const ret = arg0.maxInterStageShaderComponents;
|
|
1263
|
+
return ret;
|
|
1264
|
+
};
|
|
1265
|
+
imports.wbg.__wbg_maxSampledTexturesPerShaderStage_5ad571f210127408 = function(arg0) {
|
|
1266
|
+
const ret = arg0.maxSampledTexturesPerShaderStage;
|
|
1267
|
+
return ret;
|
|
1268
|
+
};
|
|
1269
|
+
imports.wbg.__wbg_maxSamplersPerShaderStage_c2ccff8d0f9ec6fd = function(arg0) {
|
|
1270
|
+
const ret = arg0.maxSamplersPerShaderStage;
|
|
1271
|
+
return ret;
|
|
1272
|
+
};
|
|
1273
|
+
imports.wbg.__wbg_maxStorageBufferBindingSize_7c16519c2edc067a = function(arg0) {
|
|
1274
|
+
const ret = arg0.maxStorageBufferBindingSize;
|
|
1275
|
+
return ret;
|
|
1276
|
+
};
|
|
1277
|
+
imports.wbg.__wbg_maxStorageBuffersPerShaderStage_e8eff366756ea9b4 = function(arg0) {
|
|
1278
|
+
const ret = arg0.maxStorageBuffersPerShaderStage;
|
|
1279
|
+
return ret;
|
|
1280
|
+
};
|
|
1281
|
+
imports.wbg.__wbg_maxStorageTexturesPerShaderStage_4e1d793c1e5c72a2 = function(arg0) {
|
|
1282
|
+
const ret = arg0.maxStorageTexturesPerShaderStage;
|
|
1283
|
+
return ret;
|
|
1284
|
+
};
|
|
1285
|
+
imports.wbg.__wbg_maxTextureArrayLayers_185872b43f6c8c34 = function(arg0) {
|
|
1286
|
+
const ret = arg0.maxTextureArrayLayers;
|
|
1287
|
+
return ret;
|
|
1288
|
+
};
|
|
1289
|
+
imports.wbg.__wbg_maxTextureDimension1D_bfa55b0304281516 = function(arg0) {
|
|
1290
|
+
const ret = arg0.maxTextureDimension1D;
|
|
1291
|
+
return ret;
|
|
1292
|
+
};
|
|
1293
|
+
imports.wbg.__wbg_maxTextureDimension2D_ffea95d029cf185b = function(arg0) {
|
|
1294
|
+
const ret = arg0.maxTextureDimension2D;
|
|
1295
|
+
return ret;
|
|
1296
|
+
};
|
|
1297
|
+
imports.wbg.__wbg_maxTextureDimension3D_bdfbc27d985f367d = function(arg0) {
|
|
1298
|
+
const ret = arg0.maxTextureDimension3D;
|
|
1299
|
+
return ret;
|
|
1300
|
+
};
|
|
1301
|
+
imports.wbg.__wbg_maxUniformBufferBindingSize_01703051a2b68aaa = function(arg0) {
|
|
1302
|
+
const ret = arg0.maxUniformBufferBindingSize;
|
|
1303
|
+
return ret;
|
|
1304
|
+
};
|
|
1305
|
+
imports.wbg.__wbg_maxUniformBuffersPerShaderStage_9f2d18a988fa37a0 = function(arg0) {
|
|
1306
|
+
const ret = arg0.maxUniformBuffersPerShaderStage;
|
|
1307
|
+
return ret;
|
|
1308
|
+
};
|
|
1309
|
+
imports.wbg.__wbg_maxVertexAttributes_268db19855a9a8bf = function(arg0) {
|
|
1310
|
+
const ret = arg0.maxVertexAttributes;
|
|
1311
|
+
return ret;
|
|
1312
|
+
};
|
|
1313
|
+
imports.wbg.__wbg_maxVertexBufferArrayStride_cace98777fdc5a4c = function(arg0) {
|
|
1314
|
+
const ret = arg0.maxVertexBufferArrayStride;
|
|
1315
|
+
return ret;
|
|
1316
|
+
};
|
|
1317
|
+
imports.wbg.__wbg_maxVertexBuffers_a8169305364fd125 = function(arg0) {
|
|
1318
|
+
const ret = arg0.maxVertexBuffers;
|
|
1319
|
+
return ret;
|
|
1320
|
+
};
|
|
1321
|
+
imports.wbg.__wbg_message_5c5d919204d42400 = function(arg0, arg1) {
|
|
1322
|
+
const ret = arg1.message;
|
|
1323
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1324
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1325
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1326
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1327
|
+
};
|
|
1328
|
+
imports.wbg.__wbg_message_d8f5eb4a85362e32 = function(arg0, arg1) {
|
|
1329
|
+
const ret = arg1.message;
|
|
1330
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1331
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1332
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1333
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1334
|
+
};
|
|
1335
|
+
imports.wbg.__wbg_minStorageBufferOffsetAlignment_b9763b1a342987b2 = function(arg0) {
|
|
1336
|
+
const ret = arg0.minStorageBufferOffsetAlignment;
|
|
1337
|
+
return ret;
|
|
1338
|
+
};
|
|
1339
|
+
imports.wbg.__wbg_minUniformBufferOffsetAlignment_dc9a10adad690d13 = function(arg0) {
|
|
1340
|
+
const ret = arg0.minUniformBufferOffsetAlignment;
|
|
1341
|
+
return ret;
|
|
1342
|
+
};
|
|
1343
|
+
imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
1344
|
+
const ret = arg0.msCrypto;
|
|
1345
|
+
return ret;
|
|
1346
|
+
};
|
|
1347
|
+
imports.wbg.__wbg_name_f2d27098bfd843e7 = function(arg0, arg1) {
|
|
1348
|
+
const ret = arg1.name;
|
|
1349
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1350
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1351
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1352
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1353
|
+
};
|
|
1354
|
+
imports.wbg.__wbg_navigator_0a9bf1120e24fec2 = function(arg0) {
|
|
1355
|
+
const ret = arg0.navigator;
|
|
1356
|
+
return ret;
|
|
1357
|
+
};
|
|
1358
|
+
imports.wbg.__wbg_navigator_1577371c070c8947 = function(arg0) {
|
|
1359
|
+
const ret = arg0.navigator;
|
|
1360
|
+
return ret;
|
|
1361
|
+
};
|
|
1362
|
+
imports.wbg.__wbg_new0_f788a2397c7ca929 = function() {
|
|
1363
|
+
const ret = new Date();
|
|
1364
|
+
return ret;
|
|
1365
|
+
};
|
|
1366
|
+
imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
1367
|
+
try {
|
|
1368
|
+
var state0 = {a: arg0, b: arg1};
|
|
1369
|
+
var cb0 = (arg0, arg1) => {
|
|
1370
|
+
const a = state0.a;
|
|
1371
|
+
state0.a = 0;
|
|
1372
|
+
try {
|
|
1373
|
+
return __wbg_adapter_547(a, state0.b, arg0, arg1);
|
|
1374
|
+
} finally {
|
|
1375
|
+
state0.a = a;
|
|
1376
|
+
}
|
|
1377
|
+
};
|
|
1378
|
+
const ret = new Promise(cb0);
|
|
1379
|
+
return ret;
|
|
1380
|
+
} finally {
|
|
1381
|
+
state0.a = state0.b = 0;
|
|
1382
|
+
}
|
|
1383
|
+
};
|
|
1384
|
+
imports.wbg.__wbg_new_31a97dac4f10fab7 = function(arg0) {
|
|
1385
|
+
const ret = new Date(arg0);
|
|
1386
|
+
return ret;
|
|
1387
|
+
};
|
|
1388
|
+
imports.wbg.__wbg_new_405e22f390576ce2 = function() {
|
|
1389
|
+
const ret = new Object();
|
|
1390
|
+
return ret;
|
|
1391
|
+
};
|
|
1392
|
+
imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
|
|
1393
|
+
const ret = new Map();
|
|
1394
|
+
return ret;
|
|
1395
|
+
};
|
|
1396
|
+
imports.wbg.__wbg_new_78feb108b6472713 = function() {
|
|
1397
|
+
const ret = new Array();
|
|
1398
|
+
return ret;
|
|
1399
|
+
};
|
|
1400
|
+
imports.wbg.__wbg_new_86231e225ca6b962 = function() { return handleError(function () {
|
|
1401
|
+
const ret = new XMLHttpRequest();
|
|
1402
|
+
return ret;
|
|
1403
|
+
}, arguments) };
|
|
1404
|
+
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
1405
|
+
const ret = new Error();
|
|
1406
|
+
return ret;
|
|
1407
|
+
};
|
|
1408
|
+
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
1409
|
+
const ret = new Uint8Array(arg0);
|
|
1410
|
+
return ret;
|
|
1411
|
+
};
|
|
1412
|
+
imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
|
|
1413
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1414
|
+
return ret;
|
|
1415
|
+
};
|
|
1416
|
+
imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
1417
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1418
|
+
return ret;
|
|
1419
|
+
};
|
|
1420
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
1421
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1422
|
+
return ret;
|
|
1423
|
+
};
|
|
1424
|
+
imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
|
|
1425
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
1426
|
+
return ret;
|
|
1427
|
+
};
|
|
1428
|
+
imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
1429
|
+
const ret = arg0.next;
|
|
1430
|
+
return ret;
|
|
1431
|
+
};
|
|
1432
|
+
imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
|
|
1433
|
+
const ret = arg0.next();
|
|
1434
|
+
return ret;
|
|
1435
|
+
}, arguments) };
|
|
1436
|
+
imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
1437
|
+
const ret = arg0.node;
|
|
1438
|
+
return ret;
|
|
1439
|
+
};
|
|
1440
|
+
imports.wbg.__wbg_now_2c95c9de01293173 = function(arg0) {
|
|
1441
|
+
const ret = arg0.now();
|
|
1442
|
+
return ret;
|
|
1443
|
+
};
|
|
1444
|
+
imports.wbg.__wbg_now_807e54c39636c349 = function() {
|
|
1445
|
+
const ret = Date.now();
|
|
1446
|
+
return ret;
|
|
1447
|
+
};
|
|
1448
|
+
imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
|
|
1449
|
+
const ret = arg0.now();
|
|
1450
|
+
return ret;
|
|
1451
|
+
};
|
|
1452
|
+
imports.wbg.__wbg_ok_3aaf32d069979723 = function(arg0) {
|
|
1453
|
+
const ret = arg0.ok;
|
|
1454
|
+
return ret;
|
|
1455
|
+
};
|
|
1456
|
+
imports.wbg.__wbg_open_13a598ea50d82926 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1457
|
+
arg0.open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), arg5 !== 0);
|
|
1458
|
+
}, arguments) };
|
|
1459
|
+
imports.wbg.__wbg_performance_7a3ffd0b17f663ad = function(arg0) {
|
|
1460
|
+
const ret = arg0.performance;
|
|
1461
|
+
return ret;
|
|
1462
|
+
};
|
|
1463
|
+
imports.wbg.__wbg_popErrorScope_8a0d0d31c4ddc243 = function(arg0) {
|
|
1464
|
+
const ret = arg0.popErrorScope();
|
|
1465
|
+
return ret;
|
|
1466
|
+
};
|
|
1467
|
+
imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
1468
|
+
const ret = arg0.process;
|
|
1469
|
+
return ret;
|
|
1470
|
+
};
|
|
1471
|
+
imports.wbg.__wbg_pushErrorScope_dc8386c8142593b6 = function(arg0, arg1) {
|
|
1472
|
+
arg0.pushErrorScope(__wbindgen_enum_GpuErrorFilter[arg1]);
|
|
1473
|
+
};
|
|
1474
|
+
imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
|
|
1475
|
+
const ret = arg0.push(arg1);
|
|
1476
|
+
return ret;
|
|
1477
|
+
};
|
|
1478
|
+
imports.wbg.__wbg_querySelectorAll_40998fd748f057ef = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1479
|
+
const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
|
|
1480
|
+
return ret;
|
|
1481
|
+
}, arguments) };
|
|
1482
|
+
imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
|
|
1483
|
+
queueMicrotask(arg0);
|
|
1484
|
+
};
|
|
1485
|
+
imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
|
|
1486
|
+
const ret = arg0.queueMicrotask;
|
|
1487
|
+
return ret;
|
|
1488
|
+
};
|
|
1489
|
+
imports.wbg.__wbg_queue_d083905208ed0dcd = function(arg0) {
|
|
1490
|
+
const ret = arg0.queue;
|
|
1491
|
+
return ret;
|
|
1492
|
+
};
|
|
1493
|
+
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
1494
|
+
arg0.randomFillSync(arg1);
|
|
1495
|
+
}, arguments) };
|
|
1496
|
+
imports.wbg.__wbg_random_3ad904d98382defe = function() {
|
|
1497
|
+
const ret = Math.random();
|
|
1498
|
+
return ret;
|
|
1499
|
+
};
|
|
1500
|
+
imports.wbg.__wbg_read_a2434af1186cb56c = function(arg0) {
|
|
1501
|
+
const ret = arg0.read();
|
|
1502
|
+
return ret;
|
|
1503
|
+
};
|
|
1504
|
+
imports.wbg.__wbg_requestAdapter_629f003011778ce0 = function(arg0, arg1) {
|
|
1505
|
+
const ret = arg0.requestAdapter(arg1);
|
|
1506
|
+
return ret;
|
|
1507
|
+
};
|
|
1508
|
+
imports.wbg.__wbg_requestDevice_a420ce594b90ac7c = function(arg0, arg1) {
|
|
1509
|
+
const ret = arg0.requestDevice(arg1);
|
|
1510
|
+
return ret;
|
|
1511
|
+
};
|
|
1512
|
+
imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
1513
|
+
const ret = module.require;
|
|
1514
|
+
return ret;
|
|
1515
|
+
}, arguments) };
|
|
1516
|
+
imports.wbg.__wbg_resolveQuerySet_2fea0e7835fc7df1 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1517
|
+
arg0.resolveQuerySet(arg1, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
|
|
1518
|
+
};
|
|
1519
|
+
imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
1520
|
+
const ret = Promise.resolve(arg0);
|
|
1521
|
+
return ret;
|
|
1522
|
+
};
|
|
1523
|
+
imports.wbg.__wbg_response_49e10f8ee7f418db = function() { return handleError(function (arg0) {
|
|
1524
|
+
const ret = arg0.response;
|
|
1525
|
+
return ret;
|
|
1526
|
+
}, arguments) };
|
|
1527
|
+
imports.wbg.__wbg_runmatwasm_new = function(arg0) {
|
|
1528
|
+
const ret = RunMatWasm.__wrap(arg0);
|
|
1529
|
+
return ret;
|
|
1530
|
+
};
|
|
1531
|
+
imports.wbg.__wbg_send_190b4155effb7466 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1532
|
+
arg0.send(arg1 === 0 ? undefined : getArrayU8FromWasm0(arg1, arg2));
|
|
1533
|
+
}, arguments) };
|
|
1534
|
+
imports.wbg.__wbg_send_40a47636ff90f64d = function() { return handleError(function (arg0) {
|
|
1535
|
+
arg0.send();
|
|
1536
|
+
}, arguments) };
|
|
1537
|
+
imports.wbg.__wbg_setBindGroup_10139726fa3dd1ea = function(arg0, arg1, arg2) {
|
|
1538
|
+
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
1539
|
+
};
|
|
1540
|
+
imports.wbg.__wbg_setBindGroup_241675b4c4b8f5ee = function(arg0, arg1, arg2) {
|
|
1541
|
+
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
1542
|
+
};
|
|
1543
|
+
imports.wbg.__wbg_setBindGroup_9ae27be0638391c7 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1544
|
+
arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
1545
|
+
};
|
|
1546
|
+
imports.wbg.__wbg_setBindGroup_a539eeaa822b1981 = function(arg0, arg1, arg2) {
|
|
1547
|
+
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
1548
|
+
};
|
|
1549
|
+
imports.wbg.__wbg_setBindGroup_db89ccc18c604dc2 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1550
|
+
arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
1551
|
+
};
|
|
1552
|
+
imports.wbg.__wbg_setBindGroup_eea1f72247b40846 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1553
|
+
arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
1554
|
+
};
|
|
1555
|
+
imports.wbg.__wbg_setBlendConstant_898c0ee36fd7f3d6 = function(arg0, arg1) {
|
|
1556
|
+
arg0.setBlendConstant(arg1);
|
|
1557
|
+
};
|
|
1558
|
+
imports.wbg.__wbg_setIndexBuffer_02484628e4be6ccf = function(arg0, arg1, arg2, arg3) {
|
|
1559
|
+
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3);
|
|
1560
|
+
};
|
|
1561
|
+
imports.wbg.__wbg_setIndexBuffer_4179c9df498ed24f = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1562
|
+
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
|
|
1563
|
+
};
|
|
1564
|
+
imports.wbg.__wbg_setIndexBuffer_6241c40136dfd59c = function(arg0, arg1, arg2, arg3) {
|
|
1565
|
+
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3);
|
|
1566
|
+
};
|
|
1567
|
+
imports.wbg.__wbg_setIndexBuffer_cac1cc97b362a161 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1568
|
+
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
|
|
1569
|
+
};
|
|
1570
|
+
imports.wbg.__wbg_setPipeline_065423750bbc2601 = function(arg0, arg1) {
|
|
1571
|
+
arg0.setPipeline(arg1);
|
|
1572
|
+
};
|
|
1573
|
+
imports.wbg.__wbg_setPipeline_73d2200820a1b6d7 = function(arg0, arg1) {
|
|
1574
|
+
arg0.setPipeline(arg1);
|
|
1575
|
+
};
|
|
1576
|
+
imports.wbg.__wbg_setPipeline_c41eba60986fbffb = function(arg0, arg1) {
|
|
1577
|
+
arg0.setPipeline(arg1);
|
|
1578
|
+
};
|
|
1579
|
+
imports.wbg.__wbg_setRequestHeader_51d371ad5196f6ef = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1580
|
+
arg0.setRequestHeader(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1581
|
+
}, arguments) };
|
|
1582
|
+
imports.wbg.__wbg_setScissorRect_7ad09034bda2ad64 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1583
|
+
arg0.setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1584
|
+
};
|
|
1585
|
+
imports.wbg.__wbg_setStencilReference_2d44258a2b1549df = function(arg0, arg1) {
|
|
1586
|
+
arg0.setStencilReference(arg1 >>> 0);
|
|
1587
|
+
};
|
|
1588
|
+
imports.wbg.__wbg_setVertexBuffer_086ad8f1d3a3528b = function(arg0, arg1, arg2, arg3) {
|
|
1589
|
+
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
|
|
1590
|
+
};
|
|
1591
|
+
imports.wbg.__wbg_setVertexBuffer_130b7f747b752e5d = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1592
|
+
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
|
|
1593
|
+
};
|
|
1594
|
+
imports.wbg.__wbg_setVertexBuffer_1a126bb7aa133940 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1595
|
+
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
|
|
1596
|
+
};
|
|
1597
|
+
imports.wbg.__wbg_setVertexBuffer_56163ae020ef8343 = function(arg0, arg1, arg2, arg3) {
|
|
1598
|
+
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
|
|
1599
|
+
};
|
|
1600
|
+
imports.wbg.__wbg_setViewport_0c26f0a54b53d7e3 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1601
|
+
arg0.setViewport(arg1, arg2, arg3, arg4, arg5, arg6);
|
|
1602
|
+
};
|
|
1603
|
+
imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
|
|
1604
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1605
|
+
};
|
|
1606
|
+
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
1607
|
+
arg0[arg1] = arg2;
|
|
1608
|
+
};
|
|
1609
|
+
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
1610
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
1611
|
+
};
|
|
1612
|
+
imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
|
|
1613
|
+
const ret = arg0.set(arg1, arg2);
|
|
1614
|
+
return ret;
|
|
1615
|
+
};
|
|
1616
|
+
imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1617
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1618
|
+
return ret;
|
|
1619
|
+
}, arguments) };
|
|
1620
|
+
imports.wbg.__wbg_setheight_433680330c9420c3 = function(arg0, arg1) {
|
|
1621
|
+
arg0.height = arg1 >>> 0;
|
|
1622
|
+
};
|
|
1623
|
+
imports.wbg.__wbg_setheight_da683a33fa99843c = function(arg0, arg1) {
|
|
1624
|
+
arg0.height = arg1 >>> 0;
|
|
1625
|
+
};
|
|
1626
|
+
imports.wbg.__wbg_setonuncapturederror_daf12032b2ca712a = function(arg0, arg1) {
|
|
1627
|
+
arg0.onuncapturederror = arg1;
|
|
1628
|
+
};
|
|
1629
|
+
imports.wbg.__wbg_setresponseType_4267195f737262d5 = function(arg0, arg1) {
|
|
1630
|
+
arg0.responseType = __wbindgen_enum_XmlHttpRequestResponseType[arg1];
|
|
1631
|
+
};
|
|
1632
|
+
imports.wbg.__wbg_settimeout_0354c6307cd5eae8 = function(arg0, arg1) {
|
|
1633
|
+
arg0.timeout = arg1 >>> 0;
|
|
1634
|
+
};
|
|
1635
|
+
imports.wbg.__wbg_setwidth_660ca581e3fbe279 = function(arg0, arg1) {
|
|
1636
|
+
arg0.width = arg1 >>> 0;
|
|
1637
|
+
};
|
|
1638
|
+
imports.wbg.__wbg_setwidth_c5fed9f5e7f0b406 = function(arg0, arg1) {
|
|
1639
|
+
arg0.width = arg1 >>> 0;
|
|
1640
|
+
};
|
|
1641
|
+
imports.wbg.__wbg_size_45c769c019ee354e = function(arg0) {
|
|
1642
|
+
const ret = arg0.size;
|
|
1643
|
+
return ret;
|
|
1644
|
+
};
|
|
1645
|
+
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
1646
|
+
const ret = arg1.stack;
|
|
1647
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1648
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1649
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1650
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1651
|
+
};
|
|
1652
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
1653
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1654
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1655
|
+
};
|
|
1656
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
|
1657
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1658
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1659
|
+
};
|
|
1660
|
+
imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
1661
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1662
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1663
|
+
};
|
|
1664
|
+
imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
1665
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1666
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1667
|
+
};
|
|
1668
|
+
imports.wbg.__wbg_statusText_6f96b7515fb97af8 = function() { return handleError(function (arg0, arg1) {
|
|
1669
|
+
const ret = arg1.statusText;
|
|
1670
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1671
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1672
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1673
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1674
|
+
}, arguments) };
|
|
1675
|
+
imports.wbg.__wbg_status_12bcf88a8ff51470 = function() { return handleError(function (arg0) {
|
|
1676
|
+
const ret = arg0.status;
|
|
1677
|
+
return ret;
|
|
1678
|
+
}, arguments) };
|
|
1679
|
+
imports.wbg.__wbg_status_f6360336ca686bf0 = function(arg0) {
|
|
1680
|
+
const ret = arg0.status;
|
|
1681
|
+
return ret;
|
|
1682
|
+
};
|
|
1683
|
+
imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
|
|
1684
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1685
|
+
return ret;
|
|
1686
|
+
};
|
|
1687
|
+
imports.wbg.__wbg_submit_75592557e0c2141c = function(arg0, arg1) {
|
|
1688
|
+
arg0.submit(arg1);
|
|
1689
|
+
};
|
|
1690
|
+
imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
1691
|
+
const ret = arg0.then(arg1);
|
|
1692
|
+
return ret;
|
|
1693
|
+
};
|
|
1694
|
+
imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
|
|
1695
|
+
const ret = arg0.then(arg1, arg2);
|
|
1696
|
+
return ret;
|
|
1697
|
+
};
|
|
1698
|
+
imports.wbg.__wbg_toISOString_b015155a5a6fe219 = function(arg0) {
|
|
1699
|
+
const ret = arg0.toISOString();
|
|
1700
|
+
return ret;
|
|
1701
|
+
};
|
|
1702
|
+
imports.wbg.__wbg_unmap_662f1210575affe8 = function(arg0) {
|
|
1703
|
+
arg0.unmap();
|
|
1704
|
+
};
|
|
1705
|
+
imports.wbg.__wbg_usage_000523533bad5f06 = function(arg0) {
|
|
1706
|
+
const ret = arg0.usage;
|
|
1707
|
+
return ret;
|
|
1708
|
+
};
|
|
1709
|
+
imports.wbg.__wbg_valueOf_39a18758c25e8b95 = function(arg0) {
|
|
1710
|
+
const ret = arg0.valueOf();
|
|
1711
|
+
return ret;
|
|
1712
|
+
};
|
|
1713
|
+
imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
1714
|
+
const ret = arg0.value;
|
|
1715
|
+
return ret;
|
|
1716
|
+
};
|
|
1717
|
+
imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
1718
|
+
const ret = arg0.versions;
|
|
1719
|
+
return ret;
|
|
1720
|
+
};
|
|
1721
|
+
imports.wbg.__wbg_width_5dde457d606ba683 = function(arg0) {
|
|
1722
|
+
const ret = arg0.width;
|
|
1723
|
+
return ret;
|
|
1724
|
+
};
|
|
1725
|
+
imports.wbg.__wbg_width_f0759bd8bad335bd = function(arg0) {
|
|
1726
|
+
const ret = arg0.width;
|
|
1727
|
+
return ret;
|
|
1728
|
+
};
|
|
1729
|
+
imports.wbg.__wbg_writeBuffer_c78696d1629b48de = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1730
|
+
arg0.writeBuffer(arg1, arg2, arg3, arg4, arg5);
|
|
1731
|
+
};
|
|
1732
|
+
imports.wbg.__wbg_writeTexture_91ff88a4044f669a = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1733
|
+
arg0.writeTexture(arg1, arg2, arg3, arg4);
|
|
1734
|
+
};
|
|
1735
|
+
imports.wbg.__wbg_writeTimestamp_a8766c734d6aa8d6 = function(arg0, arg1, arg2) {
|
|
1736
|
+
arg0.writeTimestamp(arg1, arg2 >>> 0);
|
|
1737
|
+
};
|
|
1738
|
+
imports.wbg.__wbindgen_as_number = function(arg0) {
|
|
1739
|
+
const ret = +arg0;
|
|
1740
|
+
return ret;
|
|
1741
|
+
};
|
|
1742
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
1743
|
+
const ret = arg0;
|
|
1744
|
+
return ret;
|
|
1745
|
+
};
|
|
1746
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
1747
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1748
|
+
return ret;
|
|
1749
|
+
};
|
|
1750
|
+
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
1751
|
+
const v = arg1;
|
|
1752
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1753
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1754
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1755
|
+
};
|
|
1756
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
1757
|
+
const v = arg0;
|
|
1758
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
1759
|
+
return ret;
|
|
1760
|
+
};
|
|
1761
|
+
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
1762
|
+
const obj = arg0.original;
|
|
1763
|
+
if (obj.cnt-- == 1) {
|
|
1764
|
+
obj.a = 0;
|
|
1765
|
+
return true;
|
|
1766
|
+
}
|
|
1767
|
+
const ret = false;
|
|
1768
|
+
return ret;
|
|
1769
|
+
};
|
|
1770
|
+
imports.wbg.__wbindgen_closure_wrapper12886 = function(arg0, arg1, arg2) {
|
|
1771
|
+
const ret = makeMutClosure(arg0, arg1, 4251, __wbg_adapter_54);
|
|
1772
|
+
return ret;
|
|
1773
|
+
};
|
|
1774
|
+
imports.wbg.__wbindgen_closure_wrapper13360 = function(arg0, arg1, arg2) {
|
|
1775
|
+
const ret = makeMutClosure(arg0, arg1, 4258, __wbg_adapter_57);
|
|
1776
|
+
return ret;
|
|
1777
|
+
};
|
|
1778
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
1779
|
+
const ret = debugString(arg1);
|
|
1780
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1781
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1782
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1783
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1784
|
+
};
|
|
1785
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
1786
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1787
|
+
return ret;
|
|
1788
|
+
};
|
|
1789
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
1790
|
+
const ret = arg0 in arg1;
|
|
1791
|
+
return ret;
|
|
1792
|
+
};
|
|
1793
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
1794
|
+
const table = wasm.__wbindgen_export_4;
|
|
1795
|
+
const offset = table.grow(4);
|
|
1796
|
+
table.set(0, undefined);
|
|
1797
|
+
table.set(offset + 0, undefined);
|
|
1798
|
+
table.set(offset + 1, null);
|
|
1799
|
+
table.set(offset + 2, true);
|
|
1800
|
+
table.set(offset + 3, false);
|
|
1801
|
+
;
|
|
1802
|
+
};
|
|
1803
|
+
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
1804
|
+
const ret = typeof(arg0) === 'bigint';
|
|
1805
|
+
return ret;
|
|
1806
|
+
};
|
|
1807
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
1808
|
+
const ret = typeof(arg0) === 'function';
|
|
1809
|
+
return ret;
|
|
1810
|
+
};
|
|
1811
|
+
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
1812
|
+
const ret = arg0 === null;
|
|
1813
|
+
return ret;
|
|
1814
|
+
};
|
|
1815
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
1816
|
+
const val = arg0;
|
|
1817
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
1818
|
+
return ret;
|
|
1819
|
+
};
|
|
1820
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
1821
|
+
const ret = typeof(arg0) === 'string';
|
|
1822
|
+
return ret;
|
|
1823
|
+
};
|
|
1824
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
1825
|
+
const ret = arg0 === undefined;
|
|
1826
|
+
return ret;
|
|
1827
|
+
};
|
|
1828
|
+
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
1829
|
+
const ret = arg0 === arg1;
|
|
1830
|
+
return ret;
|
|
1831
|
+
};
|
|
1832
|
+
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
1833
|
+
const ret = arg0 == arg1;
|
|
1834
|
+
return ret;
|
|
1835
|
+
};
|
|
1836
|
+
imports.wbg.__wbindgen_memory = function() {
|
|
1837
|
+
const ret = wasm.memory;
|
|
1838
|
+
return ret;
|
|
1839
|
+
};
|
|
1840
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
1841
|
+
const obj = arg1;
|
|
1842
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1843
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1844
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1845
|
+
};
|
|
1846
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
1847
|
+
const ret = arg0;
|
|
1848
|
+
return ret;
|
|
1849
|
+
};
|
|
1850
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
1851
|
+
const obj = arg1;
|
|
1852
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1853
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1854
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1855
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1856
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1857
|
+
};
|
|
1858
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
1859
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1860
|
+
return ret;
|
|
1861
|
+
};
|
|
1862
|
+
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
1863
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
return imports;
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
function __wbg_init_memory(imports, memory) {
|
|
1870
|
+
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
function __wbg_finalize_init(instance, module) {
|
|
1874
|
+
wasm = instance.exports;
|
|
1875
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
1876
|
+
cachedDataViewMemory0 = null;
|
|
1877
|
+
cachedUint32ArrayMemory0 = null;
|
|
1878
|
+
cachedUint8ArrayMemory0 = null;
|
|
1879
|
+
|
|
1880
|
+
|
|
1881
|
+
wasm.__wbindgen_start();
|
|
1882
|
+
return wasm;
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
function initSync(module) {
|
|
1886
|
+
if (wasm !== undefined) return wasm;
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
if (typeof module !== 'undefined') {
|
|
1890
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1891
|
+
({module} = module)
|
|
1892
|
+
} else {
|
|
1893
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
const imports = __wbg_get_imports();
|
|
1898
|
+
|
|
1899
|
+
__wbg_init_memory(imports);
|
|
1900
|
+
|
|
1901
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1902
|
+
module = new WebAssembly.Module(module);
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1906
|
+
|
|
1907
|
+
return __wbg_finalize_init(instance, module);
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
async function __wbg_init(module_or_path) {
|
|
1911
|
+
if (wasm !== undefined) return wasm;
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
if (typeof module_or_path !== 'undefined') {
|
|
1915
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1916
|
+
({module_or_path} = module_or_path)
|
|
1917
|
+
} else {
|
|
1918
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
if (typeof module_or_path === 'undefined') {
|
|
1923
|
+
module_or_path = new URL('runmat_wasm_web_bg.wasm', import.meta.url);
|
|
1924
|
+
}
|
|
1925
|
+
const imports = __wbg_get_imports();
|
|
1926
|
+
|
|
1927
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1928
|
+
module_or_path = fetch(module_or_path);
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
__wbg_init_memory(imports);
|
|
1932
|
+
|
|
1933
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1934
|
+
|
|
1935
|
+
return __wbg_finalize_init(instance, module);
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
export { initSync };
|
|
1939
|
+
export default __wbg_init;
|