Expand description
Binary tensor buffer export for Qualia portal GPU upload.
Layout: header (32 B) + N × Tensor10D (40 B each), little-endian f32.
Structs§
Constants§
- TENSOR_
BUFFER_ MAGIC - TENSOR_
BUFFER_ VERSION - TENSOR_
HEADER_ BYTES - Byte offset to the first
Tensor10Drecord in a baked buffer blob. - TENSOR_
STRIDE
Functions§
- parse_
header - Parse header from a tensor buffer blob. Returns (header, header_byte_len).
- read_
tensor_ at - Read one
Tensor10Dby index from a buffer (zero-alloc). - tensor_
node_ count - Node count encoded in a tensor buffer (zero-alloc).
- tensor_
render_ color - Pack σ / α / q into linear RGBA for viewport shaders (cold path).
- write_
tensor_ buffer - Write header + tensor slice into caller buffer. Returns bytes written.
- write_
tensor_ q_ at - Write epistemic
qfor one node (wavefunction collapse). Returns previous q. - write_
tensor_ slice_ from_ resident - Export a bounded slice from the resident U1 substrate into a tensor buffer blob.