virtual-machine 0.3.5 → 0.3.6

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.
@@ -206,18 +206,18 @@ if (!("encodeInto" in cachedTextEncoder)) {
206
206
  };
207
207
  }
208
208
  var WASM_VECTOR_LEN = 0;
209
- function wasm_bindgen__convert__closures_____invoke__h651b905420f3d861(arg0, arg1) {
210
- wasm.wasm_bindgen__convert__closures_____invoke__h651b905420f3d861(arg0, arg1);
209
+ function wasm_bindgen__convert__closures_____invoke__h927a3e68f2df660d(arg0, arg1) {
210
+ wasm.wasm_bindgen__convert__closures_____invoke__h927a3e68f2df660d(arg0, arg1);
211
211
  }
212
- function wasm_bindgen__convert__closures_____invoke__h5751b024b7e391df(arg0, arg1) {
213
- wasm.wasm_bindgen__convert__closures_____invoke__h5751b024b7e391df(arg0, arg1);
214
- }
215
- function wasm_bindgen__convert__closures_____invoke__h6ec9ab814d2a1268(arg0, arg1, arg2) {
216
- wasm.wasm_bindgen__convert__closures_____invoke__h6ec9ab814d2a1268(arg0, arg1, arg2);
212
+ function wasm_bindgen__convert__closures_____invoke__h65568fa7dcc5b42c(arg0, arg1, arg2) {
213
+ wasm.wasm_bindgen__convert__closures_____invoke__h65568fa7dcc5b42c(arg0, arg1, arg2);
217
214
  }
218
215
  function wasm_bindgen__convert__closures_____invoke__h260170fb96639bcf(arg0, arg1, arg2) {
219
216
  wasm.wasm_bindgen__convert__closures_____invoke__h260170fb96639bcf(arg0, arg1, arg2);
220
217
  }
218
+ function wasm_bindgen__convert__closures_____invoke__h6348bc2e0e4ff171(arg0, arg1) {
219
+ wasm.wasm_bindgen__convert__closures_____invoke__h6348bc2e0e4ff171(arg0, arg1);
220
+ }
221
221
  var __wbindgen_enum_WorkerType = ["classic", "module"];
222
222
  var WasmVmFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
223
223
  }, unregister: () => {
@@ -524,6 +524,18 @@ var WasmVm = class _WasmVm {
524
524
  disconnect_network() {
525
525
  wasm.wasmvm_disconnect_network(this.__wbg_ptr);
526
526
  }
527
+ /**
528
+ * Get the dirty rectangle from the last frame flush.
529
+ *
530
+ * Returns [min_x, min_y, max_x, max_y] or None if no dirty region.
531
+ * The kernel writes this to 0x80FF_FFE0 each time it flushes the framebuffer.
532
+ * This allows the browser to do partial texture uploads for better performance.
533
+ * @returns {Uint32Array | undefined}
534
+ */
535
+ get_gpu_dirty_rect() {
536
+ const ret = wasm.wasmvm_get_gpu_dirty_rect(this.__wbg_ptr);
537
+ return ret;
538
+ }
527
539
  /**
528
540
  * Check how many bytes are pending in the UART output buffer.
529
541
  * Useful for debugging output issues.
@@ -1298,10 +1310,6 @@ function __wbg_get_imports() {
1298
1310
  return ret;
1299
1311
  }, arguments);
1300
1312
  };
1301
- imports.wbg.__wbindgen_cast_041c77978d70bb0a = function(arg0, arg1) {
1302
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h73c05d03235d52ce, wasm_bindgen__convert__closures_____invoke__h651b905420f3d861);
1303
- return ret;
1304
- };
1305
1313
  imports.wbg.__wbindgen_cast_1e9af41a93765cab = function(arg0, arg1) {
1306
1314
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h612f8e24953b61d5, wasm_bindgen__convert__closures_____invoke__h260170fb96639bcf);
1307
1315
  return ret;
@@ -1310,18 +1318,22 @@ function __wbg_get_imports() {
1310
1318
  const ret = getStringFromWasm0(arg0, arg1);
1311
1319
  return ret;
1312
1320
  };
1313
- imports.wbg.__wbindgen_cast_9867f867794f6d1d = function(arg0, arg1) {
1314
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h73c05d03235d52ce, wasm_bindgen__convert__closures_____invoke__h6ec9ab814d2a1268);
1321
+ imports.wbg.__wbindgen_cast_46fd076aabb4c434 = function(arg0, arg1) {
1322
+ const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb58c972534bceec0, wasm_bindgen__convert__closures_____invoke__h6348bc2e0e4ff171);
1315
1323
  return ret;
1316
1324
  };
1317
- imports.wbg.__wbindgen_cast_b33b7ab8ffafb5fe = function(arg0, arg1) {
1318
- const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h73c05d03235d52ce, wasm_bindgen__convert__closures_____invoke__h5751b024b7e391df);
1325
+ imports.wbg.__wbindgen_cast_a9e9434264708752 = function(arg0, arg1) {
1326
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb58c972534bceec0, wasm_bindgen__convert__closures_____invoke__h65568fa7dcc5b42c);
1319
1327
  return ret;
1320
1328
  };
1321
1329
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
1322
1330
  const ret = arg0;
1323
1331
  return ret;
1324
1332
  };
1333
+ imports.wbg.__wbindgen_cast_ec2dedcc14bc0759 = function(arg0, arg1) {
1334
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb58c972534bceec0, wasm_bindgen__convert__closures_____invoke__h927a3e68f2df660d);
1335
+ return ret;
1336
+ };
1325
1337
  imports.wbg.__wbindgen_init_externref_table = function() {
1326
1338
  const table = wasm.__wbindgen_externrefs;
1327
1339
  const offset = table.grow(4);