@vulfram/transport-browser 0.19.2-alpha
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/README.md +5 -0
- package/lib/.gitkeep +0 -0
- package/lib/vulfram_core.d.ts +97 -0
- package/lib/vulfram_core.js +1586 -0
- package/lib/vulfram_core_bg.wasm +0 -0
- package/lib/vulfram_core_bg.wasm.d.ts +24 -0
- package/package.json +17 -0
- package/src/index.ts +148 -0
- package/tsconfig.json +29 -0
|
@@ -0,0 +1,1586 @@
|
|
|
1
|
+
/* @ts-self-types="./vulfram_core.d.ts" */
|
|
2
|
+
|
|
3
|
+
export class BufferResult {
|
|
4
|
+
static __wrap(ptr) {
|
|
5
|
+
ptr = ptr >>> 0;
|
|
6
|
+
const obj = Object.create(BufferResult.prototype);
|
|
7
|
+
obj.__wbg_ptr = ptr;
|
|
8
|
+
BufferResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
9
|
+
return obj;
|
|
10
|
+
}
|
|
11
|
+
__destroy_into_raw() {
|
|
12
|
+
const ptr = this.__wbg_ptr;
|
|
13
|
+
this.__wbg_ptr = 0;
|
|
14
|
+
BufferResultFinalization.unregister(this);
|
|
15
|
+
return ptr;
|
|
16
|
+
}
|
|
17
|
+
free() {
|
|
18
|
+
const ptr = this.__destroy_into_raw();
|
|
19
|
+
wasm.__wbg_bufferresult_free(ptr, 0);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @returns {number}
|
|
23
|
+
*/
|
|
24
|
+
get result() {
|
|
25
|
+
const ret = wasm.bufferresult_result(this.__wbg_ptr);
|
|
26
|
+
return ret >>> 0;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @returns {Uint8Array}
|
|
30
|
+
*/
|
|
31
|
+
takeBuffer() {
|
|
32
|
+
try {
|
|
33
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
34
|
+
wasm.bufferresult_takeBuffer(retptr, this.__wbg_ptr);
|
|
35
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
36
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
37
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
38
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
39
|
+
return v1;
|
|
40
|
+
} finally {
|
|
41
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (Symbol.dispose) BufferResult.prototype[Symbol.dispose] = BufferResult.prototype.free;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Chroma subsampling format
|
|
49
|
+
* @enum {0 | 1 | 2 | 3}
|
|
50
|
+
*/
|
|
51
|
+
export const ChromaSampling = Object.freeze({
|
|
52
|
+
/**
|
|
53
|
+
* Both vertically and horizontally subsampled.
|
|
54
|
+
*/
|
|
55
|
+
Cs420: 0, "0": "Cs420",
|
|
56
|
+
/**
|
|
57
|
+
* Horizontally subsampled.
|
|
58
|
+
*/
|
|
59
|
+
Cs422: 1, "1": "Cs422",
|
|
60
|
+
/**
|
|
61
|
+
* Not subsampled.
|
|
62
|
+
*/
|
|
63
|
+
Cs444: 2, "2": "Cs444",
|
|
64
|
+
/**
|
|
65
|
+
* Monochrome.
|
|
66
|
+
*/
|
|
67
|
+
Cs400: 3, "3": "Cs400",
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @returns {number}
|
|
72
|
+
*/
|
|
73
|
+
export function vulfram_dispose() {
|
|
74
|
+
const ret = wasm.vulfram_dispose();
|
|
75
|
+
return ret >>> 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @returns {BufferResult}
|
|
80
|
+
*/
|
|
81
|
+
export function vulfram_get_profiling() {
|
|
82
|
+
const ret = wasm.vulfram_get_profiling();
|
|
83
|
+
return BufferResult.__wrap(ret);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @returns {number}
|
|
88
|
+
*/
|
|
89
|
+
export function vulfram_init() {
|
|
90
|
+
const ret = wasm.vulfram_init();
|
|
91
|
+
return ret >>> 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @returns {BufferResult}
|
|
96
|
+
*/
|
|
97
|
+
export function vulfram_receive_events() {
|
|
98
|
+
const ret = wasm.vulfram_receive_events();
|
|
99
|
+
return BufferResult.__wrap(ret);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @returns {BufferResult}
|
|
104
|
+
*/
|
|
105
|
+
export function vulfram_receive_queue() {
|
|
106
|
+
const ret = wasm.vulfram_receive_queue();
|
|
107
|
+
return BufferResult.__wrap(ret);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @param {Uint8Array} data
|
|
112
|
+
* @returns {number}
|
|
113
|
+
*/
|
|
114
|
+
export function vulfram_send_queue(data) {
|
|
115
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export);
|
|
116
|
+
const len0 = WASM_VECTOR_LEN;
|
|
117
|
+
const ret = wasm.vulfram_send_queue(ptr0, len0);
|
|
118
|
+
return ret >>> 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @param {number} time_ms
|
|
123
|
+
* @param {number} delta_ms
|
|
124
|
+
* @returns {number}
|
|
125
|
+
*/
|
|
126
|
+
export function vulfram_tick(time_ms, delta_ms) {
|
|
127
|
+
const ret = wasm.vulfram_tick(time_ms, delta_ms);
|
|
128
|
+
return ret >>> 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @param {bigint} id
|
|
133
|
+
* @param {number} upload_type
|
|
134
|
+
* @param {Uint8Array} data
|
|
135
|
+
* @returns {number}
|
|
136
|
+
*/
|
|
137
|
+
export function vulfram_upload_buffer(id, upload_type, data) {
|
|
138
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export);
|
|
139
|
+
const len0 = WASM_VECTOR_LEN;
|
|
140
|
+
const ret = wasm.vulfram_upload_buffer(id, upload_type, ptr0, len0);
|
|
141
|
+
return ret >>> 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
function __wbg_get_imports() {
|
|
145
|
+
const import0 = {
|
|
146
|
+
__proto__: null,
|
|
147
|
+
__wbg_Window_5bb26bc95d054384: function(arg0) {
|
|
148
|
+
const ret = getObject(arg0).Window;
|
|
149
|
+
return addHeapObject(ret);
|
|
150
|
+
},
|
|
151
|
+
__wbg_WorkerGlobalScope_866db36eb93893fe: function(arg0) {
|
|
152
|
+
const ret = getObject(arg0).WorkerGlobalScope;
|
|
153
|
+
return addHeapObject(ret);
|
|
154
|
+
},
|
|
155
|
+
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
156
|
+
const ret = debugString(getObject(arg1));
|
|
157
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
158
|
+
const len1 = WASM_VECTOR_LEN;
|
|
159
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
160
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
161
|
+
},
|
|
162
|
+
__wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
|
|
163
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
164
|
+
return ret;
|
|
165
|
+
},
|
|
166
|
+
__wbg___wbindgen_is_null_0b605fc6b167c56f: function(arg0) {
|
|
167
|
+
const ret = getObject(arg0) === null;
|
|
168
|
+
return ret;
|
|
169
|
+
},
|
|
170
|
+
__wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
|
|
171
|
+
const ret = getObject(arg0) === undefined;
|
|
172
|
+
return ret;
|
|
173
|
+
},
|
|
174
|
+
__wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
|
|
175
|
+
const obj = getObject(arg1);
|
|
176
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
177
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
178
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
179
|
+
},
|
|
180
|
+
__wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
|
|
181
|
+
const obj = getObject(arg1);
|
|
182
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
183
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
184
|
+
var len1 = WASM_VECTOR_LEN;
|
|
185
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
186
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
187
|
+
},
|
|
188
|
+
__wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
|
|
189
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
190
|
+
},
|
|
191
|
+
__wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
|
|
192
|
+
getObject(arg0)._wbg_cb_unref();
|
|
193
|
+
},
|
|
194
|
+
__wbg_addEventListener_2d985aa8a656f6dc: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
195
|
+
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
196
|
+
}, arguments); },
|
|
197
|
+
__wbg_altKey_a8e58d65866de029: function(arg0) {
|
|
198
|
+
const ret = getObject(arg0).altKey;
|
|
199
|
+
return ret;
|
|
200
|
+
},
|
|
201
|
+
__wbg_axes_4ba58f8779c5d176: function(arg0) {
|
|
202
|
+
const ret = getObject(arg0).axes;
|
|
203
|
+
return addHeapObject(ret);
|
|
204
|
+
},
|
|
205
|
+
__wbg_buffer_60b8043cd926067d: function(arg0) {
|
|
206
|
+
const ret = getObject(arg0).buffer;
|
|
207
|
+
return addHeapObject(ret);
|
|
208
|
+
},
|
|
209
|
+
__wbg_button_bdc91677bd7bbf58: function(arg0) {
|
|
210
|
+
const ret = getObject(arg0).button;
|
|
211
|
+
return ret;
|
|
212
|
+
},
|
|
213
|
+
__wbg_buttons_ed0c8b1fa9af7a25: function(arg0) {
|
|
214
|
+
const ret = getObject(arg0).buttons;
|
|
215
|
+
return addHeapObject(ret);
|
|
216
|
+
},
|
|
217
|
+
__wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
218
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
219
|
+
return addHeapObject(ret);
|
|
220
|
+
}, arguments); },
|
|
221
|
+
__wbg_call_dcc2662fa17a72cf: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
222
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
223
|
+
return addHeapObject(ret);
|
|
224
|
+
}, arguments); },
|
|
225
|
+
__wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
|
|
226
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
227
|
+
return addHeapObject(ret);
|
|
228
|
+
}, arguments); },
|
|
229
|
+
__wbg_clientX_eff94e775c0667a2: function(arg0) {
|
|
230
|
+
const ret = getObject(arg0).clientX;
|
|
231
|
+
return ret;
|
|
232
|
+
},
|
|
233
|
+
__wbg_clientY_6293e127369957bf: function(arg0) {
|
|
234
|
+
const ret = getObject(arg0).clientY;
|
|
235
|
+
return ret;
|
|
236
|
+
},
|
|
237
|
+
__wbg_code_3c69123dcbcf263d: function(arg0, arg1) {
|
|
238
|
+
const ret = getObject(arg1).code;
|
|
239
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
240
|
+
const len1 = WASM_VECTOR_LEN;
|
|
241
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
242
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
243
|
+
},
|
|
244
|
+
__wbg_configure_3800e43cc1d4df6c: function() { return handleError(function (arg0, arg1) {
|
|
245
|
+
getObject(arg0).configure(getObject(arg1));
|
|
246
|
+
}, arguments); },
|
|
247
|
+
__wbg_connect_3ca85e8e3b8d9828: function() { return handleError(function (arg0, arg1) {
|
|
248
|
+
const ret = getObject(arg0).connect(getObject(arg1));
|
|
249
|
+
return addHeapObject(ret);
|
|
250
|
+
}, arguments); },
|
|
251
|
+
__wbg_connected_8628961b3a47d6ce: function(arg0) {
|
|
252
|
+
const ret = getObject(arg0).connected;
|
|
253
|
+
return ret;
|
|
254
|
+
},
|
|
255
|
+
__wbg_copyBufferToBuffer_5473c4c6a0f798fc: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
256
|
+
getObject(arg0).copyBufferToBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5);
|
|
257
|
+
}, arguments); },
|
|
258
|
+
__wbg_createBindGroupLayout_38abd4e4c5dded7c: function() { return handleError(function (arg0, arg1) {
|
|
259
|
+
const ret = getObject(arg0).createBindGroupLayout(getObject(arg1));
|
|
260
|
+
return addHeapObject(ret);
|
|
261
|
+
}, arguments); },
|
|
262
|
+
__wbg_createBufferSource_7102af74fcd1a840: function() { return handleError(function (arg0) {
|
|
263
|
+
const ret = getObject(arg0).createBufferSource();
|
|
264
|
+
return addHeapObject(ret);
|
|
265
|
+
}, arguments); },
|
|
266
|
+
__wbg_createBuffer_3fce72a987f07f6a: function() { return handleError(function (arg0, arg1) {
|
|
267
|
+
const ret = getObject(arg0).createBuffer(getObject(arg1));
|
|
268
|
+
return addHeapObject(ret);
|
|
269
|
+
}, arguments); },
|
|
270
|
+
__wbg_createCommandEncoder_9b0d0f644b01b53d: function(arg0, arg1) {
|
|
271
|
+
const ret = getObject(arg0).createCommandEncoder(getObject(arg1));
|
|
272
|
+
return addHeapObject(ret);
|
|
273
|
+
},
|
|
274
|
+
__wbg_createGain_94d1140dbe2da90d: function() { return handleError(function (arg0) {
|
|
275
|
+
const ret = getObject(arg0).createGain();
|
|
276
|
+
return addHeapObject(ret);
|
|
277
|
+
}, arguments); },
|
|
278
|
+
__wbg_createPanner_0ceb502789696026: function() { return handleError(function (arg0) {
|
|
279
|
+
const ret = getObject(arg0).createPanner();
|
|
280
|
+
return addHeapObject(ret);
|
|
281
|
+
}, arguments); },
|
|
282
|
+
__wbg_createPipelineLayout_10a02d78a5e801aa: function(arg0, arg1) {
|
|
283
|
+
const ret = getObject(arg0).createPipelineLayout(getObject(arg1));
|
|
284
|
+
return addHeapObject(ret);
|
|
285
|
+
},
|
|
286
|
+
__wbg_createQuerySet_89da7b5240bd3640: function() { return handleError(function (arg0, arg1) {
|
|
287
|
+
const ret = getObject(arg0).createQuerySet(getObject(arg1));
|
|
288
|
+
return addHeapObject(ret);
|
|
289
|
+
}, arguments); },
|
|
290
|
+
__wbg_createSampler_dfafeaada8a50f77: function(arg0, arg1) {
|
|
291
|
+
const ret = getObject(arg0).createSampler(getObject(arg1));
|
|
292
|
+
return addHeapObject(ret);
|
|
293
|
+
},
|
|
294
|
+
__wbg_createShaderModule_c951549f9d218b6a: function(arg0, arg1) {
|
|
295
|
+
const ret = getObject(arg0).createShaderModule(getObject(arg1));
|
|
296
|
+
return addHeapObject(ret);
|
|
297
|
+
},
|
|
298
|
+
__wbg_createTexture_7de0f1ac17578a0c: function() { return handleError(function (arg0, arg1) {
|
|
299
|
+
const ret = getObject(arg0).createTexture(getObject(arg1));
|
|
300
|
+
return addHeapObject(ret);
|
|
301
|
+
}, arguments); },
|
|
302
|
+
__wbg_createView_ad451ea74ed4172f: function() { return handleError(function (arg0, arg1) {
|
|
303
|
+
const ret = getObject(arg0).createView(getObject(arg1));
|
|
304
|
+
return addHeapObject(ret);
|
|
305
|
+
}, arguments); },
|
|
306
|
+
__wbg_ctrlKey_a41da599a72ee93d: function(arg0) {
|
|
307
|
+
const ret = getObject(arg0).ctrlKey;
|
|
308
|
+
return ret;
|
|
309
|
+
},
|
|
310
|
+
__wbg_currentTime_5f6bbe3d7b1a6fbf: function(arg0) {
|
|
311
|
+
const ret = getObject(arg0).currentTime;
|
|
312
|
+
return ret;
|
|
313
|
+
},
|
|
314
|
+
__wbg_data_50c361f7a344d1b9: function(arg0, arg1) {
|
|
315
|
+
const ret = getObject(arg1).data;
|
|
316
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
317
|
+
var len1 = WASM_VECTOR_LEN;
|
|
318
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
319
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
320
|
+
},
|
|
321
|
+
__wbg_decodeAudioData_0749ad444f0dec4e: function() { return handleError(function (arg0, arg1) {
|
|
322
|
+
const ret = getObject(arg0).decodeAudioData(getObject(arg1));
|
|
323
|
+
return addHeapObject(ret);
|
|
324
|
+
}, arguments); },
|
|
325
|
+
__wbg_deltaMode_e239727f16c7ad68: function(arg0) {
|
|
326
|
+
const ret = getObject(arg0).deltaMode;
|
|
327
|
+
return ret;
|
|
328
|
+
},
|
|
329
|
+
__wbg_deltaX_74ad854454fab779: function(arg0) {
|
|
330
|
+
const ret = getObject(arg0).deltaX;
|
|
331
|
+
return ret;
|
|
332
|
+
},
|
|
333
|
+
__wbg_deltaY_c6ccae416e166d01: function(arg0) {
|
|
334
|
+
const ret = getObject(arg0).deltaY;
|
|
335
|
+
return ret;
|
|
336
|
+
},
|
|
337
|
+
__wbg_destination_d1f70fe081ff0932: function(arg0) {
|
|
338
|
+
const ret = getObject(arg0).destination;
|
|
339
|
+
return addHeapObject(ret);
|
|
340
|
+
},
|
|
341
|
+
__wbg_devicePixelRatio_c36a5fab28da634e: function(arg0) {
|
|
342
|
+
const ret = getObject(arg0).devicePixelRatio;
|
|
343
|
+
return ret;
|
|
344
|
+
},
|
|
345
|
+
__wbg_document_c0320cd4183c6d9b: function(arg0) {
|
|
346
|
+
const ret = getObject(arg0).document;
|
|
347
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
348
|
+
},
|
|
349
|
+
__wbg_duration_d8deec647addb21e: function(arg0) {
|
|
350
|
+
const ret = getObject(arg0).duration;
|
|
351
|
+
return ret;
|
|
352
|
+
},
|
|
353
|
+
__wbg_features_b943826ea0734d5b: function(arg0) {
|
|
354
|
+
const ret = getObject(arg0).features;
|
|
355
|
+
return addHeapObject(ret);
|
|
356
|
+
},
|
|
357
|
+
__wbg_finish_1f441b2d9fcf60d0: function(arg0, arg1) {
|
|
358
|
+
const ret = getObject(arg0).finish(getObject(arg1));
|
|
359
|
+
return addHeapObject(ret);
|
|
360
|
+
},
|
|
361
|
+
__wbg_finish_d4f7f2d108f44fc0: function(arg0) {
|
|
362
|
+
const ret = getObject(arg0).finish();
|
|
363
|
+
return addHeapObject(ret);
|
|
364
|
+
},
|
|
365
|
+
__wbg_from_4bdf88943703fd48: function(arg0) {
|
|
366
|
+
const ret = Array.from(getObject(arg0));
|
|
367
|
+
return addHeapObject(ret);
|
|
368
|
+
},
|
|
369
|
+
__wbg_gain_c5b40ffb38909ac5: function(arg0) {
|
|
370
|
+
const ret = getObject(arg0).gain;
|
|
371
|
+
return addHeapObject(ret);
|
|
372
|
+
},
|
|
373
|
+
__wbg_getBoundingClientRect_b236f2e393fd0e7a: function(arg0) {
|
|
374
|
+
const ret = getObject(arg0).getBoundingClientRect();
|
|
375
|
+
return addHeapObject(ret);
|
|
376
|
+
},
|
|
377
|
+
__wbg_getContext_f04bf8f22dcb2d53: function() { return handleError(function (arg0, arg1, arg2) {
|
|
378
|
+
const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2));
|
|
379
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
380
|
+
}, arguments); },
|
|
381
|
+
__wbg_getElementById_d1f25d287b19a833: function(arg0, arg1, arg2) {
|
|
382
|
+
const ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2));
|
|
383
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
384
|
+
},
|
|
385
|
+
__wbg_getGamepads_b179bcbe36d157bd: function() { return handleError(function (arg0) {
|
|
386
|
+
const ret = getObject(arg0).getGamepads();
|
|
387
|
+
return addHeapObject(ret);
|
|
388
|
+
}, arguments); },
|
|
389
|
+
__wbg_getPreferredCanvasFormat_2a0a2628959bb15a: function(arg0) {
|
|
390
|
+
const ret = getObject(arg0).getPreferredCanvasFormat();
|
|
391
|
+
return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 96) - 1;
|
|
392
|
+
},
|
|
393
|
+
__wbg_get_3ef1eba1850ade27: function() { return handleError(function (arg0, arg1) {
|
|
394
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
395
|
+
return addHeapObject(ret);
|
|
396
|
+
}, arguments); },
|
|
397
|
+
__wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
|
|
398
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
399
|
+
return addHeapObject(ret);
|
|
400
|
+
},
|
|
401
|
+
__wbg_gpu_0d39e2c1a52c373e: function(arg0) {
|
|
402
|
+
const ret = getObject(arg0).gpu;
|
|
403
|
+
return addHeapObject(ret);
|
|
404
|
+
},
|
|
405
|
+
__wbg_hasFocus_40081865140fa6ee: function() { return handleError(function (arg0) {
|
|
406
|
+
const ret = getObject(arg0).hasFocus();
|
|
407
|
+
return ret;
|
|
408
|
+
}, arguments); },
|
|
409
|
+
__wbg_has_bc6cd87d7cf293b7: function(arg0, arg1, arg2) {
|
|
410
|
+
const ret = getObject(arg0).has(getStringFromWasm0(arg1, arg2));
|
|
411
|
+
return ret;
|
|
412
|
+
},
|
|
413
|
+
__wbg_height_6568c4427c3b889d: function(arg0) {
|
|
414
|
+
const ret = getObject(arg0).height;
|
|
415
|
+
return ret;
|
|
416
|
+
},
|
|
417
|
+
__wbg_height_75b0d10baf97e535: function(arg0) {
|
|
418
|
+
const ret = getObject(arg0).height;
|
|
419
|
+
return ret;
|
|
420
|
+
},
|
|
421
|
+
__wbg_id_26bc2771d7af1b86: function(arg0, arg1) {
|
|
422
|
+
const ret = getObject(arg1).id;
|
|
423
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
424
|
+
const len1 = WASM_VECTOR_LEN;
|
|
425
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
426
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
427
|
+
},
|
|
428
|
+
__wbg_instanceof_AudioBuffer_1f2236318bbff7aa: function(arg0) {
|
|
429
|
+
let result;
|
|
430
|
+
try {
|
|
431
|
+
result = getObject(arg0) instanceof AudioBuffer;
|
|
432
|
+
} catch (_) {
|
|
433
|
+
result = false;
|
|
434
|
+
}
|
|
435
|
+
const ret = result;
|
|
436
|
+
return ret;
|
|
437
|
+
},
|
|
438
|
+
__wbg_instanceof_CompositionEvent_b9eb32aaeba78da9: function(arg0) {
|
|
439
|
+
let result;
|
|
440
|
+
try {
|
|
441
|
+
result = getObject(arg0) instanceof CompositionEvent;
|
|
442
|
+
} catch (_) {
|
|
443
|
+
result = false;
|
|
444
|
+
}
|
|
445
|
+
const ret = result;
|
|
446
|
+
return ret;
|
|
447
|
+
},
|
|
448
|
+
__wbg_instanceof_GamepadButton_0b2c2463b9f5ec4c: function(arg0) {
|
|
449
|
+
let result;
|
|
450
|
+
try {
|
|
451
|
+
result = getObject(arg0) instanceof GamepadButton;
|
|
452
|
+
} catch (_) {
|
|
453
|
+
result = false;
|
|
454
|
+
}
|
|
455
|
+
const ret = result;
|
|
456
|
+
return ret;
|
|
457
|
+
},
|
|
458
|
+
__wbg_instanceof_Gamepad_4f53540eb0de077d: function(arg0) {
|
|
459
|
+
let result;
|
|
460
|
+
try {
|
|
461
|
+
result = getObject(arg0) instanceof Gamepad;
|
|
462
|
+
} catch (_) {
|
|
463
|
+
result = false;
|
|
464
|
+
}
|
|
465
|
+
const ret = result;
|
|
466
|
+
return ret;
|
|
467
|
+
},
|
|
468
|
+
__wbg_instanceof_GpuAdapter_b2c1300e425af95c: function(arg0) {
|
|
469
|
+
let result;
|
|
470
|
+
try {
|
|
471
|
+
result = getObject(arg0) instanceof GPUAdapter;
|
|
472
|
+
} catch (_) {
|
|
473
|
+
result = false;
|
|
474
|
+
}
|
|
475
|
+
const ret = result;
|
|
476
|
+
return ret;
|
|
477
|
+
},
|
|
478
|
+
__wbg_instanceof_GpuCanvasContext_c9b75b4b7dc7555e: function(arg0) {
|
|
479
|
+
let result;
|
|
480
|
+
try {
|
|
481
|
+
result = getObject(arg0) instanceof GPUCanvasContext;
|
|
482
|
+
} catch (_) {
|
|
483
|
+
result = false;
|
|
484
|
+
}
|
|
485
|
+
const ret = result;
|
|
486
|
+
return ret;
|
|
487
|
+
},
|
|
488
|
+
__wbg_instanceof_HtmlCanvasElement_26125339f936be50: function(arg0) {
|
|
489
|
+
let result;
|
|
490
|
+
try {
|
|
491
|
+
result = getObject(arg0) instanceof HTMLCanvasElement;
|
|
492
|
+
} catch (_) {
|
|
493
|
+
result = false;
|
|
494
|
+
}
|
|
495
|
+
const ret = result;
|
|
496
|
+
return ret;
|
|
497
|
+
},
|
|
498
|
+
__wbg_instanceof_KeyboardEvent_b75e17d5aabde4f1: function(arg0) {
|
|
499
|
+
let result;
|
|
500
|
+
try {
|
|
501
|
+
result = getObject(arg0) instanceof KeyboardEvent;
|
|
502
|
+
} catch (_) {
|
|
503
|
+
result = false;
|
|
504
|
+
}
|
|
505
|
+
const ret = result;
|
|
506
|
+
return ret;
|
|
507
|
+
},
|
|
508
|
+
__wbg_instanceof_PointerEvent_7247ef480dd6ffb9: function(arg0) {
|
|
509
|
+
let result;
|
|
510
|
+
try {
|
|
511
|
+
result = getObject(arg0) instanceof PointerEvent;
|
|
512
|
+
} catch (_) {
|
|
513
|
+
result = false;
|
|
514
|
+
}
|
|
515
|
+
const ret = result;
|
|
516
|
+
return ret;
|
|
517
|
+
},
|
|
518
|
+
__wbg_instanceof_WheelEvent_7d954cc8de0d5525: function(arg0) {
|
|
519
|
+
let result;
|
|
520
|
+
try {
|
|
521
|
+
result = getObject(arg0) instanceof WheelEvent;
|
|
522
|
+
} catch (_) {
|
|
523
|
+
result = false;
|
|
524
|
+
}
|
|
525
|
+
const ret = result;
|
|
526
|
+
return ret;
|
|
527
|
+
},
|
|
528
|
+
__wbg_instanceof_Window_23e677d2c6843922: function(arg0) {
|
|
529
|
+
let result;
|
|
530
|
+
try {
|
|
531
|
+
result = getObject(arg0) instanceof Window;
|
|
532
|
+
} catch (_) {
|
|
533
|
+
result = false;
|
|
534
|
+
}
|
|
535
|
+
const ret = result;
|
|
536
|
+
return ret;
|
|
537
|
+
},
|
|
538
|
+
__wbg_isComposing_dd7318483a13f438: function(arg0) {
|
|
539
|
+
const ret = getObject(arg0).isComposing;
|
|
540
|
+
return ret;
|
|
541
|
+
},
|
|
542
|
+
__wbg_key_99eb0f0a1000963d: function(arg0, arg1) {
|
|
543
|
+
const ret = getObject(arg1).key;
|
|
544
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
545
|
+
const len1 = WASM_VECTOR_LEN;
|
|
546
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
547
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
548
|
+
},
|
|
549
|
+
__wbg_label_dfb771c49b8a7920: function(arg0, arg1) {
|
|
550
|
+
const ret = getObject(arg1).label;
|
|
551
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
552
|
+
const len1 = WASM_VECTOR_LEN;
|
|
553
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
554
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
555
|
+
},
|
|
556
|
+
__wbg_left_0050d4abe2736ee9: function(arg0) {
|
|
557
|
+
const ret = getObject(arg0).left;
|
|
558
|
+
return ret;
|
|
559
|
+
},
|
|
560
|
+
__wbg_length_b3416cf66a5452c8: function(arg0) {
|
|
561
|
+
const ret = getObject(arg0).length;
|
|
562
|
+
return ret;
|
|
563
|
+
},
|
|
564
|
+
__wbg_limits_b07b967d1572556f: function(arg0) {
|
|
565
|
+
const ret = getObject(arg0).limits;
|
|
566
|
+
return addHeapObject(ret);
|
|
567
|
+
},
|
|
568
|
+
__wbg_listener_7efafec03e6675f0: function(arg0) {
|
|
569
|
+
const ret = getObject(arg0).listener;
|
|
570
|
+
return addHeapObject(ret);
|
|
571
|
+
},
|
|
572
|
+
__wbg_location_cb6f3af6ad563d81: function(arg0) {
|
|
573
|
+
const ret = getObject(arg0).location;
|
|
574
|
+
return ret;
|
|
575
|
+
},
|
|
576
|
+
__wbg_mapAsync_7767a9f33865861e: function(arg0, arg1, arg2, arg3) {
|
|
577
|
+
const ret = getObject(arg0).mapAsync(arg1 >>> 0, arg2, arg3);
|
|
578
|
+
return addHeapObject(ret);
|
|
579
|
+
},
|
|
580
|
+
__wbg_maxBindGroups_55dde09639db12ab: function(arg0) {
|
|
581
|
+
const ret = getObject(arg0).maxBindGroups;
|
|
582
|
+
return ret;
|
|
583
|
+
},
|
|
584
|
+
__wbg_maxBindingsPerBindGroup_2835632451416187: function(arg0) {
|
|
585
|
+
const ret = getObject(arg0).maxBindingsPerBindGroup;
|
|
586
|
+
return ret;
|
|
587
|
+
},
|
|
588
|
+
__wbg_maxBufferSize_05d399497c03b182: function(arg0) {
|
|
589
|
+
const ret = getObject(arg0).maxBufferSize;
|
|
590
|
+
return ret;
|
|
591
|
+
},
|
|
592
|
+
__wbg_maxColorAttachmentBytesPerSample_69fc9671bd9e83cb: function(arg0) {
|
|
593
|
+
const ret = getObject(arg0).maxColorAttachmentBytesPerSample;
|
|
594
|
+
return ret;
|
|
595
|
+
},
|
|
596
|
+
__wbg_maxColorAttachments_50f9613d30a909ed: function(arg0) {
|
|
597
|
+
const ret = getObject(arg0).maxColorAttachments;
|
|
598
|
+
return ret;
|
|
599
|
+
},
|
|
600
|
+
__wbg_maxComputeInvocationsPerWorkgroup_0db49fa67b3ed3b2: function(arg0) {
|
|
601
|
+
const ret = getObject(arg0).maxComputeInvocationsPerWorkgroup;
|
|
602
|
+
return ret;
|
|
603
|
+
},
|
|
604
|
+
__wbg_maxComputeWorkgroupSizeX_f4010b0a3f57f191: function(arg0) {
|
|
605
|
+
const ret = getObject(arg0).maxComputeWorkgroupSizeX;
|
|
606
|
+
return ret;
|
|
607
|
+
},
|
|
608
|
+
__wbg_maxComputeWorkgroupSizeY_537dd88bea1134a2: function(arg0) {
|
|
609
|
+
const ret = getObject(arg0).maxComputeWorkgroupSizeY;
|
|
610
|
+
return ret;
|
|
611
|
+
},
|
|
612
|
+
__wbg_maxComputeWorkgroupSizeZ_12ddaf5bc7c07f6c: function(arg0) {
|
|
613
|
+
const ret = getObject(arg0).maxComputeWorkgroupSizeZ;
|
|
614
|
+
return ret;
|
|
615
|
+
},
|
|
616
|
+
__wbg_maxComputeWorkgroupStorageSize_863c259d2cb0a769: function(arg0) {
|
|
617
|
+
const ret = getObject(arg0).maxComputeWorkgroupStorageSize;
|
|
618
|
+
return ret;
|
|
619
|
+
},
|
|
620
|
+
__wbg_maxComputeWorkgroupsPerDimension_a29df48716e5e15f: function(arg0) {
|
|
621
|
+
const ret = getObject(arg0).maxComputeWorkgroupsPerDimension;
|
|
622
|
+
return ret;
|
|
623
|
+
},
|
|
624
|
+
__wbg_maxDynamicStorageBuffersPerPipelineLayout_59546d50fbd3f282: function(arg0) {
|
|
625
|
+
const ret = getObject(arg0).maxDynamicStorageBuffersPerPipelineLayout;
|
|
626
|
+
return ret;
|
|
627
|
+
},
|
|
628
|
+
__wbg_maxDynamicUniformBuffersPerPipelineLayout_205b4e7a23eca1a7: function(arg0) {
|
|
629
|
+
const ret = getObject(arg0).maxDynamicUniformBuffersPerPipelineLayout;
|
|
630
|
+
return ret;
|
|
631
|
+
},
|
|
632
|
+
__wbg_maxSampledTexturesPerShaderStage_f3b7cf6a46dd4e89: function(arg0) {
|
|
633
|
+
const ret = getObject(arg0).maxSampledTexturesPerShaderStage;
|
|
634
|
+
return ret;
|
|
635
|
+
},
|
|
636
|
+
__wbg_maxSamplersPerShaderStage_4c8b533d64aaa111: function(arg0) {
|
|
637
|
+
const ret = getObject(arg0).maxSamplersPerShaderStage;
|
|
638
|
+
return ret;
|
|
639
|
+
},
|
|
640
|
+
__wbg_maxStorageBufferBindingSize_d9bcab29fa726c41: function(arg0) {
|
|
641
|
+
const ret = getObject(arg0).maxStorageBufferBindingSize;
|
|
642
|
+
return ret;
|
|
643
|
+
},
|
|
644
|
+
__wbg_maxStorageBuffersPerShaderStage_702a6bd12350075d: function(arg0) {
|
|
645
|
+
const ret = getObject(arg0).maxStorageBuffersPerShaderStage;
|
|
646
|
+
return ret;
|
|
647
|
+
},
|
|
648
|
+
__wbg_maxStorageTexturesPerShaderStage_d7c93fd5510086ee: function(arg0) {
|
|
649
|
+
const ret = getObject(arg0).maxStorageTexturesPerShaderStage;
|
|
650
|
+
return ret;
|
|
651
|
+
},
|
|
652
|
+
__wbg_maxTextureArrayLayers_02a20ef4b596a9ad: function(arg0) {
|
|
653
|
+
const ret = getObject(arg0).maxTextureArrayLayers;
|
|
654
|
+
return ret;
|
|
655
|
+
},
|
|
656
|
+
__wbg_maxTextureDimension1D_c4c3a0ab186f5d87: function(arg0) {
|
|
657
|
+
const ret = getObject(arg0).maxTextureDimension1D;
|
|
658
|
+
return ret;
|
|
659
|
+
},
|
|
660
|
+
__wbg_maxTextureDimension2D_f979c4fc87e3b3aa: function(arg0) {
|
|
661
|
+
const ret = getObject(arg0).maxTextureDimension2D;
|
|
662
|
+
return ret;
|
|
663
|
+
},
|
|
664
|
+
__wbg_maxTextureDimension3D_d3425844dc223af1: function(arg0) {
|
|
665
|
+
const ret = getObject(arg0).maxTextureDimension3D;
|
|
666
|
+
return ret;
|
|
667
|
+
},
|
|
668
|
+
__wbg_maxUniformBufferBindingSize_84331a664e6da5ed: function(arg0) {
|
|
669
|
+
const ret = getObject(arg0).maxUniformBufferBindingSize;
|
|
670
|
+
return ret;
|
|
671
|
+
},
|
|
672
|
+
__wbg_maxUniformBuffersPerShaderStage_8209dfce1612ddb7: function(arg0) {
|
|
673
|
+
const ret = getObject(arg0).maxUniformBuffersPerShaderStage;
|
|
674
|
+
return ret;
|
|
675
|
+
},
|
|
676
|
+
__wbg_maxVertexAttributes_8156247eccc99918: function(arg0) {
|
|
677
|
+
const ret = getObject(arg0).maxVertexAttributes;
|
|
678
|
+
return ret;
|
|
679
|
+
},
|
|
680
|
+
__wbg_maxVertexBufferArrayStride_a6be7dd661b61c6a: function(arg0) {
|
|
681
|
+
const ret = getObject(arg0).maxVertexBufferArrayStride;
|
|
682
|
+
return ret;
|
|
683
|
+
},
|
|
684
|
+
__wbg_maxVertexBuffers_71ca56afa9dd98cd: function(arg0) {
|
|
685
|
+
const ret = getObject(arg0).maxVertexBuffers;
|
|
686
|
+
return ret;
|
|
687
|
+
},
|
|
688
|
+
__wbg_metaKey_09c90f191df1276b: function(arg0) {
|
|
689
|
+
const ret = getObject(arg0).metaKey;
|
|
690
|
+
return ret;
|
|
691
|
+
},
|
|
692
|
+
__wbg_minStorageBufferOffsetAlignment_10b0921761b618e7: function(arg0) {
|
|
693
|
+
const ret = getObject(arg0).minStorageBufferOffsetAlignment;
|
|
694
|
+
return ret;
|
|
695
|
+
},
|
|
696
|
+
__wbg_minUniformBufferOffsetAlignment_afc057dd6b1648ec: function(arg0) {
|
|
697
|
+
const ret = getObject(arg0).minUniformBufferOffsetAlignment;
|
|
698
|
+
return ret;
|
|
699
|
+
},
|
|
700
|
+
__wbg_navigator_583ffd4fc14c0f7a: function(arg0) {
|
|
701
|
+
const ret = getObject(arg0).navigator;
|
|
702
|
+
return addHeapObject(ret);
|
|
703
|
+
},
|
|
704
|
+
__wbg_navigator_9cebf56f28aa719b: function(arg0) {
|
|
705
|
+
const ret = getObject(arg0).navigator;
|
|
706
|
+
return addHeapObject(ret);
|
|
707
|
+
},
|
|
708
|
+
__wbg_new_5e532409c6c7bba4: function() { return handleError(function () {
|
|
709
|
+
const ret = new lAudioContext();
|
|
710
|
+
return addHeapObject(ret);
|
|
711
|
+
}, arguments); },
|
|
712
|
+
__wbg_new_ab79df5bd7c26067: function() {
|
|
713
|
+
const ret = new Object();
|
|
714
|
+
return addHeapObject(ret);
|
|
715
|
+
},
|
|
716
|
+
__wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
|
|
717
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
718
|
+
return addHeapObject(ret);
|
|
719
|
+
},
|
|
720
|
+
__wbg_new_typed_bccac67128ed885a: function() {
|
|
721
|
+
const ret = new Array();
|
|
722
|
+
return addHeapObject(ret);
|
|
723
|
+
},
|
|
724
|
+
__wbg_now_16f0c993d5dd6c27: function() {
|
|
725
|
+
const ret = Date.now();
|
|
726
|
+
return ret;
|
|
727
|
+
},
|
|
728
|
+
__wbg_onSubmittedWorkDone_a33e32762de21b3d: function(arg0) {
|
|
729
|
+
const ret = getObject(arg0).onSubmittedWorkDone();
|
|
730
|
+
return addHeapObject(ret);
|
|
731
|
+
},
|
|
732
|
+
__wbg_playbackRate_53ab6902d4c67665: function(arg0) {
|
|
733
|
+
const ret = getObject(arg0).playbackRate;
|
|
734
|
+
return addHeapObject(ret);
|
|
735
|
+
},
|
|
736
|
+
__wbg_pointerId_85ff21be7b52f43e: function(arg0) {
|
|
737
|
+
const ret = getObject(arg0).pointerId;
|
|
738
|
+
return ret;
|
|
739
|
+
},
|
|
740
|
+
__wbg_pointerType_02525bef1df5f79c: function(arg0, arg1) {
|
|
741
|
+
const ret = getObject(arg1).pointerType;
|
|
742
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
743
|
+
const len1 = WASM_VECTOR_LEN;
|
|
744
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
745
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
746
|
+
},
|
|
747
|
+
__wbg_pressed_04111050e054a5e8: function(arg0) {
|
|
748
|
+
const ret = getObject(arg0).pressed;
|
|
749
|
+
return ret;
|
|
750
|
+
},
|
|
751
|
+
__wbg_push_e87b0e732085a946: function(arg0, arg1) {
|
|
752
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
753
|
+
return ret;
|
|
754
|
+
},
|
|
755
|
+
__wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
|
|
756
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
757
|
+
return addHeapObject(ret);
|
|
758
|
+
},
|
|
759
|
+
__wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
|
|
760
|
+
queueMicrotask(getObject(arg0));
|
|
761
|
+
},
|
|
762
|
+
__wbg_queue_451a2aa83c786578: function(arg0) {
|
|
763
|
+
const ret = getObject(arg0).queue;
|
|
764
|
+
return addHeapObject(ret);
|
|
765
|
+
},
|
|
766
|
+
__wbg_removeEventListener_d27694700fc0df8b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
767
|
+
getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
768
|
+
}, arguments); },
|
|
769
|
+
__wbg_repeat_44d6eeebd275606f: function(arg0) {
|
|
770
|
+
const ret = getObject(arg0).repeat;
|
|
771
|
+
return ret;
|
|
772
|
+
},
|
|
773
|
+
__wbg_requestAdapter_3cddf363b0bc9baf: function(arg0, arg1) {
|
|
774
|
+
const ret = getObject(arg0).requestAdapter(getObject(arg1));
|
|
775
|
+
return addHeapObject(ret);
|
|
776
|
+
},
|
|
777
|
+
__wbg_requestAnimationFrame_206c97f410e7a383: function() { return handleError(function (arg0, arg1) {
|
|
778
|
+
const ret = getObject(arg0).requestAnimationFrame(getObject(arg1));
|
|
779
|
+
return ret;
|
|
780
|
+
}, arguments); },
|
|
781
|
+
__wbg_requestDevice_7dd355306bacbcd8: function(arg0, arg1) {
|
|
782
|
+
const ret = getObject(arg0).requestDevice(getObject(arg1));
|
|
783
|
+
return addHeapObject(ret);
|
|
784
|
+
},
|
|
785
|
+
__wbg_resolve_ae8d83246e5bcc12: function(arg0) {
|
|
786
|
+
const ret = Promise.resolve(getObject(arg0));
|
|
787
|
+
return addHeapObject(ret);
|
|
788
|
+
},
|
|
789
|
+
__wbg_setOrientation_1b21b05a48223336: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
790
|
+
getObject(arg0).setOrientation(arg1, arg2, arg3, arg4, arg5, arg6);
|
|
791
|
+
},
|
|
792
|
+
__wbg_setOrientation_d4a6ce904b0e3c0a: function(arg0, arg1, arg2, arg3) {
|
|
793
|
+
getObject(arg0).setOrientation(arg1, arg2, arg3);
|
|
794
|
+
},
|
|
795
|
+
__wbg_setPosition_31da8fd878c80607: function(arg0, arg1, arg2, arg3) {
|
|
796
|
+
getObject(arg0).setPosition(arg1, arg2, arg3);
|
|
797
|
+
},
|
|
798
|
+
__wbg_setPosition_a2c722e8e6486df6: function(arg0, arg1, arg2, arg3) {
|
|
799
|
+
getObject(arg0).setPosition(arg1, arg2, arg3);
|
|
800
|
+
},
|
|
801
|
+
__wbg_set_7eaa4f96924fd6b3: function() { return handleError(function (arg0, arg1, arg2) {
|
|
802
|
+
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
803
|
+
return ret;
|
|
804
|
+
}, arguments); },
|
|
805
|
+
__wbg_set_access_9d39f60326d67278: function(arg0, arg1) {
|
|
806
|
+
getObject(arg0).access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
|
|
807
|
+
},
|
|
808
|
+
__wbg_set_address_mode_u_8c8aaf2ccebb3e8d: function(arg0, arg1) {
|
|
809
|
+
getObject(arg0).addressModeU = __wbindgen_enum_GpuAddressMode[arg1];
|
|
810
|
+
},
|
|
811
|
+
__wbg_set_address_mode_v_252818714ab5937f: function(arg0, arg1) {
|
|
812
|
+
getObject(arg0).addressModeV = __wbindgen_enum_GpuAddressMode[arg1];
|
|
813
|
+
},
|
|
814
|
+
__wbg_set_address_mode_w_d617929f92a5b8cc: function(arg0, arg1) {
|
|
815
|
+
getObject(arg0).addressModeW = __wbindgen_enum_GpuAddressMode[arg1];
|
|
816
|
+
},
|
|
817
|
+
__wbg_set_alpha_mode_1ae7e0aa38a8eba8: function(arg0, arg1) {
|
|
818
|
+
getObject(arg0).alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
|
|
819
|
+
},
|
|
820
|
+
__wbg_set_array_layer_count_83a40d42f8858bba: function(arg0, arg1) {
|
|
821
|
+
getObject(arg0).arrayLayerCount = arg1 >>> 0;
|
|
822
|
+
},
|
|
823
|
+
__wbg_set_aspect_9d30d9ca40403001: function(arg0, arg1) {
|
|
824
|
+
getObject(arg0).aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
825
|
+
},
|
|
826
|
+
__wbg_set_aspect_f231ddb55e5c30eb: function(arg0, arg1) {
|
|
827
|
+
getObject(arg0).aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
828
|
+
},
|
|
829
|
+
__wbg_set_base_array_layer_f8f8eb2d7bd5eb65: function(arg0, arg1) {
|
|
830
|
+
getObject(arg0).baseArrayLayer = arg1 >>> 0;
|
|
831
|
+
},
|
|
832
|
+
__wbg_set_base_mip_level_41735f9b982a26b8: function(arg0, arg1) {
|
|
833
|
+
getObject(arg0).baseMipLevel = arg1 >>> 0;
|
|
834
|
+
},
|
|
835
|
+
__wbg_set_bind_group_layouts_ddc70fed7170a2ee: function(arg0, arg1) {
|
|
836
|
+
getObject(arg0).bindGroupLayouts = getObject(arg1);
|
|
837
|
+
},
|
|
838
|
+
__wbg_set_binding_d82fdc5364e5b0c5: function(arg0, arg1) {
|
|
839
|
+
getObject(arg0).binding = arg1 >>> 0;
|
|
840
|
+
},
|
|
841
|
+
__wbg_set_buffer_0c946e9b46823a5c: function(arg0, arg1) {
|
|
842
|
+
getObject(arg0).buffer = getObject(arg1);
|
|
843
|
+
},
|
|
844
|
+
__wbg_set_buffer_ea42becad62e7650: function(arg0, arg1) {
|
|
845
|
+
getObject(arg0).buffer = getObject(arg1);
|
|
846
|
+
},
|
|
847
|
+
__wbg_set_bytes_per_row_8e39002b1f627e4d: function(arg0, arg1) {
|
|
848
|
+
getObject(arg0).bytesPerRow = arg1 >>> 0;
|
|
849
|
+
},
|
|
850
|
+
__wbg_set_code_7a3890c4ffd4f7d4: function(arg0, arg1, arg2) {
|
|
851
|
+
getObject(arg0).code = getStringFromWasm0(arg1, arg2);
|
|
852
|
+
},
|
|
853
|
+
__wbg_set_compare_494fcab2dc5d7792: function(arg0, arg1) {
|
|
854
|
+
getObject(arg0).compare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
855
|
+
},
|
|
856
|
+
__wbg_set_coneInnerAngle_0d52a3a55113aff7: function(arg0, arg1) {
|
|
857
|
+
getObject(arg0).coneInnerAngle = arg1;
|
|
858
|
+
},
|
|
859
|
+
__wbg_set_coneOuterAngle_9725e9d35621ff87: function(arg0, arg1) {
|
|
860
|
+
getObject(arg0).coneOuterAngle = arg1;
|
|
861
|
+
},
|
|
862
|
+
__wbg_set_coneOuterGain_73d4779f24b178a4: function(arg0, arg1) {
|
|
863
|
+
getObject(arg0).coneOuterGain = arg1;
|
|
864
|
+
},
|
|
865
|
+
__wbg_set_count_a9eaef363f94ce4a: function(arg0, arg1) {
|
|
866
|
+
getObject(arg0).count = arg1 >>> 0;
|
|
867
|
+
},
|
|
868
|
+
__wbg_set_depth_or_array_layers_3601a844f36fa25f: function(arg0, arg1) {
|
|
869
|
+
getObject(arg0).depthOrArrayLayers = arg1 >>> 0;
|
|
870
|
+
},
|
|
871
|
+
__wbg_set_device_7a51a7721914c23c: function(arg0, arg1) {
|
|
872
|
+
getObject(arg0).device = getObject(arg1);
|
|
873
|
+
},
|
|
874
|
+
__wbg_set_dimension_9cfe90d02f664a7a: function(arg0, arg1) {
|
|
875
|
+
getObject(arg0).dimension = __wbindgen_enum_GpuTextureDimension[arg1];
|
|
876
|
+
},
|
|
877
|
+
__wbg_set_dimension_b61b3c48adf487c1: function(arg0, arg1) {
|
|
878
|
+
getObject(arg0).dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
879
|
+
},
|
|
880
|
+
__wbg_set_entries_922ec6089646247e: function(arg0, arg1) {
|
|
881
|
+
getObject(arg0).entries = getObject(arg1);
|
|
882
|
+
},
|
|
883
|
+
__wbg_set_external_texture_41cadb0b9faf1919: function(arg0, arg1) {
|
|
884
|
+
getObject(arg0).externalTexture = getObject(arg1);
|
|
885
|
+
},
|
|
886
|
+
__wbg_set_format_09f304cdbee40626: function(arg0, arg1) {
|
|
887
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
888
|
+
},
|
|
889
|
+
__wbg_set_format_90502561f5c3fe92: function(arg0, arg1) {
|
|
890
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
891
|
+
},
|
|
892
|
+
__wbg_set_format_98f7ca48143feacb: function(arg0, arg1) {
|
|
893
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
894
|
+
},
|
|
895
|
+
__wbg_set_format_fd82439cf1e1f024: function(arg0, arg1) {
|
|
896
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
897
|
+
},
|
|
898
|
+
__wbg_set_has_dynamic_offset_ebc87f184bf9b1b6: function(arg0, arg1) {
|
|
899
|
+
getObject(arg0).hasDynamicOffset = arg1 !== 0;
|
|
900
|
+
},
|
|
901
|
+
__wbg_set_height_5dc3bf5fd05f449d: function(arg0, arg1) {
|
|
902
|
+
getObject(arg0).height = arg1 >>> 0;
|
|
903
|
+
},
|
|
904
|
+
__wbg_set_height_98a1a397672657e2: function(arg0, arg1) {
|
|
905
|
+
getObject(arg0).height = arg1 >>> 0;
|
|
906
|
+
},
|
|
907
|
+
__wbg_set_height_b6548a01bdcb689a: function(arg0, arg1) {
|
|
908
|
+
getObject(arg0).height = arg1 >>> 0;
|
|
909
|
+
},
|
|
910
|
+
__wbg_set_label_0ca1d80bd2825a5c: function(arg0, arg1, arg2) {
|
|
911
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
912
|
+
},
|
|
913
|
+
__wbg_set_label_15aeeb29a6954be8: function(arg0, arg1, arg2) {
|
|
914
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
915
|
+
},
|
|
916
|
+
__wbg_set_label_2f91d5326490d1cc: function(arg0, arg1, arg2) {
|
|
917
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
918
|
+
},
|
|
919
|
+
__wbg_set_label_565007795fa1b28b: function(arg0, arg1, arg2) {
|
|
920
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
921
|
+
},
|
|
922
|
+
__wbg_set_label_6b0d6041cd54c099: function(arg0, arg1, arg2) {
|
|
923
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
924
|
+
},
|
|
925
|
+
__wbg_set_label_76862276b026aadb: function(arg0, arg1, arg2) {
|
|
926
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
927
|
+
},
|
|
928
|
+
__wbg_set_label_776849dd514350e6: function(arg0, arg1, arg2) {
|
|
929
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
930
|
+
},
|
|
931
|
+
__wbg_set_label_7d273105ca29a945: function(arg0, arg1, arg2) {
|
|
932
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
933
|
+
},
|
|
934
|
+
__wbg_set_label_ccc4850f4197dc22: function(arg0, arg1, arg2) {
|
|
935
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
936
|
+
},
|
|
937
|
+
__wbg_set_label_f601b846b41b7232: function(arg0, arg1, arg2) {
|
|
938
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
939
|
+
},
|
|
940
|
+
__wbg_set_lod_max_clamp_bf825cfbdd106655: function(arg0, arg1) {
|
|
941
|
+
getObject(arg0).lodMaxClamp = arg1;
|
|
942
|
+
},
|
|
943
|
+
__wbg_set_lod_min_clamp_35ccf45d8ee31c7e: function(arg0, arg1) {
|
|
944
|
+
getObject(arg0).lodMinClamp = arg1;
|
|
945
|
+
},
|
|
946
|
+
__wbg_set_loop_0a6d2e1dcd0df03d: function(arg0, arg1) {
|
|
947
|
+
getObject(arg0).loop = arg1 !== 0;
|
|
948
|
+
},
|
|
949
|
+
__wbg_set_mag_filter_8f8d84435d8db92a: function(arg0, arg1) {
|
|
950
|
+
getObject(arg0).magFilter = __wbindgen_enum_GpuFilterMode[arg1];
|
|
951
|
+
},
|
|
952
|
+
__wbg_set_mapped_at_creation_ff06f7ed93a315dd: function(arg0, arg1) {
|
|
953
|
+
getObject(arg0).mappedAtCreation = arg1 !== 0;
|
|
954
|
+
},
|
|
955
|
+
__wbg_set_maxDistance_d0b2f914aaef4ea8: function(arg0, arg1) {
|
|
956
|
+
getObject(arg0).maxDistance = arg1;
|
|
957
|
+
},
|
|
958
|
+
__wbg_set_max_anisotropy_c82fc429f1b1e064: function(arg0, arg1) {
|
|
959
|
+
getObject(arg0).maxAnisotropy = arg1;
|
|
960
|
+
},
|
|
961
|
+
__wbg_set_min_binding_size_746ae443396eb1f4: function(arg0, arg1) {
|
|
962
|
+
getObject(arg0).minBindingSize = arg1;
|
|
963
|
+
},
|
|
964
|
+
__wbg_set_min_filter_fb0add0b126873ab: function(arg0, arg1) {
|
|
965
|
+
getObject(arg0).minFilter = __wbindgen_enum_GpuFilterMode[arg1];
|
|
966
|
+
},
|
|
967
|
+
__wbg_set_mip_level_count_1d3d8f433adfb7ae: function(arg0, arg1) {
|
|
968
|
+
getObject(arg0).mipLevelCount = arg1 >>> 0;
|
|
969
|
+
},
|
|
970
|
+
__wbg_set_mip_level_count_e13846330ea5c4a2: function(arg0, arg1) {
|
|
971
|
+
getObject(arg0).mipLevelCount = arg1 >>> 0;
|
|
972
|
+
},
|
|
973
|
+
__wbg_set_mip_level_f4e04afe7e030b52: function(arg0, arg1) {
|
|
974
|
+
getObject(arg0).mipLevel = arg1 >>> 0;
|
|
975
|
+
},
|
|
976
|
+
__wbg_set_mipmap_filter_202e81e75b49e109: function(arg0, arg1) {
|
|
977
|
+
getObject(arg0).mipmapFilter = __wbindgen_enum_GpuMipmapFilterMode[arg1];
|
|
978
|
+
},
|
|
979
|
+
__wbg_set_multisampled_2180d2b5d246ae13: function(arg0, arg1) {
|
|
980
|
+
getObject(arg0).multisampled = arg1 !== 0;
|
|
981
|
+
},
|
|
982
|
+
__wbg_set_offset_fa633343238c309f: function(arg0, arg1) {
|
|
983
|
+
getObject(arg0).offset = arg1;
|
|
984
|
+
},
|
|
985
|
+
__wbg_set_origin_5531aa268ce97d9d: function(arg0, arg1) {
|
|
986
|
+
getObject(arg0).origin = getObject(arg1);
|
|
987
|
+
},
|
|
988
|
+
__wbg_set_power_preference_f8956c3fea27c41d: function(arg0, arg1) {
|
|
989
|
+
getObject(arg0).powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
|
|
990
|
+
},
|
|
991
|
+
__wbg_set_refDistance_8ea4a5e2e800a09a: function(arg0, arg1) {
|
|
992
|
+
getObject(arg0).refDistance = arg1;
|
|
993
|
+
},
|
|
994
|
+
__wbg_set_required_features_83604ede3c9e0352: function(arg0, arg1) {
|
|
995
|
+
getObject(arg0).requiredFeatures = getObject(arg1);
|
|
996
|
+
},
|
|
997
|
+
__wbg_set_rolloffFactor_329653fa9008d227: function(arg0, arg1) {
|
|
998
|
+
getObject(arg0).rolloffFactor = arg1;
|
|
999
|
+
},
|
|
1000
|
+
__wbg_set_rows_per_image_e38e907b075d42a7: function(arg0, arg1) {
|
|
1001
|
+
getObject(arg0).rowsPerImage = arg1 >>> 0;
|
|
1002
|
+
},
|
|
1003
|
+
__wbg_set_sample_count_eb36fa5f0a856200: function(arg0, arg1) {
|
|
1004
|
+
getObject(arg0).sampleCount = arg1 >>> 0;
|
|
1005
|
+
},
|
|
1006
|
+
__wbg_set_sample_type_fade9fb214ec1d74: function(arg0, arg1) {
|
|
1007
|
+
getObject(arg0).sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
|
|
1008
|
+
},
|
|
1009
|
+
__wbg_set_sampler_e11b32a88597fe6a: function(arg0, arg1) {
|
|
1010
|
+
getObject(arg0).sampler = getObject(arg1);
|
|
1011
|
+
},
|
|
1012
|
+
__wbg_set_size_a15931d6b21f35f9: function(arg0, arg1) {
|
|
1013
|
+
getObject(arg0).size = arg1;
|
|
1014
|
+
},
|
|
1015
|
+
__wbg_set_size_e76794a3069a90d7: function(arg0, arg1) {
|
|
1016
|
+
getObject(arg0).size = getObject(arg1);
|
|
1017
|
+
},
|
|
1018
|
+
__wbg_set_storage_texture_dab6c69662cecb15: function(arg0, arg1) {
|
|
1019
|
+
getObject(arg0).storageTexture = getObject(arg1);
|
|
1020
|
+
},
|
|
1021
|
+
__wbg_set_texture_8732ea1b0f00cc28: function(arg0, arg1) {
|
|
1022
|
+
getObject(arg0).texture = getObject(arg1);
|
|
1023
|
+
},
|
|
1024
|
+
__wbg_set_texture_e3dad6e696ee0d00: function(arg0, arg1) {
|
|
1025
|
+
getObject(arg0).texture = getObject(arg1);
|
|
1026
|
+
},
|
|
1027
|
+
__wbg_set_type_23374c1c5d7ac64c: function(arg0, arg1) {
|
|
1028
|
+
getObject(arg0).type = __wbindgen_enum_GpuQueryType[arg1];
|
|
1029
|
+
},
|
|
1030
|
+
__wbg_set_type_3e89072317fa3a02: function(arg0, arg1) {
|
|
1031
|
+
getObject(arg0).type = __wbindgen_enum_GpuSamplerBindingType[arg1];
|
|
1032
|
+
},
|
|
1033
|
+
__wbg_set_type_fc5fb8ab00ac41ab: function(arg0, arg1) {
|
|
1034
|
+
getObject(arg0).type = __wbindgen_enum_GpuBufferBindingType[arg1];
|
|
1035
|
+
},
|
|
1036
|
+
__wbg_set_usage_215da50f99ff465b: function(arg0, arg1) {
|
|
1037
|
+
getObject(arg0).usage = arg1 >>> 0;
|
|
1038
|
+
},
|
|
1039
|
+
__wbg_set_usage_5fcdce4860170c24: function(arg0, arg1) {
|
|
1040
|
+
getObject(arg0).usage = arg1 >>> 0;
|
|
1041
|
+
},
|
|
1042
|
+
__wbg_set_usage_e78977f1ef3c2dc4: function(arg0, arg1) {
|
|
1043
|
+
getObject(arg0).usage = arg1 >>> 0;
|
|
1044
|
+
},
|
|
1045
|
+
__wbg_set_usage_ece80ba45b896722: function(arg0, arg1) {
|
|
1046
|
+
getObject(arg0).usage = arg1 >>> 0;
|
|
1047
|
+
},
|
|
1048
|
+
__wbg_set_value_4379db49464da2c7: function(arg0, arg1) {
|
|
1049
|
+
getObject(arg0).value = arg1;
|
|
1050
|
+
},
|
|
1051
|
+
__wbg_set_view_dimension_5c6c0dc0d28476c3: function(arg0, arg1) {
|
|
1052
|
+
getObject(arg0).viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
1053
|
+
},
|
|
1054
|
+
__wbg_set_view_dimension_67ac13d87840ccb1: function(arg0, arg1) {
|
|
1055
|
+
getObject(arg0).viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
1056
|
+
},
|
|
1057
|
+
__wbg_set_view_formats_2b4e75efe5453ad6: function(arg0, arg1) {
|
|
1058
|
+
getObject(arg0).viewFormats = getObject(arg1);
|
|
1059
|
+
},
|
|
1060
|
+
__wbg_set_view_formats_6c5369e801fa17b7: function(arg0, arg1) {
|
|
1061
|
+
getObject(arg0).viewFormats = getObject(arg1);
|
|
1062
|
+
},
|
|
1063
|
+
__wbg_set_visibility_22877d2819bea70b: function(arg0, arg1) {
|
|
1064
|
+
getObject(arg0).visibility = arg1 >>> 0;
|
|
1065
|
+
},
|
|
1066
|
+
__wbg_set_width_576343a4a7f2cf28: function(arg0, arg1) {
|
|
1067
|
+
getObject(arg0).width = arg1 >>> 0;
|
|
1068
|
+
},
|
|
1069
|
+
__wbg_set_width_a6d5409d7980ccca: function(arg0, arg1) {
|
|
1070
|
+
getObject(arg0).width = arg1 >>> 0;
|
|
1071
|
+
},
|
|
1072
|
+
__wbg_set_width_c0fcaa2da53cd540: function(arg0, arg1) {
|
|
1073
|
+
getObject(arg0).width = arg1 >>> 0;
|
|
1074
|
+
},
|
|
1075
|
+
__wbg_set_x_40188fe21190a1a8: function(arg0, arg1) {
|
|
1076
|
+
getObject(arg0).x = arg1 >>> 0;
|
|
1077
|
+
},
|
|
1078
|
+
__wbg_set_y_8caca94aad6cb4e8: function(arg0, arg1) {
|
|
1079
|
+
getObject(arg0).y = arg1 >>> 0;
|
|
1080
|
+
},
|
|
1081
|
+
__wbg_set_z_bb89b8ff0b9f8f74: function(arg0, arg1) {
|
|
1082
|
+
getObject(arg0).z = arg1 >>> 0;
|
|
1083
|
+
},
|
|
1084
|
+
__wbg_shiftKey_ec106aa0755af421: function(arg0) {
|
|
1085
|
+
const ret = getObject(arg0).shiftKey;
|
|
1086
|
+
return ret;
|
|
1087
|
+
},
|
|
1088
|
+
__wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
|
|
1089
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1090
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1091
|
+
},
|
|
1092
|
+
__wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
|
|
1093
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1094
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1095
|
+
},
|
|
1096
|
+
__wbg_static_accessor_SELF_f207c857566db248: function() {
|
|
1097
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1098
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1099
|
+
},
|
|
1100
|
+
__wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
|
|
1101
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1102
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1103
|
+
},
|
|
1104
|
+
__wbg_submit_19b0e21319bc36d7: function(arg0, arg1) {
|
|
1105
|
+
getObject(arg0).submit(getObject(arg1));
|
|
1106
|
+
},
|
|
1107
|
+
__wbg_then_098abe61755d12f6: function(arg0, arg1) {
|
|
1108
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
1109
|
+
return addHeapObject(ret);
|
|
1110
|
+
},
|
|
1111
|
+
__wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
|
|
1112
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
1113
|
+
return addHeapObject(ret);
|
|
1114
|
+
},
|
|
1115
|
+
__wbg_then_bc59d1943397ca4e: function(arg0, arg1, arg2) {
|
|
1116
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
1117
|
+
return addHeapObject(ret);
|
|
1118
|
+
},
|
|
1119
|
+
__wbg_top_378559f0b38a1038: function(arg0) {
|
|
1120
|
+
const ret = getObject(arg0).top;
|
|
1121
|
+
return ret;
|
|
1122
|
+
},
|
|
1123
|
+
__wbg_value_f3d531408c0c70aa: function(arg0) {
|
|
1124
|
+
const ret = getObject(arg0).value;
|
|
1125
|
+
return ret;
|
|
1126
|
+
},
|
|
1127
|
+
__wbg_width_4d6fc7fecd877217: function(arg0) {
|
|
1128
|
+
const ret = getObject(arg0).width;
|
|
1129
|
+
return ret;
|
|
1130
|
+
},
|
|
1131
|
+
__wbg_width_f933723cb0daf368: function(arg0) {
|
|
1132
|
+
const ret = getObject(arg0).width;
|
|
1133
|
+
return ret;
|
|
1134
|
+
},
|
|
1135
|
+
__wbg_writeBuffer_1fa3becf9f9f970e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1136
|
+
getObject(arg0).writeBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5);
|
|
1137
|
+
}, arguments); },
|
|
1138
|
+
__wbg_writeTexture_16d44079bcc6b839: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1139
|
+
getObject(arg0).writeTexture(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
|
|
1140
|
+
}, arguments); },
|
|
1141
|
+
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1142
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 15, function: Function { arguments: [Externref], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1143
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_1531, __wasm_bindgen_func_elem_3378);
|
|
1144
|
+
return addHeapObject(ret);
|
|
1145
|
+
},
|
|
1146
|
+
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1147
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 15, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1148
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_1531, __wasm_bindgen_func_elem_1532);
|
|
1149
|
+
return addHeapObject(ret);
|
|
1150
|
+
},
|
|
1151
|
+
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1152
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 15, function: Function { arguments: [F64], shim_idx: 46, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1153
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_1531, __wasm_bindgen_func_elem_1533);
|
|
1154
|
+
return addHeapObject(ret);
|
|
1155
|
+
},
|
|
1156
|
+
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1157
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 15, function: Function { arguments: [NamedExternref("Event")], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1158
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_1531, __wasm_bindgen_func_elem_1532_3);
|
|
1159
|
+
return addHeapObject(ret);
|
|
1160
|
+
},
|
|
1161
|
+
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
1162
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1163
|
+
const ret = arg0;
|
|
1164
|
+
return addHeapObject(ret);
|
|
1165
|
+
},
|
|
1166
|
+
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1167
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1168
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1169
|
+
return addHeapObject(ret);
|
|
1170
|
+
},
|
|
1171
|
+
__wbindgen_object_clone_ref: function(arg0) {
|
|
1172
|
+
const ret = getObject(arg0);
|
|
1173
|
+
return addHeapObject(ret);
|
|
1174
|
+
},
|
|
1175
|
+
__wbindgen_object_drop_ref: function(arg0) {
|
|
1176
|
+
takeObject(arg0);
|
|
1177
|
+
},
|
|
1178
|
+
};
|
|
1179
|
+
return {
|
|
1180
|
+
__proto__: null,
|
|
1181
|
+
"./vulfram_core_bg.js": import0,
|
|
1182
|
+
};
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
const lAudioContext = (typeof AudioContext !== 'undefined' ? AudioContext : (typeof webkitAudioContext !== 'undefined' ? webkitAudioContext : undefined));
|
|
1186
|
+
function __wasm_bindgen_func_elem_1532(arg0, arg1, arg2) {
|
|
1187
|
+
wasm.__wasm_bindgen_func_elem_1532(arg0, arg1, addHeapObject(arg2));
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
function __wasm_bindgen_func_elem_1532_3(arg0, arg1, arg2) {
|
|
1191
|
+
wasm.__wasm_bindgen_func_elem_1532_3(arg0, arg1, addHeapObject(arg2));
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
function __wasm_bindgen_func_elem_3378(arg0, arg1, arg2) {
|
|
1195
|
+
try {
|
|
1196
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1197
|
+
wasm.__wasm_bindgen_func_elem_3378(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1198
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1199
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1200
|
+
if (r1) {
|
|
1201
|
+
throw takeObject(r0);
|
|
1202
|
+
}
|
|
1203
|
+
} finally {
|
|
1204
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
function __wasm_bindgen_func_elem_1533(arg0, arg1, arg2) {
|
|
1209
|
+
wasm.__wasm_bindgen_func_elem_1533(arg0, arg1, arg2);
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
const __wbindgen_enum_GpuAddressMode = ["clamp-to-edge", "repeat", "mirror-repeat"];
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
const __wbindgen_enum_GpuCanvasAlphaMode = ["opaque", "premultiplied"];
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
const __wbindgen_enum_GpuCompareFunction = ["never", "less", "equal", "less-equal", "greater", "not-equal", "greater-equal", "always"];
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
const __wbindgen_enum_GpuFilterMode = ["nearest", "linear"];
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
const __wbindgen_enum_GpuMipmapFilterMode = ["nearest", "linear"];
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
const __wbindgen_enum_GpuQueryType = ["occlusion", "timestamp"];
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
|
|
1238
|
+
|
|
1239
|
+
|
|
1240
|
+
const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
const __wbindgen_enum_GpuTextureAspect = ["all", "stencil-only", "depth-only"];
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
const __wbindgen_enum_GpuTextureDimension = ["1d", "2d", "3d"];
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
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"];
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "depth", "sint", "uint"];
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
|
|
1256
|
+
const BufferResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1257
|
+
? { register: () => {}, unregister: () => {} }
|
|
1258
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_bufferresult_free(ptr >>> 0, 1));
|
|
1259
|
+
|
|
1260
|
+
function addHeapObject(obj) {
|
|
1261
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
1262
|
+
const idx = heap_next;
|
|
1263
|
+
heap_next = heap[idx];
|
|
1264
|
+
|
|
1265
|
+
heap[idx] = obj;
|
|
1266
|
+
return idx;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1270
|
+
? { register: () => {}, unregister: () => {} }
|
|
1271
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
1272
|
+
|
|
1273
|
+
function debugString(val) {
|
|
1274
|
+
// primitive types
|
|
1275
|
+
const type = typeof val;
|
|
1276
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
1277
|
+
return `${val}`;
|
|
1278
|
+
}
|
|
1279
|
+
if (type == 'string') {
|
|
1280
|
+
return `"${val}"`;
|
|
1281
|
+
}
|
|
1282
|
+
if (type == 'symbol') {
|
|
1283
|
+
const description = val.description;
|
|
1284
|
+
if (description == null) {
|
|
1285
|
+
return 'Symbol';
|
|
1286
|
+
} else {
|
|
1287
|
+
return `Symbol(${description})`;
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
if (type == 'function') {
|
|
1291
|
+
const name = val.name;
|
|
1292
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
1293
|
+
return `Function(${name})`;
|
|
1294
|
+
} else {
|
|
1295
|
+
return 'Function';
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
// objects
|
|
1299
|
+
if (Array.isArray(val)) {
|
|
1300
|
+
const length = val.length;
|
|
1301
|
+
let debug = '[';
|
|
1302
|
+
if (length > 0) {
|
|
1303
|
+
debug += debugString(val[0]);
|
|
1304
|
+
}
|
|
1305
|
+
for(let i = 1; i < length; i++) {
|
|
1306
|
+
debug += ', ' + debugString(val[i]);
|
|
1307
|
+
}
|
|
1308
|
+
debug += ']';
|
|
1309
|
+
return debug;
|
|
1310
|
+
}
|
|
1311
|
+
// Test for built-in
|
|
1312
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
1313
|
+
let className;
|
|
1314
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
1315
|
+
className = builtInMatches[1];
|
|
1316
|
+
} else {
|
|
1317
|
+
// Failed to match the standard '[object ClassName]'
|
|
1318
|
+
return toString.call(val);
|
|
1319
|
+
}
|
|
1320
|
+
if (className == 'Object') {
|
|
1321
|
+
// we're a user defined class or Object
|
|
1322
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
1323
|
+
// easier than looping through ownProperties of `val`.
|
|
1324
|
+
try {
|
|
1325
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
1326
|
+
} catch (_) {
|
|
1327
|
+
return 'Object';
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
// errors
|
|
1331
|
+
if (val instanceof Error) {
|
|
1332
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1333
|
+
}
|
|
1334
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1335
|
+
return className;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
function dropObject(idx) {
|
|
1339
|
+
if (idx < 1028) return;
|
|
1340
|
+
heap[idx] = heap_next;
|
|
1341
|
+
heap_next = idx;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
1345
|
+
ptr = ptr >>> 0;
|
|
1346
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
let cachedDataViewMemory0 = null;
|
|
1350
|
+
function getDataViewMemory0() {
|
|
1351
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
1352
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
1353
|
+
}
|
|
1354
|
+
return cachedDataViewMemory0;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
function getStringFromWasm0(ptr, len) {
|
|
1358
|
+
ptr = ptr >>> 0;
|
|
1359
|
+
return decodeText(ptr, len);
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
let cachedUint8ArrayMemory0 = null;
|
|
1363
|
+
function getUint8ArrayMemory0() {
|
|
1364
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
1365
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
1366
|
+
}
|
|
1367
|
+
return cachedUint8ArrayMemory0;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
function getObject(idx) { return heap[idx]; }
|
|
1371
|
+
|
|
1372
|
+
function handleError(f, args) {
|
|
1373
|
+
try {
|
|
1374
|
+
return f.apply(this, args);
|
|
1375
|
+
} catch (e) {
|
|
1376
|
+
wasm.__wbindgen_export3(addHeapObject(e));
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
let heap = new Array(1024).fill(undefined);
|
|
1381
|
+
heap.push(undefined, null, true, false);
|
|
1382
|
+
|
|
1383
|
+
let heap_next = heap.length;
|
|
1384
|
+
|
|
1385
|
+
function isLikeNone(x) {
|
|
1386
|
+
return x === undefined || x === null;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
1390
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
1391
|
+
const real = (...args) => {
|
|
1392
|
+
|
|
1393
|
+
// First up with a closure we increment the internal reference
|
|
1394
|
+
// count. This ensures that the Rust closure environment won't
|
|
1395
|
+
// be deallocated while we're invoking it.
|
|
1396
|
+
state.cnt++;
|
|
1397
|
+
const a = state.a;
|
|
1398
|
+
state.a = 0;
|
|
1399
|
+
try {
|
|
1400
|
+
return f(a, state.b, ...args);
|
|
1401
|
+
} finally {
|
|
1402
|
+
state.a = a;
|
|
1403
|
+
real._wbg_cb_unref();
|
|
1404
|
+
}
|
|
1405
|
+
};
|
|
1406
|
+
real._wbg_cb_unref = () => {
|
|
1407
|
+
if (--state.cnt === 0) {
|
|
1408
|
+
state.dtor(state.a, state.b);
|
|
1409
|
+
state.a = 0;
|
|
1410
|
+
CLOSURE_DTORS.unregister(state);
|
|
1411
|
+
}
|
|
1412
|
+
};
|
|
1413
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
1414
|
+
return real;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
1418
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
1419
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
1420
|
+
WASM_VECTOR_LEN = arg.length;
|
|
1421
|
+
return ptr;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
1425
|
+
if (realloc === undefined) {
|
|
1426
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1427
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
1428
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
1429
|
+
WASM_VECTOR_LEN = buf.length;
|
|
1430
|
+
return ptr;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
let len = arg.length;
|
|
1434
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
1435
|
+
|
|
1436
|
+
const mem = getUint8ArrayMemory0();
|
|
1437
|
+
|
|
1438
|
+
let offset = 0;
|
|
1439
|
+
|
|
1440
|
+
for (; offset < len; offset++) {
|
|
1441
|
+
const code = arg.charCodeAt(offset);
|
|
1442
|
+
if (code > 0x7F) break;
|
|
1443
|
+
mem[ptr + offset] = code;
|
|
1444
|
+
}
|
|
1445
|
+
if (offset !== len) {
|
|
1446
|
+
if (offset !== 0) {
|
|
1447
|
+
arg = arg.slice(offset);
|
|
1448
|
+
}
|
|
1449
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
1450
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
1451
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1452
|
+
|
|
1453
|
+
offset += ret.written;
|
|
1454
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
WASM_VECTOR_LEN = offset;
|
|
1458
|
+
return ptr;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
function takeObject(idx) {
|
|
1462
|
+
const ret = getObject(idx);
|
|
1463
|
+
dropObject(idx);
|
|
1464
|
+
return ret;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1468
|
+
cachedTextDecoder.decode();
|
|
1469
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1470
|
+
let numBytesDecoded = 0;
|
|
1471
|
+
function decodeText(ptr, len) {
|
|
1472
|
+
numBytesDecoded += len;
|
|
1473
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1474
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1475
|
+
cachedTextDecoder.decode();
|
|
1476
|
+
numBytesDecoded = len;
|
|
1477
|
+
}
|
|
1478
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
const cachedTextEncoder = new TextEncoder();
|
|
1482
|
+
|
|
1483
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
1484
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
1485
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1486
|
+
view.set(buf);
|
|
1487
|
+
return {
|
|
1488
|
+
read: arg.length,
|
|
1489
|
+
written: buf.length
|
|
1490
|
+
};
|
|
1491
|
+
};
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
let WASM_VECTOR_LEN = 0;
|
|
1495
|
+
|
|
1496
|
+
let wasmModule, wasm;
|
|
1497
|
+
function __wbg_finalize_init(instance, module) {
|
|
1498
|
+
wasm = instance.exports;
|
|
1499
|
+
wasmModule = module;
|
|
1500
|
+
cachedDataViewMemory0 = null;
|
|
1501
|
+
cachedUint8ArrayMemory0 = null;
|
|
1502
|
+
return wasm;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
async function __wbg_load(module, imports) {
|
|
1506
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
1507
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1508
|
+
try {
|
|
1509
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1510
|
+
} catch (e) {
|
|
1511
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
1512
|
+
|
|
1513
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1514
|
+
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);
|
|
1515
|
+
|
|
1516
|
+
} else { throw e; }
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
const bytes = await module.arrayBuffer();
|
|
1521
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
1522
|
+
} else {
|
|
1523
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
1524
|
+
|
|
1525
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
1526
|
+
return { instance, module };
|
|
1527
|
+
} else {
|
|
1528
|
+
return instance;
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
function expectedResponseType(type) {
|
|
1533
|
+
switch (type) {
|
|
1534
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
1535
|
+
}
|
|
1536
|
+
return false;
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
function initSync(module) {
|
|
1541
|
+
if (wasm !== undefined) return wasm;
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
if (module !== undefined) {
|
|
1545
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1546
|
+
({module} = module)
|
|
1547
|
+
} else {
|
|
1548
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
const imports = __wbg_get_imports();
|
|
1553
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1554
|
+
module = new WebAssembly.Module(module);
|
|
1555
|
+
}
|
|
1556
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1557
|
+
return __wbg_finalize_init(instance, module);
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
async function __wbg_init(module_or_path) {
|
|
1561
|
+
if (wasm !== undefined) return wasm;
|
|
1562
|
+
|
|
1563
|
+
|
|
1564
|
+
if (module_or_path !== undefined) {
|
|
1565
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1566
|
+
({module_or_path} = module_or_path)
|
|
1567
|
+
} else {
|
|
1568
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
if (module_or_path === undefined) {
|
|
1573
|
+
module_or_path = new URL('vulfram_core_bg.wasm', import.meta.url);
|
|
1574
|
+
}
|
|
1575
|
+
const imports = __wbg_get_imports();
|
|
1576
|
+
|
|
1577
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1578
|
+
module_or_path = fetch(module_or_path);
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1582
|
+
|
|
1583
|
+
return __wbg_finalize_init(instance, module);
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
export { initSync, __wbg_init as default };
|