@galfus/transport-browser 0.0.0-stage → 0.31.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -2
- package/dist/galfus_browser.d.ts +594 -0
- package/dist/galfus_browser.js +4304 -0
- package/dist/galfus_browser_bg.wasm +0 -0
- package/dist/galfus_browser_bg.wasm.d.ts +308 -0
- package/package.json +38 -4
- package/src/index.ts +179 -0
|
@@ -0,0 +1,4304 @@
|
|
|
1
|
+
/* @ts-self-types="./galfus_browser.d.ts" */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @param {number} path_id
|
|
5
|
+
* @param {any} target_val
|
|
6
|
+
*/
|
|
7
|
+
export function animationBindPathFollowTarget(path_id, target_val) {
|
|
8
|
+
try {
|
|
9
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
10
|
+
wasm.animationBindPathFollowTarget(retptr, path_id, target_val);
|
|
11
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
13
|
+
if (r1) {
|
|
14
|
+
throw takeFromExternrefTable0(r0);
|
|
15
|
+
}
|
|
16
|
+
} finally {
|
|
17
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @param {number} transition_id
|
|
23
|
+
* @param {any} target_val
|
|
24
|
+
*/
|
|
25
|
+
export function animationBindTarget(transition_id, target_val) {
|
|
26
|
+
try {
|
|
27
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
28
|
+
wasm.animationBindTarget(retptr, transition_id, target_val);
|
|
29
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
30
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
31
|
+
if (r1) {
|
|
32
|
+
throw takeFromExternrefTable0(r0);
|
|
33
|
+
}
|
|
34
|
+
} finally {
|
|
35
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @param {number} path_id
|
|
41
|
+
* @param {any} commands_val
|
|
42
|
+
* @param {any | null} [config_val]
|
|
43
|
+
*/
|
|
44
|
+
export function animationCreatePathFollow(path_id, commands_val, config_val) {
|
|
45
|
+
try {
|
|
46
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
47
|
+
const val1 = +path_id;
|
|
48
|
+
wasm.animationCreatePathFollow(retptr, val1, commands_val, isLikeNone(config_val) ? 0 : addToExternrefTable0(config_val));
|
|
49
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
50
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
51
|
+
if (r1) {
|
|
52
|
+
throw takeFromExternrefTable0(r0);
|
|
53
|
+
}
|
|
54
|
+
} finally {
|
|
55
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @param {number} transition_id
|
|
61
|
+
* @param {number} initial_scalar
|
|
62
|
+
* @param {number} duration
|
|
63
|
+
* @param {number} delay
|
|
64
|
+
* @param {number} easing_id
|
|
65
|
+
*/
|
|
66
|
+
export function animationCreateScalarTransition(transition_id, initial_scalar, duration, delay, easing_id) {
|
|
67
|
+
try {
|
|
68
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
69
|
+
wasm.animationCreateScalarTransition(retptr, transition_id, initial_scalar, duration, delay, easing_id);
|
|
70
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
71
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
72
|
+
if (r1) {
|
|
73
|
+
throw takeFromExternrefTable0(r0);
|
|
74
|
+
}
|
|
75
|
+
} finally {
|
|
76
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @param {number} transition_id
|
|
82
|
+
* @param {any} initial_value_val
|
|
83
|
+
* @param {any | null} [config_val]
|
|
84
|
+
*/
|
|
85
|
+
export function animationCreateTransition(transition_id, initial_value_val, config_val) {
|
|
86
|
+
try {
|
|
87
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
88
|
+
const val1 = +transition_id;
|
|
89
|
+
wasm.animationCreateTransition(retptr, val1, initial_value_val, isLikeNone(config_val) ? 0 : addToExternrefTable0(config_val));
|
|
90
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
91
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
92
|
+
if (r1) {
|
|
93
|
+
throw takeFromExternrefTable0(r0);
|
|
94
|
+
}
|
|
95
|
+
} finally {
|
|
96
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @param {number} path_id
|
|
102
|
+
*/
|
|
103
|
+
export function animationDestroyPathFollow(path_id) {
|
|
104
|
+
try {
|
|
105
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
106
|
+
wasm.animationDestroyPathFollow(retptr, path_id);
|
|
107
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
108
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
109
|
+
if (r1) {
|
|
110
|
+
throw takeFromExternrefTable0(r0);
|
|
111
|
+
}
|
|
112
|
+
} finally {
|
|
113
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @param {number} transition_id
|
|
119
|
+
*/
|
|
120
|
+
export function animationDestroyTransition(transition_id) {
|
|
121
|
+
try {
|
|
122
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
123
|
+
wasm.animationDestroyTransition(retptr, transition_id);
|
|
124
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
125
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
126
|
+
if (r1) {
|
|
127
|
+
throw takeFromExternrefTable0(r0);
|
|
128
|
+
}
|
|
129
|
+
} finally {
|
|
130
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @param {number} channel_id
|
|
136
|
+
* @returns {any}
|
|
137
|
+
*/
|
|
138
|
+
export function animationGetCustomChannel(channel_id) {
|
|
139
|
+
try {
|
|
140
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
141
|
+
wasm.animationGetCustomChannel(retptr, channel_id);
|
|
142
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
143
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
144
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
145
|
+
if (r2) {
|
|
146
|
+
throw takeFromExternrefTable0(r1);
|
|
147
|
+
}
|
|
148
|
+
return takeFromExternrefTable0(r0);
|
|
149
|
+
} finally {
|
|
150
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @param {number} path_id
|
|
156
|
+
* @returns {any}
|
|
157
|
+
*/
|
|
158
|
+
export function animationGetPathFollowState(path_id) {
|
|
159
|
+
try {
|
|
160
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
161
|
+
wasm.animationGetPathFollowState(retptr, path_id);
|
|
162
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
163
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
164
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
165
|
+
if (r2) {
|
|
166
|
+
throw takeFromExternrefTable0(r1);
|
|
167
|
+
}
|
|
168
|
+
return takeFromExternrefTable0(r0);
|
|
169
|
+
} finally {
|
|
170
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @param {number} transition_id
|
|
176
|
+
* @returns {any}
|
|
177
|
+
*/
|
|
178
|
+
export function animationGetState(transition_id) {
|
|
179
|
+
try {
|
|
180
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
181
|
+
wasm.animationGetState(retptr, transition_id);
|
|
182
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
183
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
184
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
185
|
+
if (r2) {
|
|
186
|
+
throw takeFromExternrefTable0(r1);
|
|
187
|
+
}
|
|
188
|
+
return takeFromExternrefTable0(r0);
|
|
189
|
+
} finally {
|
|
190
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @param {number} transition_id
|
|
196
|
+
* @returns {any}
|
|
197
|
+
*/
|
|
198
|
+
export function animationGetValue(transition_id) {
|
|
199
|
+
try {
|
|
200
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
201
|
+
wasm.animationGetValue(retptr, transition_id);
|
|
202
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
203
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
204
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
205
|
+
if (r2) {
|
|
206
|
+
throw takeFromExternrefTable0(r1);
|
|
207
|
+
}
|
|
208
|
+
return takeFromExternrefTable0(r0);
|
|
209
|
+
} finally {
|
|
210
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* @returns {any}
|
|
216
|
+
*/
|
|
217
|
+
export function animationPumpEvents() {
|
|
218
|
+
try {
|
|
219
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
220
|
+
wasm.animationPumpEvents(retptr);
|
|
221
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
222
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
223
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
224
|
+
if (r2) {
|
|
225
|
+
throw takeFromExternrefTable0(r1);
|
|
226
|
+
}
|
|
227
|
+
return takeFromExternrefTable0(r0);
|
|
228
|
+
} finally {
|
|
229
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* @param {number} channel_id
|
|
235
|
+
* @param {any} value_val
|
|
236
|
+
*/
|
|
237
|
+
export function animationSetCustomChannel(channel_id, value_val) {
|
|
238
|
+
try {
|
|
239
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
240
|
+
wasm.animationSetCustomChannel(retptr, channel_id, value_val);
|
|
241
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
242
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
243
|
+
if (r1) {
|
|
244
|
+
throw takeFromExternrefTable0(r0);
|
|
245
|
+
}
|
|
246
|
+
} finally {
|
|
247
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @param {number} dt
|
|
253
|
+
*/
|
|
254
|
+
export function animationStep(dt) {
|
|
255
|
+
try {
|
|
256
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
257
|
+
wasm.animationStep(retptr, dt);
|
|
258
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
259
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
260
|
+
if (r1) {
|
|
261
|
+
throw takeFromExternrefTable0(r0);
|
|
262
|
+
}
|
|
263
|
+
} finally {
|
|
264
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* @param {number} transition_id
|
|
270
|
+
* @param {any} target_value_val
|
|
271
|
+
* @param {any | null} [config_val]
|
|
272
|
+
*/
|
|
273
|
+
export function animationTransitionTo(transition_id, target_value_val, config_val) {
|
|
274
|
+
try {
|
|
275
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
276
|
+
const val1 = +transition_id;
|
|
277
|
+
wasm.animationTransitionTo(retptr, val1, target_value_val, isLikeNone(config_val) ? 0 : addToExternrefTable0(config_val));
|
|
278
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
279
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
280
|
+
if (r1) {
|
|
281
|
+
throw takeFromExternrefTable0(r0);
|
|
282
|
+
}
|
|
283
|
+
} finally {
|
|
284
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* @param {number} transition_id
|
|
290
|
+
* @param {number} target_scalar
|
|
291
|
+
* @param {number} duration
|
|
292
|
+
* @param {number} delay
|
|
293
|
+
* @param {number} easing_id
|
|
294
|
+
*/
|
|
295
|
+
export function animationTransitionToScalar(transition_id, target_scalar, duration, delay, easing_id) {
|
|
296
|
+
try {
|
|
297
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
298
|
+
wasm.animationTransitionToScalar(retptr, transition_id, target_scalar, duration, delay, easing_id);
|
|
299
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
300
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
301
|
+
if (r1) {
|
|
302
|
+
throw takeFromExternrefTable0(r0);
|
|
303
|
+
}
|
|
304
|
+
} finally {
|
|
305
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* @param {number} transition_id
|
|
311
|
+
* @param {Float32Array | number[]} floats
|
|
312
|
+
* @param {number} duration
|
|
313
|
+
* @param {number} delay
|
|
314
|
+
* @param {number} easing_id
|
|
315
|
+
*/
|
|
316
|
+
export function animationTransitionToTransform2d(transition_id, floats, duration, delay, easing_id) {
|
|
317
|
+
try {
|
|
318
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
319
|
+
const val2 = +transition_id;
|
|
320
|
+
const val3 = +duration;
|
|
321
|
+
const val4 = +delay;
|
|
322
|
+
const val5 = +easing_id;
|
|
323
|
+
const ptr0 = passArrayF32ToWasm0(floats, wasm.__wbindgen_export);
|
|
324
|
+
const len0 = WASM_VECTOR_LEN;
|
|
325
|
+
wasm.animationTransitionToTransform2d(retptr, val2, ptr0, len0, val3, val4, val5);
|
|
326
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
327
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
328
|
+
if (r1) {
|
|
329
|
+
throw takeFromExternrefTable0(r0);
|
|
330
|
+
}
|
|
331
|
+
} finally {
|
|
332
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* @param {number} transition_id
|
|
338
|
+
* @param {Float32Array | number[]} floats
|
|
339
|
+
* @param {number} duration
|
|
340
|
+
* @param {number} delay
|
|
341
|
+
* @param {number} easing_id
|
|
342
|
+
*/
|
|
343
|
+
export function animationTransitionToTransform3d(transition_id, floats, duration, delay, easing_id) {
|
|
344
|
+
try {
|
|
345
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
346
|
+
const val2 = +transition_id;
|
|
347
|
+
const val3 = +duration;
|
|
348
|
+
const val4 = +delay;
|
|
349
|
+
const val5 = +easing_id;
|
|
350
|
+
const ptr0 = passArrayF32ToWasm0(floats, wasm.__wbindgen_export);
|
|
351
|
+
const len0 = WASM_VECTOR_LEN;
|
|
352
|
+
wasm.animationTransitionToTransform3d(retptr, val2, ptr0, len0, val3, val4, val5);
|
|
353
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
354
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
355
|
+
if (r1) {
|
|
356
|
+
throw takeFromExternrefTable0(r0);
|
|
357
|
+
}
|
|
358
|
+
} finally {
|
|
359
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* @param {number} path_id
|
|
365
|
+
*/
|
|
366
|
+
export function animationUnbindPathFollowTarget(path_id) {
|
|
367
|
+
try {
|
|
368
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
369
|
+
wasm.animationUnbindPathFollowTarget(retptr, path_id);
|
|
370
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
371
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
372
|
+
if (r1) {
|
|
373
|
+
throw takeFromExternrefTable0(r0);
|
|
374
|
+
}
|
|
375
|
+
} finally {
|
|
376
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* @param {number} sound_id
|
|
382
|
+
* @param {Uint8Array | number[]} data
|
|
383
|
+
* @param {number | null} [_data_len]
|
|
384
|
+
*/
|
|
385
|
+
export function audioLoadSound(sound_id, data, _data_len) {
|
|
386
|
+
try {
|
|
387
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
388
|
+
const val2 = +sound_id;
|
|
389
|
+
const val3 = +(isLikeNone(_data_len) ? 0 : _data_len);
|
|
390
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export);
|
|
391
|
+
const len0 = WASM_VECTOR_LEN;
|
|
392
|
+
wasm.audioLoadSound(retptr, val2, ptr0, len0, !isLikeNone(_data_len), val3);
|
|
393
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
394
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
395
|
+
if (r1) {
|
|
396
|
+
throw takeFromExternrefTable0(r0);
|
|
397
|
+
}
|
|
398
|
+
} finally {
|
|
399
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* @param {number} voice_id
|
|
405
|
+
*/
|
|
406
|
+
export function audioPauseSound(voice_id) {
|
|
407
|
+
try {
|
|
408
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
409
|
+
wasm.audioPauseSound(retptr, voice_id);
|
|
410
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
411
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
412
|
+
if (r1) {
|
|
413
|
+
throw takeFromExternrefTable0(r0);
|
|
414
|
+
}
|
|
415
|
+
} finally {
|
|
416
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* @param {number} sound_id
|
|
422
|
+
* @param {number} volume
|
|
423
|
+
* @param {number} panning
|
|
424
|
+
* @param {number} speed
|
|
425
|
+
* @param {boolean} looping
|
|
426
|
+
* @returns {number}
|
|
427
|
+
*/
|
|
428
|
+
export function audioPlaySound(sound_id, volume, panning, speed, looping) {
|
|
429
|
+
try {
|
|
430
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
431
|
+
wasm.audioPlaySound(retptr, sound_id, volume, panning, speed, looping);
|
|
432
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
433
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
434
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
435
|
+
if (r2) {
|
|
436
|
+
throw takeFromExternrefTable0(r1);
|
|
437
|
+
}
|
|
438
|
+
return r0 >>> 0;
|
|
439
|
+
} finally {
|
|
440
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* @param {number} sound_id
|
|
446
|
+
* @param {any} emitter_val
|
|
447
|
+
* @param {any} listener_val
|
|
448
|
+
* @param {any} config_val
|
|
449
|
+
* @returns {number}
|
|
450
|
+
*/
|
|
451
|
+
export function audioPlaySoundSpatial(sound_id, emitter_val, listener_val, config_val) {
|
|
452
|
+
try {
|
|
453
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
454
|
+
wasm.audioPlaySoundSpatial(retptr, sound_id, emitter_val, listener_val, config_val);
|
|
455
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
456
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
457
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
458
|
+
if (r2) {
|
|
459
|
+
throw takeFromExternrefTable0(r1);
|
|
460
|
+
}
|
|
461
|
+
return r0 >>> 0;
|
|
462
|
+
} finally {
|
|
463
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* @param {number} voice_id
|
|
469
|
+
*/
|
|
470
|
+
export function audioResumeSound(voice_id) {
|
|
471
|
+
try {
|
|
472
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
473
|
+
wasm.audioResumeSound(retptr, voice_id);
|
|
474
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
475
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
476
|
+
if (r1) {
|
|
477
|
+
throw takeFromExternrefTable0(r0);
|
|
478
|
+
}
|
|
479
|
+
} finally {
|
|
480
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* @param {number} voice_id
|
|
486
|
+
* @param {number} panning
|
|
487
|
+
*/
|
|
488
|
+
export function audioSetPanning(voice_id, panning) {
|
|
489
|
+
try {
|
|
490
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
491
|
+
wasm.audioSetPanning(retptr, voice_id, panning);
|
|
492
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
493
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
494
|
+
if (r1) {
|
|
495
|
+
throw takeFromExternrefTable0(r0);
|
|
496
|
+
}
|
|
497
|
+
} finally {
|
|
498
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* @param {number} voice_id
|
|
504
|
+
* @param {number} volume
|
|
505
|
+
*/
|
|
506
|
+
export function audioSetVolume(voice_id, volume) {
|
|
507
|
+
try {
|
|
508
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
509
|
+
wasm.audioSetVolume(retptr, voice_id, volume);
|
|
510
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
511
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
512
|
+
if (r1) {
|
|
513
|
+
throw takeFromExternrefTable0(r0);
|
|
514
|
+
}
|
|
515
|
+
} finally {
|
|
516
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* @param {number} voice_id
|
|
522
|
+
*/
|
|
523
|
+
export function audioStopSound(voice_id) {
|
|
524
|
+
try {
|
|
525
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
526
|
+
wasm.audioStopSound(retptr, voice_id);
|
|
527
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
528
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
529
|
+
if (r1) {
|
|
530
|
+
throw takeFromExternrefTable0(r0);
|
|
531
|
+
}
|
|
532
|
+
} finally {
|
|
533
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* @param {number} sound_id
|
|
539
|
+
*/
|
|
540
|
+
export function audioUnloadSound(sound_id) {
|
|
541
|
+
try {
|
|
542
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
543
|
+
wasm.audioUnloadSound(retptr, sound_id);
|
|
544
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
545
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
546
|
+
if (r1) {
|
|
547
|
+
throw takeFromExternrefTable0(r0);
|
|
548
|
+
}
|
|
549
|
+
} finally {
|
|
550
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* @param {number} voice_id
|
|
556
|
+
* @param {any} emitter_val
|
|
557
|
+
* @param {any} listener_val
|
|
558
|
+
* @param {any} config_val
|
|
559
|
+
*/
|
|
560
|
+
export function audioUpdateSoundSpatial(voice_id, emitter_val, listener_val, config_val) {
|
|
561
|
+
try {
|
|
562
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
563
|
+
wasm.audioUpdateSoundSpatial(retptr, voice_id, emitter_val, listener_val, config_val);
|
|
564
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
565
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
566
|
+
if (r1) {
|
|
567
|
+
throw takeFromExternrefTable0(r0);
|
|
568
|
+
}
|
|
569
|
+
} finally {
|
|
570
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* @returns {any}
|
|
576
|
+
*/
|
|
577
|
+
export function gamepadGetConnected() {
|
|
578
|
+
try {
|
|
579
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
580
|
+
wasm.gamepadGetConnected(retptr);
|
|
581
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
582
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
583
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
584
|
+
if (r2) {
|
|
585
|
+
throw takeFromExternrefTable0(r1);
|
|
586
|
+
}
|
|
587
|
+
return takeFromExternrefTable0(r0);
|
|
588
|
+
} finally {
|
|
589
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* @param {number} gamepad_id
|
|
595
|
+
* @param {number} strong_magnitude
|
|
596
|
+
* @param {number} weak_magnitude
|
|
597
|
+
* @param {number} duration_ms
|
|
598
|
+
*/
|
|
599
|
+
export function gamepadSetRumble(gamepad_id, strong_magnitude, weak_magnitude, duration_ms) {
|
|
600
|
+
try {
|
|
601
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
602
|
+
wasm.gamepadSetRumble(retptr, gamepad_id, strong_magnitude, weak_magnitude, duration_ms);
|
|
603
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
604
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
605
|
+
if (r1) {
|
|
606
|
+
throw takeFromExternrefTable0(r0);
|
|
607
|
+
}
|
|
608
|
+
} finally {
|
|
609
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Attaches a browser canvas window to the Multiverse, initializing WebGPU/WebGL asynchronously.
|
|
615
|
+
* @param {number} window_id
|
|
616
|
+
* @returns {Promise<void>}
|
|
617
|
+
*/
|
|
618
|
+
export function multiverseAttachWindow(window_id) {
|
|
619
|
+
const ret = wasm.multiverseAttachWindow(window_id);
|
|
620
|
+
return ret;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* @param {any} binding_val
|
|
625
|
+
*/
|
|
626
|
+
export function multiverseBindTargetTexture(binding_val) {
|
|
627
|
+
try {
|
|
628
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
629
|
+
wasm.multiverseBindTargetTexture(retptr, binding_val);
|
|
630
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
631
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
632
|
+
if (r1) {
|
|
633
|
+
throw takeFromExternrefTable0(r0);
|
|
634
|
+
}
|
|
635
|
+
} finally {
|
|
636
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* @param {number} invocation_id
|
|
642
|
+
* @param {any} desc_val
|
|
643
|
+
*/
|
|
644
|
+
export function multiverseCreateInvocation(invocation_id, desc_val) {
|
|
645
|
+
try {
|
|
646
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
647
|
+
wasm.multiverseCreateInvocation(retptr, invocation_id, desc_val);
|
|
648
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
649
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
650
|
+
if (r1) {
|
|
651
|
+
throw takeFromExternrefTable0(r0);
|
|
652
|
+
}
|
|
653
|
+
} finally {
|
|
654
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* @param {number} target_id
|
|
660
|
+
* @param {any} desc_val
|
|
661
|
+
*/
|
|
662
|
+
export function multiverseCreateTarget(target_id, desc_val) {
|
|
663
|
+
try {
|
|
664
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
665
|
+
wasm.multiverseCreateTarget(retptr, target_id, desc_val);
|
|
666
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
667
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
668
|
+
if (r1) {
|
|
669
|
+
throw takeFromExternrefTable0(r0);
|
|
670
|
+
}
|
|
671
|
+
} finally {
|
|
672
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* @param {number} invocation_id
|
|
678
|
+
*/
|
|
679
|
+
export function multiverseDestroyInvocation(invocation_id) {
|
|
680
|
+
try {
|
|
681
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
682
|
+
wasm.multiverseDestroyInvocation(retptr, invocation_id);
|
|
683
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
684
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
685
|
+
if (r1) {
|
|
686
|
+
throw takeFromExternrefTable0(r0);
|
|
687
|
+
}
|
|
688
|
+
} finally {
|
|
689
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* @param {number} target_id
|
|
695
|
+
*/
|
|
696
|
+
export function multiverseDestroyTarget(target_id) {
|
|
697
|
+
try {
|
|
698
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
699
|
+
wasm.multiverseDestroyTarget(retptr, target_id);
|
|
700
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
701
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
702
|
+
if (r1) {
|
|
703
|
+
throw takeFromExternrefTable0(r0);
|
|
704
|
+
}
|
|
705
|
+
} finally {
|
|
706
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* @param {number} frame_id
|
|
712
|
+
* @param {number} delta_time
|
|
713
|
+
*/
|
|
714
|
+
export function multiverseDispatch(frame_id, delta_time) {
|
|
715
|
+
try {
|
|
716
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
717
|
+
wasm.multiverseDispatch(retptr, frame_id, delta_time);
|
|
718
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
719
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
720
|
+
if (r1) {
|
|
721
|
+
throw takeFromExternrefTable0(r0);
|
|
722
|
+
}
|
|
723
|
+
} finally {
|
|
724
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* @returns {string}
|
|
730
|
+
*/
|
|
731
|
+
export function multiverseGetAntiAliasing() {
|
|
732
|
+
let deferred2_0;
|
|
733
|
+
let deferred2_1;
|
|
734
|
+
try {
|
|
735
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
736
|
+
wasm.multiverseGetAntiAliasing(retptr);
|
|
737
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
738
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
739
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
740
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
741
|
+
var ptr1 = r0;
|
|
742
|
+
var len1 = r1;
|
|
743
|
+
if (r3) {
|
|
744
|
+
ptr1 = 0; len1 = 0;
|
|
745
|
+
throw takeFromExternrefTable0(r2);
|
|
746
|
+
}
|
|
747
|
+
deferred2_0 = ptr1;
|
|
748
|
+
deferred2_1 = len1;
|
|
749
|
+
return getStringFromWasm0(ptr1, len1);
|
|
750
|
+
} finally {
|
|
751
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
752
|
+
wasm.__wbindgen_export3(deferred2_0, deferred2_1, 1);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* @param {number} realm_id
|
|
758
|
+
* @param {number} r
|
|
759
|
+
* @param {number} g
|
|
760
|
+
* @param {number} b
|
|
761
|
+
* @param {number} a
|
|
762
|
+
*/
|
|
763
|
+
export function multiverseRegisterColorRealm(realm_id, r, g, b, a) {
|
|
764
|
+
try {
|
|
765
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
766
|
+
wasm.multiverseRegisterColorRealm(retptr, realm_id, r, g, b, a);
|
|
767
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
768
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
769
|
+
if (r1) {
|
|
770
|
+
throw takeFromExternrefTable0(r0);
|
|
771
|
+
}
|
|
772
|
+
} finally {
|
|
773
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* @param {number} shader_id
|
|
779
|
+
* @param {string} source
|
|
780
|
+
*/
|
|
781
|
+
export function multiverseRegisterShader(shader_id, source) {
|
|
782
|
+
try {
|
|
783
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
784
|
+
const val2 = +shader_id;
|
|
785
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
786
|
+
const len0 = WASM_VECTOR_LEN;
|
|
787
|
+
wasm.multiverseRegisterShader(retptr, val2, ptr0, len0);
|
|
788
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
789
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
790
|
+
if (r1) {
|
|
791
|
+
throw takeFromExternrefTable0(r0);
|
|
792
|
+
}
|
|
793
|
+
} finally {
|
|
794
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* @returns {any}
|
|
800
|
+
*/
|
|
801
|
+
export function multiverseResolve() {
|
|
802
|
+
try {
|
|
803
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
804
|
+
wasm.multiverseResolve(retptr);
|
|
805
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
806
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
807
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
808
|
+
if (r2) {
|
|
809
|
+
throw takeFromExternrefTable0(r1);
|
|
810
|
+
}
|
|
811
|
+
return takeFromExternrefTable0(r0);
|
|
812
|
+
} finally {
|
|
813
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* @param {string} mode_str
|
|
819
|
+
*/
|
|
820
|
+
export function multiverseSetAntiAliasing(mode_str) {
|
|
821
|
+
try {
|
|
822
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
823
|
+
const ptr0 = passStringToWasm0(mode_str, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
824
|
+
const len0 = WASM_VECTOR_LEN;
|
|
825
|
+
wasm.multiverseSetAntiAliasing(retptr, ptr0, len0);
|
|
826
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
827
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
828
|
+
if (r1) {
|
|
829
|
+
throw takeFromExternrefTable0(r0);
|
|
830
|
+
}
|
|
831
|
+
} finally {
|
|
832
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* @param {number} invocation_id
|
|
838
|
+
* @param {number} camera_slot
|
|
839
|
+
* @param {boolean} has_slot
|
|
840
|
+
*/
|
|
841
|
+
export function multiverseSetInvocationCameraSlot(invocation_id, camera_slot, has_slot) {
|
|
842
|
+
try {
|
|
843
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
844
|
+
wasm.multiverseSetInvocationCameraSlot(retptr, invocation_id, camera_slot, has_slot);
|
|
845
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
846
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
847
|
+
if (r1) {
|
|
848
|
+
throw takeFromExternrefTable0(r0);
|
|
849
|
+
}
|
|
850
|
+
} finally {
|
|
851
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* @param {number} invocation_id
|
|
857
|
+
* @param {number} r
|
|
858
|
+
* @param {number} g
|
|
859
|
+
* @param {number} b
|
|
860
|
+
* @param {number} a
|
|
861
|
+
* @param {boolean} has_clear
|
|
862
|
+
*/
|
|
863
|
+
export function multiverseSetInvocationClearColor(invocation_id, r, g, b, a, has_clear) {
|
|
864
|
+
try {
|
|
865
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
866
|
+
wasm.multiverseSetInvocationClearColor(retptr, invocation_id, r, g, b, a, has_clear);
|
|
867
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
868
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
869
|
+
if (r1) {
|
|
870
|
+
throw takeFromExternrefTable0(r0);
|
|
871
|
+
}
|
|
872
|
+
} finally {
|
|
873
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
* @param {number} invocation_id
|
|
879
|
+
* @param {boolean} enabled
|
|
880
|
+
*/
|
|
881
|
+
export function multiverseSetInvocationEnabled(invocation_id, enabled) {
|
|
882
|
+
try {
|
|
883
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
884
|
+
wasm.multiverseSetInvocationEnabled(retptr, invocation_id, enabled);
|
|
885
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
886
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
887
|
+
if (r1) {
|
|
888
|
+
throw takeFromExternrefTable0(r0);
|
|
889
|
+
}
|
|
890
|
+
} finally {
|
|
891
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* @param {number} invocation_id
|
|
897
|
+
* @param {any} filters_val
|
|
898
|
+
*/
|
|
899
|
+
export function multiverseSetInvocationFilters(invocation_id, filters_val) {
|
|
900
|
+
try {
|
|
901
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
902
|
+
wasm.multiverseSetInvocationFilters(retptr, invocation_id, filters_val);
|
|
903
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
904
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
905
|
+
if (r1) {
|
|
906
|
+
throw takeFromExternrefTable0(r0);
|
|
907
|
+
}
|
|
908
|
+
} finally {
|
|
909
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* @param {number} invocation_id
|
|
915
|
+
* @param {any} viewport_val
|
|
916
|
+
*/
|
|
917
|
+
export function multiverseSetInvocationViewport(invocation_id, viewport_val) {
|
|
918
|
+
try {
|
|
919
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
920
|
+
wasm.multiverseSetInvocationViewport(retptr, invocation_id, viewport_val);
|
|
921
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
922
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
923
|
+
if (r1) {
|
|
924
|
+
throw takeFromExternrefTable0(r0);
|
|
925
|
+
}
|
|
926
|
+
} finally {
|
|
927
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* @param {number} invocation_id
|
|
933
|
+
* @param {number} z_index
|
|
934
|
+
*/
|
|
935
|
+
export function multiverseSetInvocationZIndex(invocation_id, z_index) {
|
|
936
|
+
try {
|
|
937
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
938
|
+
wasm.multiverseSetInvocationZIndex(retptr, invocation_id, z_index);
|
|
939
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
940
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
941
|
+
if (r1) {
|
|
942
|
+
throw takeFromExternrefTable0(r0);
|
|
943
|
+
}
|
|
944
|
+
} finally {
|
|
945
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
/**
|
|
950
|
+
* @param {number} realm_id
|
|
951
|
+
* @param {string} slot
|
|
952
|
+
*/
|
|
953
|
+
export function multiverseUnbindTargetTexture(realm_id, slot) {
|
|
954
|
+
try {
|
|
955
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
956
|
+
const val2 = +realm_id;
|
|
957
|
+
const ptr0 = passStringToWasm0(slot, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
958
|
+
const len0 = WASM_VECTOR_LEN;
|
|
959
|
+
wasm.multiverseUnbindTargetTexture(retptr, val2, ptr0, len0);
|
|
960
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
961
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
962
|
+
if (r1) {
|
|
963
|
+
throw takeFromExternrefTable0(r0);
|
|
964
|
+
}
|
|
965
|
+
} finally {
|
|
966
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* @param {number} realm_id
|
|
972
|
+
*/
|
|
973
|
+
export function multiverseUnregisterRealm(realm_id) {
|
|
974
|
+
try {
|
|
975
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
976
|
+
wasm.multiverseUnregisterRealm(retptr, realm_id);
|
|
977
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
978
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
979
|
+
if (r1) {
|
|
980
|
+
throw takeFromExternrefTable0(r0);
|
|
981
|
+
}
|
|
982
|
+
} finally {
|
|
983
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* @param {number} window_id
|
|
989
|
+
* @param {number} width
|
|
990
|
+
* @param {number} height
|
|
991
|
+
*/
|
|
992
|
+
export function multiverseUpdateWindowSize(window_id, width, height) {
|
|
993
|
+
try {
|
|
994
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
995
|
+
wasm.multiverseUpdateWindowSize(retptr, window_id, width, height);
|
|
996
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
997
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
998
|
+
if (r1) {
|
|
999
|
+
throw takeFromExternrefTable0(r0);
|
|
1000
|
+
}
|
|
1001
|
+
} finally {
|
|
1002
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
/**
|
|
1007
|
+
* @returns {any}
|
|
1008
|
+
*/
|
|
1009
|
+
export function platformGetCapabilities() {
|
|
1010
|
+
try {
|
|
1011
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1012
|
+
wasm.platformGetCapabilities(retptr);
|
|
1013
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1014
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1015
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1016
|
+
if (r2) {
|
|
1017
|
+
throw takeFromExternrefTable0(r1);
|
|
1018
|
+
}
|
|
1019
|
+
return takeFromExternrefTable0(r0);
|
|
1020
|
+
} finally {
|
|
1021
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
export function platformInit() {
|
|
1026
|
+
try {
|
|
1027
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1028
|
+
wasm.platformInit(retptr);
|
|
1029
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1030
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1031
|
+
if (r1) {
|
|
1032
|
+
throw takeFromExternrefTable0(r0);
|
|
1033
|
+
}
|
|
1034
|
+
} finally {
|
|
1035
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
export function platformInitHeadless() {
|
|
1040
|
+
try {
|
|
1041
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1042
|
+
wasm.platformInitHeadless(retptr);
|
|
1043
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1044
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1045
|
+
if (r1) {
|
|
1046
|
+
throw takeFromExternrefTable0(r0);
|
|
1047
|
+
}
|
|
1048
|
+
} finally {
|
|
1049
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* @returns {any}
|
|
1055
|
+
*/
|
|
1056
|
+
export function platformPumpEvents() {
|
|
1057
|
+
try {
|
|
1058
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1059
|
+
wasm.platformPumpEvents(retptr);
|
|
1060
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1061
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1062
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1063
|
+
if (r2) {
|
|
1064
|
+
throw takeFromExternrefTable0(r1);
|
|
1065
|
+
}
|
|
1066
|
+
return takeFromExternrefTable0(r0);
|
|
1067
|
+
} finally {
|
|
1068
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Releases a native event batch created through the C ABI.
|
|
1074
|
+
*
|
|
1075
|
+
* Node-API event pumping returns JavaScript values directly, so normal Node callers never need
|
|
1076
|
+
* this. It remains exported to keep the generated API surface aligned with the C bindings.
|
|
1077
|
+
* @param {number} batch_id
|
|
1078
|
+
*/
|
|
1079
|
+
export function platformReleaseEventBatch(batch_id) {
|
|
1080
|
+
try {
|
|
1081
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1082
|
+
wasm.platformReleaseEventBatch(retptr, batch_id);
|
|
1083
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1084
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1085
|
+
if (r1) {
|
|
1086
|
+
throw takeFromExternrefTable0(r0);
|
|
1087
|
+
}
|
|
1088
|
+
} finally {
|
|
1089
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
export function platformShutdown() {
|
|
1094
|
+
try {
|
|
1095
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1096
|
+
wasm.platformShutdown(retptr);
|
|
1097
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1098
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1099
|
+
if (r1) {
|
|
1100
|
+
throw takeFromExternrefTable0(r0);
|
|
1101
|
+
}
|
|
1102
|
+
} finally {
|
|
1103
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* @param {number} realm_id
|
|
1109
|
+
*/
|
|
1110
|
+
export function realm2dCreate(realm_id) {
|
|
1111
|
+
try {
|
|
1112
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1113
|
+
wasm.realm2dCreate(retptr, realm_id);
|
|
1114
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1115
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1116
|
+
if (r1) {
|
|
1117
|
+
throw takeFromExternrefTable0(r0);
|
|
1118
|
+
}
|
|
1119
|
+
} finally {
|
|
1120
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* @param {number} realm_id
|
|
1126
|
+
* @param {number} camera_id
|
|
1127
|
+
* @param {any} camera_val
|
|
1128
|
+
* @param {any | null} [transform_val]
|
|
1129
|
+
*/
|
|
1130
|
+
export function realm2dCreateCamera(realm_id, camera_id, camera_val, transform_val) {
|
|
1131
|
+
try {
|
|
1132
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1133
|
+
const val1 = +realm_id;
|
|
1134
|
+
const val2 = +camera_id;
|
|
1135
|
+
wasm.realm2dCreateCamera(retptr, val1, val2, camera_val, isLikeNone(transform_val) ? 0 : addToExternrefTable0(transform_val));
|
|
1136
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1137
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1138
|
+
if (r1) {
|
|
1139
|
+
throw takeFromExternrefTable0(r0);
|
|
1140
|
+
}
|
|
1141
|
+
} finally {
|
|
1142
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
/**
|
|
1147
|
+
* @param {number} realm_id
|
|
1148
|
+
* @param {number} light_id
|
|
1149
|
+
* @param {any} light_val
|
|
1150
|
+
* @param {any | null} [transform_val]
|
|
1151
|
+
*/
|
|
1152
|
+
export function realm2dCreateLight(realm_id, light_id, light_val, transform_val) {
|
|
1153
|
+
try {
|
|
1154
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1155
|
+
const val1 = +realm_id;
|
|
1156
|
+
const val2 = +light_id;
|
|
1157
|
+
wasm.realm2dCreateLight(retptr, val1, val2, light_val, isLikeNone(transform_val) ? 0 : addToExternrefTable0(transform_val));
|
|
1158
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1159
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1160
|
+
if (r1) {
|
|
1161
|
+
throw takeFromExternrefTable0(r0);
|
|
1162
|
+
}
|
|
1163
|
+
} finally {
|
|
1164
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* @param {number} realm_id
|
|
1170
|
+
* @param {number} svg_id
|
|
1171
|
+
* @param {any} svg_val
|
|
1172
|
+
* @param {any | null} [transform_val]
|
|
1173
|
+
*/
|
|
1174
|
+
export function realm2dCreateSvg(realm_id, svg_id, svg_val, transform_val) {
|
|
1175
|
+
try {
|
|
1176
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1177
|
+
const val1 = +realm_id;
|
|
1178
|
+
const val2 = +svg_id;
|
|
1179
|
+
wasm.realm2dCreateSvg(retptr, val1, val2, svg_val, isLikeNone(transform_val) ? 0 : addToExternrefTable0(transform_val));
|
|
1180
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1181
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1182
|
+
if (r1) {
|
|
1183
|
+
throw takeFromExternrefTable0(r0);
|
|
1184
|
+
}
|
|
1185
|
+
} finally {
|
|
1186
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* @param {number} realm_id
|
|
1192
|
+
*/
|
|
1193
|
+
export function realm2dDestroy(realm_id) {
|
|
1194
|
+
try {
|
|
1195
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1196
|
+
wasm.realm2dDestroy(retptr, realm_id);
|
|
1197
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1198
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1199
|
+
if (r1) {
|
|
1200
|
+
throw takeFromExternrefTable0(r0);
|
|
1201
|
+
}
|
|
1202
|
+
} finally {
|
|
1203
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* @param {number} realm_id
|
|
1209
|
+
* @param {number} camera_id
|
|
1210
|
+
*/
|
|
1211
|
+
export function realm2dDestroyCamera(realm_id, camera_id) {
|
|
1212
|
+
try {
|
|
1213
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1214
|
+
wasm.realm2dDestroyCamera(retptr, realm_id, camera_id);
|
|
1215
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1216
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1217
|
+
if (r1) {
|
|
1218
|
+
throw takeFromExternrefTable0(r0);
|
|
1219
|
+
}
|
|
1220
|
+
} finally {
|
|
1221
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* @param {number} realm_id
|
|
1227
|
+
* @param {number} light_id
|
|
1228
|
+
*/
|
|
1229
|
+
export function realm2dDestroyLight(realm_id, light_id) {
|
|
1230
|
+
try {
|
|
1231
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1232
|
+
wasm.realm2dDestroyLight(retptr, realm_id, light_id);
|
|
1233
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1234
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1235
|
+
if (r1) {
|
|
1236
|
+
throw takeFromExternrefTable0(r0);
|
|
1237
|
+
}
|
|
1238
|
+
} finally {
|
|
1239
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* @param {number} realm_id
|
|
1245
|
+
* @param {number} svg_id
|
|
1246
|
+
*/
|
|
1247
|
+
export function realm2dDestroySvg(realm_id, svg_id) {
|
|
1248
|
+
try {
|
|
1249
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1250
|
+
wasm.realm2dDestroySvg(retptr, realm_id, svg_id);
|
|
1251
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1252
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1253
|
+
if (r1) {
|
|
1254
|
+
throw takeFromExternrefTable0(r0);
|
|
1255
|
+
}
|
|
1256
|
+
} finally {
|
|
1257
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* @param {number} realm_id
|
|
1263
|
+
* @param {number} svg_id
|
|
1264
|
+
* @param {string} element_id
|
|
1265
|
+
* @returns {any}
|
|
1266
|
+
*/
|
|
1267
|
+
export function realm2dGetSvgElementRect(realm_id, svg_id, element_id) {
|
|
1268
|
+
try {
|
|
1269
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1270
|
+
const val2 = +realm_id;
|
|
1271
|
+
const val3 = +svg_id;
|
|
1272
|
+
const ptr0 = passStringToWasm0(element_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1273
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1274
|
+
wasm.realm2dGetSvgElementRect(retptr, val2, val3, ptr0, len0);
|
|
1275
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1276
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1277
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1278
|
+
if (r2) {
|
|
1279
|
+
throw takeFromExternrefTable0(r1);
|
|
1280
|
+
}
|
|
1281
|
+
return takeFromExternrefTable0(r0);
|
|
1282
|
+
} finally {
|
|
1283
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* @param {number} realm_id
|
|
1289
|
+
* @param {number} svg_id
|
|
1290
|
+
* @param {string} element_id
|
|
1291
|
+
* @returns {any}
|
|
1292
|
+
*/
|
|
1293
|
+
export function realm2dGetSvgTextLayout(realm_id, svg_id, element_id) {
|
|
1294
|
+
try {
|
|
1295
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1296
|
+
const val2 = +realm_id;
|
|
1297
|
+
const val3 = +svg_id;
|
|
1298
|
+
const ptr0 = passStringToWasm0(element_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1299
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1300
|
+
wasm.realm2dGetSvgTextLayout(retptr, val2, val3, ptr0, len0);
|
|
1301
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1302
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1303
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1304
|
+
if (r2) {
|
|
1305
|
+
throw takeFromExternrefTable0(r1);
|
|
1306
|
+
}
|
|
1307
|
+
return takeFromExternrefTable0(r0);
|
|
1308
|
+
} finally {
|
|
1309
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
* @param {number} realm_id
|
|
1315
|
+
* @param {number} camera_id
|
|
1316
|
+
* @param {any} transform_val
|
|
1317
|
+
*/
|
|
1318
|
+
export function realm2dSetCameraTransform(realm_id, camera_id, transform_val) {
|
|
1319
|
+
try {
|
|
1320
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1321
|
+
wasm.realm2dSetCameraTransform(retptr, realm_id, camera_id, transform_val);
|
|
1322
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1323
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1324
|
+
if (r1) {
|
|
1325
|
+
throw takeFromExternrefTable0(r0);
|
|
1326
|
+
}
|
|
1327
|
+
} finally {
|
|
1328
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* @param {number} realm_id
|
|
1334
|
+
* @param {number} light_id
|
|
1335
|
+
* @param {any} transform_val
|
|
1336
|
+
*/
|
|
1337
|
+
export function realm2dSetLightTransform(realm_id, light_id, transform_val) {
|
|
1338
|
+
try {
|
|
1339
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1340
|
+
wasm.realm2dSetLightTransform(retptr, realm_id, light_id, transform_val);
|
|
1341
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1342
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1343
|
+
if (r1) {
|
|
1344
|
+
throw takeFromExternrefTable0(r0);
|
|
1345
|
+
}
|
|
1346
|
+
} finally {
|
|
1347
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* @param {number} realm_id
|
|
1353
|
+
* @param {number} svg_id
|
|
1354
|
+
* @param {string} source
|
|
1355
|
+
*/
|
|
1356
|
+
export function realm2dSetSvgSource(realm_id, svg_id, source) {
|
|
1357
|
+
try {
|
|
1358
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1359
|
+
const val2 = +realm_id;
|
|
1360
|
+
const val3 = +svg_id;
|
|
1361
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1362
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1363
|
+
wasm.realm2dSetSvgSource(retptr, val2, val3, ptr0, len0);
|
|
1364
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1365
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1366
|
+
if (r1) {
|
|
1367
|
+
throw takeFromExternrefTable0(r0);
|
|
1368
|
+
}
|
|
1369
|
+
} finally {
|
|
1370
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* @param {number} realm_id
|
|
1376
|
+
* @param {number} svg_id
|
|
1377
|
+
* @param {any} transform_val
|
|
1378
|
+
*/
|
|
1379
|
+
export function realm2dSetSvgTransform(realm_id, svg_id, transform_val) {
|
|
1380
|
+
try {
|
|
1381
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1382
|
+
wasm.realm2dSetSvgTransform(retptr, realm_id, svg_id, transform_val);
|
|
1383
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1384
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1385
|
+
if (r1) {
|
|
1386
|
+
throw takeFromExternrefTable0(r0);
|
|
1387
|
+
}
|
|
1388
|
+
} finally {
|
|
1389
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* @param {number} realm_id
|
|
1395
|
+
* @param {number} camera_id
|
|
1396
|
+
*/
|
|
1397
|
+
export function realm3dClearCameraLookAt(realm_id, camera_id) {
|
|
1398
|
+
try {
|
|
1399
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1400
|
+
wasm.realm3dClearCameraLookAt(retptr, realm_id, camera_id);
|
|
1401
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1402
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1403
|
+
if (r1) {
|
|
1404
|
+
throw takeFromExternrefTable0(r0);
|
|
1405
|
+
}
|
|
1406
|
+
} finally {
|
|
1407
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* @param {number} realm_id
|
|
1413
|
+
*/
|
|
1414
|
+
export function realm3dCreate(realm_id) {
|
|
1415
|
+
try {
|
|
1416
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1417
|
+
wasm.realm3dCreate(retptr, realm_id);
|
|
1418
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1419
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1420
|
+
if (r1) {
|
|
1421
|
+
throw takeFromExternrefTable0(r0);
|
|
1422
|
+
}
|
|
1423
|
+
} finally {
|
|
1424
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
* @param {number} realm_id
|
|
1430
|
+
* @param {number} camera_id
|
|
1431
|
+
* @param {any} camera_val
|
|
1432
|
+
* @param {any | null} [transform_val]
|
|
1433
|
+
*/
|
|
1434
|
+
export function realm3dCreateCamera(realm_id, camera_id, camera_val, transform_val) {
|
|
1435
|
+
try {
|
|
1436
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1437
|
+
const val1 = +realm_id;
|
|
1438
|
+
const val2 = +camera_id;
|
|
1439
|
+
wasm.realm3dCreateCamera(retptr, val1, val2, camera_val, isLikeNone(transform_val) ? 0 : addToExternrefTable0(transform_val));
|
|
1440
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1441
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1442
|
+
if (r1) {
|
|
1443
|
+
throw takeFromExternrefTable0(r0);
|
|
1444
|
+
}
|
|
1445
|
+
} finally {
|
|
1446
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
* @param {number} realm_id
|
|
1452
|
+
* @param {number} geometry_id
|
|
1453
|
+
* @param {number} radius
|
|
1454
|
+
* @param {number} cylinder_height
|
|
1455
|
+
* @param {number} rings
|
|
1456
|
+
* @param {number} sectors
|
|
1457
|
+
*/
|
|
1458
|
+
export function realm3dCreateCapsule(realm_id, geometry_id, radius, cylinder_height, rings, sectors) {
|
|
1459
|
+
try {
|
|
1460
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1461
|
+
wasm.realm3dCreateCapsule(retptr, realm_id, geometry_id, radius, cylinder_height, rings, sectors);
|
|
1462
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1463
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1464
|
+
if (r1) {
|
|
1465
|
+
throw takeFromExternrefTable0(r0);
|
|
1466
|
+
}
|
|
1467
|
+
} finally {
|
|
1468
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* @param {number} realm_id
|
|
1474
|
+
* @param {number} geometry_id
|
|
1475
|
+
* @param {number} size
|
|
1476
|
+
*/
|
|
1477
|
+
export function realm3dCreateCube(realm_id, geometry_id, size) {
|
|
1478
|
+
try {
|
|
1479
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1480
|
+
wasm.realm3dCreateCube(retptr, realm_id, geometry_id, size);
|
|
1481
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1482
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1483
|
+
if (r1) {
|
|
1484
|
+
throw takeFromExternrefTable0(r0);
|
|
1485
|
+
}
|
|
1486
|
+
} finally {
|
|
1487
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
/**
|
|
1492
|
+
* @param {number} realm_id
|
|
1493
|
+
* @param {number} geometry_id
|
|
1494
|
+
* @param {number} radius
|
|
1495
|
+
* @param {number} height
|
|
1496
|
+
* @param {number} sectors
|
|
1497
|
+
*/
|
|
1498
|
+
export function realm3dCreateCylinder(realm_id, geometry_id, radius, height, sectors) {
|
|
1499
|
+
try {
|
|
1500
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1501
|
+
wasm.realm3dCreateCylinder(retptr, realm_id, geometry_id, radius, height, sectors);
|
|
1502
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1503
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1504
|
+
if (r1) {
|
|
1505
|
+
throw takeFromExternrefTable0(r0);
|
|
1506
|
+
}
|
|
1507
|
+
} finally {
|
|
1508
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
/**
|
|
1513
|
+
* @param {number} realm_id
|
|
1514
|
+
* @param {number} geometry_id
|
|
1515
|
+
* @param {number} topology
|
|
1516
|
+
* @param {Uint8Array | number[]} vertex_data
|
|
1517
|
+
* @param {number | null | undefined} _vertex_data_len
|
|
1518
|
+
* @param {Uint32Array | number[]} indices
|
|
1519
|
+
* @param {number | null} [_index_count]
|
|
1520
|
+
*/
|
|
1521
|
+
export function realm3dCreateGeometry(realm_id, geometry_id, topology, vertex_data, _vertex_data_len, indices, _index_count) {
|
|
1522
|
+
try {
|
|
1523
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1524
|
+
const val3 = +realm_id;
|
|
1525
|
+
const val4 = +geometry_id;
|
|
1526
|
+
const val5 = +topology;
|
|
1527
|
+
const val6 = +(isLikeNone(_vertex_data_len) ? 0 : _vertex_data_len);
|
|
1528
|
+
const val7 = +(isLikeNone(_index_count) ? 0 : _index_count);
|
|
1529
|
+
let ptr0, len0, ptr1, len1;
|
|
1530
|
+
try {
|
|
1531
|
+
ptr0 = passArray8ToWasm0(vertex_data, wasm.__wbindgen_export);
|
|
1532
|
+
len0 = WASM_VECTOR_LEN;
|
|
1533
|
+
ptr1 = passArray32ToWasm0(indices, wasm.__wbindgen_export);
|
|
1534
|
+
len1 = WASM_VECTOR_LEN;
|
|
1535
|
+
} catch (e) {
|
|
1536
|
+
if (ptr1) { wasm.__wbindgen_export3(ptr1, len1 * 4, 4); }
|
|
1537
|
+
if (ptr0) { wasm.__wbindgen_export3(ptr0, len0 * 1, 1); }
|
|
1538
|
+
throw e;
|
|
1539
|
+
}
|
|
1540
|
+
wasm.realm3dCreateGeometry(retptr, val3, val4, val5, ptr0, len0, !isLikeNone(_vertex_data_len), val6, ptr1, len1, !isLikeNone(_index_count), val7);
|
|
1541
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1542
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1543
|
+
if (r1) {
|
|
1544
|
+
throw takeFromExternrefTable0(r0);
|
|
1545
|
+
}
|
|
1546
|
+
} finally {
|
|
1547
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
/**
|
|
1552
|
+
* @param {number} realm_id
|
|
1553
|
+
* @param {number} light_id
|
|
1554
|
+
* @param {any} light_val
|
|
1555
|
+
* @param {any | null} [transform_val]
|
|
1556
|
+
*/
|
|
1557
|
+
export function realm3dCreateLight(realm_id, light_id, light_val, transform_val) {
|
|
1558
|
+
try {
|
|
1559
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1560
|
+
const val1 = +realm_id;
|
|
1561
|
+
const val2 = +light_id;
|
|
1562
|
+
wasm.realm3dCreateLight(retptr, val1, val2, light_val, isLikeNone(transform_val) ? 0 : addToExternrefTable0(transform_val));
|
|
1563
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1564
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1565
|
+
if (r1) {
|
|
1566
|
+
throw takeFromExternrefTable0(r0);
|
|
1567
|
+
}
|
|
1568
|
+
} finally {
|
|
1569
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
* @param {number} realm_id
|
|
1575
|
+
* @param {number} material_id
|
|
1576
|
+
* @param {any} material_val
|
|
1577
|
+
*/
|
|
1578
|
+
export function realm3dCreateMaterial(realm_id, material_id, material_val) {
|
|
1579
|
+
try {
|
|
1580
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1581
|
+
wasm.realm3dCreateMaterial(retptr, realm_id, material_id, material_val);
|
|
1582
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1583
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1584
|
+
if (r1) {
|
|
1585
|
+
throw takeFromExternrefTable0(r0);
|
|
1586
|
+
}
|
|
1587
|
+
} finally {
|
|
1588
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* @param {number} realm_id
|
|
1594
|
+
* @param {number} model_id
|
|
1595
|
+
* @param {any} model_val
|
|
1596
|
+
* @param {any | null} [transform_val]
|
|
1597
|
+
*/
|
|
1598
|
+
export function realm3dCreateModel(realm_id, model_id, model_val, transform_val) {
|
|
1599
|
+
try {
|
|
1600
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1601
|
+
const val1 = +realm_id;
|
|
1602
|
+
const val2 = +model_id;
|
|
1603
|
+
wasm.realm3dCreateModel(retptr, val1, val2, model_val, isLikeNone(transform_val) ? 0 : addToExternrefTable0(transform_val));
|
|
1604
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1605
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1606
|
+
if (r1) {
|
|
1607
|
+
throw takeFromExternrefTable0(r0);
|
|
1608
|
+
}
|
|
1609
|
+
} finally {
|
|
1610
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
/**
|
|
1615
|
+
* @param {number} realm_id
|
|
1616
|
+
* @param {number} emitter_id
|
|
1617
|
+
* @param {any} emitter_val
|
|
1618
|
+
* @param {any | null} [transform_val]
|
|
1619
|
+
*/
|
|
1620
|
+
export function realm3dCreateParticleEmitter(realm_id, emitter_id, emitter_val, transform_val) {
|
|
1621
|
+
try {
|
|
1622
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1623
|
+
const val1 = +realm_id;
|
|
1624
|
+
const val2 = +emitter_id;
|
|
1625
|
+
wasm.realm3dCreateParticleEmitter(retptr, val1, val2, emitter_val, isLikeNone(transform_val) ? 0 : addToExternrefTable0(transform_val));
|
|
1626
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1627
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1628
|
+
if (r1) {
|
|
1629
|
+
throw takeFromExternrefTable0(r0);
|
|
1630
|
+
}
|
|
1631
|
+
} finally {
|
|
1632
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
/**
|
|
1637
|
+
* @param {number} realm_id
|
|
1638
|
+
* @param {number} geometry_id
|
|
1639
|
+
* @param {number} width
|
|
1640
|
+
* @param {number} depth
|
|
1641
|
+
*/
|
|
1642
|
+
export function realm3dCreatePlane(realm_id, geometry_id, width, depth) {
|
|
1643
|
+
try {
|
|
1644
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1645
|
+
wasm.realm3dCreatePlane(retptr, realm_id, geometry_id, width, depth);
|
|
1646
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1647
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1648
|
+
if (r1) {
|
|
1649
|
+
throw takeFromExternrefTable0(r0);
|
|
1650
|
+
}
|
|
1651
|
+
} finally {
|
|
1652
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
/**
|
|
1657
|
+
* @param {number} realm_id
|
|
1658
|
+
* @param {number} portal_id
|
|
1659
|
+
* @param {any} portal_val
|
|
1660
|
+
*/
|
|
1661
|
+
export function realm3dCreatePortal(realm_id, portal_id, portal_val) {
|
|
1662
|
+
try {
|
|
1663
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1664
|
+
wasm.realm3dCreatePortal(retptr, realm_id, portal_id, portal_val);
|
|
1665
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1666
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1667
|
+
if (r1) {
|
|
1668
|
+
throw takeFromExternrefTable0(r0);
|
|
1669
|
+
}
|
|
1670
|
+
} finally {
|
|
1671
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
/**
|
|
1676
|
+
* @param {number} realm_id
|
|
1677
|
+
* @param {number} geometry_id
|
|
1678
|
+
* @param {number} width
|
|
1679
|
+
* @param {number} depth
|
|
1680
|
+
* @param {number} height
|
|
1681
|
+
*/
|
|
1682
|
+
export function realm3dCreatePyramid(realm_id, geometry_id, width, depth, height) {
|
|
1683
|
+
try {
|
|
1684
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1685
|
+
wasm.realm3dCreatePyramid(retptr, realm_id, geometry_id, width, depth, height);
|
|
1686
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1687
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1688
|
+
if (r1) {
|
|
1689
|
+
throw takeFromExternrefTable0(r0);
|
|
1690
|
+
}
|
|
1691
|
+
} finally {
|
|
1692
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
/**
|
|
1697
|
+
* @param {number} realm_id
|
|
1698
|
+
* @param {number} geometry_id
|
|
1699
|
+
* @param {number} width
|
|
1700
|
+
* @param {number} height
|
|
1701
|
+
*/
|
|
1702
|
+
export function realm3dCreateQuad(realm_id, geometry_id, width, height) {
|
|
1703
|
+
try {
|
|
1704
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1705
|
+
wasm.realm3dCreateQuad(retptr, realm_id, geometry_id, width, height);
|
|
1706
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1707
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1708
|
+
if (r1) {
|
|
1709
|
+
throw takeFromExternrefTable0(r0);
|
|
1710
|
+
}
|
|
1711
|
+
} finally {
|
|
1712
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
/**
|
|
1717
|
+
* @param {number} realm_id
|
|
1718
|
+
* @param {number} geometry_id
|
|
1719
|
+
* @param {number} radius
|
|
1720
|
+
* @param {number} rings
|
|
1721
|
+
* @param {number} sectors
|
|
1722
|
+
*/
|
|
1723
|
+
export function realm3dCreateSphere(realm_id, geometry_id, radius, rings, sectors) {
|
|
1724
|
+
try {
|
|
1725
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1726
|
+
wasm.realm3dCreateSphere(retptr, realm_id, geometry_id, radius, rings, sectors);
|
|
1727
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1728
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1729
|
+
if (r1) {
|
|
1730
|
+
throw takeFromExternrefTable0(r0);
|
|
1731
|
+
}
|
|
1732
|
+
} finally {
|
|
1733
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
/**
|
|
1738
|
+
* @param {number} realm_id
|
|
1739
|
+
* @param {number} geometry_id
|
|
1740
|
+
* @param {number} major_radius
|
|
1741
|
+
* @param {number} minor_radius
|
|
1742
|
+
* @param {number} major_segments
|
|
1743
|
+
* @param {number} minor_segments
|
|
1744
|
+
*/
|
|
1745
|
+
export function realm3dCreateTorus(realm_id, geometry_id, major_radius, minor_radius, major_segments, minor_segments) {
|
|
1746
|
+
try {
|
|
1747
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1748
|
+
wasm.realm3dCreateTorus(retptr, realm_id, geometry_id, major_radius, minor_radius, major_segments, minor_segments);
|
|
1749
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1750
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1751
|
+
if (r1) {
|
|
1752
|
+
throw takeFromExternrefTable0(r0);
|
|
1753
|
+
}
|
|
1754
|
+
} finally {
|
|
1755
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
/**
|
|
1760
|
+
* @param {number} realm_id
|
|
1761
|
+
*/
|
|
1762
|
+
export function realm3dDestroy(realm_id) {
|
|
1763
|
+
try {
|
|
1764
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1765
|
+
wasm.realm3dDestroy(retptr, realm_id);
|
|
1766
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1767
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1768
|
+
if (r1) {
|
|
1769
|
+
throw takeFromExternrefTable0(r0);
|
|
1770
|
+
}
|
|
1771
|
+
} finally {
|
|
1772
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
/**
|
|
1777
|
+
* @param {number} realm_id
|
|
1778
|
+
* @param {number} camera_id
|
|
1779
|
+
*/
|
|
1780
|
+
export function realm3dDestroyCamera(realm_id, camera_id) {
|
|
1781
|
+
try {
|
|
1782
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1783
|
+
wasm.realm3dDestroyCamera(retptr, realm_id, camera_id);
|
|
1784
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1785
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1786
|
+
if (r1) {
|
|
1787
|
+
throw takeFromExternrefTable0(r0);
|
|
1788
|
+
}
|
|
1789
|
+
} finally {
|
|
1790
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
/**
|
|
1795
|
+
* @param {number} realm_id
|
|
1796
|
+
* @param {number} geometry_id
|
|
1797
|
+
*/
|
|
1798
|
+
export function realm3dDestroyGeometry(realm_id, geometry_id) {
|
|
1799
|
+
try {
|
|
1800
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1801
|
+
wasm.realm3dDestroyGeometry(retptr, realm_id, geometry_id);
|
|
1802
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1803
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1804
|
+
if (r1) {
|
|
1805
|
+
throw takeFromExternrefTable0(r0);
|
|
1806
|
+
}
|
|
1807
|
+
} finally {
|
|
1808
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* @param {number} realm_id
|
|
1814
|
+
* @param {number} light_id
|
|
1815
|
+
*/
|
|
1816
|
+
export function realm3dDestroyLight(realm_id, light_id) {
|
|
1817
|
+
try {
|
|
1818
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1819
|
+
wasm.realm3dDestroyLight(retptr, realm_id, light_id);
|
|
1820
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1821
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1822
|
+
if (r1) {
|
|
1823
|
+
throw takeFromExternrefTable0(r0);
|
|
1824
|
+
}
|
|
1825
|
+
} finally {
|
|
1826
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
/**
|
|
1831
|
+
* @param {number} realm_id
|
|
1832
|
+
* @param {number} material_id
|
|
1833
|
+
*/
|
|
1834
|
+
export function realm3dDestroyMaterial(realm_id, material_id) {
|
|
1835
|
+
try {
|
|
1836
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1837
|
+
wasm.realm3dDestroyMaterial(retptr, realm_id, material_id);
|
|
1838
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1839
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1840
|
+
if (r1) {
|
|
1841
|
+
throw takeFromExternrefTable0(r0);
|
|
1842
|
+
}
|
|
1843
|
+
} finally {
|
|
1844
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* @param {number} realm_id
|
|
1850
|
+
* @param {number} model_id
|
|
1851
|
+
*/
|
|
1852
|
+
export function realm3dDestroyModel(realm_id, model_id) {
|
|
1853
|
+
try {
|
|
1854
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1855
|
+
wasm.realm3dDestroyModel(retptr, realm_id, model_id);
|
|
1856
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1857
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1858
|
+
if (r1) {
|
|
1859
|
+
throw takeFromExternrefTable0(r0);
|
|
1860
|
+
}
|
|
1861
|
+
} finally {
|
|
1862
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
/**
|
|
1867
|
+
* @param {number} realm_id
|
|
1868
|
+
* @param {number} emitter_id
|
|
1869
|
+
*/
|
|
1870
|
+
export function realm3dDestroyParticleEmitter(realm_id, emitter_id) {
|
|
1871
|
+
try {
|
|
1872
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1873
|
+
wasm.realm3dDestroyParticleEmitter(retptr, realm_id, emitter_id);
|
|
1874
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1875
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1876
|
+
if (r1) {
|
|
1877
|
+
throw takeFromExternrefTable0(r0);
|
|
1878
|
+
}
|
|
1879
|
+
} finally {
|
|
1880
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
/**
|
|
1885
|
+
* @param {number} realm_id
|
|
1886
|
+
* @param {number} portal_id
|
|
1887
|
+
*/
|
|
1888
|
+
export function realm3dDestroyPortal(realm_id, portal_id) {
|
|
1889
|
+
try {
|
|
1890
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1891
|
+
wasm.realm3dDestroyPortal(retptr, realm_id, portal_id);
|
|
1892
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1893
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1894
|
+
if (r1) {
|
|
1895
|
+
throw takeFromExternrefTable0(r0);
|
|
1896
|
+
}
|
|
1897
|
+
} finally {
|
|
1898
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
/**
|
|
1903
|
+
* @param {number} realm_id
|
|
1904
|
+
* @param {number} camera_id
|
|
1905
|
+
* @returns {any}
|
|
1906
|
+
*/
|
|
1907
|
+
export function realm3dGetCameraLookAt(realm_id, camera_id) {
|
|
1908
|
+
try {
|
|
1909
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1910
|
+
wasm.realm3dGetCameraLookAt(retptr, realm_id, camera_id);
|
|
1911
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1912
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1913
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1914
|
+
if (r2) {
|
|
1915
|
+
throw takeFromExternrefTable0(r1);
|
|
1916
|
+
}
|
|
1917
|
+
return takeFromExternrefTable0(r0);
|
|
1918
|
+
} finally {
|
|
1919
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
/**
|
|
1924
|
+
* @param {number} realm_id
|
|
1925
|
+
* @param {number} camera_id
|
|
1926
|
+
* @param {any} look_at_val
|
|
1927
|
+
*/
|
|
1928
|
+
export function realm3dSetCameraLookAt(realm_id, camera_id, look_at_val) {
|
|
1929
|
+
try {
|
|
1930
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1931
|
+
wasm.realm3dSetCameraLookAt(retptr, realm_id, camera_id, look_at_val);
|
|
1932
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1933
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1934
|
+
if (r1) {
|
|
1935
|
+
throw takeFromExternrefTable0(r0);
|
|
1936
|
+
}
|
|
1937
|
+
} finally {
|
|
1938
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
/**
|
|
1943
|
+
* @param {number} realm_id
|
|
1944
|
+
* @param {number} camera_id
|
|
1945
|
+
* @param {any} transform_val
|
|
1946
|
+
*/
|
|
1947
|
+
export function realm3dSetCameraTransform(realm_id, camera_id, transform_val) {
|
|
1948
|
+
try {
|
|
1949
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1950
|
+
wasm.realm3dSetCameraTransform(retptr, realm_id, camera_id, transform_val);
|
|
1951
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1952
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1953
|
+
if (r1) {
|
|
1954
|
+
throw takeFromExternrefTable0(r0);
|
|
1955
|
+
}
|
|
1956
|
+
} finally {
|
|
1957
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
/**
|
|
1962
|
+
* @param {number} realm_id
|
|
1963
|
+
* @param {any} environment_val
|
|
1964
|
+
*/
|
|
1965
|
+
export function realm3dSetEnvironment(realm_id, environment_val) {
|
|
1966
|
+
try {
|
|
1967
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1968
|
+
wasm.realm3dSetEnvironment(retptr, realm_id, environment_val);
|
|
1969
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1970
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1971
|
+
if (r1) {
|
|
1972
|
+
throw takeFromExternrefTable0(r0);
|
|
1973
|
+
}
|
|
1974
|
+
} finally {
|
|
1975
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
/**
|
|
1980
|
+
* @param {number} realm_id
|
|
1981
|
+
* @param {number} geometry_id
|
|
1982
|
+
* @param {Uint8Array | number[]} target_data
|
|
1983
|
+
* @param {number | null | undefined} _target_data_len
|
|
1984
|
+
* @param {number} target_count
|
|
1985
|
+
*/
|
|
1986
|
+
export function realm3dSetGeometryMorphTargets(realm_id, geometry_id, target_data, _target_data_len, target_count) {
|
|
1987
|
+
try {
|
|
1988
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1989
|
+
const val2 = +realm_id;
|
|
1990
|
+
const val3 = +geometry_id;
|
|
1991
|
+
const val4 = +(isLikeNone(_target_data_len) ? 0 : _target_data_len);
|
|
1992
|
+
const val5 = +target_count;
|
|
1993
|
+
const ptr0 = passArray8ToWasm0(target_data, wasm.__wbindgen_export);
|
|
1994
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1995
|
+
wasm.realm3dSetGeometryMorphTargets(retptr, val2, val3, ptr0, len0, !isLikeNone(_target_data_len), val4, val5);
|
|
1996
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1997
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1998
|
+
if (r1) {
|
|
1999
|
+
throw takeFromExternrefTable0(r0);
|
|
2000
|
+
}
|
|
2001
|
+
} finally {
|
|
2002
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
/**
|
|
2007
|
+
* @param {number} realm_id
|
|
2008
|
+
* @param {number} instanced_model_id
|
|
2009
|
+
* @param {Float32Array | number[]} weights
|
|
2010
|
+
* @param {number | null} [_weight_count]
|
|
2011
|
+
*/
|
|
2012
|
+
export function realm3dSetInstancedModelMorphWeights(realm_id, instanced_model_id, weights, _weight_count) {
|
|
2013
|
+
try {
|
|
2014
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2015
|
+
const val2 = +realm_id;
|
|
2016
|
+
const val3 = +instanced_model_id;
|
|
2017
|
+
const val4 = +(isLikeNone(_weight_count) ? 0 : _weight_count);
|
|
2018
|
+
const ptr0 = passArrayF32ToWasm0(weights, wasm.__wbindgen_export);
|
|
2019
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2020
|
+
wasm.realm3dSetInstancedModelMorphWeights(retptr, val2, val3, ptr0, len0, !isLikeNone(_weight_count), val4);
|
|
2021
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2022
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2023
|
+
if (r1) {
|
|
2024
|
+
throw takeFromExternrefTable0(r0);
|
|
2025
|
+
}
|
|
2026
|
+
} finally {
|
|
2027
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
/**
|
|
2032
|
+
* @param {number} realm_id
|
|
2033
|
+
* @param {number} light_id
|
|
2034
|
+
* @param {any} transform_val
|
|
2035
|
+
*/
|
|
2036
|
+
export function realm3dSetLightTransform(realm_id, light_id, transform_val) {
|
|
2037
|
+
try {
|
|
2038
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2039
|
+
wasm.realm3dSetLightTransform(retptr, realm_id, light_id, transform_val);
|
|
2040
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2041
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2042
|
+
if (r1) {
|
|
2043
|
+
throw takeFromExternrefTable0(r0);
|
|
2044
|
+
}
|
|
2045
|
+
} finally {
|
|
2046
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
/**
|
|
2051
|
+
* @param {number} realm_id
|
|
2052
|
+
* @param {number} model_id
|
|
2053
|
+
* @param {Float32Array | number[]} weights
|
|
2054
|
+
* @param {number | null} [_weight_count]
|
|
2055
|
+
*/
|
|
2056
|
+
export function realm3dSetModelMorphWeights(realm_id, model_id, weights, _weight_count) {
|
|
2057
|
+
try {
|
|
2058
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2059
|
+
const val2 = +realm_id;
|
|
2060
|
+
const val3 = +model_id;
|
|
2061
|
+
const val4 = +(isLikeNone(_weight_count) ? 0 : _weight_count);
|
|
2062
|
+
const ptr0 = passArrayF32ToWasm0(weights, wasm.__wbindgen_export);
|
|
2063
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2064
|
+
wasm.realm3dSetModelMorphWeights(retptr, val2, val3, ptr0, len0, !isLikeNone(_weight_count), val4);
|
|
2065
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2066
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2067
|
+
if (r1) {
|
|
2068
|
+
throw takeFromExternrefTable0(r0);
|
|
2069
|
+
}
|
|
2070
|
+
} finally {
|
|
2071
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
/**
|
|
2076
|
+
* @param {number} realm_id
|
|
2077
|
+
* @param {number} model_id
|
|
2078
|
+
* @param {any} transform_val
|
|
2079
|
+
*/
|
|
2080
|
+
export function realm3dSetModelTransform(realm_id, model_id, transform_val) {
|
|
2081
|
+
try {
|
|
2082
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2083
|
+
wasm.realm3dSetModelTransform(retptr, realm_id, model_id, transform_val);
|
|
2084
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2085
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2086
|
+
if (r1) {
|
|
2087
|
+
throw takeFromExternrefTable0(r0);
|
|
2088
|
+
}
|
|
2089
|
+
} finally {
|
|
2090
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
/**
|
|
2095
|
+
* @param {number} realm_id
|
|
2096
|
+
* @param {number} emitter_id
|
|
2097
|
+
* @param {any} transform_val
|
|
2098
|
+
*/
|
|
2099
|
+
export function realm3dSetParticleEmitterTransform(realm_id, emitter_id, transform_val) {
|
|
2100
|
+
try {
|
|
2101
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2102
|
+
wasm.realm3dSetParticleEmitterTransform(retptr, realm_id, emitter_id, transform_val);
|
|
2103
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2104
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2105
|
+
if (r1) {
|
|
2106
|
+
throw takeFromExternrefTable0(r0);
|
|
2107
|
+
}
|
|
2108
|
+
} finally {
|
|
2109
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
|
|
2113
|
+
/**
|
|
2114
|
+
* @param {number} realm_id
|
|
2115
|
+
* @param {number} model_id
|
|
2116
|
+
* @param {Float32Array | number[]} data
|
|
2117
|
+
* @param {number | null} [_float_count]
|
|
2118
|
+
*/
|
|
2119
|
+
export function realm3dUpdateBones(realm_id, model_id, data, _float_count) {
|
|
2120
|
+
try {
|
|
2121
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2122
|
+
const val2 = +realm_id;
|
|
2123
|
+
const val3 = +model_id;
|
|
2124
|
+
const val4 = +(isLikeNone(_float_count) ? 0 : _float_count);
|
|
2125
|
+
const ptr0 = passArrayF32ToWasm0(data, wasm.__wbindgen_export);
|
|
2126
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2127
|
+
wasm.realm3dUpdateBones(retptr, val2, val3, ptr0, len0, !isLikeNone(_float_count), val4);
|
|
2128
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2129
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2130
|
+
if (r1) {
|
|
2131
|
+
throw takeFromExternrefTable0(r0);
|
|
2132
|
+
}
|
|
2133
|
+
} finally {
|
|
2134
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2135
|
+
}
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2138
|
+
/**
|
|
2139
|
+
* @param {number} buffer_id
|
|
2140
|
+
* @param {any} desc_val
|
|
2141
|
+
* @param {Uint8Array | number[]} data
|
|
2142
|
+
* @param {number | null} [_data_len]
|
|
2143
|
+
*/
|
|
2144
|
+
export function resourceCreateBuffer(buffer_id, desc_val, data, _data_len) {
|
|
2145
|
+
try {
|
|
2146
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2147
|
+
const val2 = +buffer_id;
|
|
2148
|
+
const val3 = +(isLikeNone(_data_len) ? 0 : _data_len);
|
|
2149
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export);
|
|
2150
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2151
|
+
wasm.resourceCreateBuffer(retptr, val2, desc_val, ptr0, len0, !isLikeNone(_data_len), val3);
|
|
2152
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2153
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2154
|
+
if (r1) {
|
|
2155
|
+
throw takeFromExternrefTable0(r0);
|
|
2156
|
+
}
|
|
2157
|
+
} finally {
|
|
2158
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
/**
|
|
2163
|
+
* @param {number} texture_id
|
|
2164
|
+
* @param {any} desc_val
|
|
2165
|
+
* @param {Uint8Array | number[]} data
|
|
2166
|
+
* @param {number | null} [_data_len]
|
|
2167
|
+
*/
|
|
2168
|
+
export function resourceCreateTexture(texture_id, desc_val, data, _data_len) {
|
|
2169
|
+
try {
|
|
2170
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2171
|
+
const val2 = +texture_id;
|
|
2172
|
+
const val3 = +(isLikeNone(_data_len) ? 0 : _data_len);
|
|
2173
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export);
|
|
2174
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2175
|
+
wasm.resourceCreateTexture(retptr, val2, desc_val, ptr0, len0, !isLikeNone(_data_len), val3);
|
|
2176
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2177
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2178
|
+
if (r1) {
|
|
2179
|
+
throw takeFromExternrefTable0(r0);
|
|
2180
|
+
}
|
|
2181
|
+
} finally {
|
|
2182
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
/**
|
|
2187
|
+
* @param {number} buffer_id
|
|
2188
|
+
*/
|
|
2189
|
+
export function resourceDisposeBuffer(buffer_id) {
|
|
2190
|
+
try {
|
|
2191
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2192
|
+
wasm.resourceDisposeBuffer(retptr, buffer_id);
|
|
2193
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2194
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2195
|
+
if (r1) {
|
|
2196
|
+
throw takeFromExternrefTable0(r0);
|
|
2197
|
+
}
|
|
2198
|
+
} finally {
|
|
2199
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
/**
|
|
2204
|
+
* @param {number} texture_id
|
|
2205
|
+
*/
|
|
2206
|
+
export function resourceDisposeTexture(texture_id) {
|
|
2207
|
+
try {
|
|
2208
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2209
|
+
wasm.resourceDisposeTexture(retptr, texture_id);
|
|
2210
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2211
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2212
|
+
if (r1) {
|
|
2213
|
+
throw takeFromExternrefTable0(r0);
|
|
2214
|
+
}
|
|
2215
|
+
} finally {
|
|
2216
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2217
|
+
}
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
/**
|
|
2221
|
+
* @param {number} buffer_id
|
|
2222
|
+
* @param {number} offset
|
|
2223
|
+
* @param {Uint8Array | number[]} data
|
|
2224
|
+
* @param {number | null} [_data_len]
|
|
2225
|
+
*/
|
|
2226
|
+
export function resourceUpdateBuffer(buffer_id, offset, data, _data_len) {
|
|
2227
|
+
try {
|
|
2228
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2229
|
+
const val2 = +buffer_id;
|
|
2230
|
+
const val3 = +offset;
|
|
2231
|
+
const val4 = +(isLikeNone(_data_len) ? 0 : _data_len);
|
|
2232
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export);
|
|
2233
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2234
|
+
wasm.resourceUpdateBuffer(retptr, val2, val3, ptr0, len0, !isLikeNone(_data_len), val4);
|
|
2235
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2236
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2237
|
+
if (r1) {
|
|
2238
|
+
throw takeFromExternrefTable0(r0);
|
|
2239
|
+
}
|
|
2240
|
+
} finally {
|
|
2241
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
/**
|
|
2246
|
+
* @param {number} texture_id
|
|
2247
|
+
* @param {any} rect_val
|
|
2248
|
+
* @param {Uint8Array | number[]} data
|
|
2249
|
+
* @param {number | null} [_data_len]
|
|
2250
|
+
*/
|
|
2251
|
+
export function resourceUpdateTexture(texture_id, rect_val, data, _data_len) {
|
|
2252
|
+
try {
|
|
2253
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2254
|
+
const val2 = +texture_id;
|
|
2255
|
+
const val3 = +(isLikeNone(_data_len) ? 0 : _data_len);
|
|
2256
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export);
|
|
2257
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2258
|
+
wasm.resourceUpdateTexture(retptr, val2, rect_val, ptr0, len0, !isLikeNone(_data_len), val3);
|
|
2259
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2260
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2261
|
+
if (r1) {
|
|
2262
|
+
throw takeFromExternrefTable0(r0);
|
|
2263
|
+
}
|
|
2264
|
+
} finally {
|
|
2265
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
/**
|
|
2270
|
+
* @param {number} window_id
|
|
2271
|
+
*/
|
|
2272
|
+
export function windowClose(window_id) {
|
|
2273
|
+
try {
|
|
2274
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2275
|
+
wasm.windowClose(retptr, window_id);
|
|
2276
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2277
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2278
|
+
if (r1) {
|
|
2279
|
+
throw takeFromExternrefTable0(r0);
|
|
2280
|
+
}
|
|
2281
|
+
} finally {
|
|
2282
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2283
|
+
}
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
/**
|
|
2287
|
+
* @param {any} config_val
|
|
2288
|
+
* @returns {number}
|
|
2289
|
+
*/
|
|
2290
|
+
export function windowCreate(config_val) {
|
|
2291
|
+
try {
|
|
2292
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2293
|
+
wasm.windowCreate(retptr, config_val);
|
|
2294
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2295
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2296
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2297
|
+
if (r2) {
|
|
2298
|
+
throw takeFromExternrefTable0(r1);
|
|
2299
|
+
}
|
|
2300
|
+
return r0 >>> 0;
|
|
2301
|
+
} finally {
|
|
2302
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
/**
|
|
2307
|
+
* @param {number} window_id
|
|
2308
|
+
* @returns {Uint32Array}
|
|
2309
|
+
*/
|
|
2310
|
+
export function windowGetSize(window_id) {
|
|
2311
|
+
try {
|
|
2312
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2313
|
+
wasm.windowGetSize(retptr, window_id);
|
|
2314
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2315
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2316
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2317
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
2318
|
+
if (r3) {
|
|
2319
|
+
throw takeFromExternrefTable0(r2);
|
|
2320
|
+
}
|
|
2321
|
+
var v1 = getArrayU32FromWasm0(r0, r1).slice();
|
|
2322
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
2323
|
+
return v1;
|
|
2324
|
+
} finally {
|
|
2325
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
/**
|
|
2330
|
+
* @param {number} window_id
|
|
2331
|
+
*/
|
|
2332
|
+
export function windowRequestInputFocus(window_id) {
|
|
2333
|
+
try {
|
|
2334
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2335
|
+
wasm.windowRequestInputFocus(retptr, window_id);
|
|
2336
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2337
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2338
|
+
if (r1) {
|
|
2339
|
+
throw takeFromExternrefTable0(r0);
|
|
2340
|
+
}
|
|
2341
|
+
} finally {
|
|
2342
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
/**
|
|
2347
|
+
* @param {number} window_id
|
|
2348
|
+
* @param {number} mode
|
|
2349
|
+
*/
|
|
2350
|
+
export function windowSetCursorGrab(window_id, mode) {
|
|
2351
|
+
try {
|
|
2352
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2353
|
+
wasm.windowSetCursorGrab(retptr, window_id, mode);
|
|
2354
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2355
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2356
|
+
if (r1) {
|
|
2357
|
+
throw takeFromExternrefTable0(r0);
|
|
2358
|
+
}
|
|
2359
|
+
} finally {
|
|
2360
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2364
|
+
/**
|
|
2365
|
+
* @param {number} window_id
|
|
2366
|
+
* @param {number} icon
|
|
2367
|
+
*/
|
|
2368
|
+
export function windowSetCursorIcon(window_id, icon) {
|
|
2369
|
+
try {
|
|
2370
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2371
|
+
wasm.windowSetCursorIcon(retptr, window_id, icon);
|
|
2372
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2373
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2374
|
+
if (r1) {
|
|
2375
|
+
throw takeFromExternrefTable0(r0);
|
|
2376
|
+
}
|
|
2377
|
+
} finally {
|
|
2378
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
/**
|
|
2383
|
+
* @param {number} window_id
|
|
2384
|
+
* @param {Uint8Array | number[]} data
|
|
2385
|
+
* @param {number | null} [_data_len]
|
|
2386
|
+
*/
|
|
2387
|
+
export function windowSetIcon(window_id, data, _data_len) {
|
|
2388
|
+
try {
|
|
2389
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2390
|
+
const val2 = +window_id;
|
|
2391
|
+
const val3 = +(isLikeNone(_data_len) ? 0 : _data_len);
|
|
2392
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export);
|
|
2393
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2394
|
+
wasm.windowSetIcon(retptr, val2, ptr0, len0, !isLikeNone(_data_len), val3);
|
|
2395
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2396
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2397
|
+
if (r1) {
|
|
2398
|
+
throw takeFromExternrefTable0(r0);
|
|
2399
|
+
}
|
|
2400
|
+
} finally {
|
|
2401
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
/**
|
|
2406
|
+
* @param {number} window_id
|
|
2407
|
+
* @param {number} allowed
|
|
2408
|
+
*/
|
|
2409
|
+
export function windowSetImeAllowed(window_id, allowed) {
|
|
2410
|
+
try {
|
|
2411
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2412
|
+
wasm.windowSetImeAllowed(retptr, window_id, allowed);
|
|
2413
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2414
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2415
|
+
if (r1) {
|
|
2416
|
+
throw takeFromExternrefTable0(r0);
|
|
2417
|
+
}
|
|
2418
|
+
} finally {
|
|
2419
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2420
|
+
}
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
|
+
/**
|
|
2424
|
+
* @param {number} window_id
|
|
2425
|
+
* @param {number} x
|
|
2426
|
+
* @param {number} y
|
|
2427
|
+
* @param {number} width
|
|
2428
|
+
* @param {number} height
|
|
2429
|
+
*/
|
|
2430
|
+
export function windowSetImeCursorArea(window_id, x, y, width, height) {
|
|
2431
|
+
try {
|
|
2432
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2433
|
+
wasm.windowSetImeCursorArea(retptr, window_id, x, y, width, height);
|
|
2434
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2435
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2436
|
+
if (r1) {
|
|
2437
|
+
throw takeFromExternrefTable0(r0);
|
|
2438
|
+
}
|
|
2439
|
+
} finally {
|
|
2440
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
|
|
2444
|
+
/**
|
|
2445
|
+
* @param {number} window_id
|
|
2446
|
+
* @param {number} enabled
|
|
2447
|
+
*/
|
|
2448
|
+
export function windowSetTabCapture(window_id, enabled) {
|
|
2449
|
+
try {
|
|
2450
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2451
|
+
wasm.windowSetTabCapture(retptr, window_id, enabled);
|
|
2452
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2453
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2454
|
+
if (r1) {
|
|
2455
|
+
throw takeFromExternrefTable0(r0);
|
|
2456
|
+
}
|
|
2457
|
+
} finally {
|
|
2458
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
/**
|
|
2463
|
+
* @param {number} window_id
|
|
2464
|
+
* @param {string} title
|
|
2465
|
+
*/
|
|
2466
|
+
export function windowSetTitle(window_id, title) {
|
|
2467
|
+
try {
|
|
2468
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
2469
|
+
const val2 = +window_id;
|
|
2470
|
+
const ptr0 = passStringToWasm0(title, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2471
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2472
|
+
wasm.windowSetTitle(retptr, val2, ptr0, len0);
|
|
2473
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2474
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2475
|
+
if (r1) {
|
|
2476
|
+
throw takeFromExternrefTable0(r0);
|
|
2477
|
+
}
|
|
2478
|
+
} finally {
|
|
2479
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2480
|
+
}
|
|
2481
|
+
}
|
|
2482
|
+
function __wbg_get_imports() {
|
|
2483
|
+
const import0 = {
|
|
2484
|
+
__proto__: null,
|
|
2485
|
+
__wbg_Error_208446807d0d1e30: function(arg0, arg1) {
|
|
2486
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
2487
|
+
return ret;
|
|
2488
|
+
},
|
|
2489
|
+
__wbg_Number_ff192a72a0dcdf6d: function(arg0) {
|
|
2490
|
+
const ret = Number(arg0);
|
|
2491
|
+
return ret;
|
|
2492
|
+
},
|
|
2493
|
+
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
2494
|
+
const ret = String(arg1);
|
|
2495
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2496
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2497
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
2498
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
2499
|
+
},
|
|
2500
|
+
__wbg_Window_1352d0e35ea46704: function(arg0) {
|
|
2501
|
+
const ret = arg0.Window;
|
|
2502
|
+
return ret;
|
|
2503
|
+
},
|
|
2504
|
+
__wbg_WorkerGlobalScope_e9f4792b65b36f4f: function(arg0) {
|
|
2505
|
+
const ret = arg0.WorkerGlobalScope;
|
|
2506
|
+
return ret;
|
|
2507
|
+
},
|
|
2508
|
+
__wbg___wbindgen_bigint_get_as_i64_11da4b52cd0aedef: function(arg0, arg1) {
|
|
2509
|
+
const v = arg1;
|
|
2510
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
2511
|
+
getDataViewMemory0().setBigInt64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
2512
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
2513
|
+
},
|
|
2514
|
+
__wbg___wbindgen_boolean_get_4f1baf9a00be3c74: function(arg0) {
|
|
2515
|
+
const v = arg0;
|
|
2516
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
2517
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
2518
|
+
},
|
|
2519
|
+
__wbg___wbindgen_debug_string_f249a2a76caa9a55: function(arg0, arg1) {
|
|
2520
|
+
const ret = debugString(arg1);
|
|
2521
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2522
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2523
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
2524
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
2525
|
+
},
|
|
2526
|
+
__wbg___wbindgen_in_3f58a9d3b3a7eed2: function(arg0, arg1) {
|
|
2527
|
+
const ret = arg0 in arg1;
|
|
2528
|
+
return ret;
|
|
2529
|
+
},
|
|
2530
|
+
__wbg___wbindgen_is_bigint_5fa10641e039d3ef: function(arg0) {
|
|
2531
|
+
const ret = typeof(arg0) === 'bigint';
|
|
2532
|
+
return ret;
|
|
2533
|
+
},
|
|
2534
|
+
__wbg___wbindgen_is_function_741ff2bb612836f5: function(arg0) {
|
|
2535
|
+
const ret = typeof(arg0) === 'function';
|
|
2536
|
+
return ret;
|
|
2537
|
+
},
|
|
2538
|
+
__wbg___wbindgen_is_null_c22311b1cc228e3a: function(arg0) {
|
|
2539
|
+
const ret = arg0 === null;
|
|
2540
|
+
return ret;
|
|
2541
|
+
},
|
|
2542
|
+
__wbg___wbindgen_is_object_8b968c3ab8e96595: function(arg0) {
|
|
2543
|
+
const val = arg0;
|
|
2544
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2545
|
+
return ret;
|
|
2546
|
+
},
|
|
2547
|
+
__wbg___wbindgen_is_string_fc456fee5d3317de: function(arg0) {
|
|
2548
|
+
const ret = typeof(arg0) === 'string';
|
|
2549
|
+
return ret;
|
|
2550
|
+
},
|
|
2551
|
+
__wbg___wbindgen_is_undefined_be5b34249ff1fc15: function(arg0) {
|
|
2552
|
+
const ret = arg0 === undefined;
|
|
2553
|
+
return ret;
|
|
2554
|
+
},
|
|
2555
|
+
__wbg___wbindgen_jsval_eq_38d7bfbe4cc84039: function(arg0, arg1) {
|
|
2556
|
+
const ret = arg0 === arg1;
|
|
2557
|
+
return ret;
|
|
2558
|
+
},
|
|
2559
|
+
__wbg___wbindgen_jsval_loose_eq_b2f214e2e4b30e36: function(arg0, arg1) {
|
|
2560
|
+
const ret = arg0 == arg1;
|
|
2561
|
+
return ret;
|
|
2562
|
+
},
|
|
2563
|
+
__wbg___wbindgen_number_get_934b640d0889af78: function(arg0, arg1) {
|
|
2564
|
+
const obj = arg1;
|
|
2565
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
2566
|
+
getDataViewMemory0().setFloat64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
2567
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
2568
|
+
},
|
|
2569
|
+
__wbg___wbindgen_string_get_7ce8eee7fd327545: function(arg0, arg1) {
|
|
2570
|
+
const obj = arg1;
|
|
2571
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2572
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2573
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2574
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
2575
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
2576
|
+
},
|
|
2577
|
+
__wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
|
|
2578
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2579
|
+
},
|
|
2580
|
+
__wbg__wbg_cb_unref_09736879a3f67559: function(arg0) {
|
|
2581
|
+
arg0._wbg_cb_unref();
|
|
2582
|
+
},
|
|
2583
|
+
__wbg_activeElement_6c30fe7fda33ef51: function(arg0) {
|
|
2584
|
+
const ret = arg0.activeElement;
|
|
2585
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2586
|
+
},
|
|
2587
|
+
__wbg_addEventListener_847fd86b8c33ec43: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2588
|
+
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
2589
|
+
}, arguments); },
|
|
2590
|
+
__wbg_altKey_423da1d67b588078: function(arg0) {
|
|
2591
|
+
const ret = arg0.altKey;
|
|
2592
|
+
return ret;
|
|
2593
|
+
},
|
|
2594
|
+
__wbg_appendChild_dbf7ad2f48413560: function() { return handleError(function (arg0, arg1) {
|
|
2595
|
+
const ret = arg0.appendChild(arg1);
|
|
2596
|
+
return ret;
|
|
2597
|
+
}, arguments); },
|
|
2598
|
+
__wbg_beginComputePass_31742703ea08718a: function(arg0, arg1) {
|
|
2599
|
+
const ret = arg0.beginComputePass(arg1);
|
|
2600
|
+
return ret;
|
|
2601
|
+
},
|
|
2602
|
+
__wbg_beginRenderPass_3e7718c12c5a4cc3: function() { return handleError(function (arg0, arg1) {
|
|
2603
|
+
const ret = arg0.beginRenderPass(arg1);
|
|
2604
|
+
return ret;
|
|
2605
|
+
}, arguments); },
|
|
2606
|
+
__wbg_blur_c2856e0bcfec2cc0: function() { return handleError(function (arg0) {
|
|
2607
|
+
arg0.blur();
|
|
2608
|
+
}, arguments); },
|
|
2609
|
+
__wbg_body_5f971cbc6950ca4f: function(arg0) {
|
|
2610
|
+
const ret = arg0.body;
|
|
2611
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2612
|
+
},
|
|
2613
|
+
__wbg_buffer_aca05a93c046db1a: function(arg0) {
|
|
2614
|
+
const ret = arg0.buffer;
|
|
2615
|
+
return ret;
|
|
2616
|
+
},
|
|
2617
|
+
__wbg_button_653210370515dd71: function(arg0) {
|
|
2618
|
+
const ret = arg0.button;
|
|
2619
|
+
return ret;
|
|
2620
|
+
},
|
|
2621
|
+
__wbg_call_40b008ba32f73991: function() { return handleError(function (arg0, arg1) {
|
|
2622
|
+
const ret = arg0.call(arg1);
|
|
2623
|
+
return ret;
|
|
2624
|
+
}, arguments); },
|
|
2625
|
+
__wbg_call_a410eb4b59ed5965: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2626
|
+
const ret = arg0.call(arg1, arg2);
|
|
2627
|
+
return ret;
|
|
2628
|
+
}, arguments); },
|
|
2629
|
+
__wbg_clientHeight_b40e8971aed9fa2b: function(arg0) {
|
|
2630
|
+
const ret = arg0.clientHeight;
|
|
2631
|
+
return ret;
|
|
2632
|
+
},
|
|
2633
|
+
__wbg_clientWidth_269ea87f17b863bf: function(arg0) {
|
|
2634
|
+
const ret = arg0.clientWidth;
|
|
2635
|
+
return ret;
|
|
2636
|
+
},
|
|
2637
|
+
__wbg_clientX_cd1ef0f7b8b41a09: function(arg0) {
|
|
2638
|
+
const ret = arg0.clientX;
|
|
2639
|
+
return ret;
|
|
2640
|
+
},
|
|
2641
|
+
__wbg_clientY_946c11bce7e85254: function(arg0) {
|
|
2642
|
+
const ret = arg0.clientY;
|
|
2643
|
+
return ret;
|
|
2644
|
+
},
|
|
2645
|
+
__wbg_code_f0359f3273037430: function(arg0, arg1) {
|
|
2646
|
+
const ret = arg1.code;
|
|
2647
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2648
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2649
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
2650
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
2651
|
+
},
|
|
2652
|
+
__wbg_configure_0e3a87b2b3ef06fc: function() { return handleError(function (arg0, arg1) {
|
|
2653
|
+
arg0.configure(arg1);
|
|
2654
|
+
}, arguments); },
|
|
2655
|
+
__wbg_copyTextureToTexture_81c0159f11654313: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2656
|
+
arg0.copyTextureToTexture(arg1, arg2, arg3);
|
|
2657
|
+
}, arguments); },
|
|
2658
|
+
__wbg_createBindGroupLayout_b05b14dff98f693e: function() { return handleError(function (arg0, arg1) {
|
|
2659
|
+
const ret = arg0.createBindGroupLayout(arg1);
|
|
2660
|
+
return ret;
|
|
2661
|
+
}, arguments); },
|
|
2662
|
+
__wbg_createBindGroup_dd602247ba7de53f: function(arg0, arg1) {
|
|
2663
|
+
const ret = arg0.createBindGroup(arg1);
|
|
2664
|
+
return ret;
|
|
2665
|
+
},
|
|
2666
|
+
__wbg_createBuffer_76e932bf32108ee2: function() { return handleError(function (arg0, arg1) {
|
|
2667
|
+
const ret = arg0.createBuffer(arg1);
|
|
2668
|
+
return ret;
|
|
2669
|
+
}, arguments); },
|
|
2670
|
+
__wbg_createCommandEncoder_9b0d0f644b01b53d: function(arg0, arg1) {
|
|
2671
|
+
const ret = arg0.createCommandEncoder(arg1);
|
|
2672
|
+
return ret;
|
|
2673
|
+
},
|
|
2674
|
+
__wbg_createElement_de4a31ed2fb252be: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2675
|
+
const ret = arg0.createElement(getStringFromWasm0(arg1, arg2));
|
|
2676
|
+
return ret;
|
|
2677
|
+
}, arguments); },
|
|
2678
|
+
__wbg_createPipelineLayout_10a02d78a5e801aa: function(arg0, arg1) {
|
|
2679
|
+
const ret = arg0.createPipelineLayout(arg1);
|
|
2680
|
+
return ret;
|
|
2681
|
+
},
|
|
2682
|
+
__wbg_createRenderPipeline_0061a65fcc8e8719: function() { return handleError(function (arg0, arg1) {
|
|
2683
|
+
const ret = arg0.createRenderPipeline(arg1);
|
|
2684
|
+
return ret;
|
|
2685
|
+
}, arguments); },
|
|
2686
|
+
__wbg_createSampler_dfafeaada8a50f77: function(arg0, arg1) {
|
|
2687
|
+
const ret = arg0.createSampler(arg1);
|
|
2688
|
+
return ret;
|
|
2689
|
+
},
|
|
2690
|
+
__wbg_createShaderModule_c951549f9d218b6a: function(arg0, arg1) {
|
|
2691
|
+
const ret = arg0.createShaderModule(arg1);
|
|
2692
|
+
return ret;
|
|
2693
|
+
},
|
|
2694
|
+
__wbg_createTexture_49bd2bfcd4e1e9c2: function() { return handleError(function (arg0, arg1) {
|
|
2695
|
+
const ret = arg0.createTexture(arg1);
|
|
2696
|
+
return ret;
|
|
2697
|
+
}, arguments); },
|
|
2698
|
+
__wbg_createView_68139d09ba578b66: function() { return handleError(function (arg0, arg1) {
|
|
2699
|
+
const ret = arg0.createView(arg1);
|
|
2700
|
+
return ret;
|
|
2701
|
+
}, arguments); },
|
|
2702
|
+
__wbg_ctrlKey_b7978e4cf78dc62b: function(arg0) {
|
|
2703
|
+
const ret = arg0.ctrlKey;
|
|
2704
|
+
return ret;
|
|
2705
|
+
},
|
|
2706
|
+
__wbg_data_6419bc2d9a3951a4: function(arg0, arg1) {
|
|
2707
|
+
const ret = arg1.data;
|
|
2708
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2709
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2710
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
2711
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
2712
|
+
},
|
|
2713
|
+
__wbg_data_fb9a3ebd8ff4b3fd: function(arg0, arg1) {
|
|
2714
|
+
const ret = arg1.data;
|
|
2715
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2716
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2717
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
2718
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
2719
|
+
},
|
|
2720
|
+
__wbg_destroy_5c63d60a4ce171f5: function(arg0) {
|
|
2721
|
+
arg0.destroy();
|
|
2722
|
+
},
|
|
2723
|
+
__wbg_destroy_cc5bf33a04815475: function(arg0) {
|
|
2724
|
+
arg0.destroy();
|
|
2725
|
+
},
|
|
2726
|
+
__wbg_devicePixelRatio_90ee4024cee5d5f4: function(arg0) {
|
|
2727
|
+
const ret = arg0.devicePixelRatio;
|
|
2728
|
+
return ret;
|
|
2729
|
+
},
|
|
2730
|
+
__wbg_disconnect_cfb0d06aca1c1b50: function(arg0) {
|
|
2731
|
+
arg0.disconnect();
|
|
2732
|
+
},
|
|
2733
|
+
__wbg_dispatchWorkgroups_84e3afede9542ffe: function(arg0, arg1, arg2, arg3) {
|
|
2734
|
+
arg0.dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
|
|
2735
|
+
},
|
|
2736
|
+
__wbg_document_3b5c3071b43e97ee: function(arg0) {
|
|
2737
|
+
const ret = arg0.document;
|
|
2738
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2739
|
+
},
|
|
2740
|
+
__wbg_done_57e08d0be6e30c02: function(arg0) {
|
|
2741
|
+
const ret = arg0.done;
|
|
2742
|
+
return ret;
|
|
2743
|
+
},
|
|
2744
|
+
__wbg_drawIndexed_a9f3f3b50747fecf: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2745
|
+
arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
|
|
2746
|
+
},
|
|
2747
|
+
__wbg_draw_58cc6aabf299781c: function(arg0, arg1, arg2, arg3, arg4) {
|
|
2748
|
+
arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
2749
|
+
},
|
|
2750
|
+
__wbg_end_39838302f918fcd7: function(arg0) {
|
|
2751
|
+
arg0.end();
|
|
2752
|
+
},
|
|
2753
|
+
__wbg_end_df1851506654a0d6: function(arg0) {
|
|
2754
|
+
arg0.end();
|
|
2755
|
+
},
|
|
2756
|
+
__wbg_entries_7bb1459bd9b5c2b9: function(arg0) {
|
|
2757
|
+
const ret = Object.entries(arg0);
|
|
2758
|
+
return ret;
|
|
2759
|
+
},
|
|
2760
|
+
__wbg_finish_1f441b2d9fcf60d0: function(arg0, arg1) {
|
|
2761
|
+
const ret = arg0.finish(arg1);
|
|
2762
|
+
return ret;
|
|
2763
|
+
},
|
|
2764
|
+
__wbg_finish_d4f7f2d108f44fc0: function(arg0) {
|
|
2765
|
+
const ret = arg0.finish();
|
|
2766
|
+
return ret;
|
|
2767
|
+
},
|
|
2768
|
+
__wbg_focus_d5e2fdbdb56416f0: function() { return handleError(function (arg0) {
|
|
2769
|
+
arg0.focus();
|
|
2770
|
+
}, arguments); },
|
|
2771
|
+
__wbg_getAttribute_c7b80d4010284561: function(arg0, arg1, arg2, arg3) {
|
|
2772
|
+
const ret = arg1.getAttribute(getStringFromWasm0(arg2, arg3));
|
|
2773
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2774
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2775
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
2776
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
2777
|
+
},
|
|
2778
|
+
__wbg_getBoundingClientRect_329ca748ec918b0c: function(arg0) {
|
|
2779
|
+
const ret = arg0.getBoundingClientRect();
|
|
2780
|
+
return ret;
|
|
2781
|
+
},
|
|
2782
|
+
__wbg_getContext_1938edb9a972f63d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2783
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
2784
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2785
|
+
}, arguments); },
|
|
2786
|
+
__wbg_getContext_d93f904b714852ae: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2787
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
2788
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2789
|
+
}, arguments); },
|
|
2790
|
+
__wbg_getCurrentTexture_d7f9c9a7f0667027: function() { return handleError(function (arg0) {
|
|
2791
|
+
const ret = arg0.getCurrentTexture();
|
|
2792
|
+
return ret;
|
|
2793
|
+
}, arguments); },
|
|
2794
|
+
__wbg_getElementById_7ee213db584f37b0: function(arg0, arg1, arg2) {
|
|
2795
|
+
const ret = arg0.getElementById(getStringFromWasm0(arg1, arg2));
|
|
2796
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2797
|
+
},
|
|
2798
|
+
__wbg_getMappedRange_040bb1c546da644f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2799
|
+
const ret = arg0.getMappedRange(arg1, arg2);
|
|
2800
|
+
return ret;
|
|
2801
|
+
}, arguments); },
|
|
2802
|
+
__wbg_getPreferredCanvasFormat_2a0a2628959bb15a: function(arg0) {
|
|
2803
|
+
const ret = arg0.getPreferredCanvasFormat();
|
|
2804
|
+
return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 96) - 1;
|
|
2805
|
+
},
|
|
2806
|
+
__wbg_get_0c55869fe53c7d14: function(arg0, arg1) {
|
|
2807
|
+
const ret = arg0[arg1 >>> 0];
|
|
2808
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2809
|
+
},
|
|
2810
|
+
__wbg_get_635eea311fa1a291: function() { return handleError(function (arg0, arg1) {
|
|
2811
|
+
const ret = Reflect.get(arg0, arg1);
|
|
2812
|
+
return ret;
|
|
2813
|
+
}, arguments); },
|
|
2814
|
+
__wbg_get_d7176cfb76d71114: function(arg0, arg1) {
|
|
2815
|
+
const ret = arg0[arg1 >>> 0];
|
|
2816
|
+
return ret;
|
|
2817
|
+
},
|
|
2818
|
+
__wbg_get_unchecked_e6325ad374eff861: function(arg0, arg1) {
|
|
2819
|
+
const ret = arg0[arg1 >>> 0];
|
|
2820
|
+
return ret;
|
|
2821
|
+
},
|
|
2822
|
+
__wbg_get_with_ref_key_fc601247060b7204: function(arg0, arg1) {
|
|
2823
|
+
const ret = arg0[arg1];
|
|
2824
|
+
return ret;
|
|
2825
|
+
},
|
|
2826
|
+
__wbg_gpu_a716957d8775f587: function(arg0) {
|
|
2827
|
+
const ret = arg0.gpu;
|
|
2828
|
+
return ret;
|
|
2829
|
+
},
|
|
2830
|
+
__wbg_hasAttribute_3f271bd99815d507: function(arg0, arg1, arg2) {
|
|
2831
|
+
const ret = arg0.hasAttribute(getStringFromWasm0(arg1, arg2));
|
|
2832
|
+
return ret;
|
|
2833
|
+
},
|
|
2834
|
+
__wbg_height_ac6f1c3f49c13fe2: function(arg0) {
|
|
2835
|
+
const ret = arg0.height;
|
|
2836
|
+
return ret;
|
|
2837
|
+
},
|
|
2838
|
+
__wbg_height_ce5f2b5901ba05ab: function(arg0) {
|
|
2839
|
+
const ret = arg0.height;
|
|
2840
|
+
return ret;
|
|
2841
|
+
},
|
|
2842
|
+
__wbg_inputType_871ec3c14b5b9f6a: function(arg0, arg1) {
|
|
2843
|
+
const ret = arg1.inputType;
|
|
2844
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2845
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2846
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
2847
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
2848
|
+
},
|
|
2849
|
+
__wbg_instanceof_ArrayBuffer_12cdaa4161423e6b: function(arg0) {
|
|
2850
|
+
let result;
|
|
2851
|
+
try {
|
|
2852
|
+
result = arg0 instanceof ArrayBuffer;
|
|
2853
|
+
} catch (_) {
|
|
2854
|
+
result = false;
|
|
2855
|
+
}
|
|
2856
|
+
const ret = result;
|
|
2857
|
+
return ret;
|
|
2858
|
+
},
|
|
2859
|
+
__wbg_instanceof_GpuAdapter_f03f6b49be5ddfaf: function(arg0) {
|
|
2860
|
+
let result;
|
|
2861
|
+
try {
|
|
2862
|
+
result = arg0 instanceof GPUAdapter;
|
|
2863
|
+
} catch (_) {
|
|
2864
|
+
result = false;
|
|
2865
|
+
}
|
|
2866
|
+
const ret = result;
|
|
2867
|
+
return ret;
|
|
2868
|
+
},
|
|
2869
|
+
__wbg_instanceof_GpuCanvasContext_3e9180150f32548a: function(arg0) {
|
|
2870
|
+
let result;
|
|
2871
|
+
try {
|
|
2872
|
+
result = arg0 instanceof GPUCanvasContext;
|
|
2873
|
+
} catch (_) {
|
|
2874
|
+
result = false;
|
|
2875
|
+
}
|
|
2876
|
+
const ret = result;
|
|
2877
|
+
return ret;
|
|
2878
|
+
},
|
|
2879
|
+
__wbg_instanceof_HtmlCanvasElement_89f280683e987b9e: function(arg0) {
|
|
2880
|
+
let result;
|
|
2881
|
+
try {
|
|
2882
|
+
result = arg0 instanceof HTMLCanvasElement;
|
|
2883
|
+
} catch (_) {
|
|
2884
|
+
result = false;
|
|
2885
|
+
}
|
|
2886
|
+
const ret = result;
|
|
2887
|
+
return ret;
|
|
2888
|
+
},
|
|
2889
|
+
__wbg_instanceof_HtmlTextAreaElement_37c6efee878106d5: function(arg0) {
|
|
2890
|
+
let result;
|
|
2891
|
+
try {
|
|
2892
|
+
result = arg0 instanceof HTMLTextAreaElement;
|
|
2893
|
+
} catch (_) {
|
|
2894
|
+
result = false;
|
|
2895
|
+
}
|
|
2896
|
+
const ret = result;
|
|
2897
|
+
return ret;
|
|
2898
|
+
},
|
|
2899
|
+
__wbg_instanceof_InputEvent_935e9638cd72a0e6: function(arg0) {
|
|
2900
|
+
let result;
|
|
2901
|
+
try {
|
|
2902
|
+
result = arg0 instanceof InputEvent;
|
|
2903
|
+
} catch (_) {
|
|
2904
|
+
result = false;
|
|
2905
|
+
}
|
|
2906
|
+
const ret = result;
|
|
2907
|
+
return ret;
|
|
2908
|
+
},
|
|
2909
|
+
__wbg_instanceof_Map_0b4fc8b62e73f163: function(arg0) {
|
|
2910
|
+
let result;
|
|
2911
|
+
try {
|
|
2912
|
+
result = arg0 instanceof Map;
|
|
2913
|
+
} catch (_) {
|
|
2914
|
+
result = false;
|
|
2915
|
+
}
|
|
2916
|
+
const ret = result;
|
|
2917
|
+
return ret;
|
|
2918
|
+
},
|
|
2919
|
+
__wbg_instanceof_Uint8Array_d7aeb0dcb3108fea: function(arg0) {
|
|
2920
|
+
let result;
|
|
2921
|
+
try {
|
|
2922
|
+
result = arg0 instanceof Uint8Array;
|
|
2923
|
+
} catch (_) {
|
|
2924
|
+
result = false;
|
|
2925
|
+
}
|
|
2926
|
+
const ret = result;
|
|
2927
|
+
return ret;
|
|
2928
|
+
},
|
|
2929
|
+
__wbg_instanceof_Window_5cf453f5639aa1a2: function(arg0) {
|
|
2930
|
+
let result;
|
|
2931
|
+
try {
|
|
2932
|
+
result = arg0 instanceof Window;
|
|
2933
|
+
} catch (_) {
|
|
2934
|
+
result = false;
|
|
2935
|
+
}
|
|
2936
|
+
const ret = result;
|
|
2937
|
+
return ret;
|
|
2938
|
+
},
|
|
2939
|
+
__wbg_isArray_bcf1376d0d732d08: function(arg0) {
|
|
2940
|
+
const ret = Array.isArray(arg0);
|
|
2941
|
+
return ret;
|
|
2942
|
+
},
|
|
2943
|
+
__wbg_isComposing_4b9450ae90c4e806: function(arg0) {
|
|
2944
|
+
const ret = arg0.isComposing;
|
|
2945
|
+
return ret;
|
|
2946
|
+
},
|
|
2947
|
+
__wbg_isComposing_b1e74068b6ff27e2: function(arg0) {
|
|
2948
|
+
const ret = arg0.isComposing;
|
|
2949
|
+
return ret;
|
|
2950
|
+
},
|
|
2951
|
+
__wbg_isSafeInteger_1a35ba4d31e71d38: function(arg0) {
|
|
2952
|
+
const ret = Number.isSafeInteger(arg0);
|
|
2953
|
+
return ret;
|
|
2954
|
+
},
|
|
2955
|
+
__wbg_iterator_e4c5e8f68ada7b58: function() {
|
|
2956
|
+
const ret = Symbol.iterator;
|
|
2957
|
+
return ret;
|
|
2958
|
+
},
|
|
2959
|
+
__wbg_key_76125a528069feff: function(arg0, arg1) {
|
|
2960
|
+
const ret = arg1.key;
|
|
2961
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2962
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2963
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
2964
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
2965
|
+
},
|
|
2966
|
+
__wbg_label_b150f92fe28ae516: function(arg0, arg1) {
|
|
2967
|
+
const ret = arg1.label;
|
|
2968
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2969
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2970
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
2971
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
2972
|
+
},
|
|
2973
|
+
__wbg_left_9df47701ff317a35: function(arg0) {
|
|
2974
|
+
const ret = arg0.left;
|
|
2975
|
+
return ret;
|
|
2976
|
+
},
|
|
2977
|
+
__wbg_length_186163212ffe79c3: function(arg0) {
|
|
2978
|
+
const ret = arg0.length;
|
|
2979
|
+
return ret;
|
|
2980
|
+
},
|
|
2981
|
+
__wbg_length_b03a0fabb109b1e9: function(arg0) {
|
|
2982
|
+
const ret = arg0.length;
|
|
2983
|
+
return ret;
|
|
2984
|
+
},
|
|
2985
|
+
__wbg_mapAsync_7767a9f33865861e: function(arg0, arg1, arg2, arg3) {
|
|
2986
|
+
const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
|
|
2987
|
+
return ret;
|
|
2988
|
+
},
|
|
2989
|
+
__wbg_metaKey_33c588e07fd74724: function(arg0) {
|
|
2990
|
+
const ret = arg0.metaKey;
|
|
2991
|
+
return ret;
|
|
2992
|
+
},
|
|
2993
|
+
__wbg_navigator_9641ab32fa612dd1: function(arg0) {
|
|
2994
|
+
const ret = arg0.navigator;
|
|
2995
|
+
return ret;
|
|
2996
|
+
},
|
|
2997
|
+
__wbg_navigator_c17f443a6fe5d38d: function(arg0) {
|
|
2998
|
+
const ret = arg0.navigator;
|
|
2999
|
+
return ret;
|
|
3000
|
+
},
|
|
3001
|
+
__wbg_new_13de428334042d26: function(arg0) {
|
|
3002
|
+
const ret = new Uint8Array(arg0);
|
|
3003
|
+
return ret;
|
|
3004
|
+
},
|
|
3005
|
+
__wbg_new_37eb45aaf5eeb820: function() {
|
|
3006
|
+
const ret = new Array();
|
|
3007
|
+
return ret;
|
|
3008
|
+
},
|
|
3009
|
+
__wbg_new_7075786089b89c5e: function() {
|
|
3010
|
+
const ret = new Map();
|
|
3011
|
+
return ret;
|
|
3012
|
+
},
|
|
3013
|
+
__wbg_new_bdf613c6b0b3d702: function() { return handleError(function (arg0) {
|
|
3014
|
+
const ret = new ResizeObserver(arg0);
|
|
3015
|
+
return ret;
|
|
3016
|
+
}, arguments); },
|
|
3017
|
+
__wbg_new_cd4348290afae586: function() {
|
|
3018
|
+
const ret = new Object();
|
|
3019
|
+
return ret;
|
|
3020
|
+
},
|
|
3021
|
+
__wbg_new_from_slice_b8daf545a41c6aa0: function(arg0, arg1) {
|
|
3022
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
3023
|
+
return ret;
|
|
3024
|
+
},
|
|
3025
|
+
__wbg_new_typed_e09da9dae6ee5935: function(arg0, arg1) {
|
|
3026
|
+
try {
|
|
3027
|
+
var state0 = {a: arg0, b: arg1};
|
|
3028
|
+
var cb0 = (arg0, arg1) => {
|
|
3029
|
+
const a = state0.a;
|
|
3030
|
+
state0.a = 0;
|
|
3031
|
+
try {
|
|
3032
|
+
return __wasm_bindgen_func_elem_746(a, state0.b, arg0, arg1);
|
|
3033
|
+
} finally {
|
|
3034
|
+
state0.a = a;
|
|
3035
|
+
}
|
|
3036
|
+
};
|
|
3037
|
+
const ret = new Promise(cb0);
|
|
3038
|
+
return ret;
|
|
3039
|
+
} finally {
|
|
3040
|
+
state0.a = 0;
|
|
3041
|
+
}
|
|
3042
|
+
},
|
|
3043
|
+
__wbg_new_with_byte_offset_and_length_3cd32055a417f095: function(arg0, arg1, arg2) {
|
|
3044
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
3045
|
+
return ret;
|
|
3046
|
+
},
|
|
3047
|
+
__wbg_next_178c1651c11432b3: function(arg0) {
|
|
3048
|
+
const ret = arg0.next;
|
|
3049
|
+
return ret;
|
|
3050
|
+
},
|
|
3051
|
+
__wbg_next_af5ac6a08bb0a717: function() { return handleError(function (arg0) {
|
|
3052
|
+
const ret = arg0.next();
|
|
3053
|
+
return ret;
|
|
3054
|
+
}, arguments); },
|
|
3055
|
+
__wbg_observe_0bd2cd721b4e32da: function(arg0, arg1) {
|
|
3056
|
+
arg0.observe(arg1);
|
|
3057
|
+
},
|
|
3058
|
+
__wbg_onSubmittedWorkDone_a33e32762de21b3d: function(arg0) {
|
|
3059
|
+
const ret = arg0.onSubmittedWorkDone();
|
|
3060
|
+
return ret;
|
|
3061
|
+
},
|
|
3062
|
+
__wbg_pointerId_79742963a7afa662: function(arg0) {
|
|
3063
|
+
const ret = arg0.pointerId;
|
|
3064
|
+
return ret;
|
|
3065
|
+
},
|
|
3066
|
+
__wbg_pointerType_c9fa8bdb617406a5: function(arg0, arg1) {
|
|
3067
|
+
const ret = arg1.pointerType;
|
|
3068
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3069
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3070
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
3071
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
3072
|
+
},
|
|
3073
|
+
__wbg_pressure_7f8a77640ff8cf66: function(arg0) {
|
|
3074
|
+
const ret = arg0.pressure;
|
|
3075
|
+
return ret;
|
|
3076
|
+
},
|
|
3077
|
+
__wbg_preventDefault_cfb06b02e7406899: function(arg0) {
|
|
3078
|
+
arg0.preventDefault();
|
|
3079
|
+
},
|
|
3080
|
+
__wbg_prototypesetcall_13162965d1fe7aa3: function(arg0, arg1, arg2) {
|
|
3081
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
3082
|
+
},
|
|
3083
|
+
__wbg_push_c9f4893fc209f768: function(arg0, arg1) {
|
|
3084
|
+
const ret = arg0.push(arg1);
|
|
3085
|
+
return ret;
|
|
3086
|
+
},
|
|
3087
|
+
__wbg_querySelectorAll_6c1bd81d448fb480: function() { return handleError(function (arg0, arg1, arg2) {
|
|
3088
|
+
const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
|
|
3089
|
+
return ret;
|
|
3090
|
+
}, arguments); },
|
|
3091
|
+
__wbg_queueMicrotask_1e8503a8a690f0a3: function(arg0) {
|
|
3092
|
+
const ret = arg0.queueMicrotask;
|
|
3093
|
+
return ret;
|
|
3094
|
+
},
|
|
3095
|
+
__wbg_queueMicrotask_4a1a4d8dd332373b: function(arg0) {
|
|
3096
|
+
queueMicrotask(arg0);
|
|
3097
|
+
},
|
|
3098
|
+
__wbg_queue_21d612a0122051a7: function(arg0) {
|
|
3099
|
+
const ret = arg0.queue;
|
|
3100
|
+
return ret;
|
|
3101
|
+
},
|
|
3102
|
+
__wbg_removeAttribute_735f25a801a701e1: function() { return handleError(function (arg0, arg1, arg2) {
|
|
3103
|
+
arg0.removeAttribute(getStringFromWasm0(arg1, arg2));
|
|
3104
|
+
}, arguments); },
|
|
3105
|
+
__wbg_removeEventListener_4e20bd5fac3de092: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3106
|
+
arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
3107
|
+
}, arguments); },
|
|
3108
|
+
__wbg_remove_8228e91d7ddbc755: function(arg0) {
|
|
3109
|
+
arg0.remove();
|
|
3110
|
+
},
|
|
3111
|
+
__wbg_repeat_f86675ce521ba584: function(arg0) {
|
|
3112
|
+
const ret = arg0.repeat;
|
|
3113
|
+
return ret;
|
|
3114
|
+
},
|
|
3115
|
+
__wbg_requestAdapter_3cddf363b0bc9baf: function(arg0, arg1) {
|
|
3116
|
+
const ret = arg0.requestAdapter(arg1);
|
|
3117
|
+
return ret;
|
|
3118
|
+
},
|
|
3119
|
+
__wbg_requestDevice_7dd355306bacbcd8: function(arg0, arg1) {
|
|
3120
|
+
const ret = arg0.requestDevice(arg1);
|
|
3121
|
+
return ret;
|
|
3122
|
+
},
|
|
3123
|
+
__wbg_resolve_dbf78ab4942478b0: function(arg0) {
|
|
3124
|
+
const ret = Promise.resolve(arg0);
|
|
3125
|
+
return ret;
|
|
3126
|
+
},
|
|
3127
|
+
__wbg_setAttribute_f75317b2b5cabfb4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3128
|
+
arg0.setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
3129
|
+
}, arguments); },
|
|
3130
|
+
__wbg_setBindGroup_0c629134cd7994be: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
3131
|
+
arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
3132
|
+
}, arguments); },
|
|
3133
|
+
__wbg_setBindGroup_3fecca142efa3bcf: function(arg0, arg1, arg2) {
|
|
3134
|
+
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
3135
|
+
},
|
|
3136
|
+
__wbg_setBindGroup_56b7e174bf97e525: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
3137
|
+
arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
3138
|
+
}, arguments); },
|
|
3139
|
+
__wbg_setBindGroup_af7eca394a335db6: function(arg0, arg1, arg2) {
|
|
3140
|
+
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
3141
|
+
},
|
|
3142
|
+
__wbg_setIndexBuffer_b194910ae0ffcbf4: function(arg0, arg1, arg2, arg3, arg4) {
|
|
3143
|
+
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
|
|
3144
|
+
},
|
|
3145
|
+
__wbg_setPipeline_5cbb15c634c129f9: function(arg0, arg1) {
|
|
3146
|
+
arg0.setPipeline(arg1);
|
|
3147
|
+
},
|
|
3148
|
+
__wbg_setPipeline_fb3b65583e919c05: function(arg0, arg1) {
|
|
3149
|
+
arg0.setPipeline(arg1);
|
|
3150
|
+
},
|
|
3151
|
+
__wbg_setPointerCapture_49f83ce093912db8: function() { return handleError(function (arg0, arg1) {
|
|
3152
|
+
arg0.setPointerCapture(arg1);
|
|
3153
|
+
}, arguments); },
|
|
3154
|
+
__wbg_setScissorRect_a9e5c3940a138618: function(arg0, arg1, arg2, arg3, arg4) {
|
|
3155
|
+
arg0.setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
3156
|
+
},
|
|
3157
|
+
__wbg_setVertexBuffer_9e822995adc29ff7: function(arg0, arg1, arg2, arg3, arg4) {
|
|
3158
|
+
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
|
|
3159
|
+
},
|
|
3160
|
+
__wbg_setViewport_678e829434bcd550: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
3161
|
+
arg0.setViewport(arg1, arg2, arg3, arg4, arg5, arg6);
|
|
3162
|
+
},
|
|
3163
|
+
__wbg_set_118fefd528ab0a79: function(arg0, arg1, arg2) {
|
|
3164
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
3165
|
+
},
|
|
3166
|
+
__wbg_set_2793479888329cb6: function() { return handleError(function (arg0, arg1, arg2) {
|
|
3167
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
3168
|
+
return ret;
|
|
3169
|
+
}, arguments); },
|
|
3170
|
+
__wbg_set_8282f7e0d2d01336: function(arg0, arg1, arg2) {
|
|
3171
|
+
const ret = arg0.set(arg1, arg2);
|
|
3172
|
+
return ret;
|
|
3173
|
+
},
|
|
3174
|
+
__wbg_set_a_04724b8e9602983f: function(arg0, arg1) {
|
|
3175
|
+
arg0.a = arg1;
|
|
3176
|
+
},
|
|
3177
|
+
__wbg_set_access_a26677ea579b9827: function(arg0, arg1) {
|
|
3178
|
+
arg0.access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
|
|
3179
|
+
},
|
|
3180
|
+
__wbg_set_address_mode_u_a0ac90c432351a83: function(arg0, arg1) {
|
|
3181
|
+
arg0.addressModeU = __wbindgen_enum_GpuAddressMode[arg1];
|
|
3182
|
+
},
|
|
3183
|
+
__wbg_set_address_mode_v_cfcbb90b57a00d03: function(arg0, arg1) {
|
|
3184
|
+
arg0.addressModeV = __wbindgen_enum_GpuAddressMode[arg1];
|
|
3185
|
+
},
|
|
3186
|
+
__wbg_set_address_mode_w_d4a9dca3c1b3bc26: function(arg0, arg1) {
|
|
3187
|
+
arg0.addressModeW = __wbindgen_enum_GpuAddressMode[arg1];
|
|
3188
|
+
},
|
|
3189
|
+
__wbg_set_alpha_b518ef26ff028578: function(arg0, arg1) {
|
|
3190
|
+
arg0.alpha = arg1;
|
|
3191
|
+
},
|
|
3192
|
+
__wbg_set_alpha_mode_18d8255128c1d6ad: function(arg0, arg1) {
|
|
3193
|
+
arg0.alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
|
|
3194
|
+
},
|
|
3195
|
+
__wbg_set_alpha_to_coverage_enabled_dfba3d5eed065685: function(arg0, arg1) {
|
|
3196
|
+
arg0.alphaToCoverageEnabled = arg1 !== 0;
|
|
3197
|
+
},
|
|
3198
|
+
__wbg_set_array_layer_count_302e91ee0a51e9bf: function(arg0, arg1) {
|
|
3199
|
+
arg0.arrayLayerCount = arg1 >>> 0;
|
|
3200
|
+
},
|
|
3201
|
+
__wbg_set_array_stride_d753ce193d419b90: function(arg0, arg1) {
|
|
3202
|
+
arg0.arrayStride = arg1;
|
|
3203
|
+
},
|
|
3204
|
+
__wbg_set_aspect_9cf46fca745efa26: function(arg0, arg1) {
|
|
3205
|
+
arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
3206
|
+
},
|
|
3207
|
+
__wbg_set_aspect_ade31f89d3de6e58: function(arg0, arg1) {
|
|
3208
|
+
arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
3209
|
+
},
|
|
3210
|
+
__wbg_set_attributes_9d0cb675a5641535: function(arg0, arg1) {
|
|
3211
|
+
arg0.attributes = arg1;
|
|
3212
|
+
},
|
|
3213
|
+
__wbg_set_b_5d9f859574f51948: function(arg0, arg1) {
|
|
3214
|
+
arg0.b = arg1;
|
|
3215
|
+
},
|
|
3216
|
+
__wbg_set_base_array_layer_41b3c54ab6cbf743: function(arg0, arg1) {
|
|
3217
|
+
arg0.baseArrayLayer = arg1 >>> 0;
|
|
3218
|
+
},
|
|
3219
|
+
__wbg_set_base_mip_level_8c4feef97debcf45: function(arg0, arg1) {
|
|
3220
|
+
arg0.baseMipLevel = arg1 >>> 0;
|
|
3221
|
+
},
|
|
3222
|
+
__wbg_set_beginning_of_pass_write_index_78b988069710e378: function(arg0, arg1) {
|
|
3223
|
+
arg0.beginningOfPassWriteIndex = arg1 >>> 0;
|
|
3224
|
+
},
|
|
3225
|
+
__wbg_set_beginning_of_pass_write_index_e1a19f1e17c27a5b: function(arg0, arg1) {
|
|
3226
|
+
arg0.beginningOfPassWriteIndex = arg1 >>> 0;
|
|
3227
|
+
},
|
|
3228
|
+
__wbg_set_bind_group_layouts_696a78eb8ea575a7: function(arg0, arg1) {
|
|
3229
|
+
arg0.bindGroupLayouts = arg1;
|
|
3230
|
+
},
|
|
3231
|
+
__wbg_set_binding_41e4629ba0ab1e15: function(arg0, arg1) {
|
|
3232
|
+
arg0.binding = arg1 >>> 0;
|
|
3233
|
+
},
|
|
3234
|
+
__wbg_set_binding_686734aa3b6d661a: function(arg0, arg1) {
|
|
3235
|
+
arg0.binding = arg1 >>> 0;
|
|
3236
|
+
},
|
|
3237
|
+
__wbg_set_blend_0b521a5b82deea62: function(arg0, arg1) {
|
|
3238
|
+
arg0.blend = arg1;
|
|
3239
|
+
},
|
|
3240
|
+
__wbg_set_buffer_096aade8f2a928c4: function(arg0, arg1) {
|
|
3241
|
+
arg0.buffer = arg1;
|
|
3242
|
+
},
|
|
3243
|
+
__wbg_set_buffer_a969c48ceb3725fc: function(arg0, arg1) {
|
|
3244
|
+
arg0.buffer = arg1;
|
|
3245
|
+
},
|
|
3246
|
+
__wbg_set_buffers_8cd4e6bd8afffb79: function(arg0, arg1) {
|
|
3247
|
+
arg0.buffers = arg1;
|
|
3248
|
+
},
|
|
3249
|
+
__wbg_set_bytes_per_row_2c857cc80bde0c9b: function(arg0, arg1) {
|
|
3250
|
+
arg0.bytesPerRow = arg1 >>> 0;
|
|
3251
|
+
},
|
|
3252
|
+
__wbg_set_clear_value_a318c4c54ce3352d: function(arg0, arg1) {
|
|
3253
|
+
arg0.clearValue = arg1;
|
|
3254
|
+
},
|
|
3255
|
+
__wbg_set_code_c589e461457e618a: function(arg0, arg1, arg2) {
|
|
3256
|
+
arg0.code = getStringFromWasm0(arg1, arg2);
|
|
3257
|
+
},
|
|
3258
|
+
__wbg_set_color_32a72bf07990fc70: function(arg0, arg1) {
|
|
3259
|
+
arg0.color = arg1;
|
|
3260
|
+
},
|
|
3261
|
+
__wbg_set_color_attachments_0a25003b47b51f24: function(arg0, arg1) {
|
|
3262
|
+
arg0.colorAttachments = arg1;
|
|
3263
|
+
},
|
|
3264
|
+
__wbg_set_compare_1c2d31e443c02926: function(arg0, arg1) {
|
|
3265
|
+
arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
3266
|
+
},
|
|
3267
|
+
__wbg_set_compare_c6150cfbafd67e7d: function(arg0, arg1) {
|
|
3268
|
+
arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
3269
|
+
},
|
|
3270
|
+
__wbg_set_count_c6e2dbfccb841c82: function(arg0, arg1) {
|
|
3271
|
+
arg0.count = arg1 >>> 0;
|
|
3272
|
+
},
|
|
3273
|
+
__wbg_set_cull_mode_5c54db0be9560cfb: function(arg0, arg1) {
|
|
3274
|
+
arg0.cullMode = __wbindgen_enum_GpuCullMode[arg1];
|
|
3275
|
+
},
|
|
3276
|
+
__wbg_set_d2d33b52458e984a: function(arg0, arg1, arg2) {
|
|
3277
|
+
arg0[arg1 >>> 0] = arg2;
|
|
3278
|
+
},
|
|
3279
|
+
__wbg_set_depth_bias_cc5140c13fda5d30: function(arg0, arg1) {
|
|
3280
|
+
arg0.depthBias = arg1;
|
|
3281
|
+
},
|
|
3282
|
+
__wbg_set_depth_bias_clamp_378bf5fbd3878a20: function(arg0, arg1) {
|
|
3283
|
+
arg0.depthBiasClamp = arg1;
|
|
3284
|
+
},
|
|
3285
|
+
__wbg_set_depth_bias_slope_scale_b8b9e43edf87f10c: function(arg0, arg1) {
|
|
3286
|
+
arg0.depthBiasSlopeScale = arg1;
|
|
3287
|
+
},
|
|
3288
|
+
__wbg_set_depth_clear_value_7cbf0d1e07a24090: function(arg0, arg1) {
|
|
3289
|
+
arg0.depthClearValue = arg1;
|
|
3290
|
+
},
|
|
3291
|
+
__wbg_set_depth_compare_4ffb78a8d44812f7: function(arg0, arg1) {
|
|
3292
|
+
arg0.depthCompare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
3293
|
+
},
|
|
3294
|
+
__wbg_set_depth_fail_op_6a4965c54c002ef5: function(arg0, arg1) {
|
|
3295
|
+
arg0.depthFailOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
3296
|
+
},
|
|
3297
|
+
__wbg_set_depth_load_op_bb287be4c3be7606: function(arg0, arg1) {
|
|
3298
|
+
arg0.depthLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
3299
|
+
},
|
|
3300
|
+
__wbg_set_depth_or_array_layers_7b05f169ca0b49fa: function(arg0, arg1) {
|
|
3301
|
+
arg0.depthOrArrayLayers = arg1 >>> 0;
|
|
3302
|
+
},
|
|
3303
|
+
__wbg_set_depth_read_only_e5f981e52d405233: function(arg0, arg1) {
|
|
3304
|
+
arg0.depthReadOnly = arg1 !== 0;
|
|
3305
|
+
},
|
|
3306
|
+
__wbg_set_depth_stencil_55a5646a1db9d0fd: function(arg0, arg1) {
|
|
3307
|
+
arg0.depthStencil = arg1;
|
|
3308
|
+
},
|
|
3309
|
+
__wbg_set_depth_stencil_attachment_9e3099686fc0416e: function(arg0, arg1) {
|
|
3310
|
+
arg0.depthStencilAttachment = arg1;
|
|
3311
|
+
},
|
|
3312
|
+
__wbg_set_depth_store_op_a1e621c47a1168da: function(arg0, arg1) {
|
|
3313
|
+
arg0.depthStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
3314
|
+
},
|
|
3315
|
+
__wbg_set_depth_write_enabled_0bc7f1ef1fabfad2: function(arg0, arg1) {
|
|
3316
|
+
arg0.depthWriteEnabled = arg1 !== 0;
|
|
3317
|
+
},
|
|
3318
|
+
__wbg_set_device_1be1ed791d5d1f50: function(arg0, arg1) {
|
|
3319
|
+
arg0.device = arg1;
|
|
3320
|
+
},
|
|
3321
|
+
__wbg_set_dimension_c3f6875233855537: function(arg0, arg1) {
|
|
3322
|
+
arg0.dimension = __wbindgen_enum_GpuTextureDimension[arg1];
|
|
3323
|
+
},
|
|
3324
|
+
__wbg_set_dimension_cb86a989eb240c77: function(arg0, arg1) {
|
|
3325
|
+
arg0.dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
3326
|
+
},
|
|
3327
|
+
__wbg_set_dst_factor_4bea084a3cbce210: function(arg0, arg1) {
|
|
3328
|
+
arg0.dstFactor = __wbindgen_enum_GpuBlendFactor[arg1];
|
|
3329
|
+
},
|
|
3330
|
+
__wbg_set_e4b9a833d288759a: function(arg0, arg1, arg2) {
|
|
3331
|
+
arg0[arg1] = arg2;
|
|
3332
|
+
},
|
|
3333
|
+
__wbg_set_end_of_pass_write_index_998e52c6f2f5c0b4: function(arg0, arg1) {
|
|
3334
|
+
arg0.endOfPassWriteIndex = arg1 >>> 0;
|
|
3335
|
+
},
|
|
3336
|
+
__wbg_set_end_of_pass_write_index_df5d40d88e8ee0cb: function(arg0, arg1) {
|
|
3337
|
+
arg0.endOfPassWriteIndex = arg1 >>> 0;
|
|
3338
|
+
},
|
|
3339
|
+
__wbg_set_entries_0098960fb01dcc36: function(arg0, arg1) {
|
|
3340
|
+
arg0.entries = arg1;
|
|
3341
|
+
},
|
|
3342
|
+
__wbg_set_entries_e082a26e286a67a2: function(arg0, arg1) {
|
|
3343
|
+
arg0.entries = arg1;
|
|
3344
|
+
},
|
|
3345
|
+
__wbg_set_entry_point_1fb186aef17c33c0: function(arg0, arg1, arg2) {
|
|
3346
|
+
arg0.entryPoint = getStringFromWasm0(arg1, arg2);
|
|
3347
|
+
},
|
|
3348
|
+
__wbg_set_entry_point_80b15a6c01be35ab: function(arg0, arg1, arg2) {
|
|
3349
|
+
arg0.entryPoint = getStringFromWasm0(arg1, arg2);
|
|
3350
|
+
},
|
|
3351
|
+
__wbg_set_external_texture_90c44353a61e701d: function(arg0, arg1) {
|
|
3352
|
+
arg0.externalTexture = arg1;
|
|
3353
|
+
},
|
|
3354
|
+
__wbg_set_fail_op_9904b4f2ca6d7184: function(arg0, arg1) {
|
|
3355
|
+
arg0.failOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
3356
|
+
},
|
|
3357
|
+
__wbg_set_format_0dbe3630c68c3047: function(arg0, arg1) {
|
|
3358
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
3359
|
+
},
|
|
3360
|
+
__wbg_set_format_1a2a2d9d60c1d776: function(arg0, arg1) {
|
|
3361
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
3362
|
+
},
|
|
3363
|
+
__wbg_set_format_3ff063c67ddb23ff: function(arg0, arg1) {
|
|
3364
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
3365
|
+
},
|
|
3366
|
+
__wbg_set_format_67fb1f12e8060e45: function(arg0, arg1) {
|
|
3367
|
+
arg0.format = __wbindgen_enum_GpuVertexFormat[arg1];
|
|
3368
|
+
},
|
|
3369
|
+
__wbg_set_format_77ed1981dea11127: function(arg0, arg1) {
|
|
3370
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
3371
|
+
},
|
|
3372
|
+
__wbg_set_format_7a86167ad3d6de3a: function(arg0, arg1) {
|
|
3373
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
3374
|
+
},
|
|
3375
|
+
__wbg_set_format_ea40cb6cee63dba0: function(arg0, arg1) {
|
|
3376
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
3377
|
+
},
|
|
3378
|
+
__wbg_set_fragment_fb559bd2d6266a1e: function(arg0, arg1) {
|
|
3379
|
+
arg0.fragment = arg1;
|
|
3380
|
+
},
|
|
3381
|
+
__wbg_set_front_face_89f4427bc1af2f95: function(arg0, arg1) {
|
|
3382
|
+
arg0.frontFace = __wbindgen_enum_GpuFrontFace[arg1];
|
|
3383
|
+
},
|
|
3384
|
+
__wbg_set_g_866d2123d12cb3ba: function(arg0, arg1) {
|
|
3385
|
+
arg0.g = arg1;
|
|
3386
|
+
},
|
|
3387
|
+
__wbg_set_has_dynamic_offset_b5ec92a074a53a32: function(arg0, arg1) {
|
|
3388
|
+
arg0.hasDynamicOffset = arg1 !== 0;
|
|
3389
|
+
},
|
|
3390
|
+
__wbg_set_height_6286895137de07fe: function(arg0, arg1) {
|
|
3391
|
+
arg0.height = arg1 >>> 0;
|
|
3392
|
+
},
|
|
3393
|
+
__wbg_set_height_ae0610d318c3428c: function(arg0, arg1) {
|
|
3394
|
+
arg0.height = arg1 >>> 0;
|
|
3395
|
+
},
|
|
3396
|
+
__wbg_set_height_ae24c2f7d580ae0a: function(arg0, arg1) {
|
|
3397
|
+
arg0.height = arg1 >>> 0;
|
|
3398
|
+
},
|
|
3399
|
+
__wbg_set_label_06943f7d2ec939b1: function(arg0, arg1, arg2) {
|
|
3400
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
3401
|
+
},
|
|
3402
|
+
__wbg_set_label_0840c4d2cdddf548: function(arg0, arg1, arg2) {
|
|
3403
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
3404
|
+
},
|
|
3405
|
+
__wbg_set_label_0c01da5ca418e5d1: function(arg0, arg1, arg2) {
|
|
3406
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
3407
|
+
},
|
|
3408
|
+
__wbg_set_label_14c3740af1f1f67c: function(arg0, arg1, arg2) {
|
|
3409
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
3410
|
+
},
|
|
3411
|
+
__wbg_set_label_2aa0dd855b76edf8: function(arg0, arg1, arg2) {
|
|
3412
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
3413
|
+
},
|
|
3414
|
+
__wbg_set_label_2d915bf479ac43cb: function(arg0, arg1, arg2) {
|
|
3415
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
3416
|
+
},
|
|
3417
|
+
__wbg_set_label_326345c618f7a525: function(arg0, arg1, arg2) {
|
|
3418
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
3419
|
+
},
|
|
3420
|
+
__wbg_set_label_6ffa7306dc27464c: function(arg0, arg1, arg2) {
|
|
3421
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
3422
|
+
},
|
|
3423
|
+
__wbg_set_label_a751cf0853cd289b: function(arg0, arg1, arg2) {
|
|
3424
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
3425
|
+
},
|
|
3426
|
+
__wbg_set_label_c7a604d1ff32e78c: function(arg0, arg1, arg2) {
|
|
3427
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
3428
|
+
},
|
|
3429
|
+
__wbg_set_label_d087def987d2ed69: function(arg0, arg1, arg2) {
|
|
3430
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
3431
|
+
},
|
|
3432
|
+
__wbg_set_label_d6597a4117341397: function(arg0, arg1, arg2) {
|
|
3433
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
3434
|
+
},
|
|
3435
|
+
__wbg_set_label_ecf2c916fac74b39: function(arg0, arg1, arg2) {
|
|
3436
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
3437
|
+
},
|
|
3438
|
+
__wbg_set_label_fe3b16accd2bd880: function(arg0, arg1, arg2) {
|
|
3439
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
3440
|
+
},
|
|
3441
|
+
__wbg_set_layout_130e7f3e0e524833: function(arg0, arg1) {
|
|
3442
|
+
arg0.layout = arg1;
|
|
3443
|
+
},
|
|
3444
|
+
__wbg_set_layout_f1e8e5e8ede02e36: function(arg0, arg1) {
|
|
3445
|
+
arg0.layout = arg1;
|
|
3446
|
+
},
|
|
3447
|
+
__wbg_set_load_op_0e4035dfc75317d5: function(arg0, arg1) {
|
|
3448
|
+
arg0.loadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
3449
|
+
},
|
|
3450
|
+
__wbg_set_lod_max_clamp_85bd0b0ad02c2f4a: function(arg0, arg1) {
|
|
3451
|
+
arg0.lodMaxClamp = arg1;
|
|
3452
|
+
},
|
|
3453
|
+
__wbg_set_lod_min_clamp_094c0b0765ae8be6: function(arg0, arg1) {
|
|
3454
|
+
arg0.lodMinClamp = arg1;
|
|
3455
|
+
},
|
|
3456
|
+
__wbg_set_mag_filter_ea5ef702253bbf4b: function(arg0, arg1) {
|
|
3457
|
+
arg0.magFilter = __wbindgen_enum_GpuFilterMode[arg1];
|
|
3458
|
+
},
|
|
3459
|
+
__wbg_set_mapped_at_creation_66ca67cc9912fd1a: function(arg0, arg1) {
|
|
3460
|
+
arg0.mappedAtCreation = arg1 !== 0;
|
|
3461
|
+
},
|
|
3462
|
+
__wbg_set_mask_518de87f891346e1: function(arg0, arg1) {
|
|
3463
|
+
arg0.mask = arg1 >>> 0;
|
|
3464
|
+
},
|
|
3465
|
+
__wbg_set_max_anisotropy_2871acc198f8459b: function(arg0, arg1) {
|
|
3466
|
+
arg0.maxAnisotropy = arg1;
|
|
3467
|
+
},
|
|
3468
|
+
__wbg_set_min_binding_size_2c2cacd29e0e84e9: function(arg0, arg1) {
|
|
3469
|
+
arg0.minBindingSize = arg1;
|
|
3470
|
+
},
|
|
3471
|
+
__wbg_set_min_filter_6107d32c90588768: function(arg0, arg1) {
|
|
3472
|
+
arg0.minFilter = __wbindgen_enum_GpuFilterMode[arg1];
|
|
3473
|
+
},
|
|
3474
|
+
__wbg_set_mip_level_0312bd748303bd47: function(arg0, arg1) {
|
|
3475
|
+
arg0.mipLevel = arg1 >>> 0;
|
|
3476
|
+
},
|
|
3477
|
+
__wbg_set_mip_level_count_4405d22e61d5fca7: function(arg0, arg1) {
|
|
3478
|
+
arg0.mipLevelCount = arg1 >>> 0;
|
|
3479
|
+
},
|
|
3480
|
+
__wbg_set_mip_level_count_ec93f6d12667f783: function(arg0, arg1) {
|
|
3481
|
+
arg0.mipLevelCount = arg1 >>> 0;
|
|
3482
|
+
},
|
|
3483
|
+
__wbg_set_mipmap_filter_5f86af82d5e2a57d: function(arg0, arg1) {
|
|
3484
|
+
arg0.mipmapFilter = __wbindgen_enum_GpuMipmapFilterMode[arg1];
|
|
3485
|
+
},
|
|
3486
|
+
__wbg_set_module_23c340f9ba36d2ba: function(arg0, arg1) {
|
|
3487
|
+
arg0.module = arg1;
|
|
3488
|
+
},
|
|
3489
|
+
__wbg_set_module_8d40fe0ad4839034: function(arg0, arg1) {
|
|
3490
|
+
arg0.module = arg1;
|
|
3491
|
+
},
|
|
3492
|
+
__wbg_set_multisample_14d6f08ffd7c69c4: function(arg0, arg1) {
|
|
3493
|
+
arg0.multisample = arg1;
|
|
3494
|
+
},
|
|
3495
|
+
__wbg_set_multisampled_c1a6a9aa29d81fa8: function(arg0, arg1) {
|
|
3496
|
+
arg0.multisampled = arg1 !== 0;
|
|
3497
|
+
},
|
|
3498
|
+
__wbg_set_offset_1bb5c4707449fc44: function(arg0, arg1) {
|
|
3499
|
+
arg0.offset = arg1;
|
|
3500
|
+
},
|
|
3501
|
+
__wbg_set_offset_9d11ddc705349946: function(arg0, arg1) {
|
|
3502
|
+
arg0.offset = arg1;
|
|
3503
|
+
},
|
|
3504
|
+
__wbg_set_offset_d28b3bb06055acf7: function(arg0, arg1) {
|
|
3505
|
+
arg0.offset = arg1;
|
|
3506
|
+
},
|
|
3507
|
+
__wbg_set_operation_e06ec00b8fcd6407: function(arg0, arg1) {
|
|
3508
|
+
arg0.operation = __wbindgen_enum_GpuBlendOperation[arg1];
|
|
3509
|
+
},
|
|
3510
|
+
__wbg_set_origin_e224cb4564a085bd: function(arg0, arg1) {
|
|
3511
|
+
arg0.origin = arg1;
|
|
3512
|
+
},
|
|
3513
|
+
__wbg_set_pass_op_b91156d00b61d37a: function(arg0, arg1) {
|
|
3514
|
+
arg0.passOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
3515
|
+
},
|
|
3516
|
+
__wbg_set_power_preference_ca9e71d89415275a: function(arg0, arg1) {
|
|
3517
|
+
arg0.powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
|
|
3518
|
+
},
|
|
3519
|
+
__wbg_set_primitive_b6d400acd041f7e9: function(arg0, arg1) {
|
|
3520
|
+
arg0.primitive = arg1;
|
|
3521
|
+
},
|
|
3522
|
+
__wbg_set_query_set_98863bb20d17473d: function(arg0, arg1) {
|
|
3523
|
+
arg0.querySet = arg1;
|
|
3524
|
+
},
|
|
3525
|
+
__wbg_set_query_set_a224312af8787018: function(arg0, arg1) {
|
|
3526
|
+
arg0.querySet = arg1;
|
|
3527
|
+
},
|
|
3528
|
+
__wbg_set_r_f2e2cc5c41e4530c: function(arg0, arg1) {
|
|
3529
|
+
arg0.r = arg1;
|
|
3530
|
+
},
|
|
3531
|
+
__wbg_set_required_features_8b22210c8f9391ac: function(arg0, arg1) {
|
|
3532
|
+
arg0.requiredFeatures = arg1;
|
|
3533
|
+
},
|
|
3534
|
+
__wbg_set_resolve_target_ead4f6267016644d: function(arg0, arg1) {
|
|
3535
|
+
arg0.resolveTarget = arg1;
|
|
3536
|
+
},
|
|
3537
|
+
__wbg_set_resource_d9da1c7e7d34ca12: function(arg0, arg1) {
|
|
3538
|
+
arg0.resource = arg1;
|
|
3539
|
+
},
|
|
3540
|
+
__wbg_set_rows_per_image_bae92f5ec444a9b2: function(arg0, arg1) {
|
|
3541
|
+
arg0.rowsPerImage = arg1 >>> 0;
|
|
3542
|
+
},
|
|
3543
|
+
__wbg_set_sample_count_0362f8396599c0b9: function(arg0, arg1) {
|
|
3544
|
+
arg0.sampleCount = arg1 >>> 0;
|
|
3545
|
+
},
|
|
3546
|
+
__wbg_set_sample_type_83e8e33e392c1679: function(arg0, arg1) {
|
|
3547
|
+
arg0.sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
|
|
3548
|
+
},
|
|
3549
|
+
__wbg_set_sampler_8ffd56d6ed5c34d1: function(arg0, arg1) {
|
|
3550
|
+
arg0.sampler = arg1;
|
|
3551
|
+
},
|
|
3552
|
+
__wbg_set_shader_location_f246f1f477208fcb: function(arg0, arg1) {
|
|
3553
|
+
arg0.shaderLocation = arg1 >>> 0;
|
|
3554
|
+
},
|
|
3555
|
+
__wbg_set_size_1e1e43c780029e41: function(arg0, arg1) {
|
|
3556
|
+
arg0.size = arg1;
|
|
3557
|
+
},
|
|
3558
|
+
__wbg_set_size_d5f85adbeef835c3: function(arg0, arg1) {
|
|
3559
|
+
arg0.size = arg1;
|
|
3560
|
+
},
|
|
3561
|
+
__wbg_set_size_f50ba20e5f9c2f63: function(arg0, arg1) {
|
|
3562
|
+
arg0.size = arg1;
|
|
3563
|
+
},
|
|
3564
|
+
__wbg_set_src_factor_c9a69a22e268de55: function(arg0, arg1) {
|
|
3565
|
+
arg0.srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
|
|
3566
|
+
},
|
|
3567
|
+
__wbg_set_stencil_back_803f4fe139b51a63: function(arg0, arg1) {
|
|
3568
|
+
arg0.stencilBack = arg1;
|
|
3569
|
+
},
|
|
3570
|
+
__wbg_set_stencil_clear_value_8932ee827c7d8cd1: function(arg0, arg1) {
|
|
3571
|
+
arg0.stencilClearValue = arg1 >>> 0;
|
|
3572
|
+
},
|
|
3573
|
+
__wbg_set_stencil_front_9bdbb6a829ea813d: function(arg0, arg1) {
|
|
3574
|
+
arg0.stencilFront = arg1;
|
|
3575
|
+
},
|
|
3576
|
+
__wbg_set_stencil_load_op_2067ef13baff5dff: function(arg0, arg1) {
|
|
3577
|
+
arg0.stencilLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
3578
|
+
},
|
|
3579
|
+
__wbg_set_stencil_read_mask_a60c7bbdd6016118: function(arg0, arg1) {
|
|
3580
|
+
arg0.stencilReadMask = arg1 >>> 0;
|
|
3581
|
+
},
|
|
3582
|
+
__wbg_set_stencil_read_only_267990c40060df99: function(arg0, arg1) {
|
|
3583
|
+
arg0.stencilReadOnly = arg1 !== 0;
|
|
3584
|
+
},
|
|
3585
|
+
__wbg_set_stencil_store_op_af3735ca0e6893a4: function(arg0, arg1) {
|
|
3586
|
+
arg0.stencilStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
3587
|
+
},
|
|
3588
|
+
__wbg_set_stencil_write_mask_65647b2c50a3f1b5: function(arg0, arg1) {
|
|
3589
|
+
arg0.stencilWriteMask = arg1 >>> 0;
|
|
3590
|
+
},
|
|
3591
|
+
__wbg_set_step_mode_c60b597966acece6: function(arg0, arg1) {
|
|
3592
|
+
arg0.stepMode = __wbindgen_enum_GpuVertexStepMode[arg1];
|
|
3593
|
+
},
|
|
3594
|
+
__wbg_set_storage_texture_7a7ed72a519fbcd7: function(arg0, arg1) {
|
|
3595
|
+
arg0.storageTexture = arg1;
|
|
3596
|
+
},
|
|
3597
|
+
__wbg_set_store_op_7dc76e7f4312a827: function(arg0, arg1) {
|
|
3598
|
+
arg0.storeOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
3599
|
+
},
|
|
3600
|
+
__wbg_set_strip_index_format_85ae95eed98cfaed: function(arg0, arg1) {
|
|
3601
|
+
arg0.stripIndexFormat = __wbindgen_enum_GpuIndexFormat[arg1];
|
|
3602
|
+
},
|
|
3603
|
+
__wbg_set_targets_00d818c1f3c4f947: function(arg0, arg1) {
|
|
3604
|
+
arg0.targets = arg1;
|
|
3605
|
+
},
|
|
3606
|
+
__wbg_set_texture_07a986e3216b9f46: function(arg0, arg1) {
|
|
3607
|
+
arg0.texture = arg1;
|
|
3608
|
+
},
|
|
3609
|
+
__wbg_set_texture_42ecf1d976a7b885: function(arg0, arg1) {
|
|
3610
|
+
arg0.texture = arg1;
|
|
3611
|
+
},
|
|
3612
|
+
__wbg_set_timestamp_writes_4a52ed78b7dd1549: function(arg0, arg1) {
|
|
3613
|
+
arg0.timestampWrites = arg1;
|
|
3614
|
+
},
|
|
3615
|
+
__wbg_set_timestamp_writes_7d1ed68ba74e41b7: function(arg0, arg1) {
|
|
3616
|
+
arg0.timestampWrites = arg1;
|
|
3617
|
+
},
|
|
3618
|
+
__wbg_set_topology_0c0c27f729a63369: function(arg0, arg1) {
|
|
3619
|
+
arg0.topology = __wbindgen_enum_GpuPrimitiveTopology[arg1];
|
|
3620
|
+
},
|
|
3621
|
+
__wbg_set_type_1fb8440232d790e7: function(arg0, arg1) {
|
|
3622
|
+
arg0.type = __wbindgen_enum_GpuBufferBindingType[arg1];
|
|
3623
|
+
},
|
|
3624
|
+
__wbg_set_type_edd1031217224852: function(arg0, arg1) {
|
|
3625
|
+
arg0.type = __wbindgen_enum_GpuSamplerBindingType[arg1];
|
|
3626
|
+
},
|
|
3627
|
+
__wbg_set_unclipped_depth_cbedbf4a5ecb9825: function(arg0, arg1) {
|
|
3628
|
+
arg0.unclippedDepth = arg1 !== 0;
|
|
3629
|
+
},
|
|
3630
|
+
__wbg_set_usage_0b971c6d3b3d68b4: function(arg0, arg1) {
|
|
3631
|
+
arg0.usage = arg1 >>> 0;
|
|
3632
|
+
},
|
|
3633
|
+
__wbg_set_usage_71fe300edaf2795c: function(arg0, arg1) {
|
|
3634
|
+
arg0.usage = arg1 >>> 0;
|
|
3635
|
+
},
|
|
3636
|
+
__wbg_set_usage_9dfd5166c63d8ed4: function(arg0, arg1) {
|
|
3637
|
+
arg0.usage = arg1 >>> 0;
|
|
3638
|
+
},
|
|
3639
|
+
__wbg_set_usage_ff8158c1ddcb1816: function(arg0, arg1) {
|
|
3640
|
+
arg0.usage = arg1 >>> 0;
|
|
3641
|
+
},
|
|
3642
|
+
__wbg_set_value_651c5a714f0a7b56: function(arg0, arg1, arg2) {
|
|
3643
|
+
arg0.value = getStringFromWasm0(arg1, arg2);
|
|
3644
|
+
},
|
|
3645
|
+
__wbg_set_vertex_efa2e0981044a3d0: function(arg0, arg1) {
|
|
3646
|
+
arg0.vertex = arg1;
|
|
3647
|
+
},
|
|
3648
|
+
__wbg_set_view_10047e64d6a12de7: function(arg0, arg1) {
|
|
3649
|
+
arg0.view = arg1;
|
|
3650
|
+
},
|
|
3651
|
+
__wbg_set_view_c7925cbcf5589477: function(arg0, arg1) {
|
|
3652
|
+
arg0.view = arg1;
|
|
3653
|
+
},
|
|
3654
|
+
__wbg_set_view_dimension_9abb84f7f272cbe7: function(arg0, arg1) {
|
|
3655
|
+
arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
3656
|
+
},
|
|
3657
|
+
__wbg_set_view_dimension_d9b64c32ed8160ad: function(arg0, arg1) {
|
|
3658
|
+
arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
3659
|
+
},
|
|
3660
|
+
__wbg_set_view_formats_121db88c6c1870e7: function(arg0, arg1) {
|
|
3661
|
+
arg0.viewFormats = arg1;
|
|
3662
|
+
},
|
|
3663
|
+
__wbg_set_view_formats_b8d531e269be794c: function(arg0, arg1) {
|
|
3664
|
+
arg0.viewFormats = arg1;
|
|
3665
|
+
},
|
|
3666
|
+
__wbg_set_visibility_4ced8292ea81c99f: function(arg0, arg1) {
|
|
3667
|
+
arg0.visibility = arg1 >>> 0;
|
|
3668
|
+
},
|
|
3669
|
+
__wbg_set_width_5f89a551b5472887: function(arg0, arg1) {
|
|
3670
|
+
arg0.width = arg1 >>> 0;
|
|
3671
|
+
},
|
|
3672
|
+
__wbg_set_width_eb3001e1dcabb909: function(arg0, arg1) {
|
|
3673
|
+
arg0.width = arg1 >>> 0;
|
|
3674
|
+
},
|
|
3675
|
+
__wbg_set_width_fe66bd1dadf13bdc: function(arg0, arg1) {
|
|
3676
|
+
arg0.width = arg1 >>> 0;
|
|
3677
|
+
},
|
|
3678
|
+
__wbg_set_write_mask_a85ff6a75462ab22: function(arg0, arg1) {
|
|
3679
|
+
arg0.writeMask = arg1 >>> 0;
|
|
3680
|
+
},
|
|
3681
|
+
__wbg_set_x_518f93a84b04cce7: function(arg0, arg1) {
|
|
3682
|
+
arg0.x = arg1 >>> 0;
|
|
3683
|
+
},
|
|
3684
|
+
__wbg_set_y_2089e2db539b87b1: function(arg0, arg1) {
|
|
3685
|
+
arg0.y = arg1 >>> 0;
|
|
3686
|
+
},
|
|
3687
|
+
__wbg_set_z_88ff90ebb494a4a8: function(arg0, arg1) {
|
|
3688
|
+
arg0.z = arg1 >>> 0;
|
|
3689
|
+
},
|
|
3690
|
+
__wbg_shiftKey_a6ce93ef743d5834: function(arg0) {
|
|
3691
|
+
const ret = arg0.shiftKey;
|
|
3692
|
+
return ret;
|
|
3693
|
+
},
|
|
3694
|
+
__wbg_static_accessor_GLOBAL_THIS_003ee833af9699fc: function() {
|
|
3695
|
+
const ret = typeof globalThis === 'undefined' ? undefined : globalThis;
|
|
3696
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3697
|
+
},
|
|
3698
|
+
__wbg_static_accessor_GLOBAL_e4293fb22cbe77da: function() {
|
|
3699
|
+
const ret = typeof global === 'undefined' ? undefined : global;
|
|
3700
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3701
|
+
},
|
|
3702
|
+
__wbg_static_accessor_SELF_53bb20457401453d: function() {
|
|
3703
|
+
const ret = typeof self === 'undefined' ? undefined : self;
|
|
3704
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3705
|
+
},
|
|
3706
|
+
__wbg_static_accessor_WINDOW_b5e0810bfecb7feb: function() {
|
|
3707
|
+
const ret = typeof window === 'undefined' ? undefined : window;
|
|
3708
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3709
|
+
},
|
|
3710
|
+
__wbg_submit_19b0e21319bc36d7: function(arg0, arg1) {
|
|
3711
|
+
arg0.submit(arg1);
|
|
3712
|
+
},
|
|
3713
|
+
__wbg_then_656f253a5dd7d8ea: function(arg0, arg1, arg2) {
|
|
3714
|
+
const ret = arg0.then(arg1, arg2);
|
|
3715
|
+
return ret;
|
|
3716
|
+
},
|
|
3717
|
+
__wbg_then_7ede85da03ac5cd0: function(arg0, arg1, arg2) {
|
|
3718
|
+
const ret = arg0.then(arg1, arg2);
|
|
3719
|
+
return ret;
|
|
3720
|
+
},
|
|
3721
|
+
__wbg_then_e3f7f2d365708be8: function(arg0, arg1) {
|
|
3722
|
+
const ret = arg0.then(arg1);
|
|
3723
|
+
return ret;
|
|
3724
|
+
},
|
|
3725
|
+
__wbg_top_2d45cda4e060d8bf: function(arg0) {
|
|
3726
|
+
const ret = arg0.top;
|
|
3727
|
+
return ret;
|
|
3728
|
+
},
|
|
3729
|
+
__wbg_unmap_c2954ef341a2b85d: function(arg0) {
|
|
3730
|
+
arg0.unmap();
|
|
3731
|
+
},
|
|
3732
|
+
__wbg_value_e0f328965e184931: function(arg0) {
|
|
3733
|
+
const ret = arg0.value;
|
|
3734
|
+
return ret;
|
|
3735
|
+
},
|
|
3736
|
+
__wbg_value_f61036dc298faa36: function(arg0, arg1) {
|
|
3737
|
+
const ret = arg1.value;
|
|
3738
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3739
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3740
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
3741
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
3742
|
+
},
|
|
3743
|
+
__wbg_width_babc5dc7654771b1: function(arg0) {
|
|
3744
|
+
const ret = arg0.width;
|
|
3745
|
+
return ret;
|
|
3746
|
+
},
|
|
3747
|
+
__wbg_width_d3c8d417d821d2fd: function(arg0) {
|
|
3748
|
+
const ret = arg0.width;
|
|
3749
|
+
return ret;
|
|
3750
|
+
},
|
|
3751
|
+
__wbg_writeBuffer_91e7b0b8dafb9073: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
3752
|
+
arg0.writeBuffer(arg1, arg2, arg3, arg4, arg5);
|
|
3753
|
+
}, arguments); },
|
|
3754
|
+
__wbg_writeTexture_b6c8b7de46320d07: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3755
|
+
arg0.writeTexture(arg1, arg2, arg3, arg4);
|
|
3756
|
+
}, arguments); },
|
|
3757
|
+
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
3758
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 151, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3759
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2535);
|
|
3760
|
+
return ret;
|
|
3761
|
+
},
|
|
3762
|
+
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
3763
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 78, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3764
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_729);
|
|
3765
|
+
return ret;
|
|
3766
|
+
},
|
|
3767
|
+
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
3768
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx: 229, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3769
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3290);
|
|
3770
|
+
return ret;
|
|
3771
|
+
},
|
|
3772
|
+
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
3773
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CompositionEvent")], shim_idx: 222, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3774
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3292);
|
|
3775
|
+
return ret;
|
|
3776
|
+
},
|
|
3777
|
+
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
3778
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 222, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3779
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3292_130);
|
|
3780
|
+
return ret;
|
|
3781
|
+
},
|
|
3782
|
+
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
3783
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 222, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3784
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3292_131);
|
|
3785
|
+
return ret;
|
|
3786
|
+
},
|
|
3787
|
+
__wbindgen_generic_0000000000000007: function(arg0, arg1) {
|
|
3788
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 222, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3789
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3292_132);
|
|
3790
|
+
return ret;
|
|
3791
|
+
},
|
|
3792
|
+
__wbindgen_generic_0000000000000008: function(arg0) {
|
|
3793
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
3794
|
+
const ret = arg0;
|
|
3795
|
+
return ret;
|
|
3796
|
+
},
|
|
3797
|
+
__wbindgen_generic_0000000000000009: function(arg0) {
|
|
3798
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
3799
|
+
const ret = arg0;
|
|
3800
|
+
return ret;
|
|
3801
|
+
},
|
|
3802
|
+
__wbindgen_generic_000000000000000a: function(arg0, arg1) {
|
|
3803
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
3804
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
3805
|
+
return ret;
|
|
3806
|
+
},
|
|
3807
|
+
__wbindgen_generic_000000000000000b: function(arg0, arg1) {
|
|
3808
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
3809
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3810
|
+
return ret;
|
|
3811
|
+
},
|
|
3812
|
+
__wbindgen_generic_000000000000000c: function(arg0) {
|
|
3813
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
3814
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
3815
|
+
return ret;
|
|
3816
|
+
},
|
|
3817
|
+
__wbindgen_init_externref_table: function() {
|
|
3818
|
+
const table = wasm.__wbindgen_externrefs;
|
|
3819
|
+
table.set(0, undefined);
|
|
3820
|
+
table.set(1024, undefined);
|
|
3821
|
+
table.set(1025, null);
|
|
3822
|
+
table.set(1026, true);
|
|
3823
|
+
table.set(1027, false);
|
|
3824
|
+
},
|
|
3825
|
+
};
|
|
3826
|
+
return {
|
|
3827
|
+
__proto__: null,
|
|
3828
|
+
"./galfus_browser_bg.js": import0,
|
|
3829
|
+
};
|
|
3830
|
+
}
|
|
3831
|
+
|
|
3832
|
+
function __wasm_bindgen_func_elem_2535(arg0, arg1, arg2) {
|
|
3833
|
+
wasm.__wasm_bindgen_func_elem_2535(arg0, arg1, arg2);
|
|
3834
|
+
}
|
|
3835
|
+
|
|
3836
|
+
function __wasm_bindgen_func_elem_3292(arg0, arg1, arg2) {
|
|
3837
|
+
wasm.__wasm_bindgen_func_elem_3292(arg0, arg1, arg2);
|
|
3838
|
+
}
|
|
3839
|
+
|
|
3840
|
+
function __wasm_bindgen_func_elem_3292_130(arg0, arg1, arg2) {
|
|
3841
|
+
wasm.__wasm_bindgen_func_elem_3292_130(arg0, arg1, arg2);
|
|
3842
|
+
}
|
|
3843
|
+
|
|
3844
|
+
function __wasm_bindgen_func_elem_3292_131(arg0, arg1, arg2) {
|
|
3845
|
+
wasm.__wasm_bindgen_func_elem_3292_131(arg0, arg1, arg2);
|
|
3846
|
+
}
|
|
3847
|
+
|
|
3848
|
+
function __wasm_bindgen_func_elem_3292_132(arg0, arg1, arg2) {
|
|
3849
|
+
wasm.__wasm_bindgen_func_elem_3292_132(arg0, arg1, arg2);
|
|
3850
|
+
}
|
|
3851
|
+
|
|
3852
|
+
function __wasm_bindgen_func_elem_746(arg0, arg1, arg2, arg3) {
|
|
3853
|
+
wasm.__wasm_bindgen_func_elem_746(arg0, arg1, arg2, arg3);
|
|
3854
|
+
}
|
|
3855
|
+
|
|
3856
|
+
function __wasm_bindgen_func_elem_3290(arg0, arg1, arg2, arg3) {
|
|
3857
|
+
wasm.__wasm_bindgen_func_elem_3290(arg0, arg1, arg2, arg3);
|
|
3858
|
+
}
|
|
3859
|
+
|
|
3860
|
+
function __wasm_bindgen_func_elem_729(arg0, arg1, arg2) {
|
|
3861
|
+
try {
|
|
3862
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
3863
|
+
wasm.__wasm_bindgen_func_elem_729(retptr, arg0, arg1, arg2);
|
|
3864
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3865
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3866
|
+
if (r1) {
|
|
3867
|
+
throw takeFromExternrefTable0(r0);
|
|
3868
|
+
}
|
|
3869
|
+
} finally {
|
|
3870
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3871
|
+
}
|
|
3872
|
+
}
|
|
3873
|
+
|
|
3874
|
+
|
|
3875
|
+
const __wbindgen_enum_GpuAddressMode = ["clamp-to-edge", "repeat", "mirror-repeat"];
|
|
3876
|
+
|
|
3877
|
+
|
|
3878
|
+
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"];
|
|
3879
|
+
|
|
3880
|
+
|
|
3881
|
+
const __wbindgen_enum_GpuBlendOperation = ["add", "subtract", "reverse-subtract", "min", "max"];
|
|
3882
|
+
|
|
3883
|
+
|
|
3884
|
+
const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
|
|
3885
|
+
|
|
3886
|
+
|
|
3887
|
+
const __wbindgen_enum_GpuCanvasAlphaMode = ["opaque", "premultiplied"];
|
|
3888
|
+
|
|
3889
|
+
|
|
3890
|
+
const __wbindgen_enum_GpuCompareFunction = ["never", "less", "equal", "less-equal", "greater", "not-equal", "greater-equal", "always"];
|
|
3891
|
+
|
|
3892
|
+
|
|
3893
|
+
const __wbindgen_enum_GpuCullMode = ["none", "front", "back"];
|
|
3894
|
+
|
|
3895
|
+
|
|
3896
|
+
const __wbindgen_enum_GpuFilterMode = ["nearest", "linear"];
|
|
3897
|
+
|
|
3898
|
+
|
|
3899
|
+
const __wbindgen_enum_GpuFrontFace = ["ccw", "cw"];
|
|
3900
|
+
|
|
3901
|
+
|
|
3902
|
+
const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
|
|
3903
|
+
|
|
3904
|
+
|
|
3905
|
+
const __wbindgen_enum_GpuLoadOp = ["load", "clear"];
|
|
3906
|
+
|
|
3907
|
+
|
|
3908
|
+
const __wbindgen_enum_GpuMipmapFilterMode = ["nearest", "linear"];
|
|
3909
|
+
|
|
3910
|
+
|
|
3911
|
+
const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
|
|
3912
|
+
|
|
3913
|
+
|
|
3914
|
+
const __wbindgen_enum_GpuPrimitiveTopology = ["point-list", "line-list", "line-strip", "triangle-list", "triangle-strip"];
|
|
3915
|
+
|
|
3916
|
+
|
|
3917
|
+
const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
|
|
3918
|
+
|
|
3919
|
+
|
|
3920
|
+
const __wbindgen_enum_GpuStencilOperation = ["keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap"];
|
|
3921
|
+
|
|
3922
|
+
|
|
3923
|
+
const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
|
|
3924
|
+
|
|
3925
|
+
|
|
3926
|
+
const __wbindgen_enum_GpuStoreOp = ["store", "discard"];
|
|
3927
|
+
|
|
3928
|
+
|
|
3929
|
+
const __wbindgen_enum_GpuTextureAspect = ["all", "stencil-only", "depth-only"];
|
|
3930
|
+
|
|
3931
|
+
|
|
3932
|
+
const __wbindgen_enum_GpuTextureDimension = ["1d", "2d", "3d"];
|
|
3933
|
+
|
|
3934
|
+
|
|
3935
|
+
const __wbindgen_enum_GpuTextureFormat = ["r8unorm", "r8snorm", "r8uint", "r8sint", "r16uint", "r16sint", "r16float", "rg8unorm", "rg8snorm", "rg8uint", "rg8sint", "r32uint", "r32sint", "r32float", "rg16uint", "rg16sint", "rg16float", "rgba8unorm", "rgba8unorm-srgb", "rgba8snorm", "rgba8uint", "rgba8sint", "bgra8unorm", "bgra8unorm-srgb", "rgb9e5ufloat", "rgb10a2uint", "rgb10a2unorm", "rg11b10ufloat", "rg32uint", "rg32sint", "rg32float", "rgba16uint", "rgba16sint", "rgba16float", "rgba32uint", "rgba32sint", "rgba32float", "stencil8", "depth16unorm", "depth24plus", "depth24plus-stencil8", "depth32float", "depth32float-stencil8", "bc1-rgba-unorm", "bc1-rgba-unorm-srgb", "bc2-rgba-unorm", "bc2-rgba-unorm-srgb", "bc3-rgba-unorm", "bc3-rgba-unorm-srgb", "bc4-r-unorm", "bc4-r-snorm", "bc5-rg-unorm", "bc5-rg-snorm", "bc6h-rgb-ufloat", "bc6h-rgb-float", "bc7-rgba-unorm", "bc7-rgba-unorm-srgb", "etc2-rgb8unorm", "etc2-rgb8unorm-srgb", "etc2-rgb8a1unorm", "etc2-rgb8a1unorm-srgb", "etc2-rgba8unorm", "etc2-rgba8unorm-srgb", "eac-r11unorm", "eac-r11snorm", "eac-rg11unorm", "eac-rg11snorm", "astc-4x4-unorm", "astc-4x4-unorm-srgb", "astc-5x4-unorm", "astc-5x4-unorm-srgb", "astc-5x5-unorm", "astc-5x5-unorm-srgb", "astc-6x5-unorm", "astc-6x5-unorm-srgb", "astc-6x6-unorm", "astc-6x6-unorm-srgb", "astc-8x5-unorm", "astc-8x5-unorm-srgb", "astc-8x6-unorm", "astc-8x6-unorm-srgb", "astc-8x8-unorm", "astc-8x8-unorm-srgb", "astc-10x5-unorm", "astc-10x5-unorm-srgb", "astc-10x6-unorm", "astc-10x6-unorm-srgb", "astc-10x8-unorm", "astc-10x8-unorm-srgb", "astc-10x10-unorm", "astc-10x10-unorm-srgb", "astc-12x10-unorm", "astc-12x10-unorm-srgb", "astc-12x12-unorm", "astc-12x12-unorm-srgb"];
|
|
3936
|
+
|
|
3937
|
+
|
|
3938
|
+
const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "depth", "sint", "uint"];
|
|
3939
|
+
|
|
3940
|
+
|
|
3941
|
+
const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
|
|
3942
|
+
|
|
3943
|
+
|
|
3944
|
+
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"];
|
|
3945
|
+
|
|
3946
|
+
|
|
3947
|
+
const __wbindgen_enum_GpuVertexStepMode = ["vertex", "instance"];
|
|
3948
|
+
|
|
3949
|
+
function addToExternrefTable0(obj) {
|
|
3950
|
+
const idx = wasm.__wbindgen_export4();
|
|
3951
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
3952
|
+
return idx;
|
|
3953
|
+
}
|
|
3954
|
+
|
|
3955
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
3956
|
+
? { register: () => {}, unregister: () => {} }
|
|
3957
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_export6(state.a, state.b));
|
|
3958
|
+
|
|
3959
|
+
function debugString(val) {
|
|
3960
|
+
switch (typeof val) {
|
|
3961
|
+
// primitive types
|
|
3962
|
+
case 'number':
|
|
3963
|
+
case 'boolean':
|
|
3964
|
+
case 'undefined':
|
|
3965
|
+
return `${val}`;
|
|
3966
|
+
case 'string':
|
|
3967
|
+
return JSON.stringify(val);
|
|
3968
|
+
case 'bigint':
|
|
3969
|
+
return `${val}n`;
|
|
3970
|
+
case 'symbol':
|
|
3971
|
+
return val.description !== undefined
|
|
3972
|
+
? `Symbol(${val.description})`
|
|
3973
|
+
: 'Symbol';
|
|
3974
|
+
case 'function':
|
|
3975
|
+
return typeof val.name === 'string' && val.name !== ''
|
|
3976
|
+
? `Function(${val.name})`
|
|
3977
|
+
: 'Function';
|
|
3978
|
+
case 'object': {
|
|
3979
|
+
if (val === null) {
|
|
3980
|
+
return 'null';
|
|
3981
|
+
}
|
|
3982
|
+
// objects
|
|
3983
|
+
if (Array.isArray(val)) {
|
|
3984
|
+
return '[' + Array.from(val, debugString).join(', ') + ']';
|
|
3985
|
+
}
|
|
3986
|
+
// errors
|
|
3987
|
+
if (val instanceof Error) {
|
|
3988
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
3989
|
+
}
|
|
3990
|
+
|
|
3991
|
+
const toStringOutput = toString.call(val);
|
|
3992
|
+
// Test for built-in
|
|
3993
|
+
const className = /\[object ([^\]]+)\]/.exec(toStringOutput)?.[1];
|
|
3994
|
+
|
|
3995
|
+
// Failed to match the standard '[object ClassName]'
|
|
3996
|
+
if (className === undefined) {
|
|
3997
|
+
return toStringOutput;
|
|
3998
|
+
}
|
|
3999
|
+
if (className === 'Object') {
|
|
4000
|
+
// we're a user defined class or Object
|
|
4001
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
4002
|
+
// easier than looping through ownProperties of `val`.
|
|
4003
|
+
try {
|
|
4004
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
4005
|
+
} catch (_) {
|
|
4006
|
+
return 'Object';
|
|
4007
|
+
}
|
|
4008
|
+
}
|
|
4009
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
4010
|
+
return className;
|
|
4011
|
+
}
|
|
4012
|
+
// Per MDN: 'This list of values is exhaustive.'
|
|
4013
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof#description
|
|
4014
|
+
}
|
|
4015
|
+
}
|
|
4016
|
+
|
|
4017
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
4018
|
+
ptr = ptr >>> 0;
|
|
4019
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
4020
|
+
}
|
|
4021
|
+
|
|
4022
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
4023
|
+
ptr = ptr >>> 0;
|
|
4024
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
4025
|
+
}
|
|
4026
|
+
|
|
4027
|
+
let cachedDataViewMemory0 = null;
|
|
4028
|
+
function getDataViewMemory0() {
|
|
4029
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
4030
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
4031
|
+
}
|
|
4032
|
+
return cachedDataViewMemory0;
|
|
4033
|
+
}
|
|
4034
|
+
|
|
4035
|
+
let cachedFloat32ArrayMemory0 = null;
|
|
4036
|
+
function getFloat32ArrayMemory0() {
|
|
4037
|
+
if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
|
|
4038
|
+
cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
|
|
4039
|
+
}
|
|
4040
|
+
return cachedFloat32ArrayMemory0;
|
|
4041
|
+
}
|
|
4042
|
+
|
|
4043
|
+
function getStringFromWasm0(ptr, len) {
|
|
4044
|
+
ptr = ptr >>> 0;
|
|
4045
|
+
return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
4046
|
+
}
|
|
4047
|
+
|
|
4048
|
+
let cachedUint32ArrayMemory0 = null;
|
|
4049
|
+
function getUint32ArrayMemory0() {
|
|
4050
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
4051
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
4052
|
+
}
|
|
4053
|
+
return cachedUint32ArrayMemory0;
|
|
4054
|
+
}
|
|
4055
|
+
|
|
4056
|
+
let cachedUint8ArrayMemory0 = null;
|
|
4057
|
+
function getUint8ArrayMemory0() {
|
|
4058
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
4059
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
4060
|
+
}
|
|
4061
|
+
return cachedUint8ArrayMemory0;
|
|
4062
|
+
}
|
|
4063
|
+
|
|
4064
|
+
function handleError(f, args) {
|
|
4065
|
+
try {
|
|
4066
|
+
return f.apply(this, args);
|
|
4067
|
+
} catch (e) {
|
|
4068
|
+
const idx = addToExternrefTable0(e);
|
|
4069
|
+
wasm.__wbindgen_export5(idx);
|
|
4070
|
+
}
|
|
4071
|
+
}
|
|
4072
|
+
|
|
4073
|
+
function isLikeNone(x) {
|
|
4074
|
+
return x === undefined || x === null;
|
|
4075
|
+
}
|
|
4076
|
+
|
|
4077
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
4078
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
4079
|
+
const real = (...args) => {
|
|
4080
|
+
|
|
4081
|
+
// First up with a closure we increment the internal reference
|
|
4082
|
+
// count. This ensures that the Rust closure environment won't
|
|
4083
|
+
// be deallocated while we're invoking it.
|
|
4084
|
+
state.cnt++;
|
|
4085
|
+
const a = state.a;
|
|
4086
|
+
state.a = 0;
|
|
4087
|
+
try {
|
|
4088
|
+
return f(a, state.b, ...args);
|
|
4089
|
+
} finally {
|
|
4090
|
+
state.a = a;
|
|
4091
|
+
real._wbg_cb_unref();
|
|
4092
|
+
}
|
|
4093
|
+
};
|
|
4094
|
+
real._wbg_cb_unref = () => {
|
|
4095
|
+
if (--state.cnt === 0) {
|
|
4096
|
+
wasm.__wbindgen_export6(state.a, state.b);
|
|
4097
|
+
state.a = 0;
|
|
4098
|
+
CLOSURE_DTORS.unregister(state);
|
|
4099
|
+
}
|
|
4100
|
+
};
|
|
4101
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
4102
|
+
return real;
|
|
4103
|
+
}
|
|
4104
|
+
|
|
4105
|
+
function passArray32ToWasm0(arg, malloc) {
|
|
4106
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
4107
|
+
getUint32ArrayMemory0().set(arg, ptr / 4);
|
|
4108
|
+
WASM_VECTOR_LEN = arg.length;
|
|
4109
|
+
return ptr;
|
|
4110
|
+
}
|
|
4111
|
+
|
|
4112
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
4113
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
4114
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
4115
|
+
WASM_VECTOR_LEN = arg.length;
|
|
4116
|
+
return ptr;
|
|
4117
|
+
}
|
|
4118
|
+
|
|
4119
|
+
function passArrayF32ToWasm0(arg, malloc) {
|
|
4120
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
4121
|
+
getFloat32ArrayMemory0().set(arg, ptr / 4);
|
|
4122
|
+
WASM_VECTOR_LEN = arg.length;
|
|
4123
|
+
return ptr;
|
|
4124
|
+
}
|
|
4125
|
+
|
|
4126
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
4127
|
+
if (realloc === undefined) {
|
|
4128
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
4129
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
4130
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
4131
|
+
WASM_VECTOR_LEN = buf.length;
|
|
4132
|
+
return ptr;
|
|
4133
|
+
}
|
|
4134
|
+
|
|
4135
|
+
let len = arg.length;
|
|
4136
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
4137
|
+
|
|
4138
|
+
const mem = getUint8ArrayMemory0();
|
|
4139
|
+
|
|
4140
|
+
let offset = 0;
|
|
4141
|
+
|
|
4142
|
+
for (; offset < len; offset++) {
|
|
4143
|
+
const code = arg.charCodeAt(offset);
|
|
4144
|
+
if (code > 0x7F) break;
|
|
4145
|
+
mem[ptr + offset] = code;
|
|
4146
|
+
}
|
|
4147
|
+
if (offset !== len) {
|
|
4148
|
+
if (offset !== 0) {
|
|
4149
|
+
arg = arg.slice(offset);
|
|
4150
|
+
}
|
|
4151
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
4152
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
4153
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
4154
|
+
|
|
4155
|
+
offset += ret.written;
|
|
4156
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
4157
|
+
}
|
|
4158
|
+
|
|
4159
|
+
WASM_VECTOR_LEN = offset;
|
|
4160
|
+
return ptr;
|
|
4161
|
+
}
|
|
4162
|
+
|
|
4163
|
+
function takeFromExternrefTable0(idx) {
|
|
4164
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
4165
|
+
wasm.__wbindgen_export7(idx);
|
|
4166
|
+
return value;
|
|
4167
|
+
}
|
|
4168
|
+
|
|
4169
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
4170
|
+
cachedTextDecoder.decode();
|
|
4171
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
4172
|
+
let numBytesDecoded = 0;
|
|
4173
|
+
function decodeText(bytes) {
|
|
4174
|
+
numBytesDecoded += bytes.length;
|
|
4175
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
4176
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
4177
|
+
cachedTextDecoder.decode();
|
|
4178
|
+
numBytesDecoded = bytes.length;
|
|
4179
|
+
}
|
|
4180
|
+
return cachedTextDecoder.decode(bytes);
|
|
4181
|
+
}
|
|
4182
|
+
|
|
4183
|
+
const cachedTextEncoder = new TextEncoder();
|
|
4184
|
+
|
|
4185
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
4186
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
4187
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
4188
|
+
view.set(buf);
|
|
4189
|
+
return {
|
|
4190
|
+
read: arg.length,
|
|
4191
|
+
written: buf.length
|
|
4192
|
+
};
|
|
4193
|
+
};
|
|
4194
|
+
}
|
|
4195
|
+
|
|
4196
|
+
let WASM_VECTOR_LEN = 0;
|
|
4197
|
+
|
|
4198
|
+
let wasmModule, wasmInstance, wasm;
|
|
4199
|
+
function __wbg_finalize_init(instance, module) {
|
|
4200
|
+
wasmInstance = instance;
|
|
4201
|
+
wasm = instance.exports;
|
|
4202
|
+
wasmModule = module;
|
|
4203
|
+
cachedDataViewMemory0 = null;
|
|
4204
|
+
cachedFloat32ArrayMemory0 = null;
|
|
4205
|
+
cachedUint32ArrayMemory0 = null;
|
|
4206
|
+
cachedUint8ArrayMemory0 = null;
|
|
4207
|
+
wasm.__wbindgen_start();
|
|
4208
|
+
return wasm;
|
|
4209
|
+
}
|
|
4210
|
+
|
|
4211
|
+
async function __wbg_load(module, imports) {
|
|
4212
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
4213
|
+
if (!module.ok) {
|
|
4214
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
4215
|
+
}
|
|
4216
|
+
|
|
4217
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
4218
|
+
try {
|
|
4219
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
4220
|
+
} catch (e) {
|
|
4221
|
+
const validResponse = expectedResponseType(module.type);
|
|
4222
|
+
|
|
4223
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
4224
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
4225
|
+
|
|
4226
|
+
} else { throw e; }
|
|
4227
|
+
}
|
|
4228
|
+
}
|
|
4229
|
+
|
|
4230
|
+
const bytes = await module.arrayBuffer();
|
|
4231
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
4232
|
+
} else {
|
|
4233
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
4234
|
+
|
|
4235
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
4236
|
+
return { instance, module };
|
|
4237
|
+
} else {
|
|
4238
|
+
return instance;
|
|
4239
|
+
}
|
|
4240
|
+
}
|
|
4241
|
+
|
|
4242
|
+
function expectedResponseType(type) {
|
|
4243
|
+
switch (type) {
|
|
4244
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
4245
|
+
}
|
|
4246
|
+
return false;
|
|
4247
|
+
}
|
|
4248
|
+
}
|
|
4249
|
+
|
|
4250
|
+
function initSync(module) {
|
|
4251
|
+
if (wasm !== undefined) return wasm;
|
|
4252
|
+
|
|
4253
|
+
|
|
4254
|
+
if (module !== undefined) {
|
|
4255
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
4256
|
+
({module} = module)
|
|
4257
|
+
} else {
|
|
4258
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
4259
|
+
}
|
|
4260
|
+
}
|
|
4261
|
+
|
|
4262
|
+
const imports = __wbg_get_imports();
|
|
4263
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
4264
|
+
module = new WebAssembly.Module(module);
|
|
4265
|
+
}
|
|
4266
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
4267
|
+
return __wbg_finalize_init(instance, module);
|
|
4268
|
+
}
|
|
4269
|
+
|
|
4270
|
+
let __wbg_init_promise;
|
|
4271
|
+
async function __wbg_init(module_or_path) {
|
|
4272
|
+
if (wasm !== undefined) return wasm;
|
|
4273
|
+
if (__wbg_init_promise === undefined) {
|
|
4274
|
+
__wbg_init_promise = __wbg_init_once(module_or_path);
|
|
4275
|
+
__wbg_init_promise.catch(() => { __wbg_init_promise = undefined; });
|
|
4276
|
+
}
|
|
4277
|
+
return __wbg_init_promise;
|
|
4278
|
+
}
|
|
4279
|
+
|
|
4280
|
+
async function __wbg_init_once(module_or_path) {
|
|
4281
|
+
|
|
4282
|
+
if (module_or_path !== undefined) {
|
|
4283
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
4284
|
+
({module_or_path} = module_or_path)
|
|
4285
|
+
} else {
|
|
4286
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
4287
|
+
}
|
|
4288
|
+
}
|
|
4289
|
+
|
|
4290
|
+
if (module_or_path === undefined) {
|
|
4291
|
+
module_or_path = new URL('galfus_browser_bg.wasm', import.meta.url);
|
|
4292
|
+
}
|
|
4293
|
+
const imports = __wbg_get_imports();
|
|
4294
|
+
|
|
4295
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
4296
|
+
module_or_path = fetch(module_or_path);
|
|
4297
|
+
}
|
|
4298
|
+
|
|
4299
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
4300
|
+
|
|
4301
|
+
return __wbg_finalize_init(instance, module);
|
|
4302
|
+
}
|
|
4303
|
+
|
|
4304
|
+
export { initSync, __wbg_init as default };
|