@pencil-lang/figure 0.0.2 → 0.0.4

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
@@ -51,23 +51,20 @@ export class Player {
51
51
  wasm.player_destroy(ptr);
52
52
  }
53
53
  /**
54
- * Moves the grabbed handle to this device pixel, through its inverse. Returns the param it
55
- * set, if a handle is grabbed.
54
+ * Moves the grabbed handle to this device pixel, through its inverses. Returns the params
55
+ * it set, one or two, together, or none if no handle is grabbed.
56
56
  * @param {number} time
57
57
  * @param {number} x
58
58
  * @param {number} y
59
- * @returns {string | undefined}
59
+ * @returns {string[]}
60
60
  */
61
61
  drag(time, x, y) {
62
62
  const ret = wasm.player_drag(this.__wbg_ptr, time, x, y);
63
63
  if (ret[3]) {
64
64
  throw takeFromExternrefTable0(ret[2]);
65
65
  }
66
- let v1;
67
- if (ret[0] !== 0) {
68
- v1 = getStringFromWasm0(ret[0], ret[1]);
69
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
70
- }
66
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
67
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
71
68
  return v1;
72
69
  }
73
70
  /**
@@ -133,6 +130,14 @@ export class Player {
133
130
  wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
134
131
  return v1;
135
132
  }
133
+ /**
134
+ * This player's number, for `let_go`.
135
+ * @returns {number}
136
+ */
137
+ get id() {
138
+ const ret = wasm.player_id(this.__wbg_ptr);
139
+ return ret >>> 0;
140
+ }
136
141
  /**
137
142
  * The figure's params and duration, as JSON. `timeDriven` names the bindings whose values
138
143
  * change with time, so a page knows whether stepping one seeks time or sets it, and
@@ -195,26 +200,48 @@ export class Player {
195
200
  }
196
201
  }
197
202
  /**
198
- * Moves a handle by this many device pixels from where it is, through its inverse, as an
199
- * arrow key does. Returns the param it set, if the handle's mark exists this frame.
203
+ * Destroys the GPU device, as a browser does when it loses it (after sleep, or when its GPU
204
+ * process restarts), for testing what a figure does then. On WebGL2 a page loses the
205
+ * context instead, through `WEBGL_lose_context`.
206
+ */
207
+ lose_device() {
208
+ wasm.player_lose_device(this.__wbg_ptr);
209
+ }
210
+ /**
211
+ * Whether the GPU device is lost.
212
+ * @returns {boolean}
213
+ */
214
+ get lost() {
215
+ const ret = wasm.player_lost(this.__wbg_ptr);
216
+ return ret !== 0;
217
+ }
218
+ /**
219
+ * Moves a handle by this many device pixels from where it is, through its inverses, as an
220
+ * arrow key does. Returns the params it set, none if the handle's mark doesn't exist this
221
+ * frame.
200
222
  * @param {number} time
201
223
  * @param {number} index
202
224
  * @param {number} dx
203
225
  * @param {number} dy
204
- * @returns {string | undefined}
226
+ * @returns {string[]}
205
227
  */
206
228
  nudge(time, index, dx, dy) {
207
229
  const ret = wasm.player_nudge(this.__wbg_ptr, time, index, dx, dy);
208
230
  if (ret[3]) {
209
231
  throw takeFromExternrefTable0(ret[2]);
210
232
  }
211
- let v1;
212
- if (ret[0] !== 0) {
213
- v1 = getStringFromWasm0(ret[0], ret[1]);
214
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
215
- }
233
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
234
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
216
235
  return v1;
217
236
  }
237
+ /**
238
+ * Calls `callback(message)` once the GPU device is lost, so a page can start the figure again
239
+ * on a new one at once, without waiting for a frame to fail.
240
+ * @param {Function} callback
241
+ */
242
+ on_lost(callback) {
243
+ wasm.player_on_lost(this.__wbg_ptr, callback);
244
+ }
218
245
  /**
219
246
  * Computes the CPU side of a frame without drawing, to measure that cost. Returns
220
247
  * the number of stroke segments.
@@ -312,6 +339,13 @@ export class Player {
312
339
  }
313
340
  return ret[0];
314
341
  }
342
+ /**
343
+ * Panics, which traps in WASM as a panic inside wgpu would, leaving this player unusable,
344
+ * for testing that a page gets past one.
345
+ */
346
+ trap() {
347
+ wasm.player_trap(this.__wbg_ptr);
348
+ }
315
349
  /**
316
350
  * A binding's value this frame, or NaN if it doesn't exist this frame.
317
351
  * @param {string} name
@@ -506,6 +540,16 @@ export function is_latex(text) {
506
540
  return ret !== 0;
507
541
  }
508
542
 
543
+ /**
544
+ * Lets go of a player's GPU device by its number (`Player.id`), and forgets what it was to say
545
+ * when that's lost. For a player that can't be used any more, after a trap: its device would
546
+ * otherwise live on, and the page's callback with it.
547
+ * @param {number} id
548
+ */
549
+ export function let_go(id) {
550
+ wasm.let_go(id);
551
+ }
552
+
509
553
  /**
510
554
  * The colors these sheets name, as a JSON object of CSS colors, so a page can match the figure
511
555
  * it holds without its own copy of the palette.
@@ -1092,6 +1136,10 @@ function __wbg_get_imports() {
1092
1136
  __wbg_end_b57473834b877409: function(arg0) {
1093
1137
  arg0.end();
1094
1138
  },
1139
+ __wbg_error_4e2c22b7e3952509: function(arg0) {
1140
+ const ret = arg0.error;
1141
+ return ret;
1142
+ },
1095
1143
  __wbg_error_757e9472f8410341: function(arg0, arg1) {
1096
1144
  let deferred0_0;
1097
1145
  let deferred0_1;
@@ -1298,6 +1346,26 @@ function __wbg_get_imports() {
1298
1346
  const ret = arg0.info;
1299
1347
  return ret;
1300
1348
  },
1349
+ __wbg_instanceof_GpuOutOfMemoryError_7126123117d274a4: function(arg0) {
1350
+ let result;
1351
+ try {
1352
+ result = arg0 instanceof GPUOutOfMemoryError;
1353
+ } catch (_) {
1354
+ result = false;
1355
+ }
1356
+ const ret = result;
1357
+ return ret;
1358
+ },
1359
+ __wbg_instanceof_GpuValidationError_f18d09609dc737d7: function(arg0) {
1360
+ let result;
1361
+ try {
1362
+ result = arg0 instanceof GPUValidationError;
1363
+ } catch (_) {
1364
+ result = false;
1365
+ }
1366
+ const ret = result;
1367
+ return ret;
1368
+ },
1301
1369
  __wbg_instanceof_HtmlCanvasElement_89f280683e987b9e: function(arg0) {
1302
1370
  let result;
1303
1371
  try {
@@ -1346,10 +1414,6 @@ function __wbg_get_imports() {
1346
1414
  getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
1347
1415
  getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
1348
1416
  },
1349
- __wbg_length_186163212ffe79c3: function(arg0) {
1350
- const ret = arg0.length;
1351
- return ret;
1352
- },
1353
1417
  __wbg_length_b03a0fabb109b1e9: function(arg0) {
1354
1418
  const ret = arg0.length;
1355
1419
  return ret;
@@ -1368,6 +1432,10 @@ function __wbg_get_imports() {
1368
1432
  __wbg_linkProgram_dee7cda98bacb12f: function(arg0, arg1) {
1369
1433
  arg0.linkProgram(arg1);
1370
1434
  },
1435
+ __wbg_lost_25273dba897db03c: function(arg0) {
1436
+ const ret = arg0.lost;
1437
+ return ret;
1438
+ },
1371
1439
  __wbg_mapAsync_b0597127f5037286: function(arg0, arg1, arg2, arg3) {
1372
1440
  const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
1373
1441
  return ret;
@@ -1496,6 +1564,20 @@ function __wbg_get_imports() {
1496
1564
  const ret = arg0.maxVertexBuffers;
1497
1565
  return ret;
1498
1566
  },
1567
+ __wbg_message_408f555d03641e84: function(arg0, arg1) {
1568
+ const ret = arg1.message;
1569
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1570
+ const len1 = WASM_VECTOR_LEN;
1571
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
1572
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
1573
+ },
1574
+ __wbg_message_5223ba7df7256eac: function(arg0, arg1) {
1575
+ const ret = arg1.message;
1576
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1577
+ const len1 = WASM_VECTOR_LEN;
1578
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
1579
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
1580
+ },
1499
1581
  __wbg_minStorageBufferOffsetAlignment_529f1f52e61188fc: function(arg0) {
1500
1582
  const ret = arg0.minStorageBufferOffsetAlignment;
1501
1583
  return ret;
@@ -1582,9 +1664,6 @@ function __wbg_get_imports() {
1582
1664
  __wbg_polygonOffset_acf166e60739dbfa: function(arg0, arg1, arg2) {
1583
1665
  arg0.polygonOffset(arg1, arg2);
1584
1666
  },
1585
- __wbg_prototypesetcall_13162965d1fe7aa3: function(arg0, arg1, arg2) {
1586
- Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1587
- },
1588
1667
  __wbg_push_c9f4893fc209f768: function(arg0, arg1) {
1589
1668
  const ret = arg0.push(arg1);
1590
1669
  return ret;
@@ -1623,6 +1702,10 @@ function __wbg_get_imports() {
1623
1702
  __wbg_readPixels_7c7b54a733248182: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
1624
1703
  arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
1625
1704
  }, arguments); },
1705
+ __wbg_reason_53e762e714b67b72: function(arg0) {
1706
+ const ret = arg0.reason;
1707
+ return (__wbindgen_enum_GpuDeviceLostReason.indexOf(ret) + 1 || 3) - 1;
1708
+ },
1626
1709
  __wbg_renderbufferStorageMultisample_d5b01825cc08514b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
1627
1710
  arg0.renderbufferStorageMultisample(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1628
1711
  },
@@ -1681,9 +1764,6 @@ function __wbg_get_imports() {
1681
1764
  __wbg_setViewport_c0be08dcc8965ccf: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1682
1765
  arg0.setViewport(arg1, arg2, arg3, arg4, arg5, arg6);
1683
1766
  },
1684
- __wbg_set_118fefd528ab0a79: function(arg0, arg1, arg2) {
1685
- arg0.set(arg1, arg2 >>> 0);
1686
- },
1687
1767
  __wbg_set_2793479888329cb6: function() { return handleError(function (arg0, arg1, arg2) {
1688
1768
  const ret = Reflect.set(arg0, arg1, arg2);
1689
1769
  return ret;
@@ -1979,6 +2059,9 @@ function __wbg_get_imports() {
1979
2059
  __wbg_set_offset_f64_9374d9e912985773: function(arg0, arg1) {
1980
2060
  arg0.offset = arg1;
1981
2061
  },
2062
+ __wbg_set_onuncapturederror_19ad0d0daa325d10: function(arg0, arg1) {
2063
+ arg0.onuncapturederror = arg1;
2064
+ },
1982
2065
  __wbg_set_operation_e103287df7ac9cf6: function(arg0, arg1) {
1983
2066
  arg0.operation = __wbindgen_enum_GpuBlendOperation[arg1];
1984
2067
  },
@@ -2301,6 +2384,10 @@ function __wbg_get_imports() {
2301
2384
  __wbg_texSubImage3D_ed8982daddcccd1e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2302
2385
  arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2303
2386
  }, arguments); },
2387
+ __wbg_then_3a4f899454bcf8c9: function(arg0, arg1) {
2388
+ const ret = arg0.then(arg1);
2389
+ return ret;
2390
+ },
2304
2391
  __wbg_then_656f253a5dd7d8ea: function(arg0, arg1, arg2) {
2305
2392
  const ret = arg0.then(arg1, arg2);
2306
2393
  return ret;
@@ -2426,6 +2513,10 @@ function __wbg_get_imports() {
2426
2513
  __wbg_useProgram_f6341ea2eeea1e5a: function(arg0, arg1) {
2427
2514
  arg0.useProgram(arg1);
2428
2515
  },
2516
+ __wbg_valueOf_2ad4a09774ac959e: function(arg0) {
2517
+ const ret = arg0.valueOf();
2518
+ return ret;
2519
+ },
2429
2520
  __wbg_vertexAttribDivisorANGLE_5bec9a774ccd1cf8: function(arg0, arg1, arg2) {
2430
2521
  arg0.vertexAttribDivisorANGLE(arg1 >>> 0, arg2 >>> 0);
2431
2522
  },
@@ -2458,66 +2549,76 @@ function __wbg_get_imports() {
2458
2549
  arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
2459
2550
  }, arguments); },
2460
2551
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
2461
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2585, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2552
+ // 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`.
2462
2553
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hd4acdde59c21f30c);
2463
2554
  return ret;
2464
2555
  },
2465
2556
  __wbindgen_generic_0000000000000002: function(arg0, arg1) {
2466
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 342, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2557
+ // 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`.
2467
2558
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab);
2468
2559
  return ret;
2469
2560
  },
2470
2561
  __wbindgen_generic_0000000000000003: function(arg0, arg1) {
2471
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 342, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2472
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_35);
2562
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 386, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2563
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0f29fc2faa2e5086);
2473
2564
  return ret;
2474
2565
  },
2475
2566
  __wbindgen_generic_0000000000000004: function(arg0, arg1) {
2476
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 342, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2477
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_36);
2567
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 386, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2568
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0f29fc2faa2e5086_42);
2569
+ return ret;
2570
+ },
2571
+ __wbindgen_generic_0000000000000005: function(arg0, arg1) {
2572
+ // 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`.
2573
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_43);
2478
2574
  return ret;
2479
2575
  },
2480
- __wbindgen_generic_0000000000000005: function(arg0) {
2576
+ __wbindgen_generic_0000000000000006: function(arg0, arg1) {
2577
+ // 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`.
2578
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_44);
2579
+ return ret;
2580
+ },
2581
+ __wbindgen_generic_0000000000000007: function(arg0) {
2481
2582
  // Cast intrinsic for `F64 -> Externref`.
2482
2583
  const ret = arg0;
2483
2584
  return ret;
2484
2585
  },
2485
- __wbindgen_generic_0000000000000006: function(arg0, arg1) {
2586
+ __wbindgen_generic_0000000000000008: function(arg0, arg1) {
2486
2587
  // Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`.
2487
2588
  const ret = getArrayF32FromWasm0(arg0, arg1);
2488
2589
  return ret;
2489
2590
  },
2490
- __wbindgen_generic_0000000000000007: function(arg0, arg1) {
2591
+ __wbindgen_generic_0000000000000009: function(arg0, arg1) {
2491
2592
  // Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`.
2492
2593
  const ret = getArrayI16FromWasm0(arg0, arg1);
2493
2594
  return ret;
2494
2595
  },
2495
- __wbindgen_generic_0000000000000008: function(arg0, arg1) {
2596
+ __wbindgen_generic_000000000000000a: function(arg0, arg1) {
2496
2597
  // Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`.
2497
2598
  const ret = getArrayI32FromWasm0(arg0, arg1);
2498
2599
  return ret;
2499
2600
  },
2500
- __wbindgen_generic_0000000000000009: function(arg0, arg1) {
2601
+ __wbindgen_generic_000000000000000b: function(arg0, arg1) {
2501
2602
  // Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`.
2502
2603
  const ret = getArrayI8FromWasm0(arg0, arg1);
2503
2604
  return ret;
2504
2605
  },
2505
- __wbindgen_generic_000000000000000a: function(arg0, arg1) {
2606
+ __wbindgen_generic_000000000000000c: function(arg0, arg1) {
2506
2607
  // Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`.
2507
2608
  const ret = getArrayU16FromWasm0(arg0, arg1);
2508
2609
  return ret;
2509
2610
  },
2510
- __wbindgen_generic_000000000000000b: function(arg0, arg1) {
2611
+ __wbindgen_generic_000000000000000d: function(arg0, arg1) {
2511
2612
  // Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
2512
2613
  const ret = getArrayU32FromWasm0(arg0, arg1);
2513
2614
  return ret;
2514
2615
  },
2515
- __wbindgen_generic_000000000000000c: function(arg0, arg1) {
2616
+ __wbindgen_generic_000000000000000e: function(arg0, arg1) {
2516
2617
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
2517
2618
  const ret = getArrayU8FromWasm0(arg0, arg1);
2518
2619
  return ret;
2519
2620
  },
2520
- __wbindgen_generic_000000000000000d: function(arg0, arg1) {
2621
+ __wbindgen_generic_000000000000000f: function(arg0, arg1) {
2521
2622
  // Cast intrinsic for `Ref(String) -> Externref`.
2522
2623
  const ret = getStringFromWasm0(arg0, arg1);
2523
2624
  return ret;
@@ -2537,6 +2638,14 @@ function __wbg_get_imports() {
2537
2638
  };
2538
2639
  }
2539
2640
 
2641
+ function wasm_bindgen__convert__closures_____invoke__h0f29fc2faa2e5086(arg0, arg1, arg2) {
2642
+ wasm.wasm_bindgen__convert__closures_____invoke__h0f29fc2faa2e5086(arg0, arg1, arg2);
2643
+ }
2644
+
2645
+ function wasm_bindgen__convert__closures_____invoke__h0f29fc2faa2e5086_42(arg0, arg1, arg2) {
2646
+ wasm.wasm_bindgen__convert__closures_____invoke__h0f29fc2faa2e5086_42(arg0, arg1, arg2);
2647
+ }
2648
+
2540
2649
  function wasm_bindgen__convert__closures_____invoke__hd4acdde59c21f30c(arg0, arg1, arg2) {
2541
2650
  const ret = wasm.wasm_bindgen__convert__closures_____invoke__hd4acdde59c21f30c(arg0, arg1, arg2);
2542
2651
  if (ret[1]) {
@@ -2551,15 +2660,15 @@ function wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab(arg0, arg
2551
2660
  }
2552
2661
  }
2553
2662
 
2554
- function wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_35(arg0, arg1, arg2) {
2555
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_35(arg0, arg1, arg2);
2663
+ function wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_43(arg0, arg1, arg2) {
2664
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_43(arg0, arg1, arg2);
2556
2665
  if (ret[1]) {
2557
2666
  throw takeFromExternrefTable0(ret[0]);
2558
2667
  }
2559
2668
  }
2560
2669
 
2561
- function wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_36(arg0, arg1, arg2) {
2562
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_36(arg0, arg1, arg2);
2670
+ function wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_44(arg0, arg1, arg2) {
2671
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_44(arg0, arg1, arg2);
2563
2672
  if (ret[1]) {
2564
2673
  throw takeFromExternrefTable0(ret[0]);
2565
2674
  }
@@ -2594,6 +2703,9 @@ const __wbindgen_enum_GpuCompareFunction = ["never", "less", "equal", "less-equa
2594
2703
  const __wbindgen_enum_GpuCullMode = ["none", "front", "back"];
2595
2704
 
2596
2705
 
2706
+ const __wbindgen_enum_GpuDeviceLostReason = ["unknown", "destroyed"];
2707
+
2708
+
2597
2709
  const __wbindgen_enum_GpuFrontFace = ["ccw", "cw"];
2598
2710
 
2599
2711
 
Binary file