feat: add unified memory runtime
This commit is contained in:
@@ -26,7 +26,35 @@ What
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Zufunkt
|
## Unified Memory Runtime
|
||||||
|
|
||||||
|
```
|
||||||
|
┌─────────────────────────────────────────────────────────────────────┐
|
||||||
|
│ Shared WebAssembly.Memory │
|
||||||
|
│ ┌───────────────────────────────────────────────────────────────┐ │
|
||||||
|
│ │ [Node A output] [Node B output] [Node C output] ... │ │
|
||||||
|
│ │ ┌────────────┐ ┌────────────┐ ┌────────────┐ │ │
|
||||||
|
│ │ │ Vec<i32> │ │ Vec<i32> │ │ Vec<i32> │ │ │
|
||||||
|
│ │ │ 4 bytes │ │ 12 bytes │ │ 2KB │ │ │
|
||||||
|
│ │ └────────────┘ └────────────┘ └────────────┘ │ │
|
||||||
|
│ │ │ │
|
||||||
|
│ │ offset: 0 ────────────────────────────────────────────────► │ │
|
||||||
|
│ └───────────────────────────────────────────────────────────────┘ │
|
||||||
|
└─────────────────────────────────────────────────────────────────────┘
|
||||||
|
▲
|
||||||
|
│
|
||||||
|
│ import { memory } from "env"
|
||||||
|
┌─────────────────────────┼─────────────────────────┐
|
||||||
|
│ │ │
|
||||||
|
┌────┴────┐ ┌────┴────┐ ┌────┴────┐
|
||||||
|
│ Node A │ │ Node B │ │ Node C │
|
||||||
|
│ WASM │ │ WASM │ │ WASM │
|
||||||
|
└─────────┘ └─────────┘ └─────────┘
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Zukunft
|
||||||
|
|
||||||
- Animation
|
- Animation
|
||||||
- Materials
|
- Materials
|
||||||
|
|||||||
Reference in New Issue
Block a user