runmat 0.5.4-dev.3 → 0.5.4-dev.5

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.
@@ -1,221 +1,5 @@
1
- let wasm;
1
+ /* @ts-self-types="./runmat_lsp.d.ts" */
2
2
 
3
- let WASM_VECTOR_LEN = 0;
4
-
5
- let cachedUint8ArrayMemory0 = null;
6
-
7
- function getUint8ArrayMemory0() {
8
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
9
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
10
- }
11
- return cachedUint8ArrayMemory0;
12
- }
13
-
14
- const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
15
-
16
- const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
17
- ? function (arg, view) {
18
- return cachedTextEncoder.encodeInto(arg, view);
19
- }
20
- : function (arg, view) {
21
- const buf = cachedTextEncoder.encode(arg);
22
- view.set(buf);
23
- return {
24
- read: arg.length,
25
- written: buf.length
26
- };
27
- });
28
-
29
- function passStringToWasm0(arg, malloc, realloc) {
30
-
31
- if (realloc === undefined) {
32
- const buf = cachedTextEncoder.encode(arg);
33
- const ptr = malloc(buf.length, 1) >>> 0;
34
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
35
- WASM_VECTOR_LEN = buf.length;
36
- return ptr;
37
- }
38
-
39
- let len = arg.length;
40
- let ptr = malloc(len, 1) >>> 0;
41
-
42
- const mem = getUint8ArrayMemory0();
43
-
44
- let offset = 0;
45
-
46
- for (; offset < len; offset++) {
47
- const code = arg.charCodeAt(offset);
48
- if (code > 0x7F) break;
49
- mem[ptr + offset] = code;
50
- }
51
-
52
- if (offset !== len) {
53
- if (offset !== 0) {
54
- arg = arg.slice(offset);
55
- }
56
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
57
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
58
- const ret = encodeString(arg, view);
59
-
60
- offset += ret.written;
61
- ptr = realloc(ptr, len, offset, 1) >>> 0;
62
- }
63
-
64
- WASM_VECTOR_LEN = offset;
65
- return ptr;
66
- }
67
-
68
- let cachedDataViewMemory0 = null;
69
-
70
- function getDataViewMemory0() {
71
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
72
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
73
- }
74
- return cachedDataViewMemory0;
75
- }
76
-
77
- function addToExternrefTable0(obj) {
78
- const idx = wasm.__externref_table_alloc();
79
- wasm.__wbindgen_export_4.set(idx, obj);
80
- return idx;
81
- }
82
-
83
- function handleError(f, args) {
84
- try {
85
- return f.apply(this, args);
86
- } catch (e) {
87
- const idx = addToExternrefTable0(e);
88
- wasm.__wbindgen_exn_store(idx);
89
- }
90
- }
91
-
92
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
93
-
94
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
95
-
96
- function getStringFromWasm0(ptr, len) {
97
- ptr = ptr >>> 0;
98
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
99
- }
100
-
101
- function getArrayU8FromWasm0(ptr, len) {
102
- ptr = ptr >>> 0;
103
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
104
- }
105
-
106
- let cachedUint32ArrayMemory0 = null;
107
-
108
- function getUint32ArrayMemory0() {
109
- if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
110
- cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
111
- }
112
- return cachedUint32ArrayMemory0;
113
- }
114
-
115
- function getArrayU32FromWasm0(ptr, len) {
116
- ptr = ptr >>> 0;
117
- return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
118
- }
119
-
120
- function isLikeNone(x) {
121
- return x === undefined || x === null;
122
- }
123
-
124
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
125
- ? { register: () => {}, unregister: () => {} }
126
- : new FinalizationRegistry(state => {
127
- wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b)
128
- });
129
-
130
- function makeMutClosure(arg0, arg1, dtor, f) {
131
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
132
- const real = (...args) => {
133
- // First up with a closure we increment the internal reference
134
- // count. This ensures that the Rust closure environment won't
135
- // be deallocated while we're invoking it.
136
- state.cnt++;
137
- const a = state.a;
138
- state.a = 0;
139
- try {
140
- return f(a, state.b, ...args);
141
- } finally {
142
- if (--state.cnt === 0) {
143
- wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
144
- CLOSURE_DTORS.unregister(state);
145
- } else {
146
- state.a = a;
147
- }
148
- }
149
- };
150
- real.original = state;
151
- CLOSURE_DTORS.register(real, state, state);
152
- return real;
153
- }
154
-
155
- function debugString(val) {
156
- // primitive types
157
- const type = typeof val;
158
- if (type == 'number' || type == 'boolean' || val == null) {
159
- return `${val}`;
160
- }
161
- if (type == 'string') {
162
- return `"${val}"`;
163
- }
164
- if (type == 'symbol') {
165
- const description = val.description;
166
- if (description == null) {
167
- return 'Symbol';
168
- } else {
169
- return `Symbol(${description})`;
170
- }
171
- }
172
- if (type == 'function') {
173
- const name = val.name;
174
- if (typeof name == 'string' && name.length > 0) {
175
- return `Function(${name})`;
176
- } else {
177
- return 'Function';
178
- }
179
- }
180
- // objects
181
- if (Array.isArray(val)) {
182
- const length = val.length;
183
- let debug = '[';
184
- if (length > 0) {
185
- debug += debugString(val[0]);
186
- }
187
- for(let i = 1; i < length; i++) {
188
- debug += ', ' + debugString(val[i]);
189
- }
190
- debug += ']';
191
- return debug;
192
- }
193
- // Test for built-in
194
- const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
195
- let className;
196
- if (builtInMatches && builtInMatches.length > 1) {
197
- className = builtInMatches[1];
198
- } else {
199
- // Failed to match the standard '[object ClassName]'
200
- return toString.call(val);
201
- }
202
- if (className == 'Object') {
203
- // we're a user defined class or Object
204
- // JSON.stringify avoids problems with cycles, and is generally much
205
- // easier than looping through ownProperties of `val`.
206
- try {
207
- return 'Object(' + JSON.stringify(val) + ')';
208
- } catch (_) {
209
- return 'Object';
210
- }
211
- }
212
- // errors
213
- if (val instanceof Error) {
214
- return `${val.name}: ${val.message}\n${val.stack}`;
215
- }
216
- // TODO we could test for more things here, like `Set`s and `Map`s.
217
- return className;
218
- }
219
3
  /**
220
4
  * @returns {any}
221
5
  */
@@ -224,20 +8,6 @@ export function builtin_inventory_counts() {
224
8
  return ret;
225
9
  }
226
10
 
227
- /**
228
- * @param {string} uri
229
- * @param {string} text
230
- * @returns {Promise<void>}
231
- */
232
- export function open_document(uri, text) {
233
- const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
234
- const len0 = WASM_VECTOR_LEN;
235
- const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
236
- const len1 = WASM_VECTOR_LEN;
237
- const ret = wasm.open_document(ptr0, len0, ptr1, len1);
238
- return ret;
239
- }
240
-
241
11
  /**
242
12
  * @param {string} uri
243
13
  * @param {string} text
@@ -261,11 +31,6 @@ export function close_document(uri) {
261
31
  wasm.close_document(ptr0, len0);
262
32
  }
263
33
 
264
- function takeFromExternrefTable0(idx) {
265
- const value = wasm.__wbindgen_export_4.get(idx);
266
- wasm.__externref_table_dealloc(idx);
267
- return value;
268
- }
269
34
  /**
270
35
  * @param {string} _uri
271
36
  * @param {number} _line
@@ -282,22 +47,6 @@ export function completion(_uri, _line, _character) {
282
47
  return takeFromExternrefTable0(ret[0]);
283
48
  }
284
49
 
285
- /**
286
- * @param {string} _uri
287
- * @param {number} _line
288
- * @param {number} _character
289
- * @returns {any}
290
- */
291
- export function hover(_uri, _line, _character) {
292
- const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
293
- const len0 = WASM_VECTOR_LEN;
294
- const ret = wasm.hover(ptr0, len0, _line, _character);
295
- if (ret[2]) {
296
- throw takeFromExternrefTable0(ret[1]);
297
- }
298
- return takeFromExternrefTable0(ret[0]);
299
- }
300
-
301
50
  /**
302
51
  * @param {string} _uri
303
52
  * @param {number} _line
@@ -313,27 +62,26 @@ export function definition(_uri, _line, _character) {
313
62
 
314
63
  /**
315
64
  * @param {string} _uri
316
- * @param {number} _line
317
- * @param {number} _character
318
- * @returns {Promise<any>}
65
+ * @returns {any}
319
66
  */
320
- export function references(_uri, _line, _character) {
67
+ export function diagnostics(_uri) {
321
68
  const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
322
69
  const len0 = WASM_VECTOR_LEN;
323
- const ret = wasm.references(ptr0, len0, _line, _character);
324
- return ret;
70
+ const ret = wasm.diagnostics(ptr0, len0);
71
+ if (ret[2]) {
72
+ throw takeFromExternrefTable0(ret[1]);
73
+ }
74
+ return takeFromExternrefTable0(ret[0]);
325
75
  }
326
76
 
327
77
  /**
328
78
  * @param {string} _uri
329
- * @param {number} _line
330
- * @param {number} _character
331
79
  * @returns {any}
332
80
  */
333
- export function signature_help(_uri, _line, _character) {
81
+ export function document_symbols(_uri) {
334
82
  const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
335
83
  const len0 = WASM_VECTOR_LEN;
336
- const ret = wasm.signature_help(ptr0, len0, _line, _character);
84
+ const ret = wasm.document_symbols(ptr0, len0);
337
85
  if (ret[2]) {
338
86
  throw takeFromExternrefTable0(ret[1]);
339
87
  }
@@ -344,10 +92,10 @@ export function signature_help(_uri, _line, _character) {
344
92
  * @param {string} _uri
345
93
  * @returns {any}
346
94
  */
347
- export function semantic_tokens(_uri) {
95
+ export function formatting(_uri) {
348
96
  const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
349
97
  const len0 = WASM_VECTOR_LEN;
350
- const ret = wasm.semantic_tokens(ptr0, len0);
98
+ const ret = wasm.formatting(ptr0, len0);
351
99
  if (ret[2]) {
352
100
  throw takeFromExternrefTable0(ret[1]);
353
101
  }
@@ -356,12 +104,14 @@ export function semantic_tokens(_uri) {
356
104
 
357
105
  /**
358
106
  * @param {string} _uri
107
+ * @param {number} _line
108
+ * @param {number} _character
359
109
  * @returns {any}
360
110
  */
361
- export function document_symbols(_uri) {
111
+ export function hover(_uri, _line, _character) {
362
112
  const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
363
113
  const len0 = WASM_VECTOR_LEN;
364
- const ret = wasm.document_symbols(ptr0, len0);
114
+ const ret = wasm.hover(ptr0, len0, _line, _character);
365
115
  if (ret[2]) {
366
116
  throw takeFromExternrefTable0(ret[1]);
367
117
  }
@@ -369,35 +119,40 @@ export function document_symbols(_uri) {
369
119
  }
370
120
 
371
121
  /**
372
- * @returns {Promise<any>}
373
- */
374
- export function workspace_symbols_all() {
375
- const ret = wasm.workspace_symbols_all();
122
+ * @param {string} uri
123
+ * @param {string} text
124
+ * @returns {Promise<void>}
125
+ */
126
+ export function open_document(uri, text) {
127
+ const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
128
+ const len0 = WASM_VECTOR_LEN;
129
+ const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
130
+ const len1 = WASM_VECTOR_LEN;
131
+ const ret = wasm.open_document(ptr0, len0, ptr1, len1);
376
132
  return ret;
377
133
  }
378
134
 
379
135
  /**
380
136
  * @param {string} _uri
381
- * @returns {any}
137
+ * @param {number} _line
138
+ * @param {number} _character
139
+ * @returns {Promise<any>}
382
140
  */
383
- export function formatting(_uri) {
141
+ export function references(_uri, _line, _character) {
384
142
  const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
385
143
  const len0 = WASM_VECTOR_LEN;
386
- const ret = wasm.formatting(ptr0, len0);
387
- if (ret[2]) {
388
- throw takeFromExternrefTable0(ret[1]);
389
- }
390
- return takeFromExternrefTable0(ret[0]);
144
+ const ret = wasm.references(ptr0, len0, _line, _character);
145
+ return ret;
391
146
  }
392
147
 
393
148
  /**
394
149
  * @param {string} _uri
395
150
  * @returns {any}
396
151
  */
397
- export function diagnostics(_uri) {
152
+ export function semantic_tokens(_uri) {
398
153
  const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
399
154
  const len0 = WASM_VECTOR_LEN;
400
- const ret = wasm.diagnostics(ptr0, len0);
155
+ const ret = wasm.semantic_tokens(ptr0, len0);
401
156
  if (ret[2]) {
402
157
  throw takeFromExternrefTable0(ret[1]);
403
158
  }
@@ -413,1179 +168,1518 @@ export function setCompatMode(mode) {
413
168
  wasm.setCompatMode(ptr0, len0);
414
169
  }
415
170
 
416
- function __wbg_adapter_34(arg0, arg1, arg2) {
417
- wasm.closure5114_externref_shim(arg0, arg1, arg2);
171
+ /**
172
+ * @param {string} _uri
173
+ * @param {number} _line
174
+ * @param {number} _character
175
+ * @returns {any}
176
+ */
177
+ export function signature_help(_uri, _line, _character) {
178
+ const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
179
+ const len0 = WASM_VECTOR_LEN;
180
+ const ret = wasm.signature_help(ptr0, len0, _line, _character);
181
+ if (ret[2]) {
182
+ throw takeFromExternrefTable0(ret[1]);
183
+ }
184
+ return takeFromExternrefTable0(ret[0]);
185
+ }
186
+
187
+ /**
188
+ * @returns {Promise<any>}
189
+ */
190
+ export function workspace_symbols_all() {
191
+ const ret = wasm.workspace_symbols_all();
192
+ return ret;
193
+ }
194
+ function __wbg_get_imports() {
195
+ const import0 = {
196
+ __proto__: null,
197
+ __wbg_Error_fdd633d4bb5dd76a: function(arg0, arg1) {
198
+ const ret = Error(getStringFromWasm0(arg0, arg1));
199
+ return ret;
200
+ },
201
+ __wbg_String_8564e559799eccda: function(arg0, arg1) {
202
+ const ret = String(arg1);
203
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
204
+ const len1 = WASM_VECTOR_LEN;
205
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
206
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
207
+ },
208
+ __wbg_Window_412fe051c1aa1519: function(arg0) {
209
+ const ret = arg0.Window;
210
+ return ret;
211
+ },
212
+ __wbg_WorkerGlobalScope_349300f9b277afe1: function(arg0) {
213
+ const ret = arg0.WorkerGlobalScope;
214
+ return ret;
215
+ },
216
+ __wbg___runmatOcctImportCad_1b65bd3a009171cf: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
217
+ const ret = __runmatOcctImportCad(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getArrayU8FromWasm0(arg5, arg6), arg7, arg8, arg9);
218
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
219
+ const len1 = WASM_VECTOR_LEN;
220
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
221
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
222
+ }, arguments); },
223
+ __wbg___wbindgen_debug_string_8a447059637473e2: function(arg0, arg1) {
224
+ const ret = debugString(arg1);
225
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
226
+ const len1 = WASM_VECTOR_LEN;
227
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
228
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
229
+ },
230
+ __wbg___wbindgen_is_function_acc5528be2b923f2: function(arg0) {
231
+ const ret = typeof(arg0) === 'function';
232
+ return ret;
233
+ },
234
+ __wbg___wbindgen_is_null_6d937fbfb6478470: function(arg0) {
235
+ const ret = arg0 === null;
236
+ return ret;
237
+ },
238
+ __wbg___wbindgen_is_string_1fca8072260dd261: function(arg0) {
239
+ const ret = typeof(arg0) === 'string';
240
+ return ret;
241
+ },
242
+ __wbg___wbindgen_is_undefined_721f8decd50c87a3: function(arg0) {
243
+ const ret = arg0 === undefined;
244
+ return ret;
245
+ },
246
+ __wbg___wbindgen_string_get_71bb4348194e31f0: function(arg0, arg1) {
247
+ const obj = arg1;
248
+ const ret = typeof(obj) === 'string' ? obj : undefined;
249
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
250
+ var len1 = WASM_VECTOR_LEN;
251
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
252
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
253
+ },
254
+ __wbg___wbindgen_throw_ea4887a5f8f9a9db: function(arg0, arg1) {
255
+ throw new Error(getStringFromWasm0(arg0, arg1));
256
+ },
257
+ __wbg__wbg_cb_unref_33c39e13d73b25f6: function(arg0) {
258
+ arg0._wbg_cb_unref();
259
+ },
260
+ __wbg_beginComputePass_097033d61ef8af0f: function(arg0, arg1) {
261
+ const ret = arg0.beginComputePass(arg1);
262
+ return ret;
263
+ },
264
+ __wbg_beginRenderPass_34a015f8265125ac: function() { return handleError(function (arg0, arg1) {
265
+ const ret = arg0.beginRenderPass(arg1);
266
+ return ret;
267
+ }, arguments); },
268
+ __wbg_buffer_9e4d98d0766fb908: function(arg0) {
269
+ const ret = arg0.buffer;
270
+ return ret;
271
+ },
272
+ __wbg_call_0e855b388e315e17: function() { return handleError(function (arg0, arg1, arg2, arg3) {
273
+ const ret = arg0.call(arg1, arg2, arg3);
274
+ return ret;
275
+ }, arguments); },
276
+ __wbg_call_5575218572ead796: function() { return handleError(function (arg0, arg1, arg2) {
277
+ const ret = arg0.call(arg1, arg2);
278
+ return ret;
279
+ }, arguments); },
280
+ __wbg_configure_ce7dc0ea629bbc55: function() { return handleError(function (arg0, arg1) {
281
+ arg0.configure(arg1);
282
+ }, arguments); },
283
+ __wbg_copyTextureToBuffer_516f65baac22e0db: function() { return handleError(function (arg0, arg1, arg2, arg3) {
284
+ arg0.copyTextureToBuffer(arg1, arg2, arg3);
285
+ }, arguments); },
286
+ __wbg_createBindGroupLayout_1d37ac0dabfbed28: function() { return handleError(function (arg0, arg1) {
287
+ const ret = arg0.createBindGroupLayout(arg1);
288
+ return ret;
289
+ }, arguments); },
290
+ __wbg_createBindGroup_3bccbd7517f0708e: function(arg0, arg1) {
291
+ const ret = arg0.createBindGroup(arg1);
292
+ return ret;
293
+ },
294
+ __wbg_createBuffer_24b346170c9f54c8: function() { return handleError(function (arg0, arg1) {
295
+ const ret = arg0.createBuffer(arg1);
296
+ return ret;
297
+ }, arguments); },
298
+ __wbg_createCommandEncoder_48a406baaa084912: function(arg0, arg1) {
299
+ const ret = arg0.createCommandEncoder(arg1);
300
+ return ret;
301
+ },
302
+ __wbg_createComputePipeline_4efb4ca205a4b557: function(arg0, arg1) {
303
+ const ret = arg0.createComputePipeline(arg1);
304
+ return ret;
305
+ },
306
+ __wbg_createPipelineLayout_f668b6fbdf877ab3: function(arg0, arg1) {
307
+ const ret = arg0.createPipelineLayout(arg1);
308
+ return ret;
309
+ },
310
+ __wbg_createRenderPipeline_def9fb5cd54c36d5: function() { return handleError(function (arg0, arg1) {
311
+ const ret = arg0.createRenderPipeline(arg1);
312
+ return ret;
313
+ }, arguments); },
314
+ __wbg_createSampler_62cca6d739eaa62a: function(arg0, arg1) {
315
+ const ret = arg0.createSampler(arg1);
316
+ return ret;
317
+ },
318
+ __wbg_createShaderModule_1b0812f3a4503221: function(arg0, arg1) {
319
+ const ret = arg0.createShaderModule(arg1);
320
+ return ret;
321
+ },
322
+ __wbg_createTexture_77337549db437b45: function() { return handleError(function (arg0, arg1) {
323
+ const ret = arg0.createTexture(arg1);
324
+ return ret;
325
+ }, arguments); },
326
+ __wbg_createView_13bc5cdadcefa9ec: function() { return handleError(function (arg0, arg1) {
327
+ const ret = arg0.createView(arg1);
328
+ return ret;
329
+ }, arguments); },
330
+ __wbg_dispatchWorkgroups_1b750cb68e2eb693: function(arg0, arg1, arg2, arg3) {
331
+ arg0.dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
332
+ },
333
+ __wbg_drawIndexed_fd47a285c65bc454: function(arg0, arg1, arg2, arg3, arg4, arg5) {
334
+ arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
335
+ },
336
+ __wbg_drawIndirect_ffbff8b93bf03cf9: function(arg0, arg1, arg2) {
337
+ arg0.drawIndirect(arg1, arg2);
338
+ },
339
+ __wbg_draw_754f5b2022d90fd7: function(arg0, arg1, arg2, arg3, arg4) {
340
+ arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
341
+ },
342
+ __wbg_end_1300dc816a60c7ab: function(arg0) {
343
+ arg0.end();
344
+ },
345
+ __wbg_end_fd65a01a19361ec7: function(arg0) {
346
+ arg0.end();
347
+ },
348
+ __wbg_finish_2440fb64e53f7d5a: function(arg0, arg1) {
349
+ const ret = arg0.finish(arg1);
350
+ return ret;
351
+ },
352
+ __wbg_finish_4b40810f0b577bc2: function(arg0) {
353
+ const ret = arg0.finish();
354
+ return ret;
355
+ },
356
+ __wbg_getAllResponseHeaders_0a0fbf6753421ca2: function() { return handleError(function (arg0, arg1) {
357
+ const ret = arg1.getAllResponseHeaders();
358
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
359
+ const len1 = WASM_VECTOR_LEN;
360
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
361
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
362
+ }, arguments); },
363
+ __wbg_getBoundingClientRect_bf4a017da5494fc9: function(arg0) {
364
+ const ret = arg0.getBoundingClientRect();
365
+ return ret;
366
+ },
367
+ __wbg_getCurrentTexture_3ac9a0eb8d7eccf7: function() { return handleError(function (arg0) {
368
+ const ret = arg0.getCurrentTexture();
369
+ return ret;
370
+ }, arguments); },
371
+ __wbg_getMappedRange_55878eb97535ca19: function() { return handleError(function (arg0, arg1, arg2) {
372
+ const ret = arg0.getMappedRange(arg1, arg2);
373
+ return ret;
374
+ }, arguments); },
375
+ __wbg_getTime_7a770f8a2ec8d634: function(arg0) {
376
+ const ret = arg0.getTime();
377
+ return ret;
378
+ },
379
+ __wbg_getTimezoneOffset_d6fba5332f80c3da: function(arg0) {
380
+ const ret = arg0.getTimezoneOffset();
381
+ return ret;
382
+ },
383
+ __wbg_get_dddb90ff5d27a080: function() { return handleError(function (arg0, arg1) {
384
+ const ret = Reflect.get(arg0, arg1);
385
+ return ret;
386
+ }, arguments); },
387
+ __wbg_gpu_bafbc1407fe850fb: function(arg0) {
388
+ const ret = arg0.gpu;
389
+ return ret;
390
+ },
391
+ __wbg_height_8fb50acea2970780: function(arg0) {
392
+ const ret = arg0.height;
393
+ return ret;
394
+ },
395
+ __wbg_height_a04613570d793df2: function(arg0) {
396
+ const ret = arg0.height;
397
+ return ret;
398
+ },
399
+ __wbg_height_cd732bbdc7b66e49: function(arg0) {
400
+ const ret = arg0.height;
401
+ return ret;
402
+ },
403
+ __wbg_instanceof_ArrayBuffer_2a7bb09fee70c2da: function(arg0) {
404
+ let result;
405
+ try {
406
+ result = arg0 instanceof ArrayBuffer;
407
+ } catch (_) {
408
+ result = false;
409
+ }
410
+ const ret = result;
411
+ return ret;
412
+ },
413
+ __wbg_instanceof_DomException_7e2ce66bfb012d37: function(arg0) {
414
+ let result;
415
+ try {
416
+ result = arg0 instanceof DOMException;
417
+ } catch (_) {
418
+ result = false;
419
+ }
420
+ const ret = result;
421
+ return ret;
422
+ },
423
+ __wbg_instanceof_Error_77d0cf0b4f31a32f: function(arg0) {
424
+ let result;
425
+ try {
426
+ result = arg0 instanceof Error;
427
+ } catch (_) {
428
+ result = false;
429
+ }
430
+ const ret = result;
431
+ return ret;
432
+ },
433
+ __wbg_instanceof_GpuAdapter_aff4b0f95a6c1c3e: function(arg0) {
434
+ let result;
435
+ try {
436
+ result = arg0 instanceof GPUAdapter;
437
+ } catch (_) {
438
+ result = false;
439
+ }
440
+ const ret = result;
441
+ return ret;
442
+ },
443
+ __wbg_label_4b6427d9045e3926: function(arg0, arg1) {
444
+ const ret = arg1.label;
445
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
446
+ const len1 = WASM_VECTOR_LEN;
447
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
448
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
449
+ },
450
+ __wbg_length_589238bdcf171f0e: function(arg0) {
451
+ const ret = arg0.length;
452
+ return ret;
453
+ },
454
+ __wbg_mapAsync_f7fe2e4825742580: function(arg0, arg1, arg2, arg3) {
455
+ const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
456
+ return ret;
457
+ },
458
+ __wbg_message_6fc0a1f59fcc247b: function(arg0) {
459
+ const ret = arg0.message;
460
+ return ret;
461
+ },
462
+ __wbg_message_bc855ffd1f7f1de1: function(arg0, arg1) {
463
+ const ret = arg1.message;
464
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
465
+ const len1 = WASM_VECTOR_LEN;
466
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
467
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
468
+ },
469
+ __wbg_name_42366c160e14cac7: function(arg0, arg1) {
470
+ const ret = arg1.name;
471
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
472
+ const len1 = WASM_VECTOR_LEN;
473
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
474
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
475
+ },
476
+ __wbg_navigator_017bc45e84c473cc: function(arg0) {
477
+ const ret = arg0.navigator;
478
+ return ret;
479
+ },
480
+ __wbg_navigator_935098efd1dc7fe5: function(arg0) {
481
+ const ret = arg0.navigator;
482
+ return ret;
483
+ },
484
+ __wbg_new_0_1b32bedde98fef4b: function() {
485
+ const ret = new Date();
486
+ return ret;
487
+ },
488
+ __wbg_new_2e117a478906f062: function() {
489
+ const ret = new Object();
490
+ return ret;
491
+ },
492
+ __wbg_new_3444eb7412549f0b: function() {
493
+ const ret = new Map();
494
+ return ret;
495
+ },
496
+ __wbg_new_36e147a8ced3c6e0: function() {
497
+ const ret = new Array();
498
+ return ret;
499
+ },
500
+ __wbg_new_47ab770c8bd3b6bb: function(arg0) {
501
+ const ret = new Date(arg0);
502
+ return ret;
503
+ },
504
+ __wbg_new_7fd97679961d92c7: function() { return handleError(function () {
505
+ const ret = new XMLHttpRequest();
506
+ return ret;
507
+ }, arguments); },
508
+ __wbg_new_81880fb5002cb255: function(arg0) {
509
+ const ret = new Uint8Array(arg0);
510
+ return ret;
511
+ },
512
+ __wbg_new_f85beb941dc6d8aa: function(arg0, arg1) {
513
+ try {
514
+ var state0 = {a: arg0, b: arg1};
515
+ var cb0 = (arg0, arg1) => {
516
+ const a = state0.a;
517
+ state0.a = 0;
518
+ try {
519
+ return wasm_bindgen__convert__closures_____invoke__h554464018ada0f86(a, state0.b, arg0, arg1);
520
+ } finally {
521
+ state0.a = a;
522
+ }
523
+ };
524
+ const ret = new Promise(cb0);
525
+ return ret;
526
+ } finally {
527
+ state0.a = 0;
528
+ }
529
+ },
530
+ __wbg_new_from_slice_543b875b27789a8f: function(arg0, arg1) {
531
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
532
+ return ret;
533
+ },
534
+ __wbg_new_typed_00a409eb4ec4f2d9: function(arg0, arg1) {
535
+ try {
536
+ var state0 = {a: arg0, b: arg1};
537
+ var cb0 = (arg0, arg1) => {
538
+ const a = state0.a;
539
+ state0.a = 0;
540
+ try {
541
+ return wasm_bindgen__convert__closures_____invoke__h554464018ada0f86(a, state0.b, arg0, arg1);
542
+ } finally {
543
+ state0.a = a;
544
+ }
545
+ };
546
+ const ret = new Promise(cb0);
547
+ return ret;
548
+ } finally {
549
+ state0.a = 0;
550
+ }
551
+ },
552
+ __wbg_new_with_byte_offset_and_length_f2b65504a914f37a: function(arg0, arg1, arg2) {
553
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
554
+ return ret;
555
+ },
556
+ __wbg_now_0f628e0e435c541b: function(arg0) {
557
+ const ret = arg0.now();
558
+ return ret;
559
+ },
560
+ __wbg_now_d2e0afbad4edbe82: function() {
561
+ const ret = Date.now();
562
+ return ret;
563
+ },
564
+ __wbg_open_5dab089d003529af: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
565
+ arg0.open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), arg5 !== 0);
566
+ }, arguments); },
567
+ __wbg_prototypesetcall_d721637c7ca66eb8: function(arg0, arg1, arg2) {
568
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
569
+ },
570
+ __wbg_push_f724b5db8acf89d2: function(arg0, arg1) {
571
+ const ret = arg0.push(arg1);
572
+ return ret;
573
+ },
574
+ __wbg_queueMicrotask_1c9b3800e321a967: function(arg0) {
575
+ const ret = arg0.queueMicrotask;
576
+ return ret;
577
+ },
578
+ __wbg_queueMicrotask_311744e534a929a3: function(arg0) {
579
+ queueMicrotask(arg0);
580
+ },
581
+ __wbg_queue_3e40156d83b9183e: function(arg0) {
582
+ const ret = arg0.queue;
583
+ return ret;
584
+ },
585
+ __wbg_requestAdapter_245da40985c2fdc5: function(arg0, arg1) {
586
+ const ret = arg0.requestAdapter(arg1);
587
+ return ret;
588
+ },
589
+ __wbg_requestDevice_28434913a23418c4: function(arg0, arg1) {
590
+ const ret = arg0.requestDevice(arg1);
591
+ return ret;
592
+ },
593
+ __wbg_resolve_d82363d90af6928a: function(arg0) {
594
+ const ret = Promise.resolve(arg0);
595
+ return ret;
596
+ },
597
+ __wbg_response_24cd41dd1c832981: function() { return handleError(function (arg0) {
598
+ const ret = arg0.response;
599
+ return ret;
600
+ }, arguments); },
601
+ __wbg_send_1acab26dced70e26: function() { return handleError(function (arg0, arg1, arg2) {
602
+ arg0.send(arg1 === 0 ? undefined : getArrayU8FromWasm0(arg1, arg2));
603
+ }, arguments); },
604
+ __wbg_send_f94f811f3f943ba8: function() { return handleError(function (arg0) {
605
+ arg0.send();
606
+ }, arguments); },
607
+ __wbg_setBindGroup_14e047cccfca4206: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
608
+ arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
609
+ }, arguments); },
610
+ __wbg_setBindGroup_98f0303f15c3cfb4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
611
+ arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
612
+ }, arguments); },
613
+ __wbg_setBindGroup_bc67abae8c962082: function(arg0, arg1, arg2) {
614
+ arg0.setBindGroup(arg1 >>> 0, arg2);
615
+ },
616
+ __wbg_setBindGroup_e7493a4d990b460a: function(arg0, arg1, arg2) {
617
+ arg0.setBindGroup(arg1 >>> 0, arg2);
618
+ },
619
+ __wbg_setIndexBuffer_4fb98e6d19bb7f33: function(arg0, arg1, arg2, arg3, arg4) {
620
+ arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
621
+ },
622
+ __wbg_setIndexBuffer_7fdf61bb296c38e7: function(arg0, arg1, arg2, arg3) {
623
+ arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3);
624
+ },
625
+ __wbg_setPipeline_0c34cc40ab8d6499: function(arg0, arg1) {
626
+ arg0.setPipeline(arg1);
627
+ },
628
+ __wbg_setPipeline_323a115b52180cad: function(arg0, arg1) {
629
+ arg0.setPipeline(arg1);
630
+ },
631
+ __wbg_setRequestHeader_99cb7505b4495409: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
632
+ arg0.setRequestHeader(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
633
+ }, arguments); },
634
+ __wbg_setScissorRect_91ab81001aa06f8c: function(arg0, arg1, arg2, arg3, arg4) {
635
+ arg0.setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
636
+ },
637
+ __wbg_setVertexBuffer_e32a2441b1f7bfa3: function(arg0, arg1, arg2, arg3, arg4) {
638
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
639
+ },
640
+ __wbg_setVertexBuffer_f90b4b03dde32ab1: function(arg0, arg1, arg2, arg3) {
641
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
642
+ },
643
+ __wbg_setViewport_b5382516378a0227: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
644
+ arg0.setViewport(arg1, arg2, arg3, arg4, arg5, arg6);
645
+ },
646
+ __wbg_set_272b80acaf9a75e8: function(arg0, arg1, arg2) {
647
+ arg0.set(arg1, arg2 >>> 0);
648
+ },
649
+ __wbg_set_4564f7dc44fcb0c9: function() { return handleError(function (arg0, arg1, arg2) {
650
+ const ret = Reflect.set(arg0, arg1, arg2);
651
+ return ret;
652
+ }, arguments); },
653
+ __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
654
+ arg0[arg1] = arg2;
655
+ },
656
+ __wbg_set_9a1d61e17de7054c: function(arg0, arg1, arg2) {
657
+ const ret = arg0.set(arg1, arg2);
658
+ return ret;
659
+ },
660
+ __wbg_set_a_e8353b5faed116b8: function(arg0, arg1) {
661
+ arg0.a = arg1;
662
+ },
663
+ __wbg_set_access_1cc7ab8607a9643c: function(arg0, arg1) {
664
+ arg0.access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
665
+ },
666
+ __wbg_set_address_mode_u_1d68fc63a680df34: function(arg0, arg1) {
667
+ arg0.addressModeU = __wbindgen_enum_GpuAddressMode[arg1];
668
+ },
669
+ __wbg_set_address_mode_v_ccd53f17094d3a31: function(arg0, arg1) {
670
+ arg0.addressModeV = __wbindgen_enum_GpuAddressMode[arg1];
671
+ },
672
+ __wbg_set_address_mode_w_b90bd1f395bf22f7: function(arg0, arg1) {
673
+ arg0.addressModeW = __wbindgen_enum_GpuAddressMode[arg1];
674
+ },
675
+ __wbg_set_alpha_f4d387342be7589e: function(arg0, arg1) {
676
+ arg0.alpha = arg1;
677
+ },
678
+ __wbg_set_alpha_mode_9a10ad8af4fca8f3: function(arg0, arg1) {
679
+ arg0.alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
680
+ },
681
+ __wbg_set_alpha_to_coverage_enabled_ae6d838cf7f69c3f: function(arg0, arg1) {
682
+ arg0.alphaToCoverageEnabled = arg1 !== 0;
683
+ },
684
+ __wbg_set_array_layer_count_37c76e4cca82351f: function(arg0, arg1) {
685
+ arg0.arrayLayerCount = arg1 >>> 0;
686
+ },
687
+ __wbg_set_array_stride_be930c5983868c93: function(arg0, arg1) {
688
+ arg0.arrayStride = arg1;
689
+ },
690
+ __wbg_set_aspect_c9292d2a13f954e1: function(arg0, arg1) {
691
+ arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
692
+ },
693
+ __wbg_set_attributes_c0fe49febc11550f: function(arg0, arg1) {
694
+ arg0.attributes = arg1;
695
+ },
696
+ __wbg_set_b_c127e87dfb6c67af: function(arg0, arg1) {
697
+ arg0.b = arg1;
698
+ },
699
+ __wbg_set_base_array_layer_6374493b6bc1a0a9: function(arg0, arg1) {
700
+ arg0.baseArrayLayer = arg1 >>> 0;
701
+ },
702
+ __wbg_set_base_mip_level_5a0524f10a35bff6: function(arg0, arg1) {
703
+ arg0.baseMipLevel = arg1 >>> 0;
704
+ },
705
+ __wbg_set_beginning_of_pass_write_index_aa7255a7590f9493: function(arg0, arg1) {
706
+ arg0.beginningOfPassWriteIndex = arg1 >>> 0;
707
+ },
708
+ __wbg_set_beginning_of_pass_write_index_ac45c363336c24c7: function(arg0, arg1) {
709
+ arg0.beginningOfPassWriteIndex = arg1 >>> 0;
710
+ },
711
+ __wbg_set_bind_group_layouts_b4667372bdcee99f: function(arg0, arg1) {
712
+ arg0.bindGroupLayouts = arg1;
713
+ },
714
+ __wbg_set_binding_0a48264269982c5e: function(arg0, arg1) {
715
+ arg0.binding = arg1 >>> 0;
716
+ },
717
+ __wbg_set_binding_15ab1e2c74990b25: function(arg0, arg1) {
718
+ arg0.binding = arg1 >>> 0;
719
+ },
720
+ __wbg_set_blend_16ab90d22bf8916c: function(arg0, arg1) {
721
+ arg0.blend = arg1;
722
+ },
723
+ __wbg_set_buffer_3b3e4c4a884d1610: function(arg0, arg1) {
724
+ arg0.buffer = arg1;
725
+ },
726
+ __wbg_set_buffer_5c9fd98c06ff0965: function(arg0, arg1) {
727
+ arg0.buffer = arg1;
728
+ },
729
+ __wbg_set_buffer_ff433f6fc0bcc260: function(arg0, arg1) {
730
+ arg0.buffer = arg1;
731
+ },
732
+ __wbg_set_buffers_a0aac3bc1d868127: function(arg0, arg1) {
733
+ arg0.buffers = arg1;
734
+ },
735
+ __wbg_set_bytes_per_row_677fe88cface9df0: function(arg0, arg1) {
736
+ arg0.bytesPerRow = arg1 >>> 0;
737
+ },
738
+ __wbg_set_bytes_per_row_af08702a3d159816: function(arg0, arg1) {
739
+ arg0.bytesPerRow = arg1 >>> 0;
740
+ },
741
+ __wbg_set_clear_value_4c76b232d6720cd3: function(arg0, arg1) {
742
+ arg0.clearValue = arg1;
743
+ },
744
+ __wbg_set_code_c616b86ce504e24a: function(arg0, arg1, arg2) {
745
+ arg0.code = getStringFromWasm0(arg1, arg2);
746
+ },
747
+ __wbg_set_color_attachments_24458ffe50f4adf3: function(arg0, arg1) {
748
+ arg0.colorAttachments = arg1;
749
+ },
750
+ __wbg_set_color_bfad4ca850b49bef: function(arg0, arg1) {
751
+ arg0.color = arg1;
752
+ },
753
+ __wbg_set_compare_a75d29183e0b391a: function(arg0, arg1) {
754
+ arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
755
+ },
756
+ __wbg_set_compare_e3e5cfed6b9fb08f: function(arg0, arg1) {
757
+ arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
758
+ },
759
+ __wbg_set_compute_7c274f1347709d07: function(arg0, arg1) {
760
+ arg0.compute = arg1;
761
+ },
762
+ __wbg_set_count_7e33db45fa773144: function(arg0, arg1) {
763
+ arg0.count = arg1 >>> 0;
764
+ },
765
+ __wbg_set_cull_mode_5a9a78be0b9e959d: function(arg0, arg1) {
766
+ arg0.cullMode = __wbindgen_enum_GpuCullMode[arg1];
767
+ },
768
+ __wbg_set_dc601f4a69da0bc2: function(arg0, arg1, arg2) {
769
+ arg0[arg1 >>> 0] = arg2;
770
+ },
771
+ __wbg_set_depth_bias_clamp_6e19879f7d3c4847: function(arg0, arg1) {
772
+ arg0.depthBiasClamp = arg1;
773
+ },
774
+ __wbg_set_depth_bias_d20e6bd7bb8d2943: function(arg0, arg1) {
775
+ arg0.depthBias = arg1;
776
+ },
777
+ __wbg_set_depth_bias_slope_scale_71f49974c86014f3: function(arg0, arg1) {
778
+ arg0.depthBiasSlopeScale = arg1;
779
+ },
780
+ __wbg_set_depth_clear_value_2ca0c53af7b55fd0: function(arg0, arg1) {
781
+ arg0.depthClearValue = arg1;
782
+ },
783
+ __wbg_set_depth_compare_6f8d2861799b9b1b: function(arg0, arg1) {
784
+ arg0.depthCompare = __wbindgen_enum_GpuCompareFunction[arg1];
785
+ },
786
+ __wbg_set_depth_fail_op_3ffe0a79cc0c6c78: function(arg0, arg1) {
787
+ arg0.depthFailOp = __wbindgen_enum_GpuStencilOperation[arg1];
788
+ },
789
+ __wbg_set_depth_load_op_f93e6e6b73a935f4: function(arg0, arg1) {
790
+ arg0.depthLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
791
+ },
792
+ __wbg_set_depth_or_array_layers_e21f6b37c67d8790: function(arg0, arg1) {
793
+ arg0.depthOrArrayLayers = arg1 >>> 0;
794
+ },
795
+ __wbg_set_depth_read_only_e7e0fc0fead69d30: function(arg0, arg1) {
796
+ arg0.depthReadOnly = arg1 !== 0;
797
+ },
798
+ __wbg_set_depth_stencil_6aadfcbb91ef3c92: function(arg0, arg1) {
799
+ arg0.depthStencil = arg1;
800
+ },
801
+ __wbg_set_depth_stencil_attachment_f6f91f5bf5d13235: function(arg0, arg1) {
802
+ arg0.depthStencilAttachment = arg1;
803
+ },
804
+ __wbg_set_depth_store_op_9c95e333852d3582: function(arg0, arg1) {
805
+ arg0.depthStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
806
+ },
807
+ __wbg_set_depth_write_enabled_2321a5fb094805ad: function(arg0, arg1) {
808
+ arg0.depthWriteEnabled = arg1 !== 0;
809
+ },
810
+ __wbg_set_device_997f7098ce1e9a59: function(arg0, arg1) {
811
+ arg0.device = arg1;
812
+ },
813
+ __wbg_set_dimension_117c2064ce996b47: function(arg0, arg1) {
814
+ arg0.dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
815
+ },
816
+ __wbg_set_dimension_5c6032ac740887c0: function(arg0, arg1) {
817
+ arg0.dimension = __wbindgen_enum_GpuTextureDimension[arg1];
818
+ },
819
+ __wbg_set_dst_factor_b97f1b6e89186af3: function(arg0, arg1) {
820
+ arg0.dstFactor = __wbindgen_enum_GpuBlendFactor[arg1];
821
+ },
822
+ __wbg_set_end_of_pass_write_index_38e826851cbbb415: function(arg0, arg1) {
823
+ arg0.endOfPassWriteIndex = arg1 >>> 0;
824
+ },
825
+ __wbg_set_end_of_pass_write_index_c60088bc589e6882: function(arg0, arg1) {
826
+ arg0.endOfPassWriteIndex = arg1 >>> 0;
827
+ },
828
+ __wbg_set_entries_bfc700c1f97eec0b: function(arg0, arg1) {
829
+ arg0.entries = arg1;
830
+ },
831
+ __wbg_set_entries_f07df780e3613292: function(arg0, arg1) {
832
+ arg0.entries = arg1;
833
+ },
834
+ __wbg_set_entry_point_24a4e90f52608a39: function(arg0, arg1, arg2) {
835
+ arg0.entryPoint = getStringFromWasm0(arg1, arg2);
836
+ },
837
+ __wbg_set_entry_point_77641c5f6ad5355e: function(arg0, arg1, arg2) {
838
+ arg0.entryPoint = getStringFromWasm0(arg1, arg2);
839
+ },
840
+ __wbg_set_entry_point_aa503b3bb9fed987: function(arg0, arg1, arg2) {
841
+ arg0.entryPoint = getStringFromWasm0(arg1, arg2);
842
+ },
843
+ __wbg_set_fail_op_fa7348fc04abc3f6: function(arg0, arg1) {
844
+ arg0.failOp = __wbindgen_enum_GpuStencilOperation[arg1];
845
+ },
846
+ __wbg_set_format_11c7232d92ed699b: function(arg0, arg1) {
847
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
848
+ },
849
+ __wbg_set_format_3132a1562e48d4f8: function(arg0, arg1) {
850
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
851
+ },
852
+ __wbg_set_format_aa06ccc03e770abb: function(arg0, arg1) {
853
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
854
+ },
855
+ __wbg_set_format_b554909c259d57d4: function(arg0, arg1) {
856
+ arg0.format = __wbindgen_enum_GpuVertexFormat[arg1];
857
+ },
858
+ __wbg_set_format_b8158198b657d617: function(arg0, arg1) {
859
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
860
+ },
861
+ __wbg_set_format_c38221656906581e: function(arg0, arg1) {
862
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
863
+ },
864
+ __wbg_set_format_cb516a1a8d3f7354: function(arg0, arg1) {
865
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
866
+ },
867
+ __wbg_set_fragment_5fd7881ebd420d39: function(arg0, arg1) {
868
+ arg0.fragment = arg1;
869
+ },
870
+ __wbg_set_front_face_1adffec645ea35e2: function(arg0, arg1) {
871
+ arg0.frontFace = __wbindgen_enum_GpuFrontFace[arg1];
872
+ },
873
+ __wbg_set_g_130527c5176eefae: function(arg0, arg1) {
874
+ arg0.g = arg1;
875
+ },
876
+ __wbg_set_has_dynamic_offset_4d5601049080763e: function(arg0, arg1) {
877
+ arg0.hasDynamicOffset = arg1 !== 0;
878
+ },
879
+ __wbg_set_height_3ebe4c6ea2510fcc: function(arg0, arg1) {
880
+ arg0.height = arg1 >>> 0;
881
+ },
882
+ __wbg_set_height_ad5056ea051acd78: function(arg0, arg1) {
883
+ arg0.height = arg1 >>> 0;
884
+ },
885
+ __wbg_set_height_ef298446b359b0c5: function(arg0, arg1) {
886
+ arg0.height = arg1 >>> 0;
887
+ },
888
+ __wbg_set_label_0d9081f92dff44a8: function(arg0, arg1, arg2) {
889
+ arg0.label = getStringFromWasm0(arg1, arg2);
890
+ },
891
+ __wbg_set_label_22c92b4f74920fe2: function(arg0, arg1, arg2) {
892
+ arg0.label = getStringFromWasm0(arg1, arg2);
893
+ },
894
+ __wbg_set_label_392dc66ad76d942d: function(arg0, arg1, arg2) {
895
+ arg0.label = getStringFromWasm0(arg1, arg2);
896
+ },
897
+ __wbg_set_label_3e06143ad04772ae: function(arg0, arg1, arg2) {
898
+ arg0.label = getStringFromWasm0(arg1, arg2);
899
+ },
900
+ __wbg_set_label_4f44629bc3c49d4b: function(arg0, arg1, arg2) {
901
+ arg0.label = getStringFromWasm0(arg1, arg2);
902
+ },
903
+ __wbg_set_label_50f397060b5b5610: function(arg0, arg1, arg2) {
904
+ arg0.label = getStringFromWasm0(arg1, arg2);
905
+ },
906
+ __wbg_set_label_68e2953cfd33a5a5: function(arg0, arg1, arg2) {
907
+ arg0.label = getStringFromWasm0(arg1, arg2);
908
+ },
909
+ __wbg_set_label_76c4f74a38ff9bcd: function(arg0, arg1, arg2) {
910
+ arg0.label = getStringFromWasm0(arg1, arg2);
911
+ },
912
+ __wbg_set_label_79484ec4d6d85bbf: function(arg0, arg1, arg2) {
913
+ arg0.label = getStringFromWasm0(arg1, arg2);
914
+ },
915
+ __wbg_set_label_861c8e348e26599d: function(arg0, arg1, arg2) {
916
+ arg0.label = getStringFromWasm0(arg1, arg2);
917
+ },
918
+ __wbg_set_label_c6d451b2fc960c7d: function(arg0, arg1, arg2) {
919
+ arg0.label = getStringFromWasm0(arg1, arg2);
920
+ },
921
+ __wbg_set_label_d1b6a326332d0520: function(arg0, arg1, arg2) {
922
+ arg0.label = getStringFromWasm0(arg1, arg2);
923
+ },
924
+ __wbg_set_label_d687cfb9a30329c8: function(arg0, arg1, arg2) {
925
+ arg0.label = getStringFromWasm0(arg1, arg2);
926
+ },
927
+ __wbg_set_label_dcf5143835b5d044: function(arg0, arg1, arg2) {
928
+ arg0.label = getStringFromWasm0(arg1, arg2);
929
+ },
930
+ __wbg_set_label_e345704005fb385b: function(arg0, arg1, arg2) {
931
+ arg0.label = getStringFromWasm0(arg1, arg2);
932
+ },
933
+ __wbg_set_layout_8e94366580ade994: function(arg0, arg1) {
934
+ arg0.layout = arg1;
935
+ },
936
+ __wbg_set_layout_b9b36c291ee7f2e1: function(arg0, arg1) {
937
+ arg0.layout = arg1;
938
+ },
939
+ __wbg_set_layout_cccbb8f794df887c: function(arg0, arg1) {
940
+ arg0.layout = arg1;
941
+ },
942
+ __wbg_set_load_op_4716d76153bebb14: function(arg0, arg1) {
943
+ arg0.loadOp = __wbindgen_enum_GpuLoadOp[arg1];
944
+ },
945
+ __wbg_set_lod_max_clamp_f42eca55c9217397: function(arg0, arg1) {
946
+ arg0.lodMaxClamp = arg1;
947
+ },
948
+ __wbg_set_lod_min_clamp_4d711017231cc5a0: function(arg0, arg1) {
949
+ arg0.lodMinClamp = arg1;
950
+ },
951
+ __wbg_set_mag_filter_ac0090a8079675c5: function(arg0, arg1) {
952
+ arg0.magFilter = __wbindgen_enum_GpuFilterMode[arg1];
953
+ },
954
+ __wbg_set_mapped_at_creation_34da9d6bf64b78d6: function(arg0, arg1) {
955
+ arg0.mappedAtCreation = arg1 !== 0;
956
+ },
957
+ __wbg_set_mask_250d8d1991cda6ea: function(arg0, arg1) {
958
+ arg0.mask = arg1 >>> 0;
959
+ },
960
+ __wbg_set_max_anisotropy_1042535ecf2aa351: function(arg0, arg1) {
961
+ arg0.maxAnisotropy = arg1;
962
+ },
963
+ __wbg_set_min_binding_size_9389ad67218af140: function(arg0, arg1) {
964
+ arg0.minBindingSize = arg1;
965
+ },
966
+ __wbg_set_min_filter_aef574957db07999: function(arg0, arg1) {
967
+ arg0.minFilter = __wbindgen_enum_GpuFilterMode[arg1];
968
+ },
969
+ __wbg_set_mip_level_1fe1b17b2d4930dc: function(arg0, arg1) {
970
+ arg0.mipLevel = arg1 >>> 0;
971
+ },
972
+ __wbg_set_mip_level_count_ce77bbcd6aa77dfb: function(arg0, arg1) {
973
+ arg0.mipLevelCount = arg1 >>> 0;
974
+ },
975
+ __wbg_set_mip_level_count_faa8a47d0fd87c1e: function(arg0, arg1) {
976
+ arg0.mipLevelCount = arg1 >>> 0;
977
+ },
978
+ __wbg_set_mipmap_filter_7879f073bcd8d466: function(arg0, arg1) {
979
+ arg0.mipmapFilter = __wbindgen_enum_GpuMipmapFilterMode[arg1];
980
+ },
981
+ __wbg_set_module_51b2f2e08accb016: function(arg0, arg1) {
982
+ arg0.module = arg1;
983
+ },
984
+ __wbg_set_module_5f33a55198ad797f: function(arg0, arg1) {
985
+ arg0.module = arg1;
986
+ },
987
+ __wbg_set_module_92f53f6a4172b60c: function(arg0, arg1) {
988
+ arg0.module = arg1;
989
+ },
990
+ __wbg_set_multisample_8fea65aa177ce42b: function(arg0, arg1) {
991
+ arg0.multisample = arg1;
992
+ },
993
+ __wbg_set_multisampled_b526741755338725: function(arg0, arg1) {
994
+ arg0.multisampled = arg1 !== 0;
995
+ },
996
+ __wbg_set_offset_1a0f95ffb7dd6f40: function(arg0, arg1) {
997
+ arg0.offset = arg1;
998
+ },
999
+ __wbg_set_offset_39885158a5562ef6: function(arg0, arg1) {
1000
+ arg0.offset = arg1;
1001
+ },
1002
+ __wbg_set_offset_73eef07e0840c207: function(arg0, arg1) {
1003
+ arg0.offset = arg1;
1004
+ },
1005
+ __wbg_set_offset_7742a652907a0dcc: function(arg0, arg1) {
1006
+ arg0.offset = arg1;
1007
+ },
1008
+ __wbg_set_operation_3f77d077d89e8104: function(arg0, arg1) {
1009
+ arg0.operation = __wbindgen_enum_GpuBlendOperation[arg1];
1010
+ },
1011
+ __wbg_set_origin_b315d15931fdd138: function(arg0, arg1) {
1012
+ arg0.origin = arg1;
1013
+ },
1014
+ __wbg_set_pass_op_f289598b9bf2b26f: function(arg0, arg1) {
1015
+ arg0.passOp = __wbindgen_enum_GpuStencilOperation[arg1];
1016
+ },
1017
+ __wbg_set_power_preference_915480f4b9565dc2: function(arg0, arg1) {
1018
+ arg0.powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
1019
+ },
1020
+ __wbg_set_primitive_65f0197724aa1998: function(arg0, arg1) {
1021
+ arg0.primitive = arg1;
1022
+ },
1023
+ __wbg_set_query_set_0a78c3dcb3650b2b: function(arg0, arg1) {
1024
+ arg0.querySet = arg1;
1025
+ },
1026
+ __wbg_set_query_set_3088af736d5ed6bb: function(arg0, arg1) {
1027
+ arg0.querySet = arg1;
1028
+ },
1029
+ __wbg_set_r_1f5bdc587af1ad2e: function(arg0, arg1) {
1030
+ arg0.r = arg1;
1031
+ },
1032
+ __wbg_set_required_features_42347bf311233eb6: function(arg0, arg1) {
1033
+ arg0.requiredFeatures = arg1;
1034
+ },
1035
+ __wbg_set_resolve_target_d9752c5e8b620b01: function(arg0, arg1) {
1036
+ arg0.resolveTarget = arg1;
1037
+ },
1038
+ __wbg_set_resource_f2d72f59cc9308fc: function(arg0, arg1) {
1039
+ arg0.resource = arg1;
1040
+ },
1041
+ __wbg_set_responseType_8bf4eb272fa2982e: function(arg0, arg1) {
1042
+ arg0.responseType = __wbindgen_enum_XmlHttpRequestResponseType[arg1];
1043
+ },
1044
+ __wbg_set_rows_per_image_c93769be14a45b2d: function(arg0, arg1) {
1045
+ arg0.rowsPerImage = arg1 >>> 0;
1046
+ },
1047
+ __wbg_set_rows_per_image_f3e25334bd0cdec8: function(arg0, arg1) {
1048
+ arg0.rowsPerImage = arg1 >>> 0;
1049
+ },
1050
+ __wbg_set_sample_count_47378e3363905cfe: function(arg0, arg1) {
1051
+ arg0.sampleCount = arg1 >>> 0;
1052
+ },
1053
+ __wbg_set_sample_type_6d1e240a417bdf44: function(arg0, arg1) {
1054
+ arg0.sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
1055
+ },
1056
+ __wbg_set_sampler_f864a162bad4f66f: function(arg0, arg1) {
1057
+ arg0.sampler = arg1;
1058
+ },
1059
+ __wbg_set_shader_location_512e18558f4b5044: function(arg0, arg1) {
1060
+ arg0.shaderLocation = arg1 >>> 0;
1061
+ },
1062
+ __wbg_set_size_657d97f8d513b5e9: function(arg0, arg1) {
1063
+ arg0.size = arg1;
1064
+ },
1065
+ __wbg_set_size_6b2fc4a0e39e4d07: function(arg0, arg1) {
1066
+ arg0.size = arg1;
1067
+ },
1068
+ __wbg_set_size_c78ae8d2e2181815: function(arg0, arg1) {
1069
+ arg0.size = arg1;
1070
+ },
1071
+ __wbg_set_src_factor_f6d030d42c740795: function(arg0, arg1) {
1072
+ arg0.srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
1073
+ },
1074
+ __wbg_set_stencil_back_445dca081a7a482f: function(arg0, arg1) {
1075
+ arg0.stencilBack = arg1;
1076
+ },
1077
+ __wbg_set_stencil_clear_value_1ff6e0286bac04f0: function(arg0, arg1) {
1078
+ arg0.stencilClearValue = arg1 >>> 0;
1079
+ },
1080
+ __wbg_set_stencil_front_c2e7583fc42d1289: function(arg0, arg1) {
1081
+ arg0.stencilFront = arg1;
1082
+ },
1083
+ __wbg_set_stencil_load_op_aa4f07acdc265e20: function(arg0, arg1) {
1084
+ arg0.stencilLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
1085
+ },
1086
+ __wbg_set_stencil_read_mask_fa2e080bf4e50296: function(arg0, arg1) {
1087
+ arg0.stencilReadMask = arg1 >>> 0;
1088
+ },
1089
+ __wbg_set_stencil_read_only_c668e2f4792200dc: function(arg0, arg1) {
1090
+ arg0.stencilReadOnly = arg1 !== 0;
1091
+ },
1092
+ __wbg_set_stencil_store_op_817f5569dcbe011c: function(arg0, arg1) {
1093
+ arg0.stencilStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
1094
+ },
1095
+ __wbg_set_stencil_write_mask_cd78f765a9d1922b: function(arg0, arg1) {
1096
+ arg0.stencilWriteMask = arg1 >>> 0;
1097
+ },
1098
+ __wbg_set_step_mode_957a94d543f8cb9c: function(arg0, arg1) {
1099
+ arg0.stepMode = __wbindgen_enum_GpuVertexStepMode[arg1];
1100
+ },
1101
+ __wbg_set_storage_texture_c3919f22b211c542: function(arg0, arg1) {
1102
+ arg0.storageTexture = arg1;
1103
+ },
1104
+ __wbg_set_store_op_cbb1498982c43f58: function(arg0, arg1) {
1105
+ arg0.storeOp = __wbindgen_enum_GpuStoreOp[arg1];
1106
+ },
1107
+ __wbg_set_strip_index_format_cf0e1ae7ebc6e801: function(arg0, arg1) {
1108
+ arg0.stripIndexFormat = __wbindgen_enum_GpuIndexFormat[arg1];
1109
+ },
1110
+ __wbg_set_targets_ed82ec017a08e9be: function(arg0, arg1) {
1111
+ arg0.targets = arg1;
1112
+ },
1113
+ __wbg_set_texture_a2c2ca844a3a3014: function(arg0, arg1) {
1114
+ arg0.texture = arg1;
1115
+ },
1116
+ __wbg_set_texture_bf820de044f0d291: function(arg0, arg1) {
1117
+ arg0.texture = arg1;
1118
+ },
1119
+ __wbg_set_timeout_886c1a897c5f6489: function(arg0, arg1) {
1120
+ arg0.timeout = arg1 >>> 0;
1121
+ },
1122
+ __wbg_set_timestamp_writes_2c9801ffc2c74de7: function(arg0, arg1) {
1123
+ arg0.timestampWrites = arg1;
1124
+ },
1125
+ __wbg_set_timestamp_writes_b9e1d87e2f057bd1: function(arg0, arg1) {
1126
+ arg0.timestampWrites = arg1;
1127
+ },
1128
+ __wbg_set_topology_e97a4999800a37a9: function(arg0, arg1) {
1129
+ arg0.topology = __wbindgen_enum_GpuPrimitiveTopology[arg1];
1130
+ },
1131
+ __wbg_set_type_40f4ae4fa32946cd: function(arg0, arg1) {
1132
+ arg0.type = __wbindgen_enum_GpuBufferBindingType[arg1];
1133
+ },
1134
+ __wbg_set_type_4f1cd48d79f4d6dc: function(arg0, arg1) {
1135
+ arg0.type = __wbindgen_enum_GpuSamplerBindingType[arg1];
1136
+ },
1137
+ __wbg_set_usage_4810d9c6b8041aa6: function(arg0, arg1) {
1138
+ arg0.usage = arg1 >>> 0;
1139
+ },
1140
+ __wbg_set_usage_794d488202743c10: function(arg0, arg1) {
1141
+ arg0.usage = arg1 >>> 0;
1142
+ },
1143
+ __wbg_set_usage_9aa23fa1e13799a8: function(arg0, arg1) {
1144
+ arg0.usage = arg1 >>> 0;
1145
+ },
1146
+ __wbg_set_usage_ba31cd3d9ce977fe: function(arg0, arg1) {
1147
+ arg0.usage = arg1 >>> 0;
1148
+ },
1149
+ __wbg_set_vertex_90d5407453f59d4a: function(arg0, arg1) {
1150
+ arg0.vertex = arg1;
1151
+ },
1152
+ __wbg_set_view_36f140b43e2eca60: function(arg0, arg1) {
1153
+ arg0.view = arg1;
1154
+ },
1155
+ __wbg_set_view_51a85be8f2338ed2: function(arg0, arg1) {
1156
+ arg0.view = arg1;
1157
+ },
1158
+ __wbg_set_view_dimension_36c0bf530395d014: function(arg0, arg1) {
1159
+ arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
1160
+ },
1161
+ __wbg_set_view_dimension_553cd9fa176d06ca: function(arg0, arg1) {
1162
+ arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
1163
+ },
1164
+ __wbg_set_view_formats_0a8a8e11cfa73759: function(arg0, arg1) {
1165
+ arg0.viewFormats = arg1;
1166
+ },
1167
+ __wbg_set_view_formats_79f521105f1c4c8c: function(arg0, arg1) {
1168
+ arg0.viewFormats = arg1;
1169
+ },
1170
+ __wbg_set_visibility_eef2d8e9608a8981: function(arg0, arg1) {
1171
+ arg0.visibility = arg1 >>> 0;
1172
+ },
1173
+ __wbg_set_width_031bdecd763c5855: function(arg0, arg1) {
1174
+ arg0.width = arg1 >>> 0;
1175
+ },
1176
+ __wbg_set_width_60b542bb7870a825: function(arg0, arg1) {
1177
+ arg0.width = arg1 >>> 0;
1178
+ },
1179
+ __wbg_set_width_f9e631f4ee129e5c: function(arg0, arg1) {
1180
+ arg0.width = arg1 >>> 0;
1181
+ },
1182
+ __wbg_set_write_mask_6d312328ac2d4d97: function(arg0, arg1) {
1183
+ arg0.writeMask = arg1 >>> 0;
1184
+ },
1185
+ __wbg_set_x_d11527965ec29a57: function(arg0, arg1) {
1186
+ arg0.x = arg1 >>> 0;
1187
+ },
1188
+ __wbg_set_y_55ef7c361345d5fd: function(arg0, arg1) {
1189
+ arg0.y = arg1 >>> 0;
1190
+ },
1191
+ __wbg_set_z_dc148d1e458d403e: function(arg0, arg1) {
1192
+ arg0.z = arg1 >>> 0;
1193
+ },
1194
+ __wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938: function() {
1195
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
1196
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1197
+ },
1198
+ __wbg_static_accessor_GLOBAL_ce44e66a4935da8c: function() {
1199
+ const ret = typeof global === 'undefined' ? null : global;
1200
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1201
+ },
1202
+ __wbg_static_accessor_SELF_44f6e0cb5e67cdad: function() {
1203
+ const ret = typeof self === 'undefined' ? null : self;
1204
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1205
+ },
1206
+ __wbg_static_accessor_WINDOW_168f178805d978fe: function() {
1207
+ const ret = typeof window === 'undefined' ? null : window;
1208
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1209
+ },
1210
+ __wbg_statusText_8a9524eb9d37a935: function() { return handleError(function (arg0, arg1) {
1211
+ const ret = arg1.statusText;
1212
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1213
+ const len1 = WASM_VECTOR_LEN;
1214
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1215
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1216
+ }, arguments); },
1217
+ __wbg_status_7255df198834a228: function() { return handleError(function (arg0) {
1218
+ const ret = arg0.status;
1219
+ return ret;
1220
+ }, arguments); },
1221
+ __wbg_stringify_747a843de2eb6359: function() { return handleError(function (arg0) {
1222
+ const ret = JSON.stringify(arg0);
1223
+ return ret;
1224
+ }, arguments); },
1225
+ __wbg_submit_2521bdd9a232bca7: function(arg0, arg1) {
1226
+ arg0.submit(arg1);
1227
+ },
1228
+ __wbg_then_05edfc8a4fea5106: function(arg0, arg1, arg2) {
1229
+ const ret = arg0.then(arg1, arg2);
1230
+ return ret;
1231
+ },
1232
+ __wbg_then_2a84678a50976959: function(arg0, arg1, arg2) {
1233
+ const ret = arg0.then(arg1, arg2);
1234
+ return ret;
1235
+ },
1236
+ __wbg_then_591b6b3a75ee817a: function(arg0, arg1) {
1237
+ const ret = arg0.then(arg1);
1238
+ return ret;
1239
+ },
1240
+ __wbg_unmap_815a075fd850cb73: function(arg0) {
1241
+ arg0.unmap();
1242
+ },
1243
+ __wbg_width_42c66a46c4d6f7c1: function(arg0) {
1244
+ const ret = arg0.width;
1245
+ return ret;
1246
+ },
1247
+ __wbg_width_a86bcd32bd998060: function(arg0) {
1248
+ const ret = arg0.width;
1249
+ return ret;
1250
+ },
1251
+ __wbg_width_c8740d5bdf596189: function(arg0) {
1252
+ const ret = arg0.width;
1253
+ return ret;
1254
+ },
1255
+ __wbg_writeBuffer_e8b792fb0962f30d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1256
+ arg0.writeBuffer(arg1, arg2, arg3, arg4, arg5);
1257
+ }, arguments); },
1258
+ __wbg_writeTexture_d97144f6ad799c38: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1259
+ arg0.writeTexture(arg1, arg2, arg3, arg4);
1260
+ }, arguments); },
1261
+ __wbindgen_cast_0000000000000001: function(arg0, arg1) {
1262
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5727, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1263
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h2ddb700be264118d);
1264
+ return ret;
1265
+ },
1266
+ __wbindgen_cast_0000000000000002: function(arg0, arg1) {
1267
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5764, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1268
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0fd58337c3bb7841);
1269
+ return ret;
1270
+ },
1271
+ __wbindgen_cast_0000000000000003: function(arg0) {
1272
+ // Cast intrinsic for `F64 -> Externref`.
1273
+ const ret = arg0;
1274
+ return ret;
1275
+ },
1276
+ __wbindgen_cast_0000000000000004: function(arg0) {
1277
+ // Cast intrinsic for `I64 -> Externref`.
1278
+ const ret = arg0;
1279
+ return ret;
1280
+ },
1281
+ __wbindgen_cast_0000000000000005: function(arg0, arg1) {
1282
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1283
+ const ret = getArrayU8FromWasm0(arg0, arg1);
1284
+ return ret;
1285
+ },
1286
+ __wbindgen_cast_0000000000000006: function(arg0, arg1) {
1287
+ // Cast intrinsic for `Ref(String) -> Externref`.
1288
+ const ret = getStringFromWasm0(arg0, arg1);
1289
+ return ret;
1290
+ },
1291
+ __wbindgen_cast_0000000000000007: function(arg0) {
1292
+ // Cast intrinsic for `U64 -> Externref`.
1293
+ const ret = BigInt.asUintN(64, arg0);
1294
+ return ret;
1295
+ },
1296
+ __wbindgen_init_externref_table: function() {
1297
+ const table = wasm.__wbindgen_externrefs;
1298
+ const offset = table.grow(4);
1299
+ table.set(0, undefined);
1300
+ table.set(offset + 0, undefined);
1301
+ table.set(offset + 1, null);
1302
+ table.set(offset + 2, true);
1303
+ table.set(offset + 3, false);
1304
+ },
1305
+ };
1306
+ return {
1307
+ __proto__: null,
1308
+ "./runmat_lsp_bg.js": import0,
1309
+ };
1310
+ }
1311
+
1312
+ function wasm_bindgen__convert__closures_____invoke__h2ddb700be264118d(arg0, arg1, arg2) {
1313
+ wasm.wasm_bindgen__convert__closures_____invoke__h2ddb700be264118d(arg0, arg1, arg2);
1314
+ }
1315
+
1316
+ function wasm_bindgen__convert__closures_____invoke__h0fd58337c3bb7841(arg0, arg1, arg2) {
1317
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0fd58337c3bb7841(arg0, arg1, arg2);
1318
+ if (ret[1]) {
1319
+ throw takeFromExternrefTable0(ret[0]);
1320
+ }
418
1321
  }
419
1322
 
420
- function __wbg_adapter_582(arg0, arg1, arg2, arg3) {
421
- wasm.closure5157_externref_shim(arg0, arg1, arg2, arg3);
1323
+ function wasm_bindgen__convert__closures_____invoke__h554464018ada0f86(arg0, arg1, arg2, arg3) {
1324
+ wasm.wasm_bindgen__convert__closures_____invoke__h554464018ada0f86(arg0, arg1, arg2, arg3);
422
1325
  }
423
1326
 
1327
+
424
1328
  const __wbindgen_enum_GpuAddressMode = ["clamp-to-edge", "repeat", "mirror-repeat"];
425
1329
 
1330
+
426
1331
  const __wbindgen_enum_GpuBlendFactor = ["zero", "one", "src", "one-minus-src", "src-alpha", "one-minus-src-alpha", "dst", "one-minus-dst", "dst-alpha", "one-minus-dst-alpha", "src-alpha-saturated", "constant", "one-minus-constant", "src1", "one-minus-src1", "src1-alpha", "one-minus-src1-alpha"];
427
1332
 
1333
+
428
1334
  const __wbindgen_enum_GpuBlendOperation = ["add", "subtract", "reverse-subtract", "min", "max"];
429
1335
 
1336
+
430
1337
  const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
431
1338
 
1339
+
432
1340
  const __wbindgen_enum_GpuCanvasAlphaMode = ["opaque", "premultiplied"];
433
1341
 
1342
+
434
1343
  const __wbindgen_enum_GpuCompareFunction = ["never", "less", "equal", "less-equal", "greater", "not-equal", "greater-equal", "always"];
435
1344
 
1345
+
436
1346
  const __wbindgen_enum_GpuCullMode = ["none", "front", "back"];
437
1347
 
1348
+
438
1349
  const __wbindgen_enum_GpuFilterMode = ["nearest", "linear"];
439
1350
 
1351
+
440
1352
  const __wbindgen_enum_GpuFrontFace = ["ccw", "cw"];
441
1353
 
1354
+
442
1355
  const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
443
1356
 
1357
+
444
1358
  const __wbindgen_enum_GpuLoadOp = ["load", "clear"];
445
1359
 
1360
+
446
1361
  const __wbindgen_enum_GpuMipmapFilterMode = ["nearest", "linear"];
447
1362
 
1363
+
448
1364
  const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
449
1365
 
1366
+
450
1367
  const __wbindgen_enum_GpuPrimitiveTopology = ["point-list", "line-list", "line-strip", "triangle-list", "triangle-strip"];
451
1368
 
1369
+
452
1370
  const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
453
1371
 
1372
+
454
1373
  const __wbindgen_enum_GpuStencilOperation = ["keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap"];
455
1374
 
1375
+
456
1376
  const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
457
1377
 
1378
+
458
1379
  const __wbindgen_enum_GpuStoreOp = ["store", "discard"];
459
1380
 
1381
+
460
1382
  const __wbindgen_enum_GpuTextureAspect = ["all", "stencil-only", "depth-only"];
461
1383
 
1384
+
462
1385
  const __wbindgen_enum_GpuTextureDimension = ["1d", "2d", "3d"];
463
1386
 
1387
+
464
1388
  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"];
465
1389
 
1390
+
466
1391
  const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "depth", "sint", "uint"];
467
1392
 
1393
+
468
1394
  const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
469
1395
 
1396
+
470
1397
  const __wbindgen_enum_GpuVertexFormat = ["uint8", "uint8x2", "uint8x4", "sint8", "sint8x2", "sint8x4", "unorm8", "unorm8x2", "unorm8x4", "snorm8", "snorm8x2", "snorm8x4", "uint16", "uint16x2", "uint16x4", "sint16", "sint16x2", "sint16x4", "unorm16", "unorm16x2", "unorm16x4", "snorm16", "snorm16x2", "snorm16x4", "float16", "float16x2", "float16x4", "float32", "float32x2", "float32x3", "float32x4", "uint32", "uint32x2", "uint32x3", "uint32x4", "sint32", "sint32x2", "sint32x3", "sint32x4", "unorm10-10-10-2", "unorm8x4-bgra"];
471
1398
 
1399
+
472
1400
  const __wbindgen_enum_GpuVertexStepMode = ["vertex", "instance"];
473
1401
 
1402
+
474
1403
  const __wbindgen_enum_XmlHttpRequestResponseType = ["", "arraybuffer", "blob", "document", "json", "text"];
475
1404
 
476
- async function __wbg_load(module, imports) {
477
- if (typeof Response === 'function' && module instanceof Response) {
478
- if (typeof WebAssembly.instantiateStreaming === 'function') {
479
- try {
480
- return await WebAssembly.instantiateStreaming(module, imports);
1405
+ function addToExternrefTable0(obj) {
1406
+ const idx = wasm.__externref_table_alloc();
1407
+ wasm.__wbindgen_externrefs.set(idx, obj);
1408
+ return idx;
1409
+ }
481
1410
 
482
- } catch (e) {
483
- if (module.headers.get('Content-Type') != 'application/wasm') {
484
- 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);
1411
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
1412
+ ? { register: () => {}, unregister: () => {} }
1413
+ : new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
485
1414
 
486
- } else {
487
- throw e;
488
- }
489
- }
1415
+ function debugString(val) {
1416
+ // primitive types
1417
+ const type = typeof val;
1418
+ if (type == 'number' || type == 'boolean' || val == null) {
1419
+ return `${val}`;
1420
+ }
1421
+ if (type == 'string') {
1422
+ return `"${val}"`;
1423
+ }
1424
+ if (type == 'symbol') {
1425
+ const description = val.description;
1426
+ if (description == null) {
1427
+ return 'Symbol';
1428
+ } else {
1429
+ return `Symbol(${description})`;
490
1430
  }
491
-
492
- const bytes = await module.arrayBuffer();
493
- return await WebAssembly.instantiate(bytes, imports);
494
-
495
- } else {
496
- const instance = await WebAssembly.instantiate(module, imports);
497
-
498
- if (instance instanceof WebAssembly.Instance) {
499
- return { instance, module };
500
-
1431
+ }
1432
+ if (type == 'function') {
1433
+ const name = val.name;
1434
+ if (typeof name == 'string' && name.length > 0) {
1435
+ return `Function(${name})`;
501
1436
  } else {
502
- return instance;
1437
+ return 'Function';
503
1438
  }
504
1439
  }
505
- }
506
-
507
- function __wbg_get_imports() {
508
- const imports = {};
509
- imports.wbg = {};
510
- imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
511
- const ret = String(arg1);
512
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
513
- const len1 = WASM_VECTOR_LEN;
514
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
515
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
516
- };
517
- imports.wbg.__wbg_Window_2b9b35492d4b2d63 = function(arg0) {
518
- const ret = arg0.Window;
519
- return ret;
520
- };
521
- imports.wbg.__wbg_WorkerGlobalScope_b4fb13f0ba6527ab = function(arg0) {
522
- const ret = arg0.WorkerGlobalScope;
523
- return ret;
524
- };
525
- imports.wbg.__wbg_beginComputePass_2061bb5db1032a35 = function(arg0, arg1) {
526
- const ret = arg0.beginComputePass(arg1);
527
- return ret;
528
- };
529
- imports.wbg.__wbg_beginRenderPass_f36cfdd5825e0c2e = function() { return handleError(function (arg0, arg1) {
530
- const ret = arg0.beginRenderPass(arg1);
531
- return ret;
532
- }, arguments) };
533
- imports.wbg.__wbg_buffer_09165b52af8c5237 = function(arg0) {
534
- const ret = arg0.buffer;
535
- return ret;
536
- };
537
- imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
538
- const ret = arg0.buffer;
539
- return ret;
540
- };
541
- imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
542
- const ret = arg0.call(arg1);
543
- return ret;
544
- }, arguments) };
545
- imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
546
- const ret = arg0.call(arg1, arg2);
547
- return ret;
548
- }, arguments) };
549
- imports.wbg.__wbg_call_833bed5770ea2041 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
550
- const ret = arg0.call(arg1, arg2, arg3);
551
- return ret;
552
- }, arguments) };
553
- imports.wbg.__wbg_configure_ad5aa321838c8e3b = function() { return handleError(function (arg0, arg1) {
554
- arg0.configure(arg1);
555
- }, arguments) };
556
- imports.wbg.__wbg_copyTextureToBuffer_beaf38ed0c92f265 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
557
- arg0.copyTextureToBuffer(arg1, arg2, arg3);
558
- }, arguments) };
559
- imports.wbg.__wbg_createBindGroupLayout_b87a1f26ed22bd5d = function() { return handleError(function (arg0, arg1) {
560
- const ret = arg0.createBindGroupLayout(arg1);
561
- return ret;
562
- }, arguments) };
563
- imports.wbg.__wbg_createBindGroup_dfdadbbcf4dcae54 = function(arg0, arg1) {
564
- const ret = arg0.createBindGroup(arg1);
565
- return ret;
566
- };
567
- imports.wbg.__wbg_createBuffer_fb1752eab5cb2a7f = function() { return handleError(function (arg0, arg1) {
568
- const ret = arg0.createBuffer(arg1);
569
- return ret;
570
- }, arguments) };
571
- imports.wbg.__wbg_createCommandEncoder_92b1c283a0372974 = function(arg0, arg1) {
572
- const ret = arg0.createCommandEncoder(arg1);
573
- return ret;
574
- };
575
- imports.wbg.__wbg_createComputePipeline_4cdc84e4d346bd71 = function(arg0, arg1) {
576
- const ret = arg0.createComputePipeline(arg1);
577
- return ret;
578
- };
579
- imports.wbg.__wbg_createPipelineLayout_c97169a1a177450e = function(arg0, arg1) {
580
- const ret = arg0.createPipelineLayout(arg1);
581
- return ret;
582
- };
583
- imports.wbg.__wbg_createRenderPipeline_ab453ccc40539bc0 = function() { return handleError(function (arg0, arg1) {
584
- const ret = arg0.createRenderPipeline(arg1);
585
- return ret;
586
- }, arguments) };
587
- imports.wbg.__wbg_createSampler_fdf4c92b3a0a4810 = function(arg0, arg1) {
588
- const ret = arg0.createSampler(arg1);
589
- return ret;
590
- };
591
- imports.wbg.__wbg_createShaderModule_159013272c1b4c4c = function(arg0, arg1) {
592
- const ret = arg0.createShaderModule(arg1);
593
- return ret;
594
- };
595
- imports.wbg.__wbg_createTexture_092a9cf5106b1805 = function() { return handleError(function (arg0, arg1) {
596
- const ret = arg0.createTexture(arg1);
597
- return ret;
598
- }, arguments) };
599
- imports.wbg.__wbg_createView_e743725c577bafe5 = function() { return handleError(function (arg0, arg1) {
600
- const ret = arg0.createView(arg1);
601
- return ret;
602
- }, arguments) };
603
- imports.wbg.__wbg_dispatchWorkgroups_89c6778d0518442a = function(arg0, arg1, arg2, arg3) {
604
- arg0.dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
605
- };
606
- imports.wbg.__wbg_drawIndexed_bf8f6537c7ff1b95 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
607
- arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
608
- };
609
- imports.wbg.__wbg_drawIndirect_8bef8992f379d2b5 = function(arg0, arg1, arg2) {
610
- arg0.drawIndirect(arg1, arg2);
611
- };
612
- imports.wbg.__wbg_draw_e8c430e7254c6215 = function(arg0, arg1, arg2, arg3, arg4) {
613
- arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
614
- };
615
- imports.wbg.__wbg_end_56b2d6d0610f9131 = function(arg0) {
616
- arg0.end();
617
- };
618
- imports.wbg.__wbg_end_7ad26f2083234d67 = function(arg0) {
619
- arg0.end();
620
- };
621
- imports.wbg.__wbg_finish_ac8e8f8408208d93 = function(arg0) {
622
- const ret = arg0.finish();
623
- return ret;
624
- };
625
- imports.wbg.__wbg_finish_b79779da004ef346 = function(arg0, arg1) {
626
- const ret = arg0.finish(arg1);
627
- return ret;
628
- };
629
- imports.wbg.__wbg_getAllResponseHeaders_83159b168d73a355 = function() { return handleError(function (arg0, arg1) {
630
- const ret = arg1.getAllResponseHeaders();
631
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
632
- const len1 = WASM_VECTOR_LEN;
633
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
634
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
635
- }, arguments) };
636
- imports.wbg.__wbg_getBoundingClientRect_9073b0ff7574d76b = function(arg0) {
637
- const ret = arg0.getBoundingClientRect();
638
- return ret;
639
- };
640
- imports.wbg.__wbg_getCurrentTexture_3c8710ca6e0019fc = function() { return handleError(function (arg0) {
641
- const ret = arg0.getCurrentTexture();
642
- return ret;
643
- }, arguments) };
644
- imports.wbg.__wbg_getMappedRange_86d4a434bceeb7fc = function() { return handleError(function (arg0, arg1, arg2) {
645
- const ret = arg0.getMappedRange(arg1, arg2);
646
- return ret;
647
- }, arguments) };
648
- imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) {
649
- const ret = arg0.getTime();
650
- return ret;
651
- };
652
- imports.wbg.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) {
653
- const ret = arg0.getTimezoneOffset();
654
- return ret;
655
- };
656
- imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
657
- const ret = Reflect.get(arg0, arg1);
658
- return ret;
659
- }, arguments) };
660
- imports.wbg.__wbg_gpu_051bdce6489ddf6a = function(arg0) {
661
- const ret = arg0.gpu;
662
- return ret;
663
- };
664
- imports.wbg.__wbg_height_592a89ec0fb63726 = function(arg0) {
665
- const ret = arg0.height;
666
- return ret;
667
- };
668
- imports.wbg.__wbg_height_838cee19ba8597db = function(arg0) {
669
- const ret = arg0.height;
670
- return ret;
671
- };
672
- imports.wbg.__wbg_height_e3c322f23d99ad2f = function(arg0) {
673
- const ret = arg0.height;
674
- return ret;
675
- };
676
- imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
677
- let result;
678
- try {
679
- result = arg0 instanceof ArrayBuffer;
680
- } catch (_) {
681
- result = false;
1440
+ // objects
1441
+ if (Array.isArray(val)) {
1442
+ const length = val.length;
1443
+ let debug = '[';
1444
+ if (length > 0) {
1445
+ debug += debugString(val[0]);
682
1446
  }
683
- const ret = result;
684
- return ret;
685
- };
686
- imports.wbg.__wbg_instanceof_DomException_ed1ccb7aaf39034c = function(arg0) {
687
- let result;
688
- try {
689
- result = arg0 instanceof DOMException;
690
- } catch (_) {
691
- result = false;
1447
+ for(let i = 1; i < length; i++) {
1448
+ debug += ', ' + debugString(val[i]);
692
1449
  }
693
- const ret = result;
694
- return ret;
695
- };
696
- imports.wbg.__wbg_instanceof_GpuAdapter_aff4b0f95a6c1c3e = function(arg0) {
697
- let result;
1450
+ debug += ']';
1451
+ return debug;
1452
+ }
1453
+ // Test for built-in
1454
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
1455
+ let className;
1456
+ if (builtInMatches && builtInMatches.length > 1) {
1457
+ className = builtInMatches[1];
1458
+ } else {
1459
+ // Failed to match the standard '[object ClassName]'
1460
+ return toString.call(val);
1461
+ }
1462
+ if (className == 'Object') {
1463
+ // we're a user defined class or Object
1464
+ // JSON.stringify avoids problems with cycles, and is generally much
1465
+ // easier than looping through ownProperties of `val`.
698
1466
  try {
699
- result = arg0 instanceof GPUAdapter;
1467
+ return 'Object(' + JSON.stringify(val) + ')';
700
1468
  } catch (_) {
701
- result = false;
1469
+ return 'Object';
702
1470
  }
703
- const ret = result;
704
- return ret;
705
- };
706
- imports.wbg.__wbg_label_c3a930571192f18e = function(arg0, arg1) {
707
- const ret = arg1.label;
708
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
709
- const len1 = WASM_VECTOR_LEN;
710
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
711
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
712
- };
713
- imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
714
- const ret = arg0.length;
715
- return ret;
716
- };
717
- imports.wbg.__wbg_mapAsync_0d9cf9d11808b275 = function(arg0, arg1, arg2, arg3) {
718
- const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
719
- return ret;
720
- };
721
- imports.wbg.__wbg_message_5c5d919204d42400 = function(arg0, arg1) {
722
- const ret = arg1.message;
723
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
724
- const len1 = WASM_VECTOR_LEN;
725
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
726
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
727
- };
728
- imports.wbg.__wbg_name_f2d27098bfd843e7 = function(arg0, arg1) {
729
- const ret = arg1.name;
730
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
731
- const len1 = WASM_VECTOR_LEN;
732
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
733
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
734
- };
735
- imports.wbg.__wbg_navigator_0a9bf1120e24fec2 = function(arg0) {
736
- const ret = arg0.navigator;
737
- return ret;
738
- };
739
- imports.wbg.__wbg_navigator_1577371c070c8947 = function(arg0) {
740
- const ret = arg0.navigator;
741
- return ret;
742
- };
743
- imports.wbg.__wbg_new0_f788a2397c7ca929 = function() {
744
- const ret = new Date();
745
- return ret;
746
- };
747
- imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
1471
+ }
1472
+ // errors
1473
+ if (val instanceof Error) {
1474
+ return `${val.name}: ${val.message}\n${val.stack}`;
1475
+ }
1476
+ // TODO we could test for more things here, like `Set`s and `Map`s.
1477
+ return className;
1478
+ }
1479
+
1480
+ function getArrayU32FromWasm0(ptr, len) {
1481
+ ptr = ptr >>> 0;
1482
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1483
+ }
1484
+
1485
+ function getArrayU8FromWasm0(ptr, len) {
1486
+ ptr = ptr >>> 0;
1487
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1488
+ }
1489
+
1490
+ let cachedDataViewMemory0 = null;
1491
+ function getDataViewMemory0() {
1492
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
1493
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
1494
+ }
1495
+ return cachedDataViewMemory0;
1496
+ }
1497
+
1498
+ function getStringFromWasm0(ptr, len) {
1499
+ return decodeText(ptr >>> 0, len);
1500
+ }
1501
+
1502
+ let cachedUint32ArrayMemory0 = null;
1503
+ function getUint32ArrayMemory0() {
1504
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
1505
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
1506
+ }
1507
+ return cachedUint32ArrayMemory0;
1508
+ }
1509
+
1510
+ let cachedUint8ArrayMemory0 = null;
1511
+ function getUint8ArrayMemory0() {
1512
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
1513
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
1514
+ }
1515
+ return cachedUint8ArrayMemory0;
1516
+ }
1517
+
1518
+ function handleError(f, args) {
1519
+ try {
1520
+ return f.apply(this, args);
1521
+ } catch (e) {
1522
+ const idx = addToExternrefTable0(e);
1523
+ wasm.__wbindgen_exn_store(idx);
1524
+ }
1525
+ }
1526
+
1527
+ function isLikeNone(x) {
1528
+ return x === undefined || x === null;
1529
+ }
1530
+
1531
+ function makeMutClosure(arg0, arg1, f) {
1532
+ const state = { a: arg0, b: arg1, cnt: 1 };
1533
+ const real = (...args) => {
1534
+
1535
+ // First up with a closure we increment the internal reference
1536
+ // count. This ensures that the Rust closure environment won't
1537
+ // be deallocated while we're invoking it.
1538
+ state.cnt++;
1539
+ const a = state.a;
1540
+ state.a = 0;
748
1541
  try {
749
- var state0 = {a: arg0, b: arg1};
750
- var cb0 = (arg0, arg1) => {
751
- const a = state0.a;
752
- state0.a = 0;
753
- try {
754
- return __wbg_adapter_582(a, state0.b, arg0, arg1);
755
- } finally {
756
- state0.a = a;
757
- }
758
- };
759
- const ret = new Promise(cb0);
760
- return ret;
1542
+ return f(a, state.b, ...args);
761
1543
  } finally {
762
- state0.a = state0.b = 0;
1544
+ state.a = a;
1545
+ real._wbg_cb_unref();
763
1546
  }
764
1547
  };
765
- imports.wbg.__wbg_new_31a97dac4f10fab7 = function(arg0) {
766
- const ret = new Date(arg0);
767
- return ret;
768
- };
769
- imports.wbg.__wbg_new_405e22f390576ce2 = function() {
770
- const ret = new Object();
771
- return ret;
772
- };
773
- imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
774
- const ret = new Map();
775
- return ret;
776
- };
777
- imports.wbg.__wbg_new_78feb108b6472713 = function() {
778
- const ret = new Array();
779
- return ret;
780
- };
781
- imports.wbg.__wbg_new_86231e225ca6b962 = function() { return handleError(function () {
782
- const ret = new XMLHttpRequest();
783
- return ret;
784
- }, arguments) };
785
- imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
786
- const ret = new Uint8Array(arg0);
787
- return ret;
788
- };
789
- imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
790
- const ret = new Function(getStringFromWasm0(arg0, arg1));
791
- return ret;
792
- };
793
- imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
794
- const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
795
- return ret;
796
- };
797
- imports.wbg.__wbg_now_807e54c39636c349 = function() {
798
- const ret = Date.now();
799
- return ret;
800
- };
801
- imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
802
- const ret = arg0.now();
803
- return ret;
804
- };
805
- imports.wbg.__wbg_open_13a598ea50d82926 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
806
- arg0.open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), arg5 !== 0);
807
- }, arguments) };
808
- imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
809
- const ret = arg0.push(arg1);
810
- return ret;
811
- };
812
- imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
813
- queueMicrotask(arg0);
814
- };
815
- imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
816
- const ret = arg0.queueMicrotask;
817
- return ret;
818
- };
819
- imports.wbg.__wbg_queue_1f589e8194b004a6 = function(arg0) {
820
- const ret = arg0.queue;
821
- return ret;
822
- };
823
- imports.wbg.__wbg_requestAdapter_51be7e8ee7d08b87 = function(arg0, arg1) {
824
- const ret = arg0.requestAdapter(arg1);
825
- return ret;
826
- };
827
- imports.wbg.__wbg_requestDevice_338f0085866d40a2 = function(arg0, arg1) {
828
- const ret = arg0.requestDevice(arg1);
829
- return ret;
830
- };
831
- imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
832
- const ret = Promise.resolve(arg0);
833
- return ret;
834
- };
835
- imports.wbg.__wbg_response_49e10f8ee7f418db = function() { return handleError(function (arg0) {
836
- const ret = arg0.response;
837
- return ret;
838
- }, arguments) };
839
- imports.wbg.__wbg_send_190b4155effb7466 = function() { return handleError(function (arg0, arg1, arg2) {
840
- arg0.send(arg1 === 0 ? undefined : getArrayU8FromWasm0(arg1, arg2));
841
- }, arguments) };
842
- imports.wbg.__wbg_send_40a47636ff90f64d = function() { return handleError(function (arg0) {
843
- arg0.send();
844
- }, arguments) };
845
- imports.wbg.__wbg_setBindGroup_306b5f43159153da = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
846
- arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
847
- }, arguments) };
848
- imports.wbg.__wbg_setBindGroup_43392eaf8ea524fa = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
849
- arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
850
- }, arguments) };
851
- imports.wbg.__wbg_setBindGroup_b90f6f79c7be4f96 = function(arg0, arg1, arg2) {
852
- arg0.setBindGroup(arg1 >>> 0, arg2);
853
- };
854
- imports.wbg.__wbg_setBindGroup_d3cd0c65d5718e66 = function(arg0, arg1, arg2) {
855
- arg0.setBindGroup(arg1 >>> 0, arg2);
856
- };
857
- imports.wbg.__wbg_setIndexBuffer_30e80db5e2d70b3f = function(arg0, arg1, arg2, arg3, arg4) {
858
- arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
859
- };
860
- imports.wbg.__wbg_setIndexBuffer_cf65b9a3b9ae2921 = function(arg0, arg1, arg2, arg3) {
861
- arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3);
862
- };
863
- imports.wbg.__wbg_setPipeline_e7c896fa93c7f292 = function(arg0, arg1) {
864
- arg0.setPipeline(arg1);
865
- };
866
- imports.wbg.__wbg_setPipeline_f44bbc63b7455235 = function(arg0, arg1) {
867
- arg0.setPipeline(arg1);
868
- };
869
- imports.wbg.__wbg_setRequestHeader_51d371ad5196f6ef = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
870
- arg0.setRequestHeader(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
871
- }, arguments) };
872
- imports.wbg.__wbg_setScissorRect_b3ae2865d79457e5 = function(arg0, arg1, arg2, arg3, arg4) {
873
- arg0.setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
874
- };
875
- imports.wbg.__wbg_setVertexBuffer_5e5ec203042c0564 = function(arg0, arg1, arg2, arg3, arg4) {
876
- arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
877
- };
878
- imports.wbg.__wbg_setVertexBuffer_950908f301fc83b4 = function(arg0, arg1, arg2, arg3) {
879
- arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
880
- };
881
- imports.wbg.__wbg_setViewport_7969bb1aebd9c210 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
882
- arg0.setViewport(arg1, arg2, arg3, arg4, arg5, arg6);
883
- };
884
- imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
885
- arg0[arg1 >>> 0] = arg2;
886
- };
887
- imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
888
- arg0[arg1] = arg2;
889
- };
890
- imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
891
- arg0.set(arg1, arg2 >>> 0);
892
- };
893
- imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
894
- const ret = arg0.set(arg1, arg2);
895
- return ret;
896
- };
897
- imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
898
- const ret = Reflect.set(arg0, arg1, arg2);
899
- return ret;
900
- }, arguments) };
901
- imports.wbg.__wbg_seta_6ca4b80abcaa9bb0 = function(arg0, arg1) {
902
- arg0.a = arg1;
903
- };
904
- imports.wbg.__wbg_setaccess_c17e0a436ed1d78e = function(arg0, arg1) {
905
- arg0.access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
906
- };
907
- imports.wbg.__wbg_setaddressmodeu_9a2648489304b6c3 = function(arg0, arg1) {
908
- arg0.addressModeU = __wbindgen_enum_GpuAddressMode[arg1];
909
- };
910
- imports.wbg.__wbg_setaddressmodev_911f607ff1319cf6 = function(arg0, arg1) {
911
- arg0.addressModeV = __wbindgen_enum_GpuAddressMode[arg1];
912
- };
913
- imports.wbg.__wbg_setaddressmodew_b7c68665b89d5500 = function(arg0, arg1) {
914
- arg0.addressModeW = __wbindgen_enum_GpuAddressMode[arg1];
915
- };
916
- imports.wbg.__wbg_setalpha_eb6e37beb08f6a6a = function(arg0, arg1) {
917
- arg0.alpha = arg1;
918
- };
919
- imports.wbg.__wbg_setalphamode_2a9be051489d8bbd = function(arg0, arg1) {
920
- arg0.alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
921
- };
922
- imports.wbg.__wbg_setalphatocoverageenabled_1f594c6ef9ae4caa = function(arg0, arg1) {
923
- arg0.alphaToCoverageEnabled = arg1 !== 0;
924
- };
925
- imports.wbg.__wbg_setarraylayercount_93d58eca9387b84c = function(arg0, arg1) {
926
- arg0.arrayLayerCount = arg1 >>> 0;
927
- };
928
- imports.wbg.__wbg_setarraystride_5ace211a6c31af55 = function(arg0, arg1) {
929
- arg0.arrayStride = arg1;
930
- };
931
- imports.wbg.__wbg_setaspect_e3aa9cad44e6338f = function(arg0, arg1) {
932
- arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
933
- };
934
- imports.wbg.__wbg_setattributes_8cfe8a349778ff6d = function(arg0, arg1) {
935
- arg0.attributes = arg1;
936
- };
937
- imports.wbg.__wbg_setb_52915cc78721cadb = function(arg0, arg1) {
938
- arg0.b = arg1;
939
- };
940
- imports.wbg.__wbg_setbasearraylayer_798dcd012d28aafd = function(arg0, arg1) {
941
- arg0.baseArrayLayer = arg1 >>> 0;
942
- };
943
- imports.wbg.__wbg_setbasemiplevel_ff05f0742029fbd7 = function(arg0, arg1) {
944
- arg0.baseMipLevel = arg1 >>> 0;
945
- };
946
- imports.wbg.__wbg_setbeginningofpasswriteindex_90fab5f12cddf335 = function(arg0, arg1) {
947
- arg0.beginningOfPassWriteIndex = arg1 >>> 0;
948
- };
949
- imports.wbg.__wbg_setbeginningofpasswriteindex_ad07a73147217513 = function(arg0, arg1) {
950
- arg0.beginningOfPassWriteIndex = arg1 >>> 0;
951
- };
952
- imports.wbg.__wbg_setbindgrouplayouts_9eff5e187a1db39e = function(arg0, arg1) {
953
- arg0.bindGroupLayouts = arg1;
954
- };
955
- imports.wbg.__wbg_setbinding_3ada8a83c514d419 = function(arg0, arg1) {
956
- arg0.binding = arg1 >>> 0;
957
- };
958
- imports.wbg.__wbg_setbinding_9a389db987313ca9 = function(arg0, arg1) {
959
- arg0.binding = arg1 >>> 0;
960
- };
961
- imports.wbg.__wbg_setblend_15fcdb6fca391aa3 = function(arg0, arg1) {
962
- arg0.blend = arg1;
963
- };
964
- imports.wbg.__wbg_setbuffer_1fbf10c9c273bb39 = function(arg0, arg1) {
965
- arg0.buffer = arg1;
966
- };
967
- imports.wbg.__wbg_setbuffer_581ee8422928bd0d = function(arg0, arg1) {
968
- arg0.buffer = arg1;
969
- };
970
- imports.wbg.__wbg_setbuffer_ac25c198252221bd = function(arg0, arg1) {
971
- arg0.buffer = arg1;
972
- };
973
- imports.wbg.__wbg_setbuffers_4515e14c72e1bc45 = function(arg0, arg1) {
974
- arg0.buffers = arg1;
975
- };
976
- imports.wbg.__wbg_setbytesperrow_4c52e94a64f7b18a = function(arg0, arg1) {
977
- arg0.bytesPerRow = arg1 >>> 0;
978
- };
979
- imports.wbg.__wbg_setbytesperrow_dada68f168446660 = function(arg0, arg1) {
980
- arg0.bytesPerRow = arg1 >>> 0;
981
- };
982
- imports.wbg.__wbg_setclearvalue_9fd25161e3ff7358 = function(arg0, arg1) {
983
- arg0.clearValue = arg1;
984
- };
985
- imports.wbg.__wbg_setcode_1d146372551ab97f = function(arg0, arg1, arg2) {
986
- arg0.code = getStringFromWasm0(arg1, arg2);
987
- };
988
- imports.wbg.__wbg_setcolor_63a788c8828014d8 = function(arg0, arg1) {
989
- arg0.color = arg1;
990
- };
991
- imports.wbg.__wbg_setcolorattachments_b56ec268556eb0af = function(arg0, arg1) {
992
- arg0.colorAttachments = arg1;
993
- };
994
- imports.wbg.__wbg_setcompare_986db63daac4c337 = function(arg0, arg1) {
995
- arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
996
- };
997
- imports.wbg.__wbg_setcompare_b6bd133fd1c7206a = function(arg0, arg1) {
998
- arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
999
- };
1000
- imports.wbg.__wbg_setcompute_edb2d4dd43759577 = function(arg0, arg1) {
1001
- arg0.compute = arg1;
1002
- };
1003
- imports.wbg.__wbg_setcount_6b3574238f446a02 = function(arg0, arg1) {
1004
- arg0.count = arg1 >>> 0;
1005
- };
1006
- imports.wbg.__wbg_setcullmode_f1cc439f208cf7d2 = function(arg0, arg1) {
1007
- arg0.cullMode = __wbindgen_enum_GpuCullMode[arg1];
1008
- };
1009
- imports.wbg.__wbg_setdepthbias_0c225de07a2372b1 = function(arg0, arg1) {
1010
- arg0.depthBias = arg1;
1011
- };
1012
- imports.wbg.__wbg_setdepthbiasclamp_bd34181bc74b8a65 = function(arg0, arg1) {
1013
- arg0.depthBiasClamp = arg1;
1014
- };
1015
- imports.wbg.__wbg_setdepthbiasslopescale_d43ddce65f19c9be = function(arg0, arg1) {
1016
- arg0.depthBiasSlopeScale = arg1;
1017
- };
1018
- imports.wbg.__wbg_setdepthclearvalue_eb76fedd34b20053 = function(arg0, arg1) {
1019
- arg0.depthClearValue = arg1;
1020
- };
1021
- imports.wbg.__wbg_setdepthcompare_491947ed2f6065b9 = function(arg0, arg1) {
1022
- arg0.depthCompare = __wbindgen_enum_GpuCompareFunction[arg1];
1023
- };
1024
- imports.wbg.__wbg_setdepthfailop_4983b01413b9f743 = function(arg0, arg1) {
1025
- arg0.depthFailOp = __wbindgen_enum_GpuStencilOperation[arg1];
1026
- };
1027
- imports.wbg.__wbg_setdepthloadop_c7deb718c4129a2c = function(arg0, arg1) {
1028
- arg0.depthLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
1029
- };
1030
- imports.wbg.__wbg_setdepthorarraylayers_5686e74657700bc2 = function(arg0, arg1) {
1031
- arg0.depthOrArrayLayers = arg1 >>> 0;
1032
- };
1033
- imports.wbg.__wbg_setdepthreadonly_18602250b14fa638 = function(arg0, arg1) {
1034
- arg0.depthReadOnly = arg1 !== 0;
1035
- };
1036
- imports.wbg.__wbg_setdepthstencil_e6069a8b511d1004 = function(arg0, arg1) {
1037
- arg0.depthStencil = arg1;
1038
- };
1039
- imports.wbg.__wbg_setdepthstencilattachment_90d13c414095197d = function(arg0, arg1) {
1040
- arg0.depthStencilAttachment = arg1;
1041
- };
1042
- imports.wbg.__wbg_setdepthstoreop_55f84f2f9039c453 = function(arg0, arg1) {
1043
- arg0.depthStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
1044
- };
1045
- imports.wbg.__wbg_setdepthwriteenabled_e419ffe553654371 = function(arg0, arg1) {
1046
- arg0.depthWriteEnabled = arg1 !== 0;
1047
- };
1048
- imports.wbg.__wbg_setdevice_91facdf766d51abf = function(arg0, arg1) {
1049
- arg0.device = arg1;
1050
- };
1051
- imports.wbg.__wbg_setdimension_47ad758bb7805028 = function(arg0, arg1) {
1052
- arg0.dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
1053
- };
1054
- imports.wbg.__wbg_setdimension_500c3bec57e8ac12 = function(arg0, arg1) {
1055
- arg0.dimension = __wbindgen_enum_GpuTextureDimension[arg1];
1056
- };
1057
- imports.wbg.__wbg_setdstfactor_abdf4d85b8f742b5 = function(arg0, arg1) {
1058
- arg0.dstFactor = __wbindgen_enum_GpuBlendFactor[arg1];
1059
- };
1060
- imports.wbg.__wbg_setendofpasswriteindex_82a42f6ec7d55754 = function(arg0, arg1) {
1061
- arg0.endOfPassWriteIndex = arg1 >>> 0;
1062
- };
1063
- imports.wbg.__wbg_setendofpasswriteindex_bd98b6c885176c21 = function(arg0, arg1) {
1064
- arg0.endOfPassWriteIndex = arg1 >>> 0;
1065
- };
1066
- imports.wbg.__wbg_setentries_136baaaafb25087f = function(arg0, arg1) {
1067
- arg0.entries = arg1;
1068
- };
1069
- imports.wbg.__wbg_setentries_7c41d594195ebe78 = function(arg0, arg1) {
1070
- arg0.entries = arg1;
1071
- };
1072
- imports.wbg.__wbg_setentrypoint_6f3d3792022065f4 = function(arg0, arg1, arg2) {
1073
- arg0.entryPoint = getStringFromWasm0(arg1, arg2);
1074
- };
1075
- imports.wbg.__wbg_setentrypoint_913e091cc9a07667 = function(arg0, arg1, arg2) {
1076
- arg0.entryPoint = getStringFromWasm0(arg1, arg2);
1077
- };
1078
- imports.wbg.__wbg_setentrypoint_96944272d50efb55 = function(arg0, arg1, arg2) {
1079
- arg0.entryPoint = getStringFromWasm0(arg1, arg2);
1080
- };
1081
- imports.wbg.__wbg_setfailop_fd94b46d0cd7c4f2 = function(arg0, arg1) {
1082
- arg0.failOp = __wbindgen_enum_GpuStencilOperation[arg1];
1083
- };
1084
- imports.wbg.__wbg_setformat_29126ee763612515 = function(arg0, arg1) {
1085
- arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1086
- };
1087
- imports.wbg.__wbg_setformat_450c4be578985cb4 = function(arg0, arg1) {
1088
- arg0.format = __wbindgen_enum_GpuVertexFormat[arg1];
1089
- };
1090
- imports.wbg.__wbg_setformat_582f639b8a79115c = function(arg0, arg1) {
1091
- arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1092
- };
1093
- imports.wbg.__wbg_setformat_6ac892268eeef402 = function(arg0, arg1) {
1094
- arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1095
- };
1096
- imports.wbg.__wbg_setformat_a622a57e42ae23e4 = function(arg0, arg1) {
1097
- arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1098
- };
1099
- imports.wbg.__wbg_setformat_bdfc7be2aa989382 = function(arg0, arg1) {
1100
- arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1101
- };
1102
- imports.wbg.__wbg_setformat_c3ba1e26468014ae = function(arg0, arg1) {
1103
- arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1104
- };
1105
- imports.wbg.__wbg_setfragment_84f03cfa83c432b2 = function(arg0, arg1) {
1106
- arg0.fragment = arg1;
1107
- };
1108
- imports.wbg.__wbg_setfrontface_1c87b2e21f85a97f = function(arg0, arg1) {
1109
- arg0.frontFace = __wbindgen_enum_GpuFrontFace[arg1];
1110
- };
1111
- imports.wbg.__wbg_setg_b94c63958617b86c = function(arg0, arg1) {
1112
- arg0.g = arg1;
1113
- };
1114
- imports.wbg.__wbg_sethasdynamicoffset_9dc29179158975e4 = function(arg0, arg1) {
1115
- arg0.hasDynamicOffset = arg1 !== 0;
1116
- };
1117
- imports.wbg.__wbg_setheight_080fa3e226a83750 = function(arg0, arg1) {
1118
- arg0.height = arg1 >>> 0;
1119
- };
1120
- imports.wbg.__wbg_setheight_433680330c9420c3 = function(arg0, arg1) {
1121
- arg0.height = arg1 >>> 0;
1122
- };
1123
- imports.wbg.__wbg_setheight_da683a33fa99843c = function(arg0, arg1) {
1124
- arg0.height = arg1 >>> 0;
1125
- };
1126
- imports.wbg.__wbg_setlabel_034d85243342ac5c = function(arg0, arg1, arg2) {
1127
- arg0.label = getStringFromWasm0(arg1, arg2);
1128
- };
1129
- imports.wbg.__wbg_setlabel_1e2e0069cbf2bd78 = function(arg0, arg1, arg2) {
1130
- arg0.label = getStringFromWasm0(arg1, arg2);
1131
- };
1132
- imports.wbg.__wbg_setlabel_21544401e31cd317 = function(arg0, arg1, arg2) {
1133
- arg0.label = getStringFromWasm0(arg1, arg2);
1134
- };
1135
- imports.wbg.__wbg_setlabel_2312a64e22934a2b = function(arg0, arg1, arg2) {
1136
- arg0.label = getStringFromWasm0(arg1, arg2);
1137
- };
1138
- imports.wbg.__wbg_setlabel_2ed86217d97ea3d5 = function(arg0, arg1, arg2) {
1139
- arg0.label = getStringFromWasm0(arg1, arg2);
1140
- };
1141
- imports.wbg.__wbg_setlabel_3f988ca8291e319f = function(arg0, arg1, arg2) {
1142
- arg0.label = getStringFromWasm0(arg1, arg2);
1143
- };
1144
- imports.wbg.__wbg_setlabel_4e4cb7e7f8cc2b59 = function(arg0, arg1, arg2) {
1145
- arg0.label = getStringFromWasm0(arg1, arg2);
1146
- };
1147
- imports.wbg.__wbg_setlabel_73d706a16d13a23c = function(arg0, arg1, arg2) {
1148
- arg0.label = getStringFromWasm0(arg1, arg2);
1149
- };
1150
- imports.wbg.__wbg_setlabel_81dd67dee9cd4287 = function(arg0, arg1, arg2) {
1151
- arg0.label = getStringFromWasm0(arg1, arg2);
1152
- };
1153
- imports.wbg.__wbg_setlabel_8f9ebe053f8da7a0 = function(arg0, arg1, arg2) {
1154
- arg0.label = getStringFromWasm0(arg1, arg2);
1155
- };
1156
- imports.wbg.__wbg_setlabel_a96e4bdaec7882ee = function(arg0, arg1, arg2) {
1157
- arg0.label = getStringFromWasm0(arg1, arg2);
1158
- };
1159
- imports.wbg.__wbg_setlabel_bfbd23fc748f8f94 = function(arg0, arg1, arg2) {
1160
- arg0.label = getStringFromWasm0(arg1, arg2);
1161
- };
1162
- imports.wbg.__wbg_setlabel_d400966bd7759b26 = function(arg0, arg1, arg2) {
1163
- arg0.label = getStringFromWasm0(arg1, arg2);
1164
- };
1165
- imports.wbg.__wbg_setlabel_e1499888d936ca3f = function(arg0, arg1, arg2) {
1166
- arg0.label = getStringFromWasm0(arg1, arg2);
1167
- };
1168
- imports.wbg.__wbg_setlabel_ecb2c1eab1d46433 = function(arg0, arg1, arg2) {
1169
- arg0.label = getStringFromWasm0(arg1, arg2);
1170
- };
1171
- imports.wbg.__wbg_setlayout_0770a97fe3411616 = function(arg0, arg1) {
1172
- arg0.layout = arg1;
1173
- };
1174
- imports.wbg.__wbg_setlayout_0e88cce0b3d76c31 = function(arg0, arg1) {
1175
- arg0.layout = arg1;
1176
- };
1177
- imports.wbg.__wbg_setlayout_640caab7a290275b = function(arg0, arg1) {
1178
- arg0.layout = arg1;
1179
- };
1180
- imports.wbg.__wbg_setloadop_6725bf0c5b509ae7 = function(arg0, arg1) {
1181
- arg0.loadOp = __wbindgen_enum_GpuLoadOp[arg1];
1182
- };
1183
- imports.wbg.__wbg_setlodmaxclamp_3a51dd81fde72c8d = function(arg0, arg1) {
1184
- arg0.lodMaxClamp = arg1;
1185
- };
1186
- imports.wbg.__wbg_setlodminclamp_f48943c1f01e12f9 = function(arg0, arg1) {
1187
- arg0.lodMinClamp = arg1;
1188
- };
1189
- imports.wbg.__wbg_setmagfilter_5794fd33d3902192 = function(arg0, arg1) {
1190
- arg0.magFilter = __wbindgen_enum_GpuFilterMode[arg1];
1191
- };
1192
- imports.wbg.__wbg_setmappedatcreation_e0c884a30f64323b = function(arg0, arg1) {
1193
- arg0.mappedAtCreation = arg1 !== 0;
1194
- };
1195
- imports.wbg.__wbg_setmask_9094d3e3f6f3a7dc = function(arg0, arg1) {
1196
- arg0.mask = arg1 >>> 0;
1197
- };
1198
- imports.wbg.__wbg_setmaxanisotropy_1377b74addad8758 = function(arg0, arg1) {
1199
- arg0.maxAnisotropy = arg1;
1200
- };
1201
- imports.wbg.__wbg_setminbindingsize_4a9f4d0d9ee579af = function(arg0, arg1) {
1202
- arg0.minBindingSize = arg1;
1203
- };
1204
- imports.wbg.__wbg_setminfilter_32dc39202a18cd7b = function(arg0, arg1) {
1205
- arg0.minFilter = __wbindgen_enum_GpuFilterMode[arg1];
1206
- };
1207
- imports.wbg.__wbg_setmiplevel_992f82e991b163b8 = function(arg0, arg1) {
1208
- arg0.mipLevel = arg1 >>> 0;
1209
- };
1210
- imports.wbg.__wbg_setmiplevelcount_1d13855f7726190c = function(arg0, arg1) {
1211
- arg0.mipLevelCount = arg1 >>> 0;
1212
- };
1213
- imports.wbg.__wbg_setmiplevelcount_a5a0102e4248e5bb = function(arg0, arg1) {
1214
- arg0.mipLevelCount = arg1 >>> 0;
1215
- };
1216
- imports.wbg.__wbg_setmipmapfilter_00493c30d94b571e = function(arg0, arg1) {
1217
- arg0.mipmapFilter = __wbindgen_enum_GpuMipmapFilterMode[arg1];
1218
- };
1219
- imports.wbg.__wbg_setmodule_3b5d2caf4d494fba = function(arg0, arg1) {
1220
- arg0.module = arg1;
1221
- };
1222
- imports.wbg.__wbg_setmodule_882651860e912779 = function(arg0, arg1) {
1223
- arg0.module = arg1;
1224
- };
1225
- imports.wbg.__wbg_setmodule_b46c4a937ee89c3b = function(arg0, arg1) {
1226
- arg0.module = arg1;
1227
- };
1228
- imports.wbg.__wbg_setmultisample_0a38af2e310bacc6 = function(arg0, arg1) {
1229
- arg0.multisample = arg1;
1230
- };
1231
- imports.wbg.__wbg_setmultisampled_f2de771b3ad62ff3 = function(arg0, arg1) {
1232
- arg0.multisampled = arg1 !== 0;
1233
- };
1234
- imports.wbg.__wbg_setoffset_2f662a67531a826b = function(arg0, arg1) {
1235
- arg0.offset = arg1;
1236
- };
1237
- imports.wbg.__wbg_setoffset_31c0a660f535c545 = function(arg0, arg1) {
1238
- arg0.offset = arg1;
1239
- };
1240
- imports.wbg.__wbg_setoffset_3eb0797dcc9c9464 = function(arg0, arg1) {
1241
- arg0.offset = arg1;
1242
- };
1243
- imports.wbg.__wbg_setoffset_a675629849c5f3b4 = function(arg0, arg1) {
1244
- arg0.offset = arg1;
1245
- };
1246
- imports.wbg.__wbg_setoperation_879618283d591339 = function(arg0, arg1) {
1247
- arg0.operation = __wbindgen_enum_GpuBlendOperation[arg1];
1248
- };
1249
- imports.wbg.__wbg_setorigin_11de57058b4d23fb = function(arg0, arg1) {
1250
- arg0.origin = arg1;
1251
- };
1252
- imports.wbg.__wbg_setpassop_238c7cbc20505ae9 = function(arg0, arg1) {
1253
- arg0.passOp = __wbindgen_enum_GpuStencilOperation[arg1];
1254
- };
1255
- imports.wbg.__wbg_setpowerpreference_f4cead100f48bab0 = function(arg0, arg1) {
1256
- arg0.powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
1257
- };
1258
- imports.wbg.__wbg_setprimitive_01150af3e98fb372 = function(arg0, arg1) {
1259
- arg0.primitive = arg1;
1260
- };
1261
- imports.wbg.__wbg_setqueryset_8441106911a3af36 = function(arg0, arg1) {
1262
- arg0.querySet = arg1;
1263
- };
1264
- imports.wbg.__wbg_setqueryset_9921033bb33d882c = function(arg0, arg1) {
1265
- arg0.querySet = arg1;
1266
- };
1267
- imports.wbg.__wbg_setr_08c1678b22216ee0 = function(arg0, arg1) {
1268
- arg0.r = arg1;
1269
- };
1270
- imports.wbg.__wbg_setrequiredfeatures_e9ee2e22feba0db3 = function(arg0, arg1) {
1271
- arg0.requiredFeatures = arg1;
1272
- };
1273
- imports.wbg.__wbg_setresolvetarget_d00e2ef5a7388503 = function(arg0, arg1) {
1274
- arg0.resolveTarget = arg1;
1275
- };
1276
- imports.wbg.__wbg_setresource_5a4cc69a127b394e = function(arg0, arg1) {
1277
- arg0.resource = arg1;
1278
- };
1279
- imports.wbg.__wbg_setresponseType_4267195f737262d5 = function(arg0, arg1) {
1280
- arg0.responseType = __wbindgen_enum_XmlHttpRequestResponseType[arg1];
1281
- };
1282
- imports.wbg.__wbg_setrowsperimage_678794ed5e8f43cd = function(arg0, arg1) {
1283
- arg0.rowsPerImage = arg1 >>> 0;
1284
- };
1285
- imports.wbg.__wbg_setrowsperimage_f456122723767189 = function(arg0, arg1) {
1286
- arg0.rowsPerImage = arg1 >>> 0;
1287
- };
1288
- imports.wbg.__wbg_setsamplecount_c44a2a6eebe72dcc = function(arg0, arg1) {
1289
- arg0.sampleCount = arg1 >>> 0;
1290
- };
1291
- imports.wbg.__wbg_setsampler_ab33334fb83c5a17 = function(arg0, arg1) {
1292
- arg0.sampler = arg1;
1293
- };
1294
- imports.wbg.__wbg_setsampletype_89fd8e71274ee6c2 = function(arg0, arg1) {
1295
- arg0.sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
1296
- };
1297
- imports.wbg.__wbg_setshaderlocation_b905e964144cc9ad = function(arg0, arg1) {
1298
- arg0.shaderLocation = arg1 >>> 0;
1299
- };
1300
- imports.wbg.__wbg_setsize_a877ed6f434871bd = function(arg0, arg1) {
1301
- arg0.size = arg1;
1302
- };
1303
- imports.wbg.__wbg_setsize_b2cab7e432ec25dc = function(arg0, arg1) {
1304
- arg0.size = arg1;
1305
- };
1306
- imports.wbg.__wbg_setsize_c167af29ed0f618c = function(arg0, arg1) {
1307
- arg0.size = arg1;
1308
- };
1309
- imports.wbg.__wbg_setsrcfactor_3bf35cc93f12e8c2 = function(arg0, arg1) {
1310
- arg0.srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
1311
- };
1312
- imports.wbg.__wbg_setstencilback_6d0e3812c09eb489 = function(arg0, arg1) {
1313
- arg0.stencilBack = arg1;
1314
- };
1315
- imports.wbg.__wbg_setstencilclearvalue_53b51b80af22b8a4 = function(arg0, arg1) {
1316
- arg0.stencilClearValue = arg1 >>> 0;
1317
- };
1318
- imports.wbg.__wbg_setstencilfront_223b59e436e04d2d = function(arg0, arg1) {
1319
- arg0.stencilFront = arg1;
1320
- };
1321
- imports.wbg.__wbg_setstencilloadop_d88ff17c1f14f3b3 = function(arg0, arg1) {
1322
- arg0.stencilLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
1323
- };
1324
- imports.wbg.__wbg_setstencilreadmask_f7b2d22f2682c8f6 = function(arg0, arg1) {
1325
- arg0.stencilReadMask = arg1 >>> 0;
1326
- };
1327
- imports.wbg.__wbg_setstencilreadonly_6fba8956bae14007 = function(arg0, arg1) {
1328
- arg0.stencilReadOnly = arg1 !== 0;
1329
- };
1330
- imports.wbg.__wbg_setstencilstoreop_9637a0cb039fc7bb = function(arg0, arg1) {
1331
- arg0.stencilStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
1332
- };
1333
- imports.wbg.__wbg_setstencilwritemask_fc2b202439c71444 = function(arg0, arg1) {
1334
- arg0.stencilWriteMask = arg1 >>> 0;
1335
- };
1336
- imports.wbg.__wbg_setstepmode_953dbc499c2ea5db = function(arg0, arg1) {
1337
- arg0.stepMode = __wbindgen_enum_GpuVertexStepMode[arg1];
1338
- };
1339
- imports.wbg.__wbg_setstoragetexture_0634dd6c87ac1132 = function(arg0, arg1) {
1340
- arg0.storageTexture = arg1;
1341
- };
1342
- imports.wbg.__wbg_setstoreop_d6e36afb7a3bc15a = function(arg0, arg1) {
1343
- arg0.storeOp = __wbindgen_enum_GpuStoreOp[arg1];
1344
- };
1345
- imports.wbg.__wbg_setstripindexformat_6813dd6e867de4f2 = function(arg0, arg1) {
1346
- arg0.stripIndexFormat = __wbindgen_enum_GpuIndexFormat[arg1];
1347
- };
1348
- imports.wbg.__wbg_settargets_0ab03a33d2c15ccd = function(arg0, arg1) {
1349
- arg0.targets = arg1;
1350
- };
1351
- imports.wbg.__wbg_settexture_72c4d60403590233 = function(arg0, arg1) {
1352
- arg0.texture = arg1;
1353
- };
1354
- imports.wbg.__wbg_settexture_9dc3759e93cfbb84 = function(arg0, arg1) {
1355
- arg0.texture = arg1;
1356
- };
1357
- imports.wbg.__wbg_settimeout_0354c6307cd5eae8 = function(arg0, arg1) {
1358
- arg0.timeout = arg1 >>> 0;
1359
- };
1360
- imports.wbg.__wbg_settimestampwrites_736aa6c2c69ccaea = function(arg0, arg1) {
1361
- arg0.timestampWrites = arg1;
1362
- };
1363
- imports.wbg.__wbg_settimestampwrites_be461aab39b4e744 = function(arg0, arg1) {
1364
- arg0.timestampWrites = arg1;
1365
- };
1366
- imports.wbg.__wbg_settopology_84962f44b37e8986 = function(arg0, arg1) {
1367
- arg0.topology = __wbindgen_enum_GpuPrimitiveTopology[arg1];
1368
- };
1369
- imports.wbg.__wbg_settype_4ff365ea9ad896aa = function(arg0, arg1) {
1370
- arg0.type = __wbindgen_enum_GpuBufferBindingType[arg1];
1371
- };
1372
- imports.wbg.__wbg_settype_b4b2fc6fbad39aeb = function(arg0, arg1) {
1373
- arg0.type = __wbindgen_enum_GpuSamplerBindingType[arg1];
1374
- };
1375
- imports.wbg.__wbg_setusage_3bf7bce356282919 = function(arg0, arg1) {
1376
- arg0.usage = arg1 >>> 0;
1377
- };
1378
- imports.wbg.__wbg_setusage_48c9e7b82b575c9a = function(arg0, arg1) {
1379
- arg0.usage = arg1 >>> 0;
1380
- };
1381
- imports.wbg.__wbg_setusage_a102e6844c6a65de = function(arg0, arg1) {
1382
- arg0.usage = arg1 >>> 0;
1383
- };
1384
- imports.wbg.__wbg_setusage_ea5e5efc19daea09 = function(arg0, arg1) {
1385
- arg0.usage = arg1 >>> 0;
1386
- };
1387
- imports.wbg.__wbg_setvertex_96327c405a801524 = function(arg0, arg1) {
1388
- arg0.vertex = arg1;
1389
- };
1390
- imports.wbg.__wbg_setview_2d2806aa6c5822ca = function(arg0, arg1) {
1391
- arg0.view = arg1;
1392
- };
1393
- imports.wbg.__wbg_setview_b7216eb00b7f584a = function(arg0, arg1) {
1394
- arg0.view = arg1;
1395
- };
1396
- imports.wbg.__wbg_setviewdimension_c6aedf84f79e2593 = function(arg0, arg1) {
1397
- arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
1398
- };
1399
- imports.wbg.__wbg_setviewdimension_ccb64a21a1495106 = function(arg0, arg1) {
1400
- arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
1401
- };
1402
- imports.wbg.__wbg_setviewformats_65a3ce6335913be2 = function(arg0, arg1) {
1403
- arg0.viewFormats = arg1;
1404
- };
1405
- imports.wbg.__wbg_setviewformats_d7be9eae49a0933b = function(arg0, arg1) {
1406
- arg0.viewFormats = arg1;
1407
- };
1408
- imports.wbg.__wbg_setvisibility_3445d21752d17ded = function(arg0, arg1) {
1409
- arg0.visibility = arg1 >>> 0;
1410
- };
1411
- imports.wbg.__wbg_setwidth_660ca581e3fbe279 = function(arg0, arg1) {
1412
- arg0.width = arg1 >>> 0;
1413
- };
1414
- imports.wbg.__wbg_setwidth_c5fed9f5e7f0b406 = function(arg0, arg1) {
1415
- arg0.width = arg1 >>> 0;
1416
- };
1417
- imports.wbg.__wbg_setwidth_ff3dae6ae4838a9e = function(arg0, arg1) {
1418
- arg0.width = arg1 >>> 0;
1419
- };
1420
- imports.wbg.__wbg_setwritemask_b94f0c67654d5b00 = function(arg0, arg1) {
1421
- arg0.writeMask = arg1 >>> 0;
1422
- };
1423
- imports.wbg.__wbg_setx_cb03e4f7e9c6b588 = function(arg0, arg1) {
1424
- arg0.x = arg1 >>> 0;
1425
- };
1426
- imports.wbg.__wbg_sety_ca78b7606a8f2c0c = function(arg0, arg1) {
1427
- arg0.y = arg1 >>> 0;
1428
- };
1429
- imports.wbg.__wbg_setz_5389d800d9ef03b4 = function(arg0, arg1) {
1430
- arg0.z = arg1 >>> 0;
1431
- };
1432
- imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
1433
- const ret = typeof global === 'undefined' ? null : global;
1434
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1435
- };
1436
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
1437
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
1438
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1439
- };
1440
- imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
1441
- const ret = typeof self === 'undefined' ? null : self;
1442
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1443
- };
1444
- imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
1445
- const ret = typeof window === 'undefined' ? null : window;
1446
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1447
- };
1448
- imports.wbg.__wbg_statusText_6f96b7515fb97af8 = function() { return handleError(function (arg0, arg1) {
1449
- const ret = arg1.statusText;
1450
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1451
- const len1 = WASM_VECTOR_LEN;
1452
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1453
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1454
- }, arguments) };
1455
- imports.wbg.__wbg_status_12bcf88a8ff51470 = function() { return handleError(function (arg0) {
1456
- const ret = arg0.status;
1457
- return ret;
1458
- }, arguments) };
1459
- imports.wbg.__wbg_submit_522f9e0b9d7e22fd = function(arg0, arg1) {
1460
- arg0.submit(arg1);
1461
- };
1462
- imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
1463
- const ret = arg0.then(arg1);
1464
- return ret;
1465
- };
1466
- imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
1467
- const ret = arg0.then(arg1, arg2);
1468
- return ret;
1469
- };
1470
- imports.wbg.__wbg_unmap_a7fc4fb3238304a4 = function(arg0) {
1471
- arg0.unmap();
1472
- };
1473
- imports.wbg.__wbg_width_5dde457d606ba683 = function(arg0) {
1474
- const ret = arg0.width;
1475
- return ret;
1476
- };
1477
- imports.wbg.__wbg_width_8fe4e8f77479c2a6 = function(arg0) {
1478
- const ret = arg0.width;
1479
- return ret;
1480
- };
1481
- imports.wbg.__wbg_width_f0759bd8bad335bd = function(arg0) {
1482
- const ret = arg0.width;
1483
- return ret;
1484
- };
1485
- imports.wbg.__wbg_writeBuffer_b3540dd159ff60f1 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1486
- arg0.writeBuffer(arg1, arg2, arg3, arg4, arg5);
1487
- }, arguments) };
1488
- imports.wbg.__wbg_writeTexture_2f9937d7cf0d5da0 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1489
- arg0.writeTexture(arg1, arg2, arg3, arg4);
1490
- }, arguments) };
1491
- imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
1492
- const ret = arg0;
1493
- return ret;
1494
- };
1495
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
1496
- const ret = BigInt.asUintN(64, arg0);
1497
- return ret;
1498
- };
1499
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
1500
- const obj = arg0.original;
1501
- if (obj.cnt-- == 1) {
1502
- obj.a = 0;
1503
- return true;
1548
+ real._wbg_cb_unref = () => {
1549
+ if (--state.cnt === 0) {
1550
+ wasm.__wbindgen_destroy_closure(state.a, state.b);
1551
+ state.a = 0;
1552
+ CLOSURE_DTORS.unregister(state);
1504
1553
  }
1505
- const ret = false;
1506
- return ret;
1507
- };
1508
- imports.wbg.__wbindgen_closure_wrapper19278 = function(arg0, arg1, arg2) {
1509
- const ret = makeMutClosure(arg0, arg1, 5115, __wbg_adapter_34);
1510
- return ret;
1511
- };
1512
- imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
1513
- const ret = debugString(arg1);
1514
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1515
- const len1 = WASM_VECTOR_LEN;
1516
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1517
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1518
- };
1519
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
1520
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1521
- return ret;
1522
- };
1523
- imports.wbg.__wbindgen_init_externref_table = function() {
1524
- const table = wasm.__wbindgen_export_4;
1525
- const offset = table.grow(4);
1526
- table.set(0, undefined);
1527
- table.set(offset + 0, undefined);
1528
- table.set(offset + 1, null);
1529
- table.set(offset + 2, true);
1530
- table.set(offset + 3, false);
1531
- ;
1532
- };
1533
- imports.wbg.__wbindgen_is_function = function(arg0) {
1534
- const ret = typeof(arg0) === 'function';
1535
- return ret;
1536
- };
1537
- imports.wbg.__wbindgen_is_null = function(arg0) {
1538
- const ret = arg0 === null;
1539
- return ret;
1540
- };
1541
- imports.wbg.__wbindgen_is_string = function(arg0) {
1542
- const ret = typeof(arg0) === 'string';
1543
- return ret;
1544
- };
1545
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
1546
- const ret = arg0 === undefined;
1547
- return ret;
1548
- };
1549
- imports.wbg.__wbindgen_memory = function() {
1550
- const ret = wasm.memory;
1551
- return ret;
1552
- };
1553
- imports.wbg.__wbindgen_number_new = function(arg0) {
1554
- const ret = arg0;
1555
- return ret;
1556
- };
1557
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
1558
- const ret = getStringFromWasm0(arg0, arg1);
1559
- return ret;
1560
- };
1561
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
1562
- throw new Error(getStringFromWasm0(arg0, arg1));
1563
1554
  };
1555
+ CLOSURE_DTORS.register(real, state, state);
1556
+ return real;
1557
+ }
1558
+
1559
+ function passStringToWasm0(arg, malloc, realloc) {
1560
+ if (realloc === undefined) {
1561
+ const buf = cachedTextEncoder.encode(arg);
1562
+ const ptr = malloc(buf.length, 1) >>> 0;
1563
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
1564
+ WASM_VECTOR_LEN = buf.length;
1565
+ return ptr;
1566
+ }
1567
+
1568
+ let len = arg.length;
1569
+ let ptr = malloc(len, 1) >>> 0;
1570
+
1571
+ const mem = getUint8ArrayMemory0();
1572
+
1573
+ let offset = 0;
1564
1574
 
1565
- return imports;
1575
+ for (; offset < len; offset++) {
1576
+ const code = arg.charCodeAt(offset);
1577
+ if (code > 0x7F) break;
1578
+ mem[ptr + offset] = code;
1579
+ }
1580
+ if (offset !== len) {
1581
+ if (offset !== 0) {
1582
+ arg = arg.slice(offset);
1583
+ }
1584
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
1585
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
1586
+ const ret = cachedTextEncoder.encodeInto(arg, view);
1587
+
1588
+ offset += ret.written;
1589
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
1590
+ }
1591
+
1592
+ WASM_VECTOR_LEN = offset;
1593
+ return ptr;
1566
1594
  }
1567
1595
 
1568
- function __wbg_init_memory(imports, memory) {
1596
+ function takeFromExternrefTable0(idx) {
1597
+ const value = wasm.__wbindgen_externrefs.get(idx);
1598
+ wasm.__externref_table_dealloc(idx);
1599
+ return value;
1600
+ }
1569
1601
 
1602
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
1603
+ cachedTextDecoder.decode();
1604
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
1605
+ let numBytesDecoded = 0;
1606
+ function decodeText(ptr, len) {
1607
+ numBytesDecoded += len;
1608
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
1609
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
1610
+ cachedTextDecoder.decode();
1611
+ numBytesDecoded = len;
1612
+ }
1613
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
1570
1614
  }
1571
1615
 
1616
+ const cachedTextEncoder = new TextEncoder();
1617
+
1618
+ if (!('encodeInto' in cachedTextEncoder)) {
1619
+ cachedTextEncoder.encodeInto = function (arg, view) {
1620
+ const buf = cachedTextEncoder.encode(arg);
1621
+ view.set(buf);
1622
+ return {
1623
+ read: arg.length,
1624
+ written: buf.length
1625
+ };
1626
+ };
1627
+ }
1628
+
1629
+ let WASM_VECTOR_LEN = 0;
1630
+
1631
+ let wasmModule, wasmInstance, wasm;
1572
1632
  function __wbg_finalize_init(instance, module) {
1633
+ wasmInstance = instance;
1573
1634
  wasm = instance.exports;
1574
- __wbg_init.__wbindgen_wasm_module = module;
1635
+ wasmModule = module;
1575
1636
  cachedDataViewMemory0 = null;
1576
1637
  cachedUint32ArrayMemory0 = null;
1577
1638
  cachedUint8ArrayMemory0 = null;
1578
-
1579
-
1580
1639
  wasm.__wbindgen_start();
1581
1640
  return wasm;
1582
1641
  }
1583
1642
 
1643
+ async function __wbg_load(module, imports) {
1644
+ if (typeof Response === 'function' && module instanceof Response) {
1645
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
1646
+ try {
1647
+ return await WebAssembly.instantiateStreaming(module, imports);
1648
+ } catch (e) {
1649
+ const validResponse = module.ok && expectedResponseType(module.type);
1650
+
1651
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
1652
+ 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);
1653
+
1654
+ } else { throw e; }
1655
+ }
1656
+ }
1657
+
1658
+ const bytes = await module.arrayBuffer();
1659
+ return await WebAssembly.instantiate(bytes, imports);
1660
+ } else {
1661
+ const instance = await WebAssembly.instantiate(module, imports);
1662
+
1663
+ if (instance instanceof WebAssembly.Instance) {
1664
+ return { instance, module };
1665
+ } else {
1666
+ return instance;
1667
+ }
1668
+ }
1669
+
1670
+ function expectedResponseType(type) {
1671
+ switch (type) {
1672
+ case 'basic': case 'cors': case 'default': return true;
1673
+ }
1674
+ return false;
1675
+ }
1676
+ }
1677
+
1584
1678
  function initSync(module) {
1585
1679
  if (wasm !== undefined) return wasm;
1586
1680
 
1587
1681
 
1588
- if (typeof module !== 'undefined') {
1682
+ if (module !== undefined) {
1589
1683
  if (Object.getPrototypeOf(module) === Object.prototype) {
1590
1684
  ({module} = module)
1591
1685
  } else {
@@ -1594,15 +1688,10 @@ function initSync(module) {
1594
1688
  }
1595
1689
 
1596
1690
  const imports = __wbg_get_imports();
1597
-
1598
- __wbg_init_memory(imports);
1599
-
1600
1691
  if (!(module instanceof WebAssembly.Module)) {
1601
1692
  module = new WebAssembly.Module(module);
1602
1693
  }
1603
-
1604
1694
  const instance = new WebAssembly.Instance(module, imports);
1605
-
1606
1695
  return __wbg_finalize_init(instance, module);
1607
1696
  }
1608
1697
 
@@ -1610,7 +1699,7 @@ async function __wbg_init(module_or_path) {
1610
1699
  if (wasm !== undefined) return wasm;
1611
1700
 
1612
1701
 
1613
- if (typeof module_or_path !== 'undefined') {
1702
+ if (module_or_path !== undefined) {
1614
1703
  if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
1615
1704
  ({module_or_path} = module_or_path)
1616
1705
  } else {
@@ -1618,7 +1707,7 @@ async function __wbg_init(module_or_path) {
1618
1707
  }
1619
1708
  }
1620
1709
 
1621
- if (typeof module_or_path === 'undefined') {
1710
+ if (module_or_path === undefined) {
1622
1711
  module_or_path = new URL('runmat_lsp_bg.wasm', import.meta.url);
1623
1712
  }
1624
1713
  const imports = __wbg_get_imports();
@@ -1627,12 +1716,9 @@ async function __wbg_init(module_or_path) {
1627
1716
  module_or_path = fetch(module_or_path);
1628
1717
  }
1629
1718
 
1630
- __wbg_init_memory(imports);
1631
-
1632
1719
  const { instance, module } = await __wbg_load(await module_or_path, imports);
1633
1720
 
1634
1721
  return __wbg_finalize_init(instance, module);
1635
1722
  }
1636
1723
 
1637
- export { initSync };
1638
- export default __wbg_init;
1724
+ export { initSync, __wbg_init as default };