MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / write

Method write

src/data/createStreamBuffer.ts:11–11  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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. */

Callers 1

prepareFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected