fragmentcolor 0.10.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1969 @@
1
+ let wasm;
2
+
3
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
4
+
5
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
6
+
7
+ let cachedUint8ArrayMemory0 = null;
8
+
9
+ function getUint8ArrayMemory0() {
10
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
11
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
12
+ }
13
+ return cachedUint8ArrayMemory0;
14
+ }
15
+
16
+ function getStringFromWasm0(ptr, len) {
17
+ ptr = ptr >>> 0;
18
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
19
+ }
20
+
21
+ function addToExternrefTable0(obj) {
22
+ const idx = wasm.__externref_table_alloc();
23
+ wasm.__wbindgen_export_2.set(idx, obj);
24
+ return idx;
25
+ }
26
+
27
+ function handleError(f, args) {
28
+ try {
29
+ return f.apply(this, args);
30
+ } catch (e) {
31
+ const idx = addToExternrefTable0(e);
32
+ wasm.__wbindgen_exn_store(idx);
33
+ }
34
+ }
35
+
36
+ let cachedFloat32ArrayMemory0 = null;
37
+
38
+ function getFloat32ArrayMemory0() {
39
+ if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
40
+ cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
41
+ }
42
+ return cachedFloat32ArrayMemory0;
43
+ }
44
+
45
+ function getArrayF32FromWasm0(ptr, len) {
46
+ ptr = ptr >>> 0;
47
+ return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
48
+ }
49
+
50
+ let cachedInt32ArrayMemory0 = null;
51
+
52
+ function getInt32ArrayMemory0() {
53
+ if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
54
+ cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
55
+ }
56
+ return cachedInt32ArrayMemory0;
57
+ }
58
+
59
+ function getArrayI32FromWasm0(ptr, len) {
60
+ ptr = ptr >>> 0;
61
+ return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
62
+ }
63
+
64
+ let cachedUint32ArrayMemory0 = null;
65
+
66
+ function getUint32ArrayMemory0() {
67
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
68
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
69
+ }
70
+ return cachedUint32ArrayMemory0;
71
+ }
72
+
73
+ function getArrayU32FromWasm0(ptr, len) {
74
+ ptr = ptr >>> 0;
75
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
76
+ }
77
+
78
+ function isLikeNone(x) {
79
+ return x === undefined || x === null;
80
+ }
81
+
82
+ let WASM_VECTOR_LEN = 0;
83
+
84
+ const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
85
+
86
+ const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
87
+ ? function (arg, view) {
88
+ return cachedTextEncoder.encodeInto(arg, view);
89
+ }
90
+ : function (arg, view) {
91
+ const buf = cachedTextEncoder.encode(arg);
92
+ view.set(buf);
93
+ return {
94
+ read: arg.length,
95
+ written: buf.length
96
+ };
97
+ });
98
+
99
+ function passStringToWasm0(arg, malloc, realloc) {
100
+
101
+ if (realloc === undefined) {
102
+ const buf = cachedTextEncoder.encode(arg);
103
+ const ptr = malloc(buf.length, 1) >>> 0;
104
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
105
+ WASM_VECTOR_LEN = buf.length;
106
+ return ptr;
107
+ }
108
+
109
+ let len = arg.length;
110
+ let ptr = malloc(len, 1) >>> 0;
111
+
112
+ const mem = getUint8ArrayMemory0();
113
+
114
+ let offset = 0;
115
+
116
+ for (; offset < len; offset++) {
117
+ const code = arg.charCodeAt(offset);
118
+ if (code > 0x7F) break;
119
+ mem[ptr + offset] = code;
120
+ }
121
+
122
+ if (offset !== len) {
123
+ if (offset !== 0) {
124
+ arg = arg.slice(offset);
125
+ }
126
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
127
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
128
+ const ret = encodeString(arg, view);
129
+
130
+ offset += ret.written;
131
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
132
+ }
133
+
134
+ WASM_VECTOR_LEN = offset;
135
+ return ptr;
136
+ }
137
+
138
+ let cachedDataViewMemory0 = null;
139
+
140
+ function getDataViewMemory0() {
141
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
142
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
143
+ }
144
+ return cachedDataViewMemory0;
145
+ }
146
+
147
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
148
+ ? { register: () => {}, unregister: () => {} }
149
+ : new FinalizationRegistry(state => {
150
+ wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b)
151
+ });
152
+
153
+ function makeMutClosure(arg0, arg1, dtor, f) {
154
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
155
+ const real = (...args) => {
156
+ // First up with a closure we increment the internal reference
157
+ // count. This ensures that the Rust closure environment won't
158
+ // be deallocated while we're invoking it.
159
+ state.cnt++;
160
+ const a = state.a;
161
+ state.a = 0;
162
+ try {
163
+ return f(a, state.b, ...args);
164
+ } finally {
165
+ if (--state.cnt === 0) {
166
+ wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
167
+ CLOSURE_DTORS.unregister(state);
168
+ } else {
169
+ state.a = a;
170
+ }
171
+ }
172
+ };
173
+ real.original = state;
174
+ CLOSURE_DTORS.register(real, state, state);
175
+ return real;
176
+ }
177
+
178
+ function debugString(val) {
179
+ // primitive types
180
+ const type = typeof val;
181
+ if (type == 'number' || type == 'boolean' || val == null) {
182
+ return `${val}`;
183
+ }
184
+ if (type == 'string') {
185
+ return `"${val}"`;
186
+ }
187
+ if (type == 'symbol') {
188
+ const description = val.description;
189
+ if (description == null) {
190
+ return 'Symbol';
191
+ } else {
192
+ return `Symbol(${description})`;
193
+ }
194
+ }
195
+ if (type == 'function') {
196
+ const name = val.name;
197
+ if (typeof name == 'string' && name.length > 0) {
198
+ return `Function(${name})`;
199
+ } else {
200
+ return 'Function';
201
+ }
202
+ }
203
+ // objects
204
+ if (Array.isArray(val)) {
205
+ const length = val.length;
206
+ let debug = '[';
207
+ if (length > 0) {
208
+ debug += debugString(val[0]);
209
+ }
210
+ for(let i = 1; i < length; i++) {
211
+ debug += ', ' + debugString(val[i]);
212
+ }
213
+ debug += ']';
214
+ return debug;
215
+ }
216
+ // Test for built-in
217
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
218
+ let className;
219
+ if (builtInMatches && builtInMatches.length > 1) {
220
+ className = builtInMatches[1];
221
+ } else {
222
+ // Failed to match the standard '[object ClassName]'
223
+ return toString.call(val);
224
+ }
225
+ if (className == 'Object') {
226
+ // we're a user defined class or Object
227
+ // JSON.stringify avoids problems with cycles, and is generally much
228
+ // easier than looping through ownProperties of `val`.
229
+ try {
230
+ return 'Object(' + JSON.stringify(val) + ')';
231
+ } catch (_) {
232
+ return 'Object';
233
+ }
234
+ }
235
+ // errors
236
+ if (val instanceof Error) {
237
+ return `${val.name}: ${val.message}\n${val.stack}`;
238
+ }
239
+ // TODO we could test for more things here, like `Set`s and `Map`s.
240
+ return className;
241
+ }
242
+ function __wbg_adapter_34(arg0, arg1, arg2) {
243
+ wasm.closure109_externref_shim(arg0, arg1, arg2);
244
+ }
245
+
246
+ function __wbg_adapter_37(arg0, arg1, arg2) {
247
+ wasm.closure785_externref_shim(arg0, arg1, arg2);
248
+ }
249
+
250
+ function __wbg_adapter_730(arg0, arg1, arg2, arg3) {
251
+ wasm.closure807_externref_shim(arg0, arg1, arg2, arg3);
252
+ }
253
+
254
+ const __wbindgen_enum_GpuCanvasAlphaMode = ["opaque", "premultiplied"];
255
+
256
+ const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
257
+
258
+ const __wbindgen_enum_GpuTextureFormat = ["r8unorm", "r8snorm", "r8uint", "r8sint", "r16uint", "r16sint", "r16float", "rg8unorm", "rg8snorm", "rg8uint", "rg8sint", "r32uint", "r32sint", "r32float", "rg16uint", "rg16sint", "rg16float", "rgba8unorm", "rgba8unorm-srgb", "rgba8snorm", "rgba8uint", "rgba8sint", "bgra8unorm", "bgra8unorm-srgb", "rgb9e5ufloat", "rgb10a2uint", "rgb10a2unorm", "rg11b10ufloat", "rg32uint", "rg32sint", "rg32float", "rgba16uint", "rgba16sint", "rgba16float", "rgba32uint", "rgba32sint", "rgba32float", "stencil8", "depth16unorm", "depth24plus", "depth24plus-stencil8", "depth32float", "depth32float-stencil8", "bc1-rgba-unorm", "bc1-rgba-unorm-srgb", "bc2-rgba-unorm", "bc2-rgba-unorm-srgb", "bc3-rgba-unorm", "bc3-rgba-unorm-srgb", "bc4-r-unorm", "bc4-r-snorm", "bc5-rg-unorm", "bc5-rg-snorm", "bc6h-rgb-ufloat", "bc6h-rgb-float", "bc7-rgba-unorm", "bc7-rgba-unorm-srgb", "etc2-rgb8unorm", "etc2-rgb8unorm-srgb", "etc2-rgb8a1unorm", "etc2-rgb8a1unorm-srgb", "etc2-rgba8unorm", "etc2-rgba8unorm-srgb", "eac-r11unorm", "eac-r11snorm", "eac-rg11unorm", "eac-rg11snorm", "astc-4x4-unorm", "astc-4x4-unorm-srgb", "astc-5x4-unorm", "astc-5x4-unorm-srgb", "astc-5x5-unorm", "astc-5x5-unorm-srgb", "astc-6x5-unorm", "astc-6x5-unorm-srgb", "astc-6x6-unorm", "astc-6x6-unorm-srgb", "astc-8x5-unorm", "astc-8x5-unorm-srgb", "astc-8x6-unorm", "astc-8x6-unorm-srgb", "astc-8x8-unorm", "astc-8x8-unorm-srgb", "astc-10x5-unorm", "astc-10x5-unorm-srgb", "astc-10x6-unorm", "astc-10x6-unorm-srgb", "astc-10x8-unorm", "astc-10x8-unorm-srgb", "astc-10x10-unorm", "astc-10x10-unorm-srgb", "astc-12x10-unorm", "astc-12x10-unorm-srgb", "astc-12x12-unorm", "astc-12x12-unorm-srgb"];
259
+
260
+ const CanvasTargetFinalization = (typeof FinalizationRegistry === 'undefined')
261
+ ? { register: () => {}, unregister: () => {} }
262
+ : new FinalizationRegistry(ptr => wasm.__wbg_canvastarget_free(ptr >>> 0, 1));
263
+
264
+ export class CanvasTarget {
265
+
266
+ static __wrap(ptr) {
267
+ ptr = ptr >>> 0;
268
+ const obj = Object.create(CanvasTarget.prototype);
269
+ obj.__wbg_ptr = ptr;
270
+ CanvasTargetFinalization.register(obj, obj.__wbg_ptr, obj);
271
+ return obj;
272
+ }
273
+
274
+ __destroy_into_raw() {
275
+ const ptr = this.__wbg_ptr;
276
+ this.__wbg_ptr = 0;
277
+ CanvasTargetFinalization.unregister(this);
278
+ return ptr;
279
+ }
280
+
281
+ free() {
282
+ const ptr = this.__destroy_into_raw();
283
+ wasm.__wbg_canvastarget_free(ptr, 0);
284
+ }
285
+ }
286
+
287
+ const ColorFinalization = (typeof FinalizationRegistry === 'undefined')
288
+ ? { register: () => {}, unregister: () => {} }
289
+ : new FinalizationRegistry(ptr => wasm.__wbg_color_free(ptr >>> 0, 1));
290
+ /**
291
+ * Can be specified as 0xRRGGBBAA
292
+ */
293
+ export class Color {
294
+
295
+ __destroy_into_raw() {
296
+ const ptr = this.__wbg_ptr;
297
+ this.__wbg_ptr = 0;
298
+ ColorFinalization.unregister(this);
299
+ return ptr;
300
+ }
301
+
302
+ free() {
303
+ const ptr = this.__destroy_into_raw();
304
+ wasm.__wbg_color_free(ptr, 0);
305
+ }
306
+ /**
307
+ * @returns {number}
308
+ */
309
+ get 0() {
310
+ const ret = wasm.__wbg_get_color_0(this.__wbg_ptr);
311
+ return ret >>> 0;
312
+ }
313
+ /**
314
+ * @param {number} arg0
315
+ */
316
+ set 0(arg0) {
317
+ wasm.__wbg_set_color_0(this.__wbg_ptr, arg0);
318
+ }
319
+ }
320
+
321
+ const FrameFinalization = (typeof FinalizationRegistry === 'undefined')
322
+ ? { register: () => {}, unregister: () => {} }
323
+ : new FinalizationRegistry(ptr => wasm.__wbg_frame_free(ptr >>> 0, 1));
324
+ /**
325
+ * A Frame represents a graph of Passes that are executed in sequence.
326
+ */
327
+ export class Frame {
328
+
329
+ __destroy_into_raw() {
330
+ const ptr = this.__wbg_ptr;
331
+ this.__wbg_ptr = 0;
332
+ FrameFinalization.unregister(this);
333
+ return ptr;
334
+ }
335
+
336
+ free() {
337
+ const ptr = this.__destroy_into_raw();
338
+ wasm.__wbg_frame_free(ptr, 0);
339
+ }
340
+ }
341
+
342
+ const PassInputFinalization = (typeof FinalizationRegistry === 'undefined')
343
+ ? { register: () => {}, unregister: () => {} }
344
+ : new FinalizationRegistry(ptr => wasm.__wbg_passinput_free(ptr >>> 0, 1));
345
+
346
+ export class PassInput {
347
+
348
+ __destroy_into_raw() {
349
+ const ptr = this.__wbg_ptr;
350
+ this.__wbg_ptr = 0;
351
+ PassInputFinalization.unregister(this);
352
+ return ptr;
353
+ }
354
+
355
+ free() {
356
+ const ptr = this.__destroy_into_raw();
357
+ wasm.__wbg_passinput_free(ptr, 0);
358
+ }
359
+ }
360
+
361
+ const RegionFinalization = (typeof FinalizationRegistry === 'undefined')
362
+ ? { register: () => {}, unregister: () => {} }
363
+ : new FinalizationRegistry(ptr => wasm.__wbg_region_free(ptr >>> 0, 1));
364
+ /**
365
+ * A region in 2D space designed to handle viewport and texture regions
366
+ */
367
+ export class Region {
368
+
369
+ __destroy_into_raw() {
370
+ const ptr = this.__wbg_ptr;
371
+ this.__wbg_ptr = 0;
372
+ RegionFinalization.unregister(this);
373
+ return ptr;
374
+ }
375
+
376
+ free() {
377
+ const ptr = this.__destroy_into_raw();
378
+ wasm.__wbg_region_free(ptr, 0);
379
+ }
380
+ /**
381
+ * @returns {number}
382
+ */
383
+ get min_x() {
384
+ const ret = wasm.__wbg_get_region_min_x(this.__wbg_ptr);
385
+ return ret >>> 0;
386
+ }
387
+ /**
388
+ * @param {number} arg0
389
+ */
390
+ set min_x(arg0) {
391
+ wasm.__wbg_set_region_min_x(this.__wbg_ptr, arg0);
392
+ }
393
+ /**
394
+ * @returns {number}
395
+ */
396
+ get min_y() {
397
+ const ret = wasm.__wbg_get_region_min_y(this.__wbg_ptr);
398
+ return ret >>> 0;
399
+ }
400
+ /**
401
+ * @param {number} arg0
402
+ */
403
+ set min_y(arg0) {
404
+ wasm.__wbg_set_region_min_y(this.__wbg_ptr, arg0);
405
+ }
406
+ /**
407
+ * @returns {number}
408
+ */
409
+ get max_x() {
410
+ const ret = wasm.__wbg_get_region_max_x(this.__wbg_ptr);
411
+ return ret >>> 0;
412
+ }
413
+ /**
414
+ * @param {number} arg0
415
+ */
416
+ set max_x(arg0) {
417
+ wasm.__wbg_set_region_max_x(this.__wbg_ptr, arg0);
418
+ }
419
+ /**
420
+ * @returns {number}
421
+ */
422
+ get max_y() {
423
+ const ret = wasm.__wbg_get_region_max_y(this.__wbg_ptr);
424
+ return ret >>> 0;
425
+ }
426
+ /**
427
+ * @param {number} arg0
428
+ */
429
+ set max_y(arg0) {
430
+ wasm.__wbg_set_region_max_y(this.__wbg_ptr, arg0);
431
+ }
432
+ }
433
+
434
+ const RendererFinalization = (typeof FinalizationRegistry === 'undefined')
435
+ ? { register: () => {}, unregister: () => {} }
436
+ : new FinalizationRegistry(ptr => wasm.__wbg_renderer_free(ptr >>> 0, 1));
437
+
438
+ export class Renderer {
439
+
440
+ __destroy_into_raw() {
441
+ const ptr = this.__wbg_ptr;
442
+ this.__wbg_ptr = 0;
443
+ RendererFinalization.unregister(this);
444
+ return ptr;
445
+ }
446
+
447
+ free() {
448
+ const ptr = this.__destroy_into_raw();
449
+ wasm.__wbg_renderer_free(ptr, 0);
450
+ }
451
+ /**
452
+ * Creates a new Renderer
453
+ */
454
+ constructor() {
455
+ const ret = wasm.renderer_new_js();
456
+ this.__wbg_ptr = ret >>> 0;
457
+ RendererFinalization.register(this, this.__wbg_ptr, this);
458
+ return this;
459
+ }
460
+ /**
461
+ * @param {any} canvas
462
+ * @returns {Promise<CanvasTarget>}
463
+ */
464
+ create_target(canvas) {
465
+ const ret = wasm.renderer_create_target(this.__wbg_ptr, canvas);
466
+ return ret;
467
+ }
468
+ }
469
+
470
+ const ShaderFinalization = (typeof FinalizationRegistry === 'undefined')
471
+ ? { register: () => {}, unregister: () => {} }
472
+ : new FinalizationRegistry(ptr => wasm.__wbg_shader_free(ptr >>> 0, 1));
473
+ /**
474
+ * The Shader in FragmentColor is the blueprint of a Render Pipeline.
475
+ *
476
+ * It automatically parses a WGSL shader and extracts its uniforms, buffers, and textures.
477
+ *
478
+ * The user can set values for the uniforms and buffers, and then render the shader.
479
+ */
480
+ export class Shader {
481
+
482
+ __destroy_into_raw() {
483
+ const ptr = this.__wbg_ptr;
484
+ this.__wbg_ptr = 0;
485
+ ShaderFinalization.unregister(this);
486
+ return ptr;
487
+ }
488
+
489
+ free() {
490
+ const ptr = this.__destroy_into_raw();
491
+ wasm.__wbg_shader_free(ptr, 0);
492
+ }
493
+ }
494
+
495
+ async function __wbg_load(module, imports) {
496
+ if (typeof Response === 'function' && module instanceof Response) {
497
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
498
+ try {
499
+ return await WebAssembly.instantiateStreaming(module, imports);
500
+
501
+ } catch (e) {
502
+ if (module.headers.get('Content-Type') != 'application/wasm') {
503
+ 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);
504
+
505
+ } else {
506
+ throw e;
507
+ }
508
+ }
509
+ }
510
+
511
+ const bytes = await module.arrayBuffer();
512
+ return await WebAssembly.instantiate(bytes, imports);
513
+
514
+ } else {
515
+ const instance = await WebAssembly.instantiate(module, imports);
516
+
517
+ if (instance instanceof WebAssembly.Instance) {
518
+ return { instance, module };
519
+
520
+ } else {
521
+ return instance;
522
+ }
523
+ }
524
+ }
525
+
526
+ function __wbg_get_imports() {
527
+ const imports = {};
528
+ imports.wbg = {};
529
+ imports.wbg.__wbg_Window_3c212b0e8e5ac890 = function(arg0) {
530
+ const ret = arg0.Window;
531
+ return ret;
532
+ };
533
+ imports.wbg.__wbg_WorkerGlobalScope_7c9044d3602776e0 = function(arg0) {
534
+ const ret = arg0.WorkerGlobalScope;
535
+ return ret;
536
+ };
537
+ imports.wbg.__wbg_activeTexture_0f19d8acfa0a14c2 = function(arg0, arg1) {
538
+ arg0.activeTexture(arg1 >>> 0);
539
+ };
540
+ imports.wbg.__wbg_activeTexture_460f2e367e813fb0 = function(arg0, arg1) {
541
+ arg0.activeTexture(arg1 >>> 0);
542
+ };
543
+ imports.wbg.__wbg_attachShader_3d4eb6af9e3e7bd1 = function(arg0, arg1, arg2) {
544
+ arg0.attachShader(arg1, arg2);
545
+ };
546
+ imports.wbg.__wbg_attachShader_94e758c8b5283eb2 = function(arg0, arg1, arg2) {
547
+ arg0.attachShader(arg1, arg2);
548
+ };
549
+ imports.wbg.__wbg_beginQuery_6af0b28414b16c07 = function(arg0, arg1, arg2) {
550
+ arg0.beginQuery(arg1 >>> 0, arg2);
551
+ };
552
+ imports.wbg.__wbg_bindAttribLocation_40da4b3e84cc7bd5 = function(arg0, arg1, arg2, arg3, arg4) {
553
+ arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
554
+ };
555
+ imports.wbg.__wbg_bindAttribLocation_ce2730e29976d230 = function(arg0, arg1, arg2, arg3, arg4) {
556
+ arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
557
+ };
558
+ imports.wbg.__wbg_bindBufferRange_454f90f2b1781982 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
559
+ arg0.bindBufferRange(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
560
+ };
561
+ imports.wbg.__wbg_bindBuffer_309c9a6c21826cf5 = function(arg0, arg1, arg2) {
562
+ arg0.bindBuffer(arg1 >>> 0, arg2);
563
+ };
564
+ imports.wbg.__wbg_bindBuffer_f32f587f1c2962a7 = function(arg0, arg1, arg2) {
565
+ arg0.bindBuffer(arg1 >>> 0, arg2);
566
+ };
567
+ imports.wbg.__wbg_bindFramebuffer_bd02c8cc707d670f = function(arg0, arg1, arg2) {
568
+ arg0.bindFramebuffer(arg1 >>> 0, arg2);
569
+ };
570
+ imports.wbg.__wbg_bindFramebuffer_e48e83c0f973944d = function(arg0, arg1, arg2) {
571
+ arg0.bindFramebuffer(arg1 >>> 0, arg2);
572
+ };
573
+ imports.wbg.__wbg_bindRenderbuffer_53eedd88e52b4cb5 = function(arg0, arg1, arg2) {
574
+ arg0.bindRenderbuffer(arg1 >>> 0, arg2);
575
+ };
576
+ imports.wbg.__wbg_bindRenderbuffer_55e205fecfddbb8c = function(arg0, arg1, arg2) {
577
+ arg0.bindRenderbuffer(arg1 >>> 0, arg2);
578
+ };
579
+ imports.wbg.__wbg_bindSampler_9f59cf2eaa22eee0 = function(arg0, arg1, arg2) {
580
+ arg0.bindSampler(arg1 >>> 0, arg2);
581
+ };
582
+ imports.wbg.__wbg_bindTexture_a6e795697f49ebd1 = function(arg0, arg1, arg2) {
583
+ arg0.bindTexture(arg1 >>> 0, arg2);
584
+ };
585
+ imports.wbg.__wbg_bindTexture_bc8eb316247f739d = function(arg0, arg1, arg2) {
586
+ arg0.bindTexture(arg1 >>> 0, arg2);
587
+ };
588
+ imports.wbg.__wbg_bindVertexArrayOES_da8e7059b789629e = function(arg0, arg1) {
589
+ arg0.bindVertexArrayOES(arg1);
590
+ };
591
+ imports.wbg.__wbg_bindVertexArray_6b4b88581064b71f = function(arg0, arg1) {
592
+ arg0.bindVertexArray(arg1);
593
+ };
594
+ imports.wbg.__wbg_blendColor_15ba1eff44560932 = function(arg0, arg1, arg2, arg3, arg4) {
595
+ arg0.blendColor(arg1, arg2, arg3, arg4);
596
+ };
597
+ imports.wbg.__wbg_blendColor_6446fba673f64ff0 = function(arg0, arg1, arg2, arg3, arg4) {
598
+ arg0.blendColor(arg1, arg2, arg3, arg4);
599
+ };
600
+ imports.wbg.__wbg_blendEquationSeparate_c1aa26a9a5c5267e = function(arg0, arg1, arg2) {
601
+ arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
602
+ };
603
+ imports.wbg.__wbg_blendEquationSeparate_f3d422e981d86339 = function(arg0, arg1, arg2) {
604
+ arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
605
+ };
606
+ imports.wbg.__wbg_blendEquation_c23d111ad6d268ff = function(arg0, arg1) {
607
+ arg0.blendEquation(arg1 >>> 0);
608
+ };
609
+ imports.wbg.__wbg_blendEquation_cec7bc41f3e5704c = function(arg0, arg1) {
610
+ arg0.blendEquation(arg1 >>> 0);
611
+ };
612
+ imports.wbg.__wbg_blendFuncSeparate_483be8d4dd635340 = function(arg0, arg1, arg2, arg3, arg4) {
613
+ arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
614
+ };
615
+ imports.wbg.__wbg_blendFuncSeparate_dafeabfc1680b2ee = function(arg0, arg1, arg2, arg3, arg4) {
616
+ arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
617
+ };
618
+ imports.wbg.__wbg_blendFunc_9454884a3cfd2911 = function(arg0, arg1, arg2) {
619
+ arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
620
+ };
621
+ imports.wbg.__wbg_blendFunc_c3b74be5a39c665f = function(arg0, arg1, arg2) {
622
+ arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
623
+ };
624
+ imports.wbg.__wbg_blitFramebuffer_7303bdff77cfe967 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
625
+ arg0.blitFramebuffer(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0);
626
+ };
627
+ imports.wbg.__wbg_bufferData_3261d3e1dd6fc903 = function(arg0, arg1, arg2, arg3) {
628
+ arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
629
+ };
630
+ imports.wbg.__wbg_bufferData_33c59bf909ea6fd3 = function(arg0, arg1, arg2, arg3) {
631
+ arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
632
+ };
633
+ imports.wbg.__wbg_bufferData_463178757784fcac = function(arg0, arg1, arg2, arg3) {
634
+ arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
635
+ };
636
+ imports.wbg.__wbg_bufferData_d99b6b4eb5283f20 = function(arg0, arg1, arg2, arg3) {
637
+ arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
638
+ };
639
+ imports.wbg.__wbg_bufferSubData_4e973eefe9236d04 = function(arg0, arg1, arg2, arg3) {
640
+ arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
641
+ };
642
+ imports.wbg.__wbg_bufferSubData_dcd4d16031a60345 = function(arg0, arg1, arg2, arg3) {
643
+ arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
644
+ };
645
+ imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
646
+ const ret = arg0.buffer;
647
+ return ret;
648
+ };
649
+ imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
650
+ const ret = arg0.call(arg1);
651
+ return ret;
652
+ }, arguments) };
653
+ imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
654
+ const ret = arg0.call(arg1, arg2);
655
+ return ret;
656
+ }, arguments) };
657
+ imports.wbg.__wbg_canvastarget_new = function(arg0) {
658
+ const ret = CanvasTarget.__wrap(arg0);
659
+ return ret;
660
+ };
661
+ imports.wbg.__wbg_clearBufferfv_65ea413f7f2554a2 = function(arg0, arg1, arg2, arg3, arg4) {
662
+ arg0.clearBufferfv(arg1 >>> 0, arg2, getArrayF32FromWasm0(arg3, arg4));
663
+ };
664
+ imports.wbg.__wbg_clearBufferiv_c003c27b77a0245b = function(arg0, arg1, arg2, arg3, arg4) {
665
+ arg0.clearBufferiv(arg1 >>> 0, arg2, getArrayI32FromWasm0(arg3, arg4));
666
+ };
667
+ imports.wbg.__wbg_clearBufferuiv_8c285072f2026a37 = function(arg0, arg1, arg2, arg3, arg4) {
668
+ arg0.clearBufferuiv(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4));
669
+ };
670
+ imports.wbg.__wbg_clearDepth_17cfee5be8476fae = function(arg0, arg1) {
671
+ arg0.clearDepth(arg1);
672
+ };
673
+ imports.wbg.__wbg_clearDepth_670d19914a501259 = function(arg0, arg1) {
674
+ arg0.clearDepth(arg1);
675
+ };
676
+ imports.wbg.__wbg_clearStencil_4323424f1acca0df = function(arg0, arg1) {
677
+ arg0.clearStencil(arg1);
678
+ };
679
+ imports.wbg.__wbg_clearStencil_7addd3b330b56b27 = function(arg0, arg1) {
680
+ arg0.clearStencil(arg1);
681
+ };
682
+ imports.wbg.__wbg_clear_62b9037b892f6988 = function(arg0, arg1) {
683
+ arg0.clear(arg1 >>> 0);
684
+ };
685
+ imports.wbg.__wbg_clear_f8d5f3c348d37d95 = function(arg0, arg1) {
686
+ arg0.clear(arg1 >>> 0);
687
+ };
688
+ imports.wbg.__wbg_clientWaitSync_6930890a42bd44c0 = function(arg0, arg1, arg2, arg3) {
689
+ const ret = arg0.clientWaitSync(arg1, arg2 >>> 0, arg3 >>> 0);
690
+ return ret;
691
+ };
692
+ imports.wbg.__wbg_colorMask_5e7c60b9c7a57a2e = function(arg0, arg1, arg2, arg3, arg4) {
693
+ arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
694
+ };
695
+ imports.wbg.__wbg_colorMask_6dac12039c7145ae = function(arg0, arg1, arg2, arg3, arg4) {
696
+ arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
697
+ };
698
+ imports.wbg.__wbg_compileShader_0ad770bbdbb9de21 = function(arg0, arg1) {
699
+ arg0.compileShader(arg1);
700
+ };
701
+ imports.wbg.__wbg_compileShader_2307c9d370717dd5 = function(arg0, arg1) {
702
+ arg0.compileShader(arg1);
703
+ };
704
+ imports.wbg.__wbg_compressedTexSubImage2D_71877eec950ca069 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
705
+ arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8, arg9);
706
+ };
707
+ imports.wbg.__wbg_compressedTexSubImage2D_99abf4cfdb7c3fd8 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
708
+ arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8);
709
+ };
710
+ imports.wbg.__wbg_compressedTexSubImage2D_d66dcfcb2422e703 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
711
+ arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8);
712
+ };
713
+ imports.wbg.__wbg_compressedTexSubImage3D_58506392da46b927 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
714
+ arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10);
715
+ };
716
+ imports.wbg.__wbg_compressedTexSubImage3D_81477746675a4017 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
717
+ arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10, arg11);
718
+ };
719
+ imports.wbg.__wbg_configure_83bf9f5943737e27 = function() { return handleError(function (arg0, arg1) {
720
+ arg0.configure(arg1);
721
+ }, arguments) };
722
+ imports.wbg.__wbg_copyBufferSubData_9469a965478e33b5 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
723
+ arg0.copyBufferSubData(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
724
+ };
725
+ imports.wbg.__wbg_copyTexSubImage2D_05e7e8df6814a705 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
726
+ arg0.copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
727
+ };
728
+ imports.wbg.__wbg_copyTexSubImage2D_607ad28606952982 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
729
+ arg0.copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
730
+ };
731
+ imports.wbg.__wbg_copyTexSubImage3D_32e92c94044e58ca = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
732
+ arg0.copyTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
733
+ };
734
+ imports.wbg.__wbg_createBuffer_11ec17c3871a5c94 = function() { return handleError(function (arg0, arg1) {
735
+ const ret = arg0.createBuffer(arg1);
736
+ return ret;
737
+ }, arguments) };
738
+ imports.wbg.__wbg_createBuffer_7a9ec3d654073660 = function(arg0) {
739
+ const ret = arg0.createBuffer();
740
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
741
+ };
742
+ imports.wbg.__wbg_createBuffer_9886e84a67b68c89 = function(arg0) {
743
+ const ret = arg0.createBuffer();
744
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
745
+ };
746
+ imports.wbg.__wbg_createFramebuffer_7824f69bba778885 = function(arg0) {
747
+ const ret = arg0.createFramebuffer();
748
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
749
+ };
750
+ imports.wbg.__wbg_createFramebuffer_c8d70ebc4858051e = function(arg0) {
751
+ const ret = arg0.createFramebuffer();
752
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
753
+ };
754
+ imports.wbg.__wbg_createProgram_8ff56c485f3233d0 = function(arg0) {
755
+ const ret = arg0.createProgram();
756
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
757
+ };
758
+ imports.wbg.__wbg_createProgram_da203074cafb1038 = function(arg0) {
759
+ const ret = arg0.createProgram();
760
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
761
+ };
762
+ imports.wbg.__wbg_createQuery_5ed5e770ec1009c1 = function(arg0) {
763
+ const ret = arg0.createQuery();
764
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
765
+ };
766
+ imports.wbg.__wbg_createRenderbuffer_d88aa9403faa38ea = function(arg0) {
767
+ const ret = arg0.createRenderbuffer();
768
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
769
+ };
770
+ imports.wbg.__wbg_createRenderbuffer_fd347ae14f262eaa = function(arg0) {
771
+ const ret = arg0.createRenderbuffer();
772
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
773
+ };
774
+ imports.wbg.__wbg_createSampler_f76e29d7522bec9e = function(arg0) {
775
+ const ret = arg0.createSampler();
776
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
777
+ };
778
+ imports.wbg.__wbg_createShader_4a256a8cc9c1ce4f = function(arg0, arg1) {
779
+ const ret = arg0.createShader(arg1 >>> 0);
780
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
781
+ };
782
+ imports.wbg.__wbg_createShader_983150fb1243ee56 = function(arg0, arg1) {
783
+ const ret = arg0.createShader(arg1 >>> 0);
784
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
785
+ };
786
+ imports.wbg.__wbg_createTexture_9c536c79b635fdef = function(arg0) {
787
+ const ret = arg0.createTexture();
788
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
789
+ };
790
+ imports.wbg.__wbg_createTexture_bfaa54c0cd22e367 = function(arg0) {
791
+ const ret = arg0.createTexture();
792
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
793
+ };
794
+ imports.wbg.__wbg_createVertexArrayOES_991b44f100f93329 = function(arg0) {
795
+ const ret = arg0.createVertexArrayOES();
796
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
797
+ };
798
+ imports.wbg.__wbg_createVertexArray_e435029ae2660efd = function(arg0) {
799
+ const ret = arg0.createVertexArray();
800
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
801
+ };
802
+ imports.wbg.__wbg_cullFace_187079e6e20a464d = function(arg0, arg1) {
803
+ arg0.cullFace(arg1 >>> 0);
804
+ };
805
+ imports.wbg.__wbg_cullFace_fbae6dd4d5e61ba4 = function(arg0, arg1) {
806
+ arg0.cullFace(arg1 >>> 0);
807
+ };
808
+ imports.wbg.__wbg_deleteBuffer_7ed96e1bf7c02e87 = function(arg0, arg1) {
809
+ arg0.deleteBuffer(arg1);
810
+ };
811
+ imports.wbg.__wbg_deleteBuffer_a7822433fc95dfb8 = function(arg0, arg1) {
812
+ arg0.deleteBuffer(arg1);
813
+ };
814
+ imports.wbg.__wbg_deleteFramebuffer_66853fb7101488cb = function(arg0, arg1) {
815
+ arg0.deleteFramebuffer(arg1);
816
+ };
817
+ imports.wbg.__wbg_deleteFramebuffer_cd3285ee5a702a7a = function(arg0, arg1) {
818
+ arg0.deleteFramebuffer(arg1);
819
+ };
820
+ imports.wbg.__wbg_deleteProgram_3fa626bbc0001eb7 = function(arg0, arg1) {
821
+ arg0.deleteProgram(arg1);
822
+ };
823
+ imports.wbg.__wbg_deleteProgram_71a133c6d053e272 = function(arg0, arg1) {
824
+ arg0.deleteProgram(arg1);
825
+ };
826
+ imports.wbg.__wbg_deleteQuery_6a2b7cd30074b20b = function(arg0, arg1) {
827
+ arg0.deleteQuery(arg1);
828
+ };
829
+ imports.wbg.__wbg_deleteRenderbuffer_59f4369653485031 = function(arg0, arg1) {
830
+ arg0.deleteRenderbuffer(arg1);
831
+ };
832
+ imports.wbg.__wbg_deleteRenderbuffer_8808192853211567 = function(arg0, arg1) {
833
+ arg0.deleteRenderbuffer(arg1);
834
+ };
835
+ imports.wbg.__wbg_deleteSampler_7f02bb003ba547f0 = function(arg0, arg1) {
836
+ arg0.deleteSampler(arg1);
837
+ };
838
+ imports.wbg.__wbg_deleteShader_8d42f169deda58ac = function(arg0, arg1) {
839
+ arg0.deleteShader(arg1);
840
+ };
841
+ imports.wbg.__wbg_deleteShader_c65a44796c5004d8 = function(arg0, arg1) {
842
+ arg0.deleteShader(arg1);
843
+ };
844
+ imports.wbg.__wbg_deleteSync_5a3fbe5d6b742398 = function(arg0, arg1) {
845
+ arg0.deleteSync(arg1);
846
+ };
847
+ imports.wbg.__wbg_deleteTexture_a30f5ca0163c4110 = function(arg0, arg1) {
848
+ arg0.deleteTexture(arg1);
849
+ };
850
+ imports.wbg.__wbg_deleteTexture_bb82c9fec34372ba = function(arg0, arg1) {
851
+ arg0.deleteTexture(arg1);
852
+ };
853
+ imports.wbg.__wbg_deleteVertexArrayOES_1ee7a06a4b23ec8c = function(arg0, arg1) {
854
+ arg0.deleteVertexArrayOES(arg1);
855
+ };
856
+ imports.wbg.__wbg_deleteVertexArray_77fe73664a3332ae = function(arg0, arg1) {
857
+ arg0.deleteVertexArray(arg1);
858
+ };
859
+ imports.wbg.__wbg_depthFunc_2906916f4536d5d7 = function(arg0, arg1) {
860
+ arg0.depthFunc(arg1 >>> 0);
861
+ };
862
+ imports.wbg.__wbg_depthFunc_f34449ae87cc4e3e = function(arg0, arg1) {
863
+ arg0.depthFunc(arg1 >>> 0);
864
+ };
865
+ imports.wbg.__wbg_depthMask_5fe84e2801488eda = function(arg0, arg1) {
866
+ arg0.depthMask(arg1 !== 0);
867
+ };
868
+ imports.wbg.__wbg_depthMask_76688a8638b2f321 = function(arg0, arg1) {
869
+ arg0.depthMask(arg1 !== 0);
870
+ };
871
+ imports.wbg.__wbg_depthRange_3cd6b4dc961d9116 = function(arg0, arg1, arg2) {
872
+ arg0.depthRange(arg1, arg2);
873
+ };
874
+ imports.wbg.__wbg_depthRange_f9c084ff3d81fd7b = function(arg0, arg1, arg2) {
875
+ arg0.depthRange(arg1, arg2);
876
+ };
877
+ imports.wbg.__wbg_disableVertexAttribArray_452cc9815fced7e4 = function(arg0, arg1) {
878
+ arg0.disableVertexAttribArray(arg1 >>> 0);
879
+ };
880
+ imports.wbg.__wbg_disableVertexAttribArray_afd097fb465dc100 = function(arg0, arg1) {
881
+ arg0.disableVertexAttribArray(arg1 >>> 0);
882
+ };
883
+ imports.wbg.__wbg_disable_2702df5b5da5dd21 = function(arg0, arg1) {
884
+ arg0.disable(arg1 >>> 0);
885
+ };
886
+ imports.wbg.__wbg_disable_8b53998501a7a85b = function(arg0, arg1) {
887
+ arg0.disable(arg1 >>> 0);
888
+ };
889
+ imports.wbg.__wbg_document_d249400bd7bd996d = function(arg0) {
890
+ const ret = arg0.document;
891
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
892
+ };
893
+ imports.wbg.__wbg_drawArraysInstancedANGLE_342ee6b5236d9702 = function(arg0, arg1, arg2, arg3, arg4) {
894
+ arg0.drawArraysInstancedANGLE(arg1 >>> 0, arg2, arg3, arg4);
895
+ };
896
+ imports.wbg.__wbg_drawArraysInstanced_622ea9f149b0b80c = function(arg0, arg1, arg2, arg3, arg4) {
897
+ arg0.drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4);
898
+ };
899
+ imports.wbg.__wbg_drawArrays_6acaa2669c105f3a = function(arg0, arg1, arg2, arg3) {
900
+ arg0.drawArrays(arg1 >>> 0, arg2, arg3);
901
+ };
902
+ imports.wbg.__wbg_drawArrays_6d29ea2ebc0c72a2 = function(arg0, arg1, arg2, arg3) {
903
+ arg0.drawArrays(arg1 >>> 0, arg2, arg3);
904
+ };
905
+ imports.wbg.__wbg_drawBuffersWEBGL_9fdbdf3d4cbd3aae = function(arg0, arg1) {
906
+ arg0.drawBuffersWEBGL(arg1);
907
+ };
908
+ imports.wbg.__wbg_drawBuffers_e729b75c5a50d760 = function(arg0, arg1) {
909
+ arg0.drawBuffers(arg1);
910
+ };
911
+ imports.wbg.__wbg_drawElementsInstancedANGLE_096b48ab8686c5cf = function(arg0, arg1, arg2, arg3, arg4, arg5) {
912
+ arg0.drawElementsInstancedANGLE(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
913
+ };
914
+ imports.wbg.__wbg_drawElementsInstanced_f874e87d0b4e95e9 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
915
+ arg0.drawElementsInstanced(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
916
+ };
917
+ imports.wbg.__wbg_enableVertexAttribArray_607be07574298e5e = function(arg0, arg1) {
918
+ arg0.enableVertexAttribArray(arg1 >>> 0);
919
+ };
920
+ imports.wbg.__wbg_enableVertexAttribArray_93c3d406a41ad6c7 = function(arg0, arg1) {
921
+ arg0.enableVertexAttribArray(arg1 >>> 0);
922
+ };
923
+ imports.wbg.__wbg_enable_51114837e05ee280 = function(arg0, arg1) {
924
+ arg0.enable(arg1 >>> 0);
925
+ };
926
+ imports.wbg.__wbg_enable_d183fef39258803f = function(arg0, arg1) {
927
+ arg0.enable(arg1 >>> 0);
928
+ };
929
+ imports.wbg.__wbg_endQuery_17aac36532ca7d47 = function(arg0, arg1) {
930
+ arg0.endQuery(arg1 >>> 0);
931
+ };
932
+ imports.wbg.__wbg_error_963a3d03216025cc = function(arg0) {
933
+ const ret = arg0.error;
934
+ return ret;
935
+ };
936
+ imports.wbg.__wbg_fenceSync_02d142d21e315da6 = function(arg0, arg1, arg2) {
937
+ const ret = arg0.fenceSync(arg1 >>> 0, arg2 >>> 0);
938
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
939
+ };
940
+ imports.wbg.__wbg_framebufferRenderbuffer_2fdd12e89ad81eb9 = function(arg0, arg1, arg2, arg3, arg4) {
941
+ arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
942
+ };
943
+ imports.wbg.__wbg_framebufferRenderbuffer_8b88592753b54715 = function(arg0, arg1, arg2, arg3, arg4) {
944
+ arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
945
+ };
946
+ imports.wbg.__wbg_framebufferTexture2D_81a565732bd5d8fe = function(arg0, arg1, arg2, arg3, arg4, arg5) {
947
+ arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
948
+ };
949
+ imports.wbg.__wbg_framebufferTexture2D_ed855d0b097c557a = function(arg0, arg1, arg2, arg3, arg4, arg5) {
950
+ arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
951
+ };
952
+ imports.wbg.__wbg_framebufferTextureLayer_5e6bd1b0cb45d815 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
953
+ arg0.framebufferTextureLayer(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
954
+ };
955
+ imports.wbg.__wbg_framebufferTextureMultiviewOVR_e54f936c3cc382cb = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
956
+ arg0.framebufferTextureMultiviewOVR(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5, arg6);
957
+ };
958
+ imports.wbg.__wbg_frontFace_289c9d7a8569c4f2 = function(arg0, arg1) {
959
+ arg0.frontFace(arg1 >>> 0);
960
+ };
961
+ imports.wbg.__wbg_frontFace_4d4936cfaeb8b7df = function(arg0, arg1) {
962
+ arg0.frontFace(arg1 >>> 0);
963
+ };
964
+ imports.wbg.__wbg_getBufferSubData_8ab2dcc5fcf5770f = function(arg0, arg1, arg2, arg3) {
965
+ arg0.getBufferSubData(arg1 >>> 0, arg2, arg3);
966
+ };
967
+ imports.wbg.__wbg_getContext_3ae09aaa73194801 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
968
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
969
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
970
+ }, arguments) };
971
+ imports.wbg.__wbg_getContext_e9cf379449413580 = function() { return handleError(function (arg0, arg1, arg2) {
972
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
973
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
974
+ }, arguments) };
975
+ imports.wbg.__wbg_getContext_f65a0debd1e8f8e8 = function() { return handleError(function (arg0, arg1, arg2) {
976
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
977
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
978
+ }, arguments) };
979
+ imports.wbg.__wbg_getContext_fc19859df6331073 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
980
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
981
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
982
+ }, arguments) };
983
+ imports.wbg.__wbg_getExtension_ff0fb1398bcf28c3 = function() { return handleError(function (arg0, arg1, arg2) {
984
+ const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2));
985
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
986
+ }, arguments) };
987
+ imports.wbg.__wbg_getIndexedParameter_f9211edc36533919 = function() { return handleError(function (arg0, arg1, arg2) {
988
+ const ret = arg0.getIndexedParameter(arg1 >>> 0, arg2 >>> 0);
989
+ return ret;
990
+ }, arguments) };
991
+ imports.wbg.__wbg_getParameter_1f0887a2b88e6d19 = function() { return handleError(function (arg0, arg1) {
992
+ const ret = arg0.getParameter(arg1 >>> 0);
993
+ return ret;
994
+ }, arguments) };
995
+ imports.wbg.__wbg_getParameter_e3429f024018310f = function() { return handleError(function (arg0, arg1) {
996
+ const ret = arg0.getParameter(arg1 >>> 0);
997
+ return ret;
998
+ }, arguments) };
999
+ imports.wbg.__wbg_getPreferredCanvasFormat_8c112baeb8425e51 = function(arg0) {
1000
+ const ret = arg0.getPreferredCanvasFormat();
1001
+ return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 96) - 1;
1002
+ };
1003
+ imports.wbg.__wbg_getProgramInfoLog_631c180b1b21c8ed = function(arg0, arg1, arg2) {
1004
+ const ret = arg1.getProgramInfoLog(arg2);
1005
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1006
+ var len1 = WASM_VECTOR_LEN;
1007
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1008
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1009
+ };
1010
+ imports.wbg.__wbg_getProgramInfoLog_a998105a680059db = function(arg0, arg1, arg2) {
1011
+ const ret = arg1.getProgramInfoLog(arg2);
1012
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1013
+ var len1 = WASM_VECTOR_LEN;
1014
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1015
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1016
+ };
1017
+ imports.wbg.__wbg_getProgramParameter_0c411f0cd4185c5b = function(arg0, arg1, arg2) {
1018
+ const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
1019
+ return ret;
1020
+ };
1021
+ imports.wbg.__wbg_getProgramParameter_360f95ff07ac068d = function(arg0, arg1, arg2) {
1022
+ const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
1023
+ return ret;
1024
+ };
1025
+ imports.wbg.__wbg_getQueryParameter_8921497e1d1561c1 = function(arg0, arg1, arg2) {
1026
+ const ret = arg0.getQueryParameter(arg1, arg2 >>> 0);
1027
+ return ret;
1028
+ };
1029
+ imports.wbg.__wbg_getShaderInfoLog_7e7b38fb910ec534 = function(arg0, arg1, arg2) {
1030
+ const ret = arg1.getShaderInfoLog(arg2);
1031
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1032
+ var len1 = WASM_VECTOR_LEN;
1033
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1034
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1035
+ };
1036
+ imports.wbg.__wbg_getShaderInfoLog_f59c3112acc6e039 = function(arg0, arg1, arg2) {
1037
+ const ret = arg1.getShaderInfoLog(arg2);
1038
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1039
+ var len1 = WASM_VECTOR_LEN;
1040
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1041
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1042
+ };
1043
+ imports.wbg.__wbg_getShaderParameter_511b5f929074fa31 = function(arg0, arg1, arg2) {
1044
+ const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
1045
+ return ret;
1046
+ };
1047
+ imports.wbg.__wbg_getShaderParameter_6dbe0b8558dc41fd = function(arg0, arg1, arg2) {
1048
+ const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
1049
+ return ret;
1050
+ };
1051
+ imports.wbg.__wbg_getSupportedExtensions_8c007dbb54905635 = function(arg0) {
1052
+ const ret = arg0.getSupportedExtensions();
1053
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1054
+ };
1055
+ imports.wbg.__wbg_getSupportedProfiles_10d2a4d32a128384 = function(arg0) {
1056
+ const ret = arg0.getSupportedProfiles();
1057
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1058
+ };
1059
+ imports.wbg.__wbg_getSyncParameter_7cb8461f5891606c = function(arg0, arg1, arg2) {
1060
+ const ret = arg0.getSyncParameter(arg1, arg2 >>> 0);
1061
+ return ret;
1062
+ };
1063
+ imports.wbg.__wbg_getUniformBlockIndex_288fdc31528171ca = function(arg0, arg1, arg2, arg3) {
1064
+ const ret = arg0.getUniformBlockIndex(arg1, getStringFromWasm0(arg2, arg3));
1065
+ return ret;
1066
+ };
1067
+ imports.wbg.__wbg_getUniformLocation_657a2b6d102bd126 = function(arg0, arg1, arg2, arg3) {
1068
+ const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
1069
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1070
+ };
1071
+ imports.wbg.__wbg_getUniformLocation_838363001c74dc21 = function(arg0, arg1, arg2, arg3) {
1072
+ const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
1073
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1074
+ };
1075
+ imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
1076
+ const ret = arg0[arg1 >>> 0];
1077
+ return ret;
1078
+ };
1079
+ imports.wbg.__wbg_get_e27dfaeb6f46bd45 = function(arg0, arg1) {
1080
+ const ret = arg0[arg1 >>> 0];
1081
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1082
+ };
1083
+ imports.wbg.__wbg_gpu_9f080a86edc5f86e = function(arg0) {
1084
+ const ret = arg0.gpu;
1085
+ return ret;
1086
+ };
1087
+ imports.wbg.__wbg_height_838cee19ba8597db = function(arg0) {
1088
+ const ret = arg0.height;
1089
+ return ret;
1090
+ };
1091
+ imports.wbg.__wbg_height_e3c322f23d99ad2f = function(arg0) {
1092
+ const ret = arg0.height;
1093
+ return ret;
1094
+ };
1095
+ imports.wbg.__wbg_includes_937486a108ec147b = function(arg0, arg1, arg2) {
1096
+ const ret = arg0.includes(arg1, arg2);
1097
+ return ret;
1098
+ };
1099
+ imports.wbg.__wbg_instanceof_GpuAdapter_3257b98e7232966f = function(arg0) {
1100
+ let result;
1101
+ try {
1102
+ result = arg0 instanceof GPUAdapter;
1103
+ } catch (_) {
1104
+ result = false;
1105
+ }
1106
+ const ret = result;
1107
+ return ret;
1108
+ };
1109
+ imports.wbg.__wbg_instanceof_GpuCanvasContext_788cd6fae9d7950e = function(arg0) {
1110
+ let result;
1111
+ try {
1112
+ result = arg0 instanceof GPUCanvasContext;
1113
+ } catch (_) {
1114
+ result = false;
1115
+ }
1116
+ const ret = result;
1117
+ return ret;
1118
+ };
1119
+ imports.wbg.__wbg_instanceof_GpuOutOfMemoryError_fcdbb77ac9407f31 = function(arg0) {
1120
+ let result;
1121
+ try {
1122
+ result = arg0 instanceof GPUOutOfMemoryError;
1123
+ } catch (_) {
1124
+ result = false;
1125
+ }
1126
+ const ret = result;
1127
+ return ret;
1128
+ };
1129
+ imports.wbg.__wbg_instanceof_GpuValidationError_ff57f213d14fc3ac = function(arg0) {
1130
+ let result;
1131
+ try {
1132
+ result = arg0 instanceof GPUValidationError;
1133
+ } catch (_) {
1134
+ result = false;
1135
+ }
1136
+ const ret = result;
1137
+ return ret;
1138
+ };
1139
+ imports.wbg.__wbg_instanceof_HtmlCanvasElement_2ea67072a7624ac5 = function(arg0) {
1140
+ let result;
1141
+ try {
1142
+ result = arg0 instanceof HTMLCanvasElement;
1143
+ } catch (_) {
1144
+ result = false;
1145
+ }
1146
+ const ret = result;
1147
+ return ret;
1148
+ };
1149
+ imports.wbg.__wbg_instanceof_OffscreenCanvas_d55760945f91bf51 = function(arg0) {
1150
+ let result;
1151
+ try {
1152
+ result = arg0 instanceof OffscreenCanvas;
1153
+ } catch (_) {
1154
+ result = false;
1155
+ }
1156
+ const ret = result;
1157
+ return ret;
1158
+ };
1159
+ imports.wbg.__wbg_instanceof_WebGl2RenderingContext_2b6045efeb76568d = function(arg0) {
1160
+ let result;
1161
+ try {
1162
+ result = arg0 instanceof WebGL2RenderingContext;
1163
+ } catch (_) {
1164
+ result = false;
1165
+ }
1166
+ const ret = result;
1167
+ return ret;
1168
+ };
1169
+ imports.wbg.__wbg_instanceof_Window_def73ea0955fc569 = function(arg0) {
1170
+ let result;
1171
+ try {
1172
+ result = arg0 instanceof Window;
1173
+ } catch (_) {
1174
+ result = false;
1175
+ }
1176
+ const ret = result;
1177
+ return ret;
1178
+ };
1179
+ imports.wbg.__wbg_invalidateFramebuffer_83f643d2a4936456 = function() { return handleError(function (arg0, arg1, arg2) {
1180
+ arg0.invalidateFramebuffer(arg1 >>> 0, arg2);
1181
+ }, arguments) };
1182
+ imports.wbg.__wbg_is_c7481c65e7e5df9e = function(arg0, arg1) {
1183
+ const ret = Object.is(arg0, arg1);
1184
+ return ret;
1185
+ };
1186
+ imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
1187
+ const ret = arg0.length;
1188
+ return ret;
1189
+ };
1190
+ imports.wbg.__wbg_limits_8bc028d702bb12df = function(arg0) {
1191
+ const ret = arg0.limits;
1192
+ return ret;
1193
+ };
1194
+ imports.wbg.__wbg_limits_ac05a37bc81653a8 = function(arg0) {
1195
+ const ret = arg0.limits;
1196
+ return ret;
1197
+ };
1198
+ imports.wbg.__wbg_linkProgram_067ee06739bdde81 = function(arg0, arg1) {
1199
+ arg0.linkProgram(arg1);
1200
+ };
1201
+ imports.wbg.__wbg_linkProgram_e002979fe36e5b2a = function(arg0, arg1) {
1202
+ arg0.linkProgram(arg1);
1203
+ };
1204
+ imports.wbg.__wbg_maxBindGroups_0222dcf9e174a4be = function(arg0) {
1205
+ const ret = arg0.maxBindGroups;
1206
+ return ret;
1207
+ };
1208
+ imports.wbg.__wbg_maxBindingsPerBindGroup_30a6b12dbcf8069d = function(arg0) {
1209
+ const ret = arg0.maxBindingsPerBindGroup;
1210
+ return ret;
1211
+ };
1212
+ imports.wbg.__wbg_maxBufferSize_8fb2143272621179 = function(arg0) {
1213
+ const ret = arg0.maxBufferSize;
1214
+ return ret;
1215
+ };
1216
+ imports.wbg.__wbg_maxColorAttachmentBytesPerSample_a812509fd9bd676b = function(arg0) {
1217
+ const ret = arg0.maxColorAttachmentBytesPerSample;
1218
+ return ret;
1219
+ };
1220
+ imports.wbg.__wbg_maxColorAttachments_9fbd199d61afc1f5 = function(arg0) {
1221
+ const ret = arg0.maxColorAttachments;
1222
+ return ret;
1223
+ };
1224
+ imports.wbg.__wbg_maxComputeInvocationsPerWorkgroup_7fa6b4db368a2126 = function(arg0) {
1225
+ const ret = arg0.maxComputeInvocationsPerWorkgroup;
1226
+ return ret;
1227
+ };
1228
+ imports.wbg.__wbg_maxComputeWorkgroupSizeX_c4d9a824f2bf9960 = function(arg0) {
1229
+ const ret = arg0.maxComputeWorkgroupSizeX;
1230
+ return ret;
1231
+ };
1232
+ imports.wbg.__wbg_maxComputeWorkgroupSizeY_9e52efeb0aca31d3 = function(arg0) {
1233
+ const ret = arg0.maxComputeWorkgroupSizeY;
1234
+ return ret;
1235
+ };
1236
+ imports.wbg.__wbg_maxComputeWorkgroupSizeZ_f5b8807576c43db6 = function(arg0) {
1237
+ const ret = arg0.maxComputeWorkgroupSizeZ;
1238
+ return ret;
1239
+ };
1240
+ imports.wbg.__wbg_maxComputeWorkgroupStorageSize_7b38ae516290af07 = function(arg0) {
1241
+ const ret = arg0.maxComputeWorkgroupStorageSize;
1242
+ return ret;
1243
+ };
1244
+ imports.wbg.__wbg_maxComputeWorkgroupsPerDimension_d9554109ab21ce47 = function(arg0) {
1245
+ const ret = arg0.maxComputeWorkgroupsPerDimension;
1246
+ return ret;
1247
+ };
1248
+ imports.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_c29218793cde6f24 = function(arg0) {
1249
+ const ret = arg0.maxDynamicStorageBuffersPerPipelineLayout;
1250
+ return ret;
1251
+ };
1252
+ imports.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_680aa7c1b3e0700c = function(arg0) {
1253
+ const ret = arg0.maxDynamicUniformBuffersPerPipelineLayout;
1254
+ return ret;
1255
+ };
1256
+ imports.wbg.__wbg_maxSampledTexturesPerShaderStage_99a7ba8d7ca1221e = function(arg0) {
1257
+ const ret = arg0.maxSampledTexturesPerShaderStage;
1258
+ return ret;
1259
+ };
1260
+ imports.wbg.__wbg_maxSamplersPerShaderStage_374e0f0050a42508 = function(arg0) {
1261
+ const ret = arg0.maxSamplersPerShaderStage;
1262
+ return ret;
1263
+ };
1264
+ imports.wbg.__wbg_maxStorageBufferBindingSize_7de8660008eabc4a = function(arg0) {
1265
+ const ret = arg0.maxStorageBufferBindingSize;
1266
+ return ret;
1267
+ };
1268
+ imports.wbg.__wbg_maxStorageBuffersPerShaderStage_2af5e62ac198180c = function(arg0) {
1269
+ const ret = arg0.maxStorageBuffersPerShaderStage;
1270
+ return ret;
1271
+ };
1272
+ imports.wbg.__wbg_maxStorageTexturesPerShaderStage_1333853bcc12d28f = function(arg0) {
1273
+ const ret = arg0.maxStorageTexturesPerShaderStage;
1274
+ return ret;
1275
+ };
1276
+ imports.wbg.__wbg_maxTextureArrayLayers_b9d811b9edb96b7a = function(arg0) {
1277
+ const ret = arg0.maxTextureArrayLayers;
1278
+ return ret;
1279
+ };
1280
+ imports.wbg.__wbg_maxTextureDimension1D_12a27fca428edfe6 = function(arg0) {
1281
+ const ret = arg0.maxTextureDimension1D;
1282
+ return ret;
1283
+ };
1284
+ imports.wbg.__wbg_maxTextureDimension2D_76c550ad1fb81966 = function(arg0) {
1285
+ const ret = arg0.maxTextureDimension2D;
1286
+ return ret;
1287
+ };
1288
+ imports.wbg.__wbg_maxTextureDimension3D_55e3acf13a2b455b = function(arg0) {
1289
+ const ret = arg0.maxTextureDimension3D;
1290
+ return ret;
1291
+ };
1292
+ imports.wbg.__wbg_maxUniformBufferBindingSize_deba3c1afed3be24 = function(arg0) {
1293
+ const ret = arg0.maxUniformBufferBindingSize;
1294
+ return ret;
1295
+ };
1296
+ imports.wbg.__wbg_maxUniformBuffersPerShaderStage_01fc2dbf06098c31 = function(arg0) {
1297
+ const ret = arg0.maxUniformBuffersPerShaderStage;
1298
+ return ret;
1299
+ };
1300
+ imports.wbg.__wbg_maxVertexAttributes_c18639452fa244e8 = function(arg0) {
1301
+ const ret = arg0.maxVertexAttributes;
1302
+ return ret;
1303
+ };
1304
+ imports.wbg.__wbg_maxVertexBufferArrayStride_69bfb89aae827641 = function(arg0) {
1305
+ const ret = arg0.maxVertexBufferArrayStride;
1306
+ return ret;
1307
+ };
1308
+ imports.wbg.__wbg_maxVertexBuffers_6cd09df3032ef900 = function(arg0) {
1309
+ const ret = arg0.maxVertexBuffers;
1310
+ return ret;
1311
+ };
1312
+ imports.wbg.__wbg_message_1388766d17a7ad4b = function(arg0, arg1) {
1313
+ const ret = arg1.message;
1314
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1315
+ const len1 = WASM_VECTOR_LEN;
1316
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1317
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1318
+ };
1319
+ imports.wbg.__wbg_minStorageBufferOffsetAlignment_92f8686c6346577b = function(arg0) {
1320
+ const ret = arg0.minStorageBufferOffsetAlignment;
1321
+ return ret;
1322
+ };
1323
+ imports.wbg.__wbg_minUniformBufferOffsetAlignment_06720d80b84c4715 = function(arg0) {
1324
+ const ret = arg0.minUniformBufferOffsetAlignment;
1325
+ return ret;
1326
+ };
1327
+ imports.wbg.__wbg_navigator_0a9bf1120e24fec2 = function(arg0) {
1328
+ const ret = arg0.navigator;
1329
+ return ret;
1330
+ };
1331
+ imports.wbg.__wbg_navigator_1577371c070c8947 = function(arg0) {
1332
+ const ret = arg0.navigator;
1333
+ return ret;
1334
+ };
1335
+ imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
1336
+ try {
1337
+ var state0 = {a: arg0, b: arg1};
1338
+ var cb0 = (arg0, arg1) => {
1339
+ const a = state0.a;
1340
+ state0.a = 0;
1341
+ try {
1342
+ return __wbg_adapter_730(a, state0.b, arg0, arg1);
1343
+ } finally {
1344
+ state0.a = a;
1345
+ }
1346
+ };
1347
+ const ret = new Promise(cb0);
1348
+ return ret;
1349
+ } finally {
1350
+ state0.a = state0.b = 0;
1351
+ }
1352
+ };
1353
+ imports.wbg.__wbg_new_405e22f390576ce2 = function() {
1354
+ const ret = new Object();
1355
+ return ret;
1356
+ };
1357
+ imports.wbg.__wbg_new_78feb108b6472713 = function() {
1358
+ const ret = new Array();
1359
+ return ret;
1360
+ };
1361
+ imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
1362
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
1363
+ return ret;
1364
+ };
1365
+ imports.wbg.__wbg_newwithbyteoffsetandlength_840f3c038856d4e9 = function(arg0, arg1, arg2) {
1366
+ const ret = new Int8Array(arg0, arg1 >>> 0, arg2 >>> 0);
1367
+ return ret;
1368
+ };
1369
+ imports.wbg.__wbg_newwithbyteoffsetandlength_999332a180064b59 = function(arg0, arg1, arg2) {
1370
+ const ret = new Int32Array(arg0, arg1 >>> 0, arg2 >>> 0);
1371
+ return ret;
1372
+ };
1373
+ imports.wbg.__wbg_newwithbyteoffsetandlength_d4a86622320ea258 = function(arg0, arg1, arg2) {
1374
+ const ret = new Uint16Array(arg0, arg1 >>> 0, arg2 >>> 0);
1375
+ return ret;
1376
+ };
1377
+ imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
1378
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
1379
+ return ret;
1380
+ };
1381
+ imports.wbg.__wbg_newwithbyteoffsetandlength_e6b7e69acd4c7354 = function(arg0, arg1, arg2) {
1382
+ const ret = new Float32Array(arg0, arg1 >>> 0, arg2 >>> 0);
1383
+ return ret;
1384
+ };
1385
+ imports.wbg.__wbg_newwithbyteoffsetandlength_f1dead44d1fc7212 = function(arg0, arg1, arg2) {
1386
+ const ret = new Uint32Array(arg0, arg1 >>> 0, arg2 >>> 0);
1387
+ return ret;
1388
+ };
1389
+ imports.wbg.__wbg_newwithbyteoffsetandlength_f254047f7e80e7ff = function(arg0, arg1, arg2) {
1390
+ const ret = new Int16Array(arg0, arg1 >>> 0, arg2 >>> 0);
1391
+ return ret;
1392
+ };
1393
+ imports.wbg.__wbg_of_2eaf5a02d443ef03 = function(arg0) {
1394
+ const ret = Array.of(arg0);
1395
+ return ret;
1396
+ };
1397
+ imports.wbg.__wbg_pixelStorei_6aba5d04cdcaeaf6 = function(arg0, arg1, arg2) {
1398
+ arg0.pixelStorei(arg1 >>> 0, arg2);
1399
+ };
1400
+ imports.wbg.__wbg_pixelStorei_c8520e4b46f4a973 = function(arg0, arg1, arg2) {
1401
+ arg0.pixelStorei(arg1 >>> 0, arg2);
1402
+ };
1403
+ imports.wbg.__wbg_polygonOffset_773fe0017b2c8f51 = function(arg0, arg1, arg2) {
1404
+ arg0.polygonOffset(arg1, arg2);
1405
+ };
1406
+ imports.wbg.__wbg_polygonOffset_8c11c066486216c4 = function(arg0, arg1, arg2) {
1407
+ arg0.polygonOffset(arg1, arg2);
1408
+ };
1409
+ imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
1410
+ const ret = arg0.push(arg1);
1411
+ return ret;
1412
+ };
1413
+ imports.wbg.__wbg_queryCounterEXT_7aed85645b7ec1da = function(arg0, arg1, arg2) {
1414
+ arg0.queryCounterEXT(arg1, arg2 >>> 0);
1415
+ };
1416
+ imports.wbg.__wbg_querySelectorAll_40998fd748f057ef = function() { return handleError(function (arg0, arg1, arg2) {
1417
+ const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
1418
+ return ret;
1419
+ }, arguments) };
1420
+ imports.wbg.__wbg_querySelector_c69f8b573958906b = function() { return handleError(function (arg0, arg1, arg2) {
1421
+ const ret = arg0.querySelector(getStringFromWasm0(arg1, arg2));
1422
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1423
+ }, arguments) };
1424
+ imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
1425
+ queueMicrotask(arg0);
1426
+ };
1427
+ imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
1428
+ const ret = arg0.queueMicrotask;
1429
+ return ret;
1430
+ };
1431
+ imports.wbg.__wbg_queue_07fadd40f69596cf = function(arg0) {
1432
+ const ret = arg0.queue;
1433
+ return ret;
1434
+ };
1435
+ imports.wbg.__wbg_readBuffer_1c35b1e4939f881d = function(arg0, arg1) {
1436
+ arg0.readBuffer(arg1 >>> 0);
1437
+ };
1438
+ imports.wbg.__wbg_readPixels_51a0c02cdee207a5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
1439
+ arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
1440
+ }, arguments) };
1441
+ imports.wbg.__wbg_readPixels_a6cbb21794452142 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
1442
+ arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
1443
+ }, arguments) };
1444
+ imports.wbg.__wbg_readPixels_cd64c5a7b0343355 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
1445
+ arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
1446
+ }, arguments) };
1447
+ imports.wbg.__wbg_renderbufferStorageMultisample_13fbd5e58900c6fe = function(arg0, arg1, arg2, arg3, arg4, arg5) {
1448
+ arg0.renderbufferStorageMultisample(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1449
+ };
1450
+ imports.wbg.__wbg_renderbufferStorage_73e01ea83b8afab4 = function(arg0, arg1, arg2, arg3, arg4) {
1451
+ arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
1452
+ };
1453
+ imports.wbg.__wbg_renderbufferStorage_f010012bd3566942 = function(arg0, arg1, arg2, arg3, arg4) {
1454
+ arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
1455
+ };
1456
+ imports.wbg.__wbg_requestAdapter_5e45466d2792e15f = function(arg0) {
1457
+ const ret = arg0.requestAdapter();
1458
+ return ret;
1459
+ };
1460
+ imports.wbg.__wbg_requestAdapter_ac50995a147cfd95 = function(arg0, arg1) {
1461
+ const ret = arg0.requestAdapter(arg1);
1462
+ return ret;
1463
+ };
1464
+ imports.wbg.__wbg_requestDevice_0898fac1fbdf2ee0 = function(arg0, arg1) {
1465
+ const ret = arg0.requestDevice(arg1);
1466
+ return ret;
1467
+ };
1468
+ imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
1469
+ const ret = Promise.resolve(arg0);
1470
+ return ret;
1471
+ };
1472
+ imports.wbg.__wbg_samplerParameterf_909baf50360c94d4 = function(arg0, arg1, arg2, arg3) {
1473
+ arg0.samplerParameterf(arg1, arg2 >>> 0, arg3);
1474
+ };
1475
+ imports.wbg.__wbg_samplerParameteri_d5c292172718da63 = function(arg0, arg1, arg2, arg3) {
1476
+ arg0.samplerParameteri(arg1, arg2 >>> 0, arg3);
1477
+ };
1478
+ imports.wbg.__wbg_scissor_e917a332f67a5d30 = function(arg0, arg1, arg2, arg3, arg4) {
1479
+ arg0.scissor(arg1, arg2, arg3, arg4);
1480
+ };
1481
+ imports.wbg.__wbg_scissor_eb177ca33bf24a44 = function(arg0, arg1, arg2, arg3, arg4) {
1482
+ arg0.scissor(arg1, arg2, arg3, arg4);
1483
+ };
1484
+ imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
1485
+ const ret = Reflect.set(arg0, arg1, arg2);
1486
+ return ret;
1487
+ }, arguments) };
1488
+ imports.wbg.__wbg_setalphamode_691410f64bc24a5f = function(arg0, arg1) {
1489
+ arg0.alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
1490
+ };
1491
+ imports.wbg.__wbg_setdevice_2258ae9b3dfa6ca5 = function(arg0, arg1) {
1492
+ arg0.device = arg1;
1493
+ };
1494
+ imports.wbg.__wbg_setformat_73af393f0d9a130d = function(arg0, arg1) {
1495
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1496
+ };
1497
+ imports.wbg.__wbg_setheight_433680330c9420c3 = function(arg0, arg1) {
1498
+ arg0.height = arg1 >>> 0;
1499
+ };
1500
+ imports.wbg.__wbg_setheight_da683a33fa99843c = function(arg0, arg1) {
1501
+ arg0.height = arg1 >>> 0;
1502
+ };
1503
+ imports.wbg.__wbg_setlabel_2d06fdef5bb757c8 = function(arg0, arg1, arg2) {
1504
+ arg0.label = getStringFromWasm0(arg1, arg2);
1505
+ };
1506
+ imports.wbg.__wbg_setlabel_fa444683138df2fe = function(arg0, arg1, arg2) {
1507
+ arg0.label = getStringFromWasm0(arg1, arg2);
1508
+ };
1509
+ imports.wbg.__wbg_setmappedatcreation_cac8944b747e87ee = function(arg0, arg1) {
1510
+ arg0.mappedAtCreation = arg1 !== 0;
1511
+ };
1512
+ imports.wbg.__wbg_setonuncapturederror_518c02e8160fb680 = function(arg0, arg1) {
1513
+ arg0.onuncapturederror = arg1;
1514
+ };
1515
+ imports.wbg.__wbg_setpowerpreference_ad71852850bd8848 = function(arg0, arg1) {
1516
+ arg0.powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
1517
+ };
1518
+ imports.wbg.__wbg_setrequiredfeatures_360aae2ce3d2381c = function(arg0, arg1) {
1519
+ arg0.requiredFeatures = arg1;
1520
+ };
1521
+ imports.wbg.__wbg_setsize_b2e7d5d7b2596519 = function(arg0, arg1) {
1522
+ arg0.size = arg1;
1523
+ };
1524
+ imports.wbg.__wbg_setusage_4c9bdf8baa548094 = function(arg0, arg1) {
1525
+ arg0.usage = arg1 >>> 0;
1526
+ };
1527
+ imports.wbg.__wbg_setusage_7de66baaeab73b73 = function(arg0, arg1) {
1528
+ arg0.usage = arg1 >>> 0;
1529
+ };
1530
+ imports.wbg.__wbg_setviewformats_8e20a59f8167dc6d = function(arg0, arg1) {
1531
+ arg0.viewFormats = arg1;
1532
+ };
1533
+ imports.wbg.__wbg_setwidth_660ca581e3fbe279 = function(arg0, arg1) {
1534
+ arg0.width = arg1 >>> 0;
1535
+ };
1536
+ imports.wbg.__wbg_setwidth_c5fed9f5e7f0b406 = function(arg0, arg1) {
1537
+ arg0.width = arg1 >>> 0;
1538
+ };
1539
+ imports.wbg.__wbg_shaderSource_72d3e8597ef85b67 = function(arg0, arg1, arg2, arg3) {
1540
+ arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
1541
+ };
1542
+ imports.wbg.__wbg_shaderSource_ad0087e637a35191 = function(arg0, arg1, arg2, arg3) {
1543
+ arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
1544
+ };
1545
+ imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
1546
+ const ret = typeof global === 'undefined' ? null : global;
1547
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1548
+ };
1549
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
1550
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
1551
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1552
+ };
1553
+ imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
1554
+ const ret = typeof self === 'undefined' ? null : self;
1555
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1556
+ };
1557
+ imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
1558
+ const ret = typeof window === 'undefined' ? null : window;
1559
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1560
+ };
1561
+ imports.wbg.__wbg_stencilFuncSeparate_91700dcf367ae07e = function(arg0, arg1, arg2, arg3, arg4) {
1562
+ arg0.stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0);
1563
+ };
1564
+ imports.wbg.__wbg_stencilFuncSeparate_c1a6fa2005ca0aaf = function(arg0, arg1, arg2, arg3, arg4) {
1565
+ arg0.stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0);
1566
+ };
1567
+ imports.wbg.__wbg_stencilMaskSeparate_4f1a2defc8c10956 = function(arg0, arg1, arg2) {
1568
+ arg0.stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0);
1569
+ };
1570
+ imports.wbg.__wbg_stencilMaskSeparate_f8a0cfb5c2994d4a = function(arg0, arg1, arg2) {
1571
+ arg0.stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0);
1572
+ };
1573
+ imports.wbg.__wbg_stencilMask_1e602ef63f5b4144 = function(arg0, arg1) {
1574
+ arg0.stencilMask(arg1 >>> 0);
1575
+ };
1576
+ imports.wbg.__wbg_stencilMask_cd8ca0a55817e599 = function(arg0, arg1) {
1577
+ arg0.stencilMask(arg1 >>> 0);
1578
+ };
1579
+ imports.wbg.__wbg_stencilOpSeparate_1fa08985e79e1627 = function(arg0, arg1, arg2, arg3, arg4) {
1580
+ arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
1581
+ };
1582
+ imports.wbg.__wbg_stencilOpSeparate_ff6683bbe3838ae6 = function(arg0, arg1, arg2, arg3, arg4) {
1583
+ arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
1584
+ };
1585
+ imports.wbg.__wbg_texImage2D_57483314967bdd11 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1586
+ arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1587
+ }, arguments) };
1588
+ imports.wbg.__wbg_texImage2D_5f2835f02b1d1077 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1589
+ arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1590
+ }, arguments) };
1591
+ imports.wbg.__wbg_texImage2D_b8edcb5692f65f88 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1592
+ arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1593
+ }, arguments) };
1594
+ imports.wbg.__wbg_texImage3D_921b54d09bf45af0 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
1595
+ arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10);
1596
+ }, arguments) };
1597
+ imports.wbg.__wbg_texImage3D_a00b7a4df48cf757 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
1598
+ arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10);
1599
+ }, arguments) };
1600
+ imports.wbg.__wbg_texParameteri_8112b26b3c360b7e = function(arg0, arg1, arg2, arg3) {
1601
+ arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
1602
+ };
1603
+ imports.wbg.__wbg_texParameteri_ef50743cb94d507e = function(arg0, arg1, arg2, arg3) {
1604
+ arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
1605
+ };
1606
+ imports.wbg.__wbg_texStorage2D_fbda848497f3674e = function(arg0, arg1, arg2, arg3, arg4, arg5) {
1607
+ arg0.texStorage2D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1608
+ };
1609
+ imports.wbg.__wbg_texStorage3D_fd7a7ca30e7981d1 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1610
+ arg0.texStorage3D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5, arg6);
1611
+ };
1612
+ imports.wbg.__wbg_texSubImage2D_061605071aad9d2c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1613
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1614
+ }, arguments) };
1615
+ imports.wbg.__wbg_texSubImage2D_aa9a084093764796 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1616
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1617
+ }, arguments) };
1618
+ imports.wbg.__wbg_texSubImage2D_c7951ed97252bdff = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1619
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1620
+ }, arguments) };
1621
+ imports.wbg.__wbg_texSubImage2D_d52d1a0d3654c60b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1622
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1623
+ }, arguments) };
1624
+ imports.wbg.__wbg_texSubImage2D_dd9cac68ad5fe0b6 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1625
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1626
+ }, arguments) };
1627
+ imports.wbg.__wbg_texSubImage2D_e6d34f5bb062e404 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1628
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1629
+ }, arguments) };
1630
+ imports.wbg.__wbg_texSubImage2D_f39ea52a2d4bd2f7 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1631
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1632
+ }, arguments) };
1633
+ imports.wbg.__wbg_texSubImage2D_fbdf91268228c757 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1634
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1635
+ }, arguments) };
1636
+ imports.wbg.__wbg_texSubImage3D_04731251d7cecc83 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1637
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1638
+ }, arguments) };
1639
+ imports.wbg.__wbg_texSubImage3D_37f0045d16871670 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1640
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1641
+ }, arguments) };
1642
+ imports.wbg.__wbg_texSubImage3D_3a871f6405d2f183 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1643
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1644
+ }, arguments) };
1645
+ imports.wbg.__wbg_texSubImage3D_66acd67f56e3b214 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1646
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1647
+ }, arguments) };
1648
+ imports.wbg.__wbg_texSubImage3D_a051de089266fa1b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1649
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1650
+ }, arguments) };
1651
+ imports.wbg.__wbg_texSubImage3D_b28c55f839bbec41 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1652
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1653
+ }, arguments) };
1654
+ imports.wbg.__wbg_texSubImage3D_f18bf091cd48774c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1655
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1656
+ }, arguments) };
1657
+ imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
1658
+ const ret = arg0.then(arg1);
1659
+ return ret;
1660
+ };
1661
+ imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
1662
+ const ret = arg0.then(arg1, arg2);
1663
+ return ret;
1664
+ };
1665
+ imports.wbg.__wbg_uniform1f_21390b04609a9fa5 = function(arg0, arg1, arg2) {
1666
+ arg0.uniform1f(arg1, arg2);
1667
+ };
1668
+ imports.wbg.__wbg_uniform1f_dc009a0e7f7e5977 = function(arg0, arg1, arg2) {
1669
+ arg0.uniform1f(arg1, arg2);
1670
+ };
1671
+ imports.wbg.__wbg_uniform1i_5ddd9d8ccbd390bb = function(arg0, arg1, arg2) {
1672
+ arg0.uniform1i(arg1, arg2);
1673
+ };
1674
+ imports.wbg.__wbg_uniform1i_ed95b6129dce4d84 = function(arg0, arg1, arg2) {
1675
+ arg0.uniform1i(arg1, arg2);
1676
+ };
1677
+ imports.wbg.__wbg_uniform1ui_66e092b67a21c84d = function(arg0, arg1, arg2) {
1678
+ arg0.uniform1ui(arg1, arg2 >>> 0);
1679
+ };
1680
+ imports.wbg.__wbg_uniform2fv_656fce9525420996 = function(arg0, arg1, arg2, arg3) {
1681
+ arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1682
+ };
1683
+ imports.wbg.__wbg_uniform2fv_d8bd2a36da7ce440 = function(arg0, arg1, arg2, arg3) {
1684
+ arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1685
+ };
1686
+ imports.wbg.__wbg_uniform2iv_4d39fc5a26f03f55 = function(arg0, arg1, arg2, arg3) {
1687
+ arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1688
+ };
1689
+ imports.wbg.__wbg_uniform2iv_e967139a28017a99 = function(arg0, arg1, arg2, arg3) {
1690
+ arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1691
+ };
1692
+ imports.wbg.__wbg_uniform2uiv_4c340c9e8477bb07 = function(arg0, arg1, arg2, arg3) {
1693
+ arg0.uniform2uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
1694
+ };
1695
+ imports.wbg.__wbg_uniform3fv_7d828b7c4c91138e = function(arg0, arg1, arg2, arg3) {
1696
+ arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1697
+ };
1698
+ imports.wbg.__wbg_uniform3fv_8153c834ce667125 = function(arg0, arg1, arg2, arg3) {
1699
+ arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1700
+ };
1701
+ imports.wbg.__wbg_uniform3iv_58662d914661aa10 = function(arg0, arg1, arg2, arg3) {
1702
+ arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1703
+ };
1704
+ imports.wbg.__wbg_uniform3iv_f30d27ec224b4b24 = function(arg0, arg1, arg2, arg3) {
1705
+ arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1706
+ };
1707
+ imports.wbg.__wbg_uniform3uiv_38673b825dc755f6 = function(arg0, arg1, arg2, arg3) {
1708
+ arg0.uniform3uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
1709
+ };
1710
+ imports.wbg.__wbg_uniform4f_36b8f9be15064aa7 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
1711
+ arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
1712
+ };
1713
+ imports.wbg.__wbg_uniform4f_f7ea07febf8b5108 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
1714
+ arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
1715
+ };
1716
+ imports.wbg.__wbg_uniform4fv_8827081a7585145b = function(arg0, arg1, arg2, arg3) {
1717
+ arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1718
+ };
1719
+ imports.wbg.__wbg_uniform4fv_c01fbc6c022abac3 = function(arg0, arg1, arg2, arg3) {
1720
+ arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1721
+ };
1722
+ imports.wbg.__wbg_uniform4iv_7fe05be291899f06 = function(arg0, arg1, arg2, arg3) {
1723
+ arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1724
+ };
1725
+ imports.wbg.__wbg_uniform4iv_84fdf80745e7ff26 = function(arg0, arg1, arg2, arg3) {
1726
+ arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1727
+ };
1728
+ imports.wbg.__wbg_uniform4uiv_9de55998fbfef236 = function(arg0, arg1, arg2, arg3) {
1729
+ arg0.uniform4uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
1730
+ };
1731
+ imports.wbg.__wbg_uniformBlockBinding_18117f4bda07115b = function(arg0, arg1, arg2, arg3) {
1732
+ arg0.uniformBlockBinding(arg1, arg2 >>> 0, arg3 >>> 0);
1733
+ };
1734
+ imports.wbg.__wbg_uniformMatrix2fv_98681e400347369c = function(arg0, arg1, arg2, arg3, arg4) {
1735
+ arg0.uniformMatrix2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1736
+ };
1737
+ imports.wbg.__wbg_uniformMatrix2fv_bc019eb4784a3b8c = function(arg0, arg1, arg2, arg3, arg4) {
1738
+ arg0.uniformMatrix2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1739
+ };
1740
+ imports.wbg.__wbg_uniformMatrix2x3fv_6421f8d6f7f4d144 = function(arg0, arg1, arg2, arg3, arg4) {
1741
+ arg0.uniformMatrix2x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1742
+ };
1743
+ imports.wbg.__wbg_uniformMatrix2x4fv_27d807767d7aadc6 = function(arg0, arg1, arg2, arg3, arg4) {
1744
+ arg0.uniformMatrix2x4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1745
+ };
1746
+ imports.wbg.__wbg_uniformMatrix3fv_3d6ad3a1e0b0b5b6 = function(arg0, arg1, arg2, arg3, arg4) {
1747
+ arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1748
+ };
1749
+ imports.wbg.__wbg_uniformMatrix3fv_3df529aab93cf902 = function(arg0, arg1, arg2, arg3, arg4) {
1750
+ arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1751
+ };
1752
+ imports.wbg.__wbg_uniformMatrix3x2fv_79357317e9637d05 = function(arg0, arg1, arg2, arg3, arg4) {
1753
+ arg0.uniformMatrix3x2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1754
+ };
1755
+ imports.wbg.__wbg_uniformMatrix3x4fv_9d1a88b5abfbd64b = function(arg0, arg1, arg2, arg3, arg4) {
1756
+ arg0.uniformMatrix3x4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1757
+ };
1758
+ imports.wbg.__wbg_uniformMatrix4fv_da94083874f202ad = function(arg0, arg1, arg2, arg3, arg4) {
1759
+ arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1760
+ };
1761
+ imports.wbg.__wbg_uniformMatrix4fv_e87383507ae75670 = function(arg0, arg1, arg2, arg3, arg4) {
1762
+ arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1763
+ };
1764
+ imports.wbg.__wbg_uniformMatrix4x2fv_aa507d918a0b5a62 = function(arg0, arg1, arg2, arg3, arg4) {
1765
+ arg0.uniformMatrix4x2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1766
+ };
1767
+ imports.wbg.__wbg_uniformMatrix4x3fv_6712c7a3b4276fb4 = function(arg0, arg1, arg2, arg3, arg4) {
1768
+ arg0.uniformMatrix4x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1769
+ };
1770
+ imports.wbg.__wbg_useProgram_473bf913989b6089 = function(arg0, arg1) {
1771
+ arg0.useProgram(arg1);
1772
+ };
1773
+ imports.wbg.__wbg_useProgram_9b2660f7bb210471 = function(arg0, arg1) {
1774
+ arg0.useProgram(arg1);
1775
+ };
1776
+ imports.wbg.__wbg_valueOf_39a18758c25e8b95 = function(arg0) {
1777
+ const ret = arg0.valueOf();
1778
+ return ret;
1779
+ };
1780
+ imports.wbg.__wbg_vertexAttribDivisorANGLE_11e909d332960413 = function(arg0, arg1, arg2) {
1781
+ arg0.vertexAttribDivisorANGLE(arg1 >>> 0, arg2 >>> 0);
1782
+ };
1783
+ imports.wbg.__wbg_vertexAttribDivisor_4d361d77ffb6d3ff = function(arg0, arg1, arg2) {
1784
+ arg0.vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0);
1785
+ };
1786
+ imports.wbg.__wbg_vertexAttribIPointer_d0c67543348c90ce = function(arg0, arg1, arg2, arg3, arg4, arg5) {
1787
+ arg0.vertexAttribIPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1788
+ };
1789
+ imports.wbg.__wbg_vertexAttribPointer_550dc34903e3d1ea = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1790
+ arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
1791
+ };
1792
+ imports.wbg.__wbg_vertexAttribPointer_7a2a506cdbe3aebc = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1793
+ arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
1794
+ };
1795
+ imports.wbg.__wbg_viewport_a1b4d71297ba89af = function(arg0, arg1, arg2, arg3, arg4) {
1796
+ arg0.viewport(arg1, arg2, arg3, arg4);
1797
+ };
1798
+ imports.wbg.__wbg_viewport_e615e98f676f2d39 = function(arg0, arg1, arg2, arg3, arg4) {
1799
+ arg0.viewport(arg1, arg2, arg3, arg4);
1800
+ };
1801
+ imports.wbg.__wbg_width_5dde457d606ba683 = function(arg0) {
1802
+ const ret = arg0.width;
1803
+ return ret;
1804
+ };
1805
+ imports.wbg.__wbg_width_8fe4e8f77479c2a6 = function(arg0) {
1806
+ const ret = arg0.width;
1807
+ return ret;
1808
+ };
1809
+ imports.wbg.__wbindgen_boolean_get = function(arg0) {
1810
+ const v = arg0;
1811
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1812
+ return ret;
1813
+ };
1814
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
1815
+ const obj = arg0.original;
1816
+ if (obj.cnt-- == 1) {
1817
+ obj.a = 0;
1818
+ return true;
1819
+ }
1820
+ const ret = false;
1821
+ return ret;
1822
+ };
1823
+ imports.wbg.__wbindgen_closure_wrapper3986 = function(arg0, arg1, arg2) {
1824
+ const ret = makeMutClosure(arg0, arg1, 786, __wbg_adapter_37);
1825
+ return ret;
1826
+ };
1827
+ imports.wbg.__wbindgen_closure_wrapper795 = function(arg0, arg1, arg2) {
1828
+ const ret = makeMutClosure(arg0, arg1, 110, __wbg_adapter_34);
1829
+ return ret;
1830
+ };
1831
+ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
1832
+ const ret = debugString(arg1);
1833
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1834
+ const len1 = WASM_VECTOR_LEN;
1835
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1836
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1837
+ };
1838
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
1839
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1840
+ return ret;
1841
+ };
1842
+ imports.wbg.__wbindgen_init_externref_table = function() {
1843
+ const table = wasm.__wbindgen_export_2;
1844
+ const offset = table.grow(4);
1845
+ table.set(0, undefined);
1846
+ table.set(offset + 0, undefined);
1847
+ table.set(offset + 1, null);
1848
+ table.set(offset + 2, true);
1849
+ table.set(offset + 3, false);
1850
+ ;
1851
+ };
1852
+ imports.wbg.__wbindgen_is_function = function(arg0) {
1853
+ const ret = typeof(arg0) === 'function';
1854
+ return ret;
1855
+ };
1856
+ imports.wbg.__wbindgen_is_null = function(arg0) {
1857
+ const ret = arg0 === null;
1858
+ return ret;
1859
+ };
1860
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
1861
+ const ret = arg0 === undefined;
1862
+ return ret;
1863
+ };
1864
+ imports.wbg.__wbindgen_memory = function() {
1865
+ const ret = wasm.memory;
1866
+ return ret;
1867
+ };
1868
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
1869
+ const obj = arg1;
1870
+ const ret = typeof(obj) === 'number' ? obj : undefined;
1871
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1872
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1873
+ };
1874
+ imports.wbg.__wbindgen_number_new = function(arg0) {
1875
+ const ret = arg0;
1876
+ return ret;
1877
+ };
1878
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
1879
+ const obj = arg1;
1880
+ const ret = typeof(obj) === 'string' ? obj : undefined;
1881
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1882
+ var len1 = WASM_VECTOR_LEN;
1883
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1884
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1885
+ };
1886
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
1887
+ const ret = getStringFromWasm0(arg0, arg1);
1888
+ return ret;
1889
+ };
1890
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
1891
+ throw new Error(getStringFromWasm0(arg0, arg1));
1892
+ };
1893
+
1894
+ return imports;
1895
+ }
1896
+
1897
+ function __wbg_init_memory(imports, memory) {
1898
+
1899
+ }
1900
+
1901
+ function __wbg_finalize_init(instance, module) {
1902
+ wasm = instance.exports;
1903
+ __wbg_init.__wbindgen_wasm_module = module;
1904
+ cachedDataViewMemory0 = null;
1905
+ cachedFloat32ArrayMemory0 = null;
1906
+ cachedInt32ArrayMemory0 = null;
1907
+ cachedUint32ArrayMemory0 = null;
1908
+ cachedUint8ArrayMemory0 = null;
1909
+
1910
+
1911
+ wasm.__wbindgen_start();
1912
+ return wasm;
1913
+ }
1914
+
1915
+ function initSync(module) {
1916
+ if (wasm !== undefined) return wasm;
1917
+
1918
+
1919
+ if (typeof module !== 'undefined') {
1920
+ if (Object.getPrototypeOf(module) === Object.prototype) {
1921
+ ({module} = module)
1922
+ } else {
1923
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
1924
+ }
1925
+ }
1926
+
1927
+ const imports = __wbg_get_imports();
1928
+
1929
+ __wbg_init_memory(imports);
1930
+
1931
+ if (!(module instanceof WebAssembly.Module)) {
1932
+ module = new WebAssembly.Module(module);
1933
+ }
1934
+
1935
+ const instance = new WebAssembly.Instance(module, imports);
1936
+
1937
+ return __wbg_finalize_init(instance, module);
1938
+ }
1939
+
1940
+ async function __wbg_init(module_or_path) {
1941
+ if (wasm !== undefined) return wasm;
1942
+
1943
+
1944
+ if (typeof module_or_path !== 'undefined') {
1945
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
1946
+ ({module_or_path} = module_or_path)
1947
+ } else {
1948
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
1949
+ }
1950
+ }
1951
+
1952
+ if (typeof module_or_path === 'undefined') {
1953
+ module_or_path = new URL('fragmentcolor_bg.wasm', import.meta.url);
1954
+ }
1955
+ const imports = __wbg_get_imports();
1956
+
1957
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
1958
+ module_or_path = fetch(module_or_path);
1959
+ }
1960
+
1961
+ __wbg_init_memory(imports);
1962
+
1963
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
1964
+
1965
+ return __wbg_finalize_init(instance, module);
1966
+ }
1967
+
1968
+ export { initSync };
1969
+ export default __wbg_init;