@pencil-lang/figure 0.0.6 → 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/pkg/pencil_web.js CHANGED
@@ -157,44 +157,14 @@ export class Player {
157
157
  }
158
158
  }
159
159
  /**
160
- * Compiles new sources. On an error the previous figure stays on screen, so a
161
- * half-typed edit doesn't blank the canvas.
162
- * The error says where it is (see `compile_error`).
163
- * @param {string} doc
164
- * @param {string[]} sheets
165
- * @param {string[]} names
166
- * @param {any} files
167
- */
168
- load(doc, sheets, names, files) {
169
- let ptr0, len0, ptr1, len1, ptr2, len2;
170
- try {
171
- ptr0 = passStringToWasm0(doc, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
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
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
193
163
  */
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.
@@ -416,6 +436,31 @@ export class Player {
416
436
  }
417
437
  if (Symbol.dispose) Player.prototype[Symbol.dispose] = Player.prototype.free;
418
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
+
419
464
  /**
420
465
  * A document's design size, as JSON `[width, height]`, to shape its canvas before a player
421
466
  * exists to draw on it.
@@ -689,11 +734,11 @@ function __wbg_get_imports() {
689
734
  const ret = Error(getStringFromWasm0(arg0, arg1));
690
735
  return ret;
691
736
  },
692
- __wbg_Window_2805651c516cb7aa: function(arg0) {
737
+ __wbg_Window_fef571b39b470387: function(arg0) {
693
738
  const ret = arg0.Window;
694
739
  return ret;
695
740
  },
696
- __wbg_WorkerGlobalScope_174390815d0a4893: function(arg0) {
741
+ __wbg_WorkerGlobalScope_3ed6dee4573270f6: function(arg0) {
697
742
  const ret = arg0.WorkerGlobalScope;
698
743
  return ret;
699
744
  },
@@ -751,6 +796,9 @@ function __wbg_get_imports() {
751
796
  __wbg_activeTexture_89cef8c297ad0698: function(arg0, arg1) {
752
797
  arg0.activeTexture(arg1 >>> 0);
753
798
  },
799
+ __wbg_addEventListener_847fd86b8c33ec43: function() { return handleError(function (arg0, arg1, arg2, arg3) {
800
+ arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
801
+ }, arguments); },
754
802
  __wbg_attachShader_3ed301cc92db59f6: function(arg0, arg1, arg2) {
755
803
  arg0.attachShader(arg1, arg2);
756
804
  },
@@ -760,7 +808,7 @@ function __wbg_get_imports() {
760
808
  __wbg_beginQuery_f800947e639433e8: function(arg0, arg1, arg2) {
761
809
  arg0.beginQuery(arg1 >>> 0, arg2);
762
810
  },
763
- __wbg_beginRenderPass_597e3973321fd369: function() { return handleError(function (arg0, arg1) {
811
+ __wbg_beginRenderPass_a4373284aaed4f43: function() { return handleError(function (arg0, arg1) {
764
812
  const ret = arg0.beginRenderPass(arg1);
765
813
  return ret;
766
814
  }, arguments); },
@@ -923,9 +971,13 @@ function __wbg_get_imports() {
923
971
  __wbg_compressedTexSubImage3D_e1d361485803b713: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
924
972
  arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10);
925
973
  },
926
- __wbg_configure_8e04ab1a867d31e1: function() { return handleError(function (arg0, arg1) {
974
+ __wbg_configure_31516cc3b0858ec8: function() { return handleError(function (arg0, arg1) {
927
975
  arg0.configure(arg1);
928
976
  }, arguments); },
977
+ __wbg_constructor_76ad3e2c50d259de: function(arg0) {
978
+ const ret = arg0.constructor;
979
+ return ret;
980
+ },
929
981
  __wbg_copyBufferSubData_b10635982222cbc4: function(arg0, arg1, arg2, arg3, arg4, arg5) {
930
982
  arg0.copyBufferSubData(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
931
983
  },
@@ -938,11 +990,11 @@ function __wbg_get_imports() {
938
990
  __wbg_copyTexSubImage3D_e35f615c7c8244ba: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
939
991
  arg0.copyTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
940
992
  },
941
- __wbg_createBindGroupLayout_5699617270d84042: function() { return handleError(function (arg0, arg1) {
993
+ __wbg_createBindGroupLayout_4f241660bcf17970: function() { return handleError(function (arg0, arg1) {
942
994
  const ret = arg0.createBindGroupLayout(arg1);
943
995
  return ret;
944
996
  }, arguments); },
945
- __wbg_createBindGroup_f539b26ca341308f: function(arg0, arg1) {
997
+ __wbg_createBindGroup_655c6e6c0258530e: function(arg0, arg1) {
946
998
  const ret = arg0.createBindGroup(arg1);
947
999
  return ret;
948
1000
  },
@@ -950,7 +1002,7 @@ function __wbg_get_imports() {
950
1002
  const ret = arg0.createBuffer();
951
1003
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
952
1004
  },
953
- __wbg_createBuffer_b8c5b520d2c822b8: function() { return handleError(function (arg0, arg1) {
1005
+ __wbg_createBuffer_6cf1a721b324813a: function() { return handleError(function (arg0, arg1) {
954
1006
  const ret = arg0.createBuffer(arg1);
955
1007
  return ret;
956
1008
  }, arguments); },
@@ -958,7 +1010,7 @@ function __wbg_get_imports() {
958
1010
  const ret = arg0.createBuffer();
959
1011
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
960
1012
  },
961
- __wbg_createCommandEncoder_3352d1ffc36c6fc0: function(arg0, arg1) {
1013
+ __wbg_createCommandEncoder_ec1f40f0cb4d09df: function(arg0, arg1) {
962
1014
  const ret = arg0.createCommandEncoder(arg1);
963
1015
  return ret;
964
1016
  },
@@ -970,7 +1022,7 @@ function __wbg_get_imports() {
970
1022
  const ret = arg0.createFramebuffer();
971
1023
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
972
1024
  },
973
- __wbg_createPipelineLayout_6eab52c327118937: function(arg0, arg1) {
1025
+ __wbg_createPipelineLayout_2c8cd4528b06c108: function(arg0, arg1) {
974
1026
  const ret = arg0.createPipelineLayout(arg1);
975
1027
  return ret;
976
1028
  },
@@ -986,10 +1038,10 @@ function __wbg_get_imports() {
986
1038
  const ret = arg0.createQuery();
987
1039
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
988
1040
  },
989
- __wbg_createRenderPipeline_58390ba302107691: function() { return handleError(function (arg0, arg1) {
990
- const ret = arg0.createRenderPipeline(arg1);
1041
+ __wbg_createRenderPipelineAsync_eecad1e54ef27acf: function(arg0, arg1) {
1042
+ const ret = arg0.createRenderPipelineAsync(arg1);
991
1043
  return ret;
992
- }, arguments); },
1044
+ },
993
1045
  __wbg_createRenderbuffer_19c2eec619a37a15: function(arg0) {
994
1046
  const ret = arg0.createRenderbuffer();
995
1047
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -1002,7 +1054,7 @@ function __wbg_get_imports() {
1002
1054
  const ret = arg0.createSampler();
1003
1055
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1004
1056
  },
1005
- __wbg_createShaderModule_cefa51336cb288ae: function(arg0, arg1) {
1057
+ __wbg_createShaderModule_2e44fc7677c6288b: function(arg0, arg1) {
1006
1058
  const ret = arg0.createShaderModule(arg1);
1007
1059
  return ret;
1008
1060
  },
@@ -1014,7 +1066,7 @@ function __wbg_get_imports() {
1014
1066
  const ret = arg0.createShader(arg1 >>> 0);
1015
1067
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1016
1068
  },
1017
- __wbg_createTexture_2c95e64f50008aea: function() { return handleError(function (arg0, arg1) {
1069
+ __wbg_createTexture_0550382a3890c559: function() { return handleError(function (arg0, arg1) {
1018
1070
  const ret = arg0.createTexture(arg1);
1019
1071
  return ret;
1020
1072
  }, arguments); },
@@ -1034,7 +1086,7 @@ function __wbg_get_imports() {
1034
1086
  const ret = arg0.createVertexArray();
1035
1087
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1036
1088
  },
1037
- __wbg_createView_96e5e405cc3c01e8: function() { return handleError(function (arg0, arg1) {
1089
+ __wbg_createView_472059ff382a2e65: function() { return handleError(function (arg0, arg1) {
1038
1090
  const ret = arg0.createView(arg1);
1039
1091
  return ret;
1040
1092
  }, arguments); },
@@ -1113,17 +1165,14 @@ function __wbg_get_imports() {
1113
1165
  __wbg_depthRange_942825e3232596de: function(arg0, arg1, arg2) {
1114
1166
  arg0.depthRange(arg1, arg2);
1115
1167
  },
1116
- __wbg_description_7a568e202a00293f: function(arg0, arg1) {
1168
+ __wbg_description_5eb53b355f0598bc: function(arg0, arg1) {
1117
1169
  const ret = arg1.description;
1118
1170
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1119
1171
  const len1 = WASM_VECTOR_LEN;
1120
1172
  getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
1121
1173
  getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
1122
1174
  },
1123
- __wbg_destroy_275564a0a8b8d071: function(arg0) {
1124
- arg0.destroy();
1125
- },
1126
- __wbg_destroy_637537007d9eaa44: function(arg0) {
1175
+ __wbg_destroy_b59cccd349464fab: function(arg0) {
1127
1176
  arg0.destroy();
1128
1177
  },
1129
1178
  __wbg_disableVertexAttribArray_011898581287ef1e: function(arg0, arg1) {
@@ -1166,7 +1215,7 @@ function __wbg_get_imports() {
1166
1215
  __wbg_drawElementsInstanced_3240c0c168d6af87: function(arg0, arg1, arg2, arg3, arg4, arg5) {
1167
1216
  arg0.drawElementsInstanced(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1168
1217
  },
1169
- __wbg_draw_086a9578fc9898c2: function(arg0, arg1, arg2, arg3, arg4) {
1218
+ __wbg_draw_6877f98847e1e36c: function(arg0, arg1, arg2, arg3, arg4) {
1170
1219
  arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
1171
1220
  },
1172
1221
  __wbg_enableVertexAttribArray_d485706ade6bebf8: function(arg0, arg1) {
@@ -1184,10 +1233,10 @@ function __wbg_get_imports() {
1184
1233
  __wbg_endQuery_f052a8f0f3589d3b: function(arg0, arg1) {
1185
1234
  arg0.endQuery(arg1 >>> 0);
1186
1235
  },
1187
- __wbg_end_b57473834b877409: function(arg0) {
1236
+ __wbg_end_f99ebed53d4e198a: function(arg0) {
1188
1237
  arg0.end();
1189
1238
  },
1190
- __wbg_error_4e2c22b7e3952509: function(arg0) {
1239
+ __wbg_error_6aedd1e3b61238a4: function(arg0) {
1191
1240
  const ret = arg0.error;
1192
1241
  return ret;
1193
1242
  },
@@ -1206,7 +1255,11 @@ function __wbg_get_imports() {
1206
1255
  const ret = arg0.fenceSync(arg1 >>> 0, arg2 >>> 0);
1207
1256
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1208
1257
  },
1209
- __wbg_finish_09ec094c10f41e7b: function(arg0) {
1258
+ __wbg_finish_4d91de5e927dd13f: function(arg0, arg1) {
1259
+ const ret = arg0.finish(arg1);
1260
+ return ret;
1261
+ },
1262
+ __wbg_finish_6e06b68ab68cd9f6: function(arg0) {
1210
1263
  const ret = arg0.finish();
1211
1264
  return ret;
1212
1265
  },
@@ -1216,10 +1269,6 @@ function __wbg_get_imports() {
1216
1269
  __wbg_finish_abf9726b03095270: function(arg0) {
1217
1270
  arg0.finish();
1218
1271
  },
1219
- __wbg_finish_ec1c191f66a895b1: function(arg0, arg1) {
1220
- const ret = arg0.finish(arg1);
1221
- return ret;
1222
- },
1223
1272
  __wbg_flush_4911c503a18d091d: function(arg0) {
1224
1273
  arg0.flush();
1225
1274
  },
@@ -1269,7 +1318,7 @@ function __wbg_get_imports() {
1269
1318
  const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
1270
1319
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1271
1320
  }, arguments); },
1272
- __wbg_getCurrentTexture_c3b1727224d7f6e6: function() { return handleError(function (arg0) {
1321
+ __wbg_getCurrentTexture_e8a9a61398a831a1: function() { return handleError(function (arg0) {
1273
1322
  const ret = arg0.getCurrentTexture();
1274
1323
  return ret;
1275
1324
  }, arguments); },
@@ -1281,10 +1330,6 @@ function __wbg_get_imports() {
1281
1330
  const ret = arg0.getIndexedParameter(arg1 >>> 0, arg2 >>> 0);
1282
1331
  return ret;
1283
1332
  }, arguments); },
1284
- __wbg_getMappedRange_28e816a763520e01: function() { return handleError(function (arg0, arg1, arg2) {
1285
- const ret = arg0.getMappedRange(arg1, arg2);
1286
- return ret;
1287
- }, arguments); },
1288
1333
  __wbg_getParameter_4c67158a3cef7a34: function() { return handleError(function (arg0, arg1) {
1289
1334
  const ret = arg0.getParameter(arg1 >>> 0);
1290
1335
  return ret;
@@ -1293,7 +1338,7 @@ function __wbg_get_imports() {
1293
1338
  const ret = arg0.getParameter(arg1 >>> 0);
1294
1339
  return ret;
1295
1340
  }, arguments); },
1296
- __wbg_getPreferredCanvasFormat_0ef5034c8902201b: function(arg0) {
1341
+ __wbg_getPreferredCanvasFormat_8b57039d1801a506: function(arg0) {
1297
1342
  const ret = arg0.getPreferredCanvasFormat();
1298
1343
  return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 102) - 1;
1299
1344
  },
@@ -1381,7 +1426,7 @@ function __wbg_get_imports() {
1381
1426
  const ret = arg0[arg1 >>> 0];
1382
1427
  return ret;
1383
1428
  },
1384
- __wbg_gpu_514705c6dd1f0dab: function(arg0) {
1429
+ __wbg_gpu_e058e0d4226b6ad9: function(arg0) {
1385
1430
  const ret = arg0.gpu;
1386
1431
  return ret;
1387
1432
  },
@@ -1393,11 +1438,21 @@ function __wbg_get_imports() {
1393
1438
  const ret = arg0.includes(arg1, arg2);
1394
1439
  return ret;
1395
1440
  },
1396
- __wbg_info_8554cb7af37427b6: function(arg0) {
1441
+ __wbg_info_166f8675cbf261b8: function(arg0) {
1397
1442
  const ret = arg0.info;
1398
1443
  return ret;
1399
1444
  },
1400
- __wbg_instanceof_GpuOutOfMemoryError_7126123117d274a4: function(arg0) {
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) {
1401
1456
  let result;
1402
1457
  try {
1403
1458
  result = arg0 instanceof GPUOutOfMemoryError;
@@ -1407,7 +1462,17 @@ function __wbg_get_imports() {
1407
1462
  const ret = result;
1408
1463
  return ret;
1409
1464
  },
1410
- __wbg_instanceof_GpuValidationError_f18d09609dc737d7: function(arg0) {
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) {
1411
1476
  let result;
1412
1477
  try {
1413
1478
  result = arg0 instanceof GPUValidationError;
@@ -1427,6 +1492,16 @@ function __wbg_get_imports() {
1427
1492
  const ret = result;
1428
1493
  return ret;
1429
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
+ },
1430
1505
  __wbg_instanceof_WebGl2RenderingContext_de6feb460369d6c6: function(arg0) {
1431
1506
  let result;
1432
1507
  try {
@@ -1450,7 +1525,7 @@ function __wbg_get_imports() {
1450
1525
  __wbg_invalidateFramebuffer_33206c632642a1bd: function() { return handleError(function (arg0, arg1, arg2) {
1451
1526
  arg0.invalidateFramebuffer(arg1 >>> 0, arg2);
1452
1527
  }, arguments); },
1453
- __wbg_isFallbackAdapter_6a4fa7356d18310b: function(arg0) {
1528
+ __wbg_isFallbackAdapter_10204c602a8b8ce0: function(arg0) {
1454
1529
  const ret = arg0.isFallbackAdapter;
1455
1530
  return ret;
1456
1531
  },
@@ -1458,7 +1533,7 @@ function __wbg_get_imports() {
1458
1533
  const ret = Object.is(arg0, arg1);
1459
1534
  return ret;
1460
1535
  },
1461
- __wbg_label_fceb40a43a358e62: function(arg0, arg1) {
1536
+ __wbg_label_36559528632f5c02: function(arg0, arg1) {
1462
1537
  const ret = arg1.label;
1463
1538
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1464
1539
  const len1 = WASM_VECTOR_LEN;
@@ -1469,11 +1544,11 @@ function __wbg_get_imports() {
1469
1544
  const ret = arg0.length;
1470
1545
  return ret;
1471
1546
  },
1472
- __wbg_limits_4e444eb8c2e61c45: function(arg0) {
1547
+ __wbg_limits_004e9b9176e42b5a: function(arg0) {
1473
1548
  const ret = arg0.limits;
1474
1549
  return ret;
1475
1550
  },
1476
- __wbg_limits_98515cc885d709ef: function(arg0) {
1551
+ __wbg_limits_e31d779796c3ee27: function(arg0) {
1477
1552
  const ret = arg0.limits;
1478
1553
  return ret;
1479
1554
  },
@@ -1483,160 +1558,183 @@ function __wbg_get_imports() {
1483
1558
  __wbg_linkProgram_dee7cda98bacb12f: function(arg0, arg1) {
1484
1559
  arg0.linkProgram(arg1);
1485
1560
  },
1486
- __wbg_lost_25273dba897db03c: function(arg0) {
1561
+ __wbg_lost_83c927e8629f0968: function(arg0) {
1487
1562
  const ret = arg0.lost;
1488
1563
  return ret;
1489
1564
  },
1490
- __wbg_mapAsync_b0597127f5037286: function(arg0, arg1, arg2, arg3) {
1565
+ __wbg_mapAsync_52b01fa9e8f765fd: function(arg0, arg1, arg2, arg3) {
1491
1566
  const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
1492
1567
  return ret;
1493
1568
  },
1494
- __wbg_matchMedia_b53687d22ec43649: function() { return handleError(function (arg0, arg1, arg2) {
1495
- const ret = arg0.matchMedia(getStringFromWasm0(arg1, arg2));
1496
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1497
- }, arguments); },
1498
- __wbg_matches_a47c420646498c64: function(arg0) {
1499
- const ret = arg0.matches;
1500
- return ret;
1501
- },
1502
- __wbg_maxBindGroupsPlusVertexBuffers_1face4afb5363937: function(arg0) {
1569
+ __wbg_maxBindGroupsPlusVertexBuffers_69cb88a30b370f22: function(arg0) {
1503
1570
  const ret = arg0.maxBindGroupsPlusVertexBuffers;
1504
1571
  return ret;
1505
1572
  },
1506
- __wbg_maxBindGroups_a0b7e55762f095b9: function(arg0) {
1573
+ __wbg_maxBindGroups_5349434f04dfe574: function(arg0) {
1507
1574
  const ret = arg0.maxBindGroups;
1508
1575
  return ret;
1509
1576
  },
1510
- __wbg_maxBindingsPerBindGroup_ec9067be38d6ec72: function(arg0) {
1577
+ __wbg_maxBindingsPerBindGroup_e5abb97f3633e3e2: function(arg0) {
1511
1578
  const ret = arg0.maxBindingsPerBindGroup;
1512
1579
  return ret;
1513
1580
  },
1514
- __wbg_maxBufferSize_a9ce15e541c64cd2: function(arg0) {
1581
+ __wbg_maxBufferSize_f98e2db09a228def: function(arg0) {
1515
1582
  const ret = arg0.maxBufferSize;
1516
1583
  return ret;
1517
1584
  },
1518
- __wbg_maxColorAttachmentBytesPerSample_44089e129e1a2a1d: function(arg0) {
1585
+ __wbg_maxColorAttachmentBytesPerSample_168d239d0758170c: function(arg0) {
1519
1586
  const ret = arg0.maxColorAttachmentBytesPerSample;
1520
1587
  return ret;
1521
1588
  },
1522
- __wbg_maxColorAttachments_6bd8156394ba618c: function(arg0) {
1589
+ __wbg_maxColorAttachments_cadaa65e5d5418c0: function(arg0) {
1523
1590
  const ret = arg0.maxColorAttachments;
1524
1591
  return ret;
1525
1592
  },
1526
- __wbg_maxComputeInvocationsPerWorkgroup_7b086f15ef868934: function(arg0) {
1593
+ __wbg_maxComputeInvocationsPerWorkgroup_50f5f93641dd75f6: function(arg0) {
1527
1594
  const ret = arg0.maxComputeInvocationsPerWorkgroup;
1528
1595
  return ret;
1529
1596
  },
1530
- __wbg_maxComputeWorkgroupSizeX_8bbe505e0ac8dc18: function(arg0) {
1597
+ __wbg_maxComputeWorkgroupSizeX_3c3bd0b6d623cf60: function(arg0) {
1531
1598
  const ret = arg0.maxComputeWorkgroupSizeX;
1532
1599
  return ret;
1533
1600
  },
1534
- __wbg_maxComputeWorkgroupSizeY_7228ed3935eecc31: function(arg0) {
1601
+ __wbg_maxComputeWorkgroupSizeY_20d139a1ff9fb647: function(arg0) {
1535
1602
  const ret = arg0.maxComputeWorkgroupSizeY;
1536
1603
  return ret;
1537
1604
  },
1538
- __wbg_maxComputeWorkgroupSizeZ_6092b56a967f6f8d: function(arg0) {
1605
+ __wbg_maxComputeWorkgroupSizeZ_e52391c32200733c: function(arg0) {
1539
1606
  const ret = arg0.maxComputeWorkgroupSizeZ;
1540
1607
  return ret;
1541
1608
  },
1542
- __wbg_maxComputeWorkgroupStorageSize_4773e3bd3936df36: function(arg0) {
1609
+ __wbg_maxComputeWorkgroupStorageSize_251ef2439d10f56a: function(arg0) {
1543
1610
  const ret = arg0.maxComputeWorkgroupStorageSize;
1544
1611
  return ret;
1545
1612
  },
1546
- __wbg_maxComputeWorkgroupsPerDimension_79222bf8e8a90fbd: function(arg0) {
1613
+ __wbg_maxComputeWorkgroupsPerDimension_d236d7ce817aa30a: function(arg0) {
1547
1614
  const ret = arg0.maxComputeWorkgroupsPerDimension;
1548
1615
  return ret;
1549
1616
  },
1550
- __wbg_maxDynamicStorageBuffersPerPipelineLayout_3ab5762b1b2c7fc2: function(arg0) {
1617
+ __wbg_maxDynamicStorageBuffersPerPipelineLayout_57ef8577fcb28389: function(arg0) {
1551
1618
  const ret = arg0.maxDynamicStorageBuffersPerPipelineLayout;
1552
1619
  return ret;
1553
1620
  },
1554
- __wbg_maxDynamicUniformBuffersPerPipelineLayout_722da31d0de1c256: function(arg0) {
1621
+ __wbg_maxDynamicUniformBuffersPerPipelineLayout_dff4af4418fb000f: function(arg0) {
1555
1622
  const ret = arg0.maxDynamicUniformBuffersPerPipelineLayout;
1556
1623
  return ret;
1557
1624
  },
1558
- __wbg_maxInterStageShaderVariables_821096d4b3020715: function(arg0) {
1625
+ __wbg_maxInterStageShaderVariables_3f6e16b309a04a3b: function(arg0) {
1559
1626
  const ret = arg0.maxInterStageShaderVariables;
1560
1627
  return ret;
1561
1628
  },
1562
- __wbg_maxSampledTexturesPerShaderStage_c6aea9e05c0a02ca: function(arg0) {
1629
+ __wbg_maxSampledTexturesPerShaderStage_c37c627cf5627f7b: function(arg0) {
1563
1630
  const ret = arg0.maxSampledTexturesPerShaderStage;
1564
1631
  return ret;
1565
1632
  },
1566
- __wbg_maxSamplersPerShaderStage_3aa30f6c002d3a99: function(arg0) {
1633
+ __wbg_maxSamplersPerShaderStage_0bbc3266ffd62c7a: function(arg0) {
1567
1634
  const ret = arg0.maxSamplersPerShaderStage;
1568
1635
  return ret;
1569
1636
  },
1570
- __wbg_maxStorageBufferBindingSize_84a2c2433627fca2: function(arg0) {
1637
+ __wbg_maxStorageBufferBindingSize_dbd810e2b1429e9e: function(arg0) {
1571
1638
  const ret = arg0.maxStorageBufferBindingSize;
1572
1639
  return ret;
1573
1640
  },
1574
- __wbg_maxStorageBuffersPerShaderStage_25b96748df28dc20: function(arg0) {
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) {
1575
1650
  const ret = arg0.maxStorageBuffersPerShaderStage;
1576
1651
  return ret;
1577
1652
  },
1578
- __wbg_maxStorageTexturesPerShaderStage_53ed734f26e6c1ad: function(arg0) {
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) {
1579
1662
  const ret = arg0.maxStorageTexturesPerShaderStage;
1580
1663
  return ret;
1581
1664
  },
1582
- __wbg_maxTextureArrayLayers_9ec487f1ce102992: function(arg0) {
1665
+ __wbg_maxTextureArrayLayers_6c0ca4e58060a6d0: function(arg0) {
1583
1666
  const ret = arg0.maxTextureArrayLayers;
1584
1667
  return ret;
1585
1668
  },
1586
- __wbg_maxTextureDimension1D_faef91b2e9fa6740: function(arg0) {
1669
+ __wbg_maxTextureDimension1D_56bf564ae9425b84: function(arg0) {
1587
1670
  const ret = arg0.maxTextureDimension1D;
1588
1671
  return ret;
1589
1672
  },
1590
- __wbg_maxTextureDimension2D_3a923eb2df4d9124: function(arg0) {
1673
+ __wbg_maxTextureDimension2D_881bb516c9fc7101: function(arg0) {
1591
1674
  const ret = arg0.maxTextureDimension2D;
1592
1675
  return ret;
1593
1676
  },
1594
- __wbg_maxTextureDimension3D_943321fe5945464e: function(arg0) {
1677
+ __wbg_maxTextureDimension3D_d6c0d2ae3fae66c7: function(arg0) {
1595
1678
  const ret = arg0.maxTextureDimension3D;
1596
1679
  return ret;
1597
1680
  },
1598
- __wbg_maxUniformBufferBindingSize_21e89ff761d576db: function(arg0) {
1681
+ __wbg_maxUniformBufferBindingSize_68dcfbeb2a7d904f: function(arg0) {
1599
1682
  const ret = arg0.maxUniformBufferBindingSize;
1600
1683
  return ret;
1601
1684
  },
1602
- __wbg_maxUniformBuffersPerShaderStage_19a0bfb0189f7254: function(arg0) {
1685
+ __wbg_maxUniformBuffersPerShaderStage_f63870e64b1ccfe8: function(arg0) {
1603
1686
  const ret = arg0.maxUniformBuffersPerShaderStage;
1604
1687
  return ret;
1605
1688
  },
1606
- __wbg_maxVertexAttributes_49aef6c51d07a280: function(arg0) {
1689
+ __wbg_maxVertexAttributes_a88dee81cc8d8d34: function(arg0) {
1607
1690
  const ret = arg0.maxVertexAttributes;
1608
1691
  return ret;
1609
1692
  },
1610
- __wbg_maxVertexBufferArrayStride_f68c4029e6f047ec: function(arg0) {
1693
+ __wbg_maxVertexBufferArrayStride_ed14769769bead3e: function(arg0) {
1611
1694
  const ret = arg0.maxVertexBufferArrayStride;
1612
1695
  return ret;
1613
1696
  },
1614
- __wbg_maxVertexBuffers_ce9f15a623f9aac7: function(arg0) {
1697
+ __wbg_maxVertexBuffers_18328b6e2bcccea5: function(arg0) {
1615
1698
  const ret = arg0.maxVertexBuffers;
1616
1699
  return ret;
1617
1700
  },
1618
- __wbg_message_408f555d03641e84: function(arg0, arg1) {
1701
+ __wbg_message_43d8c8f1d543a349: function(arg0) {
1702
+ const ret = arg0.message;
1703
+ return ret;
1704
+ },
1705
+ __wbg_message_4c75c59aa4f38c75: function(arg0, arg1) {
1619
1706
  const ret = arg1.message;
1620
1707
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1621
1708
  const len1 = WASM_VECTOR_LEN;
1622
1709
  getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
1623
1710
  getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
1624
1711
  },
1625
- __wbg_message_5223ba7df7256eac: function(arg0, arg1) {
1712
+ __wbg_message_7edc18bf257de1a4: function(arg0, arg1) {
1626
1713
  const ret = arg1.message;
1627
1714
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1628
1715
  const len1 = WASM_VECTOR_LEN;
1629
1716
  getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
1630
1717
  getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
1631
1718
  },
1632
- __wbg_minStorageBufferOffsetAlignment_529f1f52e61188fc: function(arg0) {
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) {
1633
1727
  const ret = arg0.minStorageBufferOffsetAlignment;
1634
1728
  return ret;
1635
1729
  },
1636
- __wbg_minUniformBufferOffsetAlignment_519e26287e1996a3: function(arg0) {
1730
+ __wbg_minUniformBufferOffsetAlignment_56a700cb14852d0b: function(arg0) {
1637
1731
  const ret = arg0.minUniformBufferOffsetAlignment;
1638
1732
  return ret;
1639
1733
  },
1734
+ __wbg_name_fd11f69c917c5670: function(arg0) {
1735
+ const ret = arg0.name;
1736
+ return ret;
1737
+ },
1640
1738
  __wbg_navigator_9641ab32fa612dd1: function(arg0) {
1641
1739
  const ret = arg0.navigator;
1642
1740
  return ret;
@@ -1687,15 +1785,11 @@ function __wbg_get_imports() {
1687
1785
  state0.a = 0;
1688
1786
  }
1689
1787
  },
1690
- __wbg_new_with_byte_offset_and_length_3cd32055a417f095: function(arg0, arg1, arg2) {
1691
- const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
1692
- return ret;
1693
- },
1694
1788
  __wbg_of_027eb15371aac932: function(arg0) {
1695
1789
  const ret = Array.of(arg0);
1696
1790
  return ret;
1697
1791
  },
1698
- __wbg_onSubmittedWorkDone_1190213cee1ecf7e: function(arg0) {
1792
+ __wbg_onSubmittedWorkDone_270d6b5a45520e79: function(arg0) {
1699
1793
  const ret = arg0.onSubmittedWorkDone();
1700
1794
  return ret;
1701
1795
  },
@@ -1715,6 +1809,17 @@ function __wbg_get_imports() {
1715
1809
  __wbg_polygonOffset_acf166e60739dbfa: function(arg0, arg1, arg2) {
1716
1810
  arg0.polygonOffset(arg1, arg2);
1717
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
+ },
1718
1823
  __wbg_push_c9f4893fc209f768: function(arg0, arg1) {
1719
1824
  const ret = arg0.push(arg1);
1720
1825
  return ret;
@@ -1737,7 +1842,7 @@ function __wbg_get_imports() {
1737
1842
  __wbg_queueMicrotask_4a1a4d8dd332373b: function(arg0) {
1738
1843
  queueMicrotask(arg0);
1739
1844
  },
1740
- __wbg_queue_e250e2ebc49b39e0: function(arg0) {
1845
+ __wbg_queue_7a77200c3739a9e0: function(arg0) {
1741
1846
  const ret = arg0.queue;
1742
1847
  return ret;
1743
1848
  },
@@ -1753,10 +1858,17 @@ function __wbg_get_imports() {
1753
1858
  __wbg_readPixels_7c7b54a733248182: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
1754
1859
  arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
1755
1860
  }, arguments); },
1756
- __wbg_reason_53e762e714b67b72: function(arg0) {
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) {
1757
1866
  const ret = arg0.reason;
1758
1867
  return (__wbindgen_enum_GpuDeviceLostReason.indexOf(ret) + 1 || 3) - 1;
1759
1868
  },
1869
+ __wbg_removeEventListener_4e20bd5fac3de092: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1870
+ arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
1871
+ }, arguments); },
1760
1872
  __wbg_renderbufferStorageMultisample_d5b01825cc08514b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
1761
1873
  arg0.renderbufferStorageMultisample(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1762
1874
  },
@@ -1766,15 +1878,15 @@ function __wbg_get_imports() {
1766
1878
  __wbg_renderbufferStorage_ebe429f577dae949: function(arg0, arg1, arg2, arg3, arg4) {
1767
1879
  arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
1768
1880
  },
1769
- __wbg_requestAdapter_a539af006419f2e9: function(arg0, arg1) {
1770
- const ret = arg0.requestAdapter(arg1);
1881
+ __wbg_requestAdapter_6a96d6229ddf7802: function(arg0) {
1882
+ const ret = arg0.requestAdapter();
1771
1883
  return ret;
1772
1884
  },
1773
- __wbg_requestAdapter_b35b01d9a8802935: function(arg0) {
1774
- const ret = arg0.requestAdapter();
1885
+ __wbg_requestAdapter_9112bb147d47f963: function(arg0, arg1) {
1886
+ const ret = arg0.requestAdapter(arg1);
1775
1887
  return ret;
1776
1888
  },
1777
- __wbg_requestDevice_5cb8a582e55d08cb: function(arg0, arg1) {
1889
+ __wbg_requestDevice_ab46d0519ea1cc34: function(arg0, arg1) {
1778
1890
  const ret = arg0.requestDevice(arg1);
1779
1891
  return ret;
1780
1892
  },
@@ -1794,509 +1906,521 @@ function __wbg_get_imports() {
1794
1906
  __wbg_scissor_bb7201f050f220ac: function(arg0, arg1, arg2, arg3, arg4) {
1795
1907
  arg0.scissor(arg1, arg2, arg3, arg4);
1796
1908
  },
1797
- __wbg_setBindGroup_418c3e0eb6943ce0: function(arg0, arg1, arg2) {
1798
- arg0.setBindGroup(arg1 >>> 0, arg2);
1799
- },
1800
- __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) {
1801
1910
  arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
1802
1911
  }, arguments); },
1803
- __wbg_setPipeline_b6f981027e02cd16: function(arg0, arg1) {
1912
+ __wbg_setBindGroup_f0de6cb2c7dbfc2c: function(arg0, arg1, arg2) {
1913
+ arg0.setBindGroup(arg1 >>> 0, arg2);
1914
+ },
1915
+ __wbg_setPipeline_c41bf46790f27f9e: function(arg0, arg1) {
1804
1916
  arg0.setPipeline(arg1);
1805
1917
  },
1806
- __wbg_setScissorRect_889235eeb784732b: function(arg0, arg1, arg2, arg3, arg4) {
1918
+ __wbg_setScissorRect_42511fefb18b86ef: function(arg0, arg1, arg2, arg3, arg4) {
1807
1919
  arg0.setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
1808
1920
  },
1809
- __wbg_setVertexBuffer_6db3b60e99280744: function(arg0, arg1, arg2, arg3) {
1921
+ __wbg_setVertexBuffer_1e448859663dd400: function(arg0, arg1, arg2, arg3) {
1810
1922
  arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
1811
1923
  },
1812
- __wbg_setVertexBuffer_cbf4ca1627c02f4c: function(arg0, arg1, arg2, arg3, arg4) {
1924
+ __wbg_setVertexBuffer_7cf533d694e747f3: function(arg0, arg1, arg2, arg3, arg4) {
1813
1925
  arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
1814
1926
  },
1815
- __wbg_setViewport_c0be08dcc8965ccf: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1927
+ __wbg_setViewport_d9fc3eac343de7d0: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1816
1928
  arg0.setViewport(arg1, arg2, arg3, arg4, arg5, arg6);
1817
1929
  },
1818
1930
  __wbg_set_2793479888329cb6: function() { return handleError(function (arg0, arg1, arg2) {
1819
1931
  const ret = Reflect.set(arg0, arg1, arg2);
1820
1932
  return ret;
1821
1933
  }, arguments); },
1822
- __wbg_set_a_1c94f1413a06c773: function(arg0, arg1) {
1934
+ __wbg_set_a_25fd56c334b361f6: function(arg0, arg1) {
1823
1935
  arg0.a = arg1;
1824
1936
  },
1825
- __wbg_set_access_b0a6fbebfbe53242: function(arg0, arg1) {
1937
+ __wbg_set_access_ddf5bc1142da753c: function(arg0, arg1) {
1826
1938
  arg0.access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
1827
1939
  },
1828
- __wbg_set_alpha_84214d12347c6647: function(arg0, arg1) {
1940
+ __wbg_set_alpha_9763c7a5009aa55d: function(arg0, arg1) {
1829
1941
  arg0.alpha = arg1;
1830
1942
  },
1831
- __wbg_set_alpha_mode_278c6649365aff36: function(arg0, arg1) {
1943
+ __wbg_set_alpha_mode_3d05a2ae7e7155a3: function(arg0, arg1) {
1832
1944
  arg0.alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
1833
1945
  },
1834
- __wbg_set_alpha_to_coverage_enabled_1e879520cab4bb05: function(arg0, arg1) {
1946
+ __wbg_set_alpha_to_coverage_enabled_a27f32ce5bb1520c: function(arg0, arg1) {
1835
1947
  arg0.alphaToCoverageEnabled = arg1 !== 0;
1836
1948
  },
1837
- __wbg_set_array_layer_count_bd7a074559a0abaa: function(arg0, arg1) {
1949
+ __wbg_set_array_layer_count_bb1314af7ba2adf6: function(arg0, arg1) {
1838
1950
  arg0.arrayLayerCount = arg1 >>> 0;
1839
1951
  },
1840
- __wbg_set_array_stride_f64_b132c6a79afeae43: function(arg0, arg1) {
1952
+ __wbg_set_array_stride_f64_d6b4b9e1093ecd7b: function(arg0, arg1) {
1841
1953
  arg0.arrayStride = arg1;
1842
1954
  },
1843
- __wbg_set_aspect_3b0dceed92671cc1: function(arg0, arg1) {
1955
+ __wbg_set_aspect_18f77453fcc2d25b: function(arg0, arg1) {
1844
1956
  arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
1845
1957
  },
1846
- __wbg_set_aspect_8c866a3891032753: function(arg0, arg1) {
1958
+ __wbg_set_aspect_2d19eb9adfc79353: function(arg0, arg1) {
1847
1959
  arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
1848
1960
  },
1849
- __wbg_set_attributes_67bbc44b08e038d6: function(arg0, arg1, arg2) {
1961
+ __wbg_set_attributes_342352ab85ea64c7: function(arg0, arg1, arg2) {
1850
1962
  arg0.attributes = getArrayJsValueViewFromWasm0(arg1, arg2);
1851
1963
  },
1852
- __wbg_set_b_a93bcfdd1c29a0bd: function(arg0, arg1) {
1964
+ __wbg_set_b_910ba843232bed0c: function(arg0, arg1) {
1853
1965
  arg0.b = arg1;
1854
1966
  },
1855
- __wbg_set_base_array_layer_e745f84c2e5437e2: function(arg0, arg1) {
1967
+ __wbg_set_base_array_layer_21ec4d44eff4ef84: function(arg0, arg1) {
1856
1968
  arg0.baseArrayLayer = arg1 >>> 0;
1857
1969
  },
1858
- __wbg_set_base_mip_level_fe08854fab09de85: function(arg0, arg1) {
1970
+ __wbg_set_base_mip_level_55b25b38ea34513e: function(arg0, arg1) {
1859
1971
  arg0.baseMipLevel = arg1 >>> 0;
1860
1972
  },
1861
- __wbg_set_beginning_of_pass_write_index_a13b608f19d6a2f0: function(arg0, arg1) {
1973
+ __wbg_set_beginning_of_pass_write_index_a38c1eb301f5ffbc: function(arg0, arg1) {
1862
1974
  arg0.beginningOfPassWriteIndex = arg1 >>> 0;
1863
1975
  },
1864
- __wbg_set_bind_group_layouts_383f681565a30d8a: function(arg0, arg1, arg2) {
1976
+ __wbg_set_bind_group_layouts_43a17833e70156f7: function(arg0, arg1, arg2) {
1865
1977
  arg0.bindGroupLayouts = getArrayJsValueViewFromWasm0(arg1, arg2);
1866
1978
  },
1867
- __wbg_set_binding_bd7d6b01bb08823a: function(arg0, arg1) {
1979
+ __wbg_set_binding_d62e109966e563ec: function(arg0, arg1) {
1868
1980
  arg0.binding = arg1 >>> 0;
1869
1981
  },
1870
- __wbg_set_binding_dbed4a234264971a: function(arg0, arg1) {
1982
+ __wbg_set_binding_ed47acf725936562: function(arg0, arg1) {
1871
1983
  arg0.binding = arg1 >>> 0;
1872
1984
  },
1873
- __wbg_set_blend_1f3e5b36f9c246cb: function(arg0, arg1) {
1985
+ __wbg_set_blend_dbc72004efbd3982: function(arg0, arg1) {
1874
1986
  arg0.blend = arg1;
1875
1987
  },
1876
- __wbg_set_buffer_76841cdbff393f1d: function(arg0, arg1) {
1988
+ __wbg_set_buffer_16467db3b91a9b71: function(arg0, arg1) {
1877
1989
  arg0.buffer = arg1;
1878
1990
  },
1879
- __wbg_set_buffer_91f4e8e05066c37a: function(arg0, arg1) {
1991
+ __wbg_set_buffer_a9e5b3bb7e3a10bc: function(arg0, arg1) {
1880
1992
  arg0.buffer = arg1;
1881
1993
  },
1882
- __wbg_set_buffers_47665c552e27672c: function(arg0, arg1, arg2) {
1994
+ __wbg_set_buffers_6fd92a1753cf8ae5: function(arg0, arg1, arg2) {
1883
1995
  arg0.buffers = getArrayJsValueViewFromWasm0(arg1, arg2);
1884
1996
  },
1885
- __wbg_set_bytes_per_row_75441352f606ebc8: function(arg0, arg1) {
1997
+ __wbg_set_bytes_per_row_dbe2e934185dd540: function(arg0, arg1) {
1886
1998
  arg0.bytesPerRow = arg1 >>> 0;
1887
1999
  },
1888
- __wbg_set_clear_value_gpu_color_dict_303e0009591e5d26: function(arg0, arg1) {
2000
+ __wbg_set_clear_value_gpu_color_dict_7eb6ffb20ec36ead: function(arg0, arg1) {
1889
2001
  arg0.clearValue = arg1;
1890
2002
  },
1891
- __wbg_set_code_130aebc49c4cadd3: function(arg0, arg1, arg2) {
2003
+ __wbg_set_code_637630b8d31cb7b4: function(arg0, arg1, arg2) {
1892
2004
  arg0.code = getStringFromWasm0(arg1, arg2);
1893
2005
  },
1894
- __wbg_set_color_6d2de56a2224ec57: function(arg0, arg1) {
2006
+ __wbg_set_color_7a94f5ece7e288d0: function(arg0, arg1) {
1895
2007
  arg0.color = arg1;
1896
2008
  },
1897
- __wbg_set_color_attachments_e83f79badceda8b4: function(arg0, arg1, arg2) {
2009
+ __wbg_set_color_attachments_883debe365a008c3: function(arg0, arg1, arg2) {
1898
2010
  arg0.colorAttachments = getArrayJsValueViewFromWasm0(arg1, arg2);
1899
2011
  },
1900
- __wbg_set_compare_159af15eb77dbcd2: function(arg0, arg1) {
2012
+ __wbg_set_compare_10026fe17cc62aef: function(arg0, arg1) {
1901
2013
  arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
1902
2014
  },
1903
- __wbg_set_count_4d1e9559a7f1b993: function(arg0, arg1) {
2015
+ __wbg_set_count_630ce5a883ff9d36: function(arg0, arg1) {
1904
2016
  arg0.count = arg1 >>> 0;
1905
2017
  },
1906
- __wbg_set_cull_mode_31293d13bc064271: function(arg0, arg1) {
2018
+ __wbg_set_cull_mode_5ce7e63a5f1d8684: function(arg0, arg1) {
1907
2019
  arg0.cullMode = __wbindgen_enum_GpuCullMode[arg1];
1908
2020
  },
1909
- __wbg_set_depth_bias_b30728f3ab3f643e: function(arg0, arg1) {
2021
+ __wbg_set_default_queue_9cb1b67e684bc118: function(arg0, arg1) {
2022
+ arg0.defaultQueue = arg1;
2023
+ },
2024
+ __wbg_set_depth_bias_928f0d61c2d20b7e: function(arg0, arg1) {
1910
2025
  arg0.depthBias = arg1;
1911
2026
  },
1912
- __wbg_set_depth_bias_clamp_5b58fd4819283038: function(arg0, arg1) {
2027
+ __wbg_set_depth_bias_clamp_b9f088fc47d72113: function(arg0, arg1) {
1913
2028
  arg0.depthBiasClamp = arg1;
1914
2029
  },
1915
- __wbg_set_depth_bias_slope_scale_8b8b20db6b43c43b: function(arg0, arg1) {
2030
+ __wbg_set_depth_bias_slope_scale_1e50fde5cae9c677: function(arg0, arg1) {
1916
2031
  arg0.depthBiasSlopeScale = arg1;
1917
2032
  },
1918
- __wbg_set_depth_clear_value_1165941523836019: function(arg0, arg1) {
2033
+ __wbg_set_depth_clear_value_73e1965c57cb9097: function(arg0, arg1) {
1919
2034
  arg0.depthClearValue = arg1;
1920
2035
  },
1921
- __wbg_set_depth_compare_81dd71de7e433cc2: function(arg0, arg1) {
2036
+ __wbg_set_depth_compare_b45878c8b844cf85: function(arg0, arg1) {
1922
2037
  arg0.depthCompare = __wbindgen_enum_GpuCompareFunction[arg1];
1923
2038
  },
1924
- __wbg_set_depth_fail_op_ddf822c573cdf0c1: function(arg0, arg1) {
2039
+ __wbg_set_depth_fail_op_3823397c0cb4668c: function(arg0, arg1) {
1925
2040
  arg0.depthFailOp = __wbindgen_enum_GpuStencilOperation[arg1];
1926
2041
  },
1927
- __wbg_set_depth_load_op_ca270acab0c1ca69: function(arg0, arg1) {
2042
+ __wbg_set_depth_load_op_fa3bc4511290bdeb: function(arg0, arg1) {
1928
2043
  arg0.depthLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
1929
2044
  },
1930
- __wbg_set_depth_or_array_layers_e59f3988a095ccac: function(arg0, arg1) {
2045
+ __wbg_set_depth_or_array_layers_a01b4cb1a712d7cf: function(arg0, arg1) {
1931
2046
  arg0.depthOrArrayLayers = arg1 >>> 0;
1932
2047
  },
1933
- __wbg_set_depth_read_only_49ca399f98b97955: function(arg0, arg1) {
2048
+ __wbg_set_depth_read_only_14a1fca20e360f8b: function(arg0, arg1) {
1934
2049
  arg0.depthReadOnly = arg1 !== 0;
1935
2050
  },
1936
- __wbg_set_depth_stencil_41e94739225cb2c3: function(arg0, arg1) {
1937
- arg0.depthStencil = arg1;
2051
+ __wbg_set_depth_slice_58ef17a8e45553cc: function(arg0, arg1) {
2052
+ arg0.depthSlice = arg1 >>> 0;
1938
2053
  },
1939
- __wbg_set_depth_stencil_attachment_36ce3695dfcb6b85: function(arg0, arg1) {
2054
+ __wbg_set_depth_stencil_attachment_5298ae1194cbb059: function(arg0, arg1) {
1940
2055
  arg0.depthStencilAttachment = arg1;
1941
2056
  },
1942
- __wbg_set_depth_store_op_6cd6bdde49f9050d: function(arg0, arg1) {
2057
+ __wbg_set_depth_stencil_fb9864acd2052ec0: function(arg0, arg1) {
2058
+ arg0.depthStencil = arg1;
2059
+ },
2060
+ __wbg_set_depth_store_op_8fa805a3a2112715: function(arg0, arg1) {
1943
2061
  arg0.depthStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
1944
2062
  },
1945
- __wbg_set_depth_write_enabled_4b5da11c77fbdab7: function(arg0, arg1) {
2063
+ __wbg_set_depth_write_enabled_efe384a193a890e2: function(arg0, arg1) {
1946
2064
  arg0.depthWriteEnabled = arg1 !== 0;
1947
2065
  },
1948
- __wbg_set_device_1940fd5f9e2a7fee: function(arg0, arg1) {
2066
+ __wbg_set_device_67621191a95d153f: function(arg0, arg1) {
1949
2067
  arg0.device = arg1;
1950
2068
  },
1951
- __wbg_set_dimension_88d0c9f16bb079fb: function(arg0, arg1) {
2069
+ __wbg_set_dimension_1c263c711333ab28: function(arg0, arg1) {
1952
2070
  arg0.dimension = __wbindgen_enum_GpuTextureDimension[arg1];
1953
2071
  },
1954
- __wbg_set_dimension_bab9530fa3e311d8: function(arg0, arg1) {
2072
+ __wbg_set_dimension_6dec042632b18d39: function(arg0, arg1) {
1955
2073
  arg0.dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
1956
2074
  },
1957
- __wbg_set_dst_factor_80c13f29a3e117cb: function(arg0, arg1) {
2075
+ __wbg_set_dst_factor_17dc5757348f4e8c: function(arg0, arg1) {
1958
2076
  arg0.dstFactor = __wbindgen_enum_GpuBlendFactor[arg1];
1959
2077
  },
1960
- __wbg_set_end_of_pass_write_index_793fcfe3141dc357: function(arg0, arg1) {
2078
+ __wbg_set_end_of_pass_write_index_039c673eb97c1b17: function(arg0, arg1) {
1961
2079
  arg0.endOfPassWriteIndex = arg1 >>> 0;
1962
2080
  },
1963
- __wbg_set_entries_552f52b2aa3b346d: function(arg0, arg1, arg2) {
2081
+ __wbg_set_entries_bc9933019fb72023: function(arg0, arg1, arg2) {
1964
2082
  arg0.entries = getArrayJsValueViewFromWasm0(arg1, arg2);
1965
2083
  },
1966
- __wbg_set_entries_d9929dbfa2aaa9a7: function(arg0, arg1, arg2) {
2084
+ __wbg_set_entries_dda5610305831fc4: function(arg0, arg1, arg2) {
1967
2085
  arg0.entries = getArrayJsValueViewFromWasm0(arg1, arg2);
1968
2086
  },
1969
- __wbg_set_entry_point_0eacf7b26b3637b0: function(arg0, arg1, arg2) {
2087
+ __wbg_set_entry_point_e8391bcc627bfd7a: function(arg0, arg1, arg2) {
1970
2088
  arg0.entryPoint = getStringFromWasm0(arg1, arg2);
1971
2089
  },
1972
- __wbg_set_entry_point_bb3692db4a6065d0: function(arg0, arg1, arg2) {
2090
+ __wbg_set_entry_point_fc7b5eb7d2f51f8d: function(arg0, arg1, arg2) {
1973
2091
  arg0.entryPoint = getStringFromWasm0(arg1, arg2);
1974
2092
  },
1975
- __wbg_set_external_texture_1bef5ba626275d0a: function(arg0, arg1) {
2093
+ __wbg_set_external_texture_eb0ec97ea384a27f: function(arg0, arg1) {
1976
2094
  arg0.externalTexture = arg1;
1977
2095
  },
1978
- __wbg_set_fail_op_739cc3815d38c95f: function(arg0, arg1) {
2096
+ __wbg_set_fail_op_0d594a84c500382c: function(arg0, arg1) {
1979
2097
  arg0.failOp = __wbindgen_enum_GpuStencilOperation[arg1];
1980
2098
  },
1981
- __wbg_set_format_1119b9930bd324e1: function(arg0, arg1) {
2099
+ __wbg_set_format_2533d499e6a6576a: function(arg0, arg1) {
1982
2100
  arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1983
2101
  },
1984
- __wbg_set_format_443ea19e2d25a1e2: function(arg0, arg1) {
2102
+ __wbg_set_format_35213fd1a55af90b: function(arg0, arg1) {
1985
2103
  arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1986
2104
  },
1987
- __wbg_set_format_459792306baadae5: function(arg0, arg1) {
1988
- arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
2105
+ __wbg_set_format_3f132b447eacf268: function(arg0, arg1) {
2106
+ arg0.format = __wbindgen_enum_GpuVertexFormat[arg1];
1989
2107
  },
1990
- __wbg_set_format_46b1c6b3acc10b24: function(arg0, arg1) {
2108
+ __wbg_set_format_88e217388ce12466: function(arg0, arg1) {
1991
2109
  arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1992
2110
  },
1993
- __wbg_set_format_5a62f31a4690f935: function(arg0, arg1) {
1994
- arg0.format = __wbindgen_enum_GpuVertexFormat[arg1];
2111
+ __wbg_set_format_970667cfa8e78ff0: function(arg0, arg1) {
2112
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1995
2113
  },
1996
- __wbg_set_format_efec4f7d9471ddbb: function(arg0, arg1) {
2114
+ __wbg_set_format_a9419838bd932fa3: function(arg0, arg1) {
1997
2115
  arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1998
2116
  },
1999
- __wbg_set_format_fd579d96fa4e468c: function(arg0, arg1) {
2117
+ __wbg_set_format_ee8c52e81d585b82: function(arg0, arg1) {
2000
2118
  arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
2001
2119
  },
2002
- __wbg_set_fragment_bea523f8973c326e: function(arg0, arg1) {
2120
+ __wbg_set_fragment_ada8bef562cbbbf0: function(arg0, arg1) {
2003
2121
  arg0.fragment = arg1;
2004
2122
  },
2005
- __wbg_set_front_face_30951d0404e9e6d4: function(arg0, arg1) {
2123
+ __wbg_set_front_face_8f76f64ecaba04ec: function(arg0, arg1) {
2006
2124
  arg0.frontFace = __wbindgen_enum_GpuFrontFace[arg1];
2007
2125
  },
2008
- __wbg_set_g_90eacc6608e549f8: function(arg0, arg1) {
2126
+ __wbg_set_g_6ac06c1cd7780fb1: function(arg0, arg1) {
2009
2127
  arg0.g = arg1;
2010
2128
  },
2011
- __wbg_set_has_dynamic_offset_6e5f3385eb579529: function(arg0, arg1) {
2129
+ __wbg_set_has_dynamic_offset_8f837a860cb3ee15: function(arg0, arg1) {
2012
2130
  arg0.hasDynamicOffset = arg1 !== 0;
2013
2131
  },
2014
- __wbg_set_height_3f64e19acf29f5fb: function(arg0, arg1) {
2015
- arg0.height = arg1 >>> 0;
2016
- },
2017
2132
  __wbg_set_height_ae0610d318c3428c: function(arg0, arg1) {
2018
2133
  arg0.height = arg1 >>> 0;
2019
2134
  },
2020
2135
  __wbg_set_height_ae24c2f7d580ae0a: function(arg0, arg1) {
2021
2136
  arg0.height = arg1 >>> 0;
2022
2137
  },
2023
- __wbg_set_label_08745022b1ec7b66: function(arg0, arg1, arg2) {
2138
+ __wbg_set_height_d7334962b8c2e40a: function(arg0, arg1) {
2139
+ arg0.height = arg1 >>> 0;
2140
+ },
2141
+ __wbg_set_label_32e62c8eccad8454: function(arg0, arg1, arg2) {
2024
2142
  arg0.label = getStringFromWasm0(arg1, arg2);
2025
2143
  },
2026
- __wbg_set_label_11c9eb57693a8459: function(arg0, arg1, arg2) {
2144
+ __wbg_set_label_3523c65da040a1f6: function(arg0, arg1, arg2) {
2027
2145
  arg0.label = getStringFromWasm0(arg1, arg2);
2028
2146
  },
2029
- __wbg_set_label_20c42b4ebeb250d5: function(arg0, arg1, arg2) {
2147
+ __wbg_set_label_511773c4cc798bb4: function(arg0, arg1, arg2) {
2030
2148
  arg0.label = getStringFromWasm0(arg1, arg2);
2031
2149
  },
2032
- __wbg_set_label_22e3966c8d513ba6: function(arg0, arg1, arg2) {
2150
+ __wbg_set_label_5847b0c1fdf05193: function(arg0, arg1, arg2) {
2033
2151
  arg0.label = getStringFromWasm0(arg1, arg2);
2034
2152
  },
2035
- __wbg_set_label_5347fc976d15e94c: function(arg0, arg1, arg2) {
2153
+ __wbg_set_label_82d22e30c4229277: function(arg0, arg1, arg2) {
2036
2154
  arg0.label = getStringFromWasm0(arg1, arg2);
2037
2155
  },
2038
- __wbg_set_label_644bc1b32c7917b0: function(arg0, arg1, arg2) {
2156
+ __wbg_set_label_a245e78c44a0f53c: function(arg0, arg1, arg2) {
2039
2157
  arg0.label = getStringFromWasm0(arg1, arg2);
2040
2158
  },
2041
- __wbg_set_label_73c99dab6708c962: function(arg0, arg1, arg2) {
2159
+ __wbg_set_label_bf9328689f43830c: function(arg0, arg1, arg2) {
2042
2160
  arg0.label = getStringFromWasm0(arg1, arg2);
2043
2161
  },
2044
- __wbg_set_label_85a21b5fdd57fd91: function(arg0, arg1, arg2) {
2162
+ __wbg_set_label_bfb14af009ce5e1e: function(arg0, arg1, arg2) {
2045
2163
  arg0.label = getStringFromWasm0(arg1, arg2);
2046
2164
  },
2047
- __wbg_set_label_89d2ffaf598df6a4: function(arg0, arg1, arg2) {
2165
+ __wbg_set_label_d81ddd0687910f84: function(arg0, arg1, arg2) {
2048
2166
  arg0.label = getStringFromWasm0(arg1, arg2);
2049
2167
  },
2050
- __wbg_set_label_9e68078b9533426b: function(arg0, arg1, arg2) {
2168
+ __wbg_set_label_e402ec5de663f45b: function(arg0, arg1, arg2) {
2051
2169
  arg0.label = getStringFromWasm0(arg1, arg2);
2052
2170
  },
2053
- __wbg_set_label_cba03ffef7ae90a3: function(arg0, arg1, arg2) {
2171
+ __wbg_set_label_efbe5fde122ea186: function(arg0, arg1, arg2) {
2054
2172
  arg0.label = getStringFromWasm0(arg1, arg2);
2055
2173
  },
2056
- __wbg_set_label_f654bcb731d4d9ca: function(arg0, arg1, arg2) {
2174
+ __wbg_set_label_f4fa245a715d9069: function(arg0, arg1, arg2) {
2057
2175
  arg0.label = getStringFromWasm0(arg1, arg2);
2058
2176
  },
2059
- __wbg_set_layout_200fc3b143da0a9e: function(arg0, arg1) {
2177
+ __wbg_set_label_fd93ddd34066b39a: function(arg0, arg1, arg2) {
2178
+ arg0.label = getStringFromWasm0(arg1, arg2);
2179
+ },
2180
+ __wbg_set_layout_0220366f82dddb2f: function(arg0, arg1) {
2060
2181
  arg0.layout = arg1;
2061
2182
  },
2062
- __wbg_set_layout_3f0cb99635c33123: function(arg0, arg1) {
2183
+ __wbg_set_layout_3322348438535672: function(arg0, arg1) {
2063
2184
  arg0.layout = arg1;
2064
2185
  },
2065
- __wbg_set_layout_gpu_auto_layout_mode_2e8a53f8643b4f69: function(arg0, arg1) {
2186
+ __wbg_set_layout_gpu_auto_layout_mode_76d6261989700e8e: function(arg0, arg1) {
2066
2187
  arg0.layout = __wbindgen_enum_GpuAutoLayoutMode[arg1];
2067
2188
  },
2068
- __wbg_set_load_op_e8c33d4bdd2772aa: function(arg0, arg1) {
2189
+ __wbg_set_load_op_2f2ab9d352e4088d: function(arg0, arg1) {
2069
2190
  arg0.loadOp = __wbindgen_enum_GpuLoadOp[arg1];
2070
2191
  },
2071
- __wbg_set_mapped_at_creation_8af5b87ccb898bbe: function(arg0, arg1) {
2192
+ __wbg_set_mapped_at_creation_c4a4f1182236bbc1: function(arg0, arg1) {
2072
2193
  arg0.mappedAtCreation = arg1 !== 0;
2073
2194
  },
2074
- __wbg_set_mask_0de0e782abec3c25: function(arg0, arg1) {
2195
+ __wbg_set_mask_32d69aa23974b37a: function(arg0, arg1) {
2075
2196
  arg0.mask = arg1 >>> 0;
2076
2197
  },
2077
- __wbg_set_min_binding_size_f64_c6d68d773b7051d3: function(arg0, arg1) {
2198
+ __wbg_set_min_binding_size_f64_22199885684ea4fe: function(arg0, arg1) {
2078
2199
  arg0.minBindingSize = arg1;
2079
2200
  },
2080
- __wbg_set_mip_level_count_c0ac46de264d83ec: function(arg0, arg1) {
2081
- arg0.mipLevelCount = arg1 >>> 0;
2201
+ __wbg_set_mip_level_17a4055d5b968ae1: function(arg0, arg1) {
2202
+ arg0.mipLevel = arg1 >>> 0;
2082
2203
  },
2083
- __wbg_set_mip_level_count_cd650972803ed9eb: function(arg0, arg1) {
2204
+ __wbg_set_mip_level_count_3c23fd442389a059: function(arg0, arg1) {
2084
2205
  arg0.mipLevelCount = arg1 >>> 0;
2085
2206
  },
2086
- __wbg_set_mip_level_f0c5ed95eedda453: function(arg0, arg1) {
2087
- arg0.mipLevel = arg1 >>> 0;
2207
+ __wbg_set_mip_level_count_59b5798d09a533f5: function(arg0, arg1) {
2208
+ arg0.mipLevelCount = arg1 >>> 0;
2088
2209
  },
2089
- __wbg_set_mode_51d2c5a5ac0f7ac9: function(arg0, arg1) {
2210
+ __wbg_set_mode_d9a5ac8ae2a0d68d: function(arg0, arg1) {
2090
2211
  arg0.mode = __wbindgen_enum_GpuCanvasToneMappingMode[arg1];
2091
2212
  },
2092
- __wbg_set_module_3dec1a50bca7870a: function(arg0, arg1) {
2213
+ __wbg_set_module_2f90ce6c7718a2a6: function(arg0, arg1) {
2093
2214
  arg0.module = arg1;
2094
2215
  },
2095
- __wbg_set_module_b42baf3925e2a94a: function(arg0, arg1) {
2216
+ __wbg_set_module_5f7233cffe195628: function(arg0, arg1) {
2096
2217
  arg0.module = arg1;
2097
2218
  },
2098
- __wbg_set_multisample_6af76792fae6efb1: function(arg0, arg1) {
2219
+ __wbg_set_multisample_76e8f45b4ada1f3a: function(arg0, arg1) {
2099
2220
  arg0.multisample = arg1;
2100
2221
  },
2101
- __wbg_set_multisampled_ae3f9f01a324f57c: function(arg0, arg1) {
2222
+ __wbg_set_multisampled_70aab13c32c1a87a: function(arg0, arg1) {
2102
2223
  arg0.multisampled = arg1 !== 0;
2103
2224
  },
2104
- __wbg_set_offset_f64_15176b737de7dde0: function(arg0, arg1) {
2225
+ __wbg_set_offset_f64_1f0b71977a07be8f: function(arg0, arg1) {
2105
2226
  arg0.offset = arg1;
2106
2227
  },
2107
- __wbg_set_offset_f64_52f728fc5c98a52c: function(arg0, arg1) {
2228
+ __wbg_set_offset_f64_23f7bf7cddeacee2: function(arg0, arg1) {
2108
2229
  arg0.offset = arg1;
2109
2230
  },
2110
- __wbg_set_offset_f64_9374d9e912985773: function(arg0, arg1) {
2231
+ __wbg_set_offset_f64_838b5c0d752ca796: function(arg0, arg1) {
2111
2232
  arg0.offset = arg1;
2112
2233
  },
2113
- __wbg_set_onuncapturederror_19ad0d0daa325d10: function(arg0, arg1) {
2114
- arg0.onuncapturederror = arg1;
2115
- },
2116
- __wbg_set_operation_e103287df7ac9cf6: function(arg0, arg1) {
2234
+ __wbg_set_operation_1d7c7ed02f3d8e82: function(arg0, arg1) {
2117
2235
  arg0.operation = __wbindgen_enum_GpuBlendOperation[arg1];
2118
2236
  },
2119
- __wbg_set_origin_gpu_origin_3d_dict_26016670147a706c: function(arg0, arg1) {
2237
+ __wbg_set_origin_gpu_origin_3d_dict_0898da455eccfaa8: function(arg0, arg1) {
2120
2238
  arg0.origin = arg1;
2121
2239
  },
2122
- __wbg_set_pass_op_4d08c3105f64a17a: function(arg0, arg1) {
2240
+ __wbg_set_pass_op_b24fa44077ba1797: function(arg0, arg1) {
2123
2241
  arg0.passOp = __wbindgen_enum_GpuStencilOperation[arg1];
2124
2242
  },
2125
- __wbg_set_power_preference_6bc1d2697a0e7374: function(arg0, arg1) {
2243
+ __wbg_set_power_preference_7a817796c62ca83e: function(arg0, arg1) {
2126
2244
  arg0.powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
2127
2245
  },
2128
- __wbg_set_primitive_ef867d733c4efb1c: function(arg0, arg1) {
2246
+ __wbg_set_primitive_ab42ac6bf2686c0a: function(arg0, arg1) {
2129
2247
  arg0.primitive = arg1;
2130
2248
  },
2131
- __wbg_set_query_set_765c4c9ab99342cb: function(arg0, arg1) {
2249
+ __wbg_set_query_set_d9ddc9a570b0a62f: function(arg0, arg1) {
2132
2250
  arg0.querySet = arg1;
2133
2251
  },
2134
- __wbg_set_r_1116d6a5f656263d: function(arg0, arg1) {
2252
+ __wbg_set_r_2c70c406bf10f4b9: function(arg0, arg1) {
2135
2253
  arg0.r = arg1;
2136
2254
  },
2137
- __wbg_set_required_features_5bda1420e19461b2: function(arg0, arg1, arg2) {
2255
+ __wbg_set_required_features_95a49d09051b3efe: function(arg0, arg1, arg2) {
2138
2256
  arg0.requiredFeatures = getArrayJsValueViewFromWasm0(arg1, arg2);
2139
2257
  },
2140
- __wbg_set_required_limits_e78b923d73f9b596: function(arg0, arg1) {
2258
+ __wbg_set_required_limits_19d9b17160f9510e: function(arg0, arg1) {
2141
2259
  arg0.requiredLimits = arg1;
2142
2260
  },
2143
- __wbg_set_resolve_target_gpu_texture_view_a7a97a7c04d84698: function(arg0, arg1) {
2261
+ __wbg_set_resolve_target_gpu_texture_view_b804b29664204f75: function(arg0, arg1) {
2144
2262
  arg0.resolveTarget = arg1;
2145
2263
  },
2146
- __wbg_set_resource_0f960a4279e7e400: function(arg0, arg1) {
2264
+ __wbg_set_resource_921009b19cab3884: function(arg0, arg1) {
2147
2265
  arg0.resource = arg1;
2148
2266
  },
2149
- __wbg_set_resource_gpu_buffer_binding_53a2189a77dd38be: function(arg0, arg1) {
2267
+ __wbg_set_resource_gpu_buffer_binding_edc31995170c05cd: function(arg0, arg1) {
2150
2268
  arg0.resource = arg1;
2151
2269
  },
2152
- __wbg_set_resource_gpu_texture_view_9153a2356b958667: function(arg0, arg1) {
2270
+ __wbg_set_resource_gpu_external_texture_602a91683b574caf: function(arg0, arg1) {
2153
2271
  arg0.resource = arg1;
2154
2272
  },
2155
- __wbg_set_rows_per_image_11e9552fb5c5c5ab: function(arg0, arg1) {
2273
+ __wbg_set_resource_gpu_texture_view_3b63a2f023735509: function(arg0, arg1) {
2274
+ arg0.resource = arg1;
2275
+ },
2276
+ __wbg_set_rows_per_image_dcdda7897b0981a8: function(arg0, arg1) {
2156
2277
  arg0.rowsPerImage = arg1 >>> 0;
2157
2278
  },
2158
- __wbg_set_sample_count_8262aacc91878e4d: function(arg0, arg1) {
2279
+ __wbg_set_sample_count_8260338c573fad44: function(arg0, arg1) {
2159
2280
  arg0.sampleCount = arg1 >>> 0;
2160
2281
  },
2161
- __wbg_set_sample_type_563589178fc892fe: function(arg0, arg1) {
2282
+ __wbg_set_sample_type_bbe4a8b25dd655e3: function(arg0, arg1) {
2162
2283
  arg0.sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
2163
2284
  },
2164
- __wbg_set_sampler_ccdca76ef8e642ca: function(arg0, arg1) {
2285
+ __wbg_set_sampler_7bc9215bf0c7cba2: function(arg0, arg1) {
2165
2286
  arg0.sampler = arg1;
2166
2287
  },
2167
- __wbg_set_shader_location_31dc427c303a32aa: function(arg0, arg1) {
2288
+ __wbg_set_shader_location_a9b065a65cddc988: function(arg0, arg1) {
2168
2289
  arg0.shaderLocation = arg1 >>> 0;
2169
2290
  },
2170
- __wbg_set_size_f64_3ff72c0d736c42a1: function(arg0, arg1) {
2291
+ __wbg_set_size_f64_21e77cbc2ec6e5cb: function(arg0, arg1) {
2171
2292
  arg0.size = arg1;
2172
2293
  },
2173
- __wbg_set_size_f64_9b65e4916b2eb111: function(arg0, arg1) {
2294
+ __wbg_set_size_f64_22466f3c617cae73: function(arg0, arg1) {
2174
2295
  arg0.size = arg1;
2175
2296
  },
2176
- __wbg_set_size_gpu_extent_3d_dict_bba6669c79c26190: function(arg0, arg1) {
2297
+ __wbg_set_size_gpu_extent_3d_dict_45e785abd5e731f1: function(arg0, arg1) {
2177
2298
  arg0.size = arg1;
2178
2299
  },
2179
- __wbg_set_src_factor_7e90d4b7d8227fc5: function(arg0, arg1) {
2300
+ __wbg_set_src_factor_127aa7b4209b16e6: function(arg0, arg1) {
2180
2301
  arg0.srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
2181
2302
  },
2182
- __wbg_set_stencil_back_6b5aeefbb90ae3ae: function(arg0, arg1) {
2303
+ __wbg_set_stencil_back_0567eacd877f0678: function(arg0, arg1) {
2183
2304
  arg0.stencilBack = arg1;
2184
2305
  },
2185
- __wbg_set_stencil_clear_value_56fa848198a9b430: function(arg0, arg1) {
2306
+ __wbg_set_stencil_clear_value_7f767698a156d841: function(arg0, arg1) {
2186
2307
  arg0.stencilClearValue = arg1 >>> 0;
2187
2308
  },
2188
- __wbg_set_stencil_front_4ffeca9473bca095: function(arg0, arg1) {
2309
+ __wbg_set_stencil_front_efe8f32622a112bf: function(arg0, arg1) {
2189
2310
  arg0.stencilFront = arg1;
2190
2311
  },
2191
- __wbg_set_stencil_load_op_b7a9fe3ad789b6c6: function(arg0, arg1) {
2312
+ __wbg_set_stencil_load_op_add032c209e9cacf: function(arg0, arg1) {
2192
2313
  arg0.stencilLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
2193
2314
  },
2194
- __wbg_set_stencil_read_mask_7cfe0945679de134: function(arg0, arg1) {
2315
+ __wbg_set_stencil_read_mask_0ac35b5019a62a11: function(arg0, arg1) {
2195
2316
  arg0.stencilReadMask = arg1 >>> 0;
2196
2317
  },
2197
- __wbg_set_stencil_read_only_0dde0c073192b5fa: function(arg0, arg1) {
2318
+ __wbg_set_stencil_read_only_99fcb05614ddd4b6: function(arg0, arg1) {
2198
2319
  arg0.stencilReadOnly = arg1 !== 0;
2199
2320
  },
2200
- __wbg_set_stencil_store_op_d320bcbb72456a4c: function(arg0, arg1) {
2321
+ __wbg_set_stencil_store_op_e7cb0b8fdea4aebb: function(arg0, arg1) {
2201
2322
  arg0.stencilStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
2202
2323
  },
2203
- __wbg_set_stencil_write_mask_765017d5830ee98a: function(arg0, arg1) {
2324
+ __wbg_set_stencil_write_mask_12a794da02fe909f: function(arg0, arg1) {
2204
2325
  arg0.stencilWriteMask = arg1 >>> 0;
2205
2326
  },
2206
- __wbg_set_step_mode_2b1318f00e2ddc02: function(arg0, arg1) {
2327
+ __wbg_set_step_mode_f9ff795cc6c810f5: function(arg0, arg1) {
2207
2328
  arg0.stepMode = __wbindgen_enum_GpuVertexStepMode[arg1];
2208
2329
  },
2209
- __wbg_set_storage_texture_b9e95e260c9d49a3: function(arg0, arg1) {
2330
+ __wbg_set_storage_texture_cec5aa7837053d08: function(arg0, arg1) {
2210
2331
  arg0.storageTexture = arg1;
2211
2332
  },
2212
- __wbg_set_store_op_e2b740eddfd2713f: function(arg0, arg1) {
2333
+ __wbg_set_store_op_591a1abd08613c6c: function(arg0, arg1) {
2213
2334
  arg0.storeOp = __wbindgen_enum_GpuStoreOp[arg1];
2214
2335
  },
2215
- __wbg_set_strip_index_format_22ddab1b8f352c1d: function(arg0, arg1) {
2336
+ __wbg_set_strip_index_format_dbad821d7567c23c: function(arg0, arg1) {
2216
2337
  arg0.stripIndexFormat = __wbindgen_enum_GpuIndexFormat[arg1];
2217
2338
  },
2218
- __wbg_set_targets_07e15f3cca640faf: function(arg0, arg1, arg2) {
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) {
2219
2343
  arg0.targets = getArrayJsValueViewFromWasm0(arg1, arg2);
2220
2344
  },
2221
- __wbg_set_texture_7b9ace323bfe7938: function(arg0, arg1) {
2345
+ __wbg_set_texture_0d32608010f8db45: function(arg0, arg1) {
2222
2346
  arg0.texture = arg1;
2223
2347
  },
2224
- __wbg_set_texture_84a5f84f0f451291: function(arg0, arg1) {
2348
+ __wbg_set_texture_ad2e09b8390f1536: function(arg0, arg1) {
2225
2349
  arg0.texture = arg1;
2226
2350
  },
2227
- __wbg_set_timestamp_writes_1d304b9eb09ff227: function(arg0, arg1) {
2351
+ __wbg_set_timestamp_writes_48795eb915d64cc8: function(arg0, arg1) {
2228
2352
  arg0.timestampWrites = arg1;
2229
2353
  },
2230
- __wbg_set_tone_mapping_23fcd4f846a61048: function(arg0, arg1) {
2354
+ __wbg_set_tone_mapping_d6a2f7ab4c678a6a: function(arg0, arg1) {
2231
2355
  arg0.toneMapping = arg1;
2232
2356
  },
2233
- __wbg_set_topology_b29804e5549370f5: function(arg0, arg1) {
2357
+ __wbg_set_topology_15f02e73ac133259: function(arg0, arg1) {
2234
2358
  arg0.topology = __wbindgen_enum_GpuPrimitiveTopology[arg1];
2235
2359
  },
2236
- __wbg_set_type_ac87cc570da17000: function(arg0, arg1) {
2237
- arg0.type = __wbindgen_enum_GpuBufferBindingType[arg1];
2238
- },
2239
- __wbg_set_type_f3d1ad35dc7889f9: function(arg0, arg1) {
2360
+ __wbg_set_type_13b6d8e98bfc41e4: function(arg0, arg1) {
2240
2361
  arg0.type = __wbindgen_enum_GpuSamplerBindingType[arg1];
2241
2362
  },
2242
- __wbg_set_unclipped_depth_59155eb615f193fe: function(arg0, arg1) {
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) {
2243
2367
  arg0.unclippedDepth = arg1 !== 0;
2244
2368
  },
2245
- __wbg_set_usage_5ba672bf81ba9859: function(arg0, arg1) {
2369
+ __wbg_set_usage_05dc0ccc989f3ef5: function(arg0, arg1) {
2246
2370
  arg0.usage = arg1 >>> 0;
2247
2371
  },
2248
- __wbg_set_usage_b0070c2ce47149a6: function(arg0, arg1) {
2372
+ __wbg_set_usage_9bc666c5370b969b: function(arg0, arg1) {
2249
2373
  arg0.usage = arg1 >>> 0;
2250
2374
  },
2251
- __wbg_set_usage_bac3cabe90090275: function(arg0, arg1) {
2375
+ __wbg_set_usage_a608d9bb12cfab80: function(arg0, arg1) {
2252
2376
  arg0.usage = arg1 >>> 0;
2253
2377
  },
2254
- __wbg_set_usage_f3e1a48118ff483a: function(arg0, arg1) {
2378
+ __wbg_set_usage_fc09a76f83339d1b: function(arg0, arg1) {
2255
2379
  arg0.usage = arg1 >>> 0;
2256
2380
  },
2257
- __wbg_set_vertex_00b1e17dc3fe7fb3: function(arg0, arg1) {
2381
+ __wbg_set_vertex_6706ba251cf794eb: function(arg0, arg1) {
2258
2382
  arg0.vertex = arg1;
2259
2383
  },
2260
- __wbg_set_view_dimension_e9e9cd07d7ad686d: function(arg0, arg1) {
2384
+ __wbg_set_view_dimension_06d628317bed5152: function(arg0, arg1) {
2261
2385
  arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
2262
2386
  },
2263
- __wbg_set_view_dimension_eb197c35c45e572c: function(arg0, arg1) {
2387
+ __wbg_set_view_dimension_d96d10b6a6187558: function(arg0, arg1) {
2264
2388
  arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
2265
2389
  },
2266
- __wbg_set_view_formats_2540cdb8dde31055: function(arg0, arg1, arg2) {
2390
+ __wbg_set_view_formats_37b2fb50a8663344: function(arg0, arg1, arg2) {
2267
2391
  arg0.viewFormats = getArrayJsValueViewFromWasm0(arg1, arg2);
2268
2392
  },
2269
- __wbg_set_view_formats_845b425c1d19e1af: function(arg0, arg1, arg2) {
2393
+ __wbg_set_view_formats_52aa2653ad77c5f3: function(arg0, arg1, arg2) {
2270
2394
  arg0.viewFormats = getArrayJsValueViewFromWasm0(arg1, arg2);
2271
2395
  },
2272
- __wbg_set_view_gpu_texture_view_9a3c34ba4d1969b8: function(arg0, arg1) {
2396
+ __wbg_set_view_gpu_texture_view_033c23f730814624: function(arg0, arg1) {
2273
2397
  arg0.view = arg1;
2274
2398
  },
2275
- __wbg_set_view_gpu_texture_view_efa644c1ce3c4deb: function(arg0, arg1) {
2399
+ __wbg_set_view_gpu_texture_view_fb3517be78315e4d: function(arg0, arg1) {
2276
2400
  arg0.view = arg1;
2277
2401
  },
2278
- __wbg_set_visibility_65413465e7b24eb6: function(arg0, arg1) {
2402
+ __wbg_set_visibility_c200e52cd4eb51b4: function(arg0, arg1) {
2279
2403
  arg0.visibility = arg1 >>> 0;
2280
2404
  },
2281
2405
  __wbg_set_width_5f89a551b5472887: function(arg0, arg1) {
2282
2406
  arg0.width = arg1 >>> 0;
2283
2407
  },
2284
- __wbg_set_width_a2410cafbdefeb5a: function(arg0, arg1) {
2408
+ __wbg_set_width_e61fe13191c8c4a6: function(arg0, arg1) {
2285
2409
  arg0.width = arg1 >>> 0;
2286
2410
  },
2287
2411
  __wbg_set_width_eb3001e1dcabb909: function(arg0, arg1) {
2288
2412
  arg0.width = arg1 >>> 0;
2289
2413
  },
2290
- __wbg_set_write_mask_39ce121635fd4296: function(arg0, arg1) {
2414
+ __wbg_set_write_mask_cba5d1d12c4e3cad: function(arg0, arg1) {
2291
2415
  arg0.writeMask = arg1 >>> 0;
2292
2416
  },
2293
- __wbg_set_x_b078c58009aa57bd: function(arg0, arg1) {
2417
+ __wbg_set_x_62c1844cae55f838: function(arg0, arg1) {
2294
2418
  arg0.x = arg1 >>> 0;
2295
2419
  },
2296
- __wbg_set_y_3df92c4bcff23616: function(arg0, arg1) {
2420
+ __wbg_set_y_beb3edda7d0de400: function(arg0, arg1) {
2297
2421
  arg0.y = arg1 >>> 0;
2298
2422
  },
2299
- __wbg_set_z_3633c53887a9ff5e: function(arg0, arg1) {
2423
+ __wbg_set_z_7f7b74fb39689f38: function(arg0, arg1) {
2300
2424
  arg0.z = arg1 >>> 0;
2301
2425
  },
2302
2426
  __wbg_shaderSource_519d0f56b613b2f9: function(arg0, arg1, arg2, arg3) {
@@ -2352,15 +2476,15 @@ function __wbg_get_imports() {
2352
2476
  __wbg_stencilOpSeparate_f4319497016868f8: function(arg0, arg1, arg2, arg3, arg4) {
2353
2477
  arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
2354
2478
  },
2355
- __wbg_subgroupMaxSize_3586e822dc3603f6: function(arg0) {
2479
+ __wbg_subgroupMaxSize_a83c7e32d6dfdac5: function(arg0) {
2356
2480
  const ret = arg0.subgroupMaxSize;
2357
2481
  return ret;
2358
2482
  },
2359
- __wbg_subgroupMinSize_17f758985cdd1dab: function(arg0) {
2483
+ __wbg_subgroupMinSize_6d35168d9f0ccfb9: function(arg0) {
2360
2484
  const ret = arg0.subgroupMinSize;
2361
2485
  return ret;
2362
2486
  },
2363
- __wbg_submit_077c85cc28e36892: function(arg0, arg1, arg2) {
2487
+ __wbg_submit_ce44115121cd166c: function(arg0, arg1, arg2) {
2364
2488
  arg0.submit(getArrayJsValueViewFromWasm0(arg1, arg2));
2365
2489
  },
2366
2490
  __wbg_texImage2D_20b5002326193fe6: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
@@ -2402,6 +2526,9 @@ function __wbg_get_imports() {
2402
2526
  __wbg_texSubImage2D_4aef07460a86c81e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2403
2527
  arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2404
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); },
2405
2532
  __wbg_texSubImage2D_9c7e2d1250b1f95f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2406
2533
  arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2407
2534
  }, arguments); },
@@ -2429,6 +2556,9 @@ function __wbg_get_imports() {
2429
2556
  __wbg_texSubImage3D_b1b631c3011a209e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2430
2557
  arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2431
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); },
2432
2562
  __wbg_texSubImage3D_e8f20815b70bc7cb: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2433
2563
  arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2434
2564
  }, arguments); },
@@ -2447,7 +2577,11 @@ function __wbg_get_imports() {
2447
2577
  const ret = arg0.then(arg1);
2448
2578
  return ret;
2449
2579
  },
2450
- __wbg_unconfigure_835307f58dc68d80: function(arg0) {
2580
+ __wbg_toString_55ffdf586349746b: function(arg0) {
2581
+ const ret = arg0.toString();
2582
+ return ret;
2583
+ },
2584
+ __wbg_unconfigure_0a07a0a40de8988d: function(arg0) {
2451
2585
  arg0.unconfigure();
2452
2586
  },
2453
2587
  __wbg_uniform1f_0b36dc15cb2b4991: function(arg0, arg1, arg2) {
@@ -2555,9 +2689,6 @@ function __wbg_get_imports() {
2555
2689
  __wbg_uniformMatrix4x3fv_b6f9b241f392f245: function(arg0, arg1, arg2, arg3, arg4) {
2556
2690
  arg0.uniformMatrix4x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2557
2691
  },
2558
- __wbg_unmap_6a96b14c9ef5f7f5: function(arg0) {
2559
- arg0.unmap();
2560
- },
2561
2692
  __wbg_useProgram_d9c24a7d8632c4c1: function(arg0, arg1) {
2562
2693
  arg0.useProgram(arg1);
2563
2694
  },
@@ -2593,83 +2724,88 @@ function __wbg_get_imports() {
2593
2724
  const ret = arg0.width;
2594
2725
  return ret;
2595
2726
  },
2596
- __wbg_writeBuffer_d7640e64ceb69371: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2727
+ __wbg_writeBuffer_38a0005ce0c91214: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2597
2728
  arg0.writeBuffer(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), arg5, arg6);
2598
2729
  }, arguments); },
2599
- __wbg_writeTexture_dba1e801af087dfd: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2730
+ __wbg_writeTexture_ddf1f089a7ceba85: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2600
2731
  arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
2601
2732
  }, arguments); },
2602
2733
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
2603
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2618, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
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`.
2604
2735
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hd4acdde59c21f30c);
2605
2736
  return ret;
2606
2737
  },
2607
2738
  __wbindgen_generic_0000000000000002: function(arg0, arg1) {
2608
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 370, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2609
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab);
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);
2610
2741
  return ret;
2611
2742
  },
2612
2743
  __wbindgen_generic_0000000000000003: function(arg0, arg1) {
2613
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 386, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2614
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0f29fc2faa2e5086);
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);
2615
2746
  return ret;
2616
2747
  },
2617
2748
  __wbindgen_generic_0000000000000004: function(arg0, arg1) {
2618
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 386, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2619
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0f29fc2faa2e5086_44);
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);
2620
2751
  return ret;
2621
2752
  },
2622
2753
  __wbindgen_generic_0000000000000005: function(arg0, arg1) {
2623
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 370, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2624
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_45);
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);
2625
2756
  return ret;
2626
2757
  },
2627
2758
  __wbindgen_generic_0000000000000006: function(arg0, arg1) {
2628
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 370, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2629
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_46);
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);
2630
2766
  return ret;
2631
2767
  },
2632
- __wbindgen_generic_0000000000000007: function(arg0) {
2768
+ __wbindgen_generic_0000000000000008: function(arg0) {
2633
2769
  // Cast intrinsic for `F64 -> Externref`.
2634
2770
  const ret = arg0;
2635
2771
  return ret;
2636
2772
  },
2637
- __wbindgen_generic_0000000000000008: function(arg0, arg1) {
2773
+ __wbindgen_generic_0000000000000009: function(arg0, arg1) {
2638
2774
  // Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`.
2639
2775
  const ret = getArrayF32FromWasm0(arg0, arg1);
2640
2776
  return ret;
2641
2777
  },
2642
- __wbindgen_generic_0000000000000009: function(arg0, arg1) {
2778
+ __wbindgen_generic_000000000000000a: function(arg0, arg1) {
2643
2779
  // Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`.
2644
2780
  const ret = getArrayI16FromWasm0(arg0, arg1);
2645
2781
  return ret;
2646
2782
  },
2647
- __wbindgen_generic_000000000000000a: function(arg0, arg1) {
2783
+ __wbindgen_generic_000000000000000b: function(arg0, arg1) {
2648
2784
  // Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`.
2649
2785
  const ret = getArrayI32FromWasm0(arg0, arg1);
2650
2786
  return ret;
2651
2787
  },
2652
- __wbindgen_generic_000000000000000b: function(arg0, arg1) {
2788
+ __wbindgen_generic_000000000000000c: function(arg0, arg1) {
2653
2789
  // Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`.
2654
2790
  const ret = getArrayI8FromWasm0(arg0, arg1);
2655
2791
  return ret;
2656
2792
  },
2657
- __wbindgen_generic_000000000000000c: function(arg0, arg1) {
2793
+ __wbindgen_generic_000000000000000d: function(arg0, arg1) {
2658
2794
  // Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`.
2659
2795
  const ret = getArrayU16FromWasm0(arg0, arg1);
2660
2796
  return ret;
2661
2797
  },
2662
- __wbindgen_generic_000000000000000d: function(arg0, arg1) {
2798
+ __wbindgen_generic_000000000000000e: function(arg0, arg1) {
2663
2799
  // Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
2664
2800
  const ret = getArrayU32FromWasm0(arg0, arg1);
2665
2801
  return ret;
2666
2802
  },
2667
- __wbindgen_generic_000000000000000e: function(arg0, arg1) {
2803
+ __wbindgen_generic_000000000000000f: function(arg0, arg1) {
2668
2804
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
2669
2805
  const ret = getArrayU8FromWasm0(arg0, arg1);
2670
2806
  return ret;
2671
2807
  },
2672
- __wbindgen_generic_000000000000000f: function(arg0, arg1) {
2808
+ __wbindgen_generic_0000000000000010: function(arg0, arg1) {
2673
2809
  // Cast intrinsic for `Ref(String) -> Externref`.
2674
2810
  const ret = getStringFromWasm0(arg0, arg1);
2675
2811
  return ret;
@@ -2689,12 +2825,12 @@ function __wbg_get_imports() {
2689
2825
  };
2690
2826
  }
2691
2827
 
2692
- function wasm_bindgen__convert__closures_____invoke__h0f29fc2faa2e5086(arg0, arg1, arg2) {
2693
- wasm.wasm_bindgen__convert__closures_____invoke__h0f29fc2faa2e5086(arg0, arg1, arg2);
2828
+ function wasm_bindgen__convert__closures_____invoke__h55f3ef2a75985a4f(arg0, arg1, arg2) {
2829
+ wasm.wasm_bindgen__convert__closures_____invoke__h55f3ef2a75985a4f(arg0, arg1, arg2);
2694
2830
  }
2695
2831
 
2696
- function wasm_bindgen__convert__closures_____invoke__h0f29fc2faa2e5086_44(arg0, arg1, arg2) {
2697
- wasm.wasm_bindgen__convert__closures_____invoke__h0f29fc2faa2e5086_44(arg0, arg1, arg2);
2832
+ function wasm_bindgen__convert__closures_____invoke__h55f3ef2a75985a4f_46(arg0, arg1, arg2) {
2833
+ wasm.wasm_bindgen__convert__closures_____invoke__h55f3ef2a75985a4f_46(arg0, arg1, arg2);
2698
2834
  }
2699
2835
 
2700
2836
  function wasm_bindgen__convert__closures_____invoke__hd4acdde59c21f30c(arg0, arg1, arg2) {
@@ -2704,22 +2840,29 @@ function wasm_bindgen__convert__closures_____invoke__hd4acdde59c21f30c(arg0, arg
2704
2840
  }
2705
2841
  }
2706
2842
 
2707
- function wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab(arg0, arg1, arg2) {
2708
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab(arg0, arg1, arg2);
2843
+ function wasm_bindgen__convert__closures_____invoke__h07eb446950379899(arg0, arg1, arg2) {
2844
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h07eb446950379899(arg0, arg1, arg2);
2709
2845
  if (ret[1]) {
2710
2846
  throw takeFromExternrefTable0(ret[0]);
2711
2847
  }
2712
2848
  }
2713
2849
 
2714
- function wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_45(arg0, arg1, arg2) {
2715
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_45(arg0, arg1, arg2);
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);
2716
2852
  if (ret[1]) {
2717
2853
  throw takeFromExternrefTable0(ret[0]);
2718
2854
  }
2719
2855
  }
2720
2856
 
2721
- function wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_46(arg0, arg1, arg2) {
2722
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_46(arg0, arg1, arg2);
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);
2859
+ if (ret[1]) {
2860
+ throw takeFromExternrefTable0(ret[0]);
2861
+ }
2862
+ }
2863
+
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);
2723
2866
  if (ret[1]) {
2724
2867
  throw takeFromExternrefTable0(ret[0]);
2725
2868
  }
@@ -2757,6 +2900,9 @@ const __wbindgen_enum_GpuCullMode = ["none", "front", "back"];
2757
2900
  const __wbindgen_enum_GpuDeviceLostReason = ["unknown", "destroyed"];
2758
2901
 
2759
2902
 
2903
+ const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
2904
+
2905
+
2760
2906
  const __wbindgen_enum_GpuFrontFace = ["ccw", "cw"];
2761
2907
 
2762
2908
 
@@ -2766,6 +2912,9 @@ const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
2766
2912
  const __wbindgen_enum_GpuLoadOp = ["load", "clear"];
2767
2913
 
2768
2914
 
2915
+ const __wbindgen_enum_GpuPipelineErrorReason = ["validation", "internal"];
2916
+
2917
+
2769
2918
  const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
2770
2919
 
2771
2920
 
@@ -2806,6 +2955,9 @@ const __wbindgen_enum_GpuVertexStepMode = ["vertex", "instance"];
2806
2955
  const PlayerFinalization = (typeof FinalizationRegistry === 'undefined')
2807
2956
  ? { register: () => {}, unregister: () => {} }
2808
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));
2809
2961
 
2810
2962
  function addToExternrefTable0(obj) {
2811
2963
  const idx = wasm.__externref_table_alloc();
@@ -2813,6 +2965,12 @@ function addToExternrefTable0(obj) {
2813
2965
  return idx;
2814
2966
  }
2815
2967
 
2968
+ function _assertClass(instance, klass) {
2969
+ if (!(instance instanceof klass)) {
2970
+ throw new Error(`expected instance of ${klass.name}`);
2971
+ }
2972
+ }
2973
+
2816
2974
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
2817
2975
  ? { register: () => {}, unregister: () => {} }
2818
2976
  : new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));