Introducing a new way to review your PRs.

Read the announcement

visgl / luma.gl

High-performance Toolkit for WebGL-based Data Visualization

View on GitHub

30 documents · Updated Nov 20, 2026

docs / gpu-graph-systems

GPU graph and domain systems

The unified graph package provides GPU-resident command graphs and domain systems for data, graph analysis, simple expressions, spatial work, physics, coordinate projection, and experimental simulation. Applications use these systems to keep source data and derived results on the GPU while they control graph assembly, submission, synchronization, and readback.

System role

The graph package is a shared execution layer for several GPU workflows. Its root API covers graph authoring, compilation, scheduling, encoding, inspection, and tuning. Focused subpaths add graph algorithms, Simple Graph expressions, geospatial processing, physics, projection, tables, Arrow and GeoArrow adapters, raster work, SQL access, and experimental models. Portable numeric CPU operations can also form explicit stages in semantic and Simple Graph workflows when a GPU operation is not available.

System boundary

The package separates execution from domain meaning. A graph declares values and operations. Operation contracts describe reads, writes, result shapes, and required device features. A command graph orders concrete GPU work and tracks its resources. Domain systems define their data and rules, then contribute work to that command graph. Reusable render operations and shader passes use the same boundary, so one workflow can connect analysis, spatial preparation, simulation, and rendering without moving every intermediate result through JavaScript. The related GPU compute and effects page describes adjacent compute and effect systems.

References: modules/…/README.md• L3-41 modules/…/gpu-command-graph.ts• L664-668 modules/…/gpu-command-graph-types.ts• L427-452 modules/…/gpu-operation-contract.ts• L19-41

Shared execution flow

The common workflow turns application data and domain operations into a checked GPU plan. The diagram shows how the package moves from logical values to GPU results.

flowchart LR
  A[Application data and domain settings] --> B[Logical GPU values and data views]
  B --> C[Domain and core operations]
  C --> D[Validated dependency plan]
  D --> E[Compiled command graph]
  E --> F[Caller-encoded and submitted GPU work]
  F --> G[GPU-resident results]
  G --> H[Rendering, analysis, or explicit readback]

The application owns the device, graph lifetime, submission timing, and readback boundary. Compilation orders work, plans transient resource reuse, prepares node executables, and exposes preflight limits and workload information. A caller can run the full graph or use a budgeted execution that encodes dependency-ordered steps and publishes results only at declared safe boundaries. Graphs that contain a CPU operation use the asynchronous run path instead, with explicit GPU readback before the CPU stage and upload after it.

References: modules/…/gpu-command-graph.ts• L202-322 modules/…/gpu-command-graph.ts• L334-405 modules/…/gpu-command-graph-compiler.ts• L120-185 modules/…/gpu-command-graph-types.ts• L647-664

Command and data systems

The command and data systems provide the shared path from GPU storage to reusable analysis and rendering work. They connect typed GPU vectors, structured tables, Arrow and GeoArrow data, and domain-specific operations.

Command graphs

GPUCommandGraph is the concrete scheduling boundary. Callers add compute, copy, and render work with declared resource use. Compilation infers dependencies from resource access, checks explicit dependencies and aliases, creates reusable node state, and records a stable order for encoding.

Logical buffers and textures can be imported from the caller or created as transient graph resources. Compatible transient resources with separate lifetimes can share physical allocations. Preflight reports expose resource sizes, workload estimates, device-limit checks, conditions, and publication points before submission. Encoding remains caller-owned, which lets an application share the queue with frame work and other systems.

The graph also supports CPU conditions and GPU-written indirect conditions. Budgeted execution divides the ordered nodes into atomic steps. Each step must be encoded and submitted in order before its published results are used.

References: modules/…/gpu-command-graph.ts• L144-322 modules/…/gpu-command-graph.ts• L663-668 modules/…/gpu-command-graph.ts• L931-1039 modules/…/gpu-command-graph-compiler.ts• L120-185 modules/…/gpu-command-graph-compiler.ts• L428-521 modules/…/gpu-command-graph-types.ts• L31-60 modules/…/gpu-command-graph-types.ts• L526-577

Semantic GPU graphs

GPUGraph is the logical authoring layer for named scalar, vector, and texture values. Values can be inputs, per-run state, or operation-owned results. The graph records operations without binding physical GPU resources. Compilation resolves declarations, checks dependencies and shapes, and lowers the program to executable GPU work.

Named numeric expressions provide a small, backend-independent expression language inside this layer. Expressions support scalar and vector arithmetic, component selection, construction, numeric casts, and selected math functions. The compiler checks input names, row widths, and numeric types before execution. Explicit casts define the numeric type boundary, and the same normalized expression form can support the package's execution paths. CompiledGPUGraph is reusable, while each run supplies bindings and selected output storage. Shader-pass operations make supported texture transformations part of the same program. This layer is distinct from GPUCommandGraph: the semantic graph describes what a workflow computes, while the command graph describes how concrete resources and passes are ordered.

References: modules/…/gpu-graph.ts• L36-157 modules/…/gpu-graph-declarations.ts• L16-137 modules/…/gpu-expression-operation.ts• L11-22 modules/…/gpu-expression-operation.ts• L107-116 modules/…/compiled-gpu-graph.ts• L27-179 modules/…/index.ts• L612-687

Graph values and operation contracts

Graph values define the logical types and shapes that domain operations share. Scalars use 32-bit numeric formats. Vectors can have fixed or execution-sized lengths and can preserve chunk boundaries. Textures carry format, extent, view, and access information without becoming physical resources until execution.

Operation contracts connect those declarations to execution. They state which values an operation reads or writes, how writable vector shapes are fixed or inherited, and which device features are required. This common contract lets declaration resolution and compilation reject missing values, invalid shapes, multiple writers, and reads before production before GPU work starts.

References: modules/…/gpu-graph-value.ts• L12-43 modules/…/gpu-operation-contract.ts• L11-41 modules/…/gpu-graph-declarations.ts• L59-127 modules/…/gpu-command-graph-types.ts• L145-225

Render operations

GPURenderOperation is a reusable render primitive that contributes resource-declared render passes to the graph that owns it. It does not compile or submit the graph, so the surrounding command graph remains responsible for ordering, resource hazards, and lifetime.

GPUShaderPassOperation describes a supported full-screen texture transformation. The same shader-pass meaning can be lowered into a full command graph or used by the WebGPU Simple Graph path. Its texture formats, views, samples, and output extent are checked before drawing.

References: modules/…/gpu-render-operation.ts• L8-40 modules/…/gpu-shader-pass-operation.ts• L10-101 modules/…/gpu-shader-pass-kernel.ts• L134-211

Core data operations

Core data operations prepare and rearrange GPU-resident values for later domain work. Prefix scans build cumulative positions. Segmented scans and reductions work within CSR-style ranges. Binning and weighted grid aggregation turn points into cell counts or cell statistics. These operations support chunked vectors and bounded dispatch plans without moving intermediate data to the CPU.

The same operations can be added as command-graph nodes or used by higher-level systems such as spatial indexes, dataframe queries, and graph layouts. Their outputs therefore follow the graph's dependency, shape, ownership, capacity, and submission rules.

References: modules/…/gpu-scan.ts• L35-59 modules/…/gpu-segmented-scan.ts• L18-31 modules/…/gpu-segmented-reduction.ts• L21-38 modules/…/gpu-grid-binning.ts• L32-60 modules/…/gpu-grid-aggregation.ts• L28-63 modules/…/gpu-dispatch-utils.ts• L15-52

Spatial grid primitives

The grid primitives provide a shared spatial path for counting points, aggregating values, building cell-to-row indexes, and collecting coarse candidates. They use common coordinate mapping and bounded dispatch rules so geospatial queries and graph layouts can use the same cell model.

An index stores cell offsets, row or object IDs, a total count, and overflow state. A coarse query selects cells for a point, bounds, or radius and returns capacity-bounded candidates. Exact predicates remain a separate refinement step when a caller needs point-level selection.

References: modules/…/gpu-grid-coordinate.ts• L5-24 modules/…/gpu-grid-index-internals.ts• L26-217 modules/…/gpu-grid-index-query.ts• L35-64 modules/…/gpu-grid-aggregation.ts• L55-63

Simple Graph workflows

Simple Graph provides a smaller evaluator-backed interface for lazy GPU data expressions. It accepts named values, constants, existing GPU data, arithmetic and data operations, uploads, copies, and evaluator adapters. Compilation captures selected roots and their reachable dependency plan. A run materializes selected GPU results without making CPU readback implicit.

Simple Graph keeps evaluator execution separate from full command-graph lowering. WebGPU can use caller-owned scopes and encoders. WebGL supports the evaluator's synchronous render path. Explicit evaluator inputs remain borrowed, selected results can use caller-provided targets, and concurrent runs over shared evaluator state are not supported. See GPU Simple Graph workflows for the expression lifecycle and limits.

References: modules/…/gpu-simple-graph.ts• L83-115 modules/…/compiled-gpu-expression-graph.ts• L47-105 modules/…/gpu-simple-graph-lowering.ts• L38-114

GPU data and analysis

GPU data primitives represent typed values, vectors, views, constants, and chunked storage. GPU Tables add schemas, record batches, source-row identity, and logical columns. GPU Dataframes build query, expression, grouping, aggregation, histogram, sort, join, and lookup workflows over those columns. Crossfilter turns interactive ranges or bounds into source-aligned GPU selection masks.

The data model preserves row and batch relationships needed by graph nodes, renderers, and readback. Vector layout metadata also describes the difference between packed rows and native WGSL storage layout. Explicit CPU/GPU vector transfers provide the host-work boundary while preserving chunk layout and validity metadata. See GPU Tables for the table lifecycle and data contracts.

References: modules/…/index.ts• L5-85 modules/…/gpu-vector-wgsl-layout.ts• L16-78 modules/…/gpu-data-frame-query.ts• L43-75 modules/…/gpu-data-frame-query.ts• L175-303 modules/…/index.ts• L6-76

GPU dataframe expressions

GPU dataframe expressions are immutable, typed descriptions of numeric and boolean work. They can refer to columns, literals, parameters, vectors, casts, arithmetic, comparisons, null checks, and boolean logic. A dataframe query keeps filtering, derived columns, projection, grouping, sorting, joins, and lookups lazy until it is compiled into a command graph.

The expression layer also accepts a validated subset of the shared portable expression AST. This gives SQL and other front ends one checked expression form. Unsupported syntax is rejected before it reaches a query plan, and application-provided names do not become shader source.

References: modules/…/gpu-expression.ts• L11-75 modules/…/gpu-expression.ts• L160-190 modules/…/portable-expression.ts• L16-46 modules/…/portable-expression.ts• L66-117 modules/…/gpu-data-frame-query.ts• L115-173

GPU SQL

GPUSQL is a text front end for already GPU-resident dataframes. It registers named dataframes, parses a bounded SELECT statement, validates names and expressions against the registered schemas, and lowers the result to the dataframe query system. Parsing and planning do not upload data, submit work, or read buffers.

The supported query shape includes projection, filters, derived expressions, grouped and global aggregates, one equality join, global ordering, and ordered top-K limits. Named parameters remain caller-controlled. Arrow remains an explicit adapter boundary around this SQL and dataframe flow.

References: modules/…/gpu-sql.ts• L29-36 modules/…/gpu-sql.ts• L105-152 modules/…/gpu-sql.ts• L154-270 modules/…/gpu-sql.ts• L316-395

Arrow data adapters

The Arrow adapter surface bridges Apache Arrow tables and record batches with graph-native GPU vectors and tables. It plans selected conversions, preserves record-batch boundaries and source-row identity, and validates the prepared GPU inputs before a domain system uses them.

Numeric fixed-width columns can become owned GPU vectors in a selected scalar, position, or color format. A prepared result can retain null validity rows and a low Float32 residual vector for precision-sensitive numeric input. GeoArrow adapters also expose borrowed row and batch views, nested field paths, native-coordinate layout conversion, and WKB/WKT conversion into native geometry data. The result owns the created GPU vectors and exposes an explicit destroy boundary. See GPU Tables for the shared table model.

References: modules/…/index.ts• L5-42 modules/…/arrow-paths.ts• L9-18 modules/…/arrow-paths.ts• L39-64 modules/…/arrow-geoarrow-adapter.ts• L24-47 modules/…/arrow-geoarrow-conversion.ts• L85-204 modules/…/arrow-column-gpu-vector.ts• L9-37 modules/…/arrow-column-gpu-vector.ts• L48-78 modules/…/arrow-column-gpu-vector.ts• L102-209 modules/…/index.ts• L51-87

Graph analytics

The graph analytics system treats GPU columns as a graph. It builds topology from source and target vertex columns, then runs structural analysis or graph layouts while preserving links to source rows and optional properties.

Graph representation

GPUGraphAlgorithmsData describes a directed or undirected graph through source and target vertex vectors, an explicit vertex count, and optional weights, edge IDs, and node or edge attributes. Source chunks and record-batch identity remain meaningful so derived results can map back to input data.

Topology processing turns the edge columns into GPU-resident adjacency data. The shared topology view includes neighbor IDs, edge IDs, optional weights, counts, and overflow state. Later algorithms consume this view instead of rebuilding the graph for each operation.

References: modules/…/gpu-graph.ts• L13-76 modules/…/gpu-graph.ts• L78-140 modules/…/index.ts• L6-17

Graph analysis

The analytics surface covers traversal, shortest paths, components, core numbers, communities, modularity, clustering, ranking, and force-based layouts. These operations are intended to be chained. For example, topology can feed PageRank or community detection, and the resulting values can remain aligned with graph properties for a renderer or table query. See GPU graph workflows for the analytics lifecycle.

Spatial force layouts use a grid to reduce distant interactions while retaining exact local work. They publish validity and overflow state so an application does not treat an incomplete topology or spatial index as a complete layout.

References: modules/…/index.ts• L18-50 modules/…/gpu-graph-topology.ts• L1-104 modules/…/gpu-graph-spatial-force-layout-internals.ts• L76-181 modules/…/gpu-graph-spatial-force-layout-internals.ts• L277-327

Geospatial and projection systems

The geospatial systems process coordinates and spatial relations on the GPU. Projection changes the coordinate frame first when needed. Geospatial operations then measure, classify, index, or select positions in that frame.

Geospatial processing

The geospatial subpath supports geographic distance, point-to-point and point-to-segment distance, point-in-polygon tests, nearest points on linestrings, and point selection. A grid index can narrow point-query candidates before an exact predicate. Position formats include ordinary Float32 coordinates and packed precise forms for larger coordinate values.

Point queries can scan all rows or refine candidates from a grid. They write source IDs or row indices into a bounded output and expose count, total count, candidate count, cell count, and overflow information where requested. Invalid coordinates and incomplete indexes remain visible to the caller. Polygon queries use ring data for a two-dimensional exact refinement. See GPU geospatial workflows for the spatial processing flow.

References: modules/…/index.ts• L6-52 modules/…/gpu-point-spatial-query.ts• L30-113 modules/…/gpu-point-spatial-query.ts• L178-217 modules/…/gpu-point-spatial-query.ts• L569-665

GeoArrow geometry preparation

GeoArrow geometry preparation turns Arrow-native or serialized geometry columns into forms that projection, rendering, and spatial workflows can use. It preserves source row identity and Arrow chunk structure while it interleaves coordinates, decodes WKB or WKT, or tessellates polygon rows into triangle data.

The preparation path accepts polygons, multipolygons, mixed native geometry values, and rows that are already tessellated. It can carry row or vertex colors and returns positions, triangle indices, source-row indices, and dimension metadata. CPU geometry pipelines provide the same boundary for CPU projection and polygon preparation when a workflow explicitly chooses that path.

References: modules/…/arrow-geoarrow-conversion.ts• L85-204 modules/…/arrow-polygon-tessellation.ts• L49-147 modules/…/arrow-polygon-tessellation.ts• L150-201 modules/…/arrow-polygon-tessellation.ts• L204-254 modules/…/cpu-geoarrow.ts• L15-85 modules/…/cpu-geometry-pipelines.ts• L78-159

Coordinate projection

GPU Project changes GPU-resident two-dimensional coordinates between coordinate systems. A projection provider or coordinate-reference definition supplies the transformation meaning. The system prepares a projection plan or ordered projection program, then applies it to vectors, tables, or another graph consumer.

Projection programs can combine axis, unit, affine, analytic, longitude-wrap, and adaptive stages. They can produce shader code or contribute to a graph. A reusable coordinate pipeline also accepts CPU or GPU point vectors and returns an owned GPU result, while Arrow and GeoArrow helpers provide CPU projection and geometry preparation paths. Planning is a preparation step, not a promise that every coordinate system is GPU-compatible. Callers must handle unsupported plans, invalid rows, projection domains, and sampled rather than certified error estimates. See GPU Project for the projection system and its accuracy boundary.

References: modules/…/index.ts• L6-85 modules/…/projection-program.ts• L46-95 modules/…/coordinate-projection-graph.ts• L15-59 modules/…/gpu-projection-table.ts• L14-41 modules/…/cpu-geoarrow.ts• L87-135 modules/…/cpu-geometry-pipelines.ts• L16-76

Spatial cell systems

DGGS, H3, and A5 support connects hierarchical spatial cell identifiers to GPU coordinates and polygon paths. Arrow inputs can be parsed into packed keys. The graph path can then project cells into coordinates, while polygon helpers expand cells into closed paths for spatial or rendering workflows.

References: modules/…/dggs-gpu-polygons.ts• L27-75 modules/…/gpu-dggs-cell-projection.ts• L20-75 modules/…/index.ts• L72-87

Physics and spatial processing

The physics and spatial systems use GPU-resident state for work that changes or prepares spatial data. Physics maintains simulated bodies and contacts. Geometry and point-cloud operations prepare data for rendering, analysis, and later spatial queries.

Physics simulation

The physics subpath provides sphere and rigid-body worlds. Both keep simulation state on the GPU across steps and can publish poses, contacts, queries, events, triggers, and diagnostics. The application controls step timing and decides whether to render state directly or read back selected results.

Rigid-body workflows can use all-pairs or hierarchical discovery and ordered or parallel contact solving. They expose joints, continuous collision options, recovery, command replay, and capacity information. A rigid-body vehicle model adds four-wheel suspension, steering, drive, braking, tire grip, and terrain contact as part of a rigid-body step. These features make bounded simulation failures observable instead of silently treating truncated pairs, contacts, queries, or events as complete. See GPU physics for the simulation, query, and recovery contracts.

References: modules/…/index.ts• L40-119 modules/…/gpu-rigid-body-world.ts• L123-199 modules/…/gpu-rigid-body-world.ts• L772-817 modules/…/rigid-body-vehicle.ts• L5-36 modules/…/rigid-body-vehicle.ts• L38-99 modules/…/rigid-body-parallel-shaders.ts• L30-73 modules/…/rigid-body-shaders.ts• L394-443

Spatial geometry

GPU geometry operations derive mesh normals, vertex normals, and smoothed positions from mesh data. Point-cloud operations reduce or organize positions through voxel representatives, radius-based filtering, and octree indexing. The outputs retain source or hierarchy information for rendering and selection.

References: modules/…/index.ts• L5-8 modules/…/index.ts• L5-10

Experimental workflow relationship

The graph package supplies reusable execution and domain systems for wider experimental workflows. It is not a complete application workflow. Applications combine these systems with loaders, renderers, interaction state, and explicit resource lifetime rules.

Workflow composition

An experimental workflow can load or generate GPU data, project it into a working coordinate frame, analyze or filter it, and send the result to rendering or simulation. The same command graph can connect these stages when their data, device, and lifetime contracts match.

flowchart LR
  A[Loaded rows, geometry, or scene] --> B[GPU tables and vectors]
  B --> C[Projection or spatial index]
  C --> D[Graph analytics or spatial query]
  B --> E[Physics or point-cloud processing]
  D --> F[Rendering or interaction]
  E --> F
  F --> G[Display or explicit readback]

The experimental GPU workflows page describes the wider workflow model. The sibling pages GPU graph workflows, GPU Simple Graph workflows, GPU geospatial workflows, GPU physics, GPU Project, and GPU Tables explain the main child systems. GPU compute and effects covers related compute and effect work.

References: modules/…/README.md• L11-36 modules/…/gpu-command-graph.ts• L917-1007 modules/…/coordinate-projection-graph.ts• L25-53 modules/…/gpu-rigid-body-world.ts• L751-783

Experimental models and simulations

The experimental surface exports GPU-oriented path and polygon input systems together with flow-particle, scientific-flow, and MLS-MPM fluid simulation systems. These building blocks connect domain state, GPU inputs, generated geometry, fields, and simulation steps for exploratory workflows. They are experimental components, not stable application-level workflows.

Flow particle simulation uses a fixed-capacity GPU state and returns the current and previous state for rendering. Scientific flow computation advances particles through time-varying fields on WebGPU. Fluid simulation exposes support, stability, stage, and capacity information so an application can decide whether a device and workload are suitable.

References: modules/…/index.ts• L5-63 modules/…/index.ts• L5-31 modules/…/index.ts• L5-50 modules/…/flow-particle-simulation.ts• L15-58 modules/…/scientific-flow-compute.ts• L72-116

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep root and subpath exports aligned with the domain pages and cross-links.
  • Preserve the distinction between semantic graph authoring, command-graph scheduling, and Simple Graph evaluator execution.
  • Keep command-graph resource access, hazard inference, transient lifetime reuse, conditions, publication boundaries, and caller-controlled submission aligned.
  • Keep bounded dispatch layouts within device limits and preserve the mapping from workgroups to logical rows or cells.
  • Keep scans, segmented scans, reductions, binning, aggregation, and grid indexes aligned on chunk order, offsets, counts, output capacity, and overflow state.
  • Keep row, chunk, batch, source-ID, and output alignment intact when a system creates derived GPU data.
  • Preserve capacity, overflow, invalid-row, and incomplete-result status when bounded operations change.
  • When changing Arrow or GeoArrow adapters and conversion planning, keep nested paths, selected formats, native and serialized geometry encodings, validity vectors, residual precision data, ownership, record-batch topology, and source-row identities aligned.
  • Keep polygon tessellation output, colors, dimensions, triangle indices, and source-row indices aligned for both native and pre-tessellated input.
  • When changing dataframe expressions or GPUSQL, keep schema validation, null semantics, portable AST support, aliases, joins, aggregates, ordering, parameters, and query limits aligned.
  • When changing coordinate or spatial work, keep coordinate format, domain rules, validity output, projection metadata, and inverse-plan rules aligned.
  • When changing physics state or geometry, check vehicle inputs, render bindings, scene snapshots, queries, events, diagnostics, recovery, and capacity contracts together.
  • Keep CPU planning and reference paths distinct from claims about GPU execution and precision.
  • When changing Simple Graph or experimental exports, keep the public child-page scope and the distinction between borrowed inputs and owned results clear.

Important failure modes

TriggerConsequenceGuard
A node uses a resource from another command graphRegistration or dependency tracking failsBuild connected operations from the same command graph.
A graph is changed after compilationNew resources or nodes cannot be addedTreat a compiled graph as immutable and build a new graph for structural changes.
A bounded output, index, scan, or simulation capacity is reachedResults are truncated or marked incompleteCheck count, overflow, diagnostics, and capacity state before using the result.
A budgeted step is treated as published before queue completionThe application reads an unsafe intermediate resultSubmit steps in order and use only declared publication boundaries after synchronization.
A point query uses an overflowing grid indexCandidate and total counts describe only the retained index rowsCheck index and query overflow before treating the result as complete.
A query output overlaps an input or another outputConstruction is rejected or a write would be unsafeUse separate non-overlapping output views.
A dataframe expression names a hidden or missing columnQuery compilation rejects the planKeep expression columns in the selected schema and validate derived columns in order.
A portable expression uses unsupported syntax or a non-boolean predicateExpression conversion rejects the query before planningUse the supported portable AST subset and keep predicates boolean.
A GPUSQL statement uses an unsupported join, aggregate shape, or limit formParsing or planning rejects the queryKeep SQL within the supported query shape and inspect errors before compilation.
An Arrow or GeoArrow column contains unsupported width, nesting, encoding, or null dataConversion rejects the column or changes its geometry or numeric representationSelect a compatible format, preserve validity and chunk boundaries, and inspect conversion results.
A WKB or WKT value contains an unsupported geometry collectionDense-union conversion rejects the columnUse a supported geometry encoding or handle geometry collections through a matching path.
Polygon rows, colors, and generated vertices have different source alignmentRendering colors or selection IDs map to the wrong geometryPreserve row indices and validate color and geometry row structure before tessellation.
A projection or spatial plan does not cover an inputRows become invalid or planning is rejectedSupply explicit domains and preserve validity handling.
Physics work exceeds pair, contact, query, or event limitsState or signals can look valid while work is missingInspect physics diagnostics, query completeness, event counters, and recovery results.
A parallel rigid-body island does not complete its bounded union workBodies can remain awake and the step is not a valid complete solveTreat diagnostics and failure policy as part of the step result.
Vehicle terrain contact or wheel capacity is not valid for a stepWheel state and chassis response do not represent a complete vehicle updateCheck terrain, step status, and published wheel or chassis state before display.
GPU resources are released before submitted work completesLater passes read invalid or unavailable dataKeep borrowed inputs and graph-owned outputs alive until completion.
An experimental simulation exceeds device support or fixed capacityThe simulation cannot run or drops work outside its bounded contractCheck support, stability, particle limits, and step results before display.

Key files

FileWhy to read it
modules/…/index.tsShows the public root boundary for command graphs, semantic graphs, data, and execution plans.
modules/…/gpu-command-graph.tsDefines graph construction, compilation, encoding, conditions, budgeted execution, and resource ownership.
modules/…/gpu-command-graph-types.tsDefines resource access, logical data views, node contracts, workload reports, and publication metadata.
modules/…/gpu-command-graph-compiler.tsShows dependency ordering, transient allocation reuse, node compilation, preflight, and cleanup.
modules/…/index.tsShows the core operation surface, including scans, segmented work, spatial grids, and semantic graph exports.
modules/…/gpu-expression-operation.tsDefines the shared numeric expression contract and its checked scalar and vector type rules.
modules/…/index.tsShows common GPU data, vector, chunk, transfer, and WGSL layout primitives.
modules/…/gpu-data-frame-query.tsShows lazy dataframe filtering, derived columns, grouping, aggregation, sorting, joins, and compilation.
modules/…/gpu-expression.tsDefines the portable expression and null-semantics model used by dataframe queries.
modules/…/portable-expression.tsShows the checked bridge from portable expressions to dataframe expressions.
modules/…/gpu-sql.tsShows how bounded SQL text becomes a validated GPU dataframe plan.
modules/…/index.tsShows the public Arrow, GeoArrow, table, analytics, and DGGS adapter boundary.
modules/…/arrow-paths.tsShows how nested Arrow schemas and values resolve to leaf column paths.
modules/…/arrow-geoarrow-conversion.tsShows native and serialized GeoArrow conversion while preserving table structure.
modules/…/arrow-polygon-tessellation.tsShows polygon input, color, triangle, and source-row output contracts.
modules/…/arrow-column-gpu-vector.tsShows owned numeric Arrow-column conversion, validity preservation, and precision residuals.
modules/…/gpu-grid-index-internals.tsShows how GPU positions become cell offsets and capacity-bounded row indexes.
modules/…/gpu-grid-index-query.tsShows coarse point, bounds, and radius candidate selection.
modules/…/gpu-point-spatial-query.tsShows indexed or full-scan exact point refinement and query diagnostics.
modules/…/index.tsShows graph topology, analytics, and layout capabilities.
modules/…/gpu-graph-spatial-force-layout-internals.tsShows the spatial force layout relationship between topology, grid indexing, validity, and GPU state.
modules/…/index.tsShows projection planning, execution, table transformation, and metadata APIs.
modules/…/cpu-geometry-pipelines.tsShows explicit CPU projection and polygon preparation paths.
modules/…/gpu-rigid-body-world.tsShows rigid-body state, vehicle options, capacity checks, simulation choices, diagnostics, recovery, and publication.
modules/…/rigid-body-vehicle.tsDefines the four-wheel vehicle state and terrain-contact behavior.
modules/…/rigid-body-parallel-shaders.tsShows the parallel contact-island and solver workflow.
modules/…/index.tsShows the experimental model and simulation export boundary.