@pencil-lang/figure 0.0.5 → 0.0.7
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 +127 -4
- package/astro/Figure.astro +27 -2
- package/astro/build.d.ts +29 -1
- package/astro/build.js +9 -3
- package/package.json +2 -1
- package/pkg/pencil-figure.min.js +82 -11
- package/pkg/pencil_web.js +558 -349
- package/pkg/pencil_web_bg.wasm +0 -0
- package/src/controls.js +449 -0
- package/src/element.js +334 -52
- package/src/host.js +5 -0
- package/src/wiring.js +398 -0
package/pkg/pencil_web.js
CHANGED
|
@@ -157,44 +157,14 @@ export class Player {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
/**
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
* @param {string} doc
|
|
164
|
-
* @param {string[]} sheets
|
|
165
|
-
* @param {string[]} names
|
|
166
|
-
* @param {any} files
|
|
160
|
+
* Puts a figure `prepare` made on screen, in place of the one there. One made for another
|
|
161
|
+
* player, which can't draw on this one's device, is an error.
|
|
162
|
+
* @param {PreparedFigure} figure
|
|
167
163
|
*/
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
len0 = WASM_VECTOR_LEN;
|
|
173
|
-
ptr1 = passArrayJsValueToWasm0(sheets, wasm.__wbindgen_malloc);
|
|
174
|
-
len1 = WASM_VECTOR_LEN;
|
|
175
|
-
ptr2 = passArrayJsValueToWasm0(names, wasm.__wbindgen_malloc);
|
|
176
|
-
len2 = WASM_VECTOR_LEN;
|
|
177
|
-
} catch (e) {
|
|
178
|
-
if (ptr2) { wasm.__externref_drop_slice(ptr2, len2); wasm.__wbindgen_free(ptr2, len2 * 4, 4); }
|
|
179
|
-
if (ptr1) { wasm.__externref_drop_slice(ptr1, len1); wasm.__wbindgen_free(ptr1, len1 * 4, 4); }
|
|
180
|
-
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
181
|
-
throw e;
|
|
182
|
-
}
|
|
183
|
-
const ret = wasm.player_load(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, files);
|
|
184
|
-
if (ret[1]) {
|
|
185
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* Takes a figure that `pencil compile` wrote, in place of sources: nothing is parsed. A
|
|
190
|
-
* file from another build of Pencil is an error that says to compile it again, and as with
|
|
191
|
-
* `load`, the previous figure stays on screen.
|
|
192
|
-
* @param {Uint8Array | number[]} bytes
|
|
193
|
-
*/
|
|
194
|
-
load_compiled(bytes) {
|
|
195
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
196
|
-
const len0 = WASM_VECTOR_LEN;
|
|
197
|
-
const ret = wasm.player_load_compiled(this.__wbg_ptr, ptr0, len0);
|
|
164
|
+
install(figure) {
|
|
165
|
+
_assertClass(figure, PreparedFigure);
|
|
166
|
+
var ptr0 = figure.__destroy_into_raw();
|
|
167
|
+
const ret = wasm.player_install(this.__wbg_ptr, ptr0);
|
|
198
168
|
if (ret[1]) {
|
|
199
169
|
throw takeFromExternrefTable0(ret[0]);
|
|
200
170
|
}
|
|
@@ -242,6 +212,56 @@ export class Player {
|
|
|
242
212
|
on_lost(callback) {
|
|
243
213
|
wasm.player_on_lost(this.__wbg_ptr, callback);
|
|
244
214
|
}
|
|
215
|
+
/**
|
|
216
|
+
* Compiles new sources for this player, and makes their pipelines, which `install` then puts
|
|
217
|
+
* on screen: `player.install(await player.prepare(doc, sheets, names, files))`. A compile
|
|
218
|
+
* error is thrown at once, and says where it is (see `compile_error`). The promise resolves
|
|
219
|
+
* once the GPU has compiled the figure's shaders, which on WebGPU is done off the thread that
|
|
220
|
+
* composites the page, and rejects with the GPU's error, starting "GPU error:". Either way
|
|
221
|
+
* the previous figure stays on screen until `install`, so a half-typed edit doesn't blank the
|
|
222
|
+
* canvas. Nothing waits holding the player, which draws on meanwhile.
|
|
223
|
+
* @param {string} doc
|
|
224
|
+
* @param {string[]} sheets
|
|
225
|
+
* @param {string[]} names
|
|
226
|
+
* @param {any} files
|
|
227
|
+
* @returns {Promise<any>}
|
|
228
|
+
*/
|
|
229
|
+
prepare(doc, sheets, names, files) {
|
|
230
|
+
let ptr0, len0, ptr1, len1, ptr2, len2;
|
|
231
|
+
try {
|
|
232
|
+
ptr0 = passStringToWasm0(doc, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
233
|
+
len0 = WASM_VECTOR_LEN;
|
|
234
|
+
ptr1 = passArrayJsValueToWasm0(sheets, wasm.__wbindgen_malloc);
|
|
235
|
+
len1 = WASM_VECTOR_LEN;
|
|
236
|
+
ptr2 = passArrayJsValueToWasm0(names, wasm.__wbindgen_malloc);
|
|
237
|
+
len2 = WASM_VECTOR_LEN;
|
|
238
|
+
} catch (e) {
|
|
239
|
+
if (ptr2) { wasm.__externref_drop_slice(ptr2, len2); wasm.__wbindgen_free(ptr2, len2 * 4, 4); }
|
|
240
|
+
if (ptr1) { wasm.__externref_drop_slice(ptr1, len1); wasm.__wbindgen_free(ptr1, len1 * 4, 4); }
|
|
241
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
242
|
+
throw e;
|
|
243
|
+
}
|
|
244
|
+
const ret = wasm.player_prepare(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, files);
|
|
245
|
+
if (ret[2]) {
|
|
246
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
247
|
+
}
|
|
248
|
+
return takeFromExternrefTable0(ret[0]);
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* As `prepare`, from a figure that `pencil compile` wrote, in place of sources: nothing is
|
|
252
|
+
* parsed. A file from another build of Pencil is an error that says to compile it again.
|
|
253
|
+
* @param {Uint8Array | number[]} bytes
|
|
254
|
+
* @returns {Promise<any>}
|
|
255
|
+
*/
|
|
256
|
+
prepare_compiled(bytes) {
|
|
257
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
258
|
+
const len0 = WASM_VECTOR_LEN;
|
|
259
|
+
const ret = wasm.player_prepare_compiled(this.__wbg_ptr, ptr0, len0);
|
|
260
|
+
if (ret[2]) {
|
|
261
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
262
|
+
}
|
|
263
|
+
return takeFromExternrefTable0(ret[0]);
|
|
264
|
+
}
|
|
245
265
|
/**
|
|
246
266
|
* Computes the CPU side of a frame without drawing, to measure that cost. Returns
|
|
247
267
|
* the number of stroke segments.
|
|
@@ -275,6 +295,57 @@ export class Player {
|
|
|
275
295
|
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
276
296
|
return v3;
|
|
277
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* How much room each readout needs, as JSON `[[width, height], …]` in ems, so that nothing
|
|
300
|
+
* beside it moves as it changes: the most it takes at the moments a reader can reach that
|
|
301
|
+
* are tried, from this time and the params the page holds. A build works out the same with
|
|
302
|
+
* the same fonts.
|
|
303
|
+
* @param {number} time
|
|
304
|
+
* @returns {string}
|
|
305
|
+
*/
|
|
306
|
+
readout_room(time) {
|
|
307
|
+
let deferred2_0;
|
|
308
|
+
let deferred2_1;
|
|
309
|
+
try {
|
|
310
|
+
const ret = wasm.player_readout_room(this.__wbg_ptr, time);
|
|
311
|
+
var ptr1 = ret[0];
|
|
312
|
+
var len1 = ret[1];
|
|
313
|
+
if (ret[3]) {
|
|
314
|
+
ptr1 = 0; len1 = 0;
|
|
315
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
316
|
+
}
|
|
317
|
+
deferred2_0 = ptr1;
|
|
318
|
+
deferred2_1 = len1;
|
|
319
|
+
return getStringFromWasm0(ptr1, len1);
|
|
320
|
+
} finally {
|
|
321
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* What the figure's readouts say at a time, as JSON: for each label with no place, in the
|
|
326
|
+
* order it's written, its text and what's laid out of it, in ems, for the page to set beside
|
|
327
|
+
* the figure (`readout_json` in the core).
|
|
328
|
+
* @param {number} time
|
|
329
|
+
* @returns {string}
|
|
330
|
+
*/
|
|
331
|
+
readouts(time) {
|
|
332
|
+
let deferred2_0;
|
|
333
|
+
let deferred2_1;
|
|
334
|
+
try {
|
|
335
|
+
const ret = wasm.player_readouts(this.__wbg_ptr, time);
|
|
336
|
+
var ptr1 = ret[0];
|
|
337
|
+
var len1 = ret[1];
|
|
338
|
+
if (ret[3]) {
|
|
339
|
+
ptr1 = 0; len1 = 0;
|
|
340
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
341
|
+
}
|
|
342
|
+
deferred2_0 = ptr1;
|
|
343
|
+
deferred2_1 = len1;
|
|
344
|
+
return getStringFromWasm0(ptr1, len1);
|
|
345
|
+
} finally {
|
|
346
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
278
349
|
release() {
|
|
279
350
|
wasm.player_release(this.__wbg_ptr);
|
|
280
351
|
}
|
|
@@ -365,6 +436,31 @@ export class Player {
|
|
|
365
436
|
}
|
|
366
437
|
if (Symbol.dispose) Player.prototype[Symbol.dispose] = Player.prototype.free;
|
|
367
438
|
|
|
439
|
+
/**
|
|
440
|
+
* A figure compiled and with its pipelines made, by `Player.prepare`, for that player's `install`.
|
|
441
|
+
* Free one that's not installed, as when a newer figure took its place, to let go of its GPU
|
|
442
|
+
* resources at once.
|
|
443
|
+
*/
|
|
444
|
+
export class PreparedFigure {
|
|
445
|
+
static __wrap(ptr) {
|
|
446
|
+
const obj = Object.create(PreparedFigure.prototype);
|
|
447
|
+
obj.__wbg_ptr = ptr;
|
|
448
|
+
PreparedFigureFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
449
|
+
return obj;
|
|
450
|
+
}
|
|
451
|
+
__destroy_into_raw() {
|
|
452
|
+
const ptr = this.__wbg_ptr;
|
|
453
|
+
this.__wbg_ptr = 0;
|
|
454
|
+
PreparedFigureFinalization.unregister(this);
|
|
455
|
+
return ptr;
|
|
456
|
+
}
|
|
457
|
+
free() {
|
|
458
|
+
const ptr = this.__destroy_into_raw();
|
|
459
|
+
wasm.__wbg_preparedfigure_free(ptr, 0);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
if (Symbol.dispose) PreparedFigure.prototype[Symbol.dispose] = PreparedFigure.prototype.free;
|
|
463
|
+
|
|
368
464
|
/**
|
|
369
465
|
* A document's design size, as JSON `[width, height]`, to shape its canvas before a player
|
|
370
466
|
* exists to draw on it.
|
|
@@ -638,11 +734,11 @@ function __wbg_get_imports() {
|
|
|
638
734
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
639
735
|
return ret;
|
|
640
736
|
},
|
|
641
|
-
|
|
737
|
+
__wbg_Window_fef571b39b470387: function(arg0) {
|
|
642
738
|
const ret = arg0.Window;
|
|
643
739
|
return ret;
|
|
644
740
|
},
|
|
645
|
-
|
|
741
|
+
__wbg_WorkerGlobalScope_3ed6dee4573270f6: function(arg0) {
|
|
646
742
|
const ret = arg0.WorkerGlobalScope;
|
|
647
743
|
return ret;
|
|
648
744
|
},
|
|
@@ -700,6 +796,9 @@ function __wbg_get_imports() {
|
|
|
700
796
|
__wbg_activeTexture_89cef8c297ad0698: function(arg0, arg1) {
|
|
701
797
|
arg0.activeTexture(arg1 >>> 0);
|
|
702
798
|
},
|
|
799
|
+
__wbg_addEventListener_847fd86b8c33ec43: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
800
|
+
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
801
|
+
}, arguments); },
|
|
703
802
|
__wbg_attachShader_3ed301cc92db59f6: function(arg0, arg1, arg2) {
|
|
704
803
|
arg0.attachShader(arg1, arg2);
|
|
705
804
|
},
|
|
@@ -709,7 +808,7 @@ function __wbg_get_imports() {
|
|
|
709
808
|
__wbg_beginQuery_f800947e639433e8: function(arg0, arg1, arg2) {
|
|
710
809
|
arg0.beginQuery(arg1 >>> 0, arg2);
|
|
711
810
|
},
|
|
712
|
-
|
|
811
|
+
__wbg_beginRenderPass_a4373284aaed4f43: function() { return handleError(function (arg0, arg1) {
|
|
713
812
|
const ret = arg0.beginRenderPass(arg1);
|
|
714
813
|
return ret;
|
|
715
814
|
}, arguments); },
|
|
@@ -872,9 +971,13 @@ function __wbg_get_imports() {
|
|
|
872
971
|
__wbg_compressedTexSubImage3D_e1d361485803b713: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
|
|
873
972
|
arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10);
|
|
874
973
|
},
|
|
875
|
-
|
|
974
|
+
__wbg_configure_31516cc3b0858ec8: function() { return handleError(function (arg0, arg1) {
|
|
876
975
|
arg0.configure(arg1);
|
|
877
976
|
}, arguments); },
|
|
977
|
+
__wbg_constructor_76ad3e2c50d259de: function(arg0) {
|
|
978
|
+
const ret = arg0.constructor;
|
|
979
|
+
return ret;
|
|
980
|
+
},
|
|
878
981
|
__wbg_copyBufferSubData_b10635982222cbc4: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
879
982
|
arg0.copyBufferSubData(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
|
|
880
983
|
},
|
|
@@ -887,11 +990,11 @@ function __wbg_get_imports() {
|
|
|
887
990
|
__wbg_copyTexSubImage3D_e35f615c7c8244ba: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
888
991
|
arg0.copyTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
889
992
|
},
|
|
890
|
-
|
|
993
|
+
__wbg_createBindGroupLayout_4f241660bcf17970: function() { return handleError(function (arg0, arg1) {
|
|
891
994
|
const ret = arg0.createBindGroupLayout(arg1);
|
|
892
995
|
return ret;
|
|
893
996
|
}, arguments); },
|
|
894
|
-
|
|
997
|
+
__wbg_createBindGroup_655c6e6c0258530e: function(arg0, arg1) {
|
|
895
998
|
const ret = arg0.createBindGroup(arg1);
|
|
896
999
|
return ret;
|
|
897
1000
|
},
|
|
@@ -899,7 +1002,7 @@ function __wbg_get_imports() {
|
|
|
899
1002
|
const ret = arg0.createBuffer();
|
|
900
1003
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
901
1004
|
},
|
|
902
|
-
|
|
1005
|
+
__wbg_createBuffer_6cf1a721b324813a: function() { return handleError(function (arg0, arg1) {
|
|
903
1006
|
const ret = arg0.createBuffer(arg1);
|
|
904
1007
|
return ret;
|
|
905
1008
|
}, arguments); },
|
|
@@ -907,7 +1010,7 @@ function __wbg_get_imports() {
|
|
|
907
1010
|
const ret = arg0.createBuffer();
|
|
908
1011
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
909
1012
|
},
|
|
910
|
-
|
|
1013
|
+
__wbg_createCommandEncoder_ec1f40f0cb4d09df: function(arg0, arg1) {
|
|
911
1014
|
const ret = arg0.createCommandEncoder(arg1);
|
|
912
1015
|
return ret;
|
|
913
1016
|
},
|
|
@@ -919,7 +1022,7 @@ function __wbg_get_imports() {
|
|
|
919
1022
|
const ret = arg0.createFramebuffer();
|
|
920
1023
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
921
1024
|
},
|
|
922
|
-
|
|
1025
|
+
__wbg_createPipelineLayout_2c8cd4528b06c108: function(arg0, arg1) {
|
|
923
1026
|
const ret = arg0.createPipelineLayout(arg1);
|
|
924
1027
|
return ret;
|
|
925
1028
|
},
|
|
@@ -935,10 +1038,10 @@ function __wbg_get_imports() {
|
|
|
935
1038
|
const ret = arg0.createQuery();
|
|
936
1039
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
937
1040
|
},
|
|
938
|
-
|
|
939
|
-
const ret = arg0.
|
|
1041
|
+
__wbg_createRenderPipelineAsync_eecad1e54ef27acf: function(arg0, arg1) {
|
|
1042
|
+
const ret = arg0.createRenderPipelineAsync(arg1);
|
|
940
1043
|
return ret;
|
|
941
|
-
},
|
|
1044
|
+
},
|
|
942
1045
|
__wbg_createRenderbuffer_19c2eec619a37a15: function(arg0) {
|
|
943
1046
|
const ret = arg0.createRenderbuffer();
|
|
944
1047
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -951,7 +1054,7 @@ function __wbg_get_imports() {
|
|
|
951
1054
|
const ret = arg0.createSampler();
|
|
952
1055
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
953
1056
|
},
|
|
954
|
-
|
|
1057
|
+
__wbg_createShaderModule_2e44fc7677c6288b: function(arg0, arg1) {
|
|
955
1058
|
const ret = arg0.createShaderModule(arg1);
|
|
956
1059
|
return ret;
|
|
957
1060
|
},
|
|
@@ -963,7 +1066,7 @@ function __wbg_get_imports() {
|
|
|
963
1066
|
const ret = arg0.createShader(arg1 >>> 0);
|
|
964
1067
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
965
1068
|
},
|
|
966
|
-
|
|
1069
|
+
__wbg_createTexture_0550382a3890c559: function() { return handleError(function (arg0, arg1) {
|
|
967
1070
|
const ret = arg0.createTexture(arg1);
|
|
968
1071
|
return ret;
|
|
969
1072
|
}, arguments); },
|
|
@@ -983,7 +1086,7 @@ function __wbg_get_imports() {
|
|
|
983
1086
|
const ret = arg0.createVertexArray();
|
|
984
1087
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
985
1088
|
},
|
|
986
|
-
|
|
1089
|
+
__wbg_createView_472059ff382a2e65: function() { return handleError(function (arg0, arg1) {
|
|
987
1090
|
const ret = arg0.createView(arg1);
|
|
988
1091
|
return ret;
|
|
989
1092
|
}, arguments); },
|
|
@@ -1062,17 +1165,14 @@ function __wbg_get_imports() {
|
|
|
1062
1165
|
__wbg_depthRange_942825e3232596de: function(arg0, arg1, arg2) {
|
|
1063
1166
|
arg0.depthRange(arg1, arg2);
|
|
1064
1167
|
},
|
|
1065
|
-
|
|
1168
|
+
__wbg_description_5eb53b355f0598bc: function(arg0, arg1) {
|
|
1066
1169
|
const ret = arg1.description;
|
|
1067
1170
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1068
1171
|
const len1 = WASM_VECTOR_LEN;
|
|
1069
1172
|
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1070
1173
|
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1071
1174
|
},
|
|
1072
|
-
|
|
1073
|
-
arg0.destroy();
|
|
1074
|
-
},
|
|
1075
|
-
__wbg_destroy_637537007d9eaa44: function(arg0) {
|
|
1175
|
+
__wbg_destroy_b59cccd349464fab: function(arg0) {
|
|
1076
1176
|
arg0.destroy();
|
|
1077
1177
|
},
|
|
1078
1178
|
__wbg_disableVertexAttribArray_011898581287ef1e: function(arg0, arg1) {
|
|
@@ -1115,7 +1215,7 @@ function __wbg_get_imports() {
|
|
|
1115
1215
|
__wbg_drawElementsInstanced_3240c0c168d6af87: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1116
1216
|
arg0.drawElementsInstanced(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
1117
1217
|
},
|
|
1118
|
-
|
|
1218
|
+
__wbg_draw_6877f98847e1e36c: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1119
1219
|
arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1120
1220
|
},
|
|
1121
1221
|
__wbg_enableVertexAttribArray_d485706ade6bebf8: function(arg0, arg1) {
|
|
@@ -1133,10 +1233,10 @@ function __wbg_get_imports() {
|
|
|
1133
1233
|
__wbg_endQuery_f052a8f0f3589d3b: function(arg0, arg1) {
|
|
1134
1234
|
arg0.endQuery(arg1 >>> 0);
|
|
1135
1235
|
},
|
|
1136
|
-
|
|
1236
|
+
__wbg_end_f99ebed53d4e198a: function(arg0) {
|
|
1137
1237
|
arg0.end();
|
|
1138
1238
|
},
|
|
1139
|
-
|
|
1239
|
+
__wbg_error_6aedd1e3b61238a4: function(arg0) {
|
|
1140
1240
|
const ret = arg0.error;
|
|
1141
1241
|
return ret;
|
|
1142
1242
|
},
|
|
@@ -1155,7 +1255,11 @@ function __wbg_get_imports() {
|
|
|
1155
1255
|
const ret = arg0.fenceSync(arg1 >>> 0, arg2 >>> 0);
|
|
1156
1256
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1157
1257
|
},
|
|
1158
|
-
|
|
1258
|
+
__wbg_finish_4d91de5e927dd13f: function(arg0, arg1) {
|
|
1259
|
+
const ret = arg0.finish(arg1);
|
|
1260
|
+
return ret;
|
|
1261
|
+
},
|
|
1262
|
+
__wbg_finish_6e06b68ab68cd9f6: function(arg0) {
|
|
1159
1263
|
const ret = arg0.finish();
|
|
1160
1264
|
return ret;
|
|
1161
1265
|
},
|
|
@@ -1165,10 +1269,6 @@ function __wbg_get_imports() {
|
|
|
1165
1269
|
__wbg_finish_abf9726b03095270: function(arg0) {
|
|
1166
1270
|
arg0.finish();
|
|
1167
1271
|
},
|
|
1168
|
-
__wbg_finish_ec1c191f66a895b1: function(arg0, arg1) {
|
|
1169
|
-
const ret = arg0.finish(arg1);
|
|
1170
|
-
return ret;
|
|
1171
|
-
},
|
|
1172
1272
|
__wbg_flush_4911c503a18d091d: function(arg0) {
|
|
1173
1273
|
arg0.flush();
|
|
1174
1274
|
},
|
|
@@ -1218,7 +1318,7 @@ function __wbg_get_imports() {
|
|
|
1218
1318
|
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
|
|
1219
1319
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1220
1320
|
}, arguments); },
|
|
1221
|
-
|
|
1321
|
+
__wbg_getCurrentTexture_e8a9a61398a831a1: function() { return handleError(function (arg0) {
|
|
1222
1322
|
const ret = arg0.getCurrentTexture();
|
|
1223
1323
|
return ret;
|
|
1224
1324
|
}, arguments); },
|
|
@@ -1230,10 +1330,6 @@ function __wbg_get_imports() {
|
|
|
1230
1330
|
const ret = arg0.getIndexedParameter(arg1 >>> 0, arg2 >>> 0);
|
|
1231
1331
|
return ret;
|
|
1232
1332
|
}, arguments); },
|
|
1233
|
-
__wbg_getMappedRange_28e816a763520e01: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1234
|
-
const ret = arg0.getMappedRange(arg1, arg2);
|
|
1235
|
-
return ret;
|
|
1236
|
-
}, arguments); },
|
|
1237
1333
|
__wbg_getParameter_4c67158a3cef7a34: function() { return handleError(function (arg0, arg1) {
|
|
1238
1334
|
const ret = arg0.getParameter(arg1 >>> 0);
|
|
1239
1335
|
return ret;
|
|
@@ -1242,7 +1338,7 @@ function __wbg_get_imports() {
|
|
|
1242
1338
|
const ret = arg0.getParameter(arg1 >>> 0);
|
|
1243
1339
|
return ret;
|
|
1244
1340
|
}, arguments); },
|
|
1245
|
-
|
|
1341
|
+
__wbg_getPreferredCanvasFormat_8b57039d1801a506: function(arg0) {
|
|
1246
1342
|
const ret = arg0.getPreferredCanvasFormat();
|
|
1247
1343
|
return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 102) - 1;
|
|
1248
1344
|
},
|
|
@@ -1330,7 +1426,7 @@ function __wbg_get_imports() {
|
|
|
1330
1426
|
const ret = arg0[arg1 >>> 0];
|
|
1331
1427
|
return ret;
|
|
1332
1428
|
},
|
|
1333
|
-
|
|
1429
|
+
__wbg_gpu_e058e0d4226b6ad9: function(arg0) {
|
|
1334
1430
|
const ret = arg0.gpu;
|
|
1335
1431
|
return ret;
|
|
1336
1432
|
},
|
|
@@ -1342,11 +1438,21 @@ function __wbg_get_imports() {
|
|
|
1342
1438
|
const ret = arg0.includes(arg1, arg2);
|
|
1343
1439
|
return ret;
|
|
1344
1440
|
},
|
|
1345
|
-
|
|
1441
|
+
__wbg_info_166f8675cbf261b8: function(arg0) {
|
|
1346
1442
|
const ret = arg0.info;
|
|
1347
1443
|
return ret;
|
|
1348
1444
|
},
|
|
1349
|
-
|
|
1445
|
+
__wbg_instanceof_GpuInternalError_00de98ff234e8feb: function(arg0) {
|
|
1446
|
+
let result;
|
|
1447
|
+
try {
|
|
1448
|
+
result = arg0 instanceof GPUInternalError;
|
|
1449
|
+
} catch (_) {
|
|
1450
|
+
result = false;
|
|
1451
|
+
}
|
|
1452
|
+
const ret = result;
|
|
1453
|
+
return ret;
|
|
1454
|
+
},
|
|
1455
|
+
__wbg_instanceof_GpuOutOfMemoryError_8ae000311acd3c96: function(arg0) {
|
|
1350
1456
|
let result;
|
|
1351
1457
|
try {
|
|
1352
1458
|
result = arg0 instanceof GPUOutOfMemoryError;
|
|
@@ -1356,7 +1462,17 @@ function __wbg_get_imports() {
|
|
|
1356
1462
|
const ret = result;
|
|
1357
1463
|
return ret;
|
|
1358
1464
|
},
|
|
1359
|
-
|
|
1465
|
+
__wbg_instanceof_GpuPipelineError_c20f49900d0cfcf5: function(arg0) {
|
|
1466
|
+
let result;
|
|
1467
|
+
try {
|
|
1468
|
+
result = arg0 instanceof GPUPipelineError;
|
|
1469
|
+
} catch (_) {
|
|
1470
|
+
result = false;
|
|
1471
|
+
}
|
|
1472
|
+
const ret = result;
|
|
1473
|
+
return ret;
|
|
1474
|
+
},
|
|
1475
|
+
__wbg_instanceof_GpuValidationError_a5ae06cf97b1e648: function(arg0) {
|
|
1360
1476
|
let result;
|
|
1361
1477
|
try {
|
|
1362
1478
|
result = arg0 instanceof GPUValidationError;
|
|
@@ -1376,6 +1492,16 @@ function __wbg_get_imports() {
|
|
|
1376
1492
|
const ret = result;
|
|
1377
1493
|
return ret;
|
|
1378
1494
|
},
|
|
1495
|
+
__wbg_instanceof_TypeError_c5c1ddf07436286a: function(arg0) {
|
|
1496
|
+
let result;
|
|
1497
|
+
try {
|
|
1498
|
+
result = arg0 instanceof TypeError;
|
|
1499
|
+
} catch (_) {
|
|
1500
|
+
result = false;
|
|
1501
|
+
}
|
|
1502
|
+
const ret = result;
|
|
1503
|
+
return ret;
|
|
1504
|
+
},
|
|
1379
1505
|
__wbg_instanceof_WebGl2RenderingContext_de6feb460369d6c6: function(arg0) {
|
|
1380
1506
|
let result;
|
|
1381
1507
|
try {
|
|
@@ -1399,7 +1525,7 @@ function __wbg_get_imports() {
|
|
|
1399
1525
|
__wbg_invalidateFramebuffer_33206c632642a1bd: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1400
1526
|
arg0.invalidateFramebuffer(arg1 >>> 0, arg2);
|
|
1401
1527
|
}, arguments); },
|
|
1402
|
-
|
|
1528
|
+
__wbg_isFallbackAdapter_10204c602a8b8ce0: function(arg0) {
|
|
1403
1529
|
const ret = arg0.isFallbackAdapter;
|
|
1404
1530
|
return ret;
|
|
1405
1531
|
},
|
|
@@ -1407,7 +1533,7 @@ function __wbg_get_imports() {
|
|
|
1407
1533
|
const ret = Object.is(arg0, arg1);
|
|
1408
1534
|
return ret;
|
|
1409
1535
|
},
|
|
1410
|
-
|
|
1536
|
+
__wbg_label_36559528632f5c02: function(arg0, arg1) {
|
|
1411
1537
|
const ret = arg1.label;
|
|
1412
1538
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1413
1539
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -1418,11 +1544,11 @@ function __wbg_get_imports() {
|
|
|
1418
1544
|
const ret = arg0.length;
|
|
1419
1545
|
return ret;
|
|
1420
1546
|
},
|
|
1421
|
-
|
|
1547
|
+
__wbg_limits_004e9b9176e42b5a: function(arg0) {
|
|
1422
1548
|
const ret = arg0.limits;
|
|
1423
1549
|
return ret;
|
|
1424
1550
|
},
|
|
1425
|
-
|
|
1551
|
+
__wbg_limits_e31d779796c3ee27: function(arg0) {
|
|
1426
1552
|
const ret = arg0.limits;
|
|
1427
1553
|
return ret;
|
|
1428
1554
|
},
|
|
@@ -1432,160 +1558,183 @@ function __wbg_get_imports() {
|
|
|
1432
1558
|
__wbg_linkProgram_dee7cda98bacb12f: function(arg0, arg1) {
|
|
1433
1559
|
arg0.linkProgram(arg1);
|
|
1434
1560
|
},
|
|
1435
|
-
|
|
1561
|
+
__wbg_lost_83c927e8629f0968: function(arg0) {
|
|
1436
1562
|
const ret = arg0.lost;
|
|
1437
1563
|
return ret;
|
|
1438
1564
|
},
|
|
1439
|
-
|
|
1565
|
+
__wbg_mapAsync_52b01fa9e8f765fd: function(arg0, arg1, arg2, arg3) {
|
|
1440
1566
|
const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
|
|
1441
1567
|
return ret;
|
|
1442
1568
|
},
|
|
1443
|
-
|
|
1444
|
-
const ret = arg0.matchMedia(getStringFromWasm0(arg1, arg2));
|
|
1445
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1446
|
-
}, arguments); },
|
|
1447
|
-
__wbg_matches_a47c420646498c64: function(arg0) {
|
|
1448
|
-
const ret = arg0.matches;
|
|
1449
|
-
return ret;
|
|
1450
|
-
},
|
|
1451
|
-
__wbg_maxBindGroupsPlusVertexBuffers_1face4afb5363937: function(arg0) {
|
|
1569
|
+
__wbg_maxBindGroupsPlusVertexBuffers_69cb88a30b370f22: function(arg0) {
|
|
1452
1570
|
const ret = arg0.maxBindGroupsPlusVertexBuffers;
|
|
1453
1571
|
return ret;
|
|
1454
1572
|
},
|
|
1455
|
-
|
|
1573
|
+
__wbg_maxBindGroups_5349434f04dfe574: function(arg0) {
|
|
1456
1574
|
const ret = arg0.maxBindGroups;
|
|
1457
1575
|
return ret;
|
|
1458
1576
|
},
|
|
1459
|
-
|
|
1577
|
+
__wbg_maxBindingsPerBindGroup_e5abb97f3633e3e2: function(arg0) {
|
|
1460
1578
|
const ret = arg0.maxBindingsPerBindGroup;
|
|
1461
1579
|
return ret;
|
|
1462
1580
|
},
|
|
1463
|
-
|
|
1581
|
+
__wbg_maxBufferSize_f98e2db09a228def: function(arg0) {
|
|
1464
1582
|
const ret = arg0.maxBufferSize;
|
|
1465
1583
|
return ret;
|
|
1466
1584
|
},
|
|
1467
|
-
|
|
1585
|
+
__wbg_maxColorAttachmentBytesPerSample_168d239d0758170c: function(arg0) {
|
|
1468
1586
|
const ret = arg0.maxColorAttachmentBytesPerSample;
|
|
1469
1587
|
return ret;
|
|
1470
1588
|
},
|
|
1471
|
-
|
|
1589
|
+
__wbg_maxColorAttachments_cadaa65e5d5418c0: function(arg0) {
|
|
1472
1590
|
const ret = arg0.maxColorAttachments;
|
|
1473
1591
|
return ret;
|
|
1474
1592
|
},
|
|
1475
|
-
|
|
1593
|
+
__wbg_maxComputeInvocationsPerWorkgroup_50f5f93641dd75f6: function(arg0) {
|
|
1476
1594
|
const ret = arg0.maxComputeInvocationsPerWorkgroup;
|
|
1477
1595
|
return ret;
|
|
1478
1596
|
},
|
|
1479
|
-
|
|
1597
|
+
__wbg_maxComputeWorkgroupSizeX_3c3bd0b6d623cf60: function(arg0) {
|
|
1480
1598
|
const ret = arg0.maxComputeWorkgroupSizeX;
|
|
1481
1599
|
return ret;
|
|
1482
1600
|
},
|
|
1483
|
-
|
|
1601
|
+
__wbg_maxComputeWorkgroupSizeY_20d139a1ff9fb647: function(arg0) {
|
|
1484
1602
|
const ret = arg0.maxComputeWorkgroupSizeY;
|
|
1485
1603
|
return ret;
|
|
1486
1604
|
},
|
|
1487
|
-
|
|
1605
|
+
__wbg_maxComputeWorkgroupSizeZ_e52391c32200733c: function(arg0) {
|
|
1488
1606
|
const ret = arg0.maxComputeWorkgroupSizeZ;
|
|
1489
1607
|
return ret;
|
|
1490
1608
|
},
|
|
1491
|
-
|
|
1609
|
+
__wbg_maxComputeWorkgroupStorageSize_251ef2439d10f56a: function(arg0) {
|
|
1492
1610
|
const ret = arg0.maxComputeWorkgroupStorageSize;
|
|
1493
1611
|
return ret;
|
|
1494
1612
|
},
|
|
1495
|
-
|
|
1613
|
+
__wbg_maxComputeWorkgroupsPerDimension_d236d7ce817aa30a: function(arg0) {
|
|
1496
1614
|
const ret = arg0.maxComputeWorkgroupsPerDimension;
|
|
1497
1615
|
return ret;
|
|
1498
1616
|
},
|
|
1499
|
-
|
|
1617
|
+
__wbg_maxDynamicStorageBuffersPerPipelineLayout_57ef8577fcb28389: function(arg0) {
|
|
1500
1618
|
const ret = arg0.maxDynamicStorageBuffersPerPipelineLayout;
|
|
1501
1619
|
return ret;
|
|
1502
1620
|
},
|
|
1503
|
-
|
|
1621
|
+
__wbg_maxDynamicUniformBuffersPerPipelineLayout_dff4af4418fb000f: function(arg0) {
|
|
1504
1622
|
const ret = arg0.maxDynamicUniformBuffersPerPipelineLayout;
|
|
1505
1623
|
return ret;
|
|
1506
1624
|
},
|
|
1507
|
-
|
|
1625
|
+
__wbg_maxInterStageShaderVariables_3f6e16b309a04a3b: function(arg0) {
|
|
1508
1626
|
const ret = arg0.maxInterStageShaderVariables;
|
|
1509
1627
|
return ret;
|
|
1510
1628
|
},
|
|
1511
|
-
|
|
1629
|
+
__wbg_maxSampledTexturesPerShaderStage_c37c627cf5627f7b: function(arg0) {
|
|
1512
1630
|
const ret = arg0.maxSampledTexturesPerShaderStage;
|
|
1513
1631
|
return ret;
|
|
1514
1632
|
},
|
|
1515
|
-
|
|
1633
|
+
__wbg_maxSamplersPerShaderStage_0bbc3266ffd62c7a: function(arg0) {
|
|
1516
1634
|
const ret = arg0.maxSamplersPerShaderStage;
|
|
1517
1635
|
return ret;
|
|
1518
1636
|
},
|
|
1519
|
-
|
|
1637
|
+
__wbg_maxStorageBufferBindingSize_dbd810e2b1429e9e: function(arg0) {
|
|
1520
1638
|
const ret = arg0.maxStorageBufferBindingSize;
|
|
1521
1639
|
return ret;
|
|
1522
1640
|
},
|
|
1523
|
-
|
|
1641
|
+
__wbg_maxStorageBuffersInFragmentStage_9e9425db9d38e351: function(arg0) {
|
|
1642
|
+
const ret = arg0.maxStorageBuffersInFragmentStage;
|
|
1643
|
+
return ret;
|
|
1644
|
+
},
|
|
1645
|
+
__wbg_maxStorageBuffersInVertexStage_636db37a45f9f3e1: function(arg0) {
|
|
1646
|
+
const ret = arg0.maxStorageBuffersInVertexStage;
|
|
1647
|
+
return ret;
|
|
1648
|
+
},
|
|
1649
|
+
__wbg_maxStorageBuffersPerShaderStage_9cb5ad869bdf5e70: function(arg0) {
|
|
1524
1650
|
const ret = arg0.maxStorageBuffersPerShaderStage;
|
|
1525
1651
|
return ret;
|
|
1526
1652
|
},
|
|
1527
|
-
|
|
1653
|
+
__wbg_maxStorageTexturesInFragmentStage_47eee7edb7e61c95: function(arg0) {
|
|
1654
|
+
const ret = arg0.maxStorageTexturesInFragmentStage;
|
|
1655
|
+
return ret;
|
|
1656
|
+
},
|
|
1657
|
+
__wbg_maxStorageTexturesInVertexStage_04ccfe8e185c28e0: function(arg0) {
|
|
1658
|
+
const ret = arg0.maxStorageTexturesInVertexStage;
|
|
1659
|
+
return ret;
|
|
1660
|
+
},
|
|
1661
|
+
__wbg_maxStorageTexturesPerShaderStage_5ffcf5ffbee340da: function(arg0) {
|
|
1528
1662
|
const ret = arg0.maxStorageTexturesPerShaderStage;
|
|
1529
1663
|
return ret;
|
|
1530
1664
|
},
|
|
1531
|
-
|
|
1665
|
+
__wbg_maxTextureArrayLayers_6c0ca4e58060a6d0: function(arg0) {
|
|
1532
1666
|
const ret = arg0.maxTextureArrayLayers;
|
|
1533
1667
|
return ret;
|
|
1534
1668
|
},
|
|
1535
|
-
|
|
1669
|
+
__wbg_maxTextureDimension1D_56bf564ae9425b84: function(arg0) {
|
|
1536
1670
|
const ret = arg0.maxTextureDimension1D;
|
|
1537
1671
|
return ret;
|
|
1538
1672
|
},
|
|
1539
|
-
|
|
1673
|
+
__wbg_maxTextureDimension2D_881bb516c9fc7101: function(arg0) {
|
|
1540
1674
|
const ret = arg0.maxTextureDimension2D;
|
|
1541
1675
|
return ret;
|
|
1542
1676
|
},
|
|
1543
|
-
|
|
1677
|
+
__wbg_maxTextureDimension3D_d6c0d2ae3fae66c7: function(arg0) {
|
|
1544
1678
|
const ret = arg0.maxTextureDimension3D;
|
|
1545
1679
|
return ret;
|
|
1546
1680
|
},
|
|
1547
|
-
|
|
1681
|
+
__wbg_maxUniformBufferBindingSize_68dcfbeb2a7d904f: function(arg0) {
|
|
1548
1682
|
const ret = arg0.maxUniformBufferBindingSize;
|
|
1549
1683
|
return ret;
|
|
1550
1684
|
},
|
|
1551
|
-
|
|
1685
|
+
__wbg_maxUniformBuffersPerShaderStage_f63870e64b1ccfe8: function(arg0) {
|
|
1552
1686
|
const ret = arg0.maxUniformBuffersPerShaderStage;
|
|
1553
1687
|
return ret;
|
|
1554
1688
|
},
|
|
1555
|
-
|
|
1689
|
+
__wbg_maxVertexAttributes_a88dee81cc8d8d34: function(arg0) {
|
|
1556
1690
|
const ret = arg0.maxVertexAttributes;
|
|
1557
1691
|
return ret;
|
|
1558
1692
|
},
|
|
1559
|
-
|
|
1693
|
+
__wbg_maxVertexBufferArrayStride_ed14769769bead3e: function(arg0) {
|
|
1560
1694
|
const ret = arg0.maxVertexBufferArrayStride;
|
|
1561
1695
|
return ret;
|
|
1562
1696
|
},
|
|
1563
|
-
|
|
1697
|
+
__wbg_maxVertexBuffers_18328b6e2bcccea5: function(arg0) {
|
|
1564
1698
|
const ret = arg0.maxVertexBuffers;
|
|
1565
1699
|
return ret;
|
|
1566
1700
|
},
|
|
1567
|
-
|
|
1701
|
+
__wbg_message_43d8c8f1d543a349: function(arg0) {
|
|
1702
|
+
const ret = arg0.message;
|
|
1703
|
+
return ret;
|
|
1704
|
+
},
|
|
1705
|
+
__wbg_message_4c75c59aa4f38c75: function(arg0, arg1) {
|
|
1568
1706
|
const ret = arg1.message;
|
|
1569
1707
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1570
1708
|
const len1 = WASM_VECTOR_LEN;
|
|
1571
1709
|
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1572
1710
|
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1573
1711
|
},
|
|
1574
|
-
|
|
1712
|
+
__wbg_message_7edc18bf257de1a4: function(arg0, arg1) {
|
|
1575
1713
|
const ret = arg1.message;
|
|
1576
1714
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1577
1715
|
const len1 = WASM_VECTOR_LEN;
|
|
1578
1716
|
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1579
1717
|
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1580
1718
|
},
|
|
1581
|
-
|
|
1719
|
+
__wbg_message_fc58bc095885b5e5: function(arg0, arg1) {
|
|
1720
|
+
const ret = arg1.message;
|
|
1721
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1722
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1723
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1724
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1725
|
+
},
|
|
1726
|
+
__wbg_minStorageBufferOffsetAlignment_2a758f06e9ae6048: function(arg0) {
|
|
1582
1727
|
const ret = arg0.minStorageBufferOffsetAlignment;
|
|
1583
1728
|
return ret;
|
|
1584
1729
|
},
|
|
1585
|
-
|
|
1730
|
+
__wbg_minUniformBufferOffsetAlignment_56a700cb14852d0b: function(arg0) {
|
|
1586
1731
|
const ret = arg0.minUniformBufferOffsetAlignment;
|
|
1587
1732
|
return ret;
|
|
1588
1733
|
},
|
|
1734
|
+
__wbg_name_fd11f69c917c5670: function(arg0) {
|
|
1735
|
+
const ret = arg0.name;
|
|
1736
|
+
return ret;
|
|
1737
|
+
},
|
|
1589
1738
|
__wbg_navigator_9641ab32fa612dd1: function(arg0) {
|
|
1590
1739
|
const ret = arg0.navigator;
|
|
1591
1740
|
return ret;
|
|
@@ -1636,15 +1785,11 @@ function __wbg_get_imports() {
|
|
|
1636
1785
|
state0.a = 0;
|
|
1637
1786
|
}
|
|
1638
1787
|
},
|
|
1639
|
-
__wbg_new_with_byte_offset_and_length_3cd32055a417f095: function(arg0, arg1, arg2) {
|
|
1640
|
-
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1641
|
-
return ret;
|
|
1642
|
-
},
|
|
1643
1788
|
__wbg_of_027eb15371aac932: function(arg0) {
|
|
1644
1789
|
const ret = Array.of(arg0);
|
|
1645
1790
|
return ret;
|
|
1646
1791
|
},
|
|
1647
|
-
|
|
1792
|
+
__wbg_onSubmittedWorkDone_270d6b5a45520e79: function(arg0) {
|
|
1648
1793
|
const ret = arg0.onSubmittedWorkDone();
|
|
1649
1794
|
return ret;
|
|
1650
1795
|
},
|
|
@@ -1664,6 +1809,17 @@ function __wbg_get_imports() {
|
|
|
1664
1809
|
__wbg_polygonOffset_acf166e60739dbfa: function(arg0, arg1, arg2) {
|
|
1665
1810
|
arg0.polygonOffset(arg1, arg2);
|
|
1666
1811
|
},
|
|
1812
|
+
__wbg_popErrorScope_7443621d9135b89c: function(arg0) {
|
|
1813
|
+
const ret = arg0.popErrorScope();
|
|
1814
|
+
return ret;
|
|
1815
|
+
},
|
|
1816
|
+
__wbg_preparedfigure_new: function(arg0) {
|
|
1817
|
+
const ret = PreparedFigure.__wrap(arg0);
|
|
1818
|
+
return ret;
|
|
1819
|
+
},
|
|
1820
|
+
__wbg_pushErrorScope_fa23d1206bc26dce: function(arg0, arg1) {
|
|
1821
|
+
arg0.pushErrorScope(__wbindgen_enum_GpuErrorFilter[arg1]);
|
|
1822
|
+
},
|
|
1667
1823
|
__wbg_push_c9f4893fc209f768: function(arg0, arg1) {
|
|
1668
1824
|
const ret = arg0.push(arg1);
|
|
1669
1825
|
return ret;
|
|
@@ -1686,7 +1842,7 @@ function __wbg_get_imports() {
|
|
|
1686
1842
|
__wbg_queueMicrotask_4a1a4d8dd332373b: function(arg0) {
|
|
1687
1843
|
queueMicrotask(arg0);
|
|
1688
1844
|
},
|
|
1689
|
-
|
|
1845
|
+
__wbg_queue_7a77200c3739a9e0: function(arg0) {
|
|
1690
1846
|
const ret = arg0.queue;
|
|
1691
1847
|
return ret;
|
|
1692
1848
|
},
|
|
@@ -1702,10 +1858,17 @@ function __wbg_get_imports() {
|
|
|
1702
1858
|
__wbg_readPixels_7c7b54a733248182: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1703
1859
|
arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
|
1704
1860
|
}, arguments); },
|
|
1705
|
-
|
|
1861
|
+
__wbg_reason_d9e7add855cc21e0: function(arg0) {
|
|
1862
|
+
const ret = arg0.reason;
|
|
1863
|
+
return (__wbindgen_enum_GpuPipelineErrorReason.indexOf(ret) + 1 || 3) - 1;
|
|
1864
|
+
},
|
|
1865
|
+
__wbg_reason_f6ee0d33e9bd555d: function(arg0) {
|
|
1706
1866
|
const ret = arg0.reason;
|
|
1707
1867
|
return (__wbindgen_enum_GpuDeviceLostReason.indexOf(ret) + 1 || 3) - 1;
|
|
1708
1868
|
},
|
|
1869
|
+
__wbg_removeEventListener_4e20bd5fac3de092: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1870
|
+
arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
1871
|
+
}, arguments); },
|
|
1709
1872
|
__wbg_renderbufferStorageMultisample_d5b01825cc08514b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1710
1873
|
arg0.renderbufferStorageMultisample(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
1711
1874
|
},
|
|
@@ -1715,15 +1878,15 @@ function __wbg_get_imports() {
|
|
|
1715
1878
|
__wbg_renderbufferStorage_ebe429f577dae949: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1716
1879
|
arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
|
|
1717
1880
|
},
|
|
1718
|
-
|
|
1719
|
-
const ret = arg0.requestAdapter(
|
|
1881
|
+
__wbg_requestAdapter_6a96d6229ddf7802: function(arg0) {
|
|
1882
|
+
const ret = arg0.requestAdapter();
|
|
1720
1883
|
return ret;
|
|
1721
1884
|
},
|
|
1722
|
-
|
|
1723
|
-
const ret = arg0.requestAdapter();
|
|
1885
|
+
__wbg_requestAdapter_9112bb147d47f963: function(arg0, arg1) {
|
|
1886
|
+
const ret = arg0.requestAdapter(arg1);
|
|
1724
1887
|
return ret;
|
|
1725
1888
|
},
|
|
1726
|
-
|
|
1889
|
+
__wbg_requestDevice_ab46d0519ea1cc34: function(arg0, arg1) {
|
|
1727
1890
|
const ret = arg0.requestDevice(arg1);
|
|
1728
1891
|
return ret;
|
|
1729
1892
|
},
|
|
@@ -1743,509 +1906,521 @@ function __wbg_get_imports() {
|
|
|
1743
1906
|
__wbg_scissor_bb7201f050f220ac: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1744
1907
|
arg0.scissor(arg1, arg2, arg3, arg4);
|
|
1745
1908
|
},
|
|
1746
|
-
|
|
1747
|
-
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
1748
|
-
},
|
|
1749
|
-
__wbg_setBindGroup_82d014e8f799f053: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1909
|
+
__wbg_setBindGroup_ce0fb34a09a7f575: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1750
1910
|
arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
1751
1911
|
}, arguments); },
|
|
1752
|
-
|
|
1912
|
+
__wbg_setBindGroup_f0de6cb2c7dbfc2c: function(arg0, arg1, arg2) {
|
|
1913
|
+
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
1914
|
+
},
|
|
1915
|
+
__wbg_setPipeline_c41bf46790f27f9e: function(arg0, arg1) {
|
|
1753
1916
|
arg0.setPipeline(arg1);
|
|
1754
1917
|
},
|
|
1755
|
-
|
|
1918
|
+
__wbg_setScissorRect_42511fefb18b86ef: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1756
1919
|
arg0.setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1757
1920
|
},
|
|
1758
|
-
|
|
1921
|
+
__wbg_setVertexBuffer_1e448859663dd400: function(arg0, arg1, arg2, arg3) {
|
|
1759
1922
|
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
|
|
1760
1923
|
},
|
|
1761
|
-
|
|
1924
|
+
__wbg_setVertexBuffer_7cf533d694e747f3: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1762
1925
|
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
|
|
1763
1926
|
},
|
|
1764
|
-
|
|
1927
|
+
__wbg_setViewport_d9fc3eac343de7d0: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1765
1928
|
arg0.setViewport(arg1, arg2, arg3, arg4, arg5, arg6);
|
|
1766
1929
|
},
|
|
1767
1930
|
__wbg_set_2793479888329cb6: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1768
1931
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1769
1932
|
return ret;
|
|
1770
1933
|
}, arguments); },
|
|
1771
|
-
|
|
1934
|
+
__wbg_set_a_25fd56c334b361f6: function(arg0, arg1) {
|
|
1772
1935
|
arg0.a = arg1;
|
|
1773
1936
|
},
|
|
1774
|
-
|
|
1937
|
+
__wbg_set_access_ddf5bc1142da753c: function(arg0, arg1) {
|
|
1775
1938
|
arg0.access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
|
|
1776
1939
|
},
|
|
1777
|
-
|
|
1940
|
+
__wbg_set_alpha_9763c7a5009aa55d: function(arg0, arg1) {
|
|
1778
1941
|
arg0.alpha = arg1;
|
|
1779
1942
|
},
|
|
1780
|
-
|
|
1943
|
+
__wbg_set_alpha_mode_3d05a2ae7e7155a3: function(arg0, arg1) {
|
|
1781
1944
|
arg0.alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
|
|
1782
1945
|
},
|
|
1783
|
-
|
|
1946
|
+
__wbg_set_alpha_to_coverage_enabled_a27f32ce5bb1520c: function(arg0, arg1) {
|
|
1784
1947
|
arg0.alphaToCoverageEnabled = arg1 !== 0;
|
|
1785
1948
|
},
|
|
1786
|
-
|
|
1949
|
+
__wbg_set_array_layer_count_bb1314af7ba2adf6: function(arg0, arg1) {
|
|
1787
1950
|
arg0.arrayLayerCount = arg1 >>> 0;
|
|
1788
1951
|
},
|
|
1789
|
-
|
|
1952
|
+
__wbg_set_array_stride_f64_d6b4b9e1093ecd7b: function(arg0, arg1) {
|
|
1790
1953
|
arg0.arrayStride = arg1;
|
|
1791
1954
|
},
|
|
1792
|
-
|
|
1955
|
+
__wbg_set_aspect_18f77453fcc2d25b: function(arg0, arg1) {
|
|
1793
1956
|
arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
1794
1957
|
},
|
|
1795
|
-
|
|
1958
|
+
__wbg_set_aspect_2d19eb9adfc79353: function(arg0, arg1) {
|
|
1796
1959
|
arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
1797
1960
|
},
|
|
1798
|
-
|
|
1961
|
+
__wbg_set_attributes_342352ab85ea64c7: function(arg0, arg1, arg2) {
|
|
1799
1962
|
arg0.attributes = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
1800
1963
|
},
|
|
1801
|
-
|
|
1964
|
+
__wbg_set_b_910ba843232bed0c: function(arg0, arg1) {
|
|
1802
1965
|
arg0.b = arg1;
|
|
1803
1966
|
},
|
|
1804
|
-
|
|
1967
|
+
__wbg_set_base_array_layer_21ec4d44eff4ef84: function(arg0, arg1) {
|
|
1805
1968
|
arg0.baseArrayLayer = arg1 >>> 0;
|
|
1806
1969
|
},
|
|
1807
|
-
|
|
1970
|
+
__wbg_set_base_mip_level_55b25b38ea34513e: function(arg0, arg1) {
|
|
1808
1971
|
arg0.baseMipLevel = arg1 >>> 0;
|
|
1809
1972
|
},
|
|
1810
|
-
|
|
1973
|
+
__wbg_set_beginning_of_pass_write_index_a38c1eb301f5ffbc: function(arg0, arg1) {
|
|
1811
1974
|
arg0.beginningOfPassWriteIndex = arg1 >>> 0;
|
|
1812
1975
|
},
|
|
1813
|
-
|
|
1976
|
+
__wbg_set_bind_group_layouts_43a17833e70156f7: function(arg0, arg1, arg2) {
|
|
1814
1977
|
arg0.bindGroupLayouts = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
1815
1978
|
},
|
|
1816
|
-
|
|
1979
|
+
__wbg_set_binding_d62e109966e563ec: function(arg0, arg1) {
|
|
1817
1980
|
arg0.binding = arg1 >>> 0;
|
|
1818
1981
|
},
|
|
1819
|
-
|
|
1982
|
+
__wbg_set_binding_ed47acf725936562: function(arg0, arg1) {
|
|
1820
1983
|
arg0.binding = arg1 >>> 0;
|
|
1821
1984
|
},
|
|
1822
|
-
|
|
1985
|
+
__wbg_set_blend_dbc72004efbd3982: function(arg0, arg1) {
|
|
1823
1986
|
arg0.blend = arg1;
|
|
1824
1987
|
},
|
|
1825
|
-
|
|
1988
|
+
__wbg_set_buffer_16467db3b91a9b71: function(arg0, arg1) {
|
|
1826
1989
|
arg0.buffer = arg1;
|
|
1827
1990
|
},
|
|
1828
|
-
|
|
1991
|
+
__wbg_set_buffer_a9e5b3bb7e3a10bc: function(arg0, arg1) {
|
|
1829
1992
|
arg0.buffer = arg1;
|
|
1830
1993
|
},
|
|
1831
|
-
|
|
1994
|
+
__wbg_set_buffers_6fd92a1753cf8ae5: function(arg0, arg1, arg2) {
|
|
1832
1995
|
arg0.buffers = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
1833
1996
|
},
|
|
1834
|
-
|
|
1997
|
+
__wbg_set_bytes_per_row_dbe2e934185dd540: function(arg0, arg1) {
|
|
1835
1998
|
arg0.bytesPerRow = arg1 >>> 0;
|
|
1836
1999
|
},
|
|
1837
|
-
|
|
2000
|
+
__wbg_set_clear_value_gpu_color_dict_7eb6ffb20ec36ead: function(arg0, arg1) {
|
|
1838
2001
|
arg0.clearValue = arg1;
|
|
1839
2002
|
},
|
|
1840
|
-
|
|
2003
|
+
__wbg_set_code_637630b8d31cb7b4: function(arg0, arg1, arg2) {
|
|
1841
2004
|
arg0.code = getStringFromWasm0(arg1, arg2);
|
|
1842
2005
|
},
|
|
1843
|
-
|
|
2006
|
+
__wbg_set_color_7a94f5ece7e288d0: function(arg0, arg1) {
|
|
1844
2007
|
arg0.color = arg1;
|
|
1845
2008
|
},
|
|
1846
|
-
|
|
2009
|
+
__wbg_set_color_attachments_883debe365a008c3: function(arg0, arg1, arg2) {
|
|
1847
2010
|
arg0.colorAttachments = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
1848
2011
|
},
|
|
1849
|
-
|
|
2012
|
+
__wbg_set_compare_10026fe17cc62aef: function(arg0, arg1) {
|
|
1850
2013
|
arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
1851
2014
|
},
|
|
1852
|
-
|
|
2015
|
+
__wbg_set_count_630ce5a883ff9d36: function(arg0, arg1) {
|
|
1853
2016
|
arg0.count = arg1 >>> 0;
|
|
1854
2017
|
},
|
|
1855
|
-
|
|
2018
|
+
__wbg_set_cull_mode_5ce7e63a5f1d8684: function(arg0, arg1) {
|
|
1856
2019
|
arg0.cullMode = __wbindgen_enum_GpuCullMode[arg1];
|
|
1857
2020
|
},
|
|
1858
|
-
|
|
2021
|
+
__wbg_set_default_queue_9cb1b67e684bc118: function(arg0, arg1) {
|
|
2022
|
+
arg0.defaultQueue = arg1;
|
|
2023
|
+
},
|
|
2024
|
+
__wbg_set_depth_bias_928f0d61c2d20b7e: function(arg0, arg1) {
|
|
1859
2025
|
arg0.depthBias = arg1;
|
|
1860
2026
|
},
|
|
1861
|
-
|
|
2027
|
+
__wbg_set_depth_bias_clamp_b9f088fc47d72113: function(arg0, arg1) {
|
|
1862
2028
|
arg0.depthBiasClamp = arg1;
|
|
1863
2029
|
},
|
|
1864
|
-
|
|
2030
|
+
__wbg_set_depth_bias_slope_scale_1e50fde5cae9c677: function(arg0, arg1) {
|
|
1865
2031
|
arg0.depthBiasSlopeScale = arg1;
|
|
1866
2032
|
},
|
|
1867
|
-
|
|
2033
|
+
__wbg_set_depth_clear_value_73e1965c57cb9097: function(arg0, arg1) {
|
|
1868
2034
|
arg0.depthClearValue = arg1;
|
|
1869
2035
|
},
|
|
1870
|
-
|
|
2036
|
+
__wbg_set_depth_compare_b45878c8b844cf85: function(arg0, arg1) {
|
|
1871
2037
|
arg0.depthCompare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
1872
2038
|
},
|
|
1873
|
-
|
|
2039
|
+
__wbg_set_depth_fail_op_3823397c0cb4668c: function(arg0, arg1) {
|
|
1874
2040
|
arg0.depthFailOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
1875
2041
|
},
|
|
1876
|
-
|
|
2042
|
+
__wbg_set_depth_load_op_fa3bc4511290bdeb: function(arg0, arg1) {
|
|
1877
2043
|
arg0.depthLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
1878
2044
|
},
|
|
1879
|
-
|
|
2045
|
+
__wbg_set_depth_or_array_layers_a01b4cb1a712d7cf: function(arg0, arg1) {
|
|
1880
2046
|
arg0.depthOrArrayLayers = arg1 >>> 0;
|
|
1881
2047
|
},
|
|
1882
|
-
|
|
2048
|
+
__wbg_set_depth_read_only_14a1fca20e360f8b: function(arg0, arg1) {
|
|
1883
2049
|
arg0.depthReadOnly = arg1 !== 0;
|
|
1884
2050
|
},
|
|
1885
|
-
|
|
1886
|
-
arg0.
|
|
2051
|
+
__wbg_set_depth_slice_58ef17a8e45553cc: function(arg0, arg1) {
|
|
2052
|
+
arg0.depthSlice = arg1 >>> 0;
|
|
1887
2053
|
},
|
|
1888
|
-
|
|
2054
|
+
__wbg_set_depth_stencil_attachment_5298ae1194cbb059: function(arg0, arg1) {
|
|
1889
2055
|
arg0.depthStencilAttachment = arg1;
|
|
1890
2056
|
},
|
|
1891
|
-
|
|
2057
|
+
__wbg_set_depth_stencil_fb9864acd2052ec0: function(arg0, arg1) {
|
|
2058
|
+
arg0.depthStencil = arg1;
|
|
2059
|
+
},
|
|
2060
|
+
__wbg_set_depth_store_op_8fa805a3a2112715: function(arg0, arg1) {
|
|
1892
2061
|
arg0.depthStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
1893
2062
|
},
|
|
1894
|
-
|
|
2063
|
+
__wbg_set_depth_write_enabled_efe384a193a890e2: function(arg0, arg1) {
|
|
1895
2064
|
arg0.depthWriteEnabled = arg1 !== 0;
|
|
1896
2065
|
},
|
|
1897
|
-
|
|
2066
|
+
__wbg_set_device_67621191a95d153f: function(arg0, arg1) {
|
|
1898
2067
|
arg0.device = arg1;
|
|
1899
2068
|
},
|
|
1900
|
-
|
|
2069
|
+
__wbg_set_dimension_1c263c711333ab28: function(arg0, arg1) {
|
|
1901
2070
|
arg0.dimension = __wbindgen_enum_GpuTextureDimension[arg1];
|
|
1902
2071
|
},
|
|
1903
|
-
|
|
2072
|
+
__wbg_set_dimension_6dec042632b18d39: function(arg0, arg1) {
|
|
1904
2073
|
arg0.dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
1905
2074
|
},
|
|
1906
|
-
|
|
2075
|
+
__wbg_set_dst_factor_17dc5757348f4e8c: function(arg0, arg1) {
|
|
1907
2076
|
arg0.dstFactor = __wbindgen_enum_GpuBlendFactor[arg1];
|
|
1908
2077
|
},
|
|
1909
|
-
|
|
2078
|
+
__wbg_set_end_of_pass_write_index_039c673eb97c1b17: function(arg0, arg1) {
|
|
1910
2079
|
arg0.endOfPassWriteIndex = arg1 >>> 0;
|
|
1911
2080
|
},
|
|
1912
|
-
|
|
2081
|
+
__wbg_set_entries_bc9933019fb72023: function(arg0, arg1, arg2) {
|
|
1913
2082
|
arg0.entries = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
1914
2083
|
},
|
|
1915
|
-
|
|
2084
|
+
__wbg_set_entries_dda5610305831fc4: function(arg0, arg1, arg2) {
|
|
1916
2085
|
arg0.entries = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
1917
2086
|
},
|
|
1918
|
-
|
|
2087
|
+
__wbg_set_entry_point_e8391bcc627bfd7a: function(arg0, arg1, arg2) {
|
|
1919
2088
|
arg0.entryPoint = getStringFromWasm0(arg1, arg2);
|
|
1920
2089
|
},
|
|
1921
|
-
|
|
2090
|
+
__wbg_set_entry_point_fc7b5eb7d2f51f8d: function(arg0, arg1, arg2) {
|
|
1922
2091
|
arg0.entryPoint = getStringFromWasm0(arg1, arg2);
|
|
1923
2092
|
},
|
|
1924
|
-
|
|
2093
|
+
__wbg_set_external_texture_eb0ec97ea384a27f: function(arg0, arg1) {
|
|
1925
2094
|
arg0.externalTexture = arg1;
|
|
1926
2095
|
},
|
|
1927
|
-
|
|
2096
|
+
__wbg_set_fail_op_0d594a84c500382c: function(arg0, arg1) {
|
|
1928
2097
|
arg0.failOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
1929
2098
|
},
|
|
1930
|
-
|
|
2099
|
+
__wbg_set_format_2533d499e6a6576a: function(arg0, arg1) {
|
|
1931
2100
|
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1932
2101
|
},
|
|
1933
|
-
|
|
2102
|
+
__wbg_set_format_35213fd1a55af90b: function(arg0, arg1) {
|
|
1934
2103
|
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1935
2104
|
},
|
|
1936
|
-
|
|
1937
|
-
arg0.format =
|
|
2105
|
+
__wbg_set_format_3f132b447eacf268: function(arg0, arg1) {
|
|
2106
|
+
arg0.format = __wbindgen_enum_GpuVertexFormat[arg1];
|
|
1938
2107
|
},
|
|
1939
|
-
|
|
2108
|
+
__wbg_set_format_88e217388ce12466: function(arg0, arg1) {
|
|
1940
2109
|
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1941
2110
|
},
|
|
1942
|
-
|
|
1943
|
-
arg0.format =
|
|
2111
|
+
__wbg_set_format_970667cfa8e78ff0: function(arg0, arg1) {
|
|
2112
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1944
2113
|
},
|
|
1945
|
-
|
|
2114
|
+
__wbg_set_format_a9419838bd932fa3: function(arg0, arg1) {
|
|
1946
2115
|
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1947
2116
|
},
|
|
1948
|
-
|
|
2117
|
+
__wbg_set_format_ee8c52e81d585b82: function(arg0, arg1) {
|
|
1949
2118
|
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1950
2119
|
},
|
|
1951
|
-
|
|
2120
|
+
__wbg_set_fragment_ada8bef562cbbbf0: function(arg0, arg1) {
|
|
1952
2121
|
arg0.fragment = arg1;
|
|
1953
2122
|
},
|
|
1954
|
-
|
|
2123
|
+
__wbg_set_front_face_8f76f64ecaba04ec: function(arg0, arg1) {
|
|
1955
2124
|
arg0.frontFace = __wbindgen_enum_GpuFrontFace[arg1];
|
|
1956
2125
|
},
|
|
1957
|
-
|
|
2126
|
+
__wbg_set_g_6ac06c1cd7780fb1: function(arg0, arg1) {
|
|
1958
2127
|
arg0.g = arg1;
|
|
1959
2128
|
},
|
|
1960
|
-
|
|
2129
|
+
__wbg_set_has_dynamic_offset_8f837a860cb3ee15: function(arg0, arg1) {
|
|
1961
2130
|
arg0.hasDynamicOffset = arg1 !== 0;
|
|
1962
2131
|
},
|
|
1963
|
-
__wbg_set_height_3f64e19acf29f5fb: function(arg0, arg1) {
|
|
1964
|
-
arg0.height = arg1 >>> 0;
|
|
1965
|
-
},
|
|
1966
2132
|
__wbg_set_height_ae0610d318c3428c: function(arg0, arg1) {
|
|
1967
2133
|
arg0.height = arg1 >>> 0;
|
|
1968
2134
|
},
|
|
1969
2135
|
__wbg_set_height_ae24c2f7d580ae0a: function(arg0, arg1) {
|
|
1970
2136
|
arg0.height = arg1 >>> 0;
|
|
1971
2137
|
},
|
|
1972
|
-
|
|
2138
|
+
__wbg_set_height_d7334962b8c2e40a: function(arg0, arg1) {
|
|
2139
|
+
arg0.height = arg1 >>> 0;
|
|
2140
|
+
},
|
|
2141
|
+
__wbg_set_label_32e62c8eccad8454: function(arg0, arg1, arg2) {
|
|
2142
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
2143
|
+
},
|
|
2144
|
+
__wbg_set_label_3523c65da040a1f6: function(arg0, arg1, arg2) {
|
|
1973
2145
|
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1974
2146
|
},
|
|
1975
|
-
|
|
2147
|
+
__wbg_set_label_511773c4cc798bb4: function(arg0, arg1, arg2) {
|
|
1976
2148
|
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1977
2149
|
},
|
|
1978
|
-
|
|
2150
|
+
__wbg_set_label_5847b0c1fdf05193: function(arg0, arg1, arg2) {
|
|
1979
2151
|
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1980
2152
|
},
|
|
1981
|
-
|
|
2153
|
+
__wbg_set_label_82d22e30c4229277: function(arg0, arg1, arg2) {
|
|
1982
2154
|
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1983
2155
|
},
|
|
1984
|
-
|
|
2156
|
+
__wbg_set_label_a245e78c44a0f53c: function(arg0, arg1, arg2) {
|
|
1985
2157
|
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1986
2158
|
},
|
|
1987
|
-
|
|
2159
|
+
__wbg_set_label_bf9328689f43830c: function(arg0, arg1, arg2) {
|
|
1988
2160
|
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1989
2161
|
},
|
|
1990
|
-
|
|
2162
|
+
__wbg_set_label_bfb14af009ce5e1e: function(arg0, arg1, arg2) {
|
|
1991
2163
|
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1992
2164
|
},
|
|
1993
|
-
|
|
2165
|
+
__wbg_set_label_d81ddd0687910f84: function(arg0, arg1, arg2) {
|
|
1994
2166
|
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1995
2167
|
},
|
|
1996
|
-
|
|
2168
|
+
__wbg_set_label_e402ec5de663f45b: function(arg0, arg1, arg2) {
|
|
1997
2169
|
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1998
2170
|
},
|
|
1999
|
-
|
|
2171
|
+
__wbg_set_label_efbe5fde122ea186: function(arg0, arg1, arg2) {
|
|
2000
2172
|
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
2001
2173
|
},
|
|
2002
|
-
|
|
2174
|
+
__wbg_set_label_f4fa245a715d9069: function(arg0, arg1, arg2) {
|
|
2003
2175
|
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
2004
2176
|
},
|
|
2005
|
-
|
|
2177
|
+
__wbg_set_label_fd93ddd34066b39a: function(arg0, arg1, arg2) {
|
|
2006
2178
|
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
2007
2179
|
},
|
|
2008
|
-
|
|
2180
|
+
__wbg_set_layout_0220366f82dddb2f: function(arg0, arg1) {
|
|
2009
2181
|
arg0.layout = arg1;
|
|
2010
2182
|
},
|
|
2011
|
-
|
|
2183
|
+
__wbg_set_layout_3322348438535672: function(arg0, arg1) {
|
|
2012
2184
|
arg0.layout = arg1;
|
|
2013
2185
|
},
|
|
2014
|
-
|
|
2186
|
+
__wbg_set_layout_gpu_auto_layout_mode_76d6261989700e8e: function(arg0, arg1) {
|
|
2015
2187
|
arg0.layout = __wbindgen_enum_GpuAutoLayoutMode[arg1];
|
|
2016
2188
|
},
|
|
2017
|
-
|
|
2189
|
+
__wbg_set_load_op_2f2ab9d352e4088d: function(arg0, arg1) {
|
|
2018
2190
|
arg0.loadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
2019
2191
|
},
|
|
2020
|
-
|
|
2192
|
+
__wbg_set_mapped_at_creation_c4a4f1182236bbc1: function(arg0, arg1) {
|
|
2021
2193
|
arg0.mappedAtCreation = arg1 !== 0;
|
|
2022
2194
|
},
|
|
2023
|
-
|
|
2195
|
+
__wbg_set_mask_32d69aa23974b37a: function(arg0, arg1) {
|
|
2024
2196
|
arg0.mask = arg1 >>> 0;
|
|
2025
2197
|
},
|
|
2026
|
-
|
|
2198
|
+
__wbg_set_min_binding_size_f64_22199885684ea4fe: function(arg0, arg1) {
|
|
2027
2199
|
arg0.minBindingSize = arg1;
|
|
2028
2200
|
},
|
|
2029
|
-
|
|
2030
|
-
arg0.
|
|
2201
|
+
__wbg_set_mip_level_17a4055d5b968ae1: function(arg0, arg1) {
|
|
2202
|
+
arg0.mipLevel = arg1 >>> 0;
|
|
2031
2203
|
},
|
|
2032
|
-
|
|
2204
|
+
__wbg_set_mip_level_count_3c23fd442389a059: function(arg0, arg1) {
|
|
2033
2205
|
arg0.mipLevelCount = arg1 >>> 0;
|
|
2034
2206
|
},
|
|
2035
|
-
|
|
2036
|
-
arg0.
|
|
2207
|
+
__wbg_set_mip_level_count_59b5798d09a533f5: function(arg0, arg1) {
|
|
2208
|
+
arg0.mipLevelCount = arg1 >>> 0;
|
|
2037
2209
|
},
|
|
2038
|
-
|
|
2210
|
+
__wbg_set_mode_d9a5ac8ae2a0d68d: function(arg0, arg1) {
|
|
2039
2211
|
arg0.mode = __wbindgen_enum_GpuCanvasToneMappingMode[arg1];
|
|
2040
2212
|
},
|
|
2041
|
-
|
|
2213
|
+
__wbg_set_module_2f90ce6c7718a2a6: function(arg0, arg1) {
|
|
2042
2214
|
arg0.module = arg1;
|
|
2043
2215
|
},
|
|
2044
|
-
|
|
2216
|
+
__wbg_set_module_5f7233cffe195628: function(arg0, arg1) {
|
|
2045
2217
|
arg0.module = arg1;
|
|
2046
2218
|
},
|
|
2047
|
-
|
|
2219
|
+
__wbg_set_multisample_76e8f45b4ada1f3a: function(arg0, arg1) {
|
|
2048
2220
|
arg0.multisample = arg1;
|
|
2049
2221
|
},
|
|
2050
|
-
|
|
2222
|
+
__wbg_set_multisampled_70aab13c32c1a87a: function(arg0, arg1) {
|
|
2051
2223
|
arg0.multisampled = arg1 !== 0;
|
|
2052
2224
|
},
|
|
2053
|
-
|
|
2225
|
+
__wbg_set_offset_f64_1f0b71977a07be8f: function(arg0, arg1) {
|
|
2054
2226
|
arg0.offset = arg1;
|
|
2055
2227
|
},
|
|
2056
|
-
|
|
2228
|
+
__wbg_set_offset_f64_23f7bf7cddeacee2: function(arg0, arg1) {
|
|
2057
2229
|
arg0.offset = arg1;
|
|
2058
2230
|
},
|
|
2059
|
-
|
|
2231
|
+
__wbg_set_offset_f64_838b5c0d752ca796: function(arg0, arg1) {
|
|
2060
2232
|
arg0.offset = arg1;
|
|
2061
2233
|
},
|
|
2062
|
-
|
|
2063
|
-
arg0.onuncapturederror = arg1;
|
|
2064
|
-
},
|
|
2065
|
-
__wbg_set_operation_e103287df7ac9cf6: function(arg0, arg1) {
|
|
2234
|
+
__wbg_set_operation_1d7c7ed02f3d8e82: function(arg0, arg1) {
|
|
2066
2235
|
arg0.operation = __wbindgen_enum_GpuBlendOperation[arg1];
|
|
2067
2236
|
},
|
|
2068
|
-
|
|
2237
|
+
__wbg_set_origin_gpu_origin_3d_dict_0898da455eccfaa8: function(arg0, arg1) {
|
|
2069
2238
|
arg0.origin = arg1;
|
|
2070
2239
|
},
|
|
2071
|
-
|
|
2240
|
+
__wbg_set_pass_op_b24fa44077ba1797: function(arg0, arg1) {
|
|
2072
2241
|
arg0.passOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
2073
2242
|
},
|
|
2074
|
-
|
|
2243
|
+
__wbg_set_power_preference_7a817796c62ca83e: function(arg0, arg1) {
|
|
2075
2244
|
arg0.powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
|
|
2076
2245
|
},
|
|
2077
|
-
|
|
2246
|
+
__wbg_set_primitive_ab42ac6bf2686c0a: function(arg0, arg1) {
|
|
2078
2247
|
arg0.primitive = arg1;
|
|
2079
2248
|
},
|
|
2080
|
-
|
|
2249
|
+
__wbg_set_query_set_d9ddc9a570b0a62f: function(arg0, arg1) {
|
|
2081
2250
|
arg0.querySet = arg1;
|
|
2082
2251
|
},
|
|
2083
|
-
|
|
2252
|
+
__wbg_set_r_2c70c406bf10f4b9: function(arg0, arg1) {
|
|
2084
2253
|
arg0.r = arg1;
|
|
2085
2254
|
},
|
|
2086
|
-
|
|
2255
|
+
__wbg_set_required_features_95a49d09051b3efe: function(arg0, arg1, arg2) {
|
|
2087
2256
|
arg0.requiredFeatures = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
2088
2257
|
},
|
|
2089
|
-
|
|
2258
|
+
__wbg_set_required_limits_19d9b17160f9510e: function(arg0, arg1) {
|
|
2090
2259
|
arg0.requiredLimits = arg1;
|
|
2091
2260
|
},
|
|
2092
|
-
|
|
2261
|
+
__wbg_set_resolve_target_gpu_texture_view_b804b29664204f75: function(arg0, arg1) {
|
|
2093
2262
|
arg0.resolveTarget = arg1;
|
|
2094
2263
|
},
|
|
2095
|
-
|
|
2264
|
+
__wbg_set_resource_921009b19cab3884: function(arg0, arg1) {
|
|
2265
|
+
arg0.resource = arg1;
|
|
2266
|
+
},
|
|
2267
|
+
__wbg_set_resource_gpu_buffer_binding_edc31995170c05cd: function(arg0, arg1) {
|
|
2096
2268
|
arg0.resource = arg1;
|
|
2097
2269
|
},
|
|
2098
|
-
|
|
2270
|
+
__wbg_set_resource_gpu_external_texture_602a91683b574caf: function(arg0, arg1) {
|
|
2099
2271
|
arg0.resource = arg1;
|
|
2100
2272
|
},
|
|
2101
|
-
|
|
2273
|
+
__wbg_set_resource_gpu_texture_view_3b63a2f023735509: function(arg0, arg1) {
|
|
2102
2274
|
arg0.resource = arg1;
|
|
2103
2275
|
},
|
|
2104
|
-
|
|
2276
|
+
__wbg_set_rows_per_image_dcdda7897b0981a8: function(arg0, arg1) {
|
|
2105
2277
|
arg0.rowsPerImage = arg1 >>> 0;
|
|
2106
2278
|
},
|
|
2107
|
-
|
|
2279
|
+
__wbg_set_sample_count_8260338c573fad44: function(arg0, arg1) {
|
|
2108
2280
|
arg0.sampleCount = arg1 >>> 0;
|
|
2109
2281
|
},
|
|
2110
|
-
|
|
2282
|
+
__wbg_set_sample_type_bbe4a8b25dd655e3: function(arg0, arg1) {
|
|
2111
2283
|
arg0.sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
|
|
2112
2284
|
},
|
|
2113
|
-
|
|
2285
|
+
__wbg_set_sampler_7bc9215bf0c7cba2: function(arg0, arg1) {
|
|
2114
2286
|
arg0.sampler = arg1;
|
|
2115
2287
|
},
|
|
2116
|
-
|
|
2288
|
+
__wbg_set_shader_location_a9b065a65cddc988: function(arg0, arg1) {
|
|
2117
2289
|
arg0.shaderLocation = arg1 >>> 0;
|
|
2118
2290
|
},
|
|
2119
|
-
|
|
2291
|
+
__wbg_set_size_f64_21e77cbc2ec6e5cb: function(arg0, arg1) {
|
|
2120
2292
|
arg0.size = arg1;
|
|
2121
2293
|
},
|
|
2122
|
-
|
|
2294
|
+
__wbg_set_size_f64_22466f3c617cae73: function(arg0, arg1) {
|
|
2123
2295
|
arg0.size = arg1;
|
|
2124
2296
|
},
|
|
2125
|
-
|
|
2297
|
+
__wbg_set_size_gpu_extent_3d_dict_45e785abd5e731f1: function(arg0, arg1) {
|
|
2126
2298
|
arg0.size = arg1;
|
|
2127
2299
|
},
|
|
2128
|
-
|
|
2300
|
+
__wbg_set_src_factor_127aa7b4209b16e6: function(arg0, arg1) {
|
|
2129
2301
|
arg0.srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
|
|
2130
2302
|
},
|
|
2131
|
-
|
|
2303
|
+
__wbg_set_stencil_back_0567eacd877f0678: function(arg0, arg1) {
|
|
2132
2304
|
arg0.stencilBack = arg1;
|
|
2133
2305
|
},
|
|
2134
|
-
|
|
2306
|
+
__wbg_set_stencil_clear_value_7f767698a156d841: function(arg0, arg1) {
|
|
2135
2307
|
arg0.stencilClearValue = arg1 >>> 0;
|
|
2136
2308
|
},
|
|
2137
|
-
|
|
2309
|
+
__wbg_set_stencil_front_efe8f32622a112bf: function(arg0, arg1) {
|
|
2138
2310
|
arg0.stencilFront = arg1;
|
|
2139
2311
|
},
|
|
2140
|
-
|
|
2312
|
+
__wbg_set_stencil_load_op_add032c209e9cacf: function(arg0, arg1) {
|
|
2141
2313
|
arg0.stencilLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
2142
2314
|
},
|
|
2143
|
-
|
|
2315
|
+
__wbg_set_stencil_read_mask_0ac35b5019a62a11: function(arg0, arg1) {
|
|
2144
2316
|
arg0.stencilReadMask = arg1 >>> 0;
|
|
2145
2317
|
},
|
|
2146
|
-
|
|
2318
|
+
__wbg_set_stencil_read_only_99fcb05614ddd4b6: function(arg0, arg1) {
|
|
2147
2319
|
arg0.stencilReadOnly = arg1 !== 0;
|
|
2148
2320
|
},
|
|
2149
|
-
|
|
2321
|
+
__wbg_set_stencil_store_op_e7cb0b8fdea4aebb: function(arg0, arg1) {
|
|
2150
2322
|
arg0.stencilStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
2151
2323
|
},
|
|
2152
|
-
|
|
2324
|
+
__wbg_set_stencil_write_mask_12a794da02fe909f: function(arg0, arg1) {
|
|
2153
2325
|
arg0.stencilWriteMask = arg1 >>> 0;
|
|
2154
2326
|
},
|
|
2155
|
-
|
|
2327
|
+
__wbg_set_step_mode_f9ff795cc6c810f5: function(arg0, arg1) {
|
|
2156
2328
|
arg0.stepMode = __wbindgen_enum_GpuVertexStepMode[arg1];
|
|
2157
2329
|
},
|
|
2158
|
-
|
|
2330
|
+
__wbg_set_storage_texture_cec5aa7837053d08: function(arg0, arg1) {
|
|
2159
2331
|
arg0.storageTexture = arg1;
|
|
2160
2332
|
},
|
|
2161
|
-
|
|
2333
|
+
__wbg_set_store_op_591a1abd08613c6c: function(arg0, arg1) {
|
|
2162
2334
|
arg0.storeOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
2163
2335
|
},
|
|
2164
|
-
|
|
2336
|
+
__wbg_set_strip_index_format_dbad821d7567c23c: function(arg0, arg1) {
|
|
2165
2337
|
arg0.stripIndexFormat = __wbindgen_enum_GpuIndexFormat[arg1];
|
|
2166
2338
|
},
|
|
2167
|
-
|
|
2339
|
+
__wbg_set_swizzle_3bee97f702e7dd64: function(arg0, arg1, arg2) {
|
|
2340
|
+
arg0.swizzle = getStringFromWasm0(arg1, arg2);
|
|
2341
|
+
},
|
|
2342
|
+
__wbg_set_targets_4bda0f35fb8b6c3c: function(arg0, arg1, arg2) {
|
|
2168
2343
|
arg0.targets = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
2169
2344
|
},
|
|
2170
|
-
|
|
2345
|
+
__wbg_set_texture_0d32608010f8db45: function(arg0, arg1) {
|
|
2171
2346
|
arg0.texture = arg1;
|
|
2172
2347
|
},
|
|
2173
|
-
|
|
2348
|
+
__wbg_set_texture_ad2e09b8390f1536: function(arg0, arg1) {
|
|
2174
2349
|
arg0.texture = arg1;
|
|
2175
2350
|
},
|
|
2176
|
-
|
|
2351
|
+
__wbg_set_timestamp_writes_48795eb915d64cc8: function(arg0, arg1) {
|
|
2177
2352
|
arg0.timestampWrites = arg1;
|
|
2178
2353
|
},
|
|
2179
|
-
|
|
2354
|
+
__wbg_set_tone_mapping_d6a2f7ab4c678a6a: function(arg0, arg1) {
|
|
2180
2355
|
arg0.toneMapping = arg1;
|
|
2181
2356
|
},
|
|
2182
|
-
|
|
2357
|
+
__wbg_set_topology_15f02e73ac133259: function(arg0, arg1) {
|
|
2183
2358
|
arg0.topology = __wbindgen_enum_GpuPrimitiveTopology[arg1];
|
|
2184
2359
|
},
|
|
2185
|
-
|
|
2186
|
-
arg0.type = __wbindgen_enum_GpuBufferBindingType[arg1];
|
|
2187
|
-
},
|
|
2188
|
-
__wbg_set_type_f3d1ad35dc7889f9: function(arg0, arg1) {
|
|
2360
|
+
__wbg_set_type_13b6d8e98bfc41e4: function(arg0, arg1) {
|
|
2189
2361
|
arg0.type = __wbindgen_enum_GpuSamplerBindingType[arg1];
|
|
2190
2362
|
},
|
|
2191
|
-
|
|
2363
|
+
__wbg_set_type_a258902cd2aacc07: function(arg0, arg1) {
|
|
2364
|
+
arg0.type = __wbindgen_enum_GpuBufferBindingType[arg1];
|
|
2365
|
+
},
|
|
2366
|
+
__wbg_set_unclipped_depth_c4ab5f1fb3af1f8c: function(arg0, arg1) {
|
|
2192
2367
|
arg0.unclippedDepth = arg1 !== 0;
|
|
2193
2368
|
},
|
|
2194
|
-
|
|
2369
|
+
__wbg_set_usage_05dc0ccc989f3ef5: function(arg0, arg1) {
|
|
2195
2370
|
arg0.usage = arg1 >>> 0;
|
|
2196
2371
|
},
|
|
2197
|
-
|
|
2372
|
+
__wbg_set_usage_9bc666c5370b969b: function(arg0, arg1) {
|
|
2198
2373
|
arg0.usage = arg1 >>> 0;
|
|
2199
2374
|
},
|
|
2200
|
-
|
|
2375
|
+
__wbg_set_usage_a608d9bb12cfab80: function(arg0, arg1) {
|
|
2201
2376
|
arg0.usage = arg1 >>> 0;
|
|
2202
2377
|
},
|
|
2203
|
-
|
|
2378
|
+
__wbg_set_usage_fc09a76f83339d1b: function(arg0, arg1) {
|
|
2204
2379
|
arg0.usage = arg1 >>> 0;
|
|
2205
2380
|
},
|
|
2206
|
-
|
|
2381
|
+
__wbg_set_vertex_6706ba251cf794eb: function(arg0, arg1) {
|
|
2207
2382
|
arg0.vertex = arg1;
|
|
2208
2383
|
},
|
|
2209
|
-
|
|
2384
|
+
__wbg_set_view_dimension_06d628317bed5152: function(arg0, arg1) {
|
|
2210
2385
|
arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
2211
2386
|
},
|
|
2212
|
-
|
|
2387
|
+
__wbg_set_view_dimension_d96d10b6a6187558: function(arg0, arg1) {
|
|
2213
2388
|
arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
2214
2389
|
},
|
|
2215
|
-
|
|
2390
|
+
__wbg_set_view_formats_37b2fb50a8663344: function(arg0, arg1, arg2) {
|
|
2216
2391
|
arg0.viewFormats = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
2217
2392
|
},
|
|
2218
|
-
|
|
2393
|
+
__wbg_set_view_formats_52aa2653ad77c5f3: function(arg0, arg1, arg2) {
|
|
2219
2394
|
arg0.viewFormats = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
2220
2395
|
},
|
|
2221
|
-
|
|
2396
|
+
__wbg_set_view_gpu_texture_view_033c23f730814624: function(arg0, arg1) {
|
|
2222
2397
|
arg0.view = arg1;
|
|
2223
2398
|
},
|
|
2224
|
-
|
|
2399
|
+
__wbg_set_view_gpu_texture_view_fb3517be78315e4d: function(arg0, arg1) {
|
|
2225
2400
|
arg0.view = arg1;
|
|
2226
2401
|
},
|
|
2227
|
-
|
|
2402
|
+
__wbg_set_visibility_c200e52cd4eb51b4: function(arg0, arg1) {
|
|
2228
2403
|
arg0.visibility = arg1 >>> 0;
|
|
2229
2404
|
},
|
|
2230
2405
|
__wbg_set_width_5f89a551b5472887: function(arg0, arg1) {
|
|
2231
2406
|
arg0.width = arg1 >>> 0;
|
|
2232
2407
|
},
|
|
2233
|
-
|
|
2408
|
+
__wbg_set_width_e61fe13191c8c4a6: function(arg0, arg1) {
|
|
2234
2409
|
arg0.width = arg1 >>> 0;
|
|
2235
2410
|
},
|
|
2236
2411
|
__wbg_set_width_eb3001e1dcabb909: function(arg0, arg1) {
|
|
2237
2412
|
arg0.width = arg1 >>> 0;
|
|
2238
2413
|
},
|
|
2239
|
-
|
|
2414
|
+
__wbg_set_write_mask_cba5d1d12c4e3cad: function(arg0, arg1) {
|
|
2240
2415
|
arg0.writeMask = arg1 >>> 0;
|
|
2241
2416
|
},
|
|
2242
|
-
|
|
2417
|
+
__wbg_set_x_62c1844cae55f838: function(arg0, arg1) {
|
|
2243
2418
|
arg0.x = arg1 >>> 0;
|
|
2244
2419
|
},
|
|
2245
|
-
|
|
2420
|
+
__wbg_set_y_beb3edda7d0de400: function(arg0, arg1) {
|
|
2246
2421
|
arg0.y = arg1 >>> 0;
|
|
2247
2422
|
},
|
|
2248
|
-
|
|
2423
|
+
__wbg_set_z_7f7b74fb39689f38: function(arg0, arg1) {
|
|
2249
2424
|
arg0.z = arg1 >>> 0;
|
|
2250
2425
|
},
|
|
2251
2426
|
__wbg_shaderSource_519d0f56b613b2f9: function(arg0, arg1, arg2, arg3) {
|
|
@@ -2301,15 +2476,15 @@ function __wbg_get_imports() {
|
|
|
2301
2476
|
__wbg_stencilOpSeparate_f4319497016868f8: function(arg0, arg1, arg2, arg3, arg4) {
|
|
2302
2477
|
arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
2303
2478
|
},
|
|
2304
|
-
|
|
2479
|
+
__wbg_subgroupMaxSize_a83c7e32d6dfdac5: function(arg0) {
|
|
2305
2480
|
const ret = arg0.subgroupMaxSize;
|
|
2306
2481
|
return ret;
|
|
2307
2482
|
},
|
|
2308
|
-
|
|
2483
|
+
__wbg_subgroupMinSize_6d35168d9f0ccfb9: function(arg0) {
|
|
2309
2484
|
const ret = arg0.subgroupMinSize;
|
|
2310
2485
|
return ret;
|
|
2311
2486
|
},
|
|
2312
|
-
|
|
2487
|
+
__wbg_submit_ce44115121cd166c: function(arg0, arg1, arg2) {
|
|
2313
2488
|
arg0.submit(getArrayJsValueViewFromWasm0(arg1, arg2));
|
|
2314
2489
|
},
|
|
2315
2490
|
__wbg_texImage2D_20b5002326193fe6: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
@@ -2351,6 +2526,9 @@ function __wbg_get_imports() {
|
|
|
2351
2526
|
__wbg_texSubImage2D_4aef07460a86c81e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2352
2527
|
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
2353
2528
|
}, arguments); },
|
|
2529
|
+
__wbg_texSubImage2D_9905d49064d2610f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2530
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
2531
|
+
}, arguments); },
|
|
2354
2532
|
__wbg_texSubImage2D_9c7e2d1250b1f95f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2355
2533
|
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
2356
2534
|
}, arguments); },
|
|
@@ -2378,6 +2556,9 @@ function __wbg_get_imports() {
|
|
|
2378
2556
|
__wbg_texSubImage3D_b1b631c3011a209e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
2379
2557
|
arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
|
|
2380
2558
|
}, arguments); },
|
|
2559
|
+
__wbg_texSubImage3D_d31d1af485dd1a9f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
2560
|
+
arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
|
|
2561
|
+
}, arguments); },
|
|
2381
2562
|
__wbg_texSubImage3D_e8f20815b70bc7cb: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
2382
2563
|
arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
|
|
2383
2564
|
}, arguments); },
|
|
@@ -2396,7 +2577,11 @@ function __wbg_get_imports() {
|
|
|
2396
2577
|
const ret = arg0.then(arg1);
|
|
2397
2578
|
return ret;
|
|
2398
2579
|
},
|
|
2399
|
-
|
|
2580
|
+
__wbg_toString_55ffdf586349746b: function(arg0) {
|
|
2581
|
+
const ret = arg0.toString();
|
|
2582
|
+
return ret;
|
|
2583
|
+
},
|
|
2584
|
+
__wbg_unconfigure_0a07a0a40de8988d: function(arg0) {
|
|
2400
2585
|
arg0.unconfigure();
|
|
2401
2586
|
},
|
|
2402
2587
|
__wbg_uniform1f_0b36dc15cb2b4991: function(arg0, arg1, arg2) {
|
|
@@ -2504,9 +2689,6 @@ function __wbg_get_imports() {
|
|
|
2504
2689
|
__wbg_uniformMatrix4x3fv_b6f9b241f392f245: function(arg0, arg1, arg2, arg3, arg4) {
|
|
2505
2690
|
arg0.uniformMatrix4x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
2506
2691
|
},
|
|
2507
|
-
__wbg_unmap_6a96b14c9ef5f7f5: function(arg0) {
|
|
2508
|
-
arg0.unmap();
|
|
2509
|
-
},
|
|
2510
2692
|
__wbg_useProgram_d9c24a7d8632c4c1: function(arg0, arg1) {
|
|
2511
2693
|
arg0.useProgram(arg1);
|
|
2512
2694
|
},
|
|
@@ -2542,83 +2724,88 @@ function __wbg_get_imports() {
|
|
|
2542
2724
|
const ret = arg0.width;
|
|
2543
2725
|
return ret;
|
|
2544
2726
|
},
|
|
2545
|
-
|
|
2727
|
+
__wbg_writeBuffer_38a0005ce0c91214: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
2546
2728
|
arg0.writeBuffer(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), arg5, arg6);
|
|
2547
2729
|
}, arguments); },
|
|
2548
|
-
|
|
2730
|
+
__wbg_writeTexture_ddf1f089a7ceba85: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2549
2731
|
arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
|
|
2550
2732
|
}, arguments); },
|
|
2551
2733
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
2552
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2734
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2493, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2553
2735
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hd4acdde59c21f30c);
|
|
2554
2736
|
return ret;
|
|
2555
2737
|
},
|
|
2556
2738
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
2557
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx:
|
|
2558
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2739
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 319, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2740
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h07eb446950379899);
|
|
2559
2741
|
return ret;
|
|
2560
2742
|
},
|
|
2561
2743
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
2562
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx:
|
|
2563
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2744
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 322, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2745
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h55f3ef2a75985a4f);
|
|
2564
2746
|
return ret;
|
|
2565
2747
|
},
|
|
2566
2748
|
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
2567
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2568
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2749
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPURenderPipeline")], shim_idx: 319, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2750
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h07eb446950379899_45);
|
|
2569
2751
|
return ret;
|
|
2570
2752
|
},
|
|
2571
2753
|
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
2572
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2573
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2754
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 322, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2755
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h55f3ef2a75985a4f_46);
|
|
2574
2756
|
return ret;
|
|
2575
2757
|
},
|
|
2576
2758
|
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
2577
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
2578
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2759
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 319, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2760
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h07eb446950379899_47);
|
|
2761
|
+
return ret;
|
|
2762
|
+
},
|
|
2763
|
+
__wbindgen_generic_0000000000000007: function(arg0, arg1) {
|
|
2764
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 319, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2765
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h07eb446950379899_48);
|
|
2579
2766
|
return ret;
|
|
2580
2767
|
},
|
|
2581
|
-
|
|
2768
|
+
__wbindgen_generic_0000000000000008: function(arg0) {
|
|
2582
2769
|
// Cast intrinsic for `F64 -> Externref`.
|
|
2583
2770
|
const ret = arg0;
|
|
2584
2771
|
return ret;
|
|
2585
2772
|
},
|
|
2586
|
-
|
|
2773
|
+
__wbindgen_generic_0000000000000009: function(arg0, arg1) {
|
|
2587
2774
|
// Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`.
|
|
2588
2775
|
const ret = getArrayF32FromWasm0(arg0, arg1);
|
|
2589
2776
|
return ret;
|
|
2590
2777
|
},
|
|
2591
|
-
|
|
2778
|
+
__wbindgen_generic_000000000000000a: function(arg0, arg1) {
|
|
2592
2779
|
// Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`.
|
|
2593
2780
|
const ret = getArrayI16FromWasm0(arg0, arg1);
|
|
2594
2781
|
return ret;
|
|
2595
2782
|
},
|
|
2596
|
-
|
|
2783
|
+
__wbindgen_generic_000000000000000b: function(arg0, arg1) {
|
|
2597
2784
|
// Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`.
|
|
2598
2785
|
const ret = getArrayI32FromWasm0(arg0, arg1);
|
|
2599
2786
|
return ret;
|
|
2600
2787
|
},
|
|
2601
|
-
|
|
2788
|
+
__wbindgen_generic_000000000000000c: function(arg0, arg1) {
|
|
2602
2789
|
// Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`.
|
|
2603
2790
|
const ret = getArrayI8FromWasm0(arg0, arg1);
|
|
2604
2791
|
return ret;
|
|
2605
2792
|
},
|
|
2606
|
-
|
|
2793
|
+
__wbindgen_generic_000000000000000d: function(arg0, arg1) {
|
|
2607
2794
|
// Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`.
|
|
2608
2795
|
const ret = getArrayU16FromWasm0(arg0, arg1);
|
|
2609
2796
|
return ret;
|
|
2610
2797
|
},
|
|
2611
|
-
|
|
2798
|
+
__wbindgen_generic_000000000000000e: function(arg0, arg1) {
|
|
2612
2799
|
// Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
|
|
2613
2800
|
const ret = getArrayU32FromWasm0(arg0, arg1);
|
|
2614
2801
|
return ret;
|
|
2615
2802
|
},
|
|
2616
|
-
|
|
2803
|
+
__wbindgen_generic_000000000000000f: function(arg0, arg1) {
|
|
2617
2804
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
2618
2805
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
2619
2806
|
return ret;
|
|
2620
2807
|
},
|
|
2621
|
-
|
|
2808
|
+
__wbindgen_generic_0000000000000010: function(arg0, arg1) {
|
|
2622
2809
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
2623
2810
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2624
2811
|
return ret;
|
|
@@ -2638,12 +2825,12 @@ function __wbg_get_imports() {
|
|
|
2638
2825
|
};
|
|
2639
2826
|
}
|
|
2640
2827
|
|
|
2641
|
-
function
|
|
2642
|
-
wasm.
|
|
2828
|
+
function wasm_bindgen__convert__closures_____invoke__h55f3ef2a75985a4f(arg0, arg1, arg2) {
|
|
2829
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h55f3ef2a75985a4f(arg0, arg1, arg2);
|
|
2643
2830
|
}
|
|
2644
2831
|
|
|
2645
|
-
function
|
|
2646
|
-
wasm.
|
|
2832
|
+
function wasm_bindgen__convert__closures_____invoke__h55f3ef2a75985a4f_46(arg0, arg1, arg2) {
|
|
2833
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h55f3ef2a75985a4f_46(arg0, arg1, arg2);
|
|
2647
2834
|
}
|
|
2648
2835
|
|
|
2649
2836
|
function wasm_bindgen__convert__closures_____invoke__hd4acdde59c21f30c(arg0, arg1, arg2) {
|
|
@@ -2653,22 +2840,29 @@ function wasm_bindgen__convert__closures_____invoke__hd4acdde59c21f30c(arg0, arg
|
|
|
2653
2840
|
}
|
|
2654
2841
|
}
|
|
2655
2842
|
|
|
2656
|
-
function
|
|
2657
|
-
const ret = wasm.
|
|
2843
|
+
function wasm_bindgen__convert__closures_____invoke__h07eb446950379899(arg0, arg1, arg2) {
|
|
2844
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h07eb446950379899(arg0, arg1, arg2);
|
|
2845
|
+
if (ret[1]) {
|
|
2846
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
2847
|
+
}
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2850
|
+
function wasm_bindgen__convert__closures_____invoke__h07eb446950379899_45(arg0, arg1, arg2) {
|
|
2851
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h07eb446950379899_45(arg0, arg1, arg2);
|
|
2658
2852
|
if (ret[1]) {
|
|
2659
2853
|
throw takeFromExternrefTable0(ret[0]);
|
|
2660
2854
|
}
|
|
2661
2855
|
}
|
|
2662
2856
|
|
|
2663
|
-
function
|
|
2664
|
-
const ret = wasm.
|
|
2857
|
+
function wasm_bindgen__convert__closures_____invoke__h07eb446950379899_47(arg0, arg1, arg2) {
|
|
2858
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h07eb446950379899_47(arg0, arg1, arg2);
|
|
2665
2859
|
if (ret[1]) {
|
|
2666
2860
|
throw takeFromExternrefTable0(ret[0]);
|
|
2667
2861
|
}
|
|
2668
2862
|
}
|
|
2669
2863
|
|
|
2670
|
-
function
|
|
2671
|
-
const ret = wasm.
|
|
2864
|
+
function wasm_bindgen__convert__closures_____invoke__h07eb446950379899_48(arg0, arg1, arg2) {
|
|
2865
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h07eb446950379899_48(arg0, arg1, arg2);
|
|
2672
2866
|
if (ret[1]) {
|
|
2673
2867
|
throw takeFromExternrefTable0(ret[0]);
|
|
2674
2868
|
}
|
|
@@ -2706,6 +2900,9 @@ const __wbindgen_enum_GpuCullMode = ["none", "front", "back"];
|
|
|
2706
2900
|
const __wbindgen_enum_GpuDeviceLostReason = ["unknown", "destroyed"];
|
|
2707
2901
|
|
|
2708
2902
|
|
|
2903
|
+
const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
|
|
2904
|
+
|
|
2905
|
+
|
|
2709
2906
|
const __wbindgen_enum_GpuFrontFace = ["ccw", "cw"];
|
|
2710
2907
|
|
|
2711
2908
|
|
|
@@ -2715,6 +2912,9 @@ const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
|
|
|
2715
2912
|
const __wbindgen_enum_GpuLoadOp = ["load", "clear"];
|
|
2716
2913
|
|
|
2717
2914
|
|
|
2915
|
+
const __wbindgen_enum_GpuPipelineErrorReason = ["validation", "internal"];
|
|
2916
|
+
|
|
2917
|
+
|
|
2718
2918
|
const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
|
|
2719
2919
|
|
|
2720
2920
|
|
|
@@ -2755,6 +2955,9 @@ const __wbindgen_enum_GpuVertexStepMode = ["vertex", "instance"];
|
|
|
2755
2955
|
const PlayerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2756
2956
|
? { register: () => {}, unregister: () => {} }
|
|
2757
2957
|
: new FinalizationRegistry(ptr => wasm.__wbg_player_free(ptr, 1));
|
|
2958
|
+
const PreparedFigureFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2959
|
+
? { register: () => {}, unregister: () => {} }
|
|
2960
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_preparedfigure_free(ptr, 1));
|
|
2758
2961
|
|
|
2759
2962
|
function addToExternrefTable0(obj) {
|
|
2760
2963
|
const idx = wasm.__externref_table_alloc();
|
|
@@ -2762,6 +2965,12 @@ function addToExternrefTable0(obj) {
|
|
|
2762
2965
|
return idx;
|
|
2763
2966
|
}
|
|
2764
2967
|
|
|
2968
|
+
function _assertClass(instance, klass) {
|
|
2969
|
+
if (!(instance instanceof klass)) {
|
|
2970
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
2971
|
+
}
|
|
2972
|
+
}
|
|
2973
|
+
|
|
2765
2974
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
2766
2975
|
? { register: () => {}, unregister: () => {} }
|
|
2767
2976
|
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|