• Gather a resident tile's payload out of the wasm heap by walking its (generally non-contiguous) segments. This is the copying consumption path; a zero-copy per-segment upload can walk the same segment accessors directly.

    Parameters

    • bindings: GeometryTilePoolBindings

      The wasm module's tile pool surface.

    • heap: Uint8Array<ArrayBufferLike>

      The module's HEAPU8 view (re-read after any wasm memory growth; pass the module's current view, do not cache across calls).

    • assetID: number

      The resident tile to read.

    Returns GeometryTilePayload

    The gathered payload.