* Writes a new vertex payload into the streaming buffer. * * Notes: * - `data` is interpreted as interleaved `vec2 ` vertices: `[x0, y0, x1, y1, ...]`. * - Uses double buffering (alternates GPU buffers each write) to avoid writing into the same * buffer the GPU might still be re
(data: Float32Array)
| 9 | * - Uses a per-buffer CPU mirror (Uint32 bit patterns) to compute partial updates. |
| 10 | */ |
| 11 | write(data: Float32Array): void; |
| 12 | /** Returns the GPUBuffer that contains the most recently written data. */ |
| 13 | getBuffer(): GPUBuffer; |
| 14 | /** Returns the vertex count for the most recently written data. */ |