@swmansion/smelter-browser-render 0.2.0-rc.0
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/LICENSE +35 -0
- package/README.md +3 -0
- package/dist/LICENSE-smelter-wasm-bundle +35 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +2058 -0
- package/dist/smelter.wasm +0 -0
- package/package.json +34 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,2058 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
|
|
3
|
+
const heap = new Array(128).fill(undefined);
|
|
4
|
+
|
|
5
|
+
heap.push(undefined, null, true, false);
|
|
6
|
+
|
|
7
|
+
function getObject(idx) { return heap[idx]; }
|
|
8
|
+
|
|
9
|
+
let heap_next = heap.length;
|
|
10
|
+
|
|
11
|
+
function dropObject(idx) {
|
|
12
|
+
if (idx < 132) return;
|
|
13
|
+
heap[idx] = heap_next;
|
|
14
|
+
heap_next = idx;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function takeObject(idx) {
|
|
18
|
+
const ret = getObject(idx);
|
|
19
|
+
dropObject(idx);
|
|
20
|
+
return ret;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
let WASM_VECTOR_LEN = 0;
|
|
24
|
+
|
|
25
|
+
let cachedUint8ArrayMemory0 = null;
|
|
26
|
+
|
|
27
|
+
function getUint8ArrayMemory0() {
|
|
28
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
29
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
30
|
+
}
|
|
31
|
+
return cachedUint8ArrayMemory0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
35
|
+
|
|
36
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
37
|
+
? function (arg, view) {
|
|
38
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
39
|
+
}
|
|
40
|
+
: function (arg, view) {
|
|
41
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
42
|
+
view.set(buf);
|
|
43
|
+
return {
|
|
44
|
+
read: arg.length,
|
|
45
|
+
written: buf.length
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
50
|
+
|
|
51
|
+
if (realloc === undefined) {
|
|
52
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
53
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
54
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
55
|
+
WASM_VECTOR_LEN = buf.length;
|
|
56
|
+
return ptr;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
let len = arg.length;
|
|
60
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
61
|
+
|
|
62
|
+
const mem = getUint8ArrayMemory0();
|
|
63
|
+
|
|
64
|
+
let offset = 0;
|
|
65
|
+
|
|
66
|
+
for (; offset < len; offset++) {
|
|
67
|
+
const code = arg.charCodeAt(offset);
|
|
68
|
+
if (code > 0x7F) break;
|
|
69
|
+
mem[ptr + offset] = code;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (offset !== len) {
|
|
73
|
+
if (offset !== 0) {
|
|
74
|
+
arg = arg.slice(offset);
|
|
75
|
+
}
|
|
76
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
77
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
78
|
+
const ret = encodeString(arg, view);
|
|
79
|
+
|
|
80
|
+
offset += ret.written;
|
|
81
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
WASM_VECTOR_LEN = offset;
|
|
85
|
+
return ptr;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function isLikeNone(x) {
|
|
89
|
+
return x === undefined || x === null;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
let cachedDataViewMemory0 = null;
|
|
93
|
+
|
|
94
|
+
function getDataViewMemory0() {
|
|
95
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
96
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
97
|
+
}
|
|
98
|
+
return cachedDataViewMemory0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function addHeapObject(obj) {
|
|
102
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
103
|
+
const idx = heap_next;
|
|
104
|
+
heap_next = heap[idx];
|
|
105
|
+
|
|
106
|
+
heap[idx] = obj;
|
|
107
|
+
return idx;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
111
|
+
|
|
112
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }
|
|
113
|
+
function getStringFromWasm0(ptr, len) {
|
|
114
|
+
ptr = ptr >>> 0;
|
|
115
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function debugString(val) {
|
|
119
|
+
// primitive types
|
|
120
|
+
const type = typeof val;
|
|
121
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
122
|
+
return `${val}`;
|
|
123
|
+
}
|
|
124
|
+
if (type == 'string') {
|
|
125
|
+
return `"${val}"`;
|
|
126
|
+
}
|
|
127
|
+
if (type == 'symbol') {
|
|
128
|
+
const description = val.description;
|
|
129
|
+
if (description == null) {
|
|
130
|
+
return 'Symbol';
|
|
131
|
+
} else {
|
|
132
|
+
return `Symbol(${description})`;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
if (type == 'function') {
|
|
136
|
+
const name = val.name;
|
|
137
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
138
|
+
return `Function(${name})`;
|
|
139
|
+
} else {
|
|
140
|
+
return 'Function';
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
// objects
|
|
144
|
+
if (Array.isArray(val)) {
|
|
145
|
+
const length = val.length;
|
|
146
|
+
let debug = '[';
|
|
147
|
+
if (length > 0) {
|
|
148
|
+
debug += debugString(val[0]);
|
|
149
|
+
}
|
|
150
|
+
for(let i = 1; i < length; i++) {
|
|
151
|
+
debug += ', ' + debugString(val[i]);
|
|
152
|
+
}
|
|
153
|
+
debug += ']';
|
|
154
|
+
return debug;
|
|
155
|
+
}
|
|
156
|
+
// Test for built-in
|
|
157
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
158
|
+
let className;
|
|
159
|
+
if (builtInMatches.length > 1) {
|
|
160
|
+
className = builtInMatches[1];
|
|
161
|
+
} else {
|
|
162
|
+
// Failed to match the standard '[object ClassName]'
|
|
163
|
+
return toString.call(val);
|
|
164
|
+
}
|
|
165
|
+
if (className == 'Object') {
|
|
166
|
+
// we're a user defined class or Object
|
|
167
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
168
|
+
// easier than looping through ownProperties of `val`.
|
|
169
|
+
try {
|
|
170
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
171
|
+
} catch (_) {
|
|
172
|
+
return 'Object';
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
// errors
|
|
176
|
+
if (val instanceof Error) {
|
|
177
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
178
|
+
}
|
|
179
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
180
|
+
return className;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
let cachedUint8ClampedArrayMemory0 = null;
|
|
184
|
+
|
|
185
|
+
function getUint8ClampedArrayMemory0() {
|
|
186
|
+
if (cachedUint8ClampedArrayMemory0 === null || cachedUint8ClampedArrayMemory0.byteLength === 0) {
|
|
187
|
+
cachedUint8ClampedArrayMemory0 = new Uint8ClampedArray(wasm.memory.buffer);
|
|
188
|
+
}
|
|
189
|
+
return cachedUint8ClampedArrayMemory0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
function getClampedArrayU8FromWasm0(ptr, len) {
|
|
193
|
+
ptr = ptr >>> 0;
|
|
194
|
+
return getUint8ClampedArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
198
|
+
? { register: () => {}, unregister: () => {} }
|
|
199
|
+
: new FinalizationRegistry(state => {
|
|
200
|
+
wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b);
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
204
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
205
|
+
const real = (...args) => {
|
|
206
|
+
// First up with a closure we increment the internal reference
|
|
207
|
+
// count. This ensures that the Rust closure environment won't
|
|
208
|
+
// be deallocated while we're invoking it.
|
|
209
|
+
state.cnt++;
|
|
210
|
+
const a = state.a;
|
|
211
|
+
state.a = 0;
|
|
212
|
+
try {
|
|
213
|
+
return f(a, state.b, ...args);
|
|
214
|
+
} finally {
|
|
215
|
+
if (--state.cnt === 0) {
|
|
216
|
+
wasm.__wbindgen_export_3.get(state.dtor)(a, state.b);
|
|
217
|
+
CLOSURE_DTORS.unregister(state);
|
|
218
|
+
} else {
|
|
219
|
+
state.a = a;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
real.original = state;
|
|
224
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
225
|
+
return real;
|
|
226
|
+
}
|
|
227
|
+
function __wbg_adapter_52(arg0, arg1, arg2) {
|
|
228
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4db0321d4fcfe3d1(arg0, arg1, addHeapObject(arg2));
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* @param {any} options
|
|
233
|
+
* @returns {Promise<SmelterRenderer>}
|
|
234
|
+
*/
|
|
235
|
+
function create_renderer(options) {
|
|
236
|
+
const ret = wasm.create_renderer(addHeapObject(options));
|
|
237
|
+
return takeObject(ret);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
function _assertClass(instance, klass) {
|
|
241
|
+
if (!(instance instanceof klass)) {
|
|
242
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
243
|
+
}
|
|
244
|
+
return instance.ptr;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
function handleError(f, args) {
|
|
248
|
+
try {
|
|
249
|
+
return f.apply(this, args);
|
|
250
|
+
} catch (e) {
|
|
251
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
let cachedFloat32ArrayMemory0 = null;
|
|
256
|
+
|
|
257
|
+
function getFloat32ArrayMemory0() {
|
|
258
|
+
if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
|
|
259
|
+
cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
|
|
260
|
+
}
|
|
261
|
+
return cachedFloat32ArrayMemory0;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
function getArrayF32FromWasm0(ptr, len) {
|
|
265
|
+
ptr = ptr >>> 0;
|
|
266
|
+
return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
let cachedInt32ArrayMemory0 = null;
|
|
270
|
+
|
|
271
|
+
function getInt32ArrayMemory0() {
|
|
272
|
+
if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
|
|
273
|
+
cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
|
|
274
|
+
}
|
|
275
|
+
return cachedInt32ArrayMemory0;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
function getArrayI32FromWasm0(ptr, len) {
|
|
279
|
+
ptr = ptr >>> 0;
|
|
280
|
+
return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
let cachedUint32ArrayMemory0 = null;
|
|
284
|
+
|
|
285
|
+
function getUint32ArrayMemory0() {
|
|
286
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
287
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
288
|
+
}
|
|
289
|
+
return cachedUint32ArrayMemory0;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
293
|
+
ptr = ptr >>> 0;
|
|
294
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
295
|
+
}
|
|
296
|
+
function __wbg_adapter_718(arg0, arg1, arg2, arg3) {
|
|
297
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h07f16119db79ff47(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
const FrameSetFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
301
|
+
? { register: () => {}, unregister: () => {} }
|
|
302
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_frameset_free(ptr >>> 0, 1));
|
|
303
|
+
/**
|
|
304
|
+
*/
|
|
305
|
+
class FrameSet {
|
|
306
|
+
|
|
307
|
+
static __wrap(ptr) {
|
|
308
|
+
ptr = ptr >>> 0;
|
|
309
|
+
const obj = Object.create(FrameSet.prototype);
|
|
310
|
+
obj.__wbg_ptr = ptr;
|
|
311
|
+
FrameSetFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
312
|
+
return obj;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
__destroy_into_raw() {
|
|
316
|
+
const ptr = this.__wbg_ptr;
|
|
317
|
+
this.__wbg_ptr = 0;
|
|
318
|
+
FrameSetFinalization.unregister(this);
|
|
319
|
+
return ptr;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
free() {
|
|
323
|
+
const ptr = this.__destroy_into_raw();
|
|
324
|
+
wasm.__wbg_frameset_free(ptr, 0);
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* @returns {number}
|
|
328
|
+
*/
|
|
329
|
+
get pts_ms() {
|
|
330
|
+
const ret = wasm.__wbg_get_frameset_pts_ms(this.__wbg_ptr);
|
|
331
|
+
return ret;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* @param {number} arg0
|
|
335
|
+
*/
|
|
336
|
+
set pts_ms(arg0) {
|
|
337
|
+
wasm.__wbg_set_frameset_pts_ms(this.__wbg_ptr, arg0);
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* @param {number} pts_ms
|
|
341
|
+
* @param {Map<any, any>} frames
|
|
342
|
+
*/
|
|
343
|
+
constructor(pts_ms, frames) {
|
|
344
|
+
const ret = wasm.frameset_new(pts_ms, addHeapObject(frames));
|
|
345
|
+
this.__wbg_ptr = ret >>> 0;
|
|
346
|
+
FrameSetFinalization.register(this, this.__wbg_ptr, this);
|
|
347
|
+
return this;
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* @returns {Map<any, any>}
|
|
351
|
+
*/
|
|
352
|
+
get frames() {
|
|
353
|
+
const ret = wasm.frameset_frames(this.__wbg_ptr);
|
|
354
|
+
return takeObject(ret);
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* @param {Map<any, any>} frames
|
|
358
|
+
*/
|
|
359
|
+
set frames(frames) {
|
|
360
|
+
wasm.frameset_set_frames(this.__wbg_ptr, addHeapObject(frames));
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
const SmelterRendererFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
365
|
+
? { register: () => {}, unregister: () => {} }
|
|
366
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_smelterrenderer_free(ptr >>> 0, 1));
|
|
367
|
+
/**
|
|
368
|
+
*/
|
|
369
|
+
class SmelterRenderer {
|
|
370
|
+
|
|
371
|
+
static __wrap(ptr) {
|
|
372
|
+
ptr = ptr >>> 0;
|
|
373
|
+
const obj = Object.create(SmelterRenderer.prototype);
|
|
374
|
+
obj.__wbg_ptr = ptr;
|
|
375
|
+
SmelterRendererFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
376
|
+
return obj;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
__destroy_into_raw() {
|
|
380
|
+
const ptr = this.__wbg_ptr;
|
|
381
|
+
this.__wbg_ptr = 0;
|
|
382
|
+
SmelterRendererFinalization.unregister(this);
|
|
383
|
+
return ptr;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
free() {
|
|
387
|
+
const ptr = this.__destroy_into_raw();
|
|
388
|
+
wasm.__wbg_smelterrenderer_free(ptr, 0);
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* @param {FrameSet} input
|
|
392
|
+
* @returns {FrameSet}
|
|
393
|
+
*/
|
|
394
|
+
render(input) {
|
|
395
|
+
try {
|
|
396
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
397
|
+
_assertClass(input, FrameSet);
|
|
398
|
+
var ptr0 = input.__destroy_into_raw();
|
|
399
|
+
wasm.smelterrenderer_render(retptr, this.__wbg_ptr, ptr0);
|
|
400
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
401
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
402
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
403
|
+
if (r2) {
|
|
404
|
+
throw takeObject(r1);
|
|
405
|
+
}
|
|
406
|
+
return FrameSet.__wrap(r0);
|
|
407
|
+
} finally {
|
|
408
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* @param {string} output_id
|
|
413
|
+
* @param {any} resolution
|
|
414
|
+
* @param {any} scene
|
|
415
|
+
*/
|
|
416
|
+
update_scene(output_id, resolution, scene) {
|
|
417
|
+
try {
|
|
418
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
419
|
+
const ptr0 = passStringToWasm0(output_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
420
|
+
const len0 = WASM_VECTOR_LEN;
|
|
421
|
+
wasm.smelterrenderer_update_scene(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(resolution), addHeapObject(scene));
|
|
422
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
423
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
424
|
+
if (r1) {
|
|
425
|
+
throw takeObject(r0);
|
|
426
|
+
}
|
|
427
|
+
} finally {
|
|
428
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* @param {string} input_id
|
|
433
|
+
*/
|
|
434
|
+
register_input(input_id) {
|
|
435
|
+
const ptr0 = passStringToWasm0(input_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
436
|
+
const len0 = WASM_VECTOR_LEN;
|
|
437
|
+
wasm.smelterrenderer_register_input(this.__wbg_ptr, ptr0, len0);
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* @param {string} renderer_id
|
|
441
|
+
* @param {any} image_spec
|
|
442
|
+
* @returns {Promise<void>}
|
|
443
|
+
*/
|
|
444
|
+
register_image(renderer_id, image_spec) {
|
|
445
|
+
const ptr0 = passStringToWasm0(renderer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
446
|
+
const len0 = WASM_VECTOR_LEN;
|
|
447
|
+
const ret = wasm.smelterrenderer_register_image(this.__wbg_ptr, ptr0, len0, addHeapObject(image_spec));
|
|
448
|
+
return takeObject(ret);
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* @param {string} font_url
|
|
452
|
+
* @returns {Promise<void>}
|
|
453
|
+
*/
|
|
454
|
+
register_font(font_url) {
|
|
455
|
+
const ptr0 = passStringToWasm0(font_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
456
|
+
const len0 = WASM_VECTOR_LEN;
|
|
457
|
+
const ret = wasm.smelterrenderer_register_font(this.__wbg_ptr, ptr0, len0);
|
|
458
|
+
return takeObject(ret);
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* @param {string} input_id
|
|
462
|
+
*/
|
|
463
|
+
unregister_input(input_id) {
|
|
464
|
+
const ptr0 = passStringToWasm0(input_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
465
|
+
const len0 = WASM_VECTOR_LEN;
|
|
466
|
+
wasm.smelterrenderer_unregister_input(this.__wbg_ptr, ptr0, len0);
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* @param {string} output_id
|
|
470
|
+
*/
|
|
471
|
+
unregister_output(output_id) {
|
|
472
|
+
const ptr0 = passStringToWasm0(output_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
473
|
+
const len0 = WASM_VECTOR_LEN;
|
|
474
|
+
wasm.smelterrenderer_unregister_output(this.__wbg_ptr, ptr0, len0);
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* @param {string} renderer_id
|
|
478
|
+
*/
|
|
479
|
+
unregister_image(renderer_id) {
|
|
480
|
+
try {
|
|
481
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
482
|
+
const ptr0 = passStringToWasm0(renderer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
483
|
+
const len0 = WASM_VECTOR_LEN;
|
|
484
|
+
wasm.smelterrenderer_unregister_image(retptr, this.__wbg_ptr, ptr0, len0);
|
|
485
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
486
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
487
|
+
if (r1) {
|
|
488
|
+
throw takeObject(r0);
|
|
489
|
+
}
|
|
490
|
+
} finally {
|
|
491
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
async function __wbg_load(module, imports) {
|
|
497
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
498
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
499
|
+
try {
|
|
500
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
501
|
+
|
|
502
|
+
} catch (e) {
|
|
503
|
+
if (module.headers.get('Content-Type') != 'application/wasm') {
|
|
504
|
+
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);
|
|
505
|
+
|
|
506
|
+
} else {
|
|
507
|
+
throw e;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
const bytes = await module.arrayBuffer();
|
|
513
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
514
|
+
|
|
515
|
+
} else {
|
|
516
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
517
|
+
|
|
518
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
519
|
+
return { instance, module };
|
|
520
|
+
|
|
521
|
+
} else {
|
|
522
|
+
return instance;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
function __wbg_get_imports() {
|
|
528
|
+
const imports = {};
|
|
529
|
+
imports.wbg = {};
|
|
530
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
531
|
+
takeObject(arg0);
|
|
532
|
+
};
|
|
533
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
534
|
+
const obj = getObject(arg1);
|
|
535
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
536
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
537
|
+
var len1 = WASM_VECTOR_LEN;
|
|
538
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
539
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
540
|
+
};
|
|
541
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
542
|
+
const ret = arg0;
|
|
543
|
+
return addHeapObject(ret);
|
|
544
|
+
};
|
|
545
|
+
imports.wbg.__wbg_smelterrenderer_new = function(arg0) {
|
|
546
|
+
const ret = SmelterRenderer.__wrap(arg0);
|
|
547
|
+
return addHeapObject(ret);
|
|
548
|
+
};
|
|
549
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
550
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
551
|
+
return addHeapObject(ret);
|
|
552
|
+
};
|
|
553
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
554
|
+
const obj = getObject(arg1);
|
|
555
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
556
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
557
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
558
|
+
};
|
|
559
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
560
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
561
|
+
return addHeapObject(ret);
|
|
562
|
+
};
|
|
563
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
564
|
+
const v = getObject(arg0);
|
|
565
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
566
|
+
return ret;
|
|
567
|
+
};
|
|
568
|
+
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
569
|
+
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
570
|
+
return ret;
|
|
571
|
+
};
|
|
572
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
573
|
+
const val = getObject(arg0);
|
|
574
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
575
|
+
return ret;
|
|
576
|
+
};
|
|
577
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
578
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
579
|
+
return ret;
|
|
580
|
+
};
|
|
581
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
582
|
+
const ret = arg0;
|
|
583
|
+
return addHeapObject(ret);
|
|
584
|
+
};
|
|
585
|
+
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
586
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
587
|
+
return ret;
|
|
588
|
+
};
|
|
589
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
590
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
591
|
+
return addHeapObject(ret);
|
|
592
|
+
};
|
|
593
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
594
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
595
|
+
return ret;
|
|
596
|
+
};
|
|
597
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
598
|
+
const ret = getObject(arg0) === undefined;
|
|
599
|
+
return ret;
|
|
600
|
+
};
|
|
601
|
+
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
602
|
+
const obj = takeObject(arg0).original;
|
|
603
|
+
if (obj.cnt-- == 1) {
|
|
604
|
+
obj.a = 0;
|
|
605
|
+
return true;
|
|
606
|
+
}
|
|
607
|
+
const ret = false;
|
|
608
|
+
return ret;
|
|
609
|
+
};
|
|
610
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
611
|
+
const ret = getObject(arg0);
|
|
612
|
+
return addHeapObject(ret);
|
|
613
|
+
};
|
|
614
|
+
imports.wbg.__wbg_mark_40e050a77cc39fea = function(arg0, arg1) {
|
|
615
|
+
performance.mark(getStringFromWasm0(arg0, arg1));
|
|
616
|
+
};
|
|
617
|
+
imports.wbg.__wbg_log_c9486ca5d8e2cbe8 = function(arg0, arg1) {
|
|
618
|
+
let deferred0_0;
|
|
619
|
+
let deferred0_1;
|
|
620
|
+
try {
|
|
621
|
+
deferred0_0 = arg0;
|
|
622
|
+
deferred0_1 = arg1;
|
|
623
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
624
|
+
} finally {
|
|
625
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
626
|
+
}
|
|
627
|
+
};
|
|
628
|
+
imports.wbg.__wbg_log_aba5996d9bde071f = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
629
|
+
let deferred0_0;
|
|
630
|
+
let deferred0_1;
|
|
631
|
+
try {
|
|
632
|
+
deferred0_0 = arg0;
|
|
633
|
+
deferred0_1 = arg1;
|
|
634
|
+
console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
635
|
+
} finally {
|
|
636
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
637
|
+
}
|
|
638
|
+
};
|
|
639
|
+
imports.wbg.__wbg_measure_aa7a73f17813f708 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
640
|
+
let deferred0_0;
|
|
641
|
+
let deferred0_1;
|
|
642
|
+
let deferred1_0;
|
|
643
|
+
let deferred1_1;
|
|
644
|
+
try {
|
|
645
|
+
deferred0_0 = arg0;
|
|
646
|
+
deferred0_1 = arg1;
|
|
647
|
+
deferred1_0 = arg2;
|
|
648
|
+
deferred1_1 = arg3;
|
|
649
|
+
performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
650
|
+
} finally {
|
|
651
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
652
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
653
|
+
}
|
|
654
|
+
}, arguments) };
|
|
655
|
+
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
656
|
+
const ret = new Error();
|
|
657
|
+
return addHeapObject(ret);
|
|
658
|
+
};
|
|
659
|
+
imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
660
|
+
const ret = getObject(arg1).stack;
|
|
661
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
662
|
+
const len1 = WASM_VECTOR_LEN;
|
|
663
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
664
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
665
|
+
};
|
|
666
|
+
imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
667
|
+
let deferred0_0;
|
|
668
|
+
let deferred0_1;
|
|
669
|
+
try {
|
|
670
|
+
deferred0_0 = arg0;
|
|
671
|
+
deferred0_1 = arg1;
|
|
672
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
673
|
+
} finally {
|
|
674
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
675
|
+
}
|
|
676
|
+
};
|
|
677
|
+
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
678
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
679
|
+
return ret;
|
|
680
|
+
};
|
|
681
|
+
imports.wbg.__wbindgen_as_number = function(arg0) {
|
|
682
|
+
const ret = +getObject(arg0);
|
|
683
|
+
return ret;
|
|
684
|
+
};
|
|
685
|
+
imports.wbg.__wbg_String_b9412f8799faab3e = function(arg0, arg1) {
|
|
686
|
+
const ret = String(getObject(arg1));
|
|
687
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
688
|
+
const len1 = WASM_VECTOR_LEN;
|
|
689
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
690
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
691
|
+
};
|
|
692
|
+
imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
693
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
694
|
+
return addHeapObject(ret);
|
|
695
|
+
};
|
|
696
|
+
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
697
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
698
|
+
};
|
|
699
|
+
imports.wbg.__wbg_fetch_25e3a297f7b04639 = function(arg0) {
|
|
700
|
+
const ret = fetch(getObject(arg0));
|
|
701
|
+
return addHeapObject(ret);
|
|
702
|
+
};
|
|
703
|
+
imports.wbg.__wbg_queueMicrotask_48421b3cc9052b68 = function(arg0) {
|
|
704
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
705
|
+
return addHeapObject(ret);
|
|
706
|
+
};
|
|
707
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
708
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
709
|
+
return ret;
|
|
710
|
+
};
|
|
711
|
+
imports.wbg.__wbg_queueMicrotask_12a30234db4045d3 = function(arg0) {
|
|
712
|
+
queueMicrotask(getObject(arg0));
|
|
713
|
+
};
|
|
714
|
+
imports.wbg.__wbg_instanceof_WebGl2RenderingContext_62ccef896d9204fa = function(arg0) {
|
|
715
|
+
let result;
|
|
716
|
+
try {
|
|
717
|
+
result = getObject(arg0) instanceof WebGL2RenderingContext;
|
|
718
|
+
} catch (_) {
|
|
719
|
+
result = false;
|
|
720
|
+
}
|
|
721
|
+
const ret = result;
|
|
722
|
+
return ret;
|
|
723
|
+
};
|
|
724
|
+
imports.wbg.__wbg_beginQuery_2babccfce9472da4 = function(arg0, arg1, arg2) {
|
|
725
|
+
getObject(arg0).beginQuery(arg1 >>> 0, getObject(arg2));
|
|
726
|
+
};
|
|
727
|
+
imports.wbg.__wbg_bindBufferRange_ec55dd1088960c35 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
728
|
+
getObject(arg0).bindBufferRange(arg1 >>> 0, arg2 >>> 0, getObject(arg3), arg4, arg5);
|
|
729
|
+
};
|
|
730
|
+
imports.wbg.__wbg_bindSampler_f251f0dde3843dc4 = function(arg0, arg1, arg2) {
|
|
731
|
+
getObject(arg0).bindSampler(arg1 >>> 0, getObject(arg2));
|
|
732
|
+
};
|
|
733
|
+
imports.wbg.__wbg_bindVertexArray_bec56c40e9ec299d = function(arg0, arg1) {
|
|
734
|
+
getObject(arg0).bindVertexArray(getObject(arg1));
|
|
735
|
+
};
|
|
736
|
+
imports.wbg.__wbg_blitFramebuffer_cb1261c0e925d363 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
|
|
737
|
+
getObject(arg0).blitFramebuffer(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0);
|
|
738
|
+
};
|
|
739
|
+
imports.wbg.__wbg_bufferData_f552c26392b9837d = function(arg0, arg1, arg2, arg3) {
|
|
740
|
+
getObject(arg0).bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
741
|
+
};
|
|
742
|
+
imports.wbg.__wbg_bufferData_94ce174a81b32961 = function(arg0, arg1, arg2, arg3) {
|
|
743
|
+
getObject(arg0).bufferData(arg1 >>> 0, getObject(arg2), arg3 >>> 0);
|
|
744
|
+
};
|
|
745
|
+
imports.wbg.__wbg_bufferSubData_897bff8bd23ca0b4 = function(arg0, arg1, arg2, arg3) {
|
|
746
|
+
getObject(arg0).bufferSubData(arg1 >>> 0, arg2, getObject(arg3));
|
|
747
|
+
};
|
|
748
|
+
imports.wbg.__wbg_clearBufferfv_bd093a58afda7a8b = function(arg0, arg1, arg2, arg3, arg4) {
|
|
749
|
+
getObject(arg0).clearBufferfv(arg1 >>> 0, arg2, getArrayF32FromWasm0(arg3, arg4));
|
|
750
|
+
};
|
|
751
|
+
imports.wbg.__wbg_clearBufferiv_18ffec9d148aaf4b = function(arg0, arg1, arg2, arg3, arg4) {
|
|
752
|
+
getObject(arg0).clearBufferiv(arg1 >>> 0, arg2, getArrayI32FromWasm0(arg3, arg4));
|
|
753
|
+
};
|
|
754
|
+
imports.wbg.__wbg_clearBufferuiv_8575fe1b1af9dd15 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
755
|
+
getObject(arg0).clearBufferuiv(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4));
|
|
756
|
+
};
|
|
757
|
+
imports.wbg.__wbg_clientWaitSync_8d3b836729fa705f = function(arg0, arg1, arg2, arg3) {
|
|
758
|
+
const ret = getObject(arg0).clientWaitSync(getObject(arg1), arg2 >>> 0, arg3 >>> 0);
|
|
759
|
+
return ret;
|
|
760
|
+
};
|
|
761
|
+
imports.wbg.__wbg_compressedTexSubImage2D_d2201c663eb7e7c0 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
762
|
+
getObject(arg0).compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8, arg9);
|
|
763
|
+
};
|
|
764
|
+
imports.wbg.__wbg_compressedTexSubImage2D_088b90b29f544ebc = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
765
|
+
getObject(arg0).compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, getObject(arg8));
|
|
766
|
+
};
|
|
767
|
+
imports.wbg.__wbg_compressedTexSubImage3D_8d64b364b8ed6808 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
768
|
+
getObject(arg0).compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10, arg11);
|
|
769
|
+
};
|
|
770
|
+
imports.wbg.__wbg_compressedTexSubImage3D_d2b94340686bbb79 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
|
|
771
|
+
getObject(arg0).compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, getObject(arg10));
|
|
772
|
+
};
|
|
773
|
+
imports.wbg.__wbg_copyBufferSubData_026e82b392fb8df2 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
774
|
+
getObject(arg0).copyBufferSubData(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
|
|
775
|
+
};
|
|
776
|
+
imports.wbg.__wbg_copyTexSubImage3D_f2471ef3614db8d4 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
777
|
+
getObject(arg0).copyTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
778
|
+
};
|
|
779
|
+
imports.wbg.__wbg_createQuery_88b1a8cbfaeadcd4 = function(arg0) {
|
|
780
|
+
const ret = getObject(arg0).createQuery();
|
|
781
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
782
|
+
};
|
|
783
|
+
imports.wbg.__wbg_createSampler_ece1b922a455bd52 = function(arg0) {
|
|
784
|
+
const ret = getObject(arg0).createSampler();
|
|
785
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
786
|
+
};
|
|
787
|
+
imports.wbg.__wbg_createVertexArray_a3e58c38609ae150 = function(arg0) {
|
|
788
|
+
const ret = getObject(arg0).createVertexArray();
|
|
789
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
790
|
+
};
|
|
791
|
+
imports.wbg.__wbg_deleteQuery_deba58de1a061092 = function(arg0, arg1) {
|
|
792
|
+
getObject(arg0).deleteQuery(getObject(arg1));
|
|
793
|
+
};
|
|
794
|
+
imports.wbg.__wbg_deleteSampler_341b638a62cece3e = function(arg0, arg1) {
|
|
795
|
+
getObject(arg0).deleteSampler(getObject(arg1));
|
|
796
|
+
};
|
|
797
|
+
imports.wbg.__wbg_deleteSync_ddf848c7dd5cb195 = function(arg0, arg1) {
|
|
798
|
+
getObject(arg0).deleteSync(getObject(arg1));
|
|
799
|
+
};
|
|
800
|
+
imports.wbg.__wbg_deleteVertexArray_81346dd52e54eb57 = function(arg0, arg1) {
|
|
801
|
+
getObject(arg0).deleteVertexArray(getObject(arg1));
|
|
802
|
+
};
|
|
803
|
+
imports.wbg.__wbg_drawArraysInstanced_c375d32782ea8d30 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
804
|
+
getObject(arg0).drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4);
|
|
805
|
+
};
|
|
806
|
+
imports.wbg.__wbg_drawBuffers_2744e46ab7e02d91 = function(arg0, arg1) {
|
|
807
|
+
getObject(arg0).drawBuffers(getObject(arg1));
|
|
808
|
+
};
|
|
809
|
+
imports.wbg.__wbg_drawElementsInstanced_a416af0d12f00837 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
810
|
+
getObject(arg0).drawElementsInstanced(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
811
|
+
};
|
|
812
|
+
imports.wbg.__wbg_endQuery_7e240d815ced0387 = function(arg0, arg1) {
|
|
813
|
+
getObject(arg0).endQuery(arg1 >>> 0);
|
|
814
|
+
};
|
|
815
|
+
imports.wbg.__wbg_fenceSync_0a54247555048537 = function(arg0, arg1, arg2) {
|
|
816
|
+
const ret = getObject(arg0).fenceSync(arg1 >>> 0, arg2 >>> 0);
|
|
817
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
818
|
+
};
|
|
819
|
+
imports.wbg.__wbg_framebufferTextureLayer_1b5119ac136418d2 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
820
|
+
getObject(arg0).framebufferTextureLayer(arg1 >>> 0, arg2 >>> 0, getObject(arg3), arg4, arg5);
|
|
821
|
+
};
|
|
822
|
+
imports.wbg.__wbg_getBufferSubData_5e2bbbbd18f18d52 = function(arg0, arg1, arg2, arg3) {
|
|
823
|
+
getObject(arg0).getBufferSubData(arg1 >>> 0, arg2, getObject(arg3));
|
|
824
|
+
};
|
|
825
|
+
imports.wbg.__wbg_getIndexedParameter_edda23e611d65abb = function() { return handleError(function (arg0, arg1, arg2) {
|
|
826
|
+
const ret = getObject(arg0).getIndexedParameter(arg1 >>> 0, arg2 >>> 0);
|
|
827
|
+
return addHeapObject(ret);
|
|
828
|
+
}, arguments) };
|
|
829
|
+
imports.wbg.__wbg_getQueryParameter_ec854b270df79577 = function(arg0, arg1, arg2) {
|
|
830
|
+
const ret = getObject(arg0).getQueryParameter(getObject(arg1), arg2 >>> 0);
|
|
831
|
+
return addHeapObject(ret);
|
|
832
|
+
};
|
|
833
|
+
imports.wbg.__wbg_getSyncParameter_cf9ca45e037f34f4 = function(arg0, arg1, arg2) {
|
|
834
|
+
const ret = getObject(arg0).getSyncParameter(getObject(arg1), arg2 >>> 0);
|
|
835
|
+
return addHeapObject(ret);
|
|
836
|
+
};
|
|
837
|
+
imports.wbg.__wbg_getUniformBlockIndex_8eef3be68190327f = function(arg0, arg1, arg2, arg3) {
|
|
838
|
+
const ret = getObject(arg0).getUniformBlockIndex(getObject(arg1), getStringFromWasm0(arg2, arg3));
|
|
839
|
+
return ret;
|
|
840
|
+
};
|
|
841
|
+
imports.wbg.__wbg_invalidateFramebuffer_12eca43686968fe1 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
842
|
+
getObject(arg0).invalidateFramebuffer(arg1 >>> 0, getObject(arg2));
|
|
843
|
+
}, arguments) };
|
|
844
|
+
imports.wbg.__wbg_readBuffer_c6e1ba464c45ded1 = function(arg0, arg1) {
|
|
845
|
+
getObject(arg0).readBuffer(arg1 >>> 0);
|
|
846
|
+
};
|
|
847
|
+
imports.wbg.__wbg_readPixels_f589cb77c7641fb2 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
848
|
+
getObject(arg0).readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, getObject(arg7));
|
|
849
|
+
}, arguments) };
|
|
850
|
+
imports.wbg.__wbg_readPixels_74eff76a8a707954 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
851
|
+
getObject(arg0).readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
|
852
|
+
}, arguments) };
|
|
853
|
+
imports.wbg.__wbg_renderbufferStorageMultisample_1e0f794803ff8352 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
854
|
+
getObject(arg0).renderbufferStorageMultisample(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
855
|
+
};
|
|
856
|
+
imports.wbg.__wbg_samplerParameterf_f58c4ac221503b11 = function(arg0, arg1, arg2, arg3) {
|
|
857
|
+
getObject(arg0).samplerParameterf(getObject(arg1), arg2 >>> 0, arg3);
|
|
858
|
+
};
|
|
859
|
+
imports.wbg.__wbg_samplerParameteri_97baec154acb369e = function(arg0, arg1, arg2, arg3) {
|
|
860
|
+
getObject(arg0).samplerParameteri(getObject(arg1), arg2 >>> 0, arg3);
|
|
861
|
+
};
|
|
862
|
+
imports.wbg.__wbg_texImage2D_75effcb59fe5da7e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
863
|
+
getObject(arg0).texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
|
864
|
+
}, arguments) };
|
|
865
|
+
imports.wbg.__wbg_texImage3D_335fce191a5faae5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
|
|
866
|
+
getObject(arg0).texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, getObject(arg10));
|
|
867
|
+
}, arguments) };
|
|
868
|
+
imports.wbg.__wbg_texStorage2D_6143bf0d71e869ce = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
869
|
+
getObject(arg0).texStorage2D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
870
|
+
};
|
|
871
|
+
imports.wbg.__wbg_texStorage3D_5d6b3c6bfa977000 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
872
|
+
getObject(arg0).texStorage3D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5, arg6);
|
|
873
|
+
};
|
|
874
|
+
imports.wbg.__wbg_texSubImage2D_be0166513e368886 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
875
|
+
getObject(arg0).texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
|
876
|
+
}, arguments) };
|
|
877
|
+
imports.wbg.__wbg_texSubImage2D_338d11db84a799ed = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
878
|
+
getObject(arg0).texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
879
|
+
}, arguments) };
|
|
880
|
+
imports.wbg.__wbg_texSubImage2D_bdc1e6e8b1feae8f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
881
|
+
getObject(arg0).texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
|
882
|
+
}, arguments) };
|
|
883
|
+
imports.wbg.__wbg_texSubImage2D_edb828ed3708cfdd = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
884
|
+
getObject(arg0).texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
|
885
|
+
}, arguments) };
|
|
886
|
+
imports.wbg.__wbg_texSubImage2D_fbb08177c318e3f2 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
887
|
+
getObject(arg0).texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
|
888
|
+
}, arguments) };
|
|
889
|
+
imports.wbg.__wbg_texSubImage3D_c571236e8e9908d5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
890
|
+
getObject(arg0).texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
|
|
891
|
+
}, arguments) };
|
|
892
|
+
imports.wbg.__wbg_texSubImage3D_d86e30d5f4ebc0e0 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
893
|
+
getObject(arg0).texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, getObject(arg11));
|
|
894
|
+
}, arguments) };
|
|
895
|
+
imports.wbg.__wbg_texSubImage3D_b3526f28e3c2031e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
896
|
+
getObject(arg0).texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, getObject(arg11));
|
|
897
|
+
}, arguments) };
|
|
898
|
+
imports.wbg.__wbg_texSubImage3D_7a0f4d63809a0f6e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
899
|
+
getObject(arg0).texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, getObject(arg11));
|
|
900
|
+
}, arguments) };
|
|
901
|
+
imports.wbg.__wbg_texSubImage3D_9ee350bf3d5e61ad = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
902
|
+
getObject(arg0).texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, getObject(arg11));
|
|
903
|
+
}, arguments) };
|
|
904
|
+
imports.wbg.__wbg_uniform1ui_010e62706e661170 = function(arg0, arg1, arg2) {
|
|
905
|
+
getObject(arg0).uniform1ui(getObject(arg1), arg2 >>> 0);
|
|
906
|
+
};
|
|
907
|
+
imports.wbg.__wbg_uniform2fv_83048fbc79c7f362 = function(arg0, arg1, arg2, arg3) {
|
|
908
|
+
getObject(arg0).uniform2fv(getObject(arg1), getArrayF32FromWasm0(arg2, arg3));
|
|
909
|
+
};
|
|
910
|
+
imports.wbg.__wbg_uniform2iv_31ff5561a5c51159 = function(arg0, arg1, arg2, arg3) {
|
|
911
|
+
getObject(arg0).uniform2iv(getObject(arg1), getArrayI32FromWasm0(arg2, arg3));
|
|
912
|
+
};
|
|
913
|
+
imports.wbg.__wbg_uniform2uiv_4b36f1c57b28c3c6 = function(arg0, arg1, arg2, arg3) {
|
|
914
|
+
getObject(arg0).uniform2uiv(getObject(arg1), getArrayU32FromWasm0(arg2, arg3));
|
|
915
|
+
};
|
|
916
|
+
imports.wbg.__wbg_uniform3fv_0ddd3ca056ab3d1f = function(arg0, arg1, arg2, arg3) {
|
|
917
|
+
getObject(arg0).uniform3fv(getObject(arg1), getArrayF32FromWasm0(arg2, arg3));
|
|
918
|
+
};
|
|
919
|
+
imports.wbg.__wbg_uniform3iv_eb887b2a339dda97 = function(arg0, arg1, arg2, arg3) {
|
|
920
|
+
getObject(arg0).uniform3iv(getObject(arg1), getArrayI32FromWasm0(arg2, arg3));
|
|
921
|
+
};
|
|
922
|
+
imports.wbg.__wbg_uniform3uiv_19cbb50d7afeb7d0 = function(arg0, arg1, arg2, arg3) {
|
|
923
|
+
getObject(arg0).uniform3uiv(getObject(arg1), getArrayU32FromWasm0(arg2, arg3));
|
|
924
|
+
};
|
|
925
|
+
imports.wbg.__wbg_uniform4fv_cf977e0dd611bbdd = function(arg0, arg1, arg2, arg3) {
|
|
926
|
+
getObject(arg0).uniform4fv(getObject(arg1), getArrayF32FromWasm0(arg2, arg3));
|
|
927
|
+
};
|
|
928
|
+
imports.wbg.__wbg_uniform4iv_b3a606d0b1b87dc9 = function(arg0, arg1, arg2, arg3) {
|
|
929
|
+
getObject(arg0).uniform4iv(getObject(arg1), getArrayI32FromWasm0(arg2, arg3));
|
|
930
|
+
};
|
|
931
|
+
imports.wbg.__wbg_uniform4uiv_cb256e285d564825 = function(arg0, arg1, arg2, arg3) {
|
|
932
|
+
getObject(arg0).uniform4uiv(getObject(arg1), getArrayU32FromWasm0(arg2, arg3));
|
|
933
|
+
};
|
|
934
|
+
imports.wbg.__wbg_uniformBlockBinding_744b2ad6a5f2cace = function(arg0, arg1, arg2, arg3) {
|
|
935
|
+
getObject(arg0).uniformBlockBinding(getObject(arg1), arg2 >>> 0, arg3 >>> 0);
|
|
936
|
+
};
|
|
937
|
+
imports.wbg.__wbg_uniformMatrix2fv_7e757aaedd0427cf = function(arg0, arg1, arg2, arg3, arg4) {
|
|
938
|
+
getObject(arg0).uniformMatrix2fv(getObject(arg1), arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
939
|
+
};
|
|
940
|
+
imports.wbg.__wbg_uniformMatrix2x3fv_91be1a9373d7c5ce = function(arg0, arg1, arg2, arg3, arg4) {
|
|
941
|
+
getObject(arg0).uniformMatrix2x3fv(getObject(arg1), arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
942
|
+
};
|
|
943
|
+
imports.wbg.__wbg_uniformMatrix2x4fv_b5ef5b5baced0e4f = function(arg0, arg1, arg2, arg3, arg4) {
|
|
944
|
+
getObject(arg0).uniformMatrix2x4fv(getObject(arg1), arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
945
|
+
};
|
|
946
|
+
imports.wbg.__wbg_uniformMatrix3fv_5eec5885a8d5de8b = function(arg0, arg1, arg2, arg3, arg4) {
|
|
947
|
+
getObject(arg0).uniformMatrix3fv(getObject(arg1), arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
948
|
+
};
|
|
949
|
+
imports.wbg.__wbg_uniformMatrix3x2fv_88709a0858bab333 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
950
|
+
getObject(arg0).uniformMatrix3x2fv(getObject(arg1), arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
951
|
+
};
|
|
952
|
+
imports.wbg.__wbg_uniformMatrix3x4fv_184c4f571cff1122 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
953
|
+
getObject(arg0).uniformMatrix3x4fv(getObject(arg1), arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
954
|
+
};
|
|
955
|
+
imports.wbg.__wbg_uniformMatrix4fv_ae100fc474463355 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
956
|
+
getObject(arg0).uniformMatrix4fv(getObject(arg1), arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
957
|
+
};
|
|
958
|
+
imports.wbg.__wbg_uniformMatrix4x2fv_e931df9c7cb32d55 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
959
|
+
getObject(arg0).uniformMatrix4x2fv(getObject(arg1), arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
960
|
+
};
|
|
961
|
+
imports.wbg.__wbg_uniformMatrix4x3fv_f78c83b4908c3e27 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
962
|
+
getObject(arg0).uniformMatrix4x3fv(getObject(arg1), arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
963
|
+
};
|
|
964
|
+
imports.wbg.__wbg_vertexAttribDivisor_48f4c9ce15c07063 = function(arg0, arg1, arg2) {
|
|
965
|
+
getObject(arg0).vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0);
|
|
966
|
+
};
|
|
967
|
+
imports.wbg.__wbg_vertexAttribIPointer_78250ec98da971a2 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
968
|
+
getObject(arg0).vertexAttribIPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
969
|
+
};
|
|
970
|
+
imports.wbg.__wbg_activeTexture_067b93df6d1ed857 = function(arg0, arg1) {
|
|
971
|
+
getObject(arg0).activeTexture(arg1 >>> 0);
|
|
972
|
+
};
|
|
973
|
+
imports.wbg.__wbg_attachShader_396d529f1d7c9abc = function(arg0, arg1, arg2) {
|
|
974
|
+
getObject(arg0).attachShader(getObject(arg1), getObject(arg2));
|
|
975
|
+
};
|
|
976
|
+
imports.wbg.__wbg_bindAttribLocation_9e7dad25e51f58b1 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
977
|
+
getObject(arg0).bindAttribLocation(getObject(arg1), arg2 >>> 0, getStringFromWasm0(arg3, arg4));
|
|
978
|
+
};
|
|
979
|
+
imports.wbg.__wbg_bindBuffer_d6b05e0a99a752d4 = function(arg0, arg1, arg2) {
|
|
980
|
+
getObject(arg0).bindBuffer(arg1 >>> 0, getObject(arg2));
|
|
981
|
+
};
|
|
982
|
+
imports.wbg.__wbg_bindFramebuffer_f5e959313c29a7c6 = function(arg0, arg1, arg2) {
|
|
983
|
+
getObject(arg0).bindFramebuffer(arg1 >>> 0, getObject(arg2));
|
|
984
|
+
};
|
|
985
|
+
imports.wbg.__wbg_bindRenderbuffer_691cb14fc6248155 = function(arg0, arg1, arg2) {
|
|
986
|
+
getObject(arg0).bindRenderbuffer(arg1 >>> 0, getObject(arg2));
|
|
987
|
+
};
|
|
988
|
+
imports.wbg.__wbg_bindTexture_840f7fcfd0298dc4 = function(arg0, arg1, arg2) {
|
|
989
|
+
getObject(arg0).bindTexture(arg1 >>> 0, getObject(arg2));
|
|
990
|
+
};
|
|
991
|
+
imports.wbg.__wbg_blendColor_4c1f00a2e4f1a80d = function(arg0, arg1, arg2, arg3, arg4) {
|
|
992
|
+
getObject(arg0).blendColor(arg1, arg2, arg3, arg4);
|
|
993
|
+
};
|
|
994
|
+
imports.wbg.__wbg_blendEquation_e7b91e8e062fa502 = function(arg0, arg1) {
|
|
995
|
+
getObject(arg0).blendEquation(arg1 >>> 0);
|
|
996
|
+
};
|
|
997
|
+
imports.wbg.__wbg_blendEquationSeparate_272bfcd932055191 = function(arg0, arg1, arg2) {
|
|
998
|
+
getObject(arg0).blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
|
|
999
|
+
};
|
|
1000
|
+
imports.wbg.__wbg_blendFunc_6a7b81c06098c023 = function(arg0, arg1, arg2) {
|
|
1001
|
+
getObject(arg0).blendFunc(arg1 >>> 0, arg2 >>> 0);
|
|
1002
|
+
};
|
|
1003
|
+
imports.wbg.__wbg_blendFuncSeparate_f81dd232d266e735 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1004
|
+
getObject(arg0).blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1005
|
+
};
|
|
1006
|
+
imports.wbg.__wbg_clear_7a2a7ca897047e8d = function(arg0, arg1) {
|
|
1007
|
+
getObject(arg0).clear(arg1 >>> 0);
|
|
1008
|
+
};
|
|
1009
|
+
imports.wbg.__wbg_clearDepth_a65e67fdeb1f3ff9 = function(arg0, arg1) {
|
|
1010
|
+
getObject(arg0).clearDepth(arg1);
|
|
1011
|
+
};
|
|
1012
|
+
imports.wbg.__wbg_clearStencil_1f24aec5432f38ba = function(arg0, arg1) {
|
|
1013
|
+
getObject(arg0).clearStencil(arg1);
|
|
1014
|
+
};
|
|
1015
|
+
imports.wbg.__wbg_colorMask_7c2aafdec5441392 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1016
|
+
getObject(arg0).colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
|
|
1017
|
+
};
|
|
1018
|
+
imports.wbg.__wbg_compileShader_77ef81728b1c03f6 = function(arg0, arg1) {
|
|
1019
|
+
getObject(arg0).compileShader(getObject(arg1));
|
|
1020
|
+
};
|
|
1021
|
+
imports.wbg.__wbg_copyTexSubImage2D_d3b3d3b235c88d33 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
1022
|
+
getObject(arg0).copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
|
|
1023
|
+
};
|
|
1024
|
+
imports.wbg.__wbg_createBuffer_7b18852edffb3ab4 = function(arg0) {
|
|
1025
|
+
const ret = getObject(arg0).createBuffer();
|
|
1026
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1027
|
+
};
|
|
1028
|
+
imports.wbg.__wbg_createFramebuffer_a12847edac092647 = function(arg0) {
|
|
1029
|
+
const ret = getObject(arg0).createFramebuffer();
|
|
1030
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1031
|
+
};
|
|
1032
|
+
imports.wbg.__wbg_createProgram_73611dc7a72c4ee2 = function(arg0) {
|
|
1033
|
+
const ret = getObject(arg0).createProgram();
|
|
1034
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1035
|
+
};
|
|
1036
|
+
imports.wbg.__wbg_createRenderbuffer_e7bd95fedc0bbcb5 = function(arg0) {
|
|
1037
|
+
const ret = getObject(arg0).createRenderbuffer();
|
|
1038
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1039
|
+
};
|
|
1040
|
+
imports.wbg.__wbg_createShader_f10ffabbfd8e2c8c = function(arg0, arg1) {
|
|
1041
|
+
const ret = getObject(arg0).createShader(arg1 >>> 0);
|
|
1042
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1043
|
+
};
|
|
1044
|
+
imports.wbg.__wbg_createTexture_2426b031baa26a82 = function(arg0) {
|
|
1045
|
+
const ret = getObject(arg0).createTexture();
|
|
1046
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1047
|
+
};
|
|
1048
|
+
imports.wbg.__wbg_cullFace_fbafcb7763a2d6aa = function(arg0, arg1) {
|
|
1049
|
+
getObject(arg0).cullFace(arg1 >>> 0);
|
|
1050
|
+
};
|
|
1051
|
+
imports.wbg.__wbg_deleteBuffer_27b0fb5ed68afbe4 = function(arg0, arg1) {
|
|
1052
|
+
getObject(arg0).deleteBuffer(getObject(arg1));
|
|
1053
|
+
};
|
|
1054
|
+
imports.wbg.__wbg_deleteFramebuffer_c0d511b2fc07620d = function(arg0, arg1) {
|
|
1055
|
+
getObject(arg0).deleteFramebuffer(getObject(arg1));
|
|
1056
|
+
};
|
|
1057
|
+
imports.wbg.__wbg_deleteProgram_c3238b647d849334 = function(arg0, arg1) {
|
|
1058
|
+
getObject(arg0).deleteProgram(getObject(arg1));
|
|
1059
|
+
};
|
|
1060
|
+
imports.wbg.__wbg_deleteRenderbuffer_325417b497c5ae27 = function(arg0, arg1) {
|
|
1061
|
+
getObject(arg0).deleteRenderbuffer(getObject(arg1));
|
|
1062
|
+
};
|
|
1063
|
+
imports.wbg.__wbg_deleteShader_da06706168cf00dc = function(arg0, arg1) {
|
|
1064
|
+
getObject(arg0).deleteShader(getObject(arg1));
|
|
1065
|
+
};
|
|
1066
|
+
imports.wbg.__wbg_deleteTexture_cdd844345a2559bb = function(arg0, arg1) {
|
|
1067
|
+
getObject(arg0).deleteTexture(getObject(arg1));
|
|
1068
|
+
};
|
|
1069
|
+
imports.wbg.__wbg_depthFunc_2f1df7eb8339f5a3 = function(arg0, arg1) {
|
|
1070
|
+
getObject(arg0).depthFunc(arg1 >>> 0);
|
|
1071
|
+
};
|
|
1072
|
+
imports.wbg.__wbg_depthMask_a301dd9951c6056c = function(arg0, arg1) {
|
|
1073
|
+
getObject(arg0).depthMask(arg1 !== 0);
|
|
1074
|
+
};
|
|
1075
|
+
imports.wbg.__wbg_depthRange_85c249bf5c81856c = function(arg0, arg1, arg2) {
|
|
1076
|
+
getObject(arg0).depthRange(arg1, arg2);
|
|
1077
|
+
};
|
|
1078
|
+
imports.wbg.__wbg_disable_8908871f2334e76b = function(arg0, arg1) {
|
|
1079
|
+
getObject(arg0).disable(arg1 >>> 0);
|
|
1080
|
+
};
|
|
1081
|
+
imports.wbg.__wbg_disableVertexAttribArray_79a5010f18eb84cb = function(arg0, arg1) {
|
|
1082
|
+
getObject(arg0).disableVertexAttribArray(arg1 >>> 0);
|
|
1083
|
+
};
|
|
1084
|
+
imports.wbg.__wbg_drawArrays_7a8f5031b1fe80ff = function(arg0, arg1, arg2, arg3) {
|
|
1085
|
+
getObject(arg0).drawArrays(arg1 >>> 0, arg2, arg3);
|
|
1086
|
+
};
|
|
1087
|
+
imports.wbg.__wbg_enable_541ed84c1e7d269d = function(arg0, arg1) {
|
|
1088
|
+
getObject(arg0).enable(arg1 >>> 0);
|
|
1089
|
+
};
|
|
1090
|
+
imports.wbg.__wbg_enableVertexAttribArray_06043f51b716ed9d = function(arg0, arg1) {
|
|
1091
|
+
getObject(arg0).enableVertexAttribArray(arg1 >>> 0);
|
|
1092
|
+
};
|
|
1093
|
+
imports.wbg.__wbg_framebufferRenderbuffer_f7c592ad40667f89 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1094
|
+
getObject(arg0).framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, getObject(arg4));
|
|
1095
|
+
};
|
|
1096
|
+
imports.wbg.__wbg_framebufferTexture2D_5b524fe6135d5fe8 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1097
|
+
getObject(arg0).framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, getObject(arg4), arg5);
|
|
1098
|
+
};
|
|
1099
|
+
imports.wbg.__wbg_frontFace_54ccf43770ae1011 = function(arg0, arg1) {
|
|
1100
|
+
getObject(arg0).frontFace(arg1 >>> 0);
|
|
1101
|
+
};
|
|
1102
|
+
imports.wbg.__wbg_getExtension_095ef1e6c9d8d8ab = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1103
|
+
const ret = getObject(arg0).getExtension(getStringFromWasm0(arg1, arg2));
|
|
1104
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1105
|
+
}, arguments) };
|
|
1106
|
+
imports.wbg.__wbg_getParameter_cfaed180705b9280 = function() { return handleError(function (arg0, arg1) {
|
|
1107
|
+
const ret = getObject(arg0).getParameter(arg1 >>> 0);
|
|
1108
|
+
return addHeapObject(ret);
|
|
1109
|
+
}, arguments) };
|
|
1110
|
+
imports.wbg.__wbg_getProgramInfoLog_fe796f3a9512a8e3 = function(arg0, arg1, arg2) {
|
|
1111
|
+
const ret = getObject(arg1).getProgramInfoLog(getObject(arg2));
|
|
1112
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1113
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1114
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1115
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1116
|
+
};
|
|
1117
|
+
imports.wbg.__wbg_getProgramParameter_9df6cbbb1343b27d = function(arg0, arg1, arg2) {
|
|
1118
|
+
const ret = getObject(arg0).getProgramParameter(getObject(arg1), arg2 >>> 0);
|
|
1119
|
+
return addHeapObject(ret);
|
|
1120
|
+
};
|
|
1121
|
+
imports.wbg.__wbg_getShaderInfoLog_a7ca51b89a4dafab = function(arg0, arg1, arg2) {
|
|
1122
|
+
const ret = getObject(arg1).getShaderInfoLog(getObject(arg2));
|
|
1123
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1124
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1125
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1126
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1127
|
+
};
|
|
1128
|
+
imports.wbg.__wbg_getShaderParameter_806970126d526c29 = function(arg0, arg1, arg2) {
|
|
1129
|
+
const ret = getObject(arg0).getShaderParameter(getObject(arg1), arg2 >>> 0);
|
|
1130
|
+
return addHeapObject(ret);
|
|
1131
|
+
};
|
|
1132
|
+
imports.wbg.__wbg_getSupportedExtensions_e1788ac835b7e81a = function(arg0) {
|
|
1133
|
+
const ret = getObject(arg0).getSupportedExtensions();
|
|
1134
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1135
|
+
};
|
|
1136
|
+
imports.wbg.__wbg_getUniformLocation_6a59ad54df3bba8e = function(arg0, arg1, arg2, arg3) {
|
|
1137
|
+
const ret = getObject(arg0).getUniformLocation(getObject(arg1), getStringFromWasm0(arg2, arg3));
|
|
1138
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1139
|
+
};
|
|
1140
|
+
imports.wbg.__wbg_linkProgram_56a5d97f63b1f56d = function(arg0, arg1) {
|
|
1141
|
+
getObject(arg0).linkProgram(getObject(arg1));
|
|
1142
|
+
};
|
|
1143
|
+
imports.wbg.__wbg_pixelStorei_3a600280eab03e3c = function(arg0, arg1, arg2) {
|
|
1144
|
+
getObject(arg0).pixelStorei(arg1 >>> 0, arg2);
|
|
1145
|
+
};
|
|
1146
|
+
imports.wbg.__wbg_polygonOffset_ebf1b1bd8db53e65 = function(arg0, arg1, arg2) {
|
|
1147
|
+
getObject(arg0).polygonOffset(arg1, arg2);
|
|
1148
|
+
};
|
|
1149
|
+
imports.wbg.__wbg_renderbufferStorage_3c5e469d82dfe89b = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1150
|
+
getObject(arg0).renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
|
|
1151
|
+
};
|
|
1152
|
+
imports.wbg.__wbg_scissor_2b172ca4e459dd16 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1153
|
+
getObject(arg0).scissor(arg1, arg2, arg3, arg4);
|
|
1154
|
+
};
|
|
1155
|
+
imports.wbg.__wbg_shaderSource_b92b2b5c29126344 = function(arg0, arg1, arg2, arg3) {
|
|
1156
|
+
getObject(arg0).shaderSource(getObject(arg1), getStringFromWasm0(arg2, arg3));
|
|
1157
|
+
};
|
|
1158
|
+
imports.wbg.__wbg_stencilFuncSeparate_25b5dd967d72b6e5 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1159
|
+
getObject(arg0).stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0);
|
|
1160
|
+
};
|
|
1161
|
+
imports.wbg.__wbg_stencilMask_702162181d88081f = function(arg0, arg1) {
|
|
1162
|
+
getObject(arg0).stencilMask(arg1 >>> 0);
|
|
1163
|
+
};
|
|
1164
|
+
imports.wbg.__wbg_stencilMaskSeparate_1f803a440e789b81 = function(arg0, arg1, arg2) {
|
|
1165
|
+
getObject(arg0).stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0);
|
|
1166
|
+
};
|
|
1167
|
+
imports.wbg.__wbg_stencilOpSeparate_52b401966f916a0f = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1168
|
+
getObject(arg0).stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1169
|
+
};
|
|
1170
|
+
imports.wbg.__wbg_texParameteri_531d0268109950ba = function(arg0, arg1, arg2, arg3) {
|
|
1171
|
+
getObject(arg0).texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
1172
|
+
};
|
|
1173
|
+
imports.wbg.__wbg_uniform1f_81b570bf6358ae6c = function(arg0, arg1, arg2) {
|
|
1174
|
+
getObject(arg0).uniform1f(getObject(arg1), arg2);
|
|
1175
|
+
};
|
|
1176
|
+
imports.wbg.__wbg_uniform1i_ded3be13f5d8f11a = function(arg0, arg1, arg2) {
|
|
1177
|
+
getObject(arg0).uniform1i(getObject(arg1), arg2);
|
|
1178
|
+
};
|
|
1179
|
+
imports.wbg.__wbg_uniform4f_bdbb7cf56fc94cbb = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1180
|
+
getObject(arg0).uniform4f(getObject(arg1), arg2, arg3, arg4, arg5);
|
|
1181
|
+
};
|
|
1182
|
+
imports.wbg.__wbg_useProgram_001c6b9208b683d3 = function(arg0, arg1) {
|
|
1183
|
+
getObject(arg0).useProgram(getObject(arg1));
|
|
1184
|
+
};
|
|
1185
|
+
imports.wbg.__wbg_vertexAttribPointer_b435a034ff758637 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1186
|
+
getObject(arg0).vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
|
1187
|
+
};
|
|
1188
|
+
imports.wbg.__wbg_viewport_536c78dd69c44351 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1189
|
+
getObject(arg0).viewport(arg1, arg2, arg3, arg4);
|
|
1190
|
+
};
|
|
1191
|
+
imports.wbg.__wbg_instanceof_Window_5012736c80a01584 = function(arg0) {
|
|
1192
|
+
let result;
|
|
1193
|
+
try {
|
|
1194
|
+
result = getObject(arg0) instanceof Window;
|
|
1195
|
+
} catch (_) {
|
|
1196
|
+
result = false;
|
|
1197
|
+
}
|
|
1198
|
+
const ret = result;
|
|
1199
|
+
return ret;
|
|
1200
|
+
};
|
|
1201
|
+
imports.wbg.__wbg_document_8554450897a855b9 = function(arg0) {
|
|
1202
|
+
const ret = getObject(arg0).document;
|
|
1203
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1204
|
+
};
|
|
1205
|
+
imports.wbg.__wbg_querySelector_e21c39150aa72078 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1206
|
+
const ret = getObject(arg0).querySelector(getStringFromWasm0(arg1, arg2));
|
|
1207
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1208
|
+
}, arguments) };
|
|
1209
|
+
imports.wbg.__wbg_bufferData_fc33089cf05a6c5a = function(arg0, arg1, arg2, arg3) {
|
|
1210
|
+
getObject(arg0).bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
1211
|
+
};
|
|
1212
|
+
imports.wbg.__wbg_bufferData_0db2a74470353a96 = function(arg0, arg1, arg2, arg3) {
|
|
1213
|
+
getObject(arg0).bufferData(arg1 >>> 0, getObject(arg2), arg3 >>> 0);
|
|
1214
|
+
};
|
|
1215
|
+
imports.wbg.__wbg_bufferSubData_944883045753ee61 = function(arg0, arg1, arg2, arg3) {
|
|
1216
|
+
getObject(arg0).bufferSubData(arg1 >>> 0, arg2, getObject(arg3));
|
|
1217
|
+
};
|
|
1218
|
+
imports.wbg.__wbg_compressedTexSubImage2D_678be4671393a94b = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
1219
|
+
getObject(arg0).compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, getObject(arg8));
|
|
1220
|
+
};
|
|
1221
|
+
imports.wbg.__wbg_readPixels_0c5ad23c72dbe1b8 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1222
|
+
getObject(arg0).readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, getObject(arg7));
|
|
1223
|
+
}, arguments) };
|
|
1224
|
+
imports.wbg.__wbg_texImage2D_d704e7eee22d1e6b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1225
|
+
getObject(arg0).texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
|
1226
|
+
}, arguments) };
|
|
1227
|
+
imports.wbg.__wbg_texSubImage2D_bed4633ee03b384d = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1228
|
+
getObject(arg0).texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
|
1229
|
+
}, arguments) };
|
|
1230
|
+
imports.wbg.__wbg_uniform2fv_b73144e507d90a92 = function(arg0, arg1, arg2, arg3) {
|
|
1231
|
+
getObject(arg0).uniform2fv(getObject(arg1), getArrayF32FromWasm0(arg2, arg3));
|
|
1232
|
+
};
|
|
1233
|
+
imports.wbg.__wbg_uniform2iv_27f3fc3aefa41fa7 = function(arg0, arg1, arg2, arg3) {
|
|
1234
|
+
getObject(arg0).uniform2iv(getObject(arg1), getArrayI32FromWasm0(arg2, arg3));
|
|
1235
|
+
};
|
|
1236
|
+
imports.wbg.__wbg_uniform3fv_5df1d945c0bbfe20 = function(arg0, arg1, arg2, arg3) {
|
|
1237
|
+
getObject(arg0).uniform3fv(getObject(arg1), getArrayF32FromWasm0(arg2, arg3));
|
|
1238
|
+
};
|
|
1239
|
+
imports.wbg.__wbg_uniform3iv_03be54fcc4468fc4 = function(arg0, arg1, arg2, arg3) {
|
|
1240
|
+
getObject(arg0).uniform3iv(getObject(arg1), getArrayI32FromWasm0(arg2, arg3));
|
|
1241
|
+
};
|
|
1242
|
+
imports.wbg.__wbg_uniform4fv_d87e4ea9ef6cf6de = function(arg0, arg1, arg2, arg3) {
|
|
1243
|
+
getObject(arg0).uniform4fv(getObject(arg1), getArrayF32FromWasm0(arg2, arg3));
|
|
1244
|
+
};
|
|
1245
|
+
imports.wbg.__wbg_uniform4iv_965df9fa4c8ab47e = function(arg0, arg1, arg2, arg3) {
|
|
1246
|
+
getObject(arg0).uniform4iv(getObject(arg1), getArrayI32FromWasm0(arg2, arg3));
|
|
1247
|
+
};
|
|
1248
|
+
imports.wbg.__wbg_uniformMatrix2fv_8646addaa18ba00b = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1249
|
+
getObject(arg0).uniformMatrix2fv(getObject(arg1), arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
1250
|
+
};
|
|
1251
|
+
imports.wbg.__wbg_uniformMatrix3fv_917f07d03e8b1db5 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1252
|
+
getObject(arg0).uniformMatrix3fv(getObject(arg1), arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
1253
|
+
};
|
|
1254
|
+
imports.wbg.__wbg_uniformMatrix4fv_46c1f9033bbb1a5e = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1255
|
+
getObject(arg0).uniformMatrix4fv(getObject(arg1), arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
1256
|
+
};
|
|
1257
|
+
imports.wbg.__wbg_activeTexture_b967ed47a8083daa = function(arg0, arg1) {
|
|
1258
|
+
getObject(arg0).activeTexture(arg1 >>> 0);
|
|
1259
|
+
};
|
|
1260
|
+
imports.wbg.__wbg_attachShader_2b5810fc1d23ebe7 = function(arg0, arg1, arg2) {
|
|
1261
|
+
getObject(arg0).attachShader(getObject(arg1), getObject(arg2));
|
|
1262
|
+
};
|
|
1263
|
+
imports.wbg.__wbg_bindAttribLocation_0018ec2a523f139f = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1264
|
+
getObject(arg0).bindAttribLocation(getObject(arg1), arg2 >>> 0, getStringFromWasm0(arg3, arg4));
|
|
1265
|
+
};
|
|
1266
|
+
imports.wbg.__wbg_bindBuffer_1f581c747176e7d7 = function(arg0, arg1, arg2) {
|
|
1267
|
+
getObject(arg0).bindBuffer(arg1 >>> 0, getObject(arg2));
|
|
1268
|
+
};
|
|
1269
|
+
imports.wbg.__wbg_bindFramebuffer_8cba9964befd2a6d = function(arg0, arg1, arg2) {
|
|
1270
|
+
getObject(arg0).bindFramebuffer(arg1 >>> 0, getObject(arg2));
|
|
1271
|
+
};
|
|
1272
|
+
imports.wbg.__wbg_bindRenderbuffer_297ae310683dc32b = function(arg0, arg1, arg2) {
|
|
1273
|
+
getObject(arg0).bindRenderbuffer(arg1 >>> 0, getObject(arg2));
|
|
1274
|
+
};
|
|
1275
|
+
imports.wbg.__wbg_bindTexture_bffa89324927e23a = function(arg0, arg1, arg2) {
|
|
1276
|
+
getObject(arg0).bindTexture(arg1 >>> 0, getObject(arg2));
|
|
1277
|
+
};
|
|
1278
|
+
imports.wbg.__wbg_blendColor_c876d94aa784bef7 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1279
|
+
getObject(arg0).blendColor(arg1, arg2, arg3, arg4);
|
|
1280
|
+
};
|
|
1281
|
+
imports.wbg.__wbg_blendEquation_4f3b8eb0b07cab21 = function(arg0, arg1) {
|
|
1282
|
+
getObject(arg0).blendEquation(arg1 >>> 0);
|
|
1283
|
+
};
|
|
1284
|
+
imports.wbg.__wbg_blendEquationSeparate_95241ffd0f6ab09e = function(arg0, arg1, arg2) {
|
|
1285
|
+
getObject(arg0).blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
|
|
1286
|
+
};
|
|
1287
|
+
imports.wbg.__wbg_blendFunc_f31d0f0d227137e0 = function(arg0, arg1, arg2) {
|
|
1288
|
+
getObject(arg0).blendFunc(arg1 >>> 0, arg2 >>> 0);
|
|
1289
|
+
};
|
|
1290
|
+
imports.wbg.__wbg_blendFuncSeparate_2b607032f14b9381 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1291
|
+
getObject(arg0).blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1292
|
+
};
|
|
1293
|
+
imports.wbg.__wbg_clear_780c4e5384fe3fc6 = function(arg0, arg1) {
|
|
1294
|
+
getObject(arg0).clear(arg1 >>> 0);
|
|
1295
|
+
};
|
|
1296
|
+
imports.wbg.__wbg_clearDepth_92f7c7d02e50df24 = function(arg0, arg1) {
|
|
1297
|
+
getObject(arg0).clearDepth(arg1);
|
|
1298
|
+
};
|
|
1299
|
+
imports.wbg.__wbg_clearStencil_78b0b3c82001b542 = function(arg0, arg1) {
|
|
1300
|
+
getObject(arg0).clearStencil(arg1);
|
|
1301
|
+
};
|
|
1302
|
+
imports.wbg.__wbg_colorMask_6a64eb75df60e2cf = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1303
|
+
getObject(arg0).colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
|
|
1304
|
+
};
|
|
1305
|
+
imports.wbg.__wbg_compileShader_043cc8b99c2efc21 = function(arg0, arg1) {
|
|
1306
|
+
getObject(arg0).compileShader(getObject(arg1));
|
|
1307
|
+
};
|
|
1308
|
+
imports.wbg.__wbg_copyTexSubImage2D_8f6644e7df89a307 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
1309
|
+
getObject(arg0).copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
|
|
1310
|
+
};
|
|
1311
|
+
imports.wbg.__wbg_createBuffer_9571c039ba6696c6 = function(arg0) {
|
|
1312
|
+
const ret = getObject(arg0).createBuffer();
|
|
1313
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1314
|
+
};
|
|
1315
|
+
imports.wbg.__wbg_createFramebuffer_20f79ec189ef2060 = function(arg0) {
|
|
1316
|
+
const ret = getObject(arg0).createFramebuffer();
|
|
1317
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1318
|
+
};
|
|
1319
|
+
imports.wbg.__wbg_createProgram_2c3a8969b5a76988 = function(arg0) {
|
|
1320
|
+
const ret = getObject(arg0).createProgram();
|
|
1321
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1322
|
+
};
|
|
1323
|
+
imports.wbg.__wbg_createRenderbuffer_620bdfb7867926e8 = function(arg0) {
|
|
1324
|
+
const ret = getObject(arg0).createRenderbuffer();
|
|
1325
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1326
|
+
};
|
|
1327
|
+
imports.wbg.__wbg_createShader_af087106532661d9 = function(arg0, arg1) {
|
|
1328
|
+
const ret = getObject(arg0).createShader(arg1 >>> 0);
|
|
1329
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1330
|
+
};
|
|
1331
|
+
imports.wbg.__wbg_createTexture_e49c36c5f31925a3 = function(arg0) {
|
|
1332
|
+
const ret = getObject(arg0).createTexture();
|
|
1333
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1334
|
+
};
|
|
1335
|
+
imports.wbg.__wbg_cullFace_ccad99c645b704eb = function(arg0, arg1) {
|
|
1336
|
+
getObject(arg0).cullFace(arg1 >>> 0);
|
|
1337
|
+
};
|
|
1338
|
+
imports.wbg.__wbg_deleteBuffer_898974b9db136e43 = function(arg0, arg1) {
|
|
1339
|
+
getObject(arg0).deleteBuffer(getObject(arg1));
|
|
1340
|
+
};
|
|
1341
|
+
imports.wbg.__wbg_deleteFramebuffer_d632dfba2c1f5c75 = function(arg0, arg1) {
|
|
1342
|
+
getObject(arg0).deleteFramebuffer(getObject(arg1));
|
|
1343
|
+
};
|
|
1344
|
+
imports.wbg.__wbg_deleteProgram_5f938b0667141206 = function(arg0, arg1) {
|
|
1345
|
+
getObject(arg0).deleteProgram(getObject(arg1));
|
|
1346
|
+
};
|
|
1347
|
+
imports.wbg.__wbg_deleteRenderbuffer_ccae7372581ae424 = function(arg0, arg1) {
|
|
1348
|
+
getObject(arg0).deleteRenderbuffer(getObject(arg1));
|
|
1349
|
+
};
|
|
1350
|
+
imports.wbg.__wbg_deleteShader_b9bb71cfb1a65a0d = function(arg0, arg1) {
|
|
1351
|
+
getObject(arg0).deleteShader(getObject(arg1));
|
|
1352
|
+
};
|
|
1353
|
+
imports.wbg.__wbg_deleteTexture_558c751a66bd2f16 = function(arg0, arg1) {
|
|
1354
|
+
getObject(arg0).deleteTexture(getObject(arg1));
|
|
1355
|
+
};
|
|
1356
|
+
imports.wbg.__wbg_depthFunc_5398fbc3f56db827 = function(arg0, arg1) {
|
|
1357
|
+
getObject(arg0).depthFunc(arg1 >>> 0);
|
|
1358
|
+
};
|
|
1359
|
+
imports.wbg.__wbg_depthMask_9b58af067c6393e9 = function(arg0, arg1) {
|
|
1360
|
+
getObject(arg0).depthMask(arg1 !== 0);
|
|
1361
|
+
};
|
|
1362
|
+
imports.wbg.__wbg_depthRange_29f0e12388f0eacb = function(arg0, arg1, arg2) {
|
|
1363
|
+
getObject(arg0).depthRange(arg1, arg2);
|
|
1364
|
+
};
|
|
1365
|
+
imports.wbg.__wbg_disable_d73e59fee5b5e973 = function(arg0, arg1) {
|
|
1366
|
+
getObject(arg0).disable(arg1 >>> 0);
|
|
1367
|
+
};
|
|
1368
|
+
imports.wbg.__wbg_disableVertexAttribArray_b9d8ae826c70526f = function(arg0, arg1) {
|
|
1369
|
+
getObject(arg0).disableVertexAttribArray(arg1 >>> 0);
|
|
1370
|
+
};
|
|
1371
|
+
imports.wbg.__wbg_drawArrays_532f4e0a4547dd1f = function(arg0, arg1, arg2, arg3) {
|
|
1372
|
+
getObject(arg0).drawArrays(arg1 >>> 0, arg2, arg3);
|
|
1373
|
+
};
|
|
1374
|
+
imports.wbg.__wbg_enable_68b3fa03a633259a = function(arg0, arg1) {
|
|
1375
|
+
getObject(arg0).enable(arg1 >>> 0);
|
|
1376
|
+
};
|
|
1377
|
+
imports.wbg.__wbg_enableVertexAttribArray_52c23a516be565c0 = function(arg0, arg1) {
|
|
1378
|
+
getObject(arg0).enableVertexAttribArray(arg1 >>> 0);
|
|
1379
|
+
};
|
|
1380
|
+
imports.wbg.__wbg_framebufferRenderbuffer_fee6ceb2330389b7 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1381
|
+
getObject(arg0).framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, getObject(arg4));
|
|
1382
|
+
};
|
|
1383
|
+
imports.wbg.__wbg_framebufferTexture2D_ae81a33228e46de6 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1384
|
+
getObject(arg0).framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, getObject(arg4), arg5);
|
|
1385
|
+
};
|
|
1386
|
+
imports.wbg.__wbg_frontFace_358bf8c6c5159d54 = function(arg0, arg1) {
|
|
1387
|
+
getObject(arg0).frontFace(arg1 >>> 0);
|
|
1388
|
+
};
|
|
1389
|
+
imports.wbg.__wbg_getParameter_8df84a84197f2148 = function() { return handleError(function (arg0, arg1) {
|
|
1390
|
+
const ret = getObject(arg0).getParameter(arg1 >>> 0);
|
|
1391
|
+
return addHeapObject(ret);
|
|
1392
|
+
}, arguments) };
|
|
1393
|
+
imports.wbg.__wbg_getProgramInfoLog_22296c36addf7a70 = function(arg0, arg1, arg2) {
|
|
1394
|
+
const ret = getObject(arg1).getProgramInfoLog(getObject(arg2));
|
|
1395
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1396
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1397
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1398
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1399
|
+
};
|
|
1400
|
+
imports.wbg.__wbg_getProgramParameter_ab2954ca517d8589 = function(arg0, arg1, arg2) {
|
|
1401
|
+
const ret = getObject(arg0).getProgramParameter(getObject(arg1), arg2 >>> 0);
|
|
1402
|
+
return addHeapObject(ret);
|
|
1403
|
+
};
|
|
1404
|
+
imports.wbg.__wbg_getShaderInfoLog_935361c52a919c15 = function(arg0, arg1, arg2) {
|
|
1405
|
+
const ret = getObject(arg1).getShaderInfoLog(getObject(arg2));
|
|
1406
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1407
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1408
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1409
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1410
|
+
};
|
|
1411
|
+
imports.wbg.__wbg_getShaderParameter_cedb1ec0d8052eff = function(arg0, arg1, arg2) {
|
|
1412
|
+
const ret = getObject(arg0).getShaderParameter(getObject(arg1), arg2 >>> 0);
|
|
1413
|
+
return addHeapObject(ret);
|
|
1414
|
+
};
|
|
1415
|
+
imports.wbg.__wbg_getUniformLocation_9cd213015cf8f29f = function(arg0, arg1, arg2, arg3) {
|
|
1416
|
+
const ret = getObject(arg0).getUniformLocation(getObject(arg1), getStringFromWasm0(arg2, arg3));
|
|
1417
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1418
|
+
};
|
|
1419
|
+
imports.wbg.__wbg_linkProgram_1f18bca817bb6edb = function(arg0, arg1) {
|
|
1420
|
+
getObject(arg0).linkProgram(getObject(arg1));
|
|
1421
|
+
};
|
|
1422
|
+
imports.wbg.__wbg_pixelStorei_2498331e094ff305 = function(arg0, arg1, arg2) {
|
|
1423
|
+
getObject(arg0).pixelStorei(arg1 >>> 0, arg2);
|
|
1424
|
+
};
|
|
1425
|
+
imports.wbg.__wbg_polygonOffset_6d8d69a8d60e5b82 = function(arg0, arg1, arg2) {
|
|
1426
|
+
getObject(arg0).polygonOffset(arg1, arg2);
|
|
1427
|
+
};
|
|
1428
|
+
imports.wbg.__wbg_renderbufferStorage_8c3882aa73deada9 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1429
|
+
getObject(arg0).renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
|
|
1430
|
+
};
|
|
1431
|
+
imports.wbg.__wbg_scissor_d06b14c4966727fa = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1432
|
+
getObject(arg0).scissor(arg1, arg2, arg3, arg4);
|
|
1433
|
+
};
|
|
1434
|
+
imports.wbg.__wbg_shaderSource_d447b31057e4f64c = function(arg0, arg1, arg2, arg3) {
|
|
1435
|
+
getObject(arg0).shaderSource(getObject(arg1), getStringFromWasm0(arg2, arg3));
|
|
1436
|
+
};
|
|
1437
|
+
imports.wbg.__wbg_stencilFuncSeparate_55376d035e74caf1 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1438
|
+
getObject(arg0).stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0);
|
|
1439
|
+
};
|
|
1440
|
+
imports.wbg.__wbg_stencilMask_f55f160fc49b981a = function(arg0, arg1) {
|
|
1441
|
+
getObject(arg0).stencilMask(arg1 >>> 0);
|
|
1442
|
+
};
|
|
1443
|
+
imports.wbg.__wbg_stencilMaskSeparate_578fd1281f54081e = function(arg0, arg1, arg2) {
|
|
1444
|
+
getObject(arg0).stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0);
|
|
1445
|
+
};
|
|
1446
|
+
imports.wbg.__wbg_stencilOpSeparate_ea6f96abd32aae5b = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1447
|
+
getObject(arg0).stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1448
|
+
};
|
|
1449
|
+
imports.wbg.__wbg_texParameteri_83ad7181b62f4997 = function(arg0, arg1, arg2, arg3) {
|
|
1450
|
+
getObject(arg0).texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
1451
|
+
};
|
|
1452
|
+
imports.wbg.__wbg_uniform1f_509b4ba100d75456 = function(arg0, arg1, arg2) {
|
|
1453
|
+
getObject(arg0).uniform1f(getObject(arg1), arg2);
|
|
1454
|
+
};
|
|
1455
|
+
imports.wbg.__wbg_uniform1i_7f6e60c975d21e0a = function(arg0, arg1, arg2) {
|
|
1456
|
+
getObject(arg0).uniform1i(getObject(arg1), arg2);
|
|
1457
|
+
};
|
|
1458
|
+
imports.wbg.__wbg_uniform4f_f9a7809965964840 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1459
|
+
getObject(arg0).uniform4f(getObject(arg1), arg2, arg3, arg4, arg5);
|
|
1460
|
+
};
|
|
1461
|
+
imports.wbg.__wbg_useProgram_d4616618ac6d0652 = function(arg0, arg1) {
|
|
1462
|
+
getObject(arg0).useProgram(getObject(arg1));
|
|
1463
|
+
};
|
|
1464
|
+
imports.wbg.__wbg_vertexAttribPointer_fcbfe42523d724ca = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1465
|
+
getObject(arg0).vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
|
1466
|
+
};
|
|
1467
|
+
imports.wbg.__wbg_viewport_efc09c09d4f3cc48 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1468
|
+
getObject(arg0).viewport(arg1, arg2, arg3, arg4);
|
|
1469
|
+
};
|
|
1470
|
+
imports.wbg.__wbg_fetch_ba7fe179e527d942 = function(arg0, arg1) {
|
|
1471
|
+
const ret = getObject(arg0).fetch(getObject(arg1));
|
|
1472
|
+
return addHeapObject(ret);
|
|
1473
|
+
};
|
|
1474
|
+
imports.wbg.__wbg_debug_d7780810b3a93632 = function(arg0, arg1, arg2, arg3) {
|
|
1475
|
+
console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1476
|
+
};
|
|
1477
|
+
imports.wbg.__wbg_error_f02f3d66b42c6251 = function(arg0, arg1, arg2, arg3) {
|
|
1478
|
+
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1479
|
+
};
|
|
1480
|
+
imports.wbg.__wbg_info_123d8c35ec14384a = function(arg0, arg1, arg2, arg3) {
|
|
1481
|
+
console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1482
|
+
};
|
|
1483
|
+
imports.wbg.__wbg_log_22aecf4cc2edc319 = function(arg0, arg1, arg2, arg3) {
|
|
1484
|
+
console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1485
|
+
};
|
|
1486
|
+
imports.wbg.__wbg_warn_60924fcf321399f0 = function(arg0, arg1, arg2, arg3) {
|
|
1487
|
+
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1488
|
+
};
|
|
1489
|
+
imports.wbg.__wbg_drawBuffersWEBGL_ff53a7c3360f5716 = function(arg0, arg1) {
|
|
1490
|
+
getObject(arg0).drawBuffersWEBGL(getObject(arg1));
|
|
1491
|
+
};
|
|
1492
|
+
imports.wbg.__wbg_drawArraysInstancedANGLE_7c668fc363789760 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1493
|
+
getObject(arg0).drawArraysInstancedANGLE(arg1 >>> 0, arg2, arg3, arg4);
|
|
1494
|
+
};
|
|
1495
|
+
imports.wbg.__wbg_drawElementsInstancedANGLE_7d0baa058556f76c = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1496
|
+
getObject(arg0).drawElementsInstancedANGLE(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
1497
|
+
};
|
|
1498
|
+
imports.wbg.__wbg_vertexAttribDivisorANGLE_ff0ade84fc10084b = function(arg0, arg1, arg2) {
|
|
1499
|
+
getObject(arg0).vertexAttribDivisorANGLE(arg1 >>> 0, arg2 >>> 0);
|
|
1500
|
+
};
|
|
1501
|
+
imports.wbg.__wbg_instanceof_HtmlCanvasElement_1a96a01603ec2d8b = function(arg0) {
|
|
1502
|
+
let result;
|
|
1503
|
+
try {
|
|
1504
|
+
result = getObject(arg0) instanceof HTMLCanvasElement;
|
|
1505
|
+
} catch (_) {
|
|
1506
|
+
result = false;
|
|
1507
|
+
}
|
|
1508
|
+
const ret = result;
|
|
1509
|
+
return ret;
|
|
1510
|
+
};
|
|
1511
|
+
imports.wbg.__wbg_width_53a5bd0268e99485 = function(arg0) {
|
|
1512
|
+
const ret = getObject(arg0).width;
|
|
1513
|
+
return ret;
|
|
1514
|
+
};
|
|
1515
|
+
imports.wbg.__wbg_setwidth_e371a8d6b16ebe84 = function(arg0, arg1) {
|
|
1516
|
+
getObject(arg0).width = arg1 >>> 0;
|
|
1517
|
+
};
|
|
1518
|
+
imports.wbg.__wbg_height_6fb32e51e54037ae = function(arg0) {
|
|
1519
|
+
const ret = getObject(arg0).height;
|
|
1520
|
+
return ret;
|
|
1521
|
+
};
|
|
1522
|
+
imports.wbg.__wbg_setheight_ba99ad2df4295e89 = function(arg0, arg1) {
|
|
1523
|
+
getObject(arg0).height = arg1 >>> 0;
|
|
1524
|
+
};
|
|
1525
|
+
imports.wbg.__wbg_getContext_70d493702d2b8f3e = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1526
|
+
const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
1527
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1528
|
+
}, arguments) };
|
|
1529
|
+
imports.wbg.__wbg_width_a7c8cb533b26f0bf = function(arg0) {
|
|
1530
|
+
const ret = getObject(arg0).width;
|
|
1531
|
+
return ret;
|
|
1532
|
+
};
|
|
1533
|
+
imports.wbg.__wbg_setwidth_c20f1f8fcd5d93b4 = function(arg0, arg1) {
|
|
1534
|
+
getObject(arg0).width = arg1 >>> 0;
|
|
1535
|
+
};
|
|
1536
|
+
imports.wbg.__wbg_height_affa017f56a8fb96 = function(arg0) {
|
|
1537
|
+
const ret = getObject(arg0).height;
|
|
1538
|
+
return ret;
|
|
1539
|
+
};
|
|
1540
|
+
imports.wbg.__wbg_setheight_a5e39c9d97429299 = function(arg0, arg1) {
|
|
1541
|
+
getObject(arg0).height = arg1 >>> 0;
|
|
1542
|
+
};
|
|
1543
|
+
imports.wbg.__wbg_new_c5dab3bbcb41f364 = function() { return handleError(function (arg0, arg1) {
|
|
1544
|
+
const ret = new OffscreenCanvas(arg0 >>> 0, arg1 >>> 0);
|
|
1545
|
+
return addHeapObject(ret);
|
|
1546
|
+
}, arguments) };
|
|
1547
|
+
imports.wbg.__wbg_getContext_76f1b45238db4411 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1548
|
+
const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
1549
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1550
|
+
}, arguments) };
|
|
1551
|
+
imports.wbg.__wbg_instanceof_Response_e91b7eb7c611a9ae = function(arg0) {
|
|
1552
|
+
let result;
|
|
1553
|
+
try {
|
|
1554
|
+
result = getObject(arg0) instanceof Response;
|
|
1555
|
+
} catch (_) {
|
|
1556
|
+
result = false;
|
|
1557
|
+
}
|
|
1558
|
+
const ret = result;
|
|
1559
|
+
return ret;
|
|
1560
|
+
};
|
|
1561
|
+
imports.wbg.__wbg_url_1bf85c8abeb8c92d = function(arg0, arg1) {
|
|
1562
|
+
const ret = getObject(arg1).url;
|
|
1563
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1564
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1565
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1566
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1567
|
+
};
|
|
1568
|
+
imports.wbg.__wbg_status_ae8de515694c5c7c = function(arg0) {
|
|
1569
|
+
const ret = getObject(arg0).status;
|
|
1570
|
+
return ret;
|
|
1571
|
+
};
|
|
1572
|
+
imports.wbg.__wbg_headers_5e283e8345689121 = function(arg0) {
|
|
1573
|
+
const ret = getObject(arg0).headers;
|
|
1574
|
+
return addHeapObject(ret);
|
|
1575
|
+
};
|
|
1576
|
+
imports.wbg.__wbg_arrayBuffer_a5fbad63cc7e663b = function() { return handleError(function (arg0) {
|
|
1577
|
+
const ret = getObject(arg0).arrayBuffer();
|
|
1578
|
+
return addHeapObject(ret);
|
|
1579
|
+
}, arguments) };
|
|
1580
|
+
imports.wbg.__wbg_videoWidth_5f4190ae93af0dd6 = function(arg0) {
|
|
1581
|
+
const ret = getObject(arg0).videoWidth;
|
|
1582
|
+
return ret;
|
|
1583
|
+
};
|
|
1584
|
+
imports.wbg.__wbg_videoHeight_4fb4bdd27e02263a = function(arg0) {
|
|
1585
|
+
const ret = getObject(arg0).videoHeight;
|
|
1586
|
+
return ret;
|
|
1587
|
+
};
|
|
1588
|
+
imports.wbg.__wbg_framebufferTextureMultiviewOVR_32295d56731dd362 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1589
|
+
getObject(arg0).framebufferTextureMultiviewOVR(arg1 >>> 0, arg2 >>> 0, getObject(arg3), arg4, arg5, arg6);
|
|
1590
|
+
};
|
|
1591
|
+
imports.wbg.__wbg_new_e27c93803e1acc42 = function() { return handleError(function () {
|
|
1592
|
+
const ret = new Headers();
|
|
1593
|
+
return addHeapObject(ret);
|
|
1594
|
+
}, arguments) };
|
|
1595
|
+
imports.wbg.__wbg_append_f3a4426bb50622c5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1596
|
+
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1597
|
+
}, arguments) };
|
|
1598
|
+
imports.wbg.__wbg_getSupportedProfiles_13c2c2008a14070f = function(arg0) {
|
|
1599
|
+
const ret = getObject(arg0).getSupportedProfiles();
|
|
1600
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1601
|
+
};
|
|
1602
|
+
imports.wbg.__wbg_setbody_734cb3d7ee8e6e96 = function(arg0, arg1) {
|
|
1603
|
+
getObject(arg0).body = getObject(arg1);
|
|
1604
|
+
};
|
|
1605
|
+
imports.wbg.__wbg_setcredentials_2b67800db3f7b621 = function(arg0, arg1) {
|
|
1606
|
+
getObject(arg0).credentials = ["omit","same-origin","include",][arg1];
|
|
1607
|
+
};
|
|
1608
|
+
imports.wbg.__wbg_setheaders_be10a5ab566fd06f = function(arg0, arg1) {
|
|
1609
|
+
getObject(arg0).headers = getObject(arg1);
|
|
1610
|
+
};
|
|
1611
|
+
imports.wbg.__wbg_setmethod_dc68a742c2db5c6a = function(arg0, arg1, arg2) {
|
|
1612
|
+
getObject(arg0).method = getStringFromWasm0(arg1, arg2);
|
|
1613
|
+
};
|
|
1614
|
+
imports.wbg.__wbg_setmode_a781aae2bd3df202 = function(arg0, arg1) {
|
|
1615
|
+
getObject(arg0).mode = ["same-origin","no-cors","cors","navigate",][arg1];
|
|
1616
|
+
};
|
|
1617
|
+
imports.wbg.__wbg_setsignal_91c4e8ebd04eb935 = function(arg0, arg1) {
|
|
1618
|
+
getObject(arg0).signal = getObject(arg1);
|
|
1619
|
+
};
|
|
1620
|
+
imports.wbg.__wbg_width_151910f38d746773 = function(arg0) {
|
|
1621
|
+
const ret = getObject(arg0).width;
|
|
1622
|
+
return ret;
|
|
1623
|
+
};
|
|
1624
|
+
imports.wbg.__wbg_height_c1b4ecc1cfed30aa = function(arg0) {
|
|
1625
|
+
const ret = getObject(arg0).height;
|
|
1626
|
+
return ret;
|
|
1627
|
+
};
|
|
1628
|
+
imports.wbg.__wbg_bindVertexArrayOES_37868a5a4265ea0a = function(arg0, arg1) {
|
|
1629
|
+
getObject(arg0).bindVertexArrayOES(getObject(arg1));
|
|
1630
|
+
};
|
|
1631
|
+
imports.wbg.__wbg_createVertexArrayOES_84334a02da216381 = function(arg0) {
|
|
1632
|
+
const ret = getObject(arg0).createVertexArrayOES();
|
|
1633
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1634
|
+
};
|
|
1635
|
+
imports.wbg.__wbg_deleteVertexArrayOES_e22f7a6baedc5300 = function(arg0, arg1) {
|
|
1636
|
+
getObject(arg0).deleteVertexArrayOES(getObject(arg1));
|
|
1637
|
+
};
|
|
1638
|
+
imports.wbg.__wbg_signal_41e46ccad44bb5e2 = function(arg0) {
|
|
1639
|
+
const ret = getObject(arg0).signal;
|
|
1640
|
+
return addHeapObject(ret);
|
|
1641
|
+
};
|
|
1642
|
+
imports.wbg.__wbg_new_ebf2727385ee825c = function() { return handleError(function () {
|
|
1643
|
+
const ret = new AbortController();
|
|
1644
|
+
return addHeapObject(ret);
|
|
1645
|
+
}, arguments) };
|
|
1646
|
+
imports.wbg.__wbg_abort_8659d889a7877ae3 = function(arg0) {
|
|
1647
|
+
getObject(arg0).abort();
|
|
1648
|
+
};
|
|
1649
|
+
imports.wbg.__wbg_newwithstrandinit_a31c69e4cc337183 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1650
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
1651
|
+
return addHeapObject(ret);
|
|
1652
|
+
}, arguments) };
|
|
1653
|
+
imports.wbg.__wbg_crypto_c48a774b022d20ac = function(arg0) {
|
|
1654
|
+
const ret = getObject(arg0).crypto;
|
|
1655
|
+
return addHeapObject(ret);
|
|
1656
|
+
};
|
|
1657
|
+
imports.wbg.__wbg_process_298734cf255a885d = function(arg0) {
|
|
1658
|
+
const ret = getObject(arg0).process;
|
|
1659
|
+
return addHeapObject(ret);
|
|
1660
|
+
};
|
|
1661
|
+
imports.wbg.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
|
|
1662
|
+
const ret = getObject(arg0).versions;
|
|
1663
|
+
return addHeapObject(ret);
|
|
1664
|
+
};
|
|
1665
|
+
imports.wbg.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
|
|
1666
|
+
const ret = getObject(arg0).node;
|
|
1667
|
+
return addHeapObject(ret);
|
|
1668
|
+
};
|
|
1669
|
+
imports.wbg.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
|
|
1670
|
+
const ret = module.require;
|
|
1671
|
+
return addHeapObject(ret);
|
|
1672
|
+
}, arguments) };
|
|
1673
|
+
imports.wbg.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
|
|
1674
|
+
const ret = getObject(arg0).msCrypto;
|
|
1675
|
+
return addHeapObject(ret);
|
|
1676
|
+
};
|
|
1677
|
+
imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
|
|
1678
|
+
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
1679
|
+
}, arguments) };
|
|
1680
|
+
imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
|
|
1681
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
1682
|
+
}, arguments) };
|
|
1683
|
+
imports.wbg.__wbg_get_3baa728f9d58d3f6 = function(arg0, arg1) {
|
|
1684
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
1685
|
+
return addHeapObject(ret);
|
|
1686
|
+
};
|
|
1687
|
+
imports.wbg.__wbg_length_ae22078168b726f5 = function(arg0) {
|
|
1688
|
+
const ret = getObject(arg0).length;
|
|
1689
|
+
return ret;
|
|
1690
|
+
};
|
|
1691
|
+
imports.wbg.__wbg_new_a220cf903aa02ca2 = function() {
|
|
1692
|
+
const ret = new Array();
|
|
1693
|
+
return addHeapObject(ret);
|
|
1694
|
+
};
|
|
1695
|
+
imports.wbg.__wbg_newnoargs_76313bd6ff35d0f2 = function(arg0, arg1) {
|
|
1696
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1697
|
+
return addHeapObject(ret);
|
|
1698
|
+
};
|
|
1699
|
+
imports.wbg.__wbg_new_8608a2b51a5f6737 = function() {
|
|
1700
|
+
const ret = new Map();
|
|
1701
|
+
return addHeapObject(ret);
|
|
1702
|
+
};
|
|
1703
|
+
imports.wbg.__wbg_next_de3e9db4440638b2 = function(arg0) {
|
|
1704
|
+
const ret = getObject(arg0).next;
|
|
1705
|
+
return addHeapObject(ret);
|
|
1706
|
+
};
|
|
1707
|
+
imports.wbg.__wbg_next_f9cb570345655b9a = function() { return handleError(function (arg0) {
|
|
1708
|
+
const ret = getObject(arg0).next();
|
|
1709
|
+
return addHeapObject(ret);
|
|
1710
|
+
}, arguments) };
|
|
1711
|
+
imports.wbg.__wbg_done_bfda7aa8f252b39f = function(arg0) {
|
|
1712
|
+
const ret = getObject(arg0).done;
|
|
1713
|
+
return ret;
|
|
1714
|
+
};
|
|
1715
|
+
imports.wbg.__wbg_value_6d39332ab4788d86 = function(arg0) {
|
|
1716
|
+
const ret = getObject(arg0).value;
|
|
1717
|
+
return addHeapObject(ret);
|
|
1718
|
+
};
|
|
1719
|
+
imports.wbg.__wbg_iterator_888179a48810a9fe = function() {
|
|
1720
|
+
const ret = Symbol.iterator;
|
|
1721
|
+
return addHeapObject(ret);
|
|
1722
|
+
};
|
|
1723
|
+
imports.wbg.__wbg_get_224d16597dbbfd96 = function() { return handleError(function (arg0, arg1) {
|
|
1724
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
1725
|
+
return addHeapObject(ret);
|
|
1726
|
+
}, arguments) };
|
|
1727
|
+
imports.wbg.__wbg_call_1084a111329e68ce = function() { return handleError(function (arg0, arg1) {
|
|
1728
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
1729
|
+
return addHeapObject(ret);
|
|
1730
|
+
}, arguments) };
|
|
1731
|
+
imports.wbg.__wbg_new_525245e2b9901204 = function() {
|
|
1732
|
+
const ret = new Object();
|
|
1733
|
+
return addHeapObject(ret);
|
|
1734
|
+
};
|
|
1735
|
+
imports.wbg.__wbg_self_3093d5d1f7bcb682 = function() { return handleError(function () {
|
|
1736
|
+
const ret = self.self;
|
|
1737
|
+
return addHeapObject(ret);
|
|
1738
|
+
}, arguments) };
|
|
1739
|
+
imports.wbg.__wbg_window_3bcfc4d31bc012f8 = function() { return handleError(function () {
|
|
1740
|
+
const ret = window.window;
|
|
1741
|
+
return addHeapObject(ret);
|
|
1742
|
+
}, arguments) };
|
|
1743
|
+
imports.wbg.__wbg_globalThis_86b222e13bdf32ed = function() { return handleError(function () {
|
|
1744
|
+
const ret = globalThis.globalThis;
|
|
1745
|
+
return addHeapObject(ret);
|
|
1746
|
+
}, arguments) };
|
|
1747
|
+
imports.wbg.__wbg_global_e5a3fe56f8be9485 = function() { return handleError(function () {
|
|
1748
|
+
const ret = global.global;
|
|
1749
|
+
return addHeapObject(ret);
|
|
1750
|
+
}, arguments) };
|
|
1751
|
+
imports.wbg.__wbg_includes_7c12264f911567fe = function(arg0, arg1, arg2) {
|
|
1752
|
+
const ret = getObject(arg0).includes(getObject(arg1), arg2);
|
|
1753
|
+
return ret;
|
|
1754
|
+
};
|
|
1755
|
+
imports.wbg.__wbg_isArray_8364a5371e9737d8 = function(arg0) {
|
|
1756
|
+
const ret = Array.isArray(getObject(arg0));
|
|
1757
|
+
return ret;
|
|
1758
|
+
};
|
|
1759
|
+
imports.wbg.__wbg_of_4a1c869ef05b4b73 = function(arg0) {
|
|
1760
|
+
const ret = Array.of(getObject(arg0));
|
|
1761
|
+
return addHeapObject(ret);
|
|
1762
|
+
};
|
|
1763
|
+
imports.wbg.__wbg_push_37c89022f34c01ca = function(arg0, arg1) {
|
|
1764
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
1765
|
+
return ret;
|
|
1766
|
+
};
|
|
1767
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_61dfc3198373c902 = function(arg0) {
|
|
1768
|
+
let result;
|
|
1769
|
+
try {
|
|
1770
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
|
1771
|
+
} catch (_) {
|
|
1772
|
+
result = false;
|
|
1773
|
+
}
|
|
1774
|
+
const ret = result;
|
|
1775
|
+
return ret;
|
|
1776
|
+
};
|
|
1777
|
+
imports.wbg.__wbg_call_89af060b4e1523f2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1778
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1779
|
+
return addHeapObject(ret);
|
|
1780
|
+
}, arguments) };
|
|
1781
|
+
imports.wbg.__wbg_instanceof_Map_763ce0e95960d55e = function(arg0) {
|
|
1782
|
+
let result;
|
|
1783
|
+
try {
|
|
1784
|
+
result = getObject(arg0) instanceof Map;
|
|
1785
|
+
} catch (_) {
|
|
1786
|
+
result = false;
|
|
1787
|
+
}
|
|
1788
|
+
const ret = result;
|
|
1789
|
+
return ret;
|
|
1790
|
+
};
|
|
1791
|
+
imports.wbg.__wbg_set_49185437f0ab06f8 = function(arg0, arg1, arg2) {
|
|
1792
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
1793
|
+
return addHeapObject(ret);
|
|
1794
|
+
};
|
|
1795
|
+
imports.wbg.__wbg_entries_2f5ddf03b53c6730 = function(arg0) {
|
|
1796
|
+
const ret = getObject(arg0).entries();
|
|
1797
|
+
return addHeapObject(ret);
|
|
1798
|
+
};
|
|
1799
|
+
imports.wbg.__wbg_isSafeInteger_7f1ed56200d90674 = function(arg0) {
|
|
1800
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
1801
|
+
return ret;
|
|
1802
|
+
};
|
|
1803
|
+
imports.wbg.__wbg_entries_7a0e06255456ebcd = function(arg0) {
|
|
1804
|
+
const ret = Object.entries(getObject(arg0));
|
|
1805
|
+
return addHeapObject(ret);
|
|
1806
|
+
};
|
|
1807
|
+
imports.wbg.__wbg_is_009b1ef508712fda = function(arg0, arg1) {
|
|
1808
|
+
const ret = Object.is(getObject(arg0), getObject(arg1));
|
|
1809
|
+
return ret;
|
|
1810
|
+
};
|
|
1811
|
+
imports.wbg.__wbg_new_b85e72ed1bfd57f9 = function(arg0, arg1) {
|
|
1812
|
+
try {
|
|
1813
|
+
var state0 = {a: arg0, b: arg1};
|
|
1814
|
+
var cb0 = (arg0, arg1) => {
|
|
1815
|
+
const a = state0.a;
|
|
1816
|
+
state0.a = 0;
|
|
1817
|
+
try {
|
|
1818
|
+
return __wbg_adapter_718(a, state0.b, arg0, arg1);
|
|
1819
|
+
} finally {
|
|
1820
|
+
state0.a = a;
|
|
1821
|
+
}
|
|
1822
|
+
};
|
|
1823
|
+
const ret = new Promise(cb0);
|
|
1824
|
+
return addHeapObject(ret);
|
|
1825
|
+
} finally {
|
|
1826
|
+
state0.a = state0.b = 0;
|
|
1827
|
+
}
|
|
1828
|
+
};
|
|
1829
|
+
imports.wbg.__wbg_resolve_570458cb99d56a43 = function(arg0) {
|
|
1830
|
+
const ret = Promise.resolve(getObject(arg0));
|
|
1831
|
+
return addHeapObject(ret);
|
|
1832
|
+
};
|
|
1833
|
+
imports.wbg.__wbg_then_95e6edc0f89b73b1 = function(arg0, arg1) {
|
|
1834
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
1835
|
+
return addHeapObject(ret);
|
|
1836
|
+
};
|
|
1837
|
+
imports.wbg.__wbg_then_876bb3c633745cc6 = function(arg0, arg1, arg2) {
|
|
1838
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
1839
|
+
return addHeapObject(ret);
|
|
1840
|
+
};
|
|
1841
|
+
imports.wbg.__wbg_buffer_b7b08af79b0b0974 = function(arg0) {
|
|
1842
|
+
const ret = getObject(arg0).buffer;
|
|
1843
|
+
return addHeapObject(ret);
|
|
1844
|
+
};
|
|
1845
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_634ada0fd17e2e96 = function(arg0, arg1, arg2) {
|
|
1846
|
+
const ret = new Int8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
1847
|
+
return addHeapObject(ret);
|
|
1848
|
+
};
|
|
1849
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_b5293b0eedbac651 = function(arg0, arg1, arg2) {
|
|
1850
|
+
const ret = new Int16Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
1851
|
+
return addHeapObject(ret);
|
|
1852
|
+
};
|
|
1853
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_c89d62ca194b7f14 = function(arg0, arg1, arg2) {
|
|
1854
|
+
const ret = new Int32Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
1855
|
+
return addHeapObject(ret);
|
|
1856
|
+
};
|
|
1857
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9 = function(arg0, arg1, arg2) {
|
|
1858
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
1859
|
+
return addHeapObject(ret);
|
|
1860
|
+
};
|
|
1861
|
+
imports.wbg.__wbg_new_ea1883e1e5e86686 = function(arg0) {
|
|
1862
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
1863
|
+
return addHeapObject(ret);
|
|
1864
|
+
};
|
|
1865
|
+
imports.wbg.__wbg_set_d1e79e2388520f18 = function(arg0, arg1, arg2) {
|
|
1866
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
1867
|
+
};
|
|
1868
|
+
imports.wbg.__wbg_length_8339fcf5d8ecd12e = function(arg0) {
|
|
1869
|
+
const ret = getObject(arg0).length;
|
|
1870
|
+
return ret;
|
|
1871
|
+
};
|
|
1872
|
+
imports.wbg.__wbg_new_e36b5ccdd852e18d = function(arg0) {
|
|
1873
|
+
const ret = new Uint8ClampedArray(getObject(arg0));
|
|
1874
|
+
return addHeapObject(ret);
|
|
1875
|
+
};
|
|
1876
|
+
imports.wbg.__wbg_set_b68cc6ecd92a1101 = function(arg0, arg1, arg2) {
|
|
1877
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
1878
|
+
};
|
|
1879
|
+
imports.wbg.__wbg_length_701cb851fad911df = function(arg0) {
|
|
1880
|
+
const ret = getObject(arg0).length;
|
|
1881
|
+
return ret;
|
|
1882
|
+
};
|
|
1883
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_bd3d5191e8925067 = function(arg0, arg1, arg2) {
|
|
1884
|
+
const ret = new Uint16Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
1885
|
+
return addHeapObject(ret);
|
|
1886
|
+
};
|
|
1887
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_874df3e29cb555f9 = function(arg0, arg1, arg2) {
|
|
1888
|
+
const ret = new Uint32Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
1889
|
+
return addHeapObject(ret);
|
|
1890
|
+
};
|
|
1891
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_a69c63d7671a5dbf = function(arg0, arg1, arg2) {
|
|
1892
|
+
const ret = new Float32Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
1893
|
+
return addHeapObject(ret);
|
|
1894
|
+
};
|
|
1895
|
+
imports.wbg.__wbg_instanceof_Uint8Array_247a91427532499e = function(arg0) {
|
|
1896
|
+
let result;
|
|
1897
|
+
try {
|
|
1898
|
+
result = getObject(arg0) instanceof Uint8Array;
|
|
1899
|
+
} catch (_) {
|
|
1900
|
+
result = false;
|
|
1901
|
+
}
|
|
1902
|
+
const ret = result;
|
|
1903
|
+
return ret;
|
|
1904
|
+
};
|
|
1905
|
+
imports.wbg.__wbg_newwithlength_ec548f448387c968 = function(arg0) {
|
|
1906
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
1907
|
+
return addHeapObject(ret);
|
|
1908
|
+
};
|
|
1909
|
+
imports.wbg.__wbg_subarray_7c2e3576afe181d1 = function(arg0, arg1, arg2) {
|
|
1910
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1911
|
+
return addHeapObject(ret);
|
|
1912
|
+
};
|
|
1913
|
+
imports.wbg.__wbg_stringify_bbf45426c92a6bf5 = function() { return handleError(function (arg0) {
|
|
1914
|
+
const ret = JSON.stringify(getObject(arg0));
|
|
1915
|
+
return addHeapObject(ret);
|
|
1916
|
+
}, arguments) };
|
|
1917
|
+
imports.wbg.__wbg_get_851b0d426e9c3b1d = function() { return handleError(function (arg0, arg1) {
|
|
1918
|
+
const ret = Reflect.get(getObject(arg0), arg1 >>> 0);
|
|
1919
|
+
return addHeapObject(ret);
|
|
1920
|
+
}, arguments) };
|
|
1921
|
+
imports.wbg.__wbg_has_4bfbc01db38743f7 = function() { return handleError(function (arg0, arg1) {
|
|
1922
|
+
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
|
1923
|
+
return ret;
|
|
1924
|
+
}, arguments) };
|
|
1925
|
+
imports.wbg.__wbg_set_eacc7d73fefaafdf = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1926
|
+
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
1927
|
+
return ret;
|
|
1928
|
+
}, arguments) };
|
|
1929
|
+
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
1930
|
+
const v = getObject(arg1);
|
|
1931
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1932
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1933
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1934
|
+
};
|
|
1935
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
1936
|
+
const ret = debugString(getObject(arg1));
|
|
1937
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1938
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1939
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1940
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1941
|
+
};
|
|
1942
|
+
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
1943
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1944
|
+
};
|
|
1945
|
+
imports.wbg.__wbindgen_memory = function() {
|
|
1946
|
+
const ret = wasm.memory;
|
|
1947
|
+
return addHeapObject(ret);
|
|
1948
|
+
};
|
|
1949
|
+
imports.wbg.__wbindgen_uint8_clamped_array_new = function(arg0, arg1) {
|
|
1950
|
+
var v0 = getClampedArrayU8FromWasm0(arg0, arg1).slice();
|
|
1951
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
1952
|
+
const ret = v0;
|
|
1953
|
+
return addHeapObject(ret);
|
|
1954
|
+
};
|
|
1955
|
+
imports.wbg.__wbindgen_closure_wrapper2010 = function(arg0, arg1, arg2) {
|
|
1956
|
+
const ret = makeMutClosure(arg0, arg1, 455, __wbg_adapter_52);
|
|
1957
|
+
return addHeapObject(ret);
|
|
1958
|
+
};
|
|
1959
|
+
|
|
1960
|
+
return imports;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
function __wbg_finalize_init(instance, module) {
|
|
1964
|
+
wasm = instance.exports;
|
|
1965
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
1966
|
+
cachedDataViewMemory0 = null;
|
|
1967
|
+
cachedFloat32ArrayMemory0 = null;
|
|
1968
|
+
cachedInt32ArrayMemory0 = null;
|
|
1969
|
+
cachedUint32ArrayMemory0 = null;
|
|
1970
|
+
cachedUint8ArrayMemory0 = null;
|
|
1971
|
+
cachedUint8ClampedArrayMemory0 = null;
|
|
1972
|
+
|
|
1973
|
+
|
|
1974
|
+
wasm.__wbindgen_start();
|
|
1975
|
+
return wasm;
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
async function __wbg_init(module_or_path) {
|
|
1979
|
+
if (wasm !== undefined) return wasm;
|
|
1980
|
+
|
|
1981
|
+
|
|
1982
|
+
if (typeof module_or_path !== 'undefined' && Object.getPrototypeOf(module_or_path) === Object.prototype)
|
|
1983
|
+
({module_or_path} = module_or_path);
|
|
1984
|
+
else
|
|
1985
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead');
|
|
1986
|
+
|
|
1987
|
+
if (typeof module_or_path === 'undefined') {
|
|
1988
|
+
module_or_path = new URL('compositor_web_bg.wasm', import.meta.url);
|
|
1989
|
+
}
|
|
1990
|
+
const imports = __wbg_get_imports();
|
|
1991
|
+
|
|
1992
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1993
|
+
module_or_path = fetch(module_or_path);
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1997
|
+
|
|
1998
|
+
return __wbg_finalize_init(instance, module);
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
/**
|
|
2002
|
+
* Loads and initializes wasm module required for the smelter to work.
|
|
2003
|
+
* @param wasmModuleUrl {string} - An URL for `smelter.wasm` file. The file is located in `dist` folder.
|
|
2004
|
+
*/
|
|
2005
|
+
async function loadWasmModule(wasmModuleUrl) {
|
|
2006
|
+
await __wbg_init({ module_or_path: wasmModuleUrl });
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
var FrameFormat;
|
|
2010
|
+
(function (FrameFormat) {
|
|
2011
|
+
FrameFormat["RGBA_BYTES"] = "RGBA_BYTES";
|
|
2012
|
+
FrameFormat["YUV_BYTES"] = "YUV_BYTES";
|
|
2013
|
+
})(FrameFormat || (FrameFormat = {}));
|
|
2014
|
+
class Renderer {
|
|
2015
|
+
renderer;
|
|
2016
|
+
constructor(renderer) {
|
|
2017
|
+
this.renderer = renderer;
|
|
2018
|
+
}
|
|
2019
|
+
static async create(options) {
|
|
2020
|
+
const renderer = await create_renderer({
|
|
2021
|
+
stream_fallback_timeout_ms: options.streamFallbackTimeoutMs,
|
|
2022
|
+
logger_level: options.logger_level ?? 'warn',
|
|
2023
|
+
});
|
|
2024
|
+
return new Renderer(renderer);
|
|
2025
|
+
}
|
|
2026
|
+
render(input) {
|
|
2027
|
+
const frames = new Map(Object.entries(input.frames));
|
|
2028
|
+
const inputFrameSet = new FrameSet(input.ptsMs, frames);
|
|
2029
|
+
const output = this.renderer.render(inputFrameSet);
|
|
2030
|
+
return {
|
|
2031
|
+
ptsMs: output.pts_ms,
|
|
2032
|
+
frames: Object.fromEntries(output.frames),
|
|
2033
|
+
};
|
|
2034
|
+
}
|
|
2035
|
+
updateScene(outputId, resolution, scene) {
|
|
2036
|
+
this.renderer.update_scene(outputId, resolution, scene);
|
|
2037
|
+
}
|
|
2038
|
+
registerInput(inputId) {
|
|
2039
|
+
this.renderer.register_input(inputId);
|
|
2040
|
+
}
|
|
2041
|
+
async registerImage(rendererId, imageSpec) {
|
|
2042
|
+
await this.renderer.register_image(rendererId, imageSpec);
|
|
2043
|
+
}
|
|
2044
|
+
async registerFont(fontUrl) {
|
|
2045
|
+
await this.renderer.register_font(fontUrl);
|
|
2046
|
+
}
|
|
2047
|
+
unregisterInput(inputId) {
|
|
2048
|
+
this.renderer.unregister_input(inputId);
|
|
2049
|
+
}
|
|
2050
|
+
unregisterImage(rendererId) {
|
|
2051
|
+
this.renderer.unregister_image(rendererId);
|
|
2052
|
+
}
|
|
2053
|
+
unregisterOutput(outputId) {
|
|
2054
|
+
this.renderer.unregister_output(outputId);
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
export { FrameFormat, Renderer, loadWasmModule };
|