virtual-machine 0.3.4 → 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.
package/build/index.d.ts CHANGED
@@ -175,6 +175,14 @@ declare class WasmVm {
175
175
  * Disconnect from the network.
176
176
  */
177
177
  disconnect_network(): void;
178
+ /**
179
+ * Get the dirty rectangle from the last frame flush.
180
+ *
181
+ * Returns [min_x, min_y, max_x, max_y] or None if no dirty region.
182
+ * The kernel writes this to 0x80FF_FFE0 each time it flushes the framebuffer.
183
+ * This allows the browser to do partial texture uploads for better performance.
184
+ */
185
+ get_gpu_dirty_rect(): Uint32Array | undefined;
178
186
  /**
179
187
  * Check how many bytes are pending in the UART output buffer.
180
188
  * Useful for debugging output issues.
@@ -415,6 +423,7 @@ interface InitOutput {
415
423
  readonly wasmvm_get_disk_capacity: (a: number) => bigint;
416
424
  readonly wasmvm_get_disk_usage: (a: number) => any;
417
425
  readonly wasmvm_get_framebuffer_view: (a: number) => any;
426
+ readonly wasmvm_get_gpu_dirty_rect: (a: number) => any;
418
427
  readonly wasmvm_get_gpu_frame: (a: number) => any;
419
428
  readonly wasmvm_get_gpu_frame_version: (a: number) => number;
420
429
  readonly wasmvm_get_gpu_size: (a: number) => any;
@@ -457,12 +466,12 @@ interface InitOutput {
457
466
  readonly workerstate_step_batch: (a: number, b: number) => number;
458
467
  readonly workerstate_step_count: (a: number) => bigint;
459
468
  readonly worker_entry: (a: number, b: any, c: bigint) => void;
460
- readonly wasm_bindgen__convert__closures_____invoke__hd07cf7ae12ea5c3f: (a: number, b: number) => void;
461
- readonly wasm_bindgen__closure__destroy__h61d0a8be6dc7f9b5: (a: number, b: number) => void;
469
+ readonly wasm_bindgen__convert__closures_____invoke__h927a3e68f2df660d: (a: number, b: number) => void;
470
+ readonly wasm_bindgen__closure__destroy__hb58c972534bceec0: (a: number, b: number) => void;
471
+ readonly wasm_bindgen__convert__closures_____invoke__h65568fa7dcc5b42c: (a: number, b: number, c: any) => void;
462
472
  readonly wasm_bindgen__convert__closures_____invoke__h260170fb96639bcf: (a: number, b: number, c: any) => void;
463
473
  readonly wasm_bindgen__closure__destroy__h612f8e24953b61d5: (a: number, b: number) => void;
464
- readonly wasm_bindgen__convert__closures_____invoke__hf75f3b5e3736d482: (a: number, b: number) => void;
465
- readonly wasm_bindgen__convert__closures_____invoke__hc3bef96af6592eb1: (a: number, b: number, c: any) => void;
474
+ readonly wasm_bindgen__convert__closures_____invoke__h6348bc2e0e4ff171: (a: number, b: number) => void;
466
475
  readonly __wbindgen_malloc: (a: number, b: number) => number;
467
476
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
468
477
  readonly __wbindgen_exn_store: (a: number) => void;