@paged-media/canvas-wasm 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -0
- package/paged_canvas_wasm.d.ts +2027 -0
- package/paged_canvas_wasm.js +1912 -0
- package/paged_canvas_wasm_bg.wasm +0 -0
|
@@ -0,0 +1,1912 @@
|
|
|
1
|
+
/* @ts-self-types="./paged_canvas_wasm.d.ts" */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Worker-side state holder. The JS worker creates one of these
|
|
5
|
+
* per worker lifetime and forwards `MessageEvent.data` to
|
|
6
|
+
* `handle_message` after JSON parsing.
|
|
7
|
+
*/
|
|
8
|
+
export class CanvasWorker {
|
|
9
|
+
__destroy_into_raw() {
|
|
10
|
+
const ptr = this.__wbg_ptr;
|
|
11
|
+
this.__wbg_ptr = 0;
|
|
12
|
+
CanvasWorkerFinalization.unregister(this);
|
|
13
|
+
return ptr;
|
|
14
|
+
}
|
|
15
|
+
free() {
|
|
16
|
+
const ptr = this.__destroy_into_raw();
|
|
17
|
+
wasm.__wbg_canvasworker_free(ptr, 0);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Phase 3 — caret geometry for a JSON-encoded
|
|
21
|
+
* `ContentSelection`. Returns a JSON-encoded `CaretGeometry`
|
|
22
|
+
* or `null` when the selection's story has no captured
|
|
23
|
+
* layout. The Overlay calls this on selection change to
|
|
24
|
+
* position the caret.
|
|
25
|
+
* @param {string} selection_json
|
|
26
|
+
* @returns {string | undefined}
|
|
27
|
+
*/
|
|
28
|
+
caretGeometryJson(selection_json) {
|
|
29
|
+
const ptr0 = passStringToWasm0(selection_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
30
|
+
const len0 = WASM_VECTOR_LEN;
|
|
31
|
+
const ret = wasm.canvasworker_caretGeometryJson(this.__wbg_ptr, ptr0, len0);
|
|
32
|
+
let v2;
|
|
33
|
+
if (ret[0] !== 0) {
|
|
34
|
+
v2 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
35
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
36
|
+
}
|
|
37
|
+
return v2;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Whether GPU is initialised. The worker checks this each
|
|
41
|
+
* frame to decide which render path to take. Cheap; just a
|
|
42
|
+
* pointer-null check.
|
|
43
|
+
* @returns {boolean}
|
|
44
|
+
*/
|
|
45
|
+
gpuReady() {
|
|
46
|
+
const ret = wasm.canvasworker_gpuReady(this.__wbg_ptr);
|
|
47
|
+
return ret !== 0;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* simple — no nested serde-wasm-bindgen conversions, just
|
|
51
|
+
* `Vec<u8>` bytes in and bytes out.
|
|
52
|
+
* @param {string} input
|
|
53
|
+
* @returns {string}
|
|
54
|
+
*/
|
|
55
|
+
handleMessage(input) {
|
|
56
|
+
let deferred2_0;
|
|
57
|
+
let deferred2_1;
|
|
58
|
+
try {
|
|
59
|
+
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
60
|
+
const len0 = WASM_VECTOR_LEN;
|
|
61
|
+
const ret = wasm.canvasworker_handleMessage(this.__wbg_ptr, ptr0, len0);
|
|
62
|
+
deferred2_0 = ret[0];
|
|
63
|
+
deferred2_1 = ret[1];
|
|
64
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
65
|
+
} finally {
|
|
66
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Initialise the WebGPU + Vello surface presenter against
|
|
71
|
+
* `canvas`. Async because the browser's adapter and device
|
|
72
|
+
* requests are Promise-based. On success the worker can call
|
|
73
|
+
* `presentFrame` per render tick; on failure the worker
|
|
74
|
+
* stays on the CPU snapshot-blit fallback path.
|
|
75
|
+
*
|
|
76
|
+
* `width` / `height` are device-pixel dimensions; the JS
|
|
77
|
+
* caller passes `canvas.width` and `canvas.height` which it
|
|
78
|
+
* has already sized to `cssWidth * dpr`.
|
|
79
|
+
* @param {OffscreenCanvas} canvas
|
|
80
|
+
* @param {number} width
|
|
81
|
+
* @param {number} height
|
|
82
|
+
* @returns {Promise<boolean>}
|
|
83
|
+
*/
|
|
84
|
+
initGpu(canvas, width, height) {
|
|
85
|
+
const ret = wasm.canvasworker_initGpu(this.__wbg_ptr, canvas, width, height);
|
|
86
|
+
return ret;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Direct binary entry point for `loadDocument`. Bypasses the
|
|
90
|
+
* JSON channel so multi-MB IDMLs don't have to ride as a
|
|
91
|
+
* 8×-inflated `number[]` array (which on wasm32 trips the
|
|
92
|
+
* 2 GB `Vec::with_capacity` cap during serde parse — the
|
|
93
|
+
* megapacks ≥100 MB panic with "capacity overflow" through
|
|
94
|
+
* the JSON path). Returns a JSON string that the JS side
|
|
95
|
+
* parses with the same `WorkerToMain` shape `handleMessage`
|
|
96
|
+
* would produce — `documentLoaded` on success, `loadFailed`
|
|
97
|
+
* otherwise.
|
|
98
|
+
* @param {number} seq
|
|
99
|
+
* @param {Uint8Array} bytes
|
|
100
|
+
* @param {Uint8Array | null} [font]
|
|
101
|
+
* @param {Uint8Array | null} [cmyk_icc_profile]
|
|
102
|
+
* @returns {string}
|
|
103
|
+
*/
|
|
104
|
+
loadDocumentDirect(seq, bytes, font, cmyk_icc_profile) {
|
|
105
|
+
let deferred4_0;
|
|
106
|
+
let deferred4_1;
|
|
107
|
+
try {
|
|
108
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
109
|
+
const len0 = WASM_VECTOR_LEN;
|
|
110
|
+
var ptr1 = isLikeNone(font) ? 0 : passArray8ToWasm0(font, wasm.__wbindgen_malloc);
|
|
111
|
+
var len1 = WASM_VECTOR_LEN;
|
|
112
|
+
var ptr2 = isLikeNone(cmyk_icc_profile) ? 0 : passArray8ToWasm0(cmyk_icc_profile, wasm.__wbindgen_malloc);
|
|
113
|
+
var len2 = WASM_VECTOR_LEN;
|
|
114
|
+
const ret = wasm.canvasworker_loadDocumentDirect(this.__wbg_ptr, seq, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
115
|
+
deferred4_0 = ret[0];
|
|
116
|
+
deferred4_1 = ret[1];
|
|
117
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
118
|
+
} finally {
|
|
119
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
constructor() {
|
|
123
|
+
const ret = wasm.canvasworker_new();
|
|
124
|
+
this.__wbg_ptr = ret;
|
|
125
|
+
CanvasWorkerFinalization.register(this, this.__wbg_ptr, this);
|
|
126
|
+
return this;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Number of pages in the loaded document, or 0 if no
|
|
130
|
+
* document is loaded.
|
|
131
|
+
* @returns {number}
|
|
132
|
+
*/
|
|
133
|
+
pageCount() {
|
|
134
|
+
const ret = wasm.canvasworker_pageCount(this.__wbg_ptr);
|
|
135
|
+
return ret >>> 0;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Per-page dimensions for the worker's render loop. Returns
|
|
139
|
+
* a flat `[page_id_len, ...page_id_utf8, w_pt, h_pt]`-style
|
|
140
|
+
* blob? No — wasm-bindgen handles `Vec<JsValue>` poorly.
|
|
141
|
+
* Easier: each call returns one page; iterate by index.
|
|
142
|
+
* Returns `None` past the end. Tuple is `[page_id, w_pt, h_pt]`
|
|
143
|
+
* serialised as a JS array.
|
|
144
|
+
* @param {number} index
|
|
145
|
+
* @returns {Array<any> | undefined}
|
|
146
|
+
*/
|
|
147
|
+
pageInfo(index) {
|
|
148
|
+
const ret = wasm.canvasworker_pageInfo(this.__wbg_ptr, index);
|
|
149
|
+
return ret;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Render the visible pages at the current camera into the
|
|
153
|
+
* bound surface. Camera operates in CSS pixels; the
|
|
154
|
+
* presenter applies `dpr` internally as we bake it into the
|
|
155
|
+
* per-page transforms below.
|
|
156
|
+
*
|
|
157
|
+
* Returns `false` if the surface presenter isn't initialised
|
|
158
|
+
* or no document is loaded — the worker falls back to its
|
|
159
|
+
* CPU path in that case.
|
|
160
|
+
* @param {number} scale
|
|
161
|
+
* @param {number} tx
|
|
162
|
+
* @param {number} ty
|
|
163
|
+
* @param {number} dpr
|
|
164
|
+
* @returns {boolean}
|
|
165
|
+
*/
|
|
166
|
+
presentFrame(scale, tx, ty, dpr) {
|
|
167
|
+
const ret = wasm.canvasworker_presentFrame(this.__wbg_ptr, scale, tx, ty, dpr);
|
|
168
|
+
if (ret[2]) {
|
|
169
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
170
|
+
}
|
|
171
|
+
return ret[0] !== 0;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Protocol version constant; the JS side compares against
|
|
175
|
+
* its bundled value before sending `LoadDocument`.
|
|
176
|
+
* @returns {number}
|
|
177
|
+
*/
|
|
178
|
+
get protocolVersion() {
|
|
179
|
+
const ret = wasm.canvasworker_protocolVersion(this.__wbg_ptr);
|
|
180
|
+
return ret >>> 0;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Sub-phase D — render `page_id` to a PNG via the Vello GPU
|
|
184
|
+
* path (off-surface). Returns `None` if GPU is not
|
|
185
|
+
* initialised, the page id is unknown, or the underlying
|
|
186
|
+
* readback fails. The fidelity suite calls this with
|
|
187
|
+
* `BACKEND=gpu` to test the production hot path; the CPU
|
|
188
|
+
* path (`renderTilePng`) stays as the deterministic
|
|
189
|
+
* fallback used in CI.
|
|
190
|
+
* @param {string} page_id
|
|
191
|
+
* @param {number} dpi
|
|
192
|
+
* @returns {Promise<Uint8Array | undefined>}
|
|
193
|
+
*/
|
|
194
|
+
renderPageVelloPng(page_id, dpi) {
|
|
195
|
+
const ptr0 = passStringToWasm0(page_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
196
|
+
const len0 = WASM_VECTOR_LEN;
|
|
197
|
+
const ret = wasm.canvasworker_renderPageVelloPng(this.__wbg_ptr, ptr0, len0, dpi);
|
|
198
|
+
return ret;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Worker-internal tile rendering. Bypasses the JSON
|
|
202
|
+
* `RequestSnapshot` round-trip — for the render loop that
|
|
203
|
+
* fires every frame, the JSON serialize/parse cost of a
|
|
204
|
+
* 1024px PNG (~megabyte of `[n, n, n, ...]` text) dominates
|
|
205
|
+
* the actual rasterization. Returns raw PNG bytes the JS
|
|
206
|
+
* side feeds straight to `createImageBitmap(blob)`.
|
|
207
|
+
*
|
|
208
|
+
* Returns `None` (→ `undefined` on the JS side) if no
|
|
209
|
+
* document is loaded or the page id is unknown.
|
|
210
|
+
* @param {string} page_id
|
|
211
|
+
* @param {number} target_width_px
|
|
212
|
+
* @returns {Uint8Array | undefined}
|
|
213
|
+
*/
|
|
214
|
+
renderTilePng(page_id, target_width_px) {
|
|
215
|
+
const ptr0 = passStringToWasm0(page_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
216
|
+
const len0 = WASM_VECTOR_LEN;
|
|
217
|
+
const ret = wasm.canvasworker_renderTilePng(this.__wbg_ptr, ptr0, len0, target_width_px);
|
|
218
|
+
let v2;
|
|
219
|
+
if (ret[0] !== 0) {
|
|
220
|
+
v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
221
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
222
|
+
}
|
|
223
|
+
return v2;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Resize the GPU surface. Worker calls this from a
|
|
227
|
+
* ResizeObserver on the host canvas element.
|
|
228
|
+
* @param {number} width
|
|
229
|
+
* @param {number} height
|
|
230
|
+
*/
|
|
231
|
+
resizeGpu(width, height) {
|
|
232
|
+
wasm.canvasworker_resizeGpu(this.__wbg_ptr, width, height);
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Run the Tier 3 resolver against the current model.
|
|
236
|
+
* Returns the result as a JSON string the JS side can
|
|
237
|
+
* parse via `JSON.parse`. `null` when no document is loaded.
|
|
238
|
+
* The worker invokes this after `LoadDocument` succeeds and
|
|
239
|
+
* posts the parsed result as an unsolicited `resolutionDone`
|
|
240
|
+
* message to the main thread. Phase 2 — heading anchors and
|
|
241
|
+
* their assigned page numbers become visible in the UI.
|
|
242
|
+
* @returns {string | undefined}
|
|
243
|
+
*/
|
|
244
|
+
runResolveJson() {
|
|
245
|
+
const ret = wasm.canvasworker_runResolveJson(this.__wbg_ptr);
|
|
246
|
+
let v1;
|
|
247
|
+
if (ret[0] !== 0) {
|
|
248
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
249
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
250
|
+
}
|
|
251
|
+
return v1;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Number of cached page scenes currently resident. Surfaced
|
|
255
|
+
* for the HUD / DevTools — a developer-facing memory probe.
|
|
256
|
+
* @returns {number}
|
|
257
|
+
*/
|
|
258
|
+
sceneCacheSize() {
|
|
259
|
+
const ret = wasm.canvasworker_sceneCacheSize(this.__wbg_ptr);
|
|
260
|
+
return ret >>> 0;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Phase 3 — selection geometry (rect-per-line) for a
|
|
264
|
+
* JSON-encoded `ContentSelection`. Returns a JSON array of
|
|
265
|
+
* `SelectionRect`. Empty array for caret selections.
|
|
266
|
+
* @param {string} selection_json
|
|
267
|
+
* @returns {string | undefined}
|
|
268
|
+
*/
|
|
269
|
+
selectionGeometryJson(selection_json) {
|
|
270
|
+
const ptr0 = passStringToWasm0(selection_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
271
|
+
const len0 = WASM_VECTOR_LEN;
|
|
272
|
+
const ret = wasm.canvasworker_selectionGeometryJson(this.__wbg_ptr, ptr0, len0);
|
|
273
|
+
let v2;
|
|
274
|
+
if (ret[0] !== 0) {
|
|
275
|
+
v2 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
276
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
277
|
+
}
|
|
278
|
+
return v2;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Override the LRU budget. Useful from a developer console
|
|
282
|
+
* when measuring memory behaviour.
|
|
283
|
+
* @param {number} max_entries
|
|
284
|
+
*/
|
|
285
|
+
setSceneCacheBudget(max_entries) {
|
|
286
|
+
wasm.canvasworker_setSceneCacheBudget(this.__wbg_ptr, max_entries);
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Handle one main-thread message. Input is the JSON string
|
|
290
|
+
* the JS side produced via `JSON.stringify(msg)`. Output is
|
|
291
|
+
* the JSON string the JS side should `JSON.parse` and post
|
|
292
|
+
* back to the main thread. Returning a string (rather than
|
|
293
|
+
* a wasm-bindgen-serialised object) keeps the boundary
|
|
294
|
+
* Step 5d/5e — raw-arg update-gesture entry. The worker drains
|
|
295
|
+
* the gesture SAB every tick and calls this without going
|
|
296
|
+
* through `handleMessage`'s JSON envelope. Returns an empty
|
|
297
|
+
* string on failure (no document loaded or gesture has gone
|
|
298
|
+
* stale — the worker drops the tick). On success returns a
|
|
299
|
+
* JSON string with the dirty page set + active snap guides so
|
|
300
|
+
* the worker can post a `GestureSnapLines` notification and
|
|
301
|
+
* run its `markDirty` invalidation without re-querying.
|
|
302
|
+
*
|
|
303
|
+
* The 64-bit handle arrives split into low/high words because
|
|
304
|
+
* JS Numbers can't represent the full u64 range cleanly.
|
|
305
|
+
* `modifier_bits`: bit 0 = shift, bit 1 = alt, bit 2 =
|
|
306
|
+
* disable_snap (Ctrl, plan-2 §8.4). Matches the SAB layout
|
|
307
|
+
* in `packages/shell/src/gestures/gesture-sab.ts`.
|
|
308
|
+
* @param {number} handle_lo
|
|
309
|
+
* @param {number} handle_hi
|
|
310
|
+
* @param {number} dx
|
|
311
|
+
* @param {number} dy
|
|
312
|
+
* @param {number} modifier_bits
|
|
313
|
+
* @returns {string}
|
|
314
|
+
*/
|
|
315
|
+
updateGestureRaw(handle_lo, handle_hi, dx, dy, modifier_bits) {
|
|
316
|
+
let deferred1_0;
|
|
317
|
+
let deferred1_1;
|
|
318
|
+
try {
|
|
319
|
+
const ret = wasm.canvasworker_updateGestureRaw(this.__wbg_ptr, handle_lo, handle_hi, dx, dy, modifier_bits);
|
|
320
|
+
deferred1_0 = ret[0];
|
|
321
|
+
deferred1_1 = ret[1];
|
|
322
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
323
|
+
} finally {
|
|
324
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
if (Symbol.dispose) CanvasWorker.prototype[Symbol.dispose] = CanvasWorker.prototype.free;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* @returns {number}
|
|
332
|
+
*/
|
|
333
|
+
export function cameraSabBytes() {
|
|
334
|
+
const ret = wasm.cameraSabBytes();
|
|
335
|
+
return ret >>> 0;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @returns {CameraSabLayout}
|
|
340
|
+
*/
|
|
341
|
+
export function cameraSabLayout() {
|
|
342
|
+
const ret = wasm.cameraSabLayout();
|
|
343
|
+
return ret;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* @returns {number}
|
|
348
|
+
*/
|
|
349
|
+
export function gestureSabBytes() {
|
|
350
|
+
const ret = wasm.gestureSabBytes();
|
|
351
|
+
return ret >>> 0;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* @returns {GestureSabLayout}
|
|
356
|
+
*/
|
|
357
|
+
export function gestureSabLayout() {
|
|
358
|
+
const ret = wasm.gestureSabLayout();
|
|
359
|
+
return ret;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export function on_start() {
|
|
363
|
+
wasm.on_start();
|
|
364
|
+
}
|
|
365
|
+
function __wbg_get_imports() {
|
|
366
|
+
const import0 = {
|
|
367
|
+
__proto__: null,
|
|
368
|
+
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
369
|
+
const ret = String(arg1);
|
|
370
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
371
|
+
const len1 = WASM_VECTOR_LEN;
|
|
372
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
373
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
374
|
+
},
|
|
375
|
+
__wbg_Window_65ef42d29dc8174d: function(arg0) {
|
|
376
|
+
const ret = arg0.Window;
|
|
377
|
+
return ret;
|
|
378
|
+
},
|
|
379
|
+
__wbg_WorkerGlobalScope_d272430d4a323303: function(arg0) {
|
|
380
|
+
const ret = arg0.WorkerGlobalScope;
|
|
381
|
+
return ret;
|
|
382
|
+
},
|
|
383
|
+
__wbg___wbindgen_debug_string_0accd80f45e5faa2: function(arg0, arg1) {
|
|
384
|
+
const ret = debugString(arg1);
|
|
385
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
386
|
+
const len1 = WASM_VECTOR_LEN;
|
|
387
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
388
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
389
|
+
},
|
|
390
|
+
__wbg___wbindgen_is_function_754e9f305ff6029e: function(arg0) {
|
|
391
|
+
const ret = typeof(arg0) === 'function';
|
|
392
|
+
return ret;
|
|
393
|
+
},
|
|
394
|
+
__wbg___wbindgen_is_null_87c3bfe968c6a5ad: function(arg0) {
|
|
395
|
+
const ret = arg0 === null;
|
|
396
|
+
return ret;
|
|
397
|
+
},
|
|
398
|
+
__wbg___wbindgen_is_undefined_67b456be8673d3d7: function(arg0) {
|
|
399
|
+
const ret = arg0 === undefined;
|
|
400
|
+
return ret;
|
|
401
|
+
},
|
|
402
|
+
__wbg___wbindgen_string_get_72bdf95d3ae505b1: function(arg0, arg1) {
|
|
403
|
+
const obj = arg1;
|
|
404
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
405
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
406
|
+
var len1 = WASM_VECTOR_LEN;
|
|
407
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
408
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
409
|
+
},
|
|
410
|
+
__wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
|
|
411
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
412
|
+
},
|
|
413
|
+
__wbg__wbg_cb_unref_61db23ac97f16c31: function(arg0) {
|
|
414
|
+
arg0._wbg_cb_unref();
|
|
415
|
+
},
|
|
416
|
+
__wbg_beginComputePass_43b0c6751d870fcf: function(arg0, arg1) {
|
|
417
|
+
const ret = arg0.beginComputePass(arg1);
|
|
418
|
+
return ret;
|
|
419
|
+
},
|
|
420
|
+
__wbg_beginRenderPass_865cbdfaecf89f93: function() { return handleError(function (arg0, arg1) {
|
|
421
|
+
const ret = arg0.beginRenderPass(arg1);
|
|
422
|
+
return ret;
|
|
423
|
+
}, arguments); },
|
|
424
|
+
__wbg_call_9c758de292015997: function() { return handleError(function (arg0, arg1, arg2) {
|
|
425
|
+
const ret = arg0.call(arg1, arg2);
|
|
426
|
+
return ret;
|
|
427
|
+
}, arguments); },
|
|
428
|
+
__wbg_clearBuffer_1a66bf0852937316: function(arg0, arg1, arg2) {
|
|
429
|
+
arg0.clearBuffer(arg1, arg2);
|
|
430
|
+
},
|
|
431
|
+
__wbg_clearBuffer_8b28969d396ae40b: function(arg0, arg1, arg2, arg3) {
|
|
432
|
+
arg0.clearBuffer(arg1, arg2, arg3);
|
|
433
|
+
},
|
|
434
|
+
__wbg_configure_c0a3d80e97c0e7b1: function() { return handleError(function (arg0, arg1) {
|
|
435
|
+
arg0.configure(arg1);
|
|
436
|
+
}, arguments); },
|
|
437
|
+
__wbg_copyBufferToBuffer_3b119149df2dc5eb: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
438
|
+
arg0.copyBufferToBuffer(arg1, arg2, arg3, arg4);
|
|
439
|
+
}, arguments); },
|
|
440
|
+
__wbg_copyBufferToBuffer_9e5aea97d7828aa3: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
441
|
+
arg0.copyBufferToBuffer(arg1, arg2, arg3, arg4, arg5);
|
|
442
|
+
}, arguments); },
|
|
443
|
+
__wbg_copyTextureToBuffer_a9b82ac765521aab: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
444
|
+
arg0.copyTextureToBuffer(arg1, arg2, arg3);
|
|
445
|
+
}, arguments); },
|
|
446
|
+
__wbg_copyTextureToTexture_bb85c4b0b746d312: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
447
|
+
arg0.copyTextureToTexture(arg1, arg2, arg3);
|
|
448
|
+
}, arguments); },
|
|
449
|
+
__wbg_createBindGroupLayout_59891d473ac8665d: function() { return handleError(function (arg0, arg1) {
|
|
450
|
+
const ret = arg0.createBindGroupLayout(arg1);
|
|
451
|
+
return ret;
|
|
452
|
+
}, arguments); },
|
|
453
|
+
__wbg_createBindGroup_4cb86ff853df5c69: function(arg0, arg1) {
|
|
454
|
+
const ret = arg0.createBindGroup(arg1);
|
|
455
|
+
return ret;
|
|
456
|
+
},
|
|
457
|
+
__wbg_createBuffer_3fa0256cba655273: function() { return handleError(function (arg0, arg1) {
|
|
458
|
+
const ret = arg0.createBuffer(arg1);
|
|
459
|
+
return ret;
|
|
460
|
+
}, arguments); },
|
|
461
|
+
__wbg_createCommandEncoder_98e3b731629054b4: function(arg0, arg1) {
|
|
462
|
+
const ret = arg0.createCommandEncoder(arg1);
|
|
463
|
+
return ret;
|
|
464
|
+
},
|
|
465
|
+
__wbg_createComputePipeline_9d101515d504e110: function(arg0, arg1) {
|
|
466
|
+
const ret = arg0.createComputePipeline(arg1);
|
|
467
|
+
return ret;
|
|
468
|
+
},
|
|
469
|
+
__wbg_createPipelineLayout_270b4fd0b4230373: function(arg0, arg1) {
|
|
470
|
+
const ret = arg0.createPipelineLayout(arg1);
|
|
471
|
+
return ret;
|
|
472
|
+
},
|
|
473
|
+
__wbg_createRenderPipeline_4c120add6a62a442: function() { return handleError(function (arg0, arg1) {
|
|
474
|
+
const ret = arg0.createRenderPipeline(arg1);
|
|
475
|
+
return ret;
|
|
476
|
+
}, arguments); },
|
|
477
|
+
__wbg_createSampler_95bff4f5405a3dd1: function(arg0, arg1) {
|
|
478
|
+
const ret = arg0.createSampler(arg1);
|
|
479
|
+
return ret;
|
|
480
|
+
},
|
|
481
|
+
__wbg_createShaderModule_f0aa469466c7bdaa: function(arg0, arg1) {
|
|
482
|
+
const ret = arg0.createShaderModule(arg1);
|
|
483
|
+
return ret;
|
|
484
|
+
},
|
|
485
|
+
__wbg_createTexture_28341edbcc7d129e: function() { return handleError(function (arg0, arg1) {
|
|
486
|
+
const ret = arg0.createTexture(arg1);
|
|
487
|
+
return ret;
|
|
488
|
+
}, arguments); },
|
|
489
|
+
__wbg_createView_d04a0f9bdd723238: function() { return handleError(function (arg0, arg1) {
|
|
490
|
+
const ret = arg0.createView(arg1);
|
|
491
|
+
return ret;
|
|
492
|
+
}, arguments); },
|
|
493
|
+
__wbg_dispatchWorkgroupsIndirect_94154bd122d10b07: function(arg0, arg1, arg2) {
|
|
494
|
+
arg0.dispatchWorkgroupsIndirect(arg1, arg2);
|
|
495
|
+
},
|
|
496
|
+
__wbg_dispatchWorkgroups_26f6198195c36ca4: function(arg0, arg1, arg2, arg3) {
|
|
497
|
+
arg0.dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
|
|
498
|
+
},
|
|
499
|
+
__wbg_document_aceb08cd6489baf5: function(arg0) {
|
|
500
|
+
const ret = arg0.document;
|
|
501
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
502
|
+
},
|
|
503
|
+
__wbg_draw_92eb37d6b3b2aab4: function(arg0, arg1, arg2, arg3, arg4) {
|
|
504
|
+
arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
505
|
+
},
|
|
506
|
+
__wbg_end_8437a975bbfe0297: function(arg0) {
|
|
507
|
+
arg0.end();
|
|
508
|
+
},
|
|
509
|
+
__wbg_end_d49513b309f4ca43: function(arg0) {
|
|
510
|
+
arg0.end();
|
|
511
|
+
},
|
|
512
|
+
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
513
|
+
let deferred0_0;
|
|
514
|
+
let deferred0_1;
|
|
515
|
+
try {
|
|
516
|
+
deferred0_0 = arg0;
|
|
517
|
+
deferred0_1 = arg1;
|
|
518
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
519
|
+
} finally {
|
|
520
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
__wbg_features_6906f30d3b243f58: function(arg0) {
|
|
524
|
+
const ret = arg0.features;
|
|
525
|
+
return ret;
|
|
526
|
+
},
|
|
527
|
+
__wbg_finish_6c7bba424ffe1bbc: function(arg0, arg1) {
|
|
528
|
+
const ret = arg0.finish(arg1);
|
|
529
|
+
return ret;
|
|
530
|
+
},
|
|
531
|
+
__wbg_finish_c40b67ff2af88e0c: function(arg0) {
|
|
532
|
+
const ret = arg0.finish();
|
|
533
|
+
return ret;
|
|
534
|
+
},
|
|
535
|
+
__wbg_getContext_469d34698d869fc1: function() { return handleError(function (arg0, arg1, arg2) {
|
|
536
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
537
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
538
|
+
}, arguments); },
|
|
539
|
+
__wbg_getContext_7d3a8f461c828713: function() { return handleError(function (arg0, arg1, arg2) {
|
|
540
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
541
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
542
|
+
}, arguments); },
|
|
543
|
+
__wbg_getCurrentTexture_274b67f871b2dea5: function() { return handleError(function (arg0) {
|
|
544
|
+
const ret = arg0.getCurrentTexture();
|
|
545
|
+
return ret;
|
|
546
|
+
}, arguments); },
|
|
547
|
+
__wbg_getMappedRange_59829576da3edd39: function() { return handleError(function (arg0, arg1, arg2) {
|
|
548
|
+
const ret = arg0.getMappedRange(arg1, arg2);
|
|
549
|
+
return ret;
|
|
550
|
+
}, arguments); },
|
|
551
|
+
__wbg_getPreferredCanvasFormat_6f629398d892f0c9: function(arg0) {
|
|
552
|
+
const ret = arg0.getPreferredCanvasFormat();
|
|
553
|
+
return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 96) - 1;
|
|
554
|
+
},
|
|
555
|
+
__wbg_getRandomValues_3f44b700395062e5: function() { return handleError(function (arg0, arg1) {
|
|
556
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
557
|
+
}, arguments); },
|
|
558
|
+
__wbg_get_cb935c1402921898: function(arg0, arg1) {
|
|
559
|
+
const ret = arg0[arg1 >>> 0];
|
|
560
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
561
|
+
},
|
|
562
|
+
__wbg_gpu_cbd27ad0589bc0b3: function(arg0) {
|
|
563
|
+
const ret = arg0.gpu;
|
|
564
|
+
return ret;
|
|
565
|
+
},
|
|
566
|
+
__wbg_has_dbcaf77712624019: function(arg0, arg1, arg2) {
|
|
567
|
+
const ret = arg0.has(getStringFromWasm0(arg1, arg2));
|
|
568
|
+
return ret;
|
|
569
|
+
},
|
|
570
|
+
__wbg_instanceof_GpuAdapter_1297a3a5ce0db3ff: function(arg0) {
|
|
571
|
+
let result;
|
|
572
|
+
try {
|
|
573
|
+
result = arg0 instanceof GPUAdapter;
|
|
574
|
+
} catch (_) {
|
|
575
|
+
result = false;
|
|
576
|
+
}
|
|
577
|
+
const ret = result;
|
|
578
|
+
return ret;
|
|
579
|
+
},
|
|
580
|
+
__wbg_instanceof_GpuCanvasContext_13613277d7bf3768: function(arg0) {
|
|
581
|
+
let result;
|
|
582
|
+
try {
|
|
583
|
+
result = arg0 instanceof GPUCanvasContext;
|
|
584
|
+
} catch (_) {
|
|
585
|
+
result = false;
|
|
586
|
+
}
|
|
587
|
+
const ret = result;
|
|
588
|
+
return ret;
|
|
589
|
+
},
|
|
590
|
+
__wbg_instanceof_Window_e093be59ee9a8e14: function(arg0) {
|
|
591
|
+
let result;
|
|
592
|
+
try {
|
|
593
|
+
result = arg0 instanceof Window;
|
|
594
|
+
} catch (_) {
|
|
595
|
+
result = false;
|
|
596
|
+
}
|
|
597
|
+
const ret = result;
|
|
598
|
+
return ret;
|
|
599
|
+
},
|
|
600
|
+
__wbg_label_9a8583e3a20fafc7: function(arg0, arg1) {
|
|
601
|
+
const ret = arg1.label;
|
|
602
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
603
|
+
const len1 = WASM_VECTOR_LEN;
|
|
604
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
605
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
606
|
+
},
|
|
607
|
+
__wbg_length_4a591ecaa01354d9: function(arg0) {
|
|
608
|
+
const ret = arg0.length;
|
|
609
|
+
return ret;
|
|
610
|
+
},
|
|
611
|
+
__wbg_limits_25f7265ea0cad6c5: function(arg0) {
|
|
612
|
+
const ret = arg0.limits;
|
|
613
|
+
return ret;
|
|
614
|
+
},
|
|
615
|
+
__wbg_log_cf2e968649f3384e: function(arg0) {
|
|
616
|
+
console.log(arg0);
|
|
617
|
+
},
|
|
618
|
+
__wbg_mapAsync_e3cfbd141919d03c: function(arg0, arg1, arg2, arg3) {
|
|
619
|
+
const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
|
|
620
|
+
return ret;
|
|
621
|
+
},
|
|
622
|
+
__wbg_maxBindGroups_7e4965b5daa53b23: function(arg0) {
|
|
623
|
+
const ret = arg0.maxBindGroups;
|
|
624
|
+
return ret;
|
|
625
|
+
},
|
|
626
|
+
__wbg_maxBindingsPerBindGroup_5d11588150650215: function(arg0) {
|
|
627
|
+
const ret = arg0.maxBindingsPerBindGroup;
|
|
628
|
+
return ret;
|
|
629
|
+
},
|
|
630
|
+
__wbg_maxBufferSize_b59f147488bf047a: function(arg0) {
|
|
631
|
+
const ret = arg0.maxBufferSize;
|
|
632
|
+
return ret;
|
|
633
|
+
},
|
|
634
|
+
__wbg_maxColorAttachmentBytesPerSample_726ea37aedfb839a: function(arg0) {
|
|
635
|
+
const ret = arg0.maxColorAttachmentBytesPerSample;
|
|
636
|
+
return ret;
|
|
637
|
+
},
|
|
638
|
+
__wbg_maxColorAttachments_62ecca7ef94d78e4: function(arg0) {
|
|
639
|
+
const ret = arg0.maxColorAttachments;
|
|
640
|
+
return ret;
|
|
641
|
+
},
|
|
642
|
+
__wbg_maxComputeInvocationsPerWorkgroup_a14458d75e0b90ac: function(arg0) {
|
|
643
|
+
const ret = arg0.maxComputeInvocationsPerWorkgroup;
|
|
644
|
+
return ret;
|
|
645
|
+
},
|
|
646
|
+
__wbg_maxComputeWorkgroupSizeX_6b8c17d5e4738e77: function(arg0) {
|
|
647
|
+
const ret = arg0.maxComputeWorkgroupSizeX;
|
|
648
|
+
return ret;
|
|
649
|
+
},
|
|
650
|
+
__wbg_maxComputeWorkgroupSizeY_13b5de41c6e0bc2a: function(arg0) {
|
|
651
|
+
const ret = arg0.maxComputeWorkgroupSizeY;
|
|
652
|
+
return ret;
|
|
653
|
+
},
|
|
654
|
+
__wbg_maxComputeWorkgroupSizeZ_b12d7f3e670aa0a2: function(arg0) {
|
|
655
|
+
const ret = arg0.maxComputeWorkgroupSizeZ;
|
|
656
|
+
return ret;
|
|
657
|
+
},
|
|
658
|
+
__wbg_maxComputeWorkgroupStorageSize_886498bc3b0baa23: function(arg0) {
|
|
659
|
+
const ret = arg0.maxComputeWorkgroupStorageSize;
|
|
660
|
+
return ret;
|
|
661
|
+
},
|
|
662
|
+
__wbg_maxComputeWorkgroupsPerDimension_144b6bbf6ac24451: function(arg0) {
|
|
663
|
+
const ret = arg0.maxComputeWorkgroupsPerDimension;
|
|
664
|
+
return ret;
|
|
665
|
+
},
|
|
666
|
+
__wbg_maxDynamicStorageBuffersPerPipelineLayout_d81239ef90f4f920: function(arg0) {
|
|
667
|
+
const ret = arg0.maxDynamicStorageBuffersPerPipelineLayout;
|
|
668
|
+
return ret;
|
|
669
|
+
},
|
|
670
|
+
__wbg_maxDynamicUniformBuffersPerPipelineLayout_0cca7d1cb9e5adf7: function(arg0) {
|
|
671
|
+
const ret = arg0.maxDynamicUniformBuffersPerPipelineLayout;
|
|
672
|
+
return ret;
|
|
673
|
+
},
|
|
674
|
+
__wbg_maxInterStageShaderVariables_4504147f810dd43d: function(arg0) {
|
|
675
|
+
const ret = arg0.maxInterStageShaderVariables;
|
|
676
|
+
return ret;
|
|
677
|
+
},
|
|
678
|
+
__wbg_maxSampledTexturesPerShaderStage_54e5ed0537676c83: function(arg0) {
|
|
679
|
+
const ret = arg0.maxSampledTexturesPerShaderStage;
|
|
680
|
+
return ret;
|
|
681
|
+
},
|
|
682
|
+
__wbg_maxSamplersPerShaderStage_71315fab0d7f34b1: function(arg0) {
|
|
683
|
+
const ret = arg0.maxSamplersPerShaderStage;
|
|
684
|
+
return ret;
|
|
685
|
+
},
|
|
686
|
+
__wbg_maxStorageBufferBindingSize_779fd522aaaa6f90: function(arg0) {
|
|
687
|
+
const ret = arg0.maxStorageBufferBindingSize;
|
|
688
|
+
return ret;
|
|
689
|
+
},
|
|
690
|
+
__wbg_maxStorageBuffersPerShaderStage_c99b4f72aaf19e34: function(arg0) {
|
|
691
|
+
const ret = arg0.maxStorageBuffersPerShaderStage;
|
|
692
|
+
return ret;
|
|
693
|
+
},
|
|
694
|
+
__wbg_maxStorageTexturesPerShaderStage_5403c17d11da5280: function(arg0) {
|
|
695
|
+
const ret = arg0.maxStorageTexturesPerShaderStage;
|
|
696
|
+
return ret;
|
|
697
|
+
},
|
|
698
|
+
__wbg_maxTextureArrayLayers_eca9fa36b3d46099: function(arg0) {
|
|
699
|
+
const ret = arg0.maxTextureArrayLayers;
|
|
700
|
+
return ret;
|
|
701
|
+
},
|
|
702
|
+
__wbg_maxTextureDimension1D_a7d9d7ecd19aae9b: function(arg0) {
|
|
703
|
+
const ret = arg0.maxTextureDimension1D;
|
|
704
|
+
return ret;
|
|
705
|
+
},
|
|
706
|
+
__wbg_maxTextureDimension2D_c6a3937eb3ab18df: function(arg0) {
|
|
707
|
+
const ret = arg0.maxTextureDimension2D;
|
|
708
|
+
return ret;
|
|
709
|
+
},
|
|
710
|
+
__wbg_maxTextureDimension3D_d941aa547d9e0801: function(arg0) {
|
|
711
|
+
const ret = arg0.maxTextureDimension3D;
|
|
712
|
+
return ret;
|
|
713
|
+
},
|
|
714
|
+
__wbg_maxUniformBufferBindingSize_1e8c92a2094b7ce7: function(arg0) {
|
|
715
|
+
const ret = arg0.maxUniformBufferBindingSize;
|
|
716
|
+
return ret;
|
|
717
|
+
},
|
|
718
|
+
__wbg_maxUniformBuffersPerShaderStage_83cde6650612f178: function(arg0) {
|
|
719
|
+
const ret = arg0.maxUniformBuffersPerShaderStage;
|
|
720
|
+
return ret;
|
|
721
|
+
},
|
|
722
|
+
__wbg_maxVertexAttributes_dd313a3540d56e88: function(arg0) {
|
|
723
|
+
const ret = arg0.maxVertexAttributes;
|
|
724
|
+
return ret;
|
|
725
|
+
},
|
|
726
|
+
__wbg_maxVertexBufferArrayStride_6fd082d9954d1f4a: function(arg0) {
|
|
727
|
+
const ret = arg0.maxVertexBufferArrayStride;
|
|
728
|
+
return ret;
|
|
729
|
+
},
|
|
730
|
+
__wbg_maxVertexBuffers_bbd14712ac158c6f: function(arg0) {
|
|
731
|
+
const ret = arg0.maxVertexBuffers;
|
|
732
|
+
return ret;
|
|
733
|
+
},
|
|
734
|
+
__wbg_minStorageBufferOffsetAlignment_726c386298254510: function(arg0) {
|
|
735
|
+
const ret = arg0.minStorageBufferOffsetAlignment;
|
|
736
|
+
return ret;
|
|
737
|
+
},
|
|
738
|
+
__wbg_minUniformBufferOffsetAlignment_6df1f95f5974788e: function(arg0) {
|
|
739
|
+
const ret = arg0.minUniformBufferOffsetAlignment;
|
|
740
|
+
return ret;
|
|
741
|
+
},
|
|
742
|
+
__wbg_navigator_3833ecdbc19d2757: function(arg0) {
|
|
743
|
+
const ret = arg0.navigator;
|
|
744
|
+
return ret;
|
|
745
|
+
},
|
|
746
|
+
__wbg_navigator_391291470f58c650: function(arg0) {
|
|
747
|
+
const ret = arg0.navigator;
|
|
748
|
+
return ret;
|
|
749
|
+
},
|
|
750
|
+
__wbg_new_227d7c05414eb861: function() {
|
|
751
|
+
const ret = new Error();
|
|
752
|
+
return ret;
|
|
753
|
+
},
|
|
754
|
+
__wbg_new_ce1ab61c1c2b300d: function() {
|
|
755
|
+
const ret = new Object();
|
|
756
|
+
return ret;
|
|
757
|
+
},
|
|
758
|
+
__wbg_new_d90091b82fdf5b91: function() {
|
|
759
|
+
const ret = new Array();
|
|
760
|
+
return ret;
|
|
761
|
+
},
|
|
762
|
+
__wbg_new_typed_bf31d18f92484486: function(arg0, arg1) {
|
|
763
|
+
try {
|
|
764
|
+
var state0 = {a: arg0, b: arg1};
|
|
765
|
+
var cb0 = (arg0, arg1) => {
|
|
766
|
+
const a = state0.a;
|
|
767
|
+
state0.a = 0;
|
|
768
|
+
try {
|
|
769
|
+
return wasm_bindgen__convert__closures_____invoke__h2a9a86477ca3734e(a, state0.b, arg0, arg1);
|
|
770
|
+
} finally {
|
|
771
|
+
state0.a = a;
|
|
772
|
+
}
|
|
773
|
+
};
|
|
774
|
+
const ret = new Promise(cb0);
|
|
775
|
+
return ret;
|
|
776
|
+
} finally {
|
|
777
|
+
state0.a = 0;
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
__wbg_new_with_byte_offset_and_length_d836f26d916dd9ad: function(arg0, arg1, arg2) {
|
|
781
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
782
|
+
return ret;
|
|
783
|
+
},
|
|
784
|
+
__wbg_new_with_length_690552eb9e6aeac9: function(arg0) {
|
|
785
|
+
const ret = new Array(arg0 >>> 0);
|
|
786
|
+
return ret;
|
|
787
|
+
},
|
|
788
|
+
__wbg_now_190933fa139cc119: function() {
|
|
789
|
+
const ret = Date.now();
|
|
790
|
+
return ret;
|
|
791
|
+
},
|
|
792
|
+
__wbg_onSubmittedWorkDone_5f36409816d68e04: function(arg0) {
|
|
793
|
+
const ret = arg0.onSubmittedWorkDone();
|
|
794
|
+
return ret;
|
|
795
|
+
},
|
|
796
|
+
__wbg_prototypesetcall_3249fc62a0fafa30: function(arg0, arg1, arg2) {
|
|
797
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
798
|
+
},
|
|
799
|
+
__wbg_push_a6822215aa43e71c: function(arg0, arg1) {
|
|
800
|
+
const ret = arg0.push(arg1);
|
|
801
|
+
return ret;
|
|
802
|
+
},
|
|
803
|
+
__wbg_querySelectorAll_4dcc230a2f8a2498: function() { return handleError(function (arg0, arg1, arg2) {
|
|
804
|
+
const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
|
|
805
|
+
return ret;
|
|
806
|
+
}, arguments); },
|
|
807
|
+
__wbg_queueMicrotask_35c611f4a14830b2: function(arg0) {
|
|
808
|
+
queueMicrotask(arg0);
|
|
809
|
+
},
|
|
810
|
+
__wbg_queueMicrotask_404ed0a58e0b63cc: function(arg0) {
|
|
811
|
+
const ret = arg0.queueMicrotask;
|
|
812
|
+
return ret;
|
|
813
|
+
},
|
|
814
|
+
__wbg_queue_7bbf92178b06da19: function(arg0) {
|
|
815
|
+
const ret = arg0.queue;
|
|
816
|
+
return ret;
|
|
817
|
+
},
|
|
818
|
+
__wbg_requestAdapter_0049683abd339828: function(arg0, arg1) {
|
|
819
|
+
const ret = arg0.requestAdapter(arg1);
|
|
820
|
+
return ret;
|
|
821
|
+
},
|
|
822
|
+
__wbg_requestDevice_921f0a221b4492fa: function(arg0, arg1) {
|
|
823
|
+
const ret = arg0.requestDevice(arg1);
|
|
824
|
+
return ret;
|
|
825
|
+
},
|
|
826
|
+
__wbg_resolve_25a7e548d5881dca: function(arg0) {
|
|
827
|
+
const ret = Promise.resolve(arg0);
|
|
828
|
+
return ret;
|
|
829
|
+
},
|
|
830
|
+
__wbg_setBindGroup_0500d49bcf971ad6: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
831
|
+
arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
832
|
+
}, arguments); },
|
|
833
|
+
__wbg_setBindGroup_863d2daeb3c4fa01: function(arg0, arg1, arg2) {
|
|
834
|
+
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
835
|
+
},
|
|
836
|
+
__wbg_setBindGroup_b546d112a2d27da3: function(arg0, arg1, arg2) {
|
|
837
|
+
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
838
|
+
},
|
|
839
|
+
__wbg_setPipeline_b0ecc74bdf8be629: function(arg0, arg1) {
|
|
840
|
+
arg0.setPipeline(arg1);
|
|
841
|
+
},
|
|
842
|
+
__wbg_setPipeline_c6aca1c13ec27120: function(arg0, arg1) {
|
|
843
|
+
arg0.setPipeline(arg1);
|
|
844
|
+
},
|
|
845
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
846
|
+
arg0[arg1] = arg2;
|
|
847
|
+
},
|
|
848
|
+
__wbg_set_6e30c9374c26414c: function() { return handleError(function (arg0, arg1, arg2) {
|
|
849
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
850
|
+
return ret;
|
|
851
|
+
}, arguments); },
|
|
852
|
+
__wbg_set_a_66601ffa2f4cbde8: function(arg0, arg1) {
|
|
853
|
+
arg0.a = arg1;
|
|
854
|
+
},
|
|
855
|
+
__wbg_set_access_08d6bdbda9aaa266: function(arg0, arg1) {
|
|
856
|
+
arg0.access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
|
|
857
|
+
},
|
|
858
|
+
__wbg_set_address_mode_u_f80c73fc36e83289: function(arg0, arg1) {
|
|
859
|
+
arg0.addressModeU = __wbindgen_enum_GpuAddressMode[arg1];
|
|
860
|
+
},
|
|
861
|
+
__wbg_set_address_mode_v_3dee7a0095c326a6: function(arg0, arg1) {
|
|
862
|
+
arg0.addressModeV = __wbindgen_enum_GpuAddressMode[arg1];
|
|
863
|
+
},
|
|
864
|
+
__wbg_set_address_mode_w_e2be52f6efa2d9c7: function(arg0, arg1) {
|
|
865
|
+
arg0.addressModeW = __wbindgen_enum_GpuAddressMode[arg1];
|
|
866
|
+
},
|
|
867
|
+
__wbg_set_alpha_bb6680aaf01cdc62: function(arg0, arg1) {
|
|
868
|
+
arg0.alpha = arg1;
|
|
869
|
+
},
|
|
870
|
+
__wbg_set_alpha_mode_84140629c3b15c51: function(arg0, arg1) {
|
|
871
|
+
arg0.alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
|
|
872
|
+
},
|
|
873
|
+
__wbg_set_alpha_to_coverage_enabled_cac9212446be9cab: function(arg0, arg1) {
|
|
874
|
+
arg0.alphaToCoverageEnabled = arg1 !== 0;
|
|
875
|
+
},
|
|
876
|
+
__wbg_set_array_layer_count_01e36293bee85e02: function(arg0, arg1) {
|
|
877
|
+
arg0.arrayLayerCount = arg1 >>> 0;
|
|
878
|
+
},
|
|
879
|
+
__wbg_set_array_stride_34f4a147a16bff79: function(arg0, arg1) {
|
|
880
|
+
arg0.arrayStride = arg1;
|
|
881
|
+
},
|
|
882
|
+
__wbg_set_aspect_0675b2844dd12eb1: function(arg0, arg1) {
|
|
883
|
+
arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
884
|
+
},
|
|
885
|
+
__wbg_set_aspect_e09cb246c2df6f46: function(arg0, arg1) {
|
|
886
|
+
arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
887
|
+
},
|
|
888
|
+
__wbg_set_attributes_7ee8e82215809bfa: function(arg0, arg1) {
|
|
889
|
+
arg0.attributes = arg1;
|
|
890
|
+
},
|
|
891
|
+
__wbg_set_b_103abfb3e69345a3: function(arg0, arg1) {
|
|
892
|
+
arg0.b = arg1;
|
|
893
|
+
},
|
|
894
|
+
__wbg_set_base_array_layer_ff3450be9aa7d232: function(arg0, arg1) {
|
|
895
|
+
arg0.baseArrayLayer = arg1 >>> 0;
|
|
896
|
+
},
|
|
897
|
+
__wbg_set_base_mip_level_43e77e5d237ede24: function(arg0, arg1) {
|
|
898
|
+
arg0.baseMipLevel = arg1 >>> 0;
|
|
899
|
+
},
|
|
900
|
+
__wbg_set_beginning_of_pass_write_index_abea1e4e6c6095e1: function(arg0, arg1) {
|
|
901
|
+
arg0.beginningOfPassWriteIndex = arg1 >>> 0;
|
|
902
|
+
},
|
|
903
|
+
__wbg_set_beginning_of_pass_write_index_ebe753eeeade6f6c: function(arg0, arg1) {
|
|
904
|
+
arg0.beginningOfPassWriteIndex = arg1 >>> 0;
|
|
905
|
+
},
|
|
906
|
+
__wbg_set_bind_group_layouts_078241cf2822c39e: function(arg0, arg1) {
|
|
907
|
+
arg0.bindGroupLayouts = arg1;
|
|
908
|
+
},
|
|
909
|
+
__wbg_set_binding_d683cd9c1d4bcfed: function(arg0, arg1) {
|
|
910
|
+
arg0.binding = arg1 >>> 0;
|
|
911
|
+
},
|
|
912
|
+
__wbg_set_binding_e9ba14423117de0a: function(arg0, arg1) {
|
|
913
|
+
arg0.binding = arg1 >>> 0;
|
|
914
|
+
},
|
|
915
|
+
__wbg_set_blend_9eab91d6edf500f9: function(arg0, arg1) {
|
|
916
|
+
arg0.blend = arg1;
|
|
917
|
+
},
|
|
918
|
+
__wbg_set_buffer_598ab98a251b8f91: function(arg0, arg1) {
|
|
919
|
+
arg0.buffer = arg1;
|
|
920
|
+
},
|
|
921
|
+
__wbg_set_buffer_73d9f6fea9c41867: function(arg0, arg1) {
|
|
922
|
+
arg0.buffer = arg1;
|
|
923
|
+
},
|
|
924
|
+
__wbg_set_buffer_88dfc353992be57b: function(arg0, arg1) {
|
|
925
|
+
arg0.buffer = arg1;
|
|
926
|
+
},
|
|
927
|
+
__wbg_set_buffers_93f3f75d7338864f: function(arg0, arg1) {
|
|
928
|
+
arg0.buffers = arg1;
|
|
929
|
+
},
|
|
930
|
+
__wbg_set_bytes_per_row_0bdd54b7fc03c765: function(arg0, arg1) {
|
|
931
|
+
arg0.bytesPerRow = arg1 >>> 0;
|
|
932
|
+
},
|
|
933
|
+
__wbg_set_bytes_per_row_4d62ead4cbf1cd75: function(arg0, arg1) {
|
|
934
|
+
arg0.bytesPerRow = arg1 >>> 0;
|
|
935
|
+
},
|
|
936
|
+
__wbg_set_c775d84916be79ea: function(arg0, arg1, arg2) {
|
|
937
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
938
|
+
},
|
|
939
|
+
__wbg_set_clear_value_c1a82bbe9a80b6ab: function(arg0, arg1) {
|
|
940
|
+
arg0.clearValue = arg1;
|
|
941
|
+
},
|
|
942
|
+
__wbg_set_code_6a0d763da082dcfb: function(arg0, arg1, arg2) {
|
|
943
|
+
arg0.code = getStringFromWasm0(arg1, arg2);
|
|
944
|
+
},
|
|
945
|
+
__wbg_set_color_495aa415ae5a39c9: function(arg0, arg1) {
|
|
946
|
+
arg0.color = arg1;
|
|
947
|
+
},
|
|
948
|
+
__wbg_set_color_attachments_6705c6b1e98a3040: function(arg0, arg1) {
|
|
949
|
+
arg0.colorAttachments = arg1;
|
|
950
|
+
},
|
|
951
|
+
__wbg_set_compare_8aedfdbdc96ff4d7: function(arg0, arg1) {
|
|
952
|
+
arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
953
|
+
},
|
|
954
|
+
__wbg_set_compare_a9a06469832600ec: function(arg0, arg1) {
|
|
955
|
+
arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
956
|
+
},
|
|
957
|
+
__wbg_set_compute_5dd7704ee8a825c6: function(arg0, arg1) {
|
|
958
|
+
arg0.compute = arg1;
|
|
959
|
+
},
|
|
960
|
+
__wbg_set_count_34ecf81b3ad7e448: function(arg0, arg1) {
|
|
961
|
+
arg0.count = arg1 >>> 0;
|
|
962
|
+
},
|
|
963
|
+
__wbg_set_cull_mode_8e533f32672a379b: function(arg0, arg1) {
|
|
964
|
+
arg0.cullMode = __wbindgen_enum_GpuCullMode[arg1];
|
|
965
|
+
},
|
|
966
|
+
__wbg_set_dca99999bba88a9a: function(arg0, arg1, arg2) {
|
|
967
|
+
arg0[arg1 >>> 0] = arg2;
|
|
968
|
+
},
|
|
969
|
+
__wbg_set_depth_bias_07f95aa380a3e46e: function(arg0, arg1) {
|
|
970
|
+
arg0.depthBias = arg1;
|
|
971
|
+
},
|
|
972
|
+
__wbg_set_depth_bias_clamp_968b03f74984c77b: function(arg0, arg1) {
|
|
973
|
+
arg0.depthBiasClamp = arg1;
|
|
974
|
+
},
|
|
975
|
+
__wbg_set_depth_bias_slope_scale_478b204b4910400f: function(arg0, arg1) {
|
|
976
|
+
arg0.depthBiasSlopeScale = arg1;
|
|
977
|
+
},
|
|
978
|
+
__wbg_set_depth_clear_value_25268aa6b7cae2e0: function(arg0, arg1) {
|
|
979
|
+
arg0.depthClearValue = arg1;
|
|
980
|
+
},
|
|
981
|
+
__wbg_set_depth_compare_c017fcac5327dfbb: function(arg0, arg1) {
|
|
982
|
+
arg0.depthCompare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
983
|
+
},
|
|
984
|
+
__wbg_set_depth_fail_op_8484012cd5e4987c: function(arg0, arg1) {
|
|
985
|
+
arg0.depthFailOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
986
|
+
},
|
|
987
|
+
__wbg_set_depth_load_op_ed90e4eaf314a16c: function(arg0, arg1) {
|
|
988
|
+
arg0.depthLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
989
|
+
},
|
|
990
|
+
__wbg_set_depth_or_array_layers_f8981011496f12e7: function(arg0, arg1) {
|
|
991
|
+
arg0.depthOrArrayLayers = arg1 >>> 0;
|
|
992
|
+
},
|
|
993
|
+
__wbg_set_depth_read_only_90cca09674f446be: function(arg0, arg1) {
|
|
994
|
+
arg0.depthReadOnly = arg1 !== 0;
|
|
995
|
+
},
|
|
996
|
+
__wbg_set_depth_stencil_attachment_be8301fa499cd3db: function(arg0, arg1) {
|
|
997
|
+
arg0.depthStencilAttachment = arg1;
|
|
998
|
+
},
|
|
999
|
+
__wbg_set_depth_stencil_d536398c1b29bb38: function(arg0, arg1) {
|
|
1000
|
+
arg0.depthStencil = arg1;
|
|
1001
|
+
},
|
|
1002
|
+
__wbg_set_depth_store_op_8e9b1d0e47077643: function(arg0, arg1) {
|
|
1003
|
+
arg0.depthStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
1004
|
+
},
|
|
1005
|
+
__wbg_set_depth_write_enabled_adc2094871d66639: function(arg0, arg1) {
|
|
1006
|
+
arg0.depthWriteEnabled = arg1 !== 0;
|
|
1007
|
+
},
|
|
1008
|
+
__wbg_set_device_47147a331245777f: function(arg0, arg1) {
|
|
1009
|
+
arg0.device = arg1;
|
|
1010
|
+
},
|
|
1011
|
+
__wbg_set_dimension_b4da3979dc699ef8: function(arg0, arg1) {
|
|
1012
|
+
arg0.dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
1013
|
+
},
|
|
1014
|
+
__wbg_set_dimension_d4f0c50e75083b7f: function(arg0, arg1) {
|
|
1015
|
+
arg0.dimension = __wbindgen_enum_GpuTextureDimension[arg1];
|
|
1016
|
+
},
|
|
1017
|
+
__wbg_set_dst_factor_e44fc612d5e5bff4: function(arg0, arg1) {
|
|
1018
|
+
arg0.dstFactor = __wbindgen_enum_GpuBlendFactor[arg1];
|
|
1019
|
+
},
|
|
1020
|
+
__wbg_set_end_of_pass_write_index_1cd39b9bafe090cc: function(arg0, arg1) {
|
|
1021
|
+
arg0.endOfPassWriteIndex = arg1 >>> 0;
|
|
1022
|
+
},
|
|
1023
|
+
__wbg_set_end_of_pass_write_index_49de5f6017fb9a1f: function(arg0, arg1) {
|
|
1024
|
+
arg0.endOfPassWriteIndex = arg1 >>> 0;
|
|
1025
|
+
},
|
|
1026
|
+
__wbg_set_entries_070b048e4bea0c29: function(arg0, arg1) {
|
|
1027
|
+
arg0.entries = arg1;
|
|
1028
|
+
},
|
|
1029
|
+
__wbg_set_entries_f9b7f3d4e9faccf4: function(arg0, arg1) {
|
|
1030
|
+
arg0.entries = arg1;
|
|
1031
|
+
},
|
|
1032
|
+
__wbg_set_entry_point_0116a9f5d58cf0aa: function(arg0, arg1, arg2) {
|
|
1033
|
+
arg0.entryPoint = getStringFromWasm0(arg1, arg2);
|
|
1034
|
+
},
|
|
1035
|
+
__wbg_set_entry_point_52a2481a52f9799d: function(arg0, arg1, arg2) {
|
|
1036
|
+
arg0.entryPoint = getStringFromWasm0(arg1, arg2);
|
|
1037
|
+
},
|
|
1038
|
+
__wbg_set_entry_point_f04e91eced449196: function(arg0, arg1, arg2) {
|
|
1039
|
+
arg0.entryPoint = getStringFromWasm0(arg1, arg2);
|
|
1040
|
+
},
|
|
1041
|
+
__wbg_set_external_texture_cf122b1392d58f37: function(arg0, arg1) {
|
|
1042
|
+
arg0.externalTexture = arg1;
|
|
1043
|
+
},
|
|
1044
|
+
__wbg_set_fail_op_e7eb17ed0228b457: function(arg0, arg1) {
|
|
1045
|
+
arg0.failOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
1046
|
+
},
|
|
1047
|
+
__wbg_set_format_119bda0a3d0b3f47: function(arg0, arg1) {
|
|
1048
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1049
|
+
},
|
|
1050
|
+
__wbg_set_format_27c63de9b0ec1cb3: function(arg0, arg1) {
|
|
1051
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1052
|
+
},
|
|
1053
|
+
__wbg_set_format_75eb905a003c2f61: function(arg0, arg1) {
|
|
1054
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1055
|
+
},
|
|
1056
|
+
__wbg_set_format_8b8359f261ea64b9: function(arg0, arg1) {
|
|
1057
|
+
arg0.format = __wbindgen_enum_GpuVertexFormat[arg1];
|
|
1058
|
+
},
|
|
1059
|
+
__wbg_set_format_a5d373801c562623: function(arg0, arg1) {
|
|
1060
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1061
|
+
},
|
|
1062
|
+
__wbg_set_format_b08d87d5f33bcd89: function(arg0, arg1) {
|
|
1063
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1064
|
+
},
|
|
1065
|
+
__wbg_set_format_c1a342a37ced3e12: function(arg0, arg1) {
|
|
1066
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1067
|
+
},
|
|
1068
|
+
__wbg_set_fragment_41044c9110c69c90: function(arg0, arg1) {
|
|
1069
|
+
arg0.fragment = arg1;
|
|
1070
|
+
},
|
|
1071
|
+
__wbg_set_front_face_9c9f0518a3109d98: function(arg0, arg1) {
|
|
1072
|
+
arg0.frontFace = __wbindgen_enum_GpuFrontFace[arg1];
|
|
1073
|
+
},
|
|
1074
|
+
__wbg_set_g_a39877021b450e75: function(arg0, arg1) {
|
|
1075
|
+
arg0.g = arg1;
|
|
1076
|
+
},
|
|
1077
|
+
__wbg_set_has_dynamic_offset_69725fed837748fe: function(arg0, arg1) {
|
|
1078
|
+
arg0.hasDynamicOffset = arg1 !== 0;
|
|
1079
|
+
},
|
|
1080
|
+
__wbg_set_height_0739170de8653cc4: function(arg0, arg1) {
|
|
1081
|
+
arg0.height = arg1 >>> 0;
|
|
1082
|
+
},
|
|
1083
|
+
__wbg_set_height_975770494a218d52: function(arg0, arg1) {
|
|
1084
|
+
arg0.height = arg1 >>> 0;
|
|
1085
|
+
},
|
|
1086
|
+
__wbg_set_height_c661af0c0b5376f9: function(arg0, arg1) {
|
|
1087
|
+
arg0.height = arg1 >>> 0;
|
|
1088
|
+
},
|
|
1089
|
+
__wbg_set_label_26577513096f145b: function(arg0, arg1, arg2) {
|
|
1090
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1091
|
+
},
|
|
1092
|
+
__wbg_set_label_2816ddca7866dcfa: function(arg0, arg1, arg2) {
|
|
1093
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1094
|
+
},
|
|
1095
|
+
__wbg_set_label_2a41a6f671383447: function(arg0, arg1, arg2) {
|
|
1096
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1097
|
+
},
|
|
1098
|
+
__wbg_set_label_325c5e4b70c1568f: function(arg0, arg1, arg2) {
|
|
1099
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1100
|
+
},
|
|
1101
|
+
__wbg_set_label_37d0faa0c9b7dee4: function(arg0, arg1, arg2) {
|
|
1102
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1103
|
+
},
|
|
1104
|
+
__wbg_set_label_3e306b2e8f9db666: function(arg0, arg1, arg2) {
|
|
1105
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1106
|
+
},
|
|
1107
|
+
__wbg_set_label_5514e44725004e89: function(arg0, arg1, arg2) {
|
|
1108
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1109
|
+
},
|
|
1110
|
+
__wbg_set_label_570d3dee0e80279e: function(arg0, arg1, arg2) {
|
|
1111
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1112
|
+
},
|
|
1113
|
+
__wbg_set_label_58fbc9fcc6363f16: function(arg0, arg1, arg2) {
|
|
1114
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1115
|
+
},
|
|
1116
|
+
__wbg_set_label_5a4dbb42c3b27bf7: function(arg0, arg1, arg2) {
|
|
1117
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1118
|
+
},
|
|
1119
|
+
__wbg_set_label_5c952448f9d59f36: function(arg0, arg1, arg2) {
|
|
1120
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1121
|
+
},
|
|
1122
|
+
__wbg_set_label_5fadf65a1f0f4714: function(arg0, arg1, arg2) {
|
|
1123
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1124
|
+
},
|
|
1125
|
+
__wbg_set_label_782e33de78d86641: function(arg0, arg1, arg2) {
|
|
1126
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1127
|
+
},
|
|
1128
|
+
__wbg_set_label_837a3b8ff99c2db3: function(arg0, arg1, arg2) {
|
|
1129
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1130
|
+
},
|
|
1131
|
+
__wbg_set_label_8df6673e1e141fcc: function(arg0, arg1, arg2) {
|
|
1132
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1133
|
+
},
|
|
1134
|
+
__wbg_set_layout_a6ee8e74696bc0c8: function(arg0, arg1) {
|
|
1135
|
+
arg0.layout = arg1;
|
|
1136
|
+
},
|
|
1137
|
+
__wbg_set_layout_cd5d951ba305620a: function(arg0, arg1) {
|
|
1138
|
+
arg0.layout = arg1;
|
|
1139
|
+
},
|
|
1140
|
+
__wbg_set_layout_d701bf37a1e489c6: function(arg0, arg1) {
|
|
1141
|
+
arg0.layout = arg1;
|
|
1142
|
+
},
|
|
1143
|
+
__wbg_set_load_op_e8ff3e1c81f7398d: function(arg0, arg1) {
|
|
1144
|
+
arg0.loadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
1145
|
+
},
|
|
1146
|
+
__wbg_set_lod_max_clamp_a9f93b2e2ae9023d: function(arg0, arg1) {
|
|
1147
|
+
arg0.lodMaxClamp = arg1;
|
|
1148
|
+
},
|
|
1149
|
+
__wbg_set_lod_min_clamp_342b47161f1fa002: function(arg0, arg1) {
|
|
1150
|
+
arg0.lodMinClamp = arg1;
|
|
1151
|
+
},
|
|
1152
|
+
__wbg_set_mag_filter_28e863ff1a386f86: function(arg0, arg1) {
|
|
1153
|
+
arg0.magFilter = __wbindgen_enum_GpuFilterMode[arg1];
|
|
1154
|
+
},
|
|
1155
|
+
__wbg_set_mapped_at_creation_7f0aad21612f3e22: function(arg0, arg1) {
|
|
1156
|
+
arg0.mappedAtCreation = arg1 !== 0;
|
|
1157
|
+
},
|
|
1158
|
+
__wbg_set_mask_a18cbdfc03a4cbd9: function(arg0, arg1) {
|
|
1159
|
+
arg0.mask = arg1 >>> 0;
|
|
1160
|
+
},
|
|
1161
|
+
__wbg_set_max_anisotropy_19e574a7e9cb009a: function(arg0, arg1) {
|
|
1162
|
+
arg0.maxAnisotropy = arg1;
|
|
1163
|
+
},
|
|
1164
|
+
__wbg_set_min_binding_size_d70e460d165d9144: function(arg0, arg1) {
|
|
1165
|
+
arg0.minBindingSize = arg1;
|
|
1166
|
+
},
|
|
1167
|
+
__wbg_set_min_filter_5275c8a3815f9f0c: function(arg0, arg1) {
|
|
1168
|
+
arg0.minFilter = __wbindgen_enum_GpuFilterMode[arg1];
|
|
1169
|
+
},
|
|
1170
|
+
__wbg_set_mip_level_8d4dfc5d506cb37f: function(arg0, arg1) {
|
|
1171
|
+
arg0.mipLevel = arg1 >>> 0;
|
|
1172
|
+
},
|
|
1173
|
+
__wbg_set_mip_level_count_04af0d33c4905fac: function(arg0, arg1) {
|
|
1174
|
+
arg0.mipLevelCount = arg1 >>> 0;
|
|
1175
|
+
},
|
|
1176
|
+
__wbg_set_mip_level_count_dcb2ad32716506a5: function(arg0, arg1) {
|
|
1177
|
+
arg0.mipLevelCount = arg1 >>> 0;
|
|
1178
|
+
},
|
|
1179
|
+
__wbg_set_mipmap_filter_ae5e0e814693019b: function(arg0, arg1) {
|
|
1180
|
+
arg0.mipmapFilter = __wbindgen_enum_GpuMipmapFilterMode[arg1];
|
|
1181
|
+
},
|
|
1182
|
+
__wbg_set_module_0933874708065f3b: function(arg0, arg1) {
|
|
1183
|
+
arg0.module = arg1;
|
|
1184
|
+
},
|
|
1185
|
+
__wbg_set_module_22d452288cef846d: function(arg0, arg1) {
|
|
1186
|
+
arg0.module = arg1;
|
|
1187
|
+
},
|
|
1188
|
+
__wbg_set_module_a7a131494850e5f7: function(arg0, arg1) {
|
|
1189
|
+
arg0.module = arg1;
|
|
1190
|
+
},
|
|
1191
|
+
__wbg_set_multisample_e857cbfca335c7f1: function(arg0, arg1) {
|
|
1192
|
+
arg0.multisample = arg1;
|
|
1193
|
+
},
|
|
1194
|
+
__wbg_set_multisampled_4ce4c32144215354: function(arg0, arg1) {
|
|
1195
|
+
arg0.multisampled = arg1 !== 0;
|
|
1196
|
+
},
|
|
1197
|
+
__wbg_set_offset_0e56098d94f81ccd: function(arg0, arg1) {
|
|
1198
|
+
arg0.offset = arg1;
|
|
1199
|
+
},
|
|
1200
|
+
__wbg_set_offset_baf6780761c43b24: function(arg0, arg1) {
|
|
1201
|
+
arg0.offset = arg1;
|
|
1202
|
+
},
|
|
1203
|
+
__wbg_set_offset_e316586bb85f0bd6: function(arg0, arg1) {
|
|
1204
|
+
arg0.offset = arg1;
|
|
1205
|
+
},
|
|
1206
|
+
__wbg_set_offset_eabaf12fe1c98ce7: function(arg0, arg1) {
|
|
1207
|
+
arg0.offset = arg1;
|
|
1208
|
+
},
|
|
1209
|
+
__wbg_set_operation_a91e5763a8313c6b: function(arg0, arg1) {
|
|
1210
|
+
arg0.operation = __wbindgen_enum_GpuBlendOperation[arg1];
|
|
1211
|
+
},
|
|
1212
|
+
__wbg_set_origin_24a61b4427e330e9: function(arg0, arg1) {
|
|
1213
|
+
arg0.origin = arg1;
|
|
1214
|
+
},
|
|
1215
|
+
__wbg_set_pass_op_eef0c5885ae707c3: function(arg0, arg1) {
|
|
1216
|
+
arg0.passOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
1217
|
+
},
|
|
1218
|
+
__wbg_set_power_preference_7d669fb9b41f7bf2: function(arg0, arg1) {
|
|
1219
|
+
arg0.powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
|
|
1220
|
+
},
|
|
1221
|
+
__wbg_set_primitive_3462e090c7a78969: function(arg0, arg1) {
|
|
1222
|
+
arg0.primitive = arg1;
|
|
1223
|
+
},
|
|
1224
|
+
__wbg_set_query_set_604a8ae10429942b: function(arg0, arg1) {
|
|
1225
|
+
arg0.querySet = arg1;
|
|
1226
|
+
},
|
|
1227
|
+
__wbg_set_query_set_62d86bdf10d64d37: function(arg0, arg1) {
|
|
1228
|
+
arg0.querySet = arg1;
|
|
1229
|
+
},
|
|
1230
|
+
__wbg_set_r_40fe44b2d9a401f4: function(arg0, arg1) {
|
|
1231
|
+
arg0.r = arg1;
|
|
1232
|
+
},
|
|
1233
|
+
__wbg_set_required_features_3d00070d09235d7d: function(arg0, arg1) {
|
|
1234
|
+
arg0.requiredFeatures = arg1;
|
|
1235
|
+
},
|
|
1236
|
+
__wbg_set_required_limits_e0de55a49a48e3dc: function(arg0, arg1) {
|
|
1237
|
+
arg0.requiredLimits = arg1;
|
|
1238
|
+
},
|
|
1239
|
+
__wbg_set_resolve_target_6e7eda03a6886624: function(arg0, arg1) {
|
|
1240
|
+
arg0.resolveTarget = arg1;
|
|
1241
|
+
},
|
|
1242
|
+
__wbg_set_resource_fe1f979fce4afee2: function(arg0, arg1) {
|
|
1243
|
+
arg0.resource = arg1;
|
|
1244
|
+
},
|
|
1245
|
+
__wbg_set_rows_per_image_1f4a56a3c5d57e93: function(arg0, arg1) {
|
|
1246
|
+
arg0.rowsPerImage = arg1 >>> 0;
|
|
1247
|
+
},
|
|
1248
|
+
__wbg_set_rows_per_image_c616c70e60a35618: function(arg0, arg1) {
|
|
1249
|
+
arg0.rowsPerImage = arg1 >>> 0;
|
|
1250
|
+
},
|
|
1251
|
+
__wbg_set_sample_count_2b8ac49e1626ac13: function(arg0, arg1) {
|
|
1252
|
+
arg0.sampleCount = arg1 >>> 0;
|
|
1253
|
+
},
|
|
1254
|
+
__wbg_set_sample_type_3cecbd4699e2e5fb: function(arg0, arg1) {
|
|
1255
|
+
arg0.sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
|
|
1256
|
+
},
|
|
1257
|
+
__wbg_set_sampler_12544c21977075c1: function(arg0, arg1) {
|
|
1258
|
+
arg0.sampler = arg1;
|
|
1259
|
+
},
|
|
1260
|
+
__wbg_set_shader_location_03356bf6a6da4332: function(arg0, arg1) {
|
|
1261
|
+
arg0.shaderLocation = arg1 >>> 0;
|
|
1262
|
+
},
|
|
1263
|
+
__wbg_set_size_0c20f73abce8f1ce: function(arg0, arg1) {
|
|
1264
|
+
arg0.size = arg1;
|
|
1265
|
+
},
|
|
1266
|
+
__wbg_set_size_cf04b4174c30722b: function(arg0, arg1) {
|
|
1267
|
+
arg0.size = arg1;
|
|
1268
|
+
},
|
|
1269
|
+
__wbg_set_size_f1207de283144c72: function(arg0, arg1) {
|
|
1270
|
+
arg0.size = arg1;
|
|
1271
|
+
},
|
|
1272
|
+
__wbg_set_src_factor_c3668d4122497276: function(arg0, arg1) {
|
|
1273
|
+
arg0.srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
|
|
1274
|
+
},
|
|
1275
|
+
__wbg_set_stencil_back_8d01a6c0477059b0: function(arg0, arg1) {
|
|
1276
|
+
arg0.stencilBack = arg1;
|
|
1277
|
+
},
|
|
1278
|
+
__wbg_set_stencil_clear_value_1f380af0bd0d9255: function(arg0, arg1) {
|
|
1279
|
+
arg0.stencilClearValue = arg1 >>> 0;
|
|
1280
|
+
},
|
|
1281
|
+
__wbg_set_stencil_front_f881c15b2d170653: function(arg0, arg1) {
|
|
1282
|
+
arg0.stencilFront = arg1;
|
|
1283
|
+
},
|
|
1284
|
+
__wbg_set_stencil_load_op_5cde31e71a964b58: function(arg0, arg1) {
|
|
1285
|
+
arg0.stencilLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
1286
|
+
},
|
|
1287
|
+
__wbg_set_stencil_read_mask_d79993adcfc418ab: function(arg0, arg1) {
|
|
1288
|
+
arg0.stencilReadMask = arg1 >>> 0;
|
|
1289
|
+
},
|
|
1290
|
+
__wbg_set_stencil_read_only_ac984029b821315e: function(arg0, arg1) {
|
|
1291
|
+
arg0.stencilReadOnly = arg1 !== 0;
|
|
1292
|
+
},
|
|
1293
|
+
__wbg_set_stencil_store_op_262e1df7b92404d3: function(arg0, arg1) {
|
|
1294
|
+
arg0.stencilStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
1295
|
+
},
|
|
1296
|
+
__wbg_set_stencil_write_mask_94ec6249877e083e: function(arg0, arg1) {
|
|
1297
|
+
arg0.stencilWriteMask = arg1 >>> 0;
|
|
1298
|
+
},
|
|
1299
|
+
__wbg_set_step_mode_241a8d5515fa964b: function(arg0, arg1) {
|
|
1300
|
+
arg0.stepMode = __wbindgen_enum_GpuVertexStepMode[arg1];
|
|
1301
|
+
},
|
|
1302
|
+
__wbg_set_storage_texture_36be4834c501acab: function(arg0, arg1) {
|
|
1303
|
+
arg0.storageTexture = arg1;
|
|
1304
|
+
},
|
|
1305
|
+
__wbg_set_store_op_a95e8da4555c6010: function(arg0, arg1) {
|
|
1306
|
+
arg0.storeOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
1307
|
+
},
|
|
1308
|
+
__wbg_set_strip_index_format_62c417aa65a4d277: function(arg0, arg1) {
|
|
1309
|
+
arg0.stripIndexFormat = __wbindgen_enum_GpuIndexFormat[arg1];
|
|
1310
|
+
},
|
|
1311
|
+
__wbg_set_targets_6664b7e6ec5da9d3: function(arg0, arg1) {
|
|
1312
|
+
arg0.targets = arg1;
|
|
1313
|
+
},
|
|
1314
|
+
__wbg_set_texture_64823aa8aca790b5: function(arg0, arg1) {
|
|
1315
|
+
arg0.texture = arg1;
|
|
1316
|
+
},
|
|
1317
|
+
__wbg_set_texture_738e6f6215515de3: function(arg0, arg1) {
|
|
1318
|
+
arg0.texture = arg1;
|
|
1319
|
+
},
|
|
1320
|
+
__wbg_set_timestamp_writes_3854a564715b0ac7: function(arg0, arg1) {
|
|
1321
|
+
arg0.timestampWrites = arg1;
|
|
1322
|
+
},
|
|
1323
|
+
__wbg_set_timestamp_writes_6854d9d17bf5b0b4: function(arg0, arg1) {
|
|
1324
|
+
arg0.timestampWrites = arg1;
|
|
1325
|
+
},
|
|
1326
|
+
__wbg_set_topology_914716698f5868bb: function(arg0, arg1) {
|
|
1327
|
+
arg0.topology = __wbindgen_enum_GpuPrimitiveTopology[arg1];
|
|
1328
|
+
},
|
|
1329
|
+
__wbg_set_type_17a1387b620bc902: function(arg0, arg1) {
|
|
1330
|
+
arg0.type = __wbindgen_enum_GpuBufferBindingType[arg1];
|
|
1331
|
+
},
|
|
1332
|
+
__wbg_set_type_d4edb621ec2051e0: function(arg0, arg1) {
|
|
1333
|
+
arg0.type = __wbindgen_enum_GpuSamplerBindingType[arg1];
|
|
1334
|
+
},
|
|
1335
|
+
__wbg_set_unclipped_depth_e23e3091db2ac351: function(arg0, arg1) {
|
|
1336
|
+
arg0.unclippedDepth = arg1 !== 0;
|
|
1337
|
+
},
|
|
1338
|
+
__wbg_set_usage_41b7d18f3f220e6c: function(arg0, arg1) {
|
|
1339
|
+
arg0.usage = arg1 >>> 0;
|
|
1340
|
+
},
|
|
1341
|
+
__wbg_set_usage_6ae4d85589906117: function(arg0, arg1) {
|
|
1342
|
+
arg0.usage = arg1 >>> 0;
|
|
1343
|
+
},
|
|
1344
|
+
__wbg_set_usage_e167dd772123f679: function(arg0, arg1) {
|
|
1345
|
+
arg0.usage = arg1 >>> 0;
|
|
1346
|
+
},
|
|
1347
|
+
__wbg_set_usage_f084cd416060ceee: function(arg0, arg1) {
|
|
1348
|
+
arg0.usage = arg1 >>> 0;
|
|
1349
|
+
},
|
|
1350
|
+
__wbg_set_vertex_29812f650590fa45: function(arg0, arg1) {
|
|
1351
|
+
arg0.vertex = arg1;
|
|
1352
|
+
},
|
|
1353
|
+
__wbg_set_view_32a8132aec6de194: function(arg0, arg1) {
|
|
1354
|
+
arg0.view = arg1;
|
|
1355
|
+
},
|
|
1356
|
+
__wbg_set_view_506e5beadab34e99: function(arg0, arg1) {
|
|
1357
|
+
arg0.view = arg1;
|
|
1358
|
+
},
|
|
1359
|
+
__wbg_set_view_dimension_4a840560a13b4860: function(arg0, arg1) {
|
|
1360
|
+
arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
1361
|
+
},
|
|
1362
|
+
__wbg_set_view_dimension_9ae69db849267b1a: function(arg0, arg1) {
|
|
1363
|
+
arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
1364
|
+
},
|
|
1365
|
+
__wbg_set_view_formats_4d0b943f593dd219: function(arg0, arg1) {
|
|
1366
|
+
arg0.viewFormats = arg1;
|
|
1367
|
+
},
|
|
1368
|
+
__wbg_set_view_formats_cba8520bf0d83d62: function(arg0, arg1) {
|
|
1369
|
+
arg0.viewFormats = arg1;
|
|
1370
|
+
},
|
|
1371
|
+
__wbg_set_visibility_bbbf3d2b70571950: function(arg0, arg1) {
|
|
1372
|
+
arg0.visibility = arg1 >>> 0;
|
|
1373
|
+
},
|
|
1374
|
+
__wbg_set_width_0f26635b289b3c67: function(arg0, arg1) {
|
|
1375
|
+
arg0.width = arg1 >>> 0;
|
|
1376
|
+
},
|
|
1377
|
+
__wbg_set_width_7ca43f32db1cfe8e: function(arg0, arg1) {
|
|
1378
|
+
arg0.width = arg1 >>> 0;
|
|
1379
|
+
},
|
|
1380
|
+
__wbg_set_width_87301412247f3343: function(arg0, arg1) {
|
|
1381
|
+
arg0.width = arg1 >>> 0;
|
|
1382
|
+
},
|
|
1383
|
+
__wbg_set_write_mask_949f521dcf3da2b5: function(arg0, arg1) {
|
|
1384
|
+
arg0.writeMask = arg1 >>> 0;
|
|
1385
|
+
},
|
|
1386
|
+
__wbg_set_x_15a4c893b3366fab: function(arg0, arg1) {
|
|
1387
|
+
arg0.x = arg1 >>> 0;
|
|
1388
|
+
},
|
|
1389
|
+
__wbg_set_y_c631920a1c51a694: function(arg0, arg1) {
|
|
1390
|
+
arg0.y = arg1 >>> 0;
|
|
1391
|
+
},
|
|
1392
|
+
__wbg_set_z_7c526101c55ea2ae: function(arg0, arg1) {
|
|
1393
|
+
arg0.z = arg1 >>> 0;
|
|
1394
|
+
},
|
|
1395
|
+
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
1396
|
+
const ret = arg1.stack;
|
|
1397
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1398
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1399
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1400
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1401
|
+
},
|
|
1402
|
+
__wbg_static_accessor_GLOBAL_9d53f2689e622ca1: function() {
|
|
1403
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1404
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1405
|
+
},
|
|
1406
|
+
__wbg_static_accessor_GLOBAL_THIS_a1a35cec07001a8a: function() {
|
|
1407
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1408
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1409
|
+
},
|
|
1410
|
+
__wbg_static_accessor_SELF_4c59f6c7ea29a144: function() {
|
|
1411
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1412
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1413
|
+
},
|
|
1414
|
+
__wbg_static_accessor_WINDOW_e70ae9f2eb052253: function() {
|
|
1415
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1416
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1417
|
+
},
|
|
1418
|
+
__wbg_submit_b3bbead76cbf7627: function(arg0, arg1) {
|
|
1419
|
+
arg0.submit(arg1);
|
|
1420
|
+
},
|
|
1421
|
+
__wbg_then_18f476d590e58992: function(arg0, arg1, arg2) {
|
|
1422
|
+
const ret = arg0.then(arg1, arg2);
|
|
1423
|
+
return ret;
|
|
1424
|
+
},
|
|
1425
|
+
__wbg_then_529ea37d9bdbf95d: function(arg0, arg1, arg2) {
|
|
1426
|
+
const ret = arg0.then(arg1, arg2);
|
|
1427
|
+
return ret;
|
|
1428
|
+
},
|
|
1429
|
+
__wbg_then_ac7b025999b52837: function(arg0, arg1) {
|
|
1430
|
+
const ret = arg0.then(arg1);
|
|
1431
|
+
return ret;
|
|
1432
|
+
},
|
|
1433
|
+
__wbg_unmap_817a2e3248a553fb: function(arg0) {
|
|
1434
|
+
arg0.unmap();
|
|
1435
|
+
},
|
|
1436
|
+
__wbg_warn_410c3261e3c6d686: function(arg0) {
|
|
1437
|
+
console.warn(arg0);
|
|
1438
|
+
},
|
|
1439
|
+
__wbg_writeBuffer_24a10bfd5a8a57f7: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1440
|
+
arg0.writeBuffer(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), arg5, arg6);
|
|
1441
|
+
}, arguments); },
|
|
1442
|
+
__wbg_writeTexture_acb28796746826c8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1443
|
+
arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
|
|
1444
|
+
}, arguments); },
|
|
1445
|
+
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1446
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3348, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1447
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h84d34b615e684f5e);
|
|
1448
|
+
return ret;
|
|
1449
|
+
},
|
|
1450
|
+
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1451
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 4810, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1452
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hba9dab33e391dce8);
|
|
1453
|
+
return ret;
|
|
1454
|
+
},
|
|
1455
|
+
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
1456
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1457
|
+
const ret = arg0;
|
|
1458
|
+
return ret;
|
|
1459
|
+
},
|
|
1460
|
+
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1461
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1462
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1463
|
+
return ret;
|
|
1464
|
+
},
|
|
1465
|
+
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
1466
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1467
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1468
|
+
return ret;
|
|
1469
|
+
},
|
|
1470
|
+
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1471
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
1472
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
1473
|
+
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
1474
|
+
const ret = v0;
|
|
1475
|
+
return ret;
|
|
1476
|
+
},
|
|
1477
|
+
__wbindgen_init_externref_table: function() {
|
|
1478
|
+
const table = wasm.__wbindgen_externrefs;
|
|
1479
|
+
const offset = table.grow(4);
|
|
1480
|
+
table.set(0, undefined);
|
|
1481
|
+
table.set(offset + 0, undefined);
|
|
1482
|
+
table.set(offset + 1, null);
|
|
1483
|
+
table.set(offset + 2, true);
|
|
1484
|
+
table.set(offset + 3, false);
|
|
1485
|
+
},
|
|
1486
|
+
};
|
|
1487
|
+
return {
|
|
1488
|
+
__proto__: null,
|
|
1489
|
+
"./paged_canvas_wasm_bg.js": import0,
|
|
1490
|
+
};
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
function wasm_bindgen__convert__closures_____invoke__h84d34b615e684f5e(arg0, arg1, arg2) {
|
|
1494
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h84d34b615e684f5e(arg0, arg1, arg2);
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
function wasm_bindgen__convert__closures_____invoke__hba9dab33e391dce8(arg0, arg1, arg2) {
|
|
1498
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hba9dab33e391dce8(arg0, arg1, arg2);
|
|
1499
|
+
if (ret[1]) {
|
|
1500
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
function wasm_bindgen__convert__closures_____invoke__h2a9a86477ca3734e(arg0, arg1, arg2, arg3) {
|
|
1505
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h2a9a86477ca3734e(arg0, arg1, arg2, arg3);
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
const __wbindgen_enum_GpuAddressMode = ["clamp-to-edge", "repeat", "mirror-repeat"];
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
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"];
|
|
1513
|
+
|
|
1514
|
+
|
|
1515
|
+
const __wbindgen_enum_GpuBlendOperation = ["add", "subtract", "reverse-subtract", "min", "max"];
|
|
1516
|
+
|
|
1517
|
+
|
|
1518
|
+
const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
const __wbindgen_enum_GpuCanvasAlphaMode = ["opaque", "premultiplied"];
|
|
1522
|
+
|
|
1523
|
+
|
|
1524
|
+
const __wbindgen_enum_GpuCompareFunction = ["never", "less", "equal", "less-equal", "greater", "not-equal", "greater-equal", "always"];
|
|
1525
|
+
|
|
1526
|
+
|
|
1527
|
+
const __wbindgen_enum_GpuCullMode = ["none", "front", "back"];
|
|
1528
|
+
|
|
1529
|
+
|
|
1530
|
+
const __wbindgen_enum_GpuFilterMode = ["nearest", "linear"];
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
const __wbindgen_enum_GpuFrontFace = ["ccw", "cw"];
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
|
|
1537
|
+
|
|
1538
|
+
|
|
1539
|
+
const __wbindgen_enum_GpuLoadOp = ["load", "clear"];
|
|
1540
|
+
|
|
1541
|
+
|
|
1542
|
+
const __wbindgen_enum_GpuMipmapFilterMode = ["nearest", "linear"];
|
|
1543
|
+
|
|
1544
|
+
|
|
1545
|
+
const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
|
|
1546
|
+
|
|
1547
|
+
|
|
1548
|
+
const __wbindgen_enum_GpuPrimitiveTopology = ["point-list", "line-list", "line-strip", "triangle-list", "triangle-strip"];
|
|
1549
|
+
|
|
1550
|
+
|
|
1551
|
+
const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
const __wbindgen_enum_GpuStencilOperation = ["keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap"];
|
|
1555
|
+
|
|
1556
|
+
|
|
1557
|
+
const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
const __wbindgen_enum_GpuStoreOp = ["store", "discard"];
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
const __wbindgen_enum_GpuTextureAspect = ["all", "stencil-only", "depth-only"];
|
|
1564
|
+
|
|
1565
|
+
|
|
1566
|
+
const __wbindgen_enum_GpuTextureDimension = ["1d", "2d", "3d"];
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
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"];
|
|
1570
|
+
|
|
1571
|
+
|
|
1572
|
+
const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "depth", "sint", "uint"];
|
|
1573
|
+
|
|
1574
|
+
|
|
1575
|
+
const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
|
|
1576
|
+
|
|
1577
|
+
|
|
1578
|
+
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"];
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
const __wbindgen_enum_GpuVertexStepMode = ["vertex", "instance"];
|
|
1582
|
+
const CanvasWorkerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1583
|
+
? { register: () => {}, unregister: () => {} }
|
|
1584
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_canvasworker_free(ptr, 1));
|
|
1585
|
+
|
|
1586
|
+
function addToExternrefTable0(obj) {
|
|
1587
|
+
const idx = wasm.__externref_table_alloc();
|
|
1588
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
1589
|
+
return idx;
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1593
|
+
? { register: () => {}, unregister: () => {} }
|
|
1594
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
1595
|
+
|
|
1596
|
+
function debugString(val) {
|
|
1597
|
+
// primitive types
|
|
1598
|
+
const type = typeof val;
|
|
1599
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
1600
|
+
return `${val}`;
|
|
1601
|
+
}
|
|
1602
|
+
if (type == 'string') {
|
|
1603
|
+
return `"${val}"`;
|
|
1604
|
+
}
|
|
1605
|
+
if (type == 'symbol') {
|
|
1606
|
+
const description = val.description;
|
|
1607
|
+
if (description == null) {
|
|
1608
|
+
return 'Symbol';
|
|
1609
|
+
} else {
|
|
1610
|
+
return `Symbol(${description})`;
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
if (type == 'function') {
|
|
1614
|
+
const name = val.name;
|
|
1615
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
1616
|
+
return `Function(${name})`;
|
|
1617
|
+
} else {
|
|
1618
|
+
return 'Function';
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
// objects
|
|
1622
|
+
if (Array.isArray(val)) {
|
|
1623
|
+
const length = val.length;
|
|
1624
|
+
let debug = '[';
|
|
1625
|
+
if (length > 0) {
|
|
1626
|
+
debug += debugString(val[0]);
|
|
1627
|
+
}
|
|
1628
|
+
for(let i = 1; i < length; i++) {
|
|
1629
|
+
debug += ', ' + debugString(val[i]);
|
|
1630
|
+
}
|
|
1631
|
+
debug += ']';
|
|
1632
|
+
return debug;
|
|
1633
|
+
}
|
|
1634
|
+
// Test for built-in
|
|
1635
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
1636
|
+
let className;
|
|
1637
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
1638
|
+
className = builtInMatches[1];
|
|
1639
|
+
} else {
|
|
1640
|
+
// Failed to match the standard '[object ClassName]'
|
|
1641
|
+
return toString.call(val);
|
|
1642
|
+
}
|
|
1643
|
+
if (className == 'Object') {
|
|
1644
|
+
// we're a user defined class or Object
|
|
1645
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
1646
|
+
// easier than looping through ownProperties of `val`.
|
|
1647
|
+
try {
|
|
1648
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
1649
|
+
} catch (_) {
|
|
1650
|
+
return 'Object';
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
// errors
|
|
1654
|
+
if (val instanceof Error) {
|
|
1655
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1656
|
+
}
|
|
1657
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1658
|
+
return className;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
1662
|
+
ptr = ptr >>> 0;
|
|
1663
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
1667
|
+
ptr = ptr >>> 0;
|
|
1668
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
let cachedDataViewMemory0 = null;
|
|
1672
|
+
function getDataViewMemory0() {
|
|
1673
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
1674
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
1675
|
+
}
|
|
1676
|
+
return cachedDataViewMemory0;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
function getStringFromWasm0(ptr, len) {
|
|
1680
|
+
return decodeText(ptr >>> 0, len);
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
let cachedUint32ArrayMemory0 = null;
|
|
1684
|
+
function getUint32ArrayMemory0() {
|
|
1685
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
1686
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
1687
|
+
}
|
|
1688
|
+
return cachedUint32ArrayMemory0;
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
let cachedUint8ArrayMemory0 = null;
|
|
1692
|
+
function getUint8ArrayMemory0() {
|
|
1693
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
1694
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
1695
|
+
}
|
|
1696
|
+
return cachedUint8ArrayMemory0;
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
function handleError(f, args) {
|
|
1700
|
+
try {
|
|
1701
|
+
return f.apply(this, args);
|
|
1702
|
+
} catch (e) {
|
|
1703
|
+
const idx = addToExternrefTable0(e);
|
|
1704
|
+
wasm.__wbindgen_exn_store(idx);
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
function isLikeNone(x) {
|
|
1709
|
+
return x === undefined || x === null;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
1713
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
1714
|
+
const real = (...args) => {
|
|
1715
|
+
|
|
1716
|
+
// First up with a closure we increment the internal reference
|
|
1717
|
+
// count. This ensures that the Rust closure environment won't
|
|
1718
|
+
// be deallocated while we're invoking it.
|
|
1719
|
+
state.cnt++;
|
|
1720
|
+
const a = state.a;
|
|
1721
|
+
state.a = 0;
|
|
1722
|
+
try {
|
|
1723
|
+
return f(a, state.b, ...args);
|
|
1724
|
+
} finally {
|
|
1725
|
+
state.a = a;
|
|
1726
|
+
real._wbg_cb_unref();
|
|
1727
|
+
}
|
|
1728
|
+
};
|
|
1729
|
+
real._wbg_cb_unref = () => {
|
|
1730
|
+
if (--state.cnt === 0) {
|
|
1731
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
1732
|
+
state.a = 0;
|
|
1733
|
+
CLOSURE_DTORS.unregister(state);
|
|
1734
|
+
}
|
|
1735
|
+
};
|
|
1736
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
1737
|
+
return real;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
1741
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
1742
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
1743
|
+
WASM_VECTOR_LEN = arg.length;
|
|
1744
|
+
return ptr;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
1748
|
+
if (realloc === undefined) {
|
|
1749
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1750
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
1751
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
1752
|
+
WASM_VECTOR_LEN = buf.length;
|
|
1753
|
+
return ptr;
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
let len = arg.length;
|
|
1757
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
1758
|
+
|
|
1759
|
+
const mem = getUint8ArrayMemory0();
|
|
1760
|
+
|
|
1761
|
+
let offset = 0;
|
|
1762
|
+
|
|
1763
|
+
for (; offset < len; offset++) {
|
|
1764
|
+
const code = arg.charCodeAt(offset);
|
|
1765
|
+
if (code > 0x7F) break;
|
|
1766
|
+
mem[ptr + offset] = code;
|
|
1767
|
+
}
|
|
1768
|
+
if (offset !== len) {
|
|
1769
|
+
if (offset !== 0) {
|
|
1770
|
+
arg = arg.slice(offset);
|
|
1771
|
+
}
|
|
1772
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
1773
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
1774
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1775
|
+
|
|
1776
|
+
offset += ret.written;
|
|
1777
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
WASM_VECTOR_LEN = offset;
|
|
1781
|
+
return ptr;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
function takeFromExternrefTable0(idx) {
|
|
1785
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1786
|
+
wasm.__externref_table_dealloc(idx);
|
|
1787
|
+
return value;
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1791
|
+
cachedTextDecoder.decode();
|
|
1792
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1793
|
+
let numBytesDecoded = 0;
|
|
1794
|
+
function decodeText(ptr, len) {
|
|
1795
|
+
numBytesDecoded += len;
|
|
1796
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1797
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1798
|
+
cachedTextDecoder.decode();
|
|
1799
|
+
numBytesDecoded = len;
|
|
1800
|
+
}
|
|
1801
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
const cachedTextEncoder = new TextEncoder();
|
|
1805
|
+
|
|
1806
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
1807
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
1808
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1809
|
+
view.set(buf);
|
|
1810
|
+
return {
|
|
1811
|
+
read: arg.length,
|
|
1812
|
+
written: buf.length
|
|
1813
|
+
};
|
|
1814
|
+
};
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
let WASM_VECTOR_LEN = 0;
|
|
1818
|
+
|
|
1819
|
+
let wasmModule, wasmInstance, wasm;
|
|
1820
|
+
function __wbg_finalize_init(instance, module) {
|
|
1821
|
+
wasmInstance = instance;
|
|
1822
|
+
wasm = instance.exports;
|
|
1823
|
+
wasmModule = module;
|
|
1824
|
+
cachedDataViewMemory0 = null;
|
|
1825
|
+
cachedUint32ArrayMemory0 = null;
|
|
1826
|
+
cachedUint8ArrayMemory0 = null;
|
|
1827
|
+
wasm.__wbindgen_start();
|
|
1828
|
+
return wasm;
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
async function __wbg_load(module, imports) {
|
|
1832
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
1833
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1834
|
+
try {
|
|
1835
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1836
|
+
} catch (e) {
|
|
1837
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
1838
|
+
|
|
1839
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1840
|
+
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);
|
|
1841
|
+
|
|
1842
|
+
} else { throw e; }
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
const bytes = await module.arrayBuffer();
|
|
1847
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
1848
|
+
} else {
|
|
1849
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
1850
|
+
|
|
1851
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
1852
|
+
return { instance, module };
|
|
1853
|
+
} else {
|
|
1854
|
+
return instance;
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
function expectedResponseType(type) {
|
|
1859
|
+
switch (type) {
|
|
1860
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
1861
|
+
}
|
|
1862
|
+
return false;
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
function initSync(module) {
|
|
1867
|
+
if (wasm !== undefined) return wasm;
|
|
1868
|
+
|
|
1869
|
+
|
|
1870
|
+
if (module !== undefined) {
|
|
1871
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1872
|
+
({module} = module)
|
|
1873
|
+
} else {
|
|
1874
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
const imports = __wbg_get_imports();
|
|
1879
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1880
|
+
module = new WebAssembly.Module(module);
|
|
1881
|
+
}
|
|
1882
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1883
|
+
return __wbg_finalize_init(instance, module);
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
async function __wbg_init(module_or_path) {
|
|
1887
|
+
if (wasm !== undefined) return wasm;
|
|
1888
|
+
|
|
1889
|
+
|
|
1890
|
+
if (module_or_path !== undefined) {
|
|
1891
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1892
|
+
({module_or_path} = module_or_path)
|
|
1893
|
+
} else {
|
|
1894
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
if (module_or_path === undefined) {
|
|
1899
|
+
module_or_path = new URL('paged_canvas_wasm_bg.wasm', import.meta.url);
|
|
1900
|
+
}
|
|
1901
|
+
const imports = __wbg_get_imports();
|
|
1902
|
+
|
|
1903
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1904
|
+
module_or_path = fetch(module_or_path);
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1908
|
+
|
|
1909
|
+
return __wbg_finalize_init(instance, module);
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
export { initSync, __wbg_init as default };
|