@luma.gl/graph 10.0.0-alpha.9 → 10.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +4 -4
- package/THIRD-PARTY-NOTICES.md +19 -0
- package/dist/arrow/arrow-colors.cjs +99 -18
- package/dist/arrow/arrow-colors.d.ts +27 -10
- package/dist/arrow/arrow-colors.d.ts.map +1 -1
- package/dist/arrow/arrow-colors.js +107 -24
- package/dist/arrow/arrow-colors.js.map +1 -1
- package/dist/arrow/arrow-utils/arrow-paths.cjs +4 -3
- package/dist/arrow/arrow-utils/arrow-paths.d.ts.map +1 -1
- package/dist/arrow/arrow-utils/arrow-paths.js +5 -4
- package/dist/arrow/arrow-utils/arrow-paths.js.map +1 -1
- package/dist/arrow/cpu/arrow-coordinate-projection.cjs +30 -0
- package/dist/arrow/cpu/arrow-coordinate-projection.d.ts +5 -0
- package/dist/arrow/cpu/arrow-coordinate-projection.d.ts.map +1 -0
- package/dist/arrow/cpu/arrow-coordinate-projection.js +9 -0
- package/dist/arrow/cpu/arrow-coordinate-projection.js.map +1 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.cjs +31 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.d.ts +2 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.d.ts.map +1 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.js +5 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.js.map +1 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.cjs +99 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.d.ts +9 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.d.ts.map +1 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.js +100 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.js.map +1 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.cjs +9 -371
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts +8 -28
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts.map +1 -1
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js +4 -381
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js.map +1 -1
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.cjs +11 -11
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts +2 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts.map +1 -1
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js +4 -4
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js.map +1 -1
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.cjs +2 -2
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.js +1 -1
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.js.map +1 -1
- package/dist/arrow/gpu/arrow-column-gpu-vector.cjs +27 -8
- package/dist/arrow/gpu/arrow-column-gpu-vector.d.ts +11 -1
- package/dist/arrow/gpu/arrow-column-gpu-vector.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-column-gpu-vector.js +33 -8
- package/dist/arrow/gpu/arrow-column-gpu-vector.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-table-conversion.cjs +68 -3
- package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts +9 -2
- package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-table-conversion.js +76 -3
- package/dist/arrow/gpu/arrow-gpu-table-conversion.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.cjs +8 -6
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.d.ts +1 -0
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.js +17 -7
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.cjs +35 -5
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.d.ts +6 -1
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.js +40 -5
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.js.map +1 -1
- package/dist/arrow/index.cjs +19 -2
- package/dist/arrow/index.cjs.map +3 -3
- package/dist/arrow/index.d.ts +5 -2
- package/dist/arrow/index.d.ts.map +1 -1
- package/dist/arrow/index.js +4 -1
- package/dist/arrow/index.js.map +1 -1
- package/dist/arrow/internal.cjs.map +2 -2
- package/dist/dist.dev.js +3820 -1646
- package/dist/dist.min.js +450 -136
- package/dist/experimental/index.cjs.map +1 -1
- package/dist/experimental/simulation/index.cjs.map +1 -1
- package/dist/experimental-models.cjs +21 -0
- package/dist/experimental-models.d.ts +2 -0
- package/dist/experimental-models.d.ts.map +1 -0
- package/dist/experimental-models.js +5 -0
- package/dist/experimental-models.js.map +1 -0
- package/dist/experimental-simulation.cjs +21 -0
- package/dist/experimental-simulation.d.ts +2 -0
- package/dist/experimental-simulation.d.ts.map +1 -0
- package/dist/experimental-simulation.js +5 -0
- package/dist/experimental-simulation.js.map +1 -0
- package/dist/geospatial/gpu-point-spatial-query.cjs +2 -15
- package/dist/geospatial/gpu-point-spatial-query.d.ts.map +1 -1
- package/dist/geospatial/gpu-point-spatial-query.js +2 -15
- package/dist/geospatial/gpu-point-spatial-query.js.map +1 -1
- package/dist/geospatial/index.cjs.map +2 -2
- package/dist/gpu-a5/index.cjs.map +1 -1
- package/dist/gpu-core/compiled-gpu-graph.cjs +47 -0
- package/dist/gpu-core/compiled-gpu-graph.d.ts +5 -0
- package/dist/gpu-core/compiled-gpu-graph.d.ts.map +1 -1
- package/dist/gpu-core/compiled-gpu-graph.js +54 -1
- package/dist/gpu-core/compiled-gpu-graph.js.map +1 -1
- package/dist/gpu-core/gpu-command-graph-compiler.cjs +11 -2
- package/dist/gpu-core/gpu-command-graph-compiler.d.ts +2 -1
- package/dist/gpu-core/gpu-command-graph-compiler.d.ts.map +1 -1
- package/dist/gpu-core/gpu-command-graph-compiler.js +13 -2
- package/dist/gpu-core/gpu-command-graph-compiler.js.map +1 -1
- package/dist/gpu-core/gpu-command-graph-types.d.ts +16 -1
- package/dist/gpu-core/gpu-command-graph-types.d.ts.map +1 -1
- package/dist/gpu-core/gpu-command-graph-types.js.map +1 -1
- package/dist/gpu-core/gpu-command-graph.cjs +34 -11
- package/dist/gpu-core/gpu-command-graph.d.ts +17 -8
- package/dist/gpu-core/gpu-command-graph.d.ts.map +1 -1
- package/dist/gpu-core/gpu-command-graph.js +39 -11
- package/dist/gpu-core/gpu-command-graph.js.map +1 -1
- package/dist/gpu-core/gpu-cpu-execution.cjs +279 -0
- package/dist/gpu-core/gpu-cpu-execution.d.ts +22 -0
- package/dist/gpu-core/gpu-cpu-execution.d.ts.map +1 -0
- package/dist/gpu-core/gpu-cpu-execution.js +294 -0
- package/dist/gpu-core/gpu-cpu-execution.js.map +1 -0
- package/dist/gpu-core/gpu-cpu-operation.cjs +54 -0
- package/dist/gpu-core/gpu-cpu-operation.d.ts +40 -0
- package/dist/gpu-core/gpu-cpu-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-cpu-operation.js +35 -0
- package/dist/gpu-core/gpu-cpu-operation.js.map +1 -0
- package/dist/gpu-core/gpu-dispatch-utils.cjs +7 -3
- package/dist/gpu-core/gpu-dispatch-utils.d.ts +2 -0
- package/dist/gpu-core/gpu-dispatch-utils.d.ts.map +1 -1
- package/dist/gpu-core/gpu-dispatch-utils.js +4 -1
- package/dist/gpu-core/gpu-dispatch-utils.js.map +1 -1
- package/dist/gpu-core/gpu-expression-operation.cjs +2 -2
- package/dist/gpu-core/gpu-expression-operation.d.ts +1 -1
- package/dist/gpu-core/gpu-expression-operation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-expression-operation.js +1 -1
- package/dist/gpu-core/gpu-expression-operation.js.map +1 -1
- package/dist/gpu-core/gpu-expression-plan.cjs +5 -1
- package/dist/gpu-core/gpu-expression-plan.d.ts +3 -2
- package/dist/gpu-core/gpu-expression-plan.d.ts.map +1 -1
- package/dist/gpu-core/gpu-expression-plan.js +7 -1
- package/dist/gpu-core/gpu-expression-plan.js.map +1 -1
- package/dist/gpu-core/gpu-graph-compiler.cjs +48 -0
- package/dist/gpu-core/gpu-graph-compiler.d.ts +1 -0
- package/dist/gpu-core/gpu-graph-compiler.d.ts.map +1 -1
- package/dist/gpu-core/gpu-graph-compiler.js +50 -0
- package/dist/gpu-core/gpu-graph-compiler.js.map +1 -1
- package/dist/gpu-core/gpu-graph.d.ts +2 -2
- package/dist/gpu-core/gpu-graph.d.ts.map +1 -1
- package/dist/gpu-core/gpu-graph.js.map +1 -1
- package/dist/gpu-core/gpu-grid-aggregation.cjs +2 -5
- package/dist/gpu-core/gpu-grid-aggregation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-grid-aggregation.js +2 -5
- package/dist/gpu-core/gpu-grid-aggregation.js.map +1 -1
- package/dist/gpu-core/gpu-grid-binning.cjs +2 -5
- package/dist/gpu-core/gpu-grid-binning.d.ts.map +1 -1
- package/dist/gpu-core/gpu-grid-binning.js +2 -5
- package/dist/gpu-core/gpu-grid-binning.js.map +1 -1
- package/dist/gpu-core/gpu-grid-coordinate.cjs +41 -0
- package/dist/gpu-core/gpu-grid-coordinate.d.ts +7 -0
- package/dist/gpu-core/gpu-grid-coordinate.d.ts.map +1 -0
- package/dist/gpu-core/gpu-grid-coordinate.js +24 -0
- package/dist/gpu-core/gpu-grid-coordinate.js.map +1 -0
- package/dist/gpu-core/gpu-grid-index-internals.cjs +2 -15
- package/dist/gpu-core/gpu-grid-index-internals.d.ts.map +1 -1
- package/dist/gpu-core/gpu-grid-index-internals.js +2 -15
- package/dist/gpu-core/gpu-grid-index-internals.js.map +1 -1
- package/dist/gpu-core/gpu-grid-index-query.cjs +2 -16
- package/dist/gpu-core/gpu-grid-index-query.d.ts.map +1 -1
- package/dist/gpu-core/gpu-grid-index-query.js +2 -16
- package/dist/gpu-core/gpu-grid-index-query.js.map +1 -1
- package/dist/gpu-core/gpu-group-aggregation.cjs +7 -15
- package/dist/gpu-core/gpu-group-aggregation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-group-aggregation.js +7 -18
- package/dist/gpu-core/gpu-group-aggregation.js.map +1 -1
- package/dist/gpu-core/gpu-operation.d.ts +4 -4
- package/dist/gpu-core/gpu-operation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-operation.js.map +1 -1
- package/dist/gpu-core/gpu-reduction.cjs +6 -14
- package/dist/gpu-core/gpu-reduction.d.ts.map +1 -1
- package/dist/gpu-core/gpu-reduction.js +6 -15
- package/dist/gpu-core/gpu-reduction.js.map +1 -1
- package/dist/gpu-core/gpu-render-operation.cjs +39 -0
- package/dist/gpu-core/gpu-render-operation.d.ts +21 -0
- package/dist/gpu-core/gpu-render-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-render-operation.js +22 -0
- package/dist/gpu-core/gpu-render-operation.js.map +1 -0
- package/dist/gpu-core/gpu-scan.cjs +46 -32
- package/dist/gpu-core/gpu-scan.d.ts.map +1 -1
- package/dist/gpu-core/gpu-scan.js +56 -44
- package/dist/gpu-core/gpu-scan.js.map +1 -1
- package/dist/gpu-core/gpu-segmented-reduction.cjs +12 -9
- package/dist/gpu-core/gpu-segmented-reduction.d.ts +1 -1
- package/dist/gpu-core/gpu-segmented-reduction.d.ts.map +1 -1
- package/dist/gpu-core/gpu-segmented-reduction.js +12 -9
- package/dist/gpu-core/gpu-segmented-reduction.js.map +1 -1
- package/dist/gpu-core/gpu-segmented-scan.cjs +73 -16
- package/dist/gpu-core/gpu-segmented-scan.d.ts.map +1 -1
- package/dist/gpu-core/gpu-segmented-scan.js +73 -16
- package/dist/gpu-core/gpu-segmented-scan.js.map +1 -1
- package/dist/gpu-core/gpu-semantic-aggregation-operation.cjs +112 -0
- package/dist/gpu-core/gpu-semantic-aggregation-operation.d.ts +71 -0
- package/dist/gpu-core/gpu-semantic-aggregation-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-semantic-aggregation-operation.js +92 -0
- package/dist/gpu-core/gpu-semantic-aggregation-operation.js.map +1 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.cjs +267 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.d.ts +29 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.d.ts.map +1 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.js +260 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.js.map +1 -0
- package/dist/gpu-core/gpu-shader-pass-operation.cjs +85 -0
- package/dist/gpu-core/gpu-shader-pass-operation.d.ts +32 -0
- package/dist/gpu-core/gpu-shader-pass-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-shader-pass-operation.js +74 -0
- package/dist/gpu-core/gpu-shader-pass-operation.js.map +1 -0
- package/dist/gpu-core/gpu-texture-plan.d.ts +3 -2
- package/dist/gpu-core/gpu-texture-plan.d.ts.map +1 -1
- package/dist/gpu-core/gpu-texture-plan.js.map +1 -1
- package/dist/gpu-core/index.cjs +32 -0
- package/dist/gpu-core/index.cjs.map +3 -3
- package/dist/gpu-core/index.d.ts +21 -1
- package/dist/gpu-core/index.d.ts.map +1 -1
- package/dist/gpu-core/index.js +10 -0
- package/dist/gpu-core/index.js.map +1 -1
- package/dist/gpu-data/color-conversion.cjs +105 -0
- package/dist/gpu-data/color-conversion.d.ts +30 -0
- package/dist/gpu-data/color-conversion.d.ts.map +1 -0
- package/dist/gpu-data/color-conversion.js +109 -0
- package/dist/gpu-data/color-conversion.js.map +1 -0
- package/dist/gpu-data/cpu-data.cjs +60 -0
- package/dist/gpu-data/cpu-data.d.ts +28 -0
- package/dist/gpu-data/cpu-data.d.ts.map +1 -0
- package/dist/gpu-data/cpu-data.js +41 -0
- package/dist/gpu-data/cpu-data.js.map +1 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.cjs +98 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.d.ts +9 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.d.ts.map +1 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.js +85 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.js.map +1 -0
- package/dist/gpu-data/cpu-vector.cjs +42 -0
- package/dist/gpu-data/cpu-vector.d.ts +17 -0
- package/dist/gpu-data/cpu-vector.d.ts.map +1 -0
- package/dist/gpu-data/cpu-vector.js +21 -0
- package/dist/gpu-data/cpu-vector.js.map +1 -0
- package/dist/gpu-data/gpu-data-buffer-props.cjs +41 -0
- package/dist/gpu-data/gpu-data-buffer-props.d.ts +5 -0
- package/dist/gpu-data/gpu-data-buffer-props.d.ts.map +1 -0
- package/dist/gpu-data/gpu-data-buffer-props.js +19 -0
- package/dist/gpu-data/gpu-data-buffer-props.js.map +1 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.cjs +50 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.d.ts +41 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.d.ts.map +1 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.js +45 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.js.map +1 -0
- package/dist/gpu-data/index.cjs +21 -2
- package/dist/gpu-data/index.cjs.map +3 -3
- package/dist/gpu-data/index.d.ts +6 -0
- package/dist/gpu-data/index.d.ts.map +1 -1
- package/dist/gpu-data/index.js +5 -0
- package/dist/gpu-data/index.js.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame-query.cjs +8 -19
- package/dist/gpu-dataframe/gpu-data-frame-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame-query.js +14 -26
- package/dist/gpu-dataframe/gpu-data-frame-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-expression-shader.cjs +87 -5
- package/dist/gpu-dataframe/gpu-expression-shader.d.ts +2 -1
- package/dist/gpu-dataframe/gpu-expression-shader.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-expression-shader.js +101 -5
- package/dist/gpu-dataframe/gpu-expression-shader.js.map +1 -1
- package/dist/gpu-dataframe/gpu-expression.cjs +177 -2
- package/dist/gpu-dataframe/gpu-expression.d.ts +60 -2
- package/dist/gpu-dataframe/gpu-expression.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-expression.js +187 -0
- package/dist/gpu-dataframe/gpu-expression.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.cjs +0 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js +0 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-query.cjs +2 -2
- package/dist/gpu-dataframe/gpu-global-aggregation-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-query.js +5 -3
- package/dist/gpu-dataframe/gpu-global-aggregation-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-sort-compiler.cjs +23 -11
- package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts +1 -1
- package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-sort-compiler.js +24 -12
- package/dist/gpu-dataframe/gpu-global-sort-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.cjs +0 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js +0 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-group-by-query.cjs +2 -2
- package/dist/gpu-dataframe/gpu-group-by-query.js +5 -3
- package/dist/gpu-dataframe/gpu-group-by-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-histogram-compiler.cjs +0 -1
- package/dist/gpu-dataframe/gpu-histogram-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-histogram-compiler.js +0 -1
- package/dist/gpu-dataframe/gpu-histogram-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-join-compiler.cjs +0 -2
- package/dist/gpu-dataframe/gpu-join-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-join-compiler.js +0 -2
- package/dist/gpu-dataframe/gpu-join-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-query-compiler.cjs +3 -1
- package/dist/gpu-dataframe/gpu-query-compiler.d.ts +0 -1
- package/dist/gpu-dataframe/gpu-query-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-query-compiler.js +3 -1
- package/dist/gpu-dataframe/gpu-query-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-sort-compiler.cjs +0 -1
- package/dist/gpu-dataframe/gpu-sort-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-sort-compiler.js +0 -1
- package/dist/gpu-dataframe/gpu-sort-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-sort-query.cjs +13 -5
- package/dist/gpu-dataframe/gpu-sort-query.d.ts +4 -1
- package/dist/gpu-dataframe/gpu-sort-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-sort-query.js +14 -5
- package/dist/gpu-dataframe/gpu-sort-query.js.map +1 -1
- package/dist/gpu-dataframe/index.cjs +20 -2
- package/dist/gpu-dataframe/index.cjs.map +3 -3
- package/dist/gpu-dataframe/index.d.ts +6 -2
- package/dist/gpu-dataframe/index.d.ts.map +1 -1
- package/dist/gpu-dataframe/index.js +3 -1
- package/dist/gpu-dataframe/index.js.map +1 -1
- package/dist/gpu-dataframe/portable-expression.cjs +167 -0
- package/dist/gpu-dataframe/portable-expression.d.ts +21 -0
- package/dist/gpu-dataframe/portable-expression.d.ts.map +1 -0
- package/dist/gpu-dataframe/portable-expression.js +162 -0
- package/dist/gpu-dataframe/portable-expression.js.map +1 -0
- package/dist/gpu-dggs/benchmarks.cjs.map +1 -1
- package/dist/gpu-dggs/index.cjs.map +1 -1
- package/dist/gpu-dggs-benchmarks.cjs +21 -0
- package/dist/gpu-dggs-benchmarks.d.ts +2 -0
- package/dist/gpu-dggs-benchmarks.d.ts.map +1 -0
- package/dist/gpu-dggs-benchmarks.js +5 -0
- package/dist/gpu-dggs-benchmarks.js.map +1 -0
- package/dist/gpu-geometry/index.cjs.map +1 -1
- package/dist/gpu-graph/index.cjs +8 -0
- package/dist/gpu-graph/index.cjs.map +3 -3
- package/dist/gpu-graph/index.d.ts +4 -0
- package/dist/gpu-graph/index.d.ts.map +1 -1
- package/dist/gpu-graph/index.js +2 -0
- package/dist/gpu-graph/index.js.map +1 -1
- package/dist/gpu-graph-algorithms/benchmarks.cjs.map +2 -2
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.cjs +2 -15
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.d.ts.map +1 -1
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js +2 -15
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js.map +1 -1
- package/dist/gpu-graph-algorithms/index.cjs.map +2 -2
- package/dist/gpu-graph-algorithms-benchmarks.cjs +21 -0
- package/dist/gpu-graph-algorithms-benchmarks.d.ts +2 -0
- package/dist/gpu-graph-algorithms-benchmarks.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms-benchmarks.js +5 -0
- package/dist/gpu-graph-algorithms-benchmarks.js.map +1 -0
- package/dist/gpu-h3/index.cjs.map +1 -1
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.cjs +116 -0
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.d.ts +42 -0
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.d.ts.map +1 -0
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.js +90 -0
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.js.map +1 -0
- package/dist/gpu-physics/gpu-physics-ensemble.cjs +97 -5
- package/dist/gpu-physics/gpu-physics-ensemble.d.ts +31 -2
- package/dist/gpu-physics/gpu-physics-ensemble.d.ts.map +1 -1
- package/dist/gpu-physics/gpu-physics-ensemble.js +99 -3
- package/dist/gpu-physics/gpu-physics-ensemble.js.map +1 -1
- package/dist/gpu-physics/gpu-rigid-body-world.cjs +568 -77
- package/dist/gpu-physics/gpu-rigid-body-world.d.ts +86 -0
- package/dist/gpu-physics/gpu-rigid-body-world.d.ts.map +1 -1
- package/dist/gpu-physics/gpu-rigid-body-world.js +617 -76
- package/dist/gpu-physics/gpu-rigid-body-world.js.map +1 -1
- package/dist/gpu-physics/index.cjs +23 -2
- package/dist/gpu-physics/index.cjs.map +3 -3
- package/dist/gpu-physics/index.d.ts +9 -2
- package/dist/gpu-physics/index.d.ts.map +1 -1
- package/dist/gpu-physics/index.js +6 -1
- package/dist/gpu-physics/index.js.map +1 -1
- package/dist/gpu-physics/rigid-body-bounds-shaders.cjs +21 -8
- package/dist/gpu-physics/rigid-body-bounds-shaders.d.ts +2 -1
- package/dist/gpu-physics/rigid-body-bounds-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-bounds-shaders.js +15 -1
- package/dist/gpu-physics/rigid-body-bounds-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-convex-shaders.cjs +3 -2
- package/dist/gpu-physics/rigid-body-convex-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-convex-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-convex-shaders.js +3 -2
- package/dist/gpu-physics/rigid-body-convex-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-reset.cjs +36 -7
- package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-reset.js +42 -7
- package/dist/gpu-physics/rigid-body-ensemble-reset.js.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.cjs +23 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts +4 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.js +25 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.js.map +1 -1
- package/dist/gpu-physics/rigid-body-geometry.cjs +41 -4
- package/dist/gpu-physics/rigid-body-geometry.d.ts +10 -1
- package/dist/gpu-physics/rigid-body-geometry.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-geometry.js +44 -3
- package/dist/gpu-physics/rigid-body-geometry.js.map +1 -1
- package/dist/gpu-physics/rigid-body-height-field-shader.cjs +80 -0
- package/dist/gpu-physics/rigid-body-height-field-shader.d.ts +3 -0
- package/dist/gpu-physics/rigid-body-height-field-shader.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-height-field-shader.js +56 -0
- package/dist/gpu-physics/rigid-body-height-field-shader.js.map +1 -0
- package/dist/gpu-physics/rigid-body-height-field.cjs +166 -0
- package/dist/gpu-physics/rigid-body-height-field.d.ts +55 -0
- package/dist/gpu-physics/rigid-body-height-field.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-height-field.js +184 -0
- package/dist/gpu-physics/rigid-body-height-field.js.map +1 -0
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.cjs +4 -2
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.js +4 -2
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-mesh.cjs +72 -17
- package/dist/gpu-physics/rigid-body-mesh.d.ts +3 -0
- package/dist/gpu-physics/rigid-body-mesh.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-mesh.js +76 -20
- package/dist/gpu-physics/rigid-body-mesh.js.map +1 -1
- package/dist/gpu-physics/rigid-body-parallel-shaders.cjs +24 -9
- package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-parallel-shaders.js +28 -9
- package/dist/gpu-physics/rigid-body-parallel-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-properties.cjs +4 -4
- package/dist/gpu-physics/rigid-body-properties.d.ts +6 -0
- package/dist/gpu-physics/rigid-body-properties.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-properties.js +1 -1
- package/dist/gpu-physics/rigid-body-properties.js.map +1 -1
- package/dist/gpu-physics/rigid-body-publication.cjs +2 -2
- package/dist/gpu-physics/rigid-body-publication.js +1 -1
- package/dist/gpu-physics/rigid-body-publication.js.map +1 -1
- package/dist/gpu-physics/rigid-body-query-geometry.cjs +22 -4
- package/dist/gpu-physics/rigid-body-query-geometry.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-query-geometry.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-query-geometry.js +22 -4
- package/dist/gpu-physics/rigid-body-query-geometry.js.map +1 -1
- package/dist/gpu-physics/rigid-body-shaders.cjs +12 -6
- package/dist/gpu-physics/rigid-body-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-shaders.js +15 -7
- package/dist/gpu-physics/rigid-body-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-shape-properties.cjs +2 -0
- package/dist/gpu-physics/rigid-body-shape-properties.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-shape-properties.js +2 -0
- package/dist/gpu-physics/rigid-body-shape-properties.js.map +1 -1
- package/dist/gpu-physics/rigid-body-terrain-atlas.cjs +287 -0
- package/dist/gpu-physics/rigid-body-terrain-atlas.d.ts +87 -0
- package/dist/gpu-physics/rigid-body-terrain-atlas.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-atlas.js +275 -0
- package/dist/gpu-physics/rigid-body-terrain-atlas.js.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.cjs +240 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.d.ts +76 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.js +247 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.js.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.cjs +215 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.d.ts +25 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.js +218 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.js.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.cjs +263 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.d.ts +97 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.js +250 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.js.map +1 -0
- package/dist/gpu-physics/rigid-body-triggers.cjs +1 -0
- package/dist/gpu-physics/rigid-body-triggers.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-triggers.js +1 -0
- package/dist/gpu-physics/rigid-body-triggers.js.map +1 -1
- package/dist/gpu-physics/rigid-body-vehicle.cjs +145 -0
- package/dist/gpu-physics/rigid-body-vehicle.d.ts +47 -0
- package/dist/gpu-physics/rigid-body-vehicle.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-vehicle.js +119 -0
- package/dist/gpu-physics/rigid-body-vehicle.js.map +1 -0
- package/dist/gpu-pointcloud/index.cjs.map +1 -1
- package/dist/gpu-project/benchmarks.cjs.map +2 -2
- package/dist/gpu-project/coordinate-projection-graph.cjs +59 -0
- package/dist/gpu-project/coordinate-projection-graph.d.ts +23 -0
- package/dist/gpu-project/coordinate-projection-graph.d.ts.map +1 -0
- package/dist/gpu-project/coordinate-projection-graph.js +40 -0
- package/dist/gpu-project/coordinate-projection-graph.js.map +1 -0
- package/dist/gpu-project/cpu-geoarrow.cjs +112 -0
- package/dist/gpu-project/cpu-geoarrow.d.ts +10 -0
- package/dist/gpu-project/cpu-geoarrow.d.ts.map +1 -0
- package/dist/gpu-project/cpu-geoarrow.js +103 -0
- package/dist/gpu-project/cpu-geoarrow.js.map +1 -0
- package/dist/gpu-project/cpu-geometry-pipelines.cjs +134 -0
- package/dist/gpu-project/cpu-geometry-pipelines.d.ts +19 -0
- package/dist/gpu-project/cpu-geometry-pipelines.d.ts.map +1 -0
- package/dist/gpu-project/cpu-geometry-pipelines.js +114 -0
- package/dist/gpu-project/cpu-geometry-pipelines.js.map +1 -0
- package/dist/gpu-project/cpu-projection-operation.cjs +54 -0
- package/dist/gpu-project/cpu-projection-operation.d.ts +14 -0
- package/dist/gpu-project/cpu-projection-operation.d.ts.map +1 -0
- package/dist/gpu-project/cpu-projection-operation.js +37 -0
- package/dist/gpu-project/cpu-projection-operation.js.map +1 -0
- package/dist/gpu-project/crs.cjs.map +3 -3
- package/dist/gpu-project/crs.d.ts +1 -1
- package/dist/gpu-project/geoarrow.cjs +36 -0
- package/dist/gpu-project/geoarrow.cjs.map +6 -0
- package/dist/gpu-project/geoarrow.d.ts +3 -0
- package/dist/gpu-project/geoarrow.d.ts.map +1 -0
- package/dist/gpu-project/geoarrow.js +7 -0
- package/dist/gpu-project/geoarrow.js.map +1 -0
- package/dist/gpu-project/graph.cjs +27 -0
- package/dist/gpu-project/graph.cjs.map +6 -0
- package/dist/gpu-project/graph.d.ts +2 -0
- package/dist/gpu-project/graph.d.ts.map +1 -0
- package/dist/gpu-project/graph.js +6 -0
- package/dist/gpu-project/graph.js.map +1 -0
- package/dist/gpu-project/index.cjs +3 -0
- package/dist/gpu-project/index.cjs.map +3 -3
- package/dist/gpu-project/index.d.ts +1 -0
- package/dist/gpu-project/index.d.ts.map +1 -1
- package/dist/gpu-project/index.js +1 -0
- package/dist/gpu-project/index.js.map +1 -1
- package/dist/gpu-project/projection-crs-benchmark.cjs +2 -2
- package/dist/gpu-project/projection-crs-benchmark.d.ts +1 -1
- package/dist/gpu-project/projection-crs-benchmark.js +1 -1
- package/dist/gpu-project/projection-crs-input.cjs +7 -7
- package/dist/gpu-project/projection-crs-input.d.ts +1 -1
- package/dist/gpu-project/projection-crs-input.js +4 -4
- package/dist/gpu-project/projection-engine.d.ts +2 -2
- package/dist/gpu-project-benchmarks.cjs +21 -0
- package/dist/gpu-project-benchmarks.d.ts +2 -0
- package/dist/gpu-project-benchmarks.d.ts.map +1 -0
- package/dist/gpu-project-benchmarks.js +5 -0
- package/dist/gpu-project-benchmarks.js.map +1 -0
- package/dist/gpu-project-crs.cjs +21 -0
- package/dist/gpu-project-crs.d.ts +2 -0
- package/dist/gpu-project-crs.d.ts.map +1 -0
- package/dist/gpu-project-crs.js +5 -0
- package/dist/gpu-project-crs.js.map +1 -0
- package/dist/gpu-project-geoarrow.cjs +21 -0
- package/dist/gpu-project-geoarrow.d.ts +2 -0
- package/dist/gpu-project-geoarrow.d.ts.map +1 -0
- package/dist/gpu-project-geoarrow.js +5 -0
- package/dist/gpu-project-geoarrow.js.map +1 -0
- package/dist/gpu-project-graph.cjs +21 -0
- package/dist/gpu-project-graph.d.ts +2 -0
- package/dist/gpu-project-graph.d.ts.map +1 -0
- package/dist/gpu-project-graph.js +5 -0
- package/dist/gpu-project-graph.js.map +1 -0
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.cjs +75 -5
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.d.ts +5 -1
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.d.ts.map +1 -1
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.js +86 -6
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.js.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.cjs +9 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts +2 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js +10 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-transfer.d.ts +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-transfer.d.ts.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-value.d.ts +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-value.d.ts.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph.cjs +126 -10
- package/dist/gpu-simple-graph/gpu-simple-graph.d.ts +36 -11
- package/dist/gpu-simple-graph/gpu-simple-graph.d.ts.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph.js +137 -12
- package/dist/gpu-simple-graph/gpu-simple-graph.js.map +1 -1
- package/dist/gpu-simple-graph/index.cjs.map +3 -3
- package/dist/gpu-simple-graph/index.d.ts +1 -1
- package/dist/gpu-simple-graph/index.d.ts.map +1 -1
- package/dist/gpu-simple-graph/index.js.map +1 -1
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.cjs +25 -0
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.d.ts +7 -1
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.js +28 -0
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.js.map +1 -1
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.cjs +7 -0
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.d.ts +2 -0
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.js +7 -0
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.js.map +1 -1
- package/dist/gpu-simple-graph/operation/operation.d.ts +1 -1
- package/dist/gpu-simple-graph/operation/operation.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operations/convert-colors.cjs +6 -6
- package/dist/gpu-simple-graph/operations/convert-colors.d.ts +5 -1
- package/dist/gpu-simple-graph/operations/convert-colors.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operations/convert-colors.js +12 -7
- package/dist/gpu-simple-graph/operations/convert-colors.js.map +1 -1
- package/dist/gpu-simple-graph/operations/cpu/convert-colors.cjs +16 -33
- package/dist/gpu-simple-graph/operations/cpu/convert-colors.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operations/cpu/convert-colors.js +22 -35
- package/dist/gpu-simple-graph/operations/cpu/convert-colors.js.map +1 -1
- package/dist/gpu-simple-graph/operations/cpu/index.cjs.map +3 -3
- package/dist/gpu-simple-graph/operations/webgl/index.cjs.map +3 -3
- package/dist/gpu-simple-graph/operations/webgpu/convert-colors.cjs +31 -13
- package/dist/gpu-simple-graph/operations/webgpu/convert-colors.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operations/webgpu/convert-colors.js +42 -13
- package/dist/gpu-simple-graph/operations/webgpu/convert-colors.js.map +1 -1
- package/dist/gpu-simple-graph/operations/webgpu/index.cjs.map +1 -1
- package/dist/gpu-simple-graph-cpu.cjs +21 -0
- package/dist/gpu-simple-graph-cpu.d.ts +2 -0
- package/dist/gpu-simple-graph-cpu.d.ts.map +1 -0
- package/dist/gpu-simple-graph-cpu.js +5 -0
- package/dist/gpu-simple-graph-cpu.js.map +1 -0
- package/dist/gpu-simple-graph-webgl.cjs +21 -0
- package/dist/gpu-simple-graph-webgl.d.ts +2 -0
- package/dist/gpu-simple-graph-webgl.d.ts.map +1 -0
- package/dist/gpu-simple-graph-webgl.js +5 -0
- package/dist/gpu-simple-graph-webgl.js.map +1 -0
- package/dist/gpu-simple-graph-webgpu.cjs +21 -0
- package/dist/gpu-simple-graph-webgpu.d.ts +2 -0
- package/dist/gpu-simple-graph-webgpu.d.ts.map +1 -0
- package/dist/gpu-simple-graph-webgpu.js +5 -0
- package/dist/gpu-simple-graph-webgpu.js.map +1 -0
- package/dist/gpu-sql/gpu-sql.cjs +159 -328
- package/dist/gpu-sql/gpu-sql.d.ts +1 -1
- package/dist/gpu-sql/gpu-sql.d.ts.map +1 -1
- package/dist/gpu-sql/gpu-sql.js +186 -340
- package/dist/gpu-sql/gpu-sql.js.map +1 -1
- package/dist/gpu-sql/index.cjs.map +3 -3
- package/dist/gpu-tables/index.cjs.map +2 -2
- package/dist/gpu-tables/table/gpu-table.cjs +2 -2
- package/dist/gpu-tables/table/gpu-table.d.ts.map +1 -1
- package/dist/gpu-tables/table/gpu-table.js +2 -2
- package/dist/gpu-tables/table/gpu-table.js.map +1 -1
- package/dist/gpu-timeseries/index.cjs.map +1 -1
- package/dist/index.cjs +11 -0
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +30 -16
- package/src/arrow/arrow-colors.ts +194 -33
- package/src/arrow/arrow-utils/arrow-paths.ts +5 -3
- package/src/arrow/cpu/arrow-coordinate-projection.ts +18 -0
- package/src/arrow/cpu/arrow-cpu-pipelines.ts +9 -0
- package/src/arrow/cpu/arrow-cpu-vector-adapters.ts +153 -0
- package/src/arrow/geoarrow/arrow-geoarrow-adapter.ts +21 -493
- package/src/arrow/geoarrow/arrow-geoarrow-conversion.ts +7 -5
- package/src/arrow/geoarrow/arrow-polygon-tessellation.ts +1 -1
- package/src/arrow/gpu/arrow-column-gpu-vector.ts +67 -14
- package/src/arrow/gpu/arrow-gpu-table-conversion.ts +96 -4
- package/src/arrow/gpu/arrow-gpu-vector-adapters.ts +20 -7
- package/src/arrow/gpu/arrow-gpu-vector-conversion.ts +49 -6
- package/src/arrow/index.ts +14 -0
- package/src/experimental-models.ts +5 -0
- package/src/experimental-simulation.ts +5 -0
- package/src/geospatial/gpu-point-spatial-query.ts +2 -15
- package/src/gpu-core/compiled-gpu-graph.ts +73 -1
- package/src/gpu-core/gpu-command-graph-compiler.ts +25 -2
- package/src/gpu-core/gpu-command-graph-types.ts +20 -0
- package/src/gpu-core/gpu-command-graph.ts +48 -11
- package/src/gpu-core/gpu-cpu-execution.ts +345 -0
- package/src/gpu-core/gpu-cpu-operation.ts +65 -0
- package/src/gpu-core/gpu-dispatch-utils.ts +13 -1
- package/src/gpu-core/gpu-expression-operation.ts +1 -1
- package/src/gpu-core/gpu-expression-plan.ts +11 -3
- package/src/gpu-core/gpu-graph-compiler.ts +61 -0
- package/src/gpu-core/gpu-graph.ts +3 -3
- package/src/gpu-core/gpu-grid-aggregation.ts +2 -5
- package/src/gpu-core/gpu-grid-binning.ts +2 -5
- package/src/gpu-core/gpu-grid-coordinate.ts +24 -0
- package/src/gpu-core/gpu-grid-index-internals.ts +2 -15
- package/src/gpu-core/gpu-grid-index-query.ts +2 -16
- package/src/gpu-core/gpu-group-aggregation.ts +38 -50
- package/src/gpu-core/gpu-operation.ts +9 -7
- package/src/gpu-core/gpu-reduction.ts +32 -42
- package/src/gpu-core/gpu-render-operation.ts +42 -0
- package/src/gpu-core/gpu-scan.ts +59 -45
- package/src/gpu-core/gpu-segmented-reduction.ts +20 -10
- package/src/gpu-core/gpu-segmented-scan.ts +82 -17
- package/src/gpu-core/gpu-semantic-aggregation-operation.ts +150 -0
- package/src/gpu-core/gpu-shader-pass-kernel.ts +307 -0
- package/src/gpu-core/gpu-shader-pass-operation.ts +103 -0
- package/src/gpu-core/gpu-texture-plan.ts +3 -2
- package/src/gpu-core/index.ts +39 -0
- package/src/gpu-data/color-conversion.ts +158 -0
- package/src/gpu-data/cpu-data.ts +62 -0
- package/src/gpu-data/cpu-gpu-vector-transfer.ts +110 -0
- package/src/gpu-data/cpu-vector.ts +31 -0
- package/src/gpu-data/gpu-data-buffer-props.ts +25 -0
- package/src/gpu-data/gpu-vector-wgsl-layout.ts +79 -0
- package/src/gpu-data/index.ts +15 -0
- package/src/gpu-dataframe/gpu-data-frame-query.ts +24 -31
- package/src/gpu-dataframe/gpu-expression-shader.ts +128 -7
- package/src/gpu-dataframe/gpu-expression.ts +259 -1
- package/src/gpu-dataframe/gpu-global-aggregation-compiler.ts +0 -1
- package/src/gpu-dataframe/gpu-global-aggregation-query.ts +5 -3
- package/src/gpu-dataframe/gpu-global-sort-compiler.ts +26 -12
- package/src/gpu-dataframe/gpu-group-aggregation-compiler.ts +0 -1
- package/src/gpu-dataframe/gpu-group-by-query.ts +5 -3
- package/src/gpu-dataframe/gpu-histogram-compiler.ts +0 -1
- package/src/gpu-dataframe/gpu-join-compiler.ts +0 -2
- package/src/gpu-dataframe/gpu-query-compiler.ts +3 -3
- package/src/gpu-dataframe/gpu-sort-compiler.ts +0 -1
- package/src/gpu-dataframe/gpu-sort-query.ts +31 -5
- package/src/gpu-dataframe/index.ts +26 -2
- package/src/gpu-dataframe/portable-expression.ts +194 -0
- package/src/gpu-dggs-benchmarks.ts +5 -0
- package/src/gpu-graph/index.ts +17 -0
- package/src/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.ts +2 -15
- package/src/gpu-graph-algorithms-benchmarks.ts +5 -0
- package/src/gpu-physics/gpu-physics-ensemble-terrain.ts +114 -0
- package/src/gpu-physics/gpu-physics-ensemble.ts +147 -4
- package/src/gpu-physics/gpu-rigid-body-world.ts +797 -102
- package/src/gpu-physics/index.ts +38 -0
- package/src/gpu-physics/rigid-body-bounds-shaders.ts +16 -1
- package/src/gpu-physics/rigid-body-convex-shaders.ts +3 -2
- package/src/gpu-physics/rigid-body-ensemble-reset.ts +48 -8
- package/src/gpu-physics/rigid-body-ensemble-transaction.ts +34 -1
- package/src/gpu-physics/rigid-body-geometry.ts +49 -4
- package/src/gpu-physics/rigid-body-height-field-shader.ts +56 -0
- package/src/gpu-physics/rigid-body-height-field.ts +257 -0
- package/src/gpu-physics/rigid-body-mesh-query-shaders.ts +4 -2
- package/src/gpu-physics/rigid-body-mesh.ts +97 -26
- package/src/gpu-physics/rigid-body-parallel-shaders.ts +32 -9
- package/src/gpu-physics/rigid-body-properties.ts +5 -2
- package/src/gpu-physics/rigid-body-publication.ts +1 -1
- package/src/gpu-physics/rigid-body-query-geometry.ts +22 -4
- package/src/gpu-physics/rigid-body-shaders.ts +19 -7
- package/src/gpu-physics/rigid-body-shape-properties.ts +2 -0
- package/src/gpu-physics/rigid-body-terrain-atlas.ts +378 -0
- package/src/gpu-physics/rigid-body-terrain-lod.ts +332 -0
- package/src/gpu-physics/rigid-body-terrain-stitch.ts +286 -0
- package/src/gpu-physics/rigid-body-terrain-stream.ts +323 -0
- package/src/gpu-physics/rigid-body-triggers.ts +1 -0
- package/src/gpu-physics/rigid-body-vehicle.ts +166 -0
- package/src/gpu-project/README.md +2 -2
- package/src/gpu-project/coordinate-projection-graph.ts +59 -0
- package/src/gpu-project/cpu-geoarrow.ts +135 -0
- package/src/gpu-project/cpu-geometry-pipelines.ts +159 -0
- package/src/gpu-project/cpu-projection-operation.ts +49 -0
- package/src/gpu-project/crs.ts +2 -2
- package/src/gpu-project/geoarrow.ts +11 -0
- package/src/gpu-project/graph.ts +10 -0
- package/src/gpu-project/index.ts +2 -0
- package/src/gpu-project/projection-crs-benchmark.ts +2 -2
- package/src/gpu-project/projection-crs-input.ts +4 -4
- package/src/gpu-project/projection-engine.ts +2 -2
- package/src/gpu-project-benchmarks.ts +5 -0
- package/src/gpu-project-crs.ts +5 -0
- package/src/gpu-project-geoarrow.ts +5 -0
- package/src/gpu-project-graph.ts +5 -0
- package/src/gpu-simple-graph/compiled-gpu-expression-graph.ts +97 -6
- package/src/gpu-simple-graph/gpu-simple-graph-lowering.ts +11 -0
- package/src/gpu-simple-graph/gpu-simple-graph-transfer.ts +1 -1
- package/src/gpu-simple-graph/gpu-simple-graph-value.ts +1 -1
- package/src/gpu-simple-graph/gpu-simple-graph.ts +163 -19
- package/src/gpu-simple-graph/index.ts +1 -0
- package/src/gpu-simple-graph/operation/gpu-data-evaluator.ts +25 -1
- package/src/gpu-simple-graph/operation/gpu-vector-evaluator.ts +7 -0
- package/src/gpu-simple-graph/operation/operation.ts +1 -1
- package/src/gpu-simple-graph/operations/convert-colors.ts +22 -7
- package/src/gpu-simple-graph/operations/cpu/convert-colors.ts +31 -48
- package/src/gpu-simple-graph/operations/swizzle.ts +1 -1
- package/src/gpu-simple-graph/operations/webgpu/convert-colors.ts +47 -13
- package/src/gpu-simple-graph-cpu.ts +5 -0
- package/src/gpu-simple-graph-webgl.ts +5 -0
- package/src/gpu-simple-graph-webgpu.ts +5 -0
- package/src/gpu-sql/gpu-sql.ts +238 -354
- package/src/gpu-tables/table/gpu-table.ts +2 -1
- package/src/index.ts +21 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileComment: Independently implemented for WebGPU; inspired by NVIDIA RAPIDS cuProj.
|
|
5
|
+
|
|
6
|
+
import {assert} from '@luma.gl/core';
|
|
7
|
+
import {CPUData, CPUVector, getGPUVectorFormatInfo} from '@luma.gl/graph/gpu-data';
|
|
8
|
+
import type {
|
|
9
|
+
GeoArrowColumn,
|
|
10
|
+
GeoArrowDimension,
|
|
11
|
+
GeoArrowArray,
|
|
12
|
+
GeoArrowFixedSizeList
|
|
13
|
+
} from '@math.gl/core/arrow';
|
|
14
|
+
|
|
15
|
+
/** Borrow CPU coordinate chunks as native GeoArrow points or single-level coordinate lists. */
|
|
16
|
+
export function makeGeoArrowColumnFromCPUVector(
|
|
17
|
+
vector: CPUVector,
|
|
18
|
+
options: {
|
|
19
|
+
encoding?:
|
|
20
|
+
| 'geoarrow.point'
|
|
21
|
+
| 'geoarrow.linestring'
|
|
22
|
+
| 'geoarrow.multipoint'
|
|
23
|
+
| 'geoarrow.polygon';
|
|
24
|
+
dimension?: GeoArrowDimension;
|
|
25
|
+
} = {}
|
|
26
|
+
): GeoArrowColumn {
|
|
27
|
+
const info = getGPUVectorFormatInfo(vector.format);
|
|
28
|
+
assert(info.signedDataType === 'float32' && info.components >= 2 && !info.fixedSizeList);
|
|
29
|
+
const variable = info.vertexList || info.valueList;
|
|
30
|
+
const encoding = options.encoding ?? (variable ? 'geoarrow.linestring' : 'geoarrow.point');
|
|
31
|
+
assert(variable === (encoding !== 'geoarrow.point'));
|
|
32
|
+
const dimension =
|
|
33
|
+
options.dimension ?? (info.components === 2 ? 'xy' : info.components === 3 ? 'xyz' : 'xyzm');
|
|
34
|
+
assert((dimension === 'xy' ? 2 : dimension === 'xyzm' ? 4 : 3) === info.components);
|
|
35
|
+
const chunks = vector.data.map(chunk => {
|
|
36
|
+
// GeoArrow primitive scalar stride cannot express padding between coordinate tuples.
|
|
37
|
+
const packed = chunk.byteStride === info.byteLength && chunk.byteOffset % 4 === 0;
|
|
38
|
+
const count = variable ? chunk.valueLength : chunk.length;
|
|
39
|
+
let values: Float32Array;
|
|
40
|
+
if (packed) values = new Float32Array(chunk.buffer, chunk.byteOffset, count * info.components);
|
|
41
|
+
else {
|
|
42
|
+
values = new Float32Array(count * info.components);
|
|
43
|
+
const bytes = new Uint8Array(values.buffer);
|
|
44
|
+
for (let index = 0; index < count; index++)
|
|
45
|
+
bytes.set(
|
|
46
|
+
new Uint8Array(
|
|
47
|
+
chunk.buffer,
|
|
48
|
+
chunk.byteOffset + index * chunk.byteStride,
|
|
49
|
+
info.byteLength
|
|
50
|
+
),
|
|
51
|
+
index * info.byteLength
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
const coordinates: GeoArrowFixedSizeList = {
|
|
55
|
+
kind: 'fixed-size-list',
|
|
56
|
+
length: count,
|
|
57
|
+
size: info.components,
|
|
58
|
+
child: {
|
|
59
|
+
kind: 'primitive',
|
|
60
|
+
length: count * info.components,
|
|
61
|
+
values
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const validity = chunk.nullBitmap ? {values: chunk.nullBitmap} : undefined;
|
|
65
|
+
if (!variable) return {...coordinates, validity};
|
|
66
|
+
assert(chunk.valueOffsets);
|
|
67
|
+
const rings: GeoArrowArray = {
|
|
68
|
+
kind: 'list',
|
|
69
|
+
length: chunk.length,
|
|
70
|
+
offsets: chunk.valueOffsets,
|
|
71
|
+
child: coordinates,
|
|
72
|
+
validity
|
|
73
|
+
};
|
|
74
|
+
return encoding === 'geoarrow.polygon'
|
|
75
|
+
? {
|
|
76
|
+
kind: 'list' as const,
|
|
77
|
+
length: chunk.length,
|
|
78
|
+
offsets: Int32Array.from({length: chunk.length + 1}, (_, index) => index),
|
|
79
|
+
child: rings,
|
|
80
|
+
validity
|
|
81
|
+
}
|
|
82
|
+
: rings;
|
|
83
|
+
});
|
|
84
|
+
return {encoding, dimension, coordinateLayout: 'interleaved', chunks};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** Borrow packed Float32 GeoArrow points/lines/multipoints as CPU chunks. Nested polygons stay GeoArrow. */
|
|
88
|
+
export function makeCPUVectorFromGeoArrowColumn(column: GeoArrowColumn): CPUVector {
|
|
89
|
+
assert(
|
|
90
|
+
column.coordinateLayout === 'interleaved' &&
|
|
91
|
+
['geoarrow.point', 'geoarrow.linestring', 'geoarrow.multipoint'].includes(column.encoding)
|
|
92
|
+
);
|
|
93
|
+
const components = column.dimension === 'xy' ? 2 : column.dimension === 'xyzm' ? 4 : 3;
|
|
94
|
+
const variable = column.encoding !== 'geoarrow.point';
|
|
95
|
+
const element = `float32x${components}` as 'float32x2' | 'float32x3' | 'float32x4';
|
|
96
|
+
const format = variable ? (`vertex-list<${element}>` as const) : element;
|
|
97
|
+
const data = column.chunks.map(chunk => {
|
|
98
|
+
assert(!chunk.validity?.bitOffset);
|
|
99
|
+
const coordinates = variable && chunk.kind === 'list' ? chunk.child : chunk;
|
|
100
|
+
assert(
|
|
101
|
+
coordinates.kind === 'fixed-size-list' &&
|
|
102
|
+
coordinates.size === components &&
|
|
103
|
+
!coordinates.offset &&
|
|
104
|
+
(!variable || !coordinates.validity)
|
|
105
|
+
);
|
|
106
|
+
const primitive = coordinates.child;
|
|
107
|
+
assert(
|
|
108
|
+
primitive.kind === 'primitive' &&
|
|
109
|
+
primitive.values instanceof Float32Array &&
|
|
110
|
+
!primitive.validity &&
|
|
111
|
+
(!primitive.stride || primitive.stride === 1)
|
|
112
|
+
);
|
|
113
|
+
const offset = primitive.offset ?? 0;
|
|
114
|
+
const values = primitive.values.subarray(offset, offset + coordinates.length * components);
|
|
115
|
+
let valueOffsets: Int32Array | undefined;
|
|
116
|
+
if (variable) {
|
|
117
|
+
assert(
|
|
118
|
+
chunk.kind === 'list' &&
|
|
119
|
+
chunk.offsets instanceof Int32Array &&
|
|
120
|
+
!chunk.offset &&
|
|
121
|
+
!chunk.offsetBase
|
|
122
|
+
);
|
|
123
|
+
valueOffsets = chunk.offsets;
|
|
124
|
+
}
|
|
125
|
+
return new CPUData({
|
|
126
|
+
buffer: values,
|
|
127
|
+
format,
|
|
128
|
+
length: chunk.length,
|
|
129
|
+
valueLength: variable ? coordinates.length : undefined,
|
|
130
|
+
valueOffsets,
|
|
131
|
+
nullBitmap: chunk.validity?.values
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
return new CPUVector({format, data});
|
|
135
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileComment: Independently implemented for WebGPU; inspired by NVIDIA RAPIDS cuProj.
|
|
5
|
+
|
|
6
|
+
import {assert} from '@luma.gl/core';
|
|
7
|
+
import {CPUData, CPUVector, getGPUVectorFormatInfo} from '@luma.gl/graph/gpu-data';
|
|
8
|
+
import type {Projection} from '@math.gl/geospatial/projection-types';
|
|
9
|
+
import type {GeoArrowColumn} from '@math.gl/core/arrow';
|
|
10
|
+
import {
|
|
11
|
+
tessellateGeoArrowPolygons,
|
|
12
|
+
type TessellateGeoArrowPolygonsOptions
|
|
13
|
+
} from '@math.gl/geometry/arrow';
|
|
14
|
+
import {makeGeoArrowColumnFromCPUVector, makeCPUVectorFromGeoArrowColumn} from './cpu-geoarrow';
|
|
15
|
+
|
|
16
|
+
/** Project Float32 coordinates while retaining single-level row topology and null rows. */
|
|
17
|
+
export async function projectCPUVector(
|
|
18
|
+
vector: CPUVector,
|
|
19
|
+
projection: Pick<Projection, 'projectFlat'>
|
|
20
|
+
): Promise<CPUVector> {
|
|
21
|
+
const {name, format} = vector;
|
|
22
|
+
vector = makeCPUVectorFromGeoArrowColumn(makeGeoArrowColumnFromCPUVector(vector));
|
|
23
|
+
const info = getGPUVectorFormatInfo(vector.format);
|
|
24
|
+
assert(
|
|
25
|
+
info.signedDataType === 'float32' &&
|
|
26
|
+
(info.components === 2 || info.components === 3) &&
|
|
27
|
+
!info.fixedSizeList
|
|
28
|
+
);
|
|
29
|
+
const data: CPUData[] = [];
|
|
30
|
+
for (const chunk of vector.data) {
|
|
31
|
+
const variable = info.vertexList || info.valueList;
|
|
32
|
+
const count = variable ? chunk.valueLength : chunk.length;
|
|
33
|
+
const values = new Float32Array(count * info.components);
|
|
34
|
+
const bytes = new Uint8Array(values.buffer);
|
|
35
|
+
for (let index = 0; index < count; index++)
|
|
36
|
+
bytes.set(
|
|
37
|
+
new Uint8Array(chunk.buffer, chunk.byteOffset + index * chunk.byteStride, info.byteLength),
|
|
38
|
+
index * info.byteLength
|
|
39
|
+
);
|
|
40
|
+
if (variable) assert(chunk.valueOffsets);
|
|
41
|
+
let row = 0;
|
|
42
|
+
while (row < chunk.length) {
|
|
43
|
+
if (chunk.nullBitmap && !(chunk.nullBitmap[row >> 3] & (1 << (row & 7)))) {
|
|
44
|
+
row++;
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
const firstRow = row++;
|
|
48
|
+
while (
|
|
49
|
+
row < chunk.length &&
|
|
50
|
+
(!chunk.nullBitmap || chunk.nullBitmap[row >> 3] & (1 << (row & 7)))
|
|
51
|
+
)
|
|
52
|
+
row++;
|
|
53
|
+
const start = variable ? chunk.valueOffsets![firstRow] : firstRow;
|
|
54
|
+
const end = variable ? chunk.valueOffsets![row] : row;
|
|
55
|
+
if (end > start)
|
|
56
|
+
values.set(
|
|
57
|
+
await projection.projectFlat(
|
|
58
|
+
values.slice(start * info.components, end * info.components),
|
|
59
|
+
info.components
|
|
60
|
+
),
|
|
61
|
+
start * info.components
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
data.push(
|
|
65
|
+
new CPUData({
|
|
66
|
+
buffer: values,
|
|
67
|
+
format,
|
|
68
|
+
length: chunk.length,
|
|
69
|
+
valueLength: chunk.valueLength,
|
|
70
|
+
valueOffsets: chunk.valueOffsets?.slice(),
|
|
71
|
+
nullBitmap: chunk.nullBitmap?.slice()
|
|
72
|
+
})
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
return new CPUVector({name, format, data});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** Tessellate one simple polygon ring per list row, preserving source chunks and row identities. */
|
|
79
|
+
export function tessellateCPUVectorPolygons(vector: CPUVector): {
|
|
80
|
+
positions: CPUVector<'vertex-list<float32x4>'>;
|
|
81
|
+
indices: CPUVector<'vertex-list<uint32>'>;
|
|
82
|
+
rowIndices: CPUVector<'vertex-list<uint32>'>;
|
|
83
|
+
} {
|
|
84
|
+
return tessellateGeoArrowColumnToCPUVectors(
|
|
85
|
+
makeGeoArrowColumnFromCPUVector(vector, {encoding: 'geoarrow.polygon'})
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** Full native GeoArrow polygon tessellation, including holes, multipolygons and mixed columns. */
|
|
90
|
+
export function tessellateGeoArrowColumnToCPUVectors(
|
|
91
|
+
column: GeoArrowColumn,
|
|
92
|
+
options: TessellateGeoArrowPolygonsOptions = {}
|
|
93
|
+
): {
|
|
94
|
+
positions: CPUVector<'vertex-list<float32x4>'>;
|
|
95
|
+
indices: CPUVector<'vertex-list<uint32>'>;
|
|
96
|
+
rowIndices: CPUVector<'vertex-list<uint32>'>;
|
|
97
|
+
} {
|
|
98
|
+
const positions: CPUData<'vertex-list<float32x4>'>[] = [];
|
|
99
|
+
const indices: CPUData<'vertex-list<uint32>'>[] = [];
|
|
100
|
+
const rowIndices: CPUData<'vertex-list<uint32>'>[] = [];
|
|
101
|
+
let rowOffset = options.sourceRowOffset ?? 0;
|
|
102
|
+
for (const rings of column.chunks) {
|
|
103
|
+
const mesh = tessellateGeoArrowPolygons(
|
|
104
|
+
{...column, chunks: [rings]},
|
|
105
|
+
{...options, positionSize: 4, sourceRowOffset: rowOffset}
|
|
106
|
+
);
|
|
107
|
+
const vertexOffsets = new Int32Array(rings.length + 1);
|
|
108
|
+
const indexOffsets = new Int32Array(rings.length + 1);
|
|
109
|
+
for (const source of mesh.sourceRowIndices) vertexOffsets[source - rowOffset + 1]++;
|
|
110
|
+
for (const index of mesh.indices) indexOffsets[mesh.sourceRowIndices[index] - rowOffset + 1]++;
|
|
111
|
+
for (let row = 1; row <= rings.length; row++) {
|
|
112
|
+
vertexOffsets[row] += vertexOffsets[row - 1];
|
|
113
|
+
indexOffsets[row] += indexOffsets[row - 1];
|
|
114
|
+
}
|
|
115
|
+
let nullBitmap: Uint8Array | undefined;
|
|
116
|
+
if (rings.validity) {
|
|
117
|
+
nullBitmap = new Uint8Array(Math.ceil(rings.length / 8));
|
|
118
|
+
for (let row = 0; row < rings.length; row++) {
|
|
119
|
+
const bit = row + (rings.validity.bitOffset ?? 0);
|
|
120
|
+
if (rings.validity.values[bit >> 3] & (1 << (bit & 7)))
|
|
121
|
+
nullBitmap[row >> 3] |= 1 << (row & 7);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
const common = {length: rings.length, nullBitmap};
|
|
125
|
+
positions.push(
|
|
126
|
+
new CPUData({
|
|
127
|
+
...common,
|
|
128
|
+
format: 'vertex-list<float32x4>',
|
|
129
|
+
buffer: mesh.positions,
|
|
130
|
+
valueLength: mesh.vertexCount,
|
|
131
|
+
valueOffsets: vertexOffsets
|
|
132
|
+
})
|
|
133
|
+
);
|
|
134
|
+
indices.push(
|
|
135
|
+
new CPUData({
|
|
136
|
+
...common,
|
|
137
|
+
format: 'vertex-list<uint32>',
|
|
138
|
+
buffer: Uint32Array.from(mesh.indices),
|
|
139
|
+
valueLength: mesh.indices.length,
|
|
140
|
+
valueOffsets: indexOffsets
|
|
141
|
+
})
|
|
142
|
+
);
|
|
143
|
+
rowIndices.push(
|
|
144
|
+
new CPUData({
|
|
145
|
+
...common,
|
|
146
|
+
format: 'vertex-list<uint32>',
|
|
147
|
+
buffer: mesh.sourceRowIndices,
|
|
148
|
+
valueLength: mesh.vertexCount,
|
|
149
|
+
valueOffsets: vertexOffsets
|
|
150
|
+
})
|
|
151
|
+
);
|
|
152
|
+
rowOffset += rings.length;
|
|
153
|
+
}
|
|
154
|
+
return {
|
|
155
|
+
positions: new CPUVector({format: 'vertex-list<float32x4>', data: positions}),
|
|
156
|
+
indices: new CPUVector({format: 'vertex-list<uint32>', data: indices}),
|
|
157
|
+
rowIndices: new CPUVector({format: 'vertex-list<uint32>', data: rowIndices})
|
|
158
|
+
};
|
|
159
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileComment: Independently implemented for WebGPU; inspired by NVIDIA RAPIDS cuProj.
|
|
5
|
+
|
|
6
|
+
import {assert} from '@luma.gl/core';
|
|
7
|
+
import type {Projection} from '@math.gl/geospatial/projection-types';
|
|
8
|
+
import {GPUCPUOperation} from '../gpu-core/gpu-cpu-operation';
|
|
9
|
+
import {gpuGraph} from '../gpu-core/gpu-graph-value';
|
|
10
|
+
|
|
11
|
+
export type CPUProjectionOperationProps = {
|
|
12
|
+
id: string;
|
|
13
|
+
input: string;
|
|
14
|
+
output: string;
|
|
15
|
+
format: 'float32x2' | 'float32x3';
|
|
16
|
+
projection: Pick<Projection, 'projectFlat'>;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** Forward projection on the CPU with executor-managed GPU readback and upload. */
|
|
20
|
+
export class CPUProjectionOperation extends GPUCPUOperation {
|
|
21
|
+
constructor(props: CPUProjectionOperationProps) {
|
|
22
|
+
const dimension = props.format === 'float32x2' ? 2 : 3;
|
|
23
|
+
super({
|
|
24
|
+
id: props.id,
|
|
25
|
+
inputs: {positions: props.input},
|
|
26
|
+
outputs: {[props.output]: gpuGraph.vector(props.format)},
|
|
27
|
+
async execute({inputs}) {
|
|
28
|
+
const input = inputs['positions'];
|
|
29
|
+
// Coordinates must match the declared packed Float32 dimension.
|
|
30
|
+
assert(typeof input !== 'number' && input.format === props.format);
|
|
31
|
+
return {
|
|
32
|
+
[props.output]: {
|
|
33
|
+
chunks: await Promise.all(
|
|
34
|
+
input.chunks.map(async chunk => {
|
|
35
|
+
assert(chunk.values instanceof Float32Array);
|
|
36
|
+
const values = chunk.values.slice();
|
|
37
|
+
return {
|
|
38
|
+
values: values.length
|
|
39
|
+
? await props.projection.projectFlat(values, dimension)
|
|
40
|
+
: values
|
|
41
|
+
};
|
|
42
|
+
})
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
package/src/gpu-project/crs.ts
CHANGED
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
type ReadonlyCRSDefinition
|
|
10
10
|
} from '@math.gl/geospatial/crs';
|
|
11
11
|
import {projectionEngine} from '@math.gl/geospatial/projection';
|
|
12
|
-
import type {Projection} from '@math.gl/geospatial/projection
|
|
13
|
-
import type {TypeScriptCRSInput} from '@math.gl/geospatial/projection
|
|
12
|
+
import type {Projection} from '@math.gl/geospatial/projection-types';
|
|
13
|
+
import type {TypeScriptCRSInput} from '@math.gl/geospatial/projection-core';
|
|
14
14
|
import {prepareCRSProjection} from './projection-engine';
|
|
15
15
|
import {prepareProjectionReferences} from './projection-crs-input';
|
|
16
16
|
export {prepareCRSProjection, prepareCRSProjectionAsync} from './projection-engine';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileComment: Independently implemented for WebGPU; inspired by NVIDIA RAPIDS cuProj.
|
|
5
|
+
|
|
6
|
+
export {makeGeoArrowColumnFromCPUVector, makeCPUVectorFromGeoArrowColumn} from './cpu-geoarrow';
|
|
7
|
+
export {
|
|
8
|
+
projectCPUVector,
|
|
9
|
+
tessellateCPUVectorPolygons,
|
|
10
|
+
tessellateGeoArrowColumnToCPUVectors
|
|
11
|
+
} from './cpu-geometry-pipelines';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileComment: Independently implemented for WebGPU; inspired by NVIDIA RAPIDS cuProj.
|
|
5
|
+
|
|
6
|
+
export {
|
|
7
|
+
CoordinateProjectionGraph,
|
|
8
|
+
type CoordinateProjectionGraphProps,
|
|
9
|
+
type ProjectedCoordinateResult
|
|
10
|
+
} from './coordinate-projection-graph';
|
package/src/gpu-project/index.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
// SPDX-FileComment: Independently implemented for WebGPU; inspired by NVIDIA RAPIDS cuProj.
|
|
5
5
|
|
|
6
|
-
import {ProjectionBuffer} from '@math.gl/geospatial/projection
|
|
7
|
-
import type {Projection} from '@math.gl/geospatial/projection
|
|
6
|
+
import {ProjectionBuffer} from '@math.gl/geospatial/projection-bulk';
|
|
7
|
+
import type {Projection} from '@math.gl/geospatial/projection-types';
|
|
8
8
|
import type {ProjectionCoordinates} from './types';
|
|
9
9
|
import type {ProjectionProgramCPUVariant} from './projection-program-cpu-benchmark';
|
|
10
10
|
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
type CRSNormalizationOptions,
|
|
18
18
|
type NormalizedCRS,
|
|
19
19
|
type TypeScriptCRSInput
|
|
20
|
-
} from '@math.gl/geospatial/projection
|
|
21
|
-
import {projJSONCRSParser} from '@math.gl/geospatial/projection
|
|
22
|
-
import {wktCRSParser} from '@math.gl/geospatial/projection
|
|
23
|
-
import {datumCatalog} from '@math.gl/geospatial/projection
|
|
20
|
+
} from '@math.gl/geospatial/projection-core';
|
|
21
|
+
import {projJSONCRSParser} from '@math.gl/geospatial/projection-parsers-projjson';
|
|
22
|
+
import {wktCRSParser} from '@math.gl/geospatial/projection-parsers-wkt';
|
|
23
|
+
import {datumCatalog} from '@math.gl/geospatial/projection-datums';
|
|
24
24
|
import {normalizeCRSProviderDefinition} from './projection-crs-provider';
|
|
25
25
|
import {
|
|
26
26
|
lowerCRSProjection,
|
|
@@ -8,8 +8,8 @@ import type {SpatialReference} from '@math.gl/geospatial/crs';
|
|
|
8
8
|
import type {
|
|
9
9
|
CRSNormalizationOptions,
|
|
10
10
|
TypeScriptCRSInput
|
|
11
|
-
} from '@math.gl/geospatial/projection
|
|
12
|
-
import type {ProjectionEngine, Projection} from '@math.gl/geospatial/projection
|
|
11
|
+
} from '@math.gl/geospatial/projection-core';
|
|
12
|
+
import type {ProjectionEngine, Projection} from '@math.gl/geospatial/projection-types';
|
|
13
13
|
import {prepareProjectionReferences} from './projection-crs-input';
|
|
14
14
|
import {
|
|
15
15
|
planProjection,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
type ArithmeticOp,
|
|
15
15
|
type ArithmeticArgument
|
|
16
16
|
} from './operations/arithmetic-operation';
|
|
17
|
-
import {GPUVector} from '@luma.gl/graph/gpu-data';
|
|
17
|
+
import {CPUVector, GPUVector} from '@luma.gl/graph/gpu-data';
|
|
18
18
|
import type {GPUGraph} from '../gpu-core/gpu-graph';
|
|
19
19
|
import {
|
|
20
20
|
GPUExpressionOperation,
|
|
@@ -38,12 +38,20 @@ import type {GPUGraphOutputs} from '../gpu-core/gpu-texture-plan';
|
|
|
38
38
|
|
|
39
39
|
import {GPUExpressionCastOperation} from './gpu-expression-cast-operation';
|
|
40
40
|
import {GPUExpressionRowOperation} from './gpu-expression-row-operation';
|
|
41
|
+
import {GPUShaderPassOperation} from '../gpu-core/gpu-shader-pass-operation';
|
|
42
|
+
import {GPUShaderPassKernel} from '../gpu-core/gpu-shader-pass-kernel';
|
|
43
|
+
|
|
44
|
+
import {GPUCPUOperation} from '../gpu-core/gpu-cpu-operation';
|
|
45
|
+
import {GPUCPUExecution} from '../gpu-core/gpu-cpu-execution';
|
|
41
46
|
|
|
42
47
|
/** Reusable expression program implemented through the unchanged evaluator API. */
|
|
43
48
|
export class CompiledGPUSimpleExpressionGraph<
|
|
44
49
|
Outputs extends GPUGraphOutputs = Record<string, GPUVector>
|
|
45
50
|
> {
|
|
46
51
|
private readonly program: GPUExpressionProgram;
|
|
52
|
+
private readonly shaderPasses = new Map<GPUShaderPassOperation, GPUShaderPassKernel>();
|
|
53
|
+
private cpuExecution?: GPUCPUExecution;
|
|
54
|
+
private readonly outputLocations: Readonly<Record<string, 'cpu' | 'gpu'>>;
|
|
47
55
|
private running = false;
|
|
48
56
|
private destroyed = false;
|
|
49
57
|
|
|
@@ -54,6 +62,7 @@ export class CompiledGPUSimpleExpressionGraph<
|
|
|
54
62
|
) {
|
|
55
63
|
if (options.lowerings) throw new Error('Custom lowerings require GPUGraph');
|
|
56
64
|
this.program = new GPUExpressionProgram(source, options);
|
|
65
|
+
this.outputLocations = options.outputLocations ?? {};
|
|
57
66
|
if (this.program.textures.length && device.type !== 'webgpu')
|
|
58
67
|
throw new Error('SimpleGraph texture execution requires WebGPU');
|
|
59
68
|
if (this.program.vectors.some(value => value.role === 'state'))
|
|
@@ -62,18 +71,40 @@ export class CompiledGPUSimpleExpressionGraph<
|
|
|
62
71
|
this.program.operations.some(
|
|
63
72
|
operation =>
|
|
64
73
|
!(
|
|
74
|
+
operation instanceof GPUCPUOperation ||
|
|
65
75
|
operation instanceof GPUExpressionOperation ||
|
|
66
76
|
operation instanceof GPUUploadOperation ||
|
|
77
|
+
operation instanceof GPUShaderPassOperation ||
|
|
67
78
|
operation instanceof GPUCopyOperation
|
|
68
79
|
)
|
|
69
80
|
)
|
|
70
81
|
)
|
|
71
82
|
throw new Error(
|
|
72
|
-
'SimpleGraph declarative execution supports expression, upload and
|
|
83
|
+
'SimpleGraph declarative execution supports expression, CPU, upload, copy and shader-pass operations only'
|
|
84
|
+
);
|
|
85
|
+
if (
|
|
86
|
+
this.program.operations.some(operation => operation instanceof GPUCPUOperation) ||
|
|
87
|
+
Object.values(this.outputLocations).includes('cpu')
|
|
88
|
+
)
|
|
89
|
+
this.cpuExecution = new GPUCPUExecution(
|
|
90
|
+
device,
|
|
91
|
+
this.program,
|
|
92
|
+
(source, outputs) => new CompiledGPUSimpleExpressionGraph(device, source, {outputs})
|
|
73
93
|
);
|
|
94
|
+
try {
|
|
95
|
+
for (const operation of this.program.operations)
|
|
96
|
+
if (operation instanceof GPUShaderPassOperation)
|
|
97
|
+
this.shaderPasses.set(
|
|
98
|
+
operation,
|
|
99
|
+
new GPUShaderPassKernel(device, operation, this.program)
|
|
100
|
+
);
|
|
101
|
+
} catch (error) {
|
|
102
|
+
this.destroy();
|
|
103
|
+
throw error;
|
|
104
|
+
}
|
|
74
105
|
}
|
|
75
106
|
|
|
76
|
-
/** Prepare
|
|
107
|
+
/** Prepare straight-line texture copies and shader passes without submitting work. */
|
|
77
108
|
prepare(
|
|
78
109
|
supplied: GPUGraphRunBindings | GPUGraphExecutionBindings,
|
|
79
110
|
options: GPUGraphRunOptions = {}
|
|
@@ -83,13 +114,23 @@ export class CompiledGPUSimpleExpressionGraph<
|
|
|
83
114
|
!this.program.textures.length ||
|
|
84
115
|
this.program.operations.some(
|
|
85
116
|
operation =>
|
|
86
|
-
!(operation instanceof
|
|
87
|
-
!
|
|
117
|
+
!(operation instanceof GPUShaderPassOperation) &&
|
|
118
|
+
(!(operation instanceof GPUCopyOperation) ||
|
|
119
|
+
!this.program.textures.some(texture => texture.id === operation.input))
|
|
88
120
|
)
|
|
89
121
|
)
|
|
90
|
-
throw new Error(
|
|
122
|
+
throw new Error(
|
|
123
|
+
'SimpleGraph prepare currently supports texture-copy and shader-pass programs only'
|
|
124
|
+
);
|
|
91
125
|
const resolved = this.program.resolveBindings(supplied, options);
|
|
92
126
|
const invocation = this.program.prepare(this.device, resolved.bindings, resolved.options);
|
|
127
|
+
let shaderPasses;
|
|
128
|
+
try {
|
|
129
|
+
shaderPasses = this.prepareShaderPasses(invocation);
|
|
130
|
+
} catch (error) {
|
|
131
|
+
invocation.destroy();
|
|
132
|
+
throw error;
|
|
133
|
+
}
|
|
93
134
|
let encoded = false;
|
|
94
135
|
let destroyed = false;
|
|
95
136
|
return {
|
|
@@ -98,6 +139,10 @@ export class CompiledGPUSimpleExpressionGraph<
|
|
|
98
139
|
assert(!this.destroyed && !destroyed && !encoded && encoder.device === this.device);
|
|
99
140
|
encoded = true;
|
|
100
141
|
for (const operation of this.program.operations) {
|
|
142
|
+
if (operation instanceof GPUShaderPassOperation) {
|
|
143
|
+
shaderPasses.get(operation)!.encode(encoder);
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
101
146
|
assert(operation instanceof GPUCopyOperation);
|
|
102
147
|
encodeTextureCopy(
|
|
103
148
|
encoder,
|
|
@@ -109,6 +154,7 @@ export class CompiledGPUSimpleExpressionGraph<
|
|
|
109
154
|
destroy: (): void => {
|
|
110
155
|
if (destroyed) return;
|
|
111
156
|
destroyed = true;
|
|
157
|
+
for (const pass of shaderPasses.values()) pass.destroy();
|
|
112
158
|
invocation.finish();
|
|
113
159
|
}
|
|
114
160
|
};
|
|
@@ -123,19 +169,48 @@ export class CompiledGPUSimpleExpressionGraph<
|
|
|
123
169
|
const resolvedBindings = this.program.resolveBindings(supplied, options);
|
|
124
170
|
const bindings = resolvedBindings.bindings;
|
|
125
171
|
options = resolvedBindings.options;
|
|
172
|
+
const suppliedInputs = 'inputs' in supplied ? supplied.inputs : supplied;
|
|
173
|
+
const useCPU =
|
|
174
|
+
this.program.operations.some(operation => operation instanceof GPUCPUOperation) ||
|
|
175
|
+
Object.values(this.outputLocations).includes('cpu') ||
|
|
176
|
+
Object.values(suppliedInputs ?? {}).some(value => value instanceof CPUVector);
|
|
177
|
+
if (!this.cpuExecution && useCPU)
|
|
178
|
+
this.cpuExecution = new GPUCPUExecution(
|
|
179
|
+
this.device,
|
|
180
|
+
this.program,
|
|
181
|
+
(source, outputs) => new CompiledGPUSimpleExpressionGraph(this.device, source, {outputs})
|
|
182
|
+
);
|
|
126
183
|
this.running = true;
|
|
184
|
+
if (useCPU && this.cpuExecution) {
|
|
185
|
+
try {
|
|
186
|
+
// Dynamic CPU results cannot be prepared into caller-owned storage yet.
|
|
187
|
+
assert(!options.outputTargets || Object.keys(options.outputTargets).length === 0);
|
|
188
|
+
return (await this.cpuExecution.run(bindings, this.outputLocations)) as Outputs;
|
|
189
|
+
} finally {
|
|
190
|
+
this.running = false;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
127
193
|
const evaluators = new Set<GPUDataEvaluator>();
|
|
128
194
|
const scalarBuffers = new Set<Buffer>();
|
|
129
195
|
let scope: GPUEvaluationScope | undefined;
|
|
130
196
|
let invocation: ReturnType<GPUExpressionProgram['prepare']> | undefined;
|
|
197
|
+
let shaderPasses:
|
|
198
|
+
| ReturnType<CompiledGPUSimpleExpressionGraph['prepareShaderPasses']>
|
|
199
|
+
| undefined;
|
|
131
200
|
try {
|
|
132
201
|
invocation = this.program.prepare(this.device, bindings, options);
|
|
202
|
+
shaderPasses = this.prepareShaderPasses(invocation);
|
|
133
203
|
if (this.device.type === 'webgpu') scope = new GPUEvaluationScope(this.device);
|
|
134
204
|
const retain = (evaluator: GPUDataEvaluator): GPUDataEvaluator => {
|
|
135
205
|
evaluators.add(evaluator);
|
|
136
206
|
return evaluator;
|
|
137
207
|
};
|
|
138
208
|
for (const operation of this.program.operations) {
|
|
209
|
+
if (operation instanceof GPUShaderPassOperation) {
|
|
210
|
+
assert(scope);
|
|
211
|
+
shaderPasses.get(operation)!.encode(scope.commandEncoder);
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
139
214
|
if (operation instanceof GPUUploadOperation || operation instanceof GPUCopyOperation) {
|
|
140
215
|
if (
|
|
141
216
|
operation instanceof GPUCopyOperation &&
|
|
@@ -364,6 +439,7 @@ export class CompiledGPUSimpleExpressionGraph<
|
|
|
364
439
|
invocation?.destroy();
|
|
365
440
|
throw error;
|
|
366
441
|
} finally {
|
|
442
|
+
for (const pass of shaderPasses?.values() ?? []) pass.destroy();
|
|
367
443
|
for (const evaluator of evaluators) evaluator.destroy();
|
|
368
444
|
for (const buffer of scalarBuffers) buffer.destroy();
|
|
369
445
|
this.running = false;
|
|
@@ -373,8 +449,23 @@ export class CompiledGPUSimpleExpressionGraph<
|
|
|
373
449
|
destroy(): void {
|
|
374
450
|
// A running program owns evaluator resources until execution finishes.
|
|
375
451
|
assert(!this.running);
|
|
452
|
+
this.cpuExecution?.destroy();
|
|
453
|
+
for (const kernel of this.shaderPasses.values()) kernel.destroy();
|
|
454
|
+
this.shaderPasses.clear();
|
|
376
455
|
this.destroyed = true;
|
|
377
456
|
}
|
|
457
|
+
|
|
458
|
+
private prepareShaderPasses(invocation: ReturnType<GPUExpressionProgram['prepare']>) {
|
|
459
|
+
const passes = new Map<GPUShaderPassOperation, ReturnType<GPUShaderPassKernel['prepare']>>();
|
|
460
|
+
try {
|
|
461
|
+
for (const [operation, kernel] of this.shaderPasses)
|
|
462
|
+
passes.set(operation, kernel.prepare(invocation.textures!.values, invocation.values));
|
|
463
|
+
return passes;
|
|
464
|
+
} catch (error) {
|
|
465
|
+
for (const pass of passes.values()) pass.destroy();
|
|
466
|
+
throw error;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
378
469
|
}
|
|
379
470
|
|
|
380
471
|
/** Keep graph scalar arithmetic on the GPU with the same float32 boundaries as vectors. */
|