hyperchess-wasm 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.md +35 -0
- package/dist/bundler/.gitkeep +0 -0
- package/dist/bundler/README.md +37 -0
- package/dist/bundler/hyperchess_wasm.d.ts +229 -0
- package/dist/bundler/hyperchess_wasm.js +9 -0
- package/dist/bundler/hyperchess_wasm_bg.js +2858 -0
- package/dist/bundler/hyperchess_wasm_bg.wasm +0 -0
- package/dist/bundler/hyperchess_wasm_bg.wasm.d.ts +56 -0
- package/dist/bundler/package.json +30 -0
- package/dist/nodejs/.gitkeep +0 -0
- package/dist/nodejs/README.md +37 -0
- package/dist/nodejs/hyperchess_wasm.d.ts +229 -0
- package/dist/nodejs/hyperchess_wasm.js +2867 -0
- package/dist/nodejs/hyperchess_wasm_bg.wasm +0 -0
- package/dist/nodejs/hyperchess_wasm_bg.wasm.d.ts +56 -0
- package/dist/nodejs/package.json +24 -0
- package/dist/web/.gitkeep +0 -0
- package/dist/web/README.md +37 -0
- package/dist/web/hyperchess_wasm.d.ts +310 -0
- package/dist/web/hyperchess_wasm.js +2964 -0
- package/dist/web/hyperchess_wasm_bg.wasm +0 -0
- package/dist/web/hyperchess_wasm_bg.wasm.d.ts +56 -0
- package/dist/web/package.json +28 -0
- package/package.json +65 -0
|
@@ -0,0 +1,2858 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JS-facing handle. Board state is a 144-byte array: 0 = empty, else
|
|
3
|
+
* `(color << 4) | kind` with kind 1..=8 indexing
|
|
4
|
+
* `[pawn, knight, bishop, rook, queen, king, eagle, hawk]` and color
|
|
5
|
+
* 0 = white, 1 = black (see `board3d.js` for the encoder).
|
|
6
|
+
*/
|
|
7
|
+
export class Scene3D {
|
|
8
|
+
static __wrap(ptr) {
|
|
9
|
+
const obj = Object.create(Scene3D.prototype);
|
|
10
|
+
obj.__wbg_ptr = ptr;
|
|
11
|
+
Scene3DFinalization.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
|
+
Scene3DFinalization.unregister(this);
|
|
18
|
+
return ptr;
|
|
19
|
+
}
|
|
20
|
+
free() {
|
|
21
|
+
const ptr = this.__destroy_into_raw();
|
|
22
|
+
wasm.__wbg_scene3d_free(ptr, 0);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Starts a glide animation for the piece on `from` moving to `to`. Call
|
|
26
|
+
* this *before* `set_board` with the post-move position — it snapshots
|
|
27
|
+
* the pre-move board to know what to animate (and what's being captured).
|
|
28
|
+
* @param {number} from
|
|
29
|
+
* @param {number} to
|
|
30
|
+
*/
|
|
31
|
+
animate_move(from, to) {
|
|
32
|
+
wasm.scene3d_animate_move(this.__wbg_ptr, from, to);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Creates the renderer against the given canvas. Async because adapter/device
|
|
36
|
+
* acquisition is a browser Promise under the hood. JS calls this as a static
|
|
37
|
+
* factory (`await Scene3D.create(canvas)`), not `new Scene3D(...)`.
|
|
38
|
+
* @param {HTMLCanvasElement} canvas
|
|
39
|
+
* @returns {Promise<Scene3D>}
|
|
40
|
+
*/
|
|
41
|
+
static create(canvas) {
|
|
42
|
+
const ret = wasm.scene3d_create(canvas);
|
|
43
|
+
return ret;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* True while a move animation is still in flight — keep calling
|
|
47
|
+
* `render()` on every frame until this goes false, then it's fine to
|
|
48
|
+
* idle the render loop until the next interaction.
|
|
49
|
+
* @returns {boolean}
|
|
50
|
+
*/
|
|
51
|
+
is_animating() {
|
|
52
|
+
const ret = wasm.scene3d_is_animating(this.__wbg_ptr);
|
|
53
|
+
return ret !== 0;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Rotate the camera around the board by a *delta* in radians;
|
|
57
|
+
* pitch is clamped internally so the camera cannot flip over the pole.
|
|
58
|
+
* @param {number} dyaw
|
|
59
|
+
* @param {number} dpitch
|
|
60
|
+
*/
|
|
61
|
+
orbit(dyaw, dpitch) {
|
|
62
|
+
wasm.scene3d_orbit(this.__wbg_ptr, dyaw, dpitch);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Canvas-space pixel coordinates -> square index (0-143), or -1 if off-board.
|
|
66
|
+
* @param {number} x
|
|
67
|
+
* @param {number} y
|
|
68
|
+
* @returns {number}
|
|
69
|
+
*/
|
|
70
|
+
pick(x, y) {
|
|
71
|
+
const ret = wasm.scene3d_pick(this.__wbg_ptr, x, y);
|
|
72
|
+
return ret;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Draw one frame. JS drives the render loop, so this must be called
|
|
76
|
+
* from `requestAnimationFrame` — the renderer never schedules itself.
|
|
77
|
+
*/
|
|
78
|
+
render() {
|
|
79
|
+
wasm.scene3d_render(this.__wbg_ptr);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Match the swapchain to a new canvas size, in physical pixels.
|
|
83
|
+
* @param {number} width
|
|
84
|
+
* @param {number} height
|
|
85
|
+
*/
|
|
86
|
+
resize(width, height) {
|
|
87
|
+
wasm.scene3d_resize(this.__wbg_ptr, width, height);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* `board` must be exactly 144 bytes (see the encoding note on `Scene3D`).
|
|
91
|
+
* @param {Uint8Array} board
|
|
92
|
+
* @param {boolean} flipped
|
|
93
|
+
*/
|
|
94
|
+
set_board(board, flipped) {
|
|
95
|
+
const ptr0 = passArray8ToWasm0(board, wasm.__wbindgen_malloc);
|
|
96
|
+
const len0 = WASM_VECTOR_LEN;
|
|
97
|
+
wasm.scene3d_set_board(this.__wbg_ptr, ptr0, len0, flipped);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* `-1` means "none" for `selected`/`last_from`/`last_to`/`checked_king`.
|
|
101
|
+
* @param {number} selected
|
|
102
|
+
* @param {Uint8Array} legal
|
|
103
|
+
* @param {number} last_from
|
|
104
|
+
* @param {number} last_to
|
|
105
|
+
* @param {number} checked_king
|
|
106
|
+
*/
|
|
107
|
+
set_selection(selected, legal, last_from, last_to, checked_king) {
|
|
108
|
+
const ptr0 = passArray8ToWasm0(legal, wasm.__wbindgen_malloc);
|
|
109
|
+
const len0 = WASM_VECTOR_LEN;
|
|
110
|
+
wasm.scene3d_set_selection(this.__wbg_ptr, selected, ptr0, len0, last_from, last_to, checked_king);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Scale the camera distance by `factor` (`>1` pulls back, `<1` moves
|
|
114
|
+
* in), clamped to the scene's usable range.
|
|
115
|
+
* @param {number} factor
|
|
116
|
+
*/
|
|
117
|
+
zoom(factor) {
|
|
118
|
+
wasm.scene3d_zoom(this.__wbg_ptr, factor);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (Symbol.dispose) Scene3D.prototype[Symbol.dispose] = Scene3D.prototype.free;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* JS-facing wrapper around a [`Board`].
|
|
125
|
+
*
|
|
126
|
+
* Every method takes and returns plain strings or primitives rather than
|
|
127
|
+
* exposing engine types across the wasm boundary, so the JS side never needs
|
|
128
|
+
* to mirror the Rust move or piece encodings.
|
|
129
|
+
*/
|
|
130
|
+
export class WasmBoard {
|
|
131
|
+
static __wrap(ptr) {
|
|
132
|
+
const obj = Object.create(WasmBoard.prototype);
|
|
133
|
+
obj.__wbg_ptr = ptr;
|
|
134
|
+
WasmBoardFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
135
|
+
return obj;
|
|
136
|
+
}
|
|
137
|
+
__destroy_into_raw() {
|
|
138
|
+
const ptr = this.__wbg_ptr;
|
|
139
|
+
this.__wbg_ptr = 0;
|
|
140
|
+
WasmBoardFinalization.unregister(this);
|
|
141
|
+
return ptr;
|
|
142
|
+
}
|
|
143
|
+
free() {
|
|
144
|
+
const ptr = this.__destroy_into_raw();
|
|
145
|
+
wasm.__wbg_wasmboard_free(ptr, 0);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Material-only adjudication of the current position: 1 = White wins,
|
|
149
|
+
* 2 = Black wins, 3 = draw (within one pawn of equal material).
|
|
150
|
+
* @returns {number}
|
|
151
|
+
*/
|
|
152
|
+
adjudicate_material() {
|
|
153
|
+
const ret = wasm.wasmboard_adjudicate_material(this.__wbg_ptr);
|
|
154
|
+
return ret;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Apply a move given as a UCI string. Returns false if the move is not legal.
|
|
158
|
+
* @param {string} uci
|
|
159
|
+
* @returns {boolean}
|
|
160
|
+
*/
|
|
161
|
+
apply_move(uci) {
|
|
162
|
+
const ptr0 = passStringToWasm0(uci, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
163
|
+
const len0 = WASM_VECTOR_LEN;
|
|
164
|
+
const ret = wasm.wasmboard_apply_move(this.__wbg_ptr, ptr0, len0);
|
|
165
|
+
return ret !== 0;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Run alpha-beta search at the given depth and return the best move as UCI.
|
|
169
|
+
* Returns an empty string if there are no legal moves.
|
|
170
|
+
* @param {number} depth
|
|
171
|
+
* @returns {string}
|
|
172
|
+
*/
|
|
173
|
+
best_move(depth) {
|
|
174
|
+
let deferred1_0;
|
|
175
|
+
let deferred1_1;
|
|
176
|
+
try {
|
|
177
|
+
const ret = wasm.wasmboard_best_move(this.__wbg_ptr, depth);
|
|
178
|
+
deferred1_0 = ret[0];
|
|
179
|
+
deferred1_1 = ret[1];
|
|
180
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
181
|
+
} finally {
|
|
182
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Compatibility guided alpha-beta label. Uses the canonical timed search.
|
|
187
|
+
* @param {number} depth
|
|
188
|
+
* @returns {string}
|
|
189
|
+
*/
|
|
190
|
+
best_move_guided(depth) {
|
|
191
|
+
let deferred1_0;
|
|
192
|
+
let deferred1_1;
|
|
193
|
+
try {
|
|
194
|
+
const ret = wasm.wasmboard_best_move_guided(this.__wbg_ptr, depth);
|
|
195
|
+
deferred1_0 = ret[0];
|
|
196
|
+
deferred1_1 = ret[1];
|
|
197
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
198
|
+
} finally {
|
|
199
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Compatibility guided iterative label. Uses the canonical timed search.
|
|
204
|
+
* @param {number} depth
|
|
205
|
+
* @returns {string}
|
|
206
|
+
*/
|
|
207
|
+
best_move_guided_iterative(depth) {
|
|
208
|
+
let deferred1_0;
|
|
209
|
+
let deferred1_1;
|
|
210
|
+
try {
|
|
211
|
+
const ret = wasm.wasmboard_best_move_guided_iterative(this.__wbg_ptr, depth);
|
|
212
|
+
deferred1_0 = ret[0];
|
|
213
|
+
deferred1_1 = ret[1];
|
|
214
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
215
|
+
} finally {
|
|
216
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Run iterative deepening (with transposition table) at the given depth.
|
|
221
|
+
* Better than `best_move` for the same depth budget — TT avoids re-searching
|
|
222
|
+
* positions seen at shallower iterations.
|
|
223
|
+
* @param {number} depth
|
|
224
|
+
* @returns {string}
|
|
225
|
+
*/
|
|
226
|
+
best_move_iterative(depth) {
|
|
227
|
+
let deferred1_0;
|
|
228
|
+
let deferred1_1;
|
|
229
|
+
try {
|
|
230
|
+
const ret = wasm.wasmboard_best_move_iterative(this.__wbg_ptr, depth);
|
|
231
|
+
deferred1_0 = ret[0];
|
|
232
|
+
deferred1_1 = ret[1];
|
|
233
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
234
|
+
} finally {
|
|
235
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Run MCTS with the given number of simulations and return the best move as UCI.
|
|
240
|
+
* Returns an empty string if there are no legal moves.
|
|
241
|
+
* @param {number} simulations
|
|
242
|
+
* @returns {string}
|
|
243
|
+
*/
|
|
244
|
+
best_move_mcts(simulations) {
|
|
245
|
+
let deferred1_0;
|
|
246
|
+
let deferred1_1;
|
|
247
|
+
try {
|
|
248
|
+
const ret = wasm.wasmboard_best_move_mcts(this.__wbg_ptr, simulations);
|
|
249
|
+
deferred1_0 = ret[0];
|
|
250
|
+
deferred1_1 = ret[1];
|
|
251
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
252
|
+
} finally {
|
|
253
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Run the "aggressive" profile (PVS, aspiration windows and the
|
|
258
|
+
* speculative pruning family — reverse futility, frontier futility, delta
|
|
259
|
+
* pruning). The strongest fixed-depth option.
|
|
260
|
+
* @param {number} depth
|
|
261
|
+
* @returns {string}
|
|
262
|
+
*/
|
|
263
|
+
best_move_pro(depth) {
|
|
264
|
+
let deferred1_0;
|
|
265
|
+
let deferred1_1;
|
|
266
|
+
try {
|
|
267
|
+
const ret = wasm.wasmboard_best_move_pro(this.__wbg_ptr, depth);
|
|
268
|
+
deferred1_0 = ret[0];
|
|
269
|
+
deferred1_1 = ret[1];
|
|
270
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
271
|
+
} finally {
|
|
272
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Run the stronger strategic-style tactical profile.
|
|
277
|
+
* @param {number} depth
|
|
278
|
+
* @returns {string}
|
|
279
|
+
*/
|
|
280
|
+
best_move_strategic(depth) {
|
|
281
|
+
let deferred1_0;
|
|
282
|
+
let deferred1_1;
|
|
283
|
+
try {
|
|
284
|
+
const ret = wasm.wasmboard_best_move_strategic(this.__wbg_ptr, depth);
|
|
285
|
+
deferred1_0 = ret[0];
|
|
286
|
+
deferred1_1 = ret[1];
|
|
287
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
288
|
+
} finally {
|
|
289
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Anytime iterative-deepening search with a **wall-clock budget** (and an
|
|
294
|
+
* optional node cap as a deterministic backstop).
|
|
295
|
+
*
|
|
296
|
+
* This is the recommended interactive search: it deepens until `max_depth`,
|
|
297
|
+
* the time budget, or the node cap is hit, then returns the best move from the
|
|
298
|
+
* deepest *completed* depth. The search watches the clock itself
|
|
299
|
+
* (`js_sys::Date::now()`) — essential in the browser, where JS cannot interrupt
|
|
300
|
+
* a running synchronous WASM call, so an external timeout would never fire.
|
|
301
|
+
*
|
|
302
|
+
* * `movetime_ms == 0` → no time cap.
|
|
303
|
+
* * `node_limit == 0` → no node cap.
|
|
304
|
+
* (At least one of `movetime_ms` / `node_limit` / a small `max_depth` should
|
|
305
|
+
* be set, or the search runs to `max_depth` which may be very deep.)
|
|
306
|
+
* @param {number} max_depth
|
|
307
|
+
* @param {number} movetime_ms
|
|
308
|
+
* @param {number} node_limit
|
|
309
|
+
* @returns {string}
|
|
310
|
+
*/
|
|
311
|
+
best_move_timed(max_depth, movetime_ms, node_limit) {
|
|
312
|
+
let deferred1_0;
|
|
313
|
+
let deferred1_1;
|
|
314
|
+
try {
|
|
315
|
+
const ret = wasm.wasmboard_best_move_timed(this.__wbg_ptr, max_depth, movetime_ms, node_limit);
|
|
316
|
+
deferred1_0 = ret[0];
|
|
317
|
+
deferred1_1 = ret[1];
|
|
318
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
319
|
+
} finally {
|
|
320
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Anytime search with a wall-clock budget under a named profile:
|
|
325
|
+
* `"balanced"` (default), `"strategic"`, or `"aggressive"`. Same anytime semantics
|
|
326
|
+
* as [`Self::best_move_timed`] — this is what interactive strategic/aggressive
|
|
327
|
+
* callers should use so the computed move timeout is actually honoured
|
|
328
|
+
* (the fixed-depth `best_move_strategic` / `best_move_pro` wrappers ignore it).
|
|
329
|
+
* @param {number} max_depth
|
|
330
|
+
* @param {number} movetime_ms
|
|
331
|
+
* @param {number} node_limit
|
|
332
|
+
* @param {string} profile
|
|
333
|
+
* @returns {string}
|
|
334
|
+
*/
|
|
335
|
+
best_move_timed_profile(max_depth, movetime_ms, node_limit, profile) {
|
|
336
|
+
let deferred2_0;
|
|
337
|
+
let deferred2_1;
|
|
338
|
+
try {
|
|
339
|
+
const ptr0 = passStringToWasm0(profile, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
340
|
+
const len0 = WASM_VECTOR_LEN;
|
|
341
|
+
const ret = wasm.wasmboard_best_move_timed_profile(this.__wbg_ptr, max_depth, movetime_ms, node_limit, ptr0, len0);
|
|
342
|
+
deferred2_0 = ret[0];
|
|
343
|
+
deferred2_1 = ret[1];
|
|
344
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
345
|
+
} finally {
|
|
346
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Returns the board as a 144-byte Uint8Array for WebGPU evaluation.
|
|
351
|
+
* Each byte is the Piece discriminant: 0=empty, 1-8=white, 9-16=black.
|
|
352
|
+
* Piece order: P=1, N=2, B=3, R=4, Q=5, K=6, Eagle=7, Hawk=8 (+ 8 for black).
|
|
353
|
+
* @returns {Uint8Array}
|
|
354
|
+
*/
|
|
355
|
+
encode() {
|
|
356
|
+
const ret = wasm.wasmboard_encode(this.__wbg_ptr);
|
|
357
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
358
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
359
|
+
return v1;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Create a board from a HFEN string. Returns null on parse error.
|
|
363
|
+
* @param {string} hfen
|
|
364
|
+
* @returns {WasmBoard | undefined}
|
|
365
|
+
*/
|
|
366
|
+
static from_hfen(hfen) {
|
|
367
|
+
const ptr0 = passStringToWasm0(hfen, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
368
|
+
const len0 = WASM_VECTOR_LEN;
|
|
369
|
+
const ret = wasm.wasmboard_from_hfen(ptr0, len0);
|
|
370
|
+
return ret === 0 ? undefined : WasmBoard.__wrap(ret);
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Returns the current position as a HFEN string.
|
|
374
|
+
* @returns {string}
|
|
375
|
+
*/
|
|
376
|
+
hfen() {
|
|
377
|
+
let deferred1_0;
|
|
378
|
+
let deferred1_1;
|
|
379
|
+
try {
|
|
380
|
+
const ret = wasm.wasmboard_hfen(this.__wbg_ptr);
|
|
381
|
+
deferred1_0 = ret[0];
|
|
382
|
+
deferred1_1 = ret[1];
|
|
383
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
384
|
+
} finally {
|
|
385
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Returns true if the side to move is currently in check.
|
|
390
|
+
* @returns {boolean}
|
|
391
|
+
*/
|
|
392
|
+
in_check() {
|
|
393
|
+
const ret = wasm.wasmboard_in_check(this.__wbg_ptr);
|
|
394
|
+
return ret !== 0;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Returns true if the game has ended (checkmate, stalemate, or draw).
|
|
398
|
+
* @returns {boolean}
|
|
399
|
+
*/
|
|
400
|
+
is_game_over() {
|
|
401
|
+
const ret = wasm.wasmboard_is_game_over(this.__wbg_ptr);
|
|
402
|
+
return ret !== 0;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Returns the square index (0-143) of the king for the side to move, or 255 if not found.
|
|
406
|
+
* @returns {number}
|
|
407
|
+
*/
|
|
408
|
+
king_square() {
|
|
409
|
+
const ret = wasm.wasmboard_king_square(this.__wbg_ptr);
|
|
410
|
+
return ret;
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Returns all legal moves as a space-separated UCI string (e.g. "a3a4 b3b4 ...").
|
|
414
|
+
* @returns {string}
|
|
415
|
+
*/
|
|
416
|
+
legal_moves() {
|
|
417
|
+
let deferred1_0;
|
|
418
|
+
let deferred1_1;
|
|
419
|
+
try {
|
|
420
|
+
const ret = wasm.wasmboard_legal_moves(this.__wbg_ptr);
|
|
421
|
+
deferred1_0 = ret[0];
|
|
422
|
+
deferred1_1 = ret[1];
|
|
423
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
424
|
+
} finally {
|
|
425
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Create a board at the starting position.
|
|
430
|
+
*/
|
|
431
|
+
constructor() {
|
|
432
|
+
const ret = wasm.wasmboard_new();
|
|
433
|
+
this.__wbg_ptr = ret;
|
|
434
|
+
WasmBoardFinalization.register(this, this.__wbg_ptr, this);
|
|
435
|
+
return this;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Returns the game result: 0=ongoing, 1=white wins, 2=black wins, 3=draw.
|
|
439
|
+
* @returns {number}
|
|
440
|
+
*/
|
|
441
|
+
result() {
|
|
442
|
+
const ret = wasm.wasmboard_result(this.__wbg_ptr);
|
|
443
|
+
return ret;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* [`Self::result`] with material adjudication for move-limit endings:
|
|
447
|
+
* a draw by the internal no-progress rule — and, when `capped` is true, an
|
|
448
|
+
* ongoing position stopped by an external per-game move cap — is decided
|
|
449
|
+
* by material (≥ 1 pawn wins) instead of collapsing to a draw. Genuine
|
|
450
|
+
* draws (stalemate, repetition, insufficient material) are unchanged.
|
|
451
|
+
* @param {boolean} capped
|
|
452
|
+
* @returns {number}
|
|
453
|
+
*/
|
|
454
|
+
result_adjudicated(capped) {
|
|
455
|
+
const ret = wasm.wasmboard_result_adjudicated(this.__wbg_ptr, capped);
|
|
456
|
+
return ret;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* Populate game history for draw-rule and search repetition checks.
|
|
460
|
+
*
|
|
461
|
+
* Contract (see `Board::repetition_count`): `history` stores **prior**
|
|
462
|
+
* positions only. Callers pass the full ordered HFEN list of the game
|
|
463
|
+
* (typically including the current position last); a trailing entry equal
|
|
464
|
+
* to the current position is dropped so it is never double-counted.
|
|
465
|
+
* Threefold then fires at `repetition_count() >= 2` (2 prior + current).
|
|
466
|
+
* @param {string} hfens
|
|
467
|
+
*/
|
|
468
|
+
set_hfen_history(hfens) {
|
|
469
|
+
const ptr0 = passStringToWasm0(hfens, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
470
|
+
const len0 = WASM_VECTOR_LEN;
|
|
471
|
+
wasm.wasmboard_set_hfen_history(this.__wbg_ptr, ptr0, len0);
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Alias of [`Self::set_hfen_history`] — kept for older callers. Both draw
|
|
475
|
+
* rules and search now share the same prior-positions-only contract.
|
|
476
|
+
* @param {string} hfens
|
|
477
|
+
*/
|
|
478
|
+
set_search_history(hfens) {
|
|
479
|
+
const ptr0 = passStringToWasm0(hfens, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
480
|
+
const len0 = WASM_VECTOR_LEN;
|
|
481
|
+
wasm.wasmboard_set_search_history(this.__wbg_ptr, ptr0, len0);
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Returns why the game ended: "checkmate", "stalemate", "move_limit",
|
|
485
|
+
* "fivefold_repetition", "threefold_repetition", "insufficient_material", or
|
|
486
|
+
* "ongoing". Delegates to `Board::termination_reason`, the single source of
|
|
487
|
+
* truth also used by the server's termination endpoint, so the WASM/local-game
|
|
488
|
+
* path reports the same specific reason as server-backed games.
|
|
489
|
+
* @returns {string}
|
|
490
|
+
*/
|
|
491
|
+
termination() {
|
|
492
|
+
let deferred1_0;
|
|
493
|
+
let deferred1_1;
|
|
494
|
+
try {
|
|
495
|
+
const ret = wasm.wasmboard_termination(this.__wbg_ptr);
|
|
496
|
+
deferred1_0 = ret[0];
|
|
497
|
+
deferred1_1 = ret[1];
|
|
498
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
499
|
+
} finally {
|
|
500
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Returns whose turn it is: "white" or "black".
|
|
505
|
+
* @returns {string}
|
|
506
|
+
*/
|
|
507
|
+
turn() {
|
|
508
|
+
let deferred1_0;
|
|
509
|
+
let deferred1_1;
|
|
510
|
+
try {
|
|
511
|
+
const ret = wasm.wasmboard_turn(this.__wbg_ptr);
|
|
512
|
+
deferred1_0 = ret[0];
|
|
513
|
+
deferred1_1 = ret[1];
|
|
514
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
515
|
+
} finally {
|
|
516
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
if (Symbol.dispose) WasmBoard.prototype[Symbol.dispose] = WasmBoard.prototype.free;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Which new piece to calibrate. JS passes `"eagle"` or `"hawk"`.
|
|
524
|
+
* @param {string} piece
|
|
525
|
+
* @param {number} games
|
|
526
|
+
* @param {number} depth
|
|
527
|
+
* @param {number} max_half_moves
|
|
528
|
+
* @returns {number}
|
|
529
|
+
*/
|
|
530
|
+
export function calibrate_piece(piece, games, depth, max_half_moves) {
|
|
531
|
+
const ptr0 = passStringToWasm0(piece, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
532
|
+
const len0 = WASM_VECTOR_LEN;
|
|
533
|
+
const ret = wasm.calibrate_piece(ptr0, len0, games, depth, max_half_moves);
|
|
534
|
+
return ret;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Single combined init for both wasm-bindgen surfaces in this crate —
|
|
539
|
+
* wasm-bindgen only allows one `#[wasm_bindgen(start)]` function per
|
|
540
|
+
* crate. Merges what were two separate inits in the source repo
|
|
541
|
+
* (`hyperchess::wasm`'s panic hook + `Helper::init()`, and
|
|
542
|
+
* `hyperchess_3d`'s panic hook + `console_log` setup).
|
|
543
|
+
*/
|
|
544
|
+
export function init() {
|
|
545
|
+
wasm.init();
|
|
546
|
+
}
|
|
547
|
+
export function __wbg_Window_afcc911b2f9c92e2(arg0) {
|
|
548
|
+
const ret = arg0.Window;
|
|
549
|
+
return ret;
|
|
550
|
+
}
|
|
551
|
+
export function __wbg_WorkerGlobalScope_5d19ebc889ff397e(arg0) {
|
|
552
|
+
const ret = arg0.WorkerGlobalScope;
|
|
553
|
+
return ret;
|
|
554
|
+
}
|
|
555
|
+
export function __wbg___wbindgen_boolean_get_fa956cfa2d1bd751(arg0) {
|
|
556
|
+
const v = arg0;
|
|
557
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
558
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
559
|
+
}
|
|
560
|
+
export function __wbg___wbindgen_debug_string_c25d447a39f5578f(arg0, arg1) {
|
|
561
|
+
const ret = debugString(arg1);
|
|
562
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
563
|
+
const len1 = WASM_VECTOR_LEN;
|
|
564
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
565
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
566
|
+
}
|
|
567
|
+
export function __wbg___wbindgen_is_function_1ff95bcc5517c252(arg0) {
|
|
568
|
+
const ret = typeof(arg0) === 'function';
|
|
569
|
+
return ret;
|
|
570
|
+
}
|
|
571
|
+
export function __wbg___wbindgen_is_null_ea9085d691f535d3(arg0) {
|
|
572
|
+
const ret = arg0 === null;
|
|
573
|
+
return ret;
|
|
574
|
+
}
|
|
575
|
+
export function __wbg___wbindgen_is_string_ea5e6cc2e4141dfe(arg0) {
|
|
576
|
+
const ret = typeof(arg0) === 'string';
|
|
577
|
+
return ret;
|
|
578
|
+
}
|
|
579
|
+
export function __wbg___wbindgen_is_undefined_c05833b95a3cf397(arg0) {
|
|
580
|
+
const ret = arg0 === undefined;
|
|
581
|
+
return ret;
|
|
582
|
+
}
|
|
583
|
+
export function __wbg___wbindgen_number_get_394265ed1e1b84ee(arg0, arg1) {
|
|
584
|
+
const obj = arg1;
|
|
585
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
586
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
587
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
588
|
+
}
|
|
589
|
+
export function __wbg___wbindgen_string_get_b0ca35b86a603356(arg0, arg1) {
|
|
590
|
+
const obj = arg1;
|
|
591
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
592
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
593
|
+
var len1 = WASM_VECTOR_LEN;
|
|
594
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
595
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
596
|
+
}
|
|
597
|
+
export function __wbg___wbindgen_throw_344f42d3211c4765(arg0, arg1) {
|
|
598
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
599
|
+
}
|
|
600
|
+
export function __wbg__wbg_cb_unref_fffb441def202758(arg0) {
|
|
601
|
+
arg0._wbg_cb_unref();
|
|
602
|
+
}
|
|
603
|
+
export function __wbg_activeTexture_92b04d918019d603(arg0, arg1) {
|
|
604
|
+
arg0.activeTexture(arg1 >>> 0);
|
|
605
|
+
}
|
|
606
|
+
export function __wbg_activeTexture_d12958674e97a118(arg0, arg1) {
|
|
607
|
+
arg0.activeTexture(arg1 >>> 0);
|
|
608
|
+
}
|
|
609
|
+
export function __wbg_attachShader_5f7f4077e124e23b(arg0, arg1, arg2) {
|
|
610
|
+
arg0.attachShader(arg1, arg2);
|
|
611
|
+
}
|
|
612
|
+
export function __wbg_attachShader_8971266b4c9bc514(arg0, arg1, arg2) {
|
|
613
|
+
arg0.attachShader(arg1, arg2);
|
|
614
|
+
}
|
|
615
|
+
export function __wbg_beginQuery_042a1f99e870066c(arg0, arg1, arg2) {
|
|
616
|
+
arg0.beginQuery(arg1 >>> 0, arg2);
|
|
617
|
+
}
|
|
618
|
+
export function __wbg_beginRenderPass_aa22c432e793359a() { return handleError(function (arg0, arg1) {
|
|
619
|
+
const ret = arg0.beginRenderPass(arg1);
|
|
620
|
+
return ret;
|
|
621
|
+
}, arguments); }
|
|
622
|
+
export function __wbg_bindAttribLocation_0fe5da7e01ac0d15(arg0, arg1, arg2, arg3, arg4) {
|
|
623
|
+
arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
|
|
624
|
+
}
|
|
625
|
+
export function __wbg_bindAttribLocation_94202d7a59ab7863(arg0, arg1, arg2, arg3, arg4) {
|
|
626
|
+
arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
|
|
627
|
+
}
|
|
628
|
+
export function __wbg_bindBufferRange_f5c29912db0476e9(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
629
|
+
arg0.bindBufferRange(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
|
|
630
|
+
}
|
|
631
|
+
export function __wbg_bindBuffer_1e00cfb4321ef9a4(arg0, arg1, arg2) {
|
|
632
|
+
arg0.bindBuffer(arg1 >>> 0, arg2);
|
|
633
|
+
}
|
|
634
|
+
export function __wbg_bindBuffer_a01497b1abdcdd9a(arg0, arg1, arg2) {
|
|
635
|
+
arg0.bindBuffer(arg1 >>> 0, arg2);
|
|
636
|
+
}
|
|
637
|
+
export function __wbg_bindFramebuffer_390311eff3896937(arg0, arg1, arg2) {
|
|
638
|
+
arg0.bindFramebuffer(arg1 >>> 0, arg2);
|
|
639
|
+
}
|
|
640
|
+
export function __wbg_bindFramebuffer_658e4b06f7ee8bb4(arg0, arg1, arg2) {
|
|
641
|
+
arg0.bindFramebuffer(arg1 >>> 0, arg2);
|
|
642
|
+
}
|
|
643
|
+
export function __wbg_bindRenderbuffer_75e8469e930840fa(arg0, arg1, arg2) {
|
|
644
|
+
arg0.bindRenderbuffer(arg1 >>> 0, arg2);
|
|
645
|
+
}
|
|
646
|
+
export function __wbg_bindRenderbuffer_c3d0c4b8cd1c3891(arg0, arg1, arg2) {
|
|
647
|
+
arg0.bindRenderbuffer(arg1 >>> 0, arg2);
|
|
648
|
+
}
|
|
649
|
+
export function __wbg_bindSampler_ce608f0de9d31acf(arg0, arg1, arg2) {
|
|
650
|
+
arg0.bindSampler(arg1 >>> 0, arg2);
|
|
651
|
+
}
|
|
652
|
+
export function __wbg_bindTexture_28eff4bbd8aaab54(arg0, arg1, arg2) {
|
|
653
|
+
arg0.bindTexture(arg1 >>> 0, arg2);
|
|
654
|
+
}
|
|
655
|
+
export function __wbg_bindTexture_9b04b1b7c00d4dd6(arg0, arg1, arg2) {
|
|
656
|
+
arg0.bindTexture(arg1 >>> 0, arg2);
|
|
657
|
+
}
|
|
658
|
+
export function __wbg_bindVertexArrayOES_5cad2205a17e8990(arg0, arg1) {
|
|
659
|
+
arg0.bindVertexArrayOES(arg1);
|
|
660
|
+
}
|
|
661
|
+
export function __wbg_bindVertexArray_427eeac0c1764d8a(arg0, arg1) {
|
|
662
|
+
arg0.bindVertexArray(arg1);
|
|
663
|
+
}
|
|
664
|
+
export function __wbg_blendColor_793b560dc69ddd0b(arg0, arg1, arg2, arg3, arg4) {
|
|
665
|
+
arg0.blendColor(arg1, arg2, arg3, arg4);
|
|
666
|
+
}
|
|
667
|
+
export function __wbg_blendColor_eae0cd578a2c7d15(arg0, arg1, arg2, arg3, arg4) {
|
|
668
|
+
arg0.blendColor(arg1, arg2, arg3, arg4);
|
|
669
|
+
}
|
|
670
|
+
export function __wbg_blendEquationSeparate_043e2f50f6ecb2d3(arg0, arg1, arg2) {
|
|
671
|
+
arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
|
|
672
|
+
}
|
|
673
|
+
export function __wbg_blendEquationSeparate_c7e2b2261c94e1c5(arg0, arg1, arg2) {
|
|
674
|
+
arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
|
|
675
|
+
}
|
|
676
|
+
export function __wbg_blendEquation_455b8986ededabc0(arg0, arg1) {
|
|
677
|
+
arg0.blendEquation(arg1 >>> 0);
|
|
678
|
+
}
|
|
679
|
+
export function __wbg_blendEquation_f5c5272993f6cb01(arg0, arg1) {
|
|
680
|
+
arg0.blendEquation(arg1 >>> 0);
|
|
681
|
+
}
|
|
682
|
+
export function __wbg_blendFuncSeparate_37156309688f8f88(arg0, arg1, arg2, arg3, arg4) {
|
|
683
|
+
arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
684
|
+
}
|
|
685
|
+
export function __wbg_blendFuncSeparate_3ee6d939a9f3938b(arg0, arg1, arg2, arg3, arg4) {
|
|
686
|
+
arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
687
|
+
}
|
|
688
|
+
export function __wbg_blendFunc_114dc7056ccfeb8d(arg0, arg1, arg2) {
|
|
689
|
+
arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
|
|
690
|
+
}
|
|
691
|
+
export function __wbg_blendFunc_a854d7e4459150ba(arg0, arg1, arg2) {
|
|
692
|
+
arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
|
|
693
|
+
}
|
|
694
|
+
export function __wbg_blitFramebuffer_a1215976f663b058(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
|
|
695
|
+
arg0.blitFramebuffer(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0);
|
|
696
|
+
}
|
|
697
|
+
export function __wbg_bufferData_073a7c6abef7a55f(arg0, arg1, arg2, arg3) {
|
|
698
|
+
arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
699
|
+
}
|
|
700
|
+
export function __wbg_bufferData_3d4f29bdfb1fa46c(arg0, arg1, arg2, arg3) {
|
|
701
|
+
arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
702
|
+
}
|
|
703
|
+
export function __wbg_bufferData_90ef588bac2be2f5(arg0, arg1, arg2, arg3) {
|
|
704
|
+
arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
705
|
+
}
|
|
706
|
+
export function __wbg_bufferData_ce4f44d56e9ddab5(arg0, arg1, arg2, arg3) {
|
|
707
|
+
arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
708
|
+
}
|
|
709
|
+
export function __wbg_bufferSubData_bae930b21e9c1c48(arg0, arg1, arg2, arg3) {
|
|
710
|
+
arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
|
|
711
|
+
}
|
|
712
|
+
export function __wbg_bufferSubData_ce9854d3d337e2cf(arg0, arg1, arg2, arg3) {
|
|
713
|
+
arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
|
|
714
|
+
}
|
|
715
|
+
export function __wbg_call_a6e5c5dce5018821() { return handleError(function (arg0, arg1, arg2) {
|
|
716
|
+
const ret = arg0.call(arg1, arg2);
|
|
717
|
+
return ret;
|
|
718
|
+
}, arguments); }
|
|
719
|
+
export function __wbg_clearBufferfv_2e0f1a0ea56de859(arg0, arg1, arg2, arg3, arg4) {
|
|
720
|
+
arg0.clearBufferfv(arg1 >>> 0, arg2, getArrayF32FromWasm0(arg3, arg4));
|
|
721
|
+
}
|
|
722
|
+
export function __wbg_clearBufferiv_0360269bf6e34c54(arg0, arg1, arg2, arg3, arg4) {
|
|
723
|
+
arg0.clearBufferiv(arg1 >>> 0, arg2, getArrayI32FromWasm0(arg3, arg4));
|
|
724
|
+
}
|
|
725
|
+
export function __wbg_clearBufferuiv_df94a395d4915377(arg0, arg1, arg2, arg3, arg4) {
|
|
726
|
+
arg0.clearBufferuiv(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4));
|
|
727
|
+
}
|
|
728
|
+
export function __wbg_clearDepth_8b5d226aae155082(arg0, arg1) {
|
|
729
|
+
arg0.clearDepth(arg1);
|
|
730
|
+
}
|
|
731
|
+
export function __wbg_clearDepth_ca9b22d41551b513(arg0, arg1) {
|
|
732
|
+
arg0.clearDepth(arg1);
|
|
733
|
+
}
|
|
734
|
+
export function __wbg_clearStencil_58f2af46612bccae(arg0, arg1) {
|
|
735
|
+
arg0.clearStencil(arg1);
|
|
736
|
+
}
|
|
737
|
+
export function __wbg_clearStencil_a66fe23df6313fc7(arg0, arg1) {
|
|
738
|
+
arg0.clearStencil(arg1);
|
|
739
|
+
}
|
|
740
|
+
export function __wbg_clear_53d71d234e14e4c1(arg0, arg1) {
|
|
741
|
+
arg0.clear(arg1 >>> 0);
|
|
742
|
+
}
|
|
743
|
+
export function __wbg_clear_dd06a0da4ce8e13f(arg0, arg1) {
|
|
744
|
+
arg0.clear(arg1 >>> 0);
|
|
745
|
+
}
|
|
746
|
+
export function __wbg_clientWaitSync_cf8e49f8ba228377(arg0, arg1, arg2, arg3) {
|
|
747
|
+
const ret = arg0.clientWaitSync(arg1, arg2 >>> 0, arg3 >>> 0);
|
|
748
|
+
return ret;
|
|
749
|
+
}
|
|
750
|
+
export function __wbg_colorMask_44ebb91cad2502f2(arg0, arg1, arg2, arg3, arg4) {
|
|
751
|
+
arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
|
|
752
|
+
}
|
|
753
|
+
export function __wbg_colorMask_a4d164c2039b5731(arg0, arg1, arg2, arg3, arg4) {
|
|
754
|
+
arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
|
|
755
|
+
}
|
|
756
|
+
export function __wbg_compileShader_9bdfd792722cf704(arg0, arg1) {
|
|
757
|
+
arg0.compileShader(arg1);
|
|
758
|
+
}
|
|
759
|
+
export function __wbg_compileShader_fc2e4b73240d4fd7(arg0, arg1) {
|
|
760
|
+
arg0.compileShader(arg1);
|
|
761
|
+
}
|
|
762
|
+
export function __wbg_compressedTexSubImage2D_c1362291573c7268(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
763
|
+
arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8, arg9);
|
|
764
|
+
}
|
|
765
|
+
export function __wbg_compressedTexSubImage2D_da01674d2975d1ae(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
766
|
+
arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8);
|
|
767
|
+
}
|
|
768
|
+
export function __wbg_compressedTexSubImage2D_dd6dc580749eb5cf(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
769
|
+
arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8);
|
|
770
|
+
}
|
|
771
|
+
export function __wbg_compressedTexSubImage3D_04cb8b046c4321fe(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
772
|
+
arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10, arg11);
|
|
773
|
+
}
|
|
774
|
+
export function __wbg_compressedTexSubImage3D_af0228a80ffd5993(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
|
|
775
|
+
arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10);
|
|
776
|
+
}
|
|
777
|
+
export function __wbg_configure_0e4789c0f6b35c8e() { return handleError(function (arg0, arg1) {
|
|
778
|
+
arg0.configure(arg1);
|
|
779
|
+
}, arguments); }
|
|
780
|
+
export function __wbg_copyBufferSubData_cdf61f74aa6e0902(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
781
|
+
arg0.copyBufferSubData(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
|
|
782
|
+
}
|
|
783
|
+
export function __wbg_copyTexSubImage2D_8daea651fc408645(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
784
|
+
arg0.copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
|
|
785
|
+
}
|
|
786
|
+
export function __wbg_copyTexSubImage2D_c73f91f1d7022402(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
787
|
+
arg0.copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
|
|
788
|
+
}
|
|
789
|
+
export function __wbg_copyTexSubImage3D_bfe7a14dac9ad777(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
790
|
+
arg0.copyTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
791
|
+
}
|
|
792
|
+
export function __wbg_createBindGroupLayout_49a7e2b3d076afcf() { return handleError(function (arg0, arg1) {
|
|
793
|
+
const ret = arg0.createBindGroupLayout(arg1);
|
|
794
|
+
return ret;
|
|
795
|
+
}, arguments); }
|
|
796
|
+
export function __wbg_createBindGroup_655c6e6c0258530e(arg0, arg1) {
|
|
797
|
+
const ret = arg0.createBindGroup(arg1);
|
|
798
|
+
return ret;
|
|
799
|
+
}
|
|
800
|
+
export function __wbg_createBuffer_01568a9d930d90dd(arg0) {
|
|
801
|
+
const ret = arg0.createBuffer();
|
|
802
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
803
|
+
}
|
|
804
|
+
export function __wbg_createBuffer_0726dd2ab09ea1d2() { return handleError(function (arg0, arg1) {
|
|
805
|
+
const ret = arg0.createBuffer(arg1);
|
|
806
|
+
return ret;
|
|
807
|
+
}, arguments); }
|
|
808
|
+
export function __wbg_createBuffer_2075765bde5035d5(arg0) {
|
|
809
|
+
const ret = arg0.createBuffer();
|
|
810
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
811
|
+
}
|
|
812
|
+
export function __wbg_createCommandEncoder_ec1f40f0cb4d09df(arg0, arg1) {
|
|
813
|
+
const ret = arg0.createCommandEncoder(arg1);
|
|
814
|
+
return ret;
|
|
815
|
+
}
|
|
816
|
+
export function __wbg_createFramebuffer_b24d2c80a8b9e7cc(arg0) {
|
|
817
|
+
const ret = arg0.createFramebuffer();
|
|
818
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
819
|
+
}
|
|
820
|
+
export function __wbg_createFramebuffer_de0d521f546e7534(arg0) {
|
|
821
|
+
const ret = arg0.createFramebuffer();
|
|
822
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
823
|
+
}
|
|
824
|
+
export function __wbg_createPipelineLayout_2c8cd4528b06c108(arg0, arg1) {
|
|
825
|
+
const ret = arg0.createPipelineLayout(arg1);
|
|
826
|
+
return ret;
|
|
827
|
+
}
|
|
828
|
+
export function __wbg_createProgram_118becaac3a20318(arg0) {
|
|
829
|
+
const ret = arg0.createProgram();
|
|
830
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
831
|
+
}
|
|
832
|
+
export function __wbg_createProgram_538c9777a4ac084f(arg0) {
|
|
833
|
+
const ret = arg0.createProgram();
|
|
834
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
835
|
+
}
|
|
836
|
+
export function __wbg_createQuery_047c7c524e4ac4f8(arg0) {
|
|
837
|
+
const ret = arg0.createQuery();
|
|
838
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
839
|
+
}
|
|
840
|
+
export function __wbg_createRenderPipeline_cf98d4d699bfb03c() { return handleError(function (arg0, arg1) {
|
|
841
|
+
const ret = arg0.createRenderPipeline(arg1);
|
|
842
|
+
return ret;
|
|
843
|
+
}, arguments); }
|
|
844
|
+
export function __wbg_createRenderbuffer_71af5c0d615e9271(arg0) {
|
|
845
|
+
const ret = arg0.createRenderbuffer();
|
|
846
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
847
|
+
}
|
|
848
|
+
export function __wbg_createRenderbuffer_9d801bf44c314f44(arg0) {
|
|
849
|
+
const ret = arg0.createRenderbuffer();
|
|
850
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
851
|
+
}
|
|
852
|
+
export function __wbg_createSampler_70c8392d98896235(arg0) {
|
|
853
|
+
const ret = arg0.createSampler();
|
|
854
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
855
|
+
}
|
|
856
|
+
export function __wbg_createShaderModule_2e44fc7677c6288b(arg0, arg1) {
|
|
857
|
+
const ret = arg0.createShaderModule(arg1);
|
|
858
|
+
return ret;
|
|
859
|
+
}
|
|
860
|
+
export function __wbg_createShader_78bc8b7e9a88e1a8(arg0, arg1) {
|
|
861
|
+
const ret = arg0.createShader(arg1 >>> 0);
|
|
862
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
863
|
+
}
|
|
864
|
+
export function __wbg_createShader_7d139f2d50f77365(arg0, arg1) {
|
|
865
|
+
const ret = arg0.createShader(arg1 >>> 0);
|
|
866
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
867
|
+
}
|
|
868
|
+
export function __wbg_createTexture_0ee0fa5f924f3d14(arg0) {
|
|
869
|
+
const ret = arg0.createTexture();
|
|
870
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
871
|
+
}
|
|
872
|
+
export function __wbg_createTexture_1bac74c999b8a48e() { return handleError(function (arg0, arg1) {
|
|
873
|
+
const ret = arg0.createTexture(arg1);
|
|
874
|
+
return ret;
|
|
875
|
+
}, arguments); }
|
|
876
|
+
export function __wbg_createTexture_d13f98e0d3d912f4(arg0) {
|
|
877
|
+
const ret = arg0.createTexture();
|
|
878
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
879
|
+
}
|
|
880
|
+
export function __wbg_createVertexArrayOES_2fa3e59eebd5f674(arg0) {
|
|
881
|
+
const ret = arg0.createVertexArrayOES();
|
|
882
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
883
|
+
}
|
|
884
|
+
export function __wbg_createVertexArray_baf9eef7ea5a2c7a(arg0) {
|
|
885
|
+
const ret = arg0.createVertexArray();
|
|
886
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
887
|
+
}
|
|
888
|
+
export function __wbg_createView_ceaf2f5881adbd34() { return handleError(function (arg0, arg1) {
|
|
889
|
+
const ret = arg0.createView(arg1);
|
|
890
|
+
return ret;
|
|
891
|
+
}, arguments); }
|
|
892
|
+
export function __wbg_cullFace_62bbea3bef0e6b99(arg0, arg1) {
|
|
893
|
+
arg0.cullFace(arg1 >>> 0);
|
|
894
|
+
}
|
|
895
|
+
export function __wbg_cullFace_f1c75ae19b07eaf3(arg0, arg1) {
|
|
896
|
+
arg0.cullFace(arg1 >>> 0);
|
|
897
|
+
}
|
|
898
|
+
export function __wbg_debug_87fd9b1a625b7efb(arg0) {
|
|
899
|
+
console.debug(arg0);
|
|
900
|
+
}
|
|
901
|
+
export function __wbg_deleteBuffer_08eb938e35c27967(arg0, arg1) {
|
|
902
|
+
arg0.deleteBuffer(arg1);
|
|
903
|
+
}
|
|
904
|
+
export function __wbg_deleteBuffer_1ca3ffe668a488e7(arg0, arg1) {
|
|
905
|
+
arg0.deleteBuffer(arg1);
|
|
906
|
+
}
|
|
907
|
+
export function __wbg_deleteFramebuffer_963cd69957209d37(arg0, arg1) {
|
|
908
|
+
arg0.deleteFramebuffer(arg1);
|
|
909
|
+
}
|
|
910
|
+
export function __wbg_deleteFramebuffer_d1a36e889b009344(arg0, arg1) {
|
|
911
|
+
arg0.deleteFramebuffer(arg1);
|
|
912
|
+
}
|
|
913
|
+
export function __wbg_deleteProgram_09bd45a51105b2f6(arg0, arg1) {
|
|
914
|
+
arg0.deleteProgram(arg1);
|
|
915
|
+
}
|
|
916
|
+
export function __wbg_deleteProgram_132e191baa9fa84f(arg0, arg1) {
|
|
917
|
+
arg0.deleteProgram(arg1);
|
|
918
|
+
}
|
|
919
|
+
export function __wbg_deleteQuery_0d1dcc4402a86ee1(arg0, arg1) {
|
|
920
|
+
arg0.deleteQuery(arg1);
|
|
921
|
+
}
|
|
922
|
+
export function __wbg_deleteRenderbuffer_52bdbf5ab2cbe62a(arg0, arg1) {
|
|
923
|
+
arg0.deleteRenderbuffer(arg1);
|
|
924
|
+
}
|
|
925
|
+
export function __wbg_deleteRenderbuffer_ca999f7883b777af(arg0, arg1) {
|
|
926
|
+
arg0.deleteRenderbuffer(arg1);
|
|
927
|
+
}
|
|
928
|
+
export function __wbg_deleteSampler_0abb528566c4ab3b(arg0, arg1) {
|
|
929
|
+
arg0.deleteSampler(arg1);
|
|
930
|
+
}
|
|
931
|
+
export function __wbg_deleteShader_3120790d36063afe(arg0, arg1) {
|
|
932
|
+
arg0.deleteShader(arg1);
|
|
933
|
+
}
|
|
934
|
+
export function __wbg_deleteShader_993edb4beb3c4d53(arg0, arg1) {
|
|
935
|
+
arg0.deleteShader(arg1);
|
|
936
|
+
}
|
|
937
|
+
export function __wbg_deleteSync_9b0e43580942a0f6(arg0, arg1) {
|
|
938
|
+
arg0.deleteSync(arg1);
|
|
939
|
+
}
|
|
940
|
+
export function __wbg_deleteTexture_2b163b157ea1be24(arg0, arg1) {
|
|
941
|
+
arg0.deleteTexture(arg1);
|
|
942
|
+
}
|
|
943
|
+
export function __wbg_deleteTexture_bdc2202d7a50dcea(arg0, arg1) {
|
|
944
|
+
arg0.deleteTexture(arg1);
|
|
945
|
+
}
|
|
946
|
+
export function __wbg_deleteVertexArrayOES_7fa59c32cfdfa6fa(arg0, arg1) {
|
|
947
|
+
arg0.deleteVertexArrayOES(arg1);
|
|
948
|
+
}
|
|
949
|
+
export function __wbg_deleteVertexArray_475d4e969aac1dd0(arg0, arg1) {
|
|
950
|
+
arg0.deleteVertexArray(arg1);
|
|
951
|
+
}
|
|
952
|
+
export function __wbg_depthFunc_455cfeb8a9d2fb4c(arg0, arg1) {
|
|
953
|
+
arg0.depthFunc(arg1 >>> 0);
|
|
954
|
+
}
|
|
955
|
+
export function __wbg_depthFunc_74a8f8acf8973c86(arg0, arg1) {
|
|
956
|
+
arg0.depthFunc(arg1 >>> 0);
|
|
957
|
+
}
|
|
958
|
+
export function __wbg_depthMask_4bd6c73b1339d257(arg0, arg1) {
|
|
959
|
+
arg0.depthMask(arg1 !== 0);
|
|
960
|
+
}
|
|
961
|
+
export function __wbg_depthMask_a644a67deced3257(arg0, arg1) {
|
|
962
|
+
arg0.depthMask(arg1 !== 0);
|
|
963
|
+
}
|
|
964
|
+
export function __wbg_depthRange_38b2287ffbea14fd(arg0, arg1, arg2) {
|
|
965
|
+
arg0.depthRange(arg1, arg2);
|
|
966
|
+
}
|
|
967
|
+
export function __wbg_depthRange_5e90d4d236280ff5(arg0, arg1, arg2) {
|
|
968
|
+
arg0.depthRange(arg1, arg2);
|
|
969
|
+
}
|
|
970
|
+
export function __wbg_destroy_fe937f756bf8df37(arg0) {
|
|
971
|
+
arg0.destroy();
|
|
972
|
+
}
|
|
973
|
+
export function __wbg_disableVertexAttribArray_160060fbd7e97de0(arg0, arg1) {
|
|
974
|
+
arg0.disableVertexAttribArray(arg1 >>> 0);
|
|
975
|
+
}
|
|
976
|
+
export function __wbg_disableVertexAttribArray_c7915eb0de6dd8f1(arg0, arg1) {
|
|
977
|
+
arg0.disableVertexAttribArray(arg1 >>> 0);
|
|
978
|
+
}
|
|
979
|
+
export function __wbg_disable_1659d1b7d50c31e7(arg0, arg1) {
|
|
980
|
+
arg0.disable(arg1 >>> 0);
|
|
981
|
+
}
|
|
982
|
+
export function __wbg_disable_40c3975167c1ee07(arg0, arg1) {
|
|
983
|
+
arg0.disable(arg1 >>> 0);
|
|
984
|
+
}
|
|
985
|
+
export function __wbg_document_179650d6cb13c263(arg0) {
|
|
986
|
+
const ret = arg0.document;
|
|
987
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
988
|
+
}
|
|
989
|
+
export function __wbg_drawArraysInstancedANGLE_d58dbd2d38fdebaa(arg0, arg1, arg2, arg3, arg4) {
|
|
990
|
+
arg0.drawArraysInstancedANGLE(arg1 >>> 0, arg2, arg3, arg4);
|
|
991
|
+
}
|
|
992
|
+
export function __wbg_drawArraysInstanced_51b161548a3f10c4(arg0, arg1, arg2, arg3, arg4) {
|
|
993
|
+
arg0.drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4);
|
|
994
|
+
}
|
|
995
|
+
export function __wbg_drawArrays_676becae0149ed65(arg0, arg1, arg2, arg3) {
|
|
996
|
+
arg0.drawArrays(arg1 >>> 0, arg2, arg3);
|
|
997
|
+
}
|
|
998
|
+
export function __wbg_drawArrays_b0c59a6e158122f2(arg0, arg1, arg2, arg3) {
|
|
999
|
+
arg0.drawArrays(arg1 >>> 0, arg2, arg3);
|
|
1000
|
+
}
|
|
1001
|
+
export function __wbg_drawBuffersWEBGL_c9b47f7f207125cf(arg0, arg1) {
|
|
1002
|
+
arg0.drawBuffersWEBGL(arg1);
|
|
1003
|
+
}
|
|
1004
|
+
export function __wbg_drawBuffers_1c1ec9b292442a2a(arg0, arg1) {
|
|
1005
|
+
arg0.drawBuffers(arg1);
|
|
1006
|
+
}
|
|
1007
|
+
export function __wbg_drawElementsInstancedANGLE_9b58c4013373b180(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1008
|
+
arg0.drawElementsInstancedANGLE(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
1009
|
+
}
|
|
1010
|
+
export function __wbg_drawElementsInstanced_c7f96ea02e6d5326(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1011
|
+
arg0.drawElementsInstanced(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
1012
|
+
}
|
|
1013
|
+
export function __wbg_drawIndexed_d31913e79d58fbac(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1014
|
+
arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
|
|
1015
|
+
}
|
|
1016
|
+
export function __wbg_enableVertexAttribArray_4c08219124740f14(arg0, arg1) {
|
|
1017
|
+
arg0.enableVertexAttribArray(arg1 >>> 0);
|
|
1018
|
+
}
|
|
1019
|
+
export function __wbg_enableVertexAttribArray_7470ba2dcf2606e3(arg0, arg1) {
|
|
1020
|
+
arg0.enableVertexAttribArray(arg1 >>> 0);
|
|
1021
|
+
}
|
|
1022
|
+
export function __wbg_enable_28bbeed576131d1f(arg0, arg1) {
|
|
1023
|
+
arg0.enable(arg1 >>> 0);
|
|
1024
|
+
}
|
|
1025
|
+
export function __wbg_enable_611804c0ac1504ce(arg0, arg1) {
|
|
1026
|
+
arg0.enable(arg1 >>> 0);
|
|
1027
|
+
}
|
|
1028
|
+
export function __wbg_endQuery_a50f7fc49cfe56e9(arg0, arg1) {
|
|
1029
|
+
arg0.endQuery(arg1 >>> 0);
|
|
1030
|
+
}
|
|
1031
|
+
export function __wbg_end_f99ebed53d4e198a(arg0) {
|
|
1032
|
+
arg0.end();
|
|
1033
|
+
}
|
|
1034
|
+
export function __wbg_error_744744ff0c9861e6(arg0) {
|
|
1035
|
+
console.error(arg0);
|
|
1036
|
+
}
|
|
1037
|
+
export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
|
|
1038
|
+
let deferred0_0;
|
|
1039
|
+
let deferred0_1;
|
|
1040
|
+
try {
|
|
1041
|
+
deferred0_0 = arg0;
|
|
1042
|
+
deferred0_1 = arg1;
|
|
1043
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
1044
|
+
} finally {
|
|
1045
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
export function __wbg_fenceSync_fe2cdba4a0d73679(arg0, arg1, arg2) {
|
|
1049
|
+
const ret = arg0.fenceSync(arg1 >>> 0, arg2 >>> 0);
|
|
1050
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1051
|
+
}
|
|
1052
|
+
export function __wbg_finish_126e6f2ac71e3096(arg0) {
|
|
1053
|
+
arg0.finish();
|
|
1054
|
+
}
|
|
1055
|
+
export function __wbg_finish_4d91de5e927dd13f(arg0, arg1) {
|
|
1056
|
+
const ret = arg0.finish(arg1);
|
|
1057
|
+
return ret;
|
|
1058
|
+
}
|
|
1059
|
+
export function __wbg_finish_6e06b68ab68cd9f6(arg0) {
|
|
1060
|
+
const ret = arg0.finish();
|
|
1061
|
+
return ret;
|
|
1062
|
+
}
|
|
1063
|
+
export function __wbg_finish_cbe7ec8675dd7705(arg0) {
|
|
1064
|
+
arg0.finish();
|
|
1065
|
+
}
|
|
1066
|
+
export function __wbg_flush_db77b4a63d6b337d(arg0) {
|
|
1067
|
+
arg0.flush();
|
|
1068
|
+
}
|
|
1069
|
+
export function __wbg_flush_e03c08da6863b5ab(arg0) {
|
|
1070
|
+
arg0.flush();
|
|
1071
|
+
}
|
|
1072
|
+
export function __wbg_framebufferRenderbuffer_4404cf9f9cb76937(arg0, arg1, arg2, arg3, arg4) {
|
|
1073
|
+
arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
|
|
1074
|
+
}
|
|
1075
|
+
export function __wbg_framebufferRenderbuffer_ba8bd5e008ee87eb(arg0, arg1, arg2, arg3, arg4) {
|
|
1076
|
+
arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
|
|
1077
|
+
}
|
|
1078
|
+
export function __wbg_framebufferTexture2D_3c2abd606fc53f31(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1079
|
+
arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
|
|
1080
|
+
}
|
|
1081
|
+
export function __wbg_framebufferTexture2D_e1fb64212fcda219(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1082
|
+
arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
|
|
1083
|
+
}
|
|
1084
|
+
export function __wbg_framebufferTextureLayer_f2d9db097bfbb863(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1085
|
+
arg0.framebufferTextureLayer(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
|
|
1086
|
+
}
|
|
1087
|
+
export function __wbg_framebufferTextureMultiviewOVR_28d492b9dc484220(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1088
|
+
arg0.framebufferTextureMultiviewOVR(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5, arg6);
|
|
1089
|
+
}
|
|
1090
|
+
export function __wbg_frontFace_29ef7151de8b5ed9(arg0, arg1) {
|
|
1091
|
+
arg0.frontFace(arg1 >>> 0);
|
|
1092
|
+
}
|
|
1093
|
+
export function __wbg_frontFace_fc6d98dafa42de87(arg0, arg1) {
|
|
1094
|
+
arg0.frontFace(arg1 >>> 0);
|
|
1095
|
+
}
|
|
1096
|
+
export function __wbg_getBufferSubData_11018928c908ac2c(arg0, arg1, arg2, arg3) {
|
|
1097
|
+
arg0.getBufferSubData(arg1 >>> 0, arg2, arg3);
|
|
1098
|
+
}
|
|
1099
|
+
export function __wbg_getContext_7476e39fa008047e() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1100
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
|
|
1101
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1102
|
+
}, arguments); }
|
|
1103
|
+
export function __wbg_getContext_ca12bb65aab778a4() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1104
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
|
|
1105
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1106
|
+
}, arguments); }
|
|
1107
|
+
export function __wbg_getContext_e79ddf6a9cb3cc76() { return handleError(function (arg0, arg1, arg2) {
|
|
1108
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
1109
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1110
|
+
}, arguments); }
|
|
1111
|
+
export function __wbg_getContext_fd298c901058eb31() { return handleError(function (arg0, arg1, arg2) {
|
|
1112
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
1113
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1114
|
+
}, arguments); }
|
|
1115
|
+
export function __wbg_getCurrentTexture_20714d1bd9051cab() { return handleError(function (arg0) {
|
|
1116
|
+
const ret = arg0.getCurrentTexture();
|
|
1117
|
+
return ret;
|
|
1118
|
+
}, arguments); }
|
|
1119
|
+
export function __wbg_getExtension_101c7e41de3e4d90() { return handleError(function (arg0, arg1, arg2) {
|
|
1120
|
+
const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2));
|
|
1121
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1122
|
+
}, arguments); }
|
|
1123
|
+
export function __wbg_getIndexedParameter_6d7a5bcccaa0f3e2() { return handleError(function (arg0, arg1, arg2) {
|
|
1124
|
+
const ret = arg0.getIndexedParameter(arg1 >>> 0, arg2 >>> 0);
|
|
1125
|
+
return ret;
|
|
1126
|
+
}, arguments); }
|
|
1127
|
+
export function __wbg_getMappedRange_d0bf3141224111b6() { return handleError(function (arg0, arg1, arg2) {
|
|
1128
|
+
const ret = arg0.getMappedRange(arg1, arg2);
|
|
1129
|
+
return ret;
|
|
1130
|
+
}, arguments); }
|
|
1131
|
+
export function __wbg_getParameter_039a5899307fab55() { return handleError(function (arg0, arg1) {
|
|
1132
|
+
const ret = arg0.getParameter(arg1 >>> 0);
|
|
1133
|
+
return ret;
|
|
1134
|
+
}, arguments); }
|
|
1135
|
+
export function __wbg_getParameter_d39f59581389af1b() { return handleError(function (arg0, arg1) {
|
|
1136
|
+
const ret = arg0.getParameter(arg1 >>> 0);
|
|
1137
|
+
return ret;
|
|
1138
|
+
}, arguments); }
|
|
1139
|
+
export function __wbg_getPreferredCanvasFormat_8b57039d1801a506(arg0) {
|
|
1140
|
+
const ret = arg0.getPreferredCanvasFormat();
|
|
1141
|
+
return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 102) - 1;
|
|
1142
|
+
}
|
|
1143
|
+
export function __wbg_getProgramInfoLog_c4762e0513468a26(arg0, arg1, arg2) {
|
|
1144
|
+
const ret = arg1.getProgramInfoLog(arg2);
|
|
1145
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1146
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1147
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1148
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1149
|
+
}
|
|
1150
|
+
export function __wbg_getProgramInfoLog_d1ce570463a68779(arg0, arg1, arg2) {
|
|
1151
|
+
const ret = arg1.getProgramInfoLog(arg2);
|
|
1152
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1153
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1154
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1155
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1156
|
+
}
|
|
1157
|
+
export function __wbg_getProgramParameter_b9995b56c258ac86(arg0, arg1, arg2) {
|
|
1158
|
+
const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
|
|
1159
|
+
return ret;
|
|
1160
|
+
}
|
|
1161
|
+
export function __wbg_getProgramParameter_c8d1154fbb3c0890(arg0, arg1, arg2) {
|
|
1162
|
+
const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
|
|
1163
|
+
return ret;
|
|
1164
|
+
}
|
|
1165
|
+
export function __wbg_getQueryParameter_919125495ccb17ca(arg0, arg1, arg2) {
|
|
1166
|
+
const ret = arg0.getQueryParameter(arg1, arg2 >>> 0);
|
|
1167
|
+
return ret;
|
|
1168
|
+
}
|
|
1169
|
+
export function __wbg_getShaderInfoLog_5cee2add982c7165(arg0, arg1, arg2) {
|
|
1170
|
+
const ret = arg1.getShaderInfoLog(arg2);
|
|
1171
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1172
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1173
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1174
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1175
|
+
}
|
|
1176
|
+
export function __wbg_getShaderInfoLog_bc236afe696c1283(arg0, arg1, arg2) {
|
|
1177
|
+
const ret = arg1.getShaderInfoLog(arg2);
|
|
1178
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1179
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1180
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1181
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1182
|
+
}
|
|
1183
|
+
export function __wbg_getShaderParameter_3394e75dcb97f380(arg0, arg1, arg2) {
|
|
1184
|
+
const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
|
|
1185
|
+
return ret;
|
|
1186
|
+
}
|
|
1187
|
+
export function __wbg_getShaderParameter_cbcc0995e8e16214(arg0, arg1, arg2) {
|
|
1188
|
+
const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
|
|
1189
|
+
return ret;
|
|
1190
|
+
}
|
|
1191
|
+
export function __wbg_getSupportedExtensions_2a7458ec45e82560(arg0) {
|
|
1192
|
+
const ret = arg0.getSupportedExtensions();
|
|
1193
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1194
|
+
}
|
|
1195
|
+
export function __wbg_getSupportedProfiles_90a4f330938d0241(arg0) {
|
|
1196
|
+
const ret = arg0.getSupportedProfiles();
|
|
1197
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1198
|
+
}
|
|
1199
|
+
export function __wbg_getSyncParameter_d8f6c145657a3550(arg0, arg1, arg2) {
|
|
1200
|
+
const ret = arg0.getSyncParameter(arg1, arg2 >>> 0);
|
|
1201
|
+
return ret;
|
|
1202
|
+
}
|
|
1203
|
+
export function __wbg_getUniformBlockIndex_cfee6ff6d323c784(arg0, arg1, arg2, arg3) {
|
|
1204
|
+
const ret = arg0.getUniformBlockIndex(arg1, getStringFromWasm0(arg2, arg3));
|
|
1205
|
+
return ret;
|
|
1206
|
+
}
|
|
1207
|
+
export function __wbg_getUniformLocation_24ef46cdda2148ab(arg0, arg1, arg2, arg3) {
|
|
1208
|
+
const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
|
|
1209
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1210
|
+
}
|
|
1211
|
+
export function __wbg_getUniformLocation_788a34295dd6fabe(arg0, arg1, arg2, arg3) {
|
|
1212
|
+
const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
|
|
1213
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1214
|
+
}
|
|
1215
|
+
export function __wbg_get_b2053e9bfdf3ca8e(arg0, arg1) {
|
|
1216
|
+
const ret = arg0[arg1 >>> 0];
|
|
1217
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1218
|
+
}
|
|
1219
|
+
export function __wbg_get_unchecked_6e0ad6d2a41b06f6(arg0, arg1) {
|
|
1220
|
+
const ret = arg0[arg1 >>> 0];
|
|
1221
|
+
return ret;
|
|
1222
|
+
}
|
|
1223
|
+
export function __wbg_gpu_2ccc250735d24a2a(arg0) {
|
|
1224
|
+
const ret = arg0.gpu;
|
|
1225
|
+
return ret;
|
|
1226
|
+
}
|
|
1227
|
+
export function __wbg_height_6eec812c213259a1(arg0) {
|
|
1228
|
+
const ret = arg0.height;
|
|
1229
|
+
return ret;
|
|
1230
|
+
}
|
|
1231
|
+
export function __wbg_includes_78c9a3115b08eddc(arg0, arg1, arg2) {
|
|
1232
|
+
const ret = arg0.includes(arg1, arg2);
|
|
1233
|
+
return ret;
|
|
1234
|
+
}
|
|
1235
|
+
export function __wbg_info_eadbe775a8e2e9eb(arg0) {
|
|
1236
|
+
console.info(arg0);
|
|
1237
|
+
}
|
|
1238
|
+
export function __wbg_instanceof_HtmlCanvasElement_ed02ed9136056019(arg0) {
|
|
1239
|
+
let result;
|
|
1240
|
+
try {
|
|
1241
|
+
result = arg0 instanceof HTMLCanvasElement;
|
|
1242
|
+
} catch (_) {
|
|
1243
|
+
result = false;
|
|
1244
|
+
}
|
|
1245
|
+
const ret = result;
|
|
1246
|
+
return ret;
|
|
1247
|
+
}
|
|
1248
|
+
export function __wbg_instanceof_WebGl2RenderingContext_90225152e4e3c799(arg0) {
|
|
1249
|
+
let result;
|
|
1250
|
+
try {
|
|
1251
|
+
result = arg0 instanceof WebGL2RenderingContext;
|
|
1252
|
+
} catch (_) {
|
|
1253
|
+
result = false;
|
|
1254
|
+
}
|
|
1255
|
+
const ret = result;
|
|
1256
|
+
return ret;
|
|
1257
|
+
}
|
|
1258
|
+
export function __wbg_instanceof_Window_05ba1ee4f6781663(arg0) {
|
|
1259
|
+
let result;
|
|
1260
|
+
try {
|
|
1261
|
+
result = arg0 instanceof Window;
|
|
1262
|
+
} catch (_) {
|
|
1263
|
+
result = false;
|
|
1264
|
+
}
|
|
1265
|
+
const ret = result;
|
|
1266
|
+
return ret;
|
|
1267
|
+
}
|
|
1268
|
+
export function __wbg_invalidateFramebuffer_343bbfb15e6835fd() { return handleError(function (arg0, arg1, arg2) {
|
|
1269
|
+
arg0.invalidateFramebuffer(arg1 >>> 0, arg2);
|
|
1270
|
+
}, arguments); }
|
|
1271
|
+
export function __wbg_is_7b9d0b289033c7de(arg0, arg1) {
|
|
1272
|
+
const ret = Object.is(arg0, arg1);
|
|
1273
|
+
return ret;
|
|
1274
|
+
}
|
|
1275
|
+
export function __wbg_label_7ed42f25f841996b(arg0, arg1) {
|
|
1276
|
+
const ret = arg1.label;
|
|
1277
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1278
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1279
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1280
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1281
|
+
}
|
|
1282
|
+
export function __wbg_length_1f0964f4a5e2c6d8(arg0) {
|
|
1283
|
+
const ret = arg0.length;
|
|
1284
|
+
return ret;
|
|
1285
|
+
}
|
|
1286
|
+
export function __wbg_length_370319915dc99107(arg0) {
|
|
1287
|
+
const ret = arg0.length;
|
|
1288
|
+
return ret;
|
|
1289
|
+
}
|
|
1290
|
+
export function __wbg_limits_20c6f56636df7d38(arg0) {
|
|
1291
|
+
const ret = arg0.limits;
|
|
1292
|
+
return ret;
|
|
1293
|
+
}
|
|
1294
|
+
export function __wbg_linkProgram_4e047fb3197a0348(arg0, arg1) {
|
|
1295
|
+
arg0.linkProgram(arg1);
|
|
1296
|
+
}
|
|
1297
|
+
export function __wbg_linkProgram_d7c71c539c8c6a43(arg0, arg1) {
|
|
1298
|
+
arg0.linkProgram(arg1);
|
|
1299
|
+
}
|
|
1300
|
+
export function __wbg_log_d267660666346fb3(arg0) {
|
|
1301
|
+
console.log(arg0);
|
|
1302
|
+
}
|
|
1303
|
+
export function __wbg_mapAsync_52b01fa9e8f765fd(arg0, arg1, arg2, arg3) {
|
|
1304
|
+
const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
|
|
1305
|
+
return ret;
|
|
1306
|
+
}
|
|
1307
|
+
export function __wbg_matchMedia_9968278b31706f78() { return handleError(function (arg0, arg1, arg2) {
|
|
1308
|
+
const ret = arg0.matchMedia(getStringFromWasm0(arg1, arg2));
|
|
1309
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1310
|
+
}, arguments); }
|
|
1311
|
+
export function __wbg_matches_978994974df1e85b(arg0) {
|
|
1312
|
+
const ret = arg0.matches;
|
|
1313
|
+
return ret;
|
|
1314
|
+
}
|
|
1315
|
+
export function __wbg_maxBindGroupsPlusVertexBuffers_33e5006b23e20478(arg0) {
|
|
1316
|
+
const ret = arg0.maxBindGroupsPlusVertexBuffers;
|
|
1317
|
+
return ret;
|
|
1318
|
+
}
|
|
1319
|
+
export function __wbg_maxBindGroups_f6d26f3a67826666(arg0) {
|
|
1320
|
+
const ret = arg0.maxBindGroups;
|
|
1321
|
+
return ret;
|
|
1322
|
+
}
|
|
1323
|
+
export function __wbg_maxBindingsPerBindGroup_edab2e8dabbf6060(arg0) {
|
|
1324
|
+
const ret = arg0.maxBindingsPerBindGroup;
|
|
1325
|
+
return ret;
|
|
1326
|
+
}
|
|
1327
|
+
export function __wbg_maxBufferSize_bbc69284c14aa7da(arg0) {
|
|
1328
|
+
const ret = arg0.maxBufferSize;
|
|
1329
|
+
return ret;
|
|
1330
|
+
}
|
|
1331
|
+
export function __wbg_maxColorAttachmentBytesPerSample_63ebe4f81de2f34c(arg0) {
|
|
1332
|
+
const ret = arg0.maxColorAttachmentBytesPerSample;
|
|
1333
|
+
return ret;
|
|
1334
|
+
}
|
|
1335
|
+
export function __wbg_maxColorAttachments_aed8c38beabf3a5c(arg0) {
|
|
1336
|
+
const ret = arg0.maxColorAttachments;
|
|
1337
|
+
return ret;
|
|
1338
|
+
}
|
|
1339
|
+
export function __wbg_maxComputeInvocationsPerWorkgroup_2d964564c37f1c65(arg0) {
|
|
1340
|
+
const ret = arg0.maxComputeInvocationsPerWorkgroup;
|
|
1341
|
+
return ret;
|
|
1342
|
+
}
|
|
1343
|
+
export function __wbg_maxComputeWorkgroupSizeX_a3e3206570da184f(arg0) {
|
|
1344
|
+
const ret = arg0.maxComputeWorkgroupSizeX;
|
|
1345
|
+
return ret;
|
|
1346
|
+
}
|
|
1347
|
+
export function __wbg_maxComputeWorkgroupSizeY_dffa4a62244b7563(arg0) {
|
|
1348
|
+
const ret = arg0.maxComputeWorkgroupSizeY;
|
|
1349
|
+
return ret;
|
|
1350
|
+
}
|
|
1351
|
+
export function __wbg_maxComputeWorkgroupSizeZ_976ebcb760f6d07d(arg0) {
|
|
1352
|
+
const ret = arg0.maxComputeWorkgroupSizeZ;
|
|
1353
|
+
return ret;
|
|
1354
|
+
}
|
|
1355
|
+
export function __wbg_maxComputeWorkgroupStorageSize_2e8dbece6e532e2a(arg0) {
|
|
1356
|
+
const ret = arg0.maxComputeWorkgroupStorageSize;
|
|
1357
|
+
return ret;
|
|
1358
|
+
}
|
|
1359
|
+
export function __wbg_maxComputeWorkgroupsPerDimension_bb7d36b4d20c80f4(arg0) {
|
|
1360
|
+
const ret = arg0.maxComputeWorkgroupsPerDimension;
|
|
1361
|
+
return ret;
|
|
1362
|
+
}
|
|
1363
|
+
export function __wbg_maxDynamicStorageBuffersPerPipelineLayout_1ca859cb96a414e0(arg0) {
|
|
1364
|
+
const ret = arg0.maxDynamicStorageBuffersPerPipelineLayout;
|
|
1365
|
+
return ret;
|
|
1366
|
+
}
|
|
1367
|
+
export function __wbg_maxDynamicUniformBuffersPerPipelineLayout_e968f2c8cd8f4d46(arg0) {
|
|
1368
|
+
const ret = arg0.maxDynamicUniformBuffersPerPipelineLayout;
|
|
1369
|
+
return ret;
|
|
1370
|
+
}
|
|
1371
|
+
export function __wbg_maxInterStageShaderVariables_138ac882c4d6a3d3(arg0) {
|
|
1372
|
+
const ret = arg0.maxInterStageShaderVariables;
|
|
1373
|
+
return ret;
|
|
1374
|
+
}
|
|
1375
|
+
export function __wbg_maxSampledTexturesPerShaderStage_bb3e6b2698321fa6(arg0) {
|
|
1376
|
+
const ret = arg0.maxSampledTexturesPerShaderStage;
|
|
1377
|
+
return ret;
|
|
1378
|
+
}
|
|
1379
|
+
export function __wbg_maxSamplersPerShaderStage_98c00a1829fa414b(arg0) {
|
|
1380
|
+
const ret = arg0.maxSamplersPerShaderStage;
|
|
1381
|
+
return ret;
|
|
1382
|
+
}
|
|
1383
|
+
export function __wbg_maxStorageBufferBindingSize_e500e31f479e669e(arg0) {
|
|
1384
|
+
const ret = arg0.maxStorageBufferBindingSize;
|
|
1385
|
+
return ret;
|
|
1386
|
+
}
|
|
1387
|
+
export function __wbg_maxStorageBuffersPerShaderStage_eb663f6d7521b6a7(arg0) {
|
|
1388
|
+
const ret = arg0.maxStorageBuffersPerShaderStage;
|
|
1389
|
+
return ret;
|
|
1390
|
+
}
|
|
1391
|
+
export function __wbg_maxStorageTexturesPerShaderStage_bb3ad93b53e618c0(arg0) {
|
|
1392
|
+
const ret = arg0.maxStorageTexturesPerShaderStage;
|
|
1393
|
+
return ret;
|
|
1394
|
+
}
|
|
1395
|
+
export function __wbg_maxTextureArrayLayers_2a56d05fb261c99a(arg0) {
|
|
1396
|
+
const ret = arg0.maxTextureArrayLayers;
|
|
1397
|
+
return ret;
|
|
1398
|
+
}
|
|
1399
|
+
export function __wbg_maxTextureDimension1D_84590c1d4770d319(arg0) {
|
|
1400
|
+
const ret = arg0.maxTextureDimension1D;
|
|
1401
|
+
return ret;
|
|
1402
|
+
}
|
|
1403
|
+
export function __wbg_maxTextureDimension2D_7f2b5c8b2727e3fc(arg0) {
|
|
1404
|
+
const ret = arg0.maxTextureDimension2D;
|
|
1405
|
+
return ret;
|
|
1406
|
+
}
|
|
1407
|
+
export function __wbg_maxTextureDimension3D_7f3babddf55c32a6(arg0) {
|
|
1408
|
+
const ret = arg0.maxTextureDimension3D;
|
|
1409
|
+
return ret;
|
|
1410
|
+
}
|
|
1411
|
+
export function __wbg_maxUniformBufferBindingSize_d80a09e23c0b284c(arg0) {
|
|
1412
|
+
const ret = arg0.maxUniformBufferBindingSize;
|
|
1413
|
+
return ret;
|
|
1414
|
+
}
|
|
1415
|
+
export function __wbg_maxUniformBuffersPerShaderStage_0b8b2de676fa740e(arg0) {
|
|
1416
|
+
const ret = arg0.maxUniformBuffersPerShaderStage;
|
|
1417
|
+
return ret;
|
|
1418
|
+
}
|
|
1419
|
+
export function __wbg_maxVertexAttributes_a693dd921316649b(arg0) {
|
|
1420
|
+
const ret = arg0.maxVertexAttributes;
|
|
1421
|
+
return ret;
|
|
1422
|
+
}
|
|
1423
|
+
export function __wbg_maxVertexBufferArrayStride_f256d91f281076cb(arg0) {
|
|
1424
|
+
const ret = arg0.maxVertexBufferArrayStride;
|
|
1425
|
+
return ret;
|
|
1426
|
+
}
|
|
1427
|
+
export function __wbg_maxVertexBuffers_70ab564b25d5ac20(arg0) {
|
|
1428
|
+
const ret = arg0.maxVertexBuffers;
|
|
1429
|
+
return ret;
|
|
1430
|
+
}
|
|
1431
|
+
export function __wbg_minStorageBufferOffsetAlignment_3248ed00dcdbf79f(arg0) {
|
|
1432
|
+
const ret = arg0.minStorageBufferOffsetAlignment;
|
|
1433
|
+
return ret;
|
|
1434
|
+
}
|
|
1435
|
+
export function __wbg_minUniformBufferOffsetAlignment_3b9fa4caae03e903(arg0) {
|
|
1436
|
+
const ret = arg0.minUniformBufferOffsetAlignment;
|
|
1437
|
+
return ret;
|
|
1438
|
+
}
|
|
1439
|
+
export function __wbg_navigator_51379c10a84aeec9(arg0) {
|
|
1440
|
+
const ret = arg0.navigator;
|
|
1441
|
+
return ret;
|
|
1442
|
+
}
|
|
1443
|
+
export function __wbg_navigator_99621db14b3f1099(arg0) {
|
|
1444
|
+
const ret = arg0.navigator;
|
|
1445
|
+
return ret;
|
|
1446
|
+
}
|
|
1447
|
+
export function __wbg_new_227d7c05414eb861() {
|
|
1448
|
+
const ret = new Error();
|
|
1449
|
+
return ret;
|
|
1450
|
+
}
|
|
1451
|
+
export function __wbg_new_25e75d1f0df4d87a() { return handleError(function (arg0, arg1) {
|
|
1452
|
+
const ret = new OffscreenCanvas(arg0 >>> 0, arg1 >>> 0);
|
|
1453
|
+
return ret;
|
|
1454
|
+
}, arguments); }
|
|
1455
|
+
export function __wbg_new_32b398fb48b6d94a() {
|
|
1456
|
+
const ret = new Array();
|
|
1457
|
+
return ret;
|
|
1458
|
+
}
|
|
1459
|
+
export function __wbg_new_da52cf8fe3429cb2() {
|
|
1460
|
+
const ret = new Object();
|
|
1461
|
+
return ret;
|
|
1462
|
+
}
|
|
1463
|
+
export function __wbg_new_typed_1824d93f294193e5(arg0, arg1) {
|
|
1464
|
+
try {
|
|
1465
|
+
var state0 = {a: arg0, b: arg1};
|
|
1466
|
+
var cb0 = (arg0, arg1) => {
|
|
1467
|
+
const a = state0.a;
|
|
1468
|
+
state0.a = 0;
|
|
1469
|
+
try {
|
|
1470
|
+
return wasm_bindgen__convert__closures_____invoke__h73e935f3b365ecab(a, state0.b, arg0, arg1);
|
|
1471
|
+
} finally {
|
|
1472
|
+
state0.a = a;
|
|
1473
|
+
}
|
|
1474
|
+
};
|
|
1475
|
+
const ret = new Promise(cb0);
|
|
1476
|
+
return ret;
|
|
1477
|
+
} finally {
|
|
1478
|
+
state0.a = 0;
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
export function __wbg_new_typed_4148bd5ae72ab3f0() {
|
|
1482
|
+
const ret = new Object();
|
|
1483
|
+
return ret;
|
|
1484
|
+
}
|
|
1485
|
+
export function __wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82(arg0, arg1, arg2) {
|
|
1486
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1487
|
+
return ret;
|
|
1488
|
+
}
|
|
1489
|
+
export function __wbg_now_390768da5ee9e776(arg0) {
|
|
1490
|
+
const ret = arg0.now();
|
|
1491
|
+
return ret;
|
|
1492
|
+
}
|
|
1493
|
+
export function __wbg_now_86c0d4ba3fa605b8() {
|
|
1494
|
+
const ret = Date.now();
|
|
1495
|
+
return ret;
|
|
1496
|
+
}
|
|
1497
|
+
export function __wbg_of_85f52f8b6491a7ca(arg0) {
|
|
1498
|
+
const ret = Array.of(arg0);
|
|
1499
|
+
return ret;
|
|
1500
|
+
}
|
|
1501
|
+
export function __wbg_onSubmittedWorkDone_270d6b5a45520e79(arg0) {
|
|
1502
|
+
const ret = arg0.onSubmittedWorkDone();
|
|
1503
|
+
return ret;
|
|
1504
|
+
}
|
|
1505
|
+
export function __wbg_performance_3ef602e13d6c3b56(arg0) {
|
|
1506
|
+
const ret = arg0.performance;
|
|
1507
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1508
|
+
}
|
|
1509
|
+
export function __wbg_pixelStorei_2a93b18efde9acf8(arg0, arg1, arg2) {
|
|
1510
|
+
arg0.pixelStorei(arg1 >>> 0, arg2);
|
|
1511
|
+
}
|
|
1512
|
+
export function __wbg_pixelStorei_c844cd0db4f1fde6(arg0, arg1, arg2) {
|
|
1513
|
+
arg0.pixelStorei(arg1 >>> 0, arg2);
|
|
1514
|
+
}
|
|
1515
|
+
export function __wbg_polygonOffset_4eb460adf41db6cd(arg0, arg1, arg2) {
|
|
1516
|
+
arg0.polygonOffset(arg1, arg2);
|
|
1517
|
+
}
|
|
1518
|
+
export function __wbg_polygonOffset_eccb68e40a18f861(arg0, arg1, arg2) {
|
|
1519
|
+
arg0.polygonOffset(arg1, arg2);
|
|
1520
|
+
}
|
|
1521
|
+
export function __wbg_prototypesetcall_4770620bbe4688a0(arg0, arg1, arg2) {
|
|
1522
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1523
|
+
}
|
|
1524
|
+
export function __wbg_push_d2ae3af0c1217ae6(arg0, arg1) {
|
|
1525
|
+
const ret = arg0.push(arg1);
|
|
1526
|
+
return ret;
|
|
1527
|
+
}
|
|
1528
|
+
export function __wbg_queryCounterEXT_b74a4567ddfeecf0(arg0, arg1, arg2) {
|
|
1529
|
+
arg0.queryCounterEXT(arg1, arg2 >>> 0);
|
|
1530
|
+
}
|
|
1531
|
+
export function __wbg_querySelectorAll_7e98cbe256deaadd() { return handleError(function (arg0, arg1, arg2) {
|
|
1532
|
+
const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
|
|
1533
|
+
return ret;
|
|
1534
|
+
}, arguments); }
|
|
1535
|
+
export function __wbg_querySelector_fd7d157ebe17cd16() { return handleError(function (arg0, arg1, arg2) {
|
|
1536
|
+
const ret = arg0.querySelector(getStringFromWasm0(arg1, arg2));
|
|
1537
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1538
|
+
}, arguments); }
|
|
1539
|
+
export function __wbg_queueMicrotask_0ab5b2d2393e99b9(arg0) {
|
|
1540
|
+
const ret = arg0.queueMicrotask;
|
|
1541
|
+
return ret;
|
|
1542
|
+
}
|
|
1543
|
+
export function __wbg_queueMicrotask_6a09b7bc46549209(arg0) {
|
|
1544
|
+
queueMicrotask(arg0);
|
|
1545
|
+
}
|
|
1546
|
+
export function __wbg_queue_adce34608fd0c893(arg0) {
|
|
1547
|
+
const ret = arg0.queue;
|
|
1548
|
+
return ret;
|
|
1549
|
+
}
|
|
1550
|
+
export function __wbg_readBuffer_4271437a70aae481(arg0, arg1) {
|
|
1551
|
+
arg0.readBuffer(arg1 >>> 0);
|
|
1552
|
+
}
|
|
1553
|
+
export function __wbg_readPixels_5f013a7d85b23800() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1554
|
+
arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
|
1555
|
+
}, arguments); }
|
|
1556
|
+
export function __wbg_readPixels_82c9dee754d58176() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1557
|
+
arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
|
1558
|
+
}, arguments); }
|
|
1559
|
+
export function __wbg_readPixels_c7861e25836bf57b() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1560
|
+
arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
|
1561
|
+
}, arguments); }
|
|
1562
|
+
export function __wbg_renderbufferStorageMultisample_5c6e5d20c0eaa6ba(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1563
|
+
arg0.renderbufferStorageMultisample(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
1564
|
+
}
|
|
1565
|
+
export function __wbg_renderbufferStorage_0a8de92542893819(arg0, arg1, arg2, arg3, arg4) {
|
|
1566
|
+
arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
|
|
1567
|
+
}
|
|
1568
|
+
export function __wbg_renderbufferStorage_ab5f745ff8efce3d(arg0, arg1, arg2, arg3, arg4) {
|
|
1569
|
+
arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
|
|
1570
|
+
}
|
|
1571
|
+
export function __wbg_requestAdapter_2e6718811c735a57(arg0, arg1) {
|
|
1572
|
+
const ret = arg0.requestAdapter(arg1);
|
|
1573
|
+
return ret;
|
|
1574
|
+
}
|
|
1575
|
+
export function __wbg_requestAdapter_fedd76261c649e55(arg0) {
|
|
1576
|
+
const ret = arg0.requestAdapter();
|
|
1577
|
+
return ret;
|
|
1578
|
+
}
|
|
1579
|
+
export function __wbg_requestDevice_ab46d0519ea1cc34(arg0, arg1) {
|
|
1580
|
+
const ret = arg0.requestDevice(arg1);
|
|
1581
|
+
return ret;
|
|
1582
|
+
}
|
|
1583
|
+
export function __wbg_resolve_2191a4dfe481c25b(arg0) {
|
|
1584
|
+
const ret = Promise.resolve(arg0);
|
|
1585
|
+
return ret;
|
|
1586
|
+
}
|
|
1587
|
+
export function __wbg_samplerParameterf_0b3308eeb1faa3a1(arg0, arg1, arg2, arg3) {
|
|
1588
|
+
arg0.samplerParameterf(arg1, arg2 >>> 0, arg3);
|
|
1589
|
+
}
|
|
1590
|
+
export function __wbg_samplerParameteri_7b1b4091de49aabb(arg0, arg1, arg2, arg3) {
|
|
1591
|
+
arg0.samplerParameteri(arg1, arg2 >>> 0, arg3);
|
|
1592
|
+
}
|
|
1593
|
+
export function __wbg_scene3d_new(arg0) {
|
|
1594
|
+
const ret = Scene3D.__wrap(arg0);
|
|
1595
|
+
return ret;
|
|
1596
|
+
}
|
|
1597
|
+
export function __wbg_scissor_105e756596bc35df(arg0, arg1, arg2, arg3, arg4) {
|
|
1598
|
+
arg0.scissor(arg1, arg2, arg3, arg4);
|
|
1599
|
+
}
|
|
1600
|
+
export function __wbg_scissor_573b844152316b8d(arg0, arg1, arg2, arg3, arg4) {
|
|
1601
|
+
arg0.scissor(arg1, arg2, arg3, arg4);
|
|
1602
|
+
}
|
|
1603
|
+
export function __wbg_setBindGroup_268fd1714fff0ef5() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1604
|
+
arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
1605
|
+
}, arguments); }
|
|
1606
|
+
export function __wbg_setBindGroup_f0de6cb2c7dbfc2c(arg0, arg1, arg2) {
|
|
1607
|
+
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
1608
|
+
}
|
|
1609
|
+
export function __wbg_setIndexBuffer_2531a9103450445e(arg0, arg1, arg2, arg3) {
|
|
1610
|
+
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3);
|
|
1611
|
+
}
|
|
1612
|
+
export function __wbg_setIndexBuffer_7f3cf667b4d71566(arg0, arg1, arg2, arg3, arg4) {
|
|
1613
|
+
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
|
|
1614
|
+
}
|
|
1615
|
+
export function __wbg_setPipeline_c41bf46790f27f9e(arg0, arg1) {
|
|
1616
|
+
arg0.setPipeline(arg1);
|
|
1617
|
+
}
|
|
1618
|
+
export function __wbg_setVertexBuffer_1e448859663dd400(arg0, arg1, arg2, arg3) {
|
|
1619
|
+
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
|
|
1620
|
+
}
|
|
1621
|
+
export function __wbg_setVertexBuffer_7cf533d694e747f3(arg0, arg1, arg2, arg3, arg4) {
|
|
1622
|
+
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
|
|
1623
|
+
}
|
|
1624
|
+
export function __wbg_set_61e45ae8061eca11(arg0, arg1, arg2) {
|
|
1625
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
1626
|
+
}
|
|
1627
|
+
export function __wbg_set_8535240470bf2500() { return handleError(function (arg0, arg1, arg2) {
|
|
1628
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1629
|
+
return ret;
|
|
1630
|
+
}, arguments); }
|
|
1631
|
+
export function __wbg_set_a_88262a42340d0b1c(arg0, arg1) {
|
|
1632
|
+
arg0.a = arg1;
|
|
1633
|
+
}
|
|
1634
|
+
export function __wbg_set_access_9a5092f05dc45fad(arg0, arg1) {
|
|
1635
|
+
arg0.access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
|
|
1636
|
+
}
|
|
1637
|
+
export function __wbg_set_alpha_bfd2df62e7bc581b(arg0, arg1) {
|
|
1638
|
+
arg0.alpha = arg1;
|
|
1639
|
+
}
|
|
1640
|
+
export function __wbg_set_alpha_mode_df805952892caa9c(arg0, arg1) {
|
|
1641
|
+
arg0.alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
|
|
1642
|
+
}
|
|
1643
|
+
export function __wbg_set_alpha_to_coverage_enabled_8b5dc2b0a225b3b2(arg0, arg1) {
|
|
1644
|
+
arg0.alphaToCoverageEnabled = arg1 !== 0;
|
|
1645
|
+
}
|
|
1646
|
+
export function __wbg_set_array_layer_count_7312f0f31af94e7c(arg0, arg1) {
|
|
1647
|
+
arg0.arrayLayerCount = arg1 >>> 0;
|
|
1648
|
+
}
|
|
1649
|
+
export function __wbg_set_array_stride_f64_27ffaf4fffd74e61(arg0, arg1) {
|
|
1650
|
+
arg0.arrayStride = arg1;
|
|
1651
|
+
}
|
|
1652
|
+
export function __wbg_set_aspect_0d453bca3d012f02(arg0, arg1) {
|
|
1653
|
+
arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
1654
|
+
}
|
|
1655
|
+
export function __wbg_set_attributes_7537844a7e6dafdc(arg0, arg1, arg2) {
|
|
1656
|
+
arg0.attributes = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
1657
|
+
}
|
|
1658
|
+
export function __wbg_set_b_c47befe0af3261eb(arg0, arg1) {
|
|
1659
|
+
arg0.b = arg1;
|
|
1660
|
+
}
|
|
1661
|
+
export function __wbg_set_base_array_layer_f176bb9f1b37b342(arg0, arg1) {
|
|
1662
|
+
arg0.baseArrayLayer = arg1 >>> 0;
|
|
1663
|
+
}
|
|
1664
|
+
export function __wbg_set_base_mip_level_1df145d9f8db32a9(arg0, arg1) {
|
|
1665
|
+
arg0.baseMipLevel = arg1 >>> 0;
|
|
1666
|
+
}
|
|
1667
|
+
export function __wbg_set_beginning_of_pass_write_index_e9f5d016947893bd(arg0, arg1) {
|
|
1668
|
+
arg0.beginningOfPassWriteIndex = arg1 >>> 0;
|
|
1669
|
+
}
|
|
1670
|
+
export function __wbg_set_bind_group_layouts_5a9cfea401c020ab(arg0, arg1, arg2) {
|
|
1671
|
+
arg0.bindGroupLayouts = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
1672
|
+
}
|
|
1673
|
+
export function __wbg_set_binding_155b0440b4307793(arg0, arg1) {
|
|
1674
|
+
arg0.binding = arg1 >>> 0;
|
|
1675
|
+
}
|
|
1676
|
+
export function __wbg_set_binding_f74df3510792aba1(arg0, arg1) {
|
|
1677
|
+
arg0.binding = arg1 >>> 0;
|
|
1678
|
+
}
|
|
1679
|
+
export function __wbg_set_blend_7493c2066c3e9970(arg0, arg1) {
|
|
1680
|
+
arg0.blend = arg1;
|
|
1681
|
+
}
|
|
1682
|
+
export function __wbg_set_buffer_c3410572051920ba(arg0, arg1) {
|
|
1683
|
+
arg0.buffer = arg1;
|
|
1684
|
+
}
|
|
1685
|
+
export function __wbg_set_buffer_ef7f75306cf663ed(arg0, arg1) {
|
|
1686
|
+
arg0.buffer = arg1;
|
|
1687
|
+
}
|
|
1688
|
+
export function __wbg_set_buffers_7d0d8f507699e956(arg0, arg1, arg2) {
|
|
1689
|
+
arg0.buffers = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
1690
|
+
}
|
|
1691
|
+
export function __wbg_set_clear_value_gpu_color_dict_6211425789c76e59(arg0, arg1) {
|
|
1692
|
+
arg0.clearValue = arg1;
|
|
1693
|
+
}
|
|
1694
|
+
export function __wbg_set_code_b4f37f81f45b5b25(arg0, arg1, arg2) {
|
|
1695
|
+
arg0.code = getStringFromWasm0(arg1, arg2);
|
|
1696
|
+
}
|
|
1697
|
+
export function __wbg_set_color_83aa977526e88cbb(arg0, arg1) {
|
|
1698
|
+
arg0.color = arg1;
|
|
1699
|
+
}
|
|
1700
|
+
export function __wbg_set_color_attachments_581fdb3310e4abfa(arg0, arg1, arg2) {
|
|
1701
|
+
arg0.colorAttachments = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
1702
|
+
}
|
|
1703
|
+
export function __wbg_set_compare_f36b34abfaa08ccb(arg0, arg1) {
|
|
1704
|
+
arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
1705
|
+
}
|
|
1706
|
+
export function __wbg_set_count_069a4eac409bac55(arg0, arg1) {
|
|
1707
|
+
arg0.count = arg1 >>> 0;
|
|
1708
|
+
}
|
|
1709
|
+
export function __wbg_set_cull_mode_fc649853947a3d0c(arg0, arg1) {
|
|
1710
|
+
arg0.cullMode = __wbindgen_enum_GpuCullMode[arg1];
|
|
1711
|
+
}
|
|
1712
|
+
export function __wbg_set_depth_bias_clamp_1c0d695df7f092e5(arg0, arg1) {
|
|
1713
|
+
arg0.depthBiasClamp = arg1;
|
|
1714
|
+
}
|
|
1715
|
+
export function __wbg_set_depth_bias_d7cd16096242a657(arg0, arg1) {
|
|
1716
|
+
arg0.depthBias = arg1;
|
|
1717
|
+
}
|
|
1718
|
+
export function __wbg_set_depth_bias_slope_scale_c4e52ec743ef55ba(arg0, arg1) {
|
|
1719
|
+
arg0.depthBiasSlopeScale = arg1;
|
|
1720
|
+
}
|
|
1721
|
+
export function __wbg_set_depth_clear_value_beda3ec5b1a5c43a(arg0, arg1) {
|
|
1722
|
+
arg0.depthClearValue = arg1;
|
|
1723
|
+
}
|
|
1724
|
+
export function __wbg_set_depth_compare_0c8631eb2eae98e3(arg0, arg1) {
|
|
1725
|
+
arg0.depthCompare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
1726
|
+
}
|
|
1727
|
+
export function __wbg_set_depth_fail_op_668155ae33d3c06f(arg0, arg1) {
|
|
1728
|
+
arg0.depthFailOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
1729
|
+
}
|
|
1730
|
+
export function __wbg_set_depth_load_op_511c513eab4e56a9(arg0, arg1) {
|
|
1731
|
+
arg0.depthLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
1732
|
+
}
|
|
1733
|
+
export function __wbg_set_depth_or_array_layers_89371305ed0bd962(arg0, arg1) {
|
|
1734
|
+
arg0.depthOrArrayLayers = arg1 >>> 0;
|
|
1735
|
+
}
|
|
1736
|
+
export function __wbg_set_depth_read_only_7f41a74741c144ec(arg0, arg1) {
|
|
1737
|
+
arg0.depthReadOnly = arg1 !== 0;
|
|
1738
|
+
}
|
|
1739
|
+
export function __wbg_set_depth_stencil_97506c7bea4f53da(arg0, arg1) {
|
|
1740
|
+
arg0.depthStencil = arg1;
|
|
1741
|
+
}
|
|
1742
|
+
export function __wbg_set_depth_stencil_attachment_73b79e8b4e948222(arg0, arg1) {
|
|
1743
|
+
arg0.depthStencilAttachment = arg1;
|
|
1744
|
+
}
|
|
1745
|
+
export function __wbg_set_depth_store_op_c89f33b39b43361c(arg0, arg1) {
|
|
1746
|
+
arg0.depthStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
1747
|
+
}
|
|
1748
|
+
export function __wbg_set_depth_write_enabled_ce89750042940350(arg0, arg1) {
|
|
1749
|
+
arg0.depthWriteEnabled = arg1 !== 0;
|
|
1750
|
+
}
|
|
1751
|
+
export function __wbg_set_device_e275d1d4f3c9eb74(arg0, arg1) {
|
|
1752
|
+
arg0.device = arg1;
|
|
1753
|
+
}
|
|
1754
|
+
export function __wbg_set_dimension_868eee80f4b90011(arg0, arg1) {
|
|
1755
|
+
arg0.dimension = __wbindgen_enum_GpuTextureDimension[arg1];
|
|
1756
|
+
}
|
|
1757
|
+
export function __wbg_set_dimension_e325282e613ca0a4(arg0, arg1) {
|
|
1758
|
+
arg0.dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
1759
|
+
}
|
|
1760
|
+
export function __wbg_set_dst_factor_ec7407f19be1aff9(arg0, arg1) {
|
|
1761
|
+
arg0.dstFactor = __wbindgen_enum_GpuBlendFactor[arg1];
|
|
1762
|
+
}
|
|
1763
|
+
export function __wbg_set_end_of_pass_write_index_0d546e46b86ea069(arg0, arg1) {
|
|
1764
|
+
arg0.endOfPassWriteIndex = arg1 >>> 0;
|
|
1765
|
+
}
|
|
1766
|
+
export function __wbg_set_entries_86a29dd6291c95e7(arg0, arg1, arg2) {
|
|
1767
|
+
arg0.entries = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
1768
|
+
}
|
|
1769
|
+
export function __wbg_set_entries_a12aca1e458b0456(arg0, arg1, arg2) {
|
|
1770
|
+
arg0.entries = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
1771
|
+
}
|
|
1772
|
+
export function __wbg_set_entry_point_207540f042015ce5(arg0, arg1, arg2) {
|
|
1773
|
+
arg0.entryPoint = getStringFromWasm0(arg1, arg2);
|
|
1774
|
+
}
|
|
1775
|
+
export function __wbg_set_entry_point_e87e79251dd3144f(arg0, arg1, arg2) {
|
|
1776
|
+
arg0.entryPoint = getStringFromWasm0(arg1, arg2);
|
|
1777
|
+
}
|
|
1778
|
+
export function __wbg_set_external_texture_386483d8dd82ab56(arg0, arg1) {
|
|
1779
|
+
arg0.externalTexture = arg1;
|
|
1780
|
+
}
|
|
1781
|
+
export function __wbg_set_fail_op_92f716dbc88b6973(arg0, arg1) {
|
|
1782
|
+
arg0.failOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
1783
|
+
}
|
|
1784
|
+
export function __wbg_set_format_1fcaa7d60546b490(arg0, arg1) {
|
|
1785
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1786
|
+
}
|
|
1787
|
+
export function __wbg_set_format_2c1414a817c213f8(arg0, arg1) {
|
|
1788
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1789
|
+
}
|
|
1790
|
+
export function __wbg_set_format_533f9ffa7eef563d(arg0, arg1) {
|
|
1791
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1792
|
+
}
|
|
1793
|
+
export function __wbg_set_format_5d2f25cc93654ecc(arg0, arg1) {
|
|
1794
|
+
arg0.format = __wbindgen_enum_GpuVertexFormat[arg1];
|
|
1795
|
+
}
|
|
1796
|
+
export function __wbg_set_format_5ff53724ed6cedf2(arg0, arg1) {
|
|
1797
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1798
|
+
}
|
|
1799
|
+
export function __wbg_set_format_815efd4dc4817bbb(arg0, arg1) {
|
|
1800
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1801
|
+
}
|
|
1802
|
+
export function __wbg_set_format_e52bdcca880d2c8e(arg0, arg1) {
|
|
1803
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1804
|
+
}
|
|
1805
|
+
export function __wbg_set_fragment_8b780f00a0b0e6f3(arg0, arg1) {
|
|
1806
|
+
arg0.fragment = arg1;
|
|
1807
|
+
}
|
|
1808
|
+
export function __wbg_set_front_face_28ffdf524eedce5b(arg0, arg1) {
|
|
1809
|
+
arg0.frontFace = __wbindgen_enum_GpuFrontFace[arg1];
|
|
1810
|
+
}
|
|
1811
|
+
export function __wbg_set_g_5983abfc46e0cf4e(arg0, arg1) {
|
|
1812
|
+
arg0.g = arg1;
|
|
1813
|
+
}
|
|
1814
|
+
export function __wbg_set_has_dynamic_offset_62bc230bdb7c54d0(arg0, arg1) {
|
|
1815
|
+
arg0.hasDynamicOffset = arg1 !== 0;
|
|
1816
|
+
}
|
|
1817
|
+
export function __wbg_set_height_14335c4047cf9c1b(arg0, arg1) {
|
|
1818
|
+
arg0.height = arg1 >>> 0;
|
|
1819
|
+
}
|
|
1820
|
+
export function __wbg_set_height_7d9d8f892e6964c6(arg0, arg1) {
|
|
1821
|
+
arg0.height = arg1 >>> 0;
|
|
1822
|
+
}
|
|
1823
|
+
export function __wbg_set_height_bbeef8f354041577(arg0, arg1) {
|
|
1824
|
+
arg0.height = arg1 >>> 0;
|
|
1825
|
+
}
|
|
1826
|
+
export function __wbg_set_label_08d9be3e4719c226(arg0, arg1, arg2) {
|
|
1827
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1828
|
+
}
|
|
1829
|
+
export function __wbg_set_label_17eb9fe3a02f62b0(arg0, arg1, arg2) {
|
|
1830
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1831
|
+
}
|
|
1832
|
+
export function __wbg_set_label_48e6b787d256f621(arg0, arg1, arg2) {
|
|
1833
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1834
|
+
}
|
|
1835
|
+
export function __wbg_set_label_547d0d4aec39fbe9(arg0, arg1, arg2) {
|
|
1836
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1837
|
+
}
|
|
1838
|
+
export function __wbg_set_label_60ad96c811e0d109(arg0, arg1, arg2) {
|
|
1839
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1840
|
+
}
|
|
1841
|
+
export function __wbg_set_label_72bb4f41ef0cb893(arg0, arg1, arg2) {
|
|
1842
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1843
|
+
}
|
|
1844
|
+
export function __wbg_set_label_79387decda299036(arg0, arg1, arg2) {
|
|
1845
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1846
|
+
}
|
|
1847
|
+
export function __wbg_set_label_9556af8b5cda3c9d(arg0, arg1, arg2) {
|
|
1848
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1849
|
+
}
|
|
1850
|
+
export function __wbg_set_label_d010f237b26f2c55(arg0, arg1, arg2) {
|
|
1851
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1852
|
+
}
|
|
1853
|
+
export function __wbg_set_label_e16e2dbe51349c7f(arg0, arg1, arg2) {
|
|
1854
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1855
|
+
}
|
|
1856
|
+
export function __wbg_set_label_e3944e54881b8c50(arg0, arg1, arg2) {
|
|
1857
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1858
|
+
}
|
|
1859
|
+
export function __wbg_set_label_e922700240417ab5(arg0, arg1, arg2) {
|
|
1860
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1861
|
+
}
|
|
1862
|
+
export function __wbg_set_layout_50ab727f44b38f26(arg0, arg1) {
|
|
1863
|
+
arg0.layout = arg1;
|
|
1864
|
+
}
|
|
1865
|
+
export function __wbg_set_layout_913d53c17194c989(arg0, arg1) {
|
|
1866
|
+
arg0.layout = arg1;
|
|
1867
|
+
}
|
|
1868
|
+
export function __wbg_set_layout_gpu_auto_layout_mode_aeba193938b47882(arg0, arg1) {
|
|
1869
|
+
arg0.layout = __wbindgen_enum_GpuAutoLayoutMode[arg1];
|
|
1870
|
+
}
|
|
1871
|
+
export function __wbg_set_load_op_99661da6c4eab9b0(arg0, arg1) {
|
|
1872
|
+
arg0.loadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
1873
|
+
}
|
|
1874
|
+
export function __wbg_set_mapped_at_creation_81b586dc90a50347(arg0, arg1) {
|
|
1875
|
+
arg0.mappedAtCreation = arg1 !== 0;
|
|
1876
|
+
}
|
|
1877
|
+
export function __wbg_set_mask_70a8a59ce09e5997(arg0, arg1) {
|
|
1878
|
+
arg0.mask = arg1 >>> 0;
|
|
1879
|
+
}
|
|
1880
|
+
export function __wbg_set_min_binding_size_f64_5005a6904cdf43da(arg0, arg1) {
|
|
1881
|
+
arg0.minBindingSize = arg1;
|
|
1882
|
+
}
|
|
1883
|
+
export function __wbg_set_mip_level_count_534caaa7e68e68b8(arg0, arg1) {
|
|
1884
|
+
arg0.mipLevelCount = arg1 >>> 0;
|
|
1885
|
+
}
|
|
1886
|
+
export function __wbg_set_mip_level_count_776c8c218b65bc08(arg0, arg1) {
|
|
1887
|
+
arg0.mipLevelCount = arg1 >>> 0;
|
|
1888
|
+
}
|
|
1889
|
+
export function __wbg_set_mode_9990b3393ba469ae(arg0, arg1) {
|
|
1890
|
+
arg0.mode = __wbindgen_enum_GpuCanvasToneMappingMode[arg1];
|
|
1891
|
+
}
|
|
1892
|
+
export function __wbg_set_module_d0e2098713606cae(arg0, arg1) {
|
|
1893
|
+
arg0.module = arg1;
|
|
1894
|
+
}
|
|
1895
|
+
export function __wbg_set_module_f02e076ca7e7daf8(arg0, arg1) {
|
|
1896
|
+
arg0.module = arg1;
|
|
1897
|
+
}
|
|
1898
|
+
export function __wbg_set_multisample_37ddafe88b5cd466(arg0, arg1) {
|
|
1899
|
+
arg0.multisample = arg1;
|
|
1900
|
+
}
|
|
1901
|
+
export function __wbg_set_multisampled_7913fd7183272840(arg0, arg1) {
|
|
1902
|
+
arg0.multisampled = arg1 !== 0;
|
|
1903
|
+
}
|
|
1904
|
+
export function __wbg_set_offset_f64_28c24dc15000932e(arg0, arg1) {
|
|
1905
|
+
arg0.offset = arg1;
|
|
1906
|
+
}
|
|
1907
|
+
export function __wbg_set_offset_f64_89f0ce01a689839e(arg0, arg1) {
|
|
1908
|
+
arg0.offset = arg1;
|
|
1909
|
+
}
|
|
1910
|
+
export function __wbg_set_operation_62ce44e1728c4047(arg0, arg1) {
|
|
1911
|
+
arg0.operation = __wbindgen_enum_GpuBlendOperation[arg1];
|
|
1912
|
+
}
|
|
1913
|
+
export function __wbg_set_pass_op_cf02fa088d6352a7(arg0, arg1) {
|
|
1914
|
+
arg0.passOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
1915
|
+
}
|
|
1916
|
+
export function __wbg_set_power_preference_8fdca0b7af640d49(arg0, arg1) {
|
|
1917
|
+
arg0.powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
|
|
1918
|
+
}
|
|
1919
|
+
export function __wbg_set_primitive_43c23761a55b4088(arg0, arg1) {
|
|
1920
|
+
arg0.primitive = arg1;
|
|
1921
|
+
}
|
|
1922
|
+
export function __wbg_set_query_set_41de86d2401aee04(arg0, arg1) {
|
|
1923
|
+
arg0.querySet = arg1;
|
|
1924
|
+
}
|
|
1925
|
+
export function __wbg_set_r_c6f4c68f4804d655(arg0, arg1) {
|
|
1926
|
+
arg0.r = arg1;
|
|
1927
|
+
}
|
|
1928
|
+
export function __wbg_set_required_features_1baf274a8669db60(arg0, arg1, arg2) {
|
|
1929
|
+
arg0.requiredFeatures = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
1930
|
+
}
|
|
1931
|
+
export function __wbg_set_required_limits_871ed33c68613dcb(arg0, arg1) {
|
|
1932
|
+
arg0.requiredLimits = arg1;
|
|
1933
|
+
}
|
|
1934
|
+
export function __wbg_set_resolve_target_gpu_texture_view_b19a4f2debf79b96(arg0, arg1) {
|
|
1935
|
+
arg0.resolveTarget = arg1;
|
|
1936
|
+
}
|
|
1937
|
+
export function __wbg_set_resource_5ae7b5e67924f234(arg0, arg1) {
|
|
1938
|
+
arg0.resource = arg1;
|
|
1939
|
+
}
|
|
1940
|
+
export function __wbg_set_resource_gpu_buffer_binding_e5dbca063e7cb67b(arg0, arg1) {
|
|
1941
|
+
arg0.resource = arg1;
|
|
1942
|
+
}
|
|
1943
|
+
export function __wbg_set_resource_gpu_texture_view_eb46c355d51ad7e5(arg0, arg1) {
|
|
1944
|
+
arg0.resource = arg1;
|
|
1945
|
+
}
|
|
1946
|
+
export function __wbg_set_sample_count_eb86a8b18545b54f(arg0, arg1) {
|
|
1947
|
+
arg0.sampleCount = arg1 >>> 0;
|
|
1948
|
+
}
|
|
1949
|
+
export function __wbg_set_sample_type_c32e1dfff94e63eb(arg0, arg1) {
|
|
1950
|
+
arg0.sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
|
|
1951
|
+
}
|
|
1952
|
+
export function __wbg_set_sampler_c0e1258543a33bce(arg0, arg1) {
|
|
1953
|
+
arg0.sampler = arg1;
|
|
1954
|
+
}
|
|
1955
|
+
export function __wbg_set_shader_location_7e1832a74f912217(arg0, arg1) {
|
|
1956
|
+
arg0.shaderLocation = arg1 >>> 0;
|
|
1957
|
+
}
|
|
1958
|
+
export function __wbg_set_size_f64_6bcd40704bf4cfdc(arg0, arg1) {
|
|
1959
|
+
arg0.size = arg1;
|
|
1960
|
+
}
|
|
1961
|
+
export function __wbg_set_size_f64_8b8f6bba5d678162(arg0, arg1) {
|
|
1962
|
+
arg0.size = arg1;
|
|
1963
|
+
}
|
|
1964
|
+
export function __wbg_set_size_gpu_extent_3d_dict_7e42e1c98fa36434(arg0, arg1) {
|
|
1965
|
+
arg0.size = arg1;
|
|
1966
|
+
}
|
|
1967
|
+
export function __wbg_set_src_factor_9bfe84af9b7b5cac(arg0, arg1) {
|
|
1968
|
+
arg0.srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
|
|
1969
|
+
}
|
|
1970
|
+
export function __wbg_set_stencil_back_85b22f1db5b1940a(arg0, arg1) {
|
|
1971
|
+
arg0.stencilBack = arg1;
|
|
1972
|
+
}
|
|
1973
|
+
export function __wbg_set_stencil_clear_value_42be608809151e2a(arg0, arg1) {
|
|
1974
|
+
arg0.stencilClearValue = arg1 >>> 0;
|
|
1975
|
+
}
|
|
1976
|
+
export function __wbg_set_stencil_front_525526164a798a44(arg0, arg1) {
|
|
1977
|
+
arg0.stencilFront = arg1;
|
|
1978
|
+
}
|
|
1979
|
+
export function __wbg_set_stencil_load_op_31838c036993098a(arg0, arg1) {
|
|
1980
|
+
arg0.stencilLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
1981
|
+
}
|
|
1982
|
+
export function __wbg_set_stencil_read_mask_5cc26495e8b3ae82(arg0, arg1) {
|
|
1983
|
+
arg0.stencilReadMask = arg1 >>> 0;
|
|
1984
|
+
}
|
|
1985
|
+
export function __wbg_set_stencil_read_only_bf1d0c1897e25c62(arg0, arg1) {
|
|
1986
|
+
arg0.stencilReadOnly = arg1 !== 0;
|
|
1987
|
+
}
|
|
1988
|
+
export function __wbg_set_stencil_store_op_e6be1cbc3a8fc210(arg0, arg1) {
|
|
1989
|
+
arg0.stencilStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
1990
|
+
}
|
|
1991
|
+
export function __wbg_set_stencil_write_mask_d9cb40ec4b4bee5b(arg0, arg1) {
|
|
1992
|
+
arg0.stencilWriteMask = arg1 >>> 0;
|
|
1993
|
+
}
|
|
1994
|
+
export function __wbg_set_step_mode_a97bb24714da41a9(arg0, arg1) {
|
|
1995
|
+
arg0.stepMode = __wbindgen_enum_GpuVertexStepMode[arg1];
|
|
1996
|
+
}
|
|
1997
|
+
export function __wbg_set_storage_texture_939a097db4b18bd4(arg0, arg1) {
|
|
1998
|
+
arg0.storageTexture = arg1;
|
|
1999
|
+
}
|
|
2000
|
+
export function __wbg_set_store_op_b5fdf672436f13f3(arg0, arg1) {
|
|
2001
|
+
arg0.storeOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
2002
|
+
}
|
|
2003
|
+
export function __wbg_set_strip_index_format_9f787be6c5fc9e87(arg0, arg1) {
|
|
2004
|
+
arg0.stripIndexFormat = __wbindgen_enum_GpuIndexFormat[arg1];
|
|
2005
|
+
}
|
|
2006
|
+
export function __wbg_set_targets_c38bd200c836d66f(arg0, arg1, arg2) {
|
|
2007
|
+
arg0.targets = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
2008
|
+
}
|
|
2009
|
+
export function __wbg_set_texture_9dcedde1bb31eda6(arg0, arg1) {
|
|
2010
|
+
arg0.texture = arg1;
|
|
2011
|
+
}
|
|
2012
|
+
export function __wbg_set_timestamp_writes_98bed1a8bbc6682d(arg0, arg1) {
|
|
2013
|
+
arg0.timestampWrites = arg1;
|
|
2014
|
+
}
|
|
2015
|
+
export function __wbg_set_tone_mapping_b3464f1baa4cff92(arg0, arg1) {
|
|
2016
|
+
arg0.toneMapping = arg1;
|
|
2017
|
+
}
|
|
2018
|
+
export function __wbg_set_topology_da25f2cc5af203d2(arg0, arg1) {
|
|
2019
|
+
arg0.topology = __wbindgen_enum_GpuPrimitiveTopology[arg1];
|
|
2020
|
+
}
|
|
2021
|
+
export function __wbg_set_type_ccf8472d40abcddf(arg0, arg1) {
|
|
2022
|
+
arg0.type = __wbindgen_enum_GpuSamplerBindingType[arg1];
|
|
2023
|
+
}
|
|
2024
|
+
export function __wbg_set_type_d09829f59932a0fc(arg0, arg1) {
|
|
2025
|
+
arg0.type = __wbindgen_enum_GpuBufferBindingType[arg1];
|
|
2026
|
+
}
|
|
2027
|
+
export function __wbg_set_unclipped_depth_04524a2b44e1e3c1(arg0, arg1) {
|
|
2028
|
+
arg0.unclippedDepth = arg1 !== 0;
|
|
2029
|
+
}
|
|
2030
|
+
export function __wbg_set_usage_a137f82ca163b0a9(arg0, arg1) {
|
|
2031
|
+
arg0.usage = arg1 >>> 0;
|
|
2032
|
+
}
|
|
2033
|
+
export function __wbg_set_usage_b2a2935f37bf3d08(arg0, arg1) {
|
|
2034
|
+
arg0.usage = arg1 >>> 0;
|
|
2035
|
+
}
|
|
2036
|
+
export function __wbg_set_usage_ba5b0f8b333ab325(arg0, arg1) {
|
|
2037
|
+
arg0.usage = arg1 >>> 0;
|
|
2038
|
+
}
|
|
2039
|
+
export function __wbg_set_usage_ddd42599bbba7779(arg0, arg1) {
|
|
2040
|
+
arg0.usage = arg1 >>> 0;
|
|
2041
|
+
}
|
|
2042
|
+
export function __wbg_set_vertex_0be5d146f9ff6f36(arg0, arg1) {
|
|
2043
|
+
arg0.vertex = arg1;
|
|
2044
|
+
}
|
|
2045
|
+
export function __wbg_set_view_dimension_0df554032f1f3a85(arg0, arg1) {
|
|
2046
|
+
arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
2047
|
+
}
|
|
2048
|
+
export function __wbg_set_view_dimension_4818d4c18ce5815e(arg0, arg1) {
|
|
2049
|
+
arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
2050
|
+
}
|
|
2051
|
+
export function __wbg_set_view_formats_4347dc8363331086(arg0, arg1, arg2) {
|
|
2052
|
+
arg0.viewFormats = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
2053
|
+
}
|
|
2054
|
+
export function __wbg_set_view_formats_5797d2fff3c11808(arg0, arg1, arg2) {
|
|
2055
|
+
arg0.viewFormats = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
2056
|
+
}
|
|
2057
|
+
export function __wbg_set_view_gpu_texture_view_9b2d86b6b99d9fd9(arg0, arg1) {
|
|
2058
|
+
arg0.view = arg1;
|
|
2059
|
+
}
|
|
2060
|
+
export function __wbg_set_view_gpu_texture_view_c0f35f8857c25206(arg0, arg1) {
|
|
2061
|
+
arg0.view = arg1;
|
|
2062
|
+
}
|
|
2063
|
+
export function __wbg_set_visibility_9570b037224c4cc2(arg0, arg1) {
|
|
2064
|
+
arg0.visibility = arg1 >>> 0;
|
|
2065
|
+
}
|
|
2066
|
+
export function __wbg_set_width_49ac9b7d914afc85(arg0, arg1) {
|
|
2067
|
+
arg0.width = arg1 >>> 0;
|
|
2068
|
+
}
|
|
2069
|
+
export function __wbg_set_width_8e30d010cd66830d(arg0, arg1) {
|
|
2070
|
+
arg0.width = arg1 >>> 0;
|
|
2071
|
+
}
|
|
2072
|
+
export function __wbg_set_width_9f685402c2cbee70(arg0, arg1) {
|
|
2073
|
+
arg0.width = arg1 >>> 0;
|
|
2074
|
+
}
|
|
2075
|
+
export function __wbg_set_write_mask_d45279e56abbfcb5(arg0, arg1) {
|
|
2076
|
+
arg0.writeMask = arg1 >>> 0;
|
|
2077
|
+
}
|
|
2078
|
+
export function __wbg_shaderSource_4cf90af97621ff49(arg0, arg1, arg2, arg3) {
|
|
2079
|
+
arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
|
|
2080
|
+
}
|
|
2081
|
+
export function __wbg_shaderSource_c3469dc2221dd528(arg0, arg1, arg2, arg3) {
|
|
2082
|
+
arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
|
|
2083
|
+
}
|
|
2084
|
+
export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
2085
|
+
const ret = arg1.stack;
|
|
2086
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2087
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2088
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2089
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2090
|
+
}
|
|
2091
|
+
export function __wbg_static_accessor_GLOBAL_4ef717fb391d88b7() {
|
|
2092
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
2093
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2094
|
+
}
|
|
2095
|
+
export function __wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4() {
|
|
2096
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
2097
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2098
|
+
}
|
|
2099
|
+
export function __wbg_static_accessor_SELF_146583524fe1469b() {
|
|
2100
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
2101
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2102
|
+
}
|
|
2103
|
+
export function __wbg_static_accessor_WINDOW_f2829a2234d7819e() {
|
|
2104
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
2105
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2106
|
+
}
|
|
2107
|
+
export function __wbg_stencilFuncSeparate_35136c4e5153406f(arg0, arg1, arg2, arg3, arg4) {
|
|
2108
|
+
arg0.stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0);
|
|
2109
|
+
}
|
|
2110
|
+
export function __wbg_stencilFuncSeparate_814300446c2969ef(arg0, arg1, arg2, arg3, arg4) {
|
|
2111
|
+
arg0.stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0);
|
|
2112
|
+
}
|
|
2113
|
+
export function __wbg_stencilMaskSeparate_49367b0b5883a8bd(arg0, arg1, arg2) {
|
|
2114
|
+
arg0.stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0);
|
|
2115
|
+
}
|
|
2116
|
+
export function __wbg_stencilMaskSeparate_63976cc45fb94d84(arg0, arg1, arg2) {
|
|
2117
|
+
arg0.stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0);
|
|
2118
|
+
}
|
|
2119
|
+
export function __wbg_stencilMask_1c99b79b516d12dd(arg0, arg1) {
|
|
2120
|
+
arg0.stencilMask(arg1 >>> 0);
|
|
2121
|
+
}
|
|
2122
|
+
export function __wbg_stencilMask_9a844dc58a89992f(arg0, arg1) {
|
|
2123
|
+
arg0.stencilMask(arg1 >>> 0);
|
|
2124
|
+
}
|
|
2125
|
+
export function __wbg_stencilOpSeparate_b2cb9af05b803e02(arg0, arg1, arg2, arg3, arg4) {
|
|
2126
|
+
arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
2127
|
+
}
|
|
2128
|
+
export function __wbg_stencilOpSeparate_c77fcb47561d0aee(arg0, arg1, arg2, arg3, arg4) {
|
|
2129
|
+
arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
2130
|
+
}
|
|
2131
|
+
export function __wbg_submit_ce44115121cd166c(arg0, arg1, arg2) {
|
|
2132
|
+
arg0.submit(getArrayJsValueViewFromWasm0(arg1, arg2));
|
|
2133
|
+
}
|
|
2134
|
+
export function __wbg_texImage2D_3813406af5bf54c8() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2135
|
+
arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
2136
|
+
}, arguments); }
|
|
2137
|
+
export function __wbg_texImage2D_5abd8779d1d033c7() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2138
|
+
arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
2139
|
+
}, arguments); }
|
|
2140
|
+
export function __wbg_texImage2D_8d168171984f2a40() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2141
|
+
arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
2142
|
+
}, arguments); }
|
|
2143
|
+
export function __wbg_texImage3D_bdd9bebe42ed1f52() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
|
|
2144
|
+
arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10);
|
|
2145
|
+
}, arguments); }
|
|
2146
|
+
export function __wbg_texImage3D_ef16a1f721b3f908() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
|
|
2147
|
+
arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10);
|
|
2148
|
+
}, arguments); }
|
|
2149
|
+
export function __wbg_texParameteri_1fc451e0964fc91c(arg0, arg1, arg2, arg3) {
|
|
2150
|
+
arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
2151
|
+
}
|
|
2152
|
+
export function __wbg_texParameteri_9d0daa263d3a863f(arg0, arg1, arg2, arg3) {
|
|
2153
|
+
arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
2154
|
+
}
|
|
2155
|
+
export function __wbg_texStorage2D_7f947efc63dac273(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2156
|
+
arg0.texStorage2D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
2157
|
+
}
|
|
2158
|
+
export function __wbg_texStorage3D_f8f2e4b3386736f9(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
2159
|
+
arg0.texStorage3D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5, arg6);
|
|
2160
|
+
}
|
|
2161
|
+
export function __wbg_texSubImage2D_047380bb2660e4f9() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2162
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
2163
|
+
}, arguments); }
|
|
2164
|
+
export function __wbg_texSubImage2D_5058af3d30a8e205() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2165
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
2166
|
+
}, arguments); }
|
|
2167
|
+
export function __wbg_texSubImage2D_6a376bfc3a31436b() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2168
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
2169
|
+
}, arguments); }
|
|
2170
|
+
export function __wbg_texSubImage2D_98c43894eb217aa7() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2171
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
2172
|
+
}, arguments); }
|
|
2173
|
+
export function __wbg_texSubImage2D_bed5e7a3cd81d409() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2174
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
2175
|
+
}, arguments); }
|
|
2176
|
+
export function __wbg_texSubImage2D_d1af697e69f8a9e4() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2177
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
2178
|
+
}, arguments); }
|
|
2179
|
+
export function __wbg_texSubImage2D_d3cd09d0ffcb27be() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2180
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
2181
|
+
}, arguments); }
|
|
2182
|
+
export function __wbg_texSubImage2D_e107b4f88c19b920() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2183
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
2184
|
+
}, arguments); }
|
|
2185
|
+
export function __wbg_texSubImage3D_45e498ae6298998c() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
2186
|
+
arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
|
|
2187
|
+
}, arguments); }
|
|
2188
|
+
export function __wbg_texSubImage3D_4fdd4cd95a2925c2() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
2189
|
+
arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
|
|
2190
|
+
}, arguments); }
|
|
2191
|
+
export function __wbg_texSubImage3D_6cb6cfd732dad145() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
2192
|
+
arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
|
|
2193
|
+
}, arguments); }
|
|
2194
|
+
export function __wbg_texSubImage3D_8077e90ec309c414() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
2195
|
+
arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
|
|
2196
|
+
}, arguments); }
|
|
2197
|
+
export function __wbg_texSubImage3D_93b38c69acb735c8() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
2198
|
+
arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
|
|
2199
|
+
}, arguments); }
|
|
2200
|
+
export function __wbg_texSubImage3D_c9e5a071796d412f() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
2201
|
+
arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
|
|
2202
|
+
}, arguments); }
|
|
2203
|
+
export function __wbg_texSubImage3D_feebaf7f0f4594c6() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
2204
|
+
arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
|
|
2205
|
+
}, arguments); }
|
|
2206
|
+
export function __wbg_then_16d107c451e9905d(arg0, arg1, arg2) {
|
|
2207
|
+
const ret = arg0.then(arg1, arg2);
|
|
2208
|
+
return ret;
|
|
2209
|
+
}
|
|
2210
|
+
export function __wbg_then_6ec10ae38b3e92f7(arg0, arg1) {
|
|
2211
|
+
const ret = arg0.then(arg1);
|
|
2212
|
+
return ret;
|
|
2213
|
+
}
|
|
2214
|
+
export function __wbg_unconfigure_0a07a0a40de8988d(arg0) {
|
|
2215
|
+
arg0.unconfigure();
|
|
2216
|
+
}
|
|
2217
|
+
export function __wbg_uniform1f_62692c8fa8e7bf1e(arg0, arg1, arg2) {
|
|
2218
|
+
arg0.uniform1f(arg1, arg2);
|
|
2219
|
+
}
|
|
2220
|
+
export function __wbg_uniform1f_b79d0c5667f9fb40(arg0, arg1, arg2) {
|
|
2221
|
+
arg0.uniform1f(arg1, arg2);
|
|
2222
|
+
}
|
|
2223
|
+
export function __wbg_uniform1i_5830de6702add20a(arg0, arg1, arg2) {
|
|
2224
|
+
arg0.uniform1i(arg1, arg2);
|
|
2225
|
+
}
|
|
2226
|
+
export function __wbg_uniform1i_7621f908f78177df(arg0, arg1, arg2) {
|
|
2227
|
+
arg0.uniform1i(arg1, arg2);
|
|
2228
|
+
}
|
|
2229
|
+
export function __wbg_uniform1ui_cd7ad5581093b3df(arg0, arg1, arg2) {
|
|
2230
|
+
arg0.uniform1ui(arg1, arg2 >>> 0);
|
|
2231
|
+
}
|
|
2232
|
+
export function __wbg_uniform2fv_1b43656b33177d21(arg0, arg1, arg2, arg3) {
|
|
2233
|
+
arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
2234
|
+
}
|
|
2235
|
+
export function __wbg_uniform2fv_948dab6a82b428ac(arg0, arg1, arg2, arg3) {
|
|
2236
|
+
arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
2237
|
+
}
|
|
2238
|
+
export function __wbg_uniform2iv_859048b9d60f46ae(arg0, arg1, arg2, arg3) {
|
|
2239
|
+
arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
|
|
2240
|
+
}
|
|
2241
|
+
export function __wbg_uniform2iv_f84a24961c0cfcd0(arg0, arg1, arg2, arg3) {
|
|
2242
|
+
arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
|
|
2243
|
+
}
|
|
2244
|
+
export function __wbg_uniform2uiv_8a9cb3155271213b(arg0, arg1, arg2, arg3) {
|
|
2245
|
+
arg0.uniform2uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
|
|
2246
|
+
}
|
|
2247
|
+
export function __wbg_uniform3fv_8ecb5ebb510b7bce(arg0, arg1, arg2, arg3) {
|
|
2248
|
+
arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
2249
|
+
}
|
|
2250
|
+
export function __wbg_uniform3fv_95d1933ea1440725(arg0, arg1, arg2, arg3) {
|
|
2251
|
+
arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
2252
|
+
}
|
|
2253
|
+
export function __wbg_uniform3iv_09abae5eabd6b9d6(arg0, arg1, arg2, arg3) {
|
|
2254
|
+
arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
|
|
2255
|
+
}
|
|
2256
|
+
export function __wbg_uniform3iv_a3a7008990fd84f0(arg0, arg1, arg2, arg3) {
|
|
2257
|
+
arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
|
|
2258
|
+
}
|
|
2259
|
+
export function __wbg_uniform3uiv_3c0b163732f5b8f0(arg0, arg1, arg2, arg3) {
|
|
2260
|
+
arg0.uniform3uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
|
|
2261
|
+
}
|
|
2262
|
+
export function __wbg_uniform4f_9ff60fc65b0ed726(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2263
|
+
arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
|
|
2264
|
+
}
|
|
2265
|
+
export function __wbg_uniform4f_b25e39808b830021(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2266
|
+
arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
|
|
2267
|
+
}
|
|
2268
|
+
export function __wbg_uniform4fv_4ca8c114ca3de099(arg0, arg1, arg2, arg3) {
|
|
2269
|
+
arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
2270
|
+
}
|
|
2271
|
+
export function __wbg_uniform4fv_674a247aeb15012d(arg0, arg1, arg2, arg3) {
|
|
2272
|
+
arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
2273
|
+
}
|
|
2274
|
+
export function __wbg_uniform4iv_45ab52abcb3f882c(arg0, arg1, arg2, arg3) {
|
|
2275
|
+
arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
|
|
2276
|
+
}
|
|
2277
|
+
export function __wbg_uniform4iv_d02934d7b94df609(arg0, arg1, arg2, arg3) {
|
|
2278
|
+
arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
|
|
2279
|
+
}
|
|
2280
|
+
export function __wbg_uniform4uiv_0d1a8ed214f10c31(arg0, arg1, arg2, arg3) {
|
|
2281
|
+
arg0.uniform4uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
|
|
2282
|
+
}
|
|
2283
|
+
export function __wbg_uniformBlockBinding_a9ed6b750199e03c(arg0, arg1, arg2, arg3) {
|
|
2284
|
+
arg0.uniformBlockBinding(arg1, arg2 >>> 0, arg3 >>> 0);
|
|
2285
|
+
}
|
|
2286
|
+
export function __wbg_uniformMatrix2fv_769725d64641341f(arg0, arg1, arg2, arg3, arg4) {
|
|
2287
|
+
arg0.uniformMatrix2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
2288
|
+
}
|
|
2289
|
+
export function __wbg_uniformMatrix2fv_9284424cc6aac672(arg0, arg1, arg2, arg3, arg4) {
|
|
2290
|
+
arg0.uniformMatrix2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
2291
|
+
}
|
|
2292
|
+
export function __wbg_uniformMatrix2x3fv_dba00c4fc8eefe47(arg0, arg1, arg2, arg3, arg4) {
|
|
2293
|
+
arg0.uniformMatrix2x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
2294
|
+
}
|
|
2295
|
+
export function __wbg_uniformMatrix2x4fv_d801a561c3c18169(arg0, arg1, arg2, arg3, arg4) {
|
|
2296
|
+
arg0.uniformMatrix2x4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
2297
|
+
}
|
|
2298
|
+
export function __wbg_uniformMatrix3fv_33e96c7d29dc1e22(arg0, arg1, arg2, arg3, arg4) {
|
|
2299
|
+
arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
2300
|
+
}
|
|
2301
|
+
export function __wbg_uniformMatrix3fv_568aa181379c8a75(arg0, arg1, arg2, arg3, arg4) {
|
|
2302
|
+
arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
2303
|
+
}
|
|
2304
|
+
export function __wbg_uniformMatrix3x2fv_ce43e8186ea60a1e(arg0, arg1, arg2, arg3, arg4) {
|
|
2305
|
+
arg0.uniformMatrix3x2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
2306
|
+
}
|
|
2307
|
+
export function __wbg_uniformMatrix3x4fv_8abccc5745b0dd90(arg0, arg1, arg2, arg3, arg4) {
|
|
2308
|
+
arg0.uniformMatrix3x4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
2309
|
+
}
|
|
2310
|
+
export function __wbg_uniformMatrix4fv_25115a23e04f6db7(arg0, arg1, arg2, arg3, arg4) {
|
|
2311
|
+
arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
2312
|
+
}
|
|
2313
|
+
export function __wbg_uniformMatrix4fv_423b958042692150(arg0, arg1, arg2, arg3, arg4) {
|
|
2314
|
+
arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
2315
|
+
}
|
|
2316
|
+
export function __wbg_uniformMatrix4x2fv_1ac2bf986a322e3f(arg0, arg1, arg2, arg3, arg4) {
|
|
2317
|
+
arg0.uniformMatrix4x2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
2318
|
+
}
|
|
2319
|
+
export function __wbg_uniformMatrix4x3fv_8640fa85b90ea910(arg0, arg1, arg2, arg3, arg4) {
|
|
2320
|
+
arg0.uniformMatrix4x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
2321
|
+
}
|
|
2322
|
+
export function __wbg_unmap_adaf93276fdf9aaf(arg0) {
|
|
2323
|
+
arg0.unmap();
|
|
2324
|
+
}
|
|
2325
|
+
export function __wbg_useProgram_182d120fe476921b(arg0, arg1) {
|
|
2326
|
+
arg0.useProgram(arg1);
|
|
2327
|
+
}
|
|
2328
|
+
export function __wbg_useProgram_49495850b446fa56(arg0, arg1) {
|
|
2329
|
+
arg0.useProgram(arg1);
|
|
2330
|
+
}
|
|
2331
|
+
export function __wbg_vertexAttribDivisorANGLE_978337b09d11ed84(arg0, arg1, arg2) {
|
|
2332
|
+
arg0.vertexAttribDivisorANGLE(arg1 >>> 0, arg2 >>> 0);
|
|
2333
|
+
}
|
|
2334
|
+
export function __wbg_vertexAttribDivisor_fb31b5ed9bc856da(arg0, arg1, arg2) {
|
|
2335
|
+
arg0.vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0);
|
|
2336
|
+
}
|
|
2337
|
+
export function __wbg_vertexAttribIPointer_de08a8d8b625e253(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2338
|
+
arg0.vertexAttribIPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
2339
|
+
}
|
|
2340
|
+
export function __wbg_vertexAttribPointer_a8f0af57269c2067(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
2341
|
+
arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
|
2342
|
+
}
|
|
2343
|
+
export function __wbg_vertexAttribPointer_b300c8e000cdac93(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
2344
|
+
arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
|
2345
|
+
}
|
|
2346
|
+
export function __wbg_viewport_affdf15c559df1e2(arg0, arg1, arg2, arg3, arg4) {
|
|
2347
|
+
arg0.viewport(arg1, arg2, arg3, arg4);
|
|
2348
|
+
}
|
|
2349
|
+
export function __wbg_viewport_e8a16ca4a5085e5f(arg0, arg1, arg2, arg3, arg4) {
|
|
2350
|
+
arg0.viewport(arg1, arg2, arg3, arg4);
|
|
2351
|
+
}
|
|
2352
|
+
export function __wbg_warn_b1370d804fa3e259(arg0) {
|
|
2353
|
+
console.warn(arg0);
|
|
2354
|
+
}
|
|
2355
|
+
export function __wbg_width_6d9315ecc7140ff6(arg0) {
|
|
2356
|
+
const ret = arg0.width;
|
|
2357
|
+
return ret;
|
|
2358
|
+
}
|
|
2359
|
+
export function __wbg_writeBuffer_8b5bd251a89198bc() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
2360
|
+
arg0.writeBuffer(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), arg5, arg6);
|
|
2361
|
+
}, arguments); }
|
|
2362
|
+
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
2363
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2517, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2364
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hb0b40ee7dfd77fc5);
|
|
2365
|
+
return ret;
|
|
2366
|
+
}
|
|
2367
|
+
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
2368
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 660, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2369
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h050ffcb604d90a8a);
|
|
2370
|
+
return ret;
|
|
2371
|
+
}
|
|
2372
|
+
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
2373
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 660, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2374
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h050ffcb604d90a8a_2);
|
|
2375
|
+
return ret;
|
|
2376
|
+
}
|
|
2377
|
+
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
2378
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 660, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2379
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h050ffcb604d90a8a_3);
|
|
2380
|
+
return ret;
|
|
2381
|
+
}
|
|
2382
|
+
export function __wbindgen_cast_0000000000000005(arg0) {
|
|
2383
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
2384
|
+
const ret = arg0;
|
|
2385
|
+
return ret;
|
|
2386
|
+
}
|
|
2387
|
+
export function __wbindgen_cast_0000000000000006(arg0, arg1) {
|
|
2388
|
+
// Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`.
|
|
2389
|
+
const ret = getArrayF32FromWasm0(arg0, arg1);
|
|
2390
|
+
return ret;
|
|
2391
|
+
}
|
|
2392
|
+
export function __wbindgen_cast_0000000000000007(arg0, arg1) {
|
|
2393
|
+
// Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`.
|
|
2394
|
+
const ret = getArrayI16FromWasm0(arg0, arg1);
|
|
2395
|
+
return ret;
|
|
2396
|
+
}
|
|
2397
|
+
export function __wbindgen_cast_0000000000000008(arg0, arg1) {
|
|
2398
|
+
// Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`.
|
|
2399
|
+
const ret = getArrayI32FromWasm0(arg0, arg1);
|
|
2400
|
+
return ret;
|
|
2401
|
+
}
|
|
2402
|
+
export function __wbindgen_cast_0000000000000009(arg0, arg1) {
|
|
2403
|
+
// Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`.
|
|
2404
|
+
const ret = getArrayI8FromWasm0(arg0, arg1);
|
|
2405
|
+
return ret;
|
|
2406
|
+
}
|
|
2407
|
+
export function __wbindgen_cast_000000000000000a(arg0, arg1) {
|
|
2408
|
+
// Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`.
|
|
2409
|
+
const ret = getArrayU16FromWasm0(arg0, arg1);
|
|
2410
|
+
return ret;
|
|
2411
|
+
}
|
|
2412
|
+
export function __wbindgen_cast_000000000000000b(arg0, arg1) {
|
|
2413
|
+
// Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
|
|
2414
|
+
const ret = getArrayU32FromWasm0(arg0, arg1);
|
|
2415
|
+
return ret;
|
|
2416
|
+
}
|
|
2417
|
+
export function __wbindgen_cast_000000000000000c(arg0, arg1) {
|
|
2418
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
2419
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
2420
|
+
return ret;
|
|
2421
|
+
}
|
|
2422
|
+
export function __wbindgen_cast_000000000000000d(arg0, arg1) {
|
|
2423
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
2424
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2425
|
+
return ret;
|
|
2426
|
+
}
|
|
2427
|
+
export function __wbindgen_init_externref_table() {
|
|
2428
|
+
const table = wasm.__wbindgen_externrefs;
|
|
2429
|
+
const offset = table.grow(4);
|
|
2430
|
+
table.set(0, undefined);
|
|
2431
|
+
table.set(offset + 0, undefined);
|
|
2432
|
+
table.set(offset + 1, null);
|
|
2433
|
+
table.set(offset + 2, true);
|
|
2434
|
+
table.set(offset + 3, false);
|
|
2435
|
+
}
|
|
2436
|
+
function wasm_bindgen__convert__closures_____invoke__hb0b40ee7dfd77fc5(arg0, arg1, arg2) {
|
|
2437
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hb0b40ee7dfd77fc5(arg0, arg1, arg2);
|
|
2438
|
+
if (ret[1]) {
|
|
2439
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
function wasm_bindgen__convert__closures_____invoke__h050ffcb604d90a8a(arg0, arg1, arg2) {
|
|
2444
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h050ffcb604d90a8a(arg0, arg1, arg2);
|
|
2445
|
+
if (ret[1]) {
|
|
2446
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
function wasm_bindgen__convert__closures_____invoke__h050ffcb604d90a8a_2(arg0, arg1, arg2) {
|
|
2451
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h050ffcb604d90a8a_2(arg0, arg1, arg2);
|
|
2452
|
+
if (ret[1]) {
|
|
2453
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
function wasm_bindgen__convert__closures_____invoke__h050ffcb604d90a8a_3(arg0, arg1, arg2) {
|
|
2458
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h050ffcb604d90a8a_3(arg0, arg1, arg2);
|
|
2459
|
+
if (ret[1]) {
|
|
2460
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
function wasm_bindgen__convert__closures_____invoke__h73e935f3b365ecab(arg0, arg1, arg2, arg3) {
|
|
2465
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h73e935f3b365ecab(arg0, arg1, arg2, arg3);
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
|
|
2469
|
+
const __wbindgen_enum_GpuAutoLayoutMode = ["auto"];
|
|
2470
|
+
|
|
2471
|
+
|
|
2472
|
+
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"];
|
|
2473
|
+
|
|
2474
|
+
|
|
2475
|
+
const __wbindgen_enum_GpuBlendOperation = ["add", "subtract", "reverse-subtract", "min", "max"];
|
|
2476
|
+
|
|
2477
|
+
|
|
2478
|
+
const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
|
|
2479
|
+
|
|
2480
|
+
|
|
2481
|
+
const __wbindgen_enum_GpuCanvasAlphaMode = ["opaque", "premultiplied"];
|
|
2482
|
+
|
|
2483
|
+
|
|
2484
|
+
const __wbindgen_enum_GpuCanvasToneMappingMode = ["standard", "extended"];
|
|
2485
|
+
|
|
2486
|
+
|
|
2487
|
+
const __wbindgen_enum_GpuCompareFunction = ["never", "less", "equal", "less-equal", "greater", "not-equal", "greater-equal", "always"];
|
|
2488
|
+
|
|
2489
|
+
|
|
2490
|
+
const __wbindgen_enum_GpuCullMode = ["none", "front", "back"];
|
|
2491
|
+
|
|
2492
|
+
|
|
2493
|
+
const __wbindgen_enum_GpuFrontFace = ["ccw", "cw"];
|
|
2494
|
+
|
|
2495
|
+
|
|
2496
|
+
const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
|
|
2497
|
+
|
|
2498
|
+
|
|
2499
|
+
const __wbindgen_enum_GpuLoadOp = ["load", "clear"];
|
|
2500
|
+
|
|
2501
|
+
|
|
2502
|
+
const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
|
|
2503
|
+
|
|
2504
|
+
|
|
2505
|
+
const __wbindgen_enum_GpuPrimitiveTopology = ["point-list", "line-list", "line-strip", "triangle-list", "triangle-strip"];
|
|
2506
|
+
|
|
2507
|
+
|
|
2508
|
+
const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
|
|
2509
|
+
|
|
2510
|
+
|
|
2511
|
+
const __wbindgen_enum_GpuStencilOperation = ["keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap"];
|
|
2512
|
+
|
|
2513
|
+
|
|
2514
|
+
const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
|
|
2515
|
+
|
|
2516
|
+
|
|
2517
|
+
const __wbindgen_enum_GpuStoreOp = ["store", "discard"];
|
|
2518
|
+
|
|
2519
|
+
|
|
2520
|
+
const __wbindgen_enum_GpuTextureAspect = ["all", "stencil-only", "depth-only"];
|
|
2521
|
+
|
|
2522
|
+
|
|
2523
|
+
const __wbindgen_enum_GpuTextureDimension = ["1d", "2d", "3d"];
|
|
2524
|
+
|
|
2525
|
+
|
|
2526
|
+
const __wbindgen_enum_GpuTextureFormat = ["r8unorm", "r8snorm", "r8uint", "r8sint", "r16unorm", "r16snorm", "r16uint", "r16sint", "r16float", "rg8unorm", "rg8snorm", "rg8uint", "rg8sint", "r32uint", "r32sint", "r32float", "rg16unorm", "rg16snorm", "rg16uint", "rg16sint", "rg16float", "rgba8unorm", "rgba8unorm-srgb", "rgba8snorm", "rgba8uint", "rgba8sint", "bgra8unorm", "bgra8unorm-srgb", "rgb9e5ufloat", "rgb10a2uint", "rgb10a2unorm", "rg11b10ufloat", "rg32uint", "rg32sint", "rg32float", "rgba16unorm", "rgba16snorm", "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"];
|
|
2527
|
+
|
|
2528
|
+
|
|
2529
|
+
const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "depth", "sint", "uint"];
|
|
2530
|
+
|
|
2531
|
+
|
|
2532
|
+
const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
|
|
2533
|
+
|
|
2534
|
+
|
|
2535
|
+
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"];
|
|
2536
|
+
|
|
2537
|
+
|
|
2538
|
+
const __wbindgen_enum_GpuVertexStepMode = ["vertex", "instance"];
|
|
2539
|
+
const Scene3DFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2540
|
+
? { register: () => {}, unregister: () => {} }
|
|
2541
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_scene3d_free(ptr, 1));
|
|
2542
|
+
const WasmBoardFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2543
|
+
? { register: () => {}, unregister: () => {} }
|
|
2544
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmboard_free(ptr, 1));
|
|
2545
|
+
|
|
2546
|
+
function addToExternrefTable0(obj) {
|
|
2547
|
+
const idx = wasm.__externref_table_alloc();
|
|
2548
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
2549
|
+
return idx;
|
|
2550
|
+
}
|
|
2551
|
+
|
|
2552
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
2553
|
+
? { register: () => {}, unregister: () => {} }
|
|
2554
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
2555
|
+
|
|
2556
|
+
function debugString(val) {
|
|
2557
|
+
// primitive types
|
|
2558
|
+
const type = typeof val;
|
|
2559
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
2560
|
+
return `${val}`;
|
|
2561
|
+
}
|
|
2562
|
+
if (type == 'string') {
|
|
2563
|
+
return `"${val}"`;
|
|
2564
|
+
}
|
|
2565
|
+
if (type == 'symbol') {
|
|
2566
|
+
const description = val.description;
|
|
2567
|
+
if (description == null) {
|
|
2568
|
+
return 'Symbol';
|
|
2569
|
+
} else {
|
|
2570
|
+
return `Symbol(${description})`;
|
|
2571
|
+
}
|
|
2572
|
+
}
|
|
2573
|
+
if (type == 'function') {
|
|
2574
|
+
const name = val.name;
|
|
2575
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
2576
|
+
return `Function(${name})`;
|
|
2577
|
+
} else {
|
|
2578
|
+
return 'Function';
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
// objects
|
|
2582
|
+
if (Array.isArray(val)) {
|
|
2583
|
+
const length = val.length;
|
|
2584
|
+
let debug = '[';
|
|
2585
|
+
if (length > 0) {
|
|
2586
|
+
debug += debugString(val[0]);
|
|
2587
|
+
}
|
|
2588
|
+
for(let i = 1; i < length; i++) {
|
|
2589
|
+
debug += ', ' + debugString(val[i]);
|
|
2590
|
+
}
|
|
2591
|
+
debug += ']';
|
|
2592
|
+
return debug;
|
|
2593
|
+
}
|
|
2594
|
+
// Test for built-in
|
|
2595
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
2596
|
+
let className;
|
|
2597
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
2598
|
+
className = builtInMatches[1];
|
|
2599
|
+
} else {
|
|
2600
|
+
// Failed to match the standard '[object ClassName]'
|
|
2601
|
+
return toString.call(val);
|
|
2602
|
+
}
|
|
2603
|
+
if (className == 'Object') {
|
|
2604
|
+
// we're a user defined class or Object
|
|
2605
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
2606
|
+
// easier than looping through ownProperties of `val`.
|
|
2607
|
+
try {
|
|
2608
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
2609
|
+
} catch (_) {
|
|
2610
|
+
return 'Object';
|
|
2611
|
+
}
|
|
2612
|
+
}
|
|
2613
|
+
// errors
|
|
2614
|
+
if (val instanceof Error) {
|
|
2615
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
2616
|
+
}
|
|
2617
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
2618
|
+
return className;
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
function getArrayF32FromWasm0(ptr, len) {
|
|
2622
|
+
ptr = ptr >>> 0;
|
|
2623
|
+
return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
2624
|
+
}
|
|
2625
|
+
|
|
2626
|
+
function getArrayI16FromWasm0(ptr, len) {
|
|
2627
|
+
ptr = ptr >>> 0;
|
|
2628
|
+
return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
function getArrayI32FromWasm0(ptr, len) {
|
|
2632
|
+
ptr = ptr >>> 0;
|
|
2633
|
+
return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
function getArrayI8FromWasm0(ptr, len) {
|
|
2637
|
+
ptr = ptr >>> 0;
|
|
2638
|
+
return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
function getArrayJsValueViewFromWasm0(ptr, len) {
|
|
2642
|
+
ptr = ptr >>> 0;
|
|
2643
|
+
const mem = getDataViewMemory0();
|
|
2644
|
+
const result = [];
|
|
2645
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
2646
|
+
result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
2647
|
+
}
|
|
2648
|
+
return result;
|
|
2649
|
+
}
|
|
2650
|
+
|
|
2651
|
+
function getArrayU16FromWasm0(ptr, len) {
|
|
2652
|
+
ptr = ptr >>> 0;
|
|
2653
|
+
return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
2657
|
+
ptr = ptr >>> 0;
|
|
2658
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
2662
|
+
ptr = ptr >>> 0;
|
|
2663
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
2664
|
+
}
|
|
2665
|
+
|
|
2666
|
+
let cachedDataViewMemory0 = null;
|
|
2667
|
+
function getDataViewMemory0() {
|
|
2668
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
2669
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
2670
|
+
}
|
|
2671
|
+
return cachedDataViewMemory0;
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
let cachedFloat32ArrayMemory0 = null;
|
|
2675
|
+
function getFloat32ArrayMemory0() {
|
|
2676
|
+
if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
|
|
2677
|
+
cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
|
|
2678
|
+
}
|
|
2679
|
+
return cachedFloat32ArrayMemory0;
|
|
2680
|
+
}
|
|
2681
|
+
|
|
2682
|
+
let cachedInt16ArrayMemory0 = null;
|
|
2683
|
+
function getInt16ArrayMemory0() {
|
|
2684
|
+
if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) {
|
|
2685
|
+
cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer);
|
|
2686
|
+
}
|
|
2687
|
+
return cachedInt16ArrayMemory0;
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
let cachedInt32ArrayMemory0 = null;
|
|
2691
|
+
function getInt32ArrayMemory0() {
|
|
2692
|
+
if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
|
|
2693
|
+
cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
|
|
2694
|
+
}
|
|
2695
|
+
return cachedInt32ArrayMemory0;
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
let cachedInt8ArrayMemory0 = null;
|
|
2699
|
+
function getInt8ArrayMemory0() {
|
|
2700
|
+
if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) {
|
|
2701
|
+
cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer);
|
|
2702
|
+
}
|
|
2703
|
+
return cachedInt8ArrayMemory0;
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
function getStringFromWasm0(ptr, len) {
|
|
2707
|
+
return decodeText(ptr >>> 0, len);
|
|
2708
|
+
}
|
|
2709
|
+
|
|
2710
|
+
let cachedUint16ArrayMemory0 = null;
|
|
2711
|
+
function getUint16ArrayMemory0() {
|
|
2712
|
+
if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
|
|
2713
|
+
cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
|
|
2714
|
+
}
|
|
2715
|
+
return cachedUint16ArrayMemory0;
|
|
2716
|
+
}
|
|
2717
|
+
|
|
2718
|
+
let cachedUint32ArrayMemory0 = null;
|
|
2719
|
+
function getUint32ArrayMemory0() {
|
|
2720
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
2721
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
2722
|
+
}
|
|
2723
|
+
return cachedUint32ArrayMemory0;
|
|
2724
|
+
}
|
|
2725
|
+
|
|
2726
|
+
let cachedUint8ArrayMemory0 = null;
|
|
2727
|
+
function getUint8ArrayMemory0() {
|
|
2728
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
2729
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
2730
|
+
}
|
|
2731
|
+
return cachedUint8ArrayMemory0;
|
|
2732
|
+
}
|
|
2733
|
+
|
|
2734
|
+
function handleError(f, args) {
|
|
2735
|
+
try {
|
|
2736
|
+
return f.apply(this, args);
|
|
2737
|
+
} catch (e) {
|
|
2738
|
+
const idx = addToExternrefTable0(e);
|
|
2739
|
+
wasm.__wbindgen_exn_store(idx);
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2742
|
+
|
|
2743
|
+
function isLikeNone(x) {
|
|
2744
|
+
return x === undefined || x === null;
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
2748
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
2749
|
+
const real = (...args) => {
|
|
2750
|
+
|
|
2751
|
+
// First up with a closure we increment the internal reference
|
|
2752
|
+
// count. This ensures that the Rust closure environment won't
|
|
2753
|
+
// be deallocated while we're invoking it.
|
|
2754
|
+
state.cnt++;
|
|
2755
|
+
const a = state.a;
|
|
2756
|
+
state.a = 0;
|
|
2757
|
+
try {
|
|
2758
|
+
return f(a, state.b, ...args);
|
|
2759
|
+
} finally {
|
|
2760
|
+
state.a = a;
|
|
2761
|
+
real._wbg_cb_unref();
|
|
2762
|
+
}
|
|
2763
|
+
};
|
|
2764
|
+
real._wbg_cb_unref = () => {
|
|
2765
|
+
if (--state.cnt === 0) {
|
|
2766
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
2767
|
+
state.a = 0;
|
|
2768
|
+
CLOSURE_DTORS.unregister(state);
|
|
2769
|
+
}
|
|
2770
|
+
};
|
|
2771
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
2772
|
+
return real;
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2775
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
2776
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
2777
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
2778
|
+
WASM_VECTOR_LEN = arg.length;
|
|
2779
|
+
return ptr;
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
2783
|
+
if (realloc === undefined) {
|
|
2784
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
2785
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
2786
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
2787
|
+
WASM_VECTOR_LEN = buf.length;
|
|
2788
|
+
return ptr;
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2791
|
+
let len = arg.length;
|
|
2792
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
2793
|
+
|
|
2794
|
+
const mem = getUint8ArrayMemory0();
|
|
2795
|
+
|
|
2796
|
+
let offset = 0;
|
|
2797
|
+
|
|
2798
|
+
for (; offset < len; offset++) {
|
|
2799
|
+
const code = arg.charCodeAt(offset);
|
|
2800
|
+
if (code > 0x7F) break;
|
|
2801
|
+
mem[ptr + offset] = code;
|
|
2802
|
+
}
|
|
2803
|
+
if (offset !== len) {
|
|
2804
|
+
if (offset !== 0) {
|
|
2805
|
+
arg = arg.slice(offset);
|
|
2806
|
+
}
|
|
2807
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
2808
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
2809
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
2810
|
+
|
|
2811
|
+
offset += ret.written;
|
|
2812
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
WASM_VECTOR_LEN = offset;
|
|
2816
|
+
return ptr;
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2819
|
+
function takeFromExternrefTable0(idx) {
|
|
2820
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
2821
|
+
wasm.__externref_table_dealloc(idx);
|
|
2822
|
+
return value;
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2826
|
+
cachedTextDecoder.decode();
|
|
2827
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
2828
|
+
let numBytesDecoded = 0;
|
|
2829
|
+
function decodeText(ptr, len) {
|
|
2830
|
+
numBytesDecoded += len;
|
|
2831
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
2832
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2833
|
+
cachedTextDecoder.decode();
|
|
2834
|
+
numBytesDecoded = len;
|
|
2835
|
+
}
|
|
2836
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
const cachedTextEncoder = new TextEncoder();
|
|
2840
|
+
|
|
2841
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
2842
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
2843
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
2844
|
+
view.set(buf);
|
|
2845
|
+
return {
|
|
2846
|
+
read: arg.length,
|
|
2847
|
+
written: buf.length
|
|
2848
|
+
};
|
|
2849
|
+
};
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
let WASM_VECTOR_LEN = 0;
|
|
2853
|
+
|
|
2854
|
+
|
|
2855
|
+
let wasm;
|
|
2856
|
+
export function __wbg_set_wasm(val) {
|
|
2857
|
+
wasm = val;
|
|
2858
|
+
}
|