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/{chunk-5YNV5NOR.mjs → chunk-OAFU2U2M.mjs} +29 -17
- package/build/cli.js +30 -18
- package/build/index.d.ts +13 -4
- package/build/index.js +30 -18
- package/build/index.mjs +3 -3
- package/build/node-worker.js +30 -18
- package/build/{riscv_vm-7T3XPKKC.mjs → riscv_vm-G6IXQNON.mjs} +1 -1
- package/build/worker.js +18 -18
- package/native/riscv-vm-native.darwin-arm64.node +0 -0
- package/native/riscv-vm-native.darwin-x64.node +0 -0
- package/native/riscv-vm-native.linux-arm64-gnu.node +0 -0
- package/native/riscv-vm-native.linux-arm64-musl.node +0 -0
- package/native/riscv-vm-native.linux-x64-gnu.node +0 -0
- package/native/riscv-vm-native.linux-x64-musl.node +0 -0
- package/native/riscv-vm-native.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
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
|
|
461
|
-
readonly
|
|
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
|
|
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;
|