Optional ReadonlyintersectionSAH cost of testing one triangle. Default 1.
Optional ReadonlymaxLargest leaf the SAH collapse may make. 1 to 8; default 8, the layout's largest leaf.
Optional ReadonlymortonDefault 'cubic-30'.
Optional ReadonlynodeThe node format the tree is written in: 'f32' (64 bytes, the default
for a mesh tree; a scene quantizes it as it places it, DEFAULT_NODE_FORMAT)
or 'quantized' (32-byte nodes on a per-mesh grid, the frame slot
first; docs/internals/design/compressed-nodes.md).
A coordinate of magnitude 2^100 or more, or a non-finite one, makes a quantized box empty on that axis (hits there are lost).
Optional ReadonlyquantizeGPU builder only, with nodeFormat: 'quantized': the emit pass writes
each mesh's frame slot and 32-byte quantized nodes itself, so the batch
never holds 64-byte f32 nodes and no quantize pass runs (a batch's
output nodes take 32 bytes per node and 32 per mesh instead of 64 per
node). The words are the quantize pass's, bit for bit. Default false:
f32 nodes, then the quantize pass. The CPU twin ignores it.
Optional ReadonlytieDefault 'pairs'.
Optional ReadonlytraversalSAH cost of visiting a node, relative to intersectionCost. Default 1.
Optional ReadonlytrianglePer mesh of a batch: triangles (in the output format's units, 48 or 16
bytes) left free before the mesh's triangles in the batch's triangle
buffer, so a scene that adopts the buffer can write what goes there (an
indexed scene's mesh header and side tables: SceneTrees with
gpuTreeOutputs: 'adopt'). Each range's triangleOffset is after its
gap. Default: none (every mesh's triangles right after the last's).
Optional ReadonlytriangleThe triangle format the tree is written in: 'records' (48 bytes, the
default) or 'indexed' (16 bytes, mesh-relative vertex indices;
docs/internals/design/indexed-leaves.md). The nodes are the same either way.
Options every GPU builder takes. H-PLOC adds its own (
HplocOptions).