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