@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
|
@@ -74,7 +74,6 @@ export function compileGPUDataFrameAggregation<
|
|
|
74
74
|
Result,
|
|
75
75
|
CompiledGPUDataFrameAggregation<Result>
|
|
76
76
|
>(source, predicates, selectedColumns, graph, derivedColumns, {
|
|
77
|
-
allowEmptyPredicates: true,
|
|
78
77
|
prepare: context => addGPUGlobalAggregationsToGraph<Selection, Result>(context, definitions)
|
|
79
78
|
});
|
|
80
79
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type {GPUTypeMap} from '@luma.gl/graph/gpu-tables';
|
|
7
7
|
import type {GPUCommandGraph} from '@luma.gl/graph/gpu-core';
|
|
8
8
|
import type {GPUDataFrameQuery} from './gpu-data-frame-query';
|
|
9
|
-
import {
|
|
9
|
+
import {getGPUExpressionResultFormats} from './gpu-expression';
|
|
10
10
|
import {
|
|
11
11
|
compileGPUDataFrameAggregation,
|
|
12
12
|
type CompiledGPUDataFrameAggregation
|
|
@@ -128,8 +128,10 @@ export function getGPUDataFrameAnalyticColumnFormat<
|
|
|
128
128
|
)
|
|
129
129
|
);
|
|
130
130
|
for (const definition of query.derivedColumns) {
|
|
131
|
-
const
|
|
132
|
-
|
|
131
|
+
const inferred = getGPUExpressionResultFormats(definition.expression.node, formats)
|
|
132
|
+
.values()
|
|
133
|
+
.next().value;
|
|
134
|
+
formats.set(definition.name, definition.format ?? inferred ?? 'float32');
|
|
133
135
|
}
|
|
134
136
|
const format = formats.get(name);
|
|
135
137
|
return format === 'float32' || format === 'sint32' || format === 'uint32' ? format : undefined;
|
|
@@ -56,7 +56,7 @@ export class CompiledGPUDataFrameGlobalSort<
|
|
|
56
56
|
> extends CompiledGPUDataFrameSort<T> {
|
|
57
57
|
/** One dense globally ordered source-row permutation; only the selected prefix is meaningful. */
|
|
58
58
|
readonly globalRowIndices: GPUVector<'uint32'>;
|
|
59
|
-
/** One GPU-resident count of selected rows after applying the optional global
|
|
59
|
+
/** One GPU-resident count of selected rows after applying the optional global page. */
|
|
60
60
|
readonly globalSelectedCount: GPUVector<'uint32'>;
|
|
61
61
|
|
|
62
62
|
/** @internal */
|
|
@@ -94,7 +94,6 @@ export function compileGPUDataFrameGlobalSort<
|
|
|
94
94
|
Selection,
|
|
95
95
|
CompiledGPUDataFrameGlobalSort<Selection>
|
|
96
96
|
>(source, predicates, selectedColumns, graph, derivedColumns, {
|
|
97
|
-
allowEmptyPredicates: true,
|
|
98
97
|
prepare: context => addGPUGlobalSortToGraph(context, column, options)
|
|
99
98
|
});
|
|
100
99
|
}
|
|
@@ -222,10 +221,11 @@ function addGPUGlobalSortToGraph<Selection extends GPUTypeMap>(
|
|
|
222
221
|
scratch,
|
|
223
222
|
output: globalRows,
|
|
224
223
|
count: selectedCount,
|
|
224
|
+
offset: options.offset ?? 0,
|
|
225
225
|
limit: options.limit ?? MAXIMUM_UINT32
|
|
226
226
|
});
|
|
227
227
|
|
|
228
|
-
if (options.limit !== undefined) {
|
|
228
|
+
if (options.offset || options.limit !== undefined) {
|
|
229
229
|
let globalOffset = 0;
|
|
230
230
|
let fallbackOffset = 0;
|
|
231
231
|
for (const [batchIndex, batch] of context.table.batches.entries()) {
|
|
@@ -235,7 +235,8 @@ function addGPUGlobalSortToGraph<Selection extends GPUTypeMap>(
|
|
|
235
235
|
ranks: scratch.sourceClasses,
|
|
236
236
|
selection,
|
|
237
237
|
globalOffset,
|
|
238
|
-
|
|
238
|
+
offset: options.offset ?? 0,
|
|
239
|
+
limit: options.limit ?? MAXIMUM_UINT32
|
|
239
240
|
});
|
|
240
241
|
graph.add(
|
|
241
242
|
new GPUVisibilityWorkflow({
|
|
@@ -460,6 +461,7 @@ function addGPUGlobalSortPublishPass(
|
|
|
460
461
|
scratch: GPUGlobalSortScratch;
|
|
461
462
|
output: GraphDataView<'uint32'>;
|
|
462
463
|
count: GraphDataView<'uint32'>;
|
|
464
|
+
offset: number;
|
|
463
465
|
limit: number;
|
|
464
466
|
}
|
|
465
467
|
): void {
|
|
@@ -471,6 +473,7 @@ const SOURCE_ROW_OFFSET: u32 = ${getViewElementOffset(props.scratch.sourceRows)}
|
|
|
471
473
|
const RANK_OFFSET: u32 = ${getViewElementOffset(props.scratch.sourceClasses)}u;
|
|
472
474
|
const OUTPUT_OFFSET: u32 = ${getViewElementOffset(props.output)}u;
|
|
473
475
|
const COUNT_OFFSET: u32 = ${getViewElementOffset(props.count)}u;
|
|
476
|
+
const ROW_OFFSET: u32 = ${props.offset}u;
|
|
474
477
|
const ROW_LIMIT: u32 = ${props.limit}u;
|
|
475
478
|
@group(0) @binding(0) var<storage, read> sortedClasses: array<u32>;
|
|
476
479
|
@group(0) @binding(1) var<storage, read> sortedOrdinals: array<u32>;
|
|
@@ -489,13 +492,21 @@ fn main(
|
|
|
489
492
|
let ordinal = sortedOrdinals[ORDINAL_OFFSET + index];
|
|
490
493
|
let accepted = sortedClasses[CLASS_OFFSET + index] != 3u;
|
|
491
494
|
sourceRanks[RANK_OFFSET + ordinal] = select(0xffffffffu, index, accepted);
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
)
|
|
495
|
+
let skipped = min(ROW_OFFSET, ELEMENT_COUNT);
|
|
496
|
+
if (index >= ELEMENT_COUNT - skipped) {
|
|
497
|
+
outputRows[OUTPUT_OFFSET + index] = 0u;
|
|
498
|
+
}
|
|
499
|
+
if (index >= skipped) {
|
|
500
|
+
let pageIndex = index - skipped;
|
|
501
|
+
outputRows[OUTPUT_OFFSET + pageIndex] = select(
|
|
502
|
+
0u,
|
|
503
|
+
sourceRows[SOURCE_ROW_OFFSET + ordinal],
|
|
504
|
+
accepted && pageIndex < ROW_LIMIT
|
|
505
|
+
);
|
|
506
|
+
}
|
|
497
507
|
if (index == 0u) {
|
|
498
|
-
|
|
508
|
+
let total = selectedCounts[COUNT_OFFSET];
|
|
509
|
+
selectedCounts[COUNT_OFFSET] = min(total - min(total, ROW_OFFSET), ROW_LIMIT);
|
|
499
510
|
}
|
|
500
511
|
}`;
|
|
501
512
|
addGPUAnalyticsComputePass(graph, {
|
|
@@ -521,7 +532,7 @@ fn main(
|
|
|
521
532
|
});
|
|
522
533
|
}
|
|
523
534
|
|
|
524
|
-
/** Applies a global rank
|
|
535
|
+
/** Applies a global rank window back to one original source-aligned selection-mask chunk. */
|
|
525
536
|
function addGPUGlobalTopKSelectionPass(
|
|
526
537
|
graph: GPUCommandGraph<GPUDataFrameQueryParameters>,
|
|
527
538
|
id: string,
|
|
@@ -529,6 +540,7 @@ function addGPUGlobalTopKSelectionPass(
|
|
|
529
540
|
ranks: GraphDataView<'uint32'>;
|
|
530
541
|
selection: GraphDataView<'uint32'>;
|
|
531
542
|
globalOffset: number;
|
|
543
|
+
offset: number;
|
|
532
544
|
limit: number;
|
|
533
545
|
}
|
|
534
546
|
): void {
|
|
@@ -536,6 +548,7 @@ function addGPUGlobalTopKSelectionPass(
|
|
|
536
548
|
const ELEMENT_COUNT: u32 = ${props.selection.length}u;
|
|
537
549
|
const RANK_OFFSET: u32 = ${getViewElementOffset(props.ranks) + props.globalOffset}u;
|
|
538
550
|
const SELECTION_OFFSET: u32 = ${getViewElementOffset(props.selection)}u;
|
|
551
|
+
const ROW_OFFSET: u32 = ${props.offset}u;
|
|
539
552
|
const ROW_LIMIT: u32 = ${props.limit}u;
|
|
540
553
|
@group(0) @binding(0) var<storage, read> sourceRanks: array<u32>;
|
|
541
554
|
@group(0) @binding(1) var<storage, read_write> selectionMask: array<u32>;
|
|
@@ -547,8 +560,9 @@ fn main(
|
|
|
547
560
|
) {
|
|
548
561
|
${getGPUAnalyticsInvocationIndexSource(graph, props.selection.length)}
|
|
549
562
|
if (index < ELEMENT_COUNT) {
|
|
563
|
+
let rank = sourceRanks[RANK_OFFSET + index];
|
|
550
564
|
selectionMask[SELECTION_OFFSET + index] =
|
|
551
|
-
select(0u, 1u,
|
|
565
|
+
select(0u, 1u, rank != 0xffffffffu && rank >= ROW_OFFSET && rank - ROW_OFFSET < ROW_LIMIT);
|
|
552
566
|
}
|
|
553
567
|
}`;
|
|
554
568
|
addGPUAnalyticsComputePass(graph, {
|
|
@@ -75,7 +75,6 @@ export function compileGPUDataFrameGroupedAggregation<
|
|
|
75
75
|
Result,
|
|
76
76
|
CompiledGPUDataFrameGroupedAggregation<Result>
|
|
77
77
|
>(source, predicates, selectedColumns, graph, derivedColumns, {
|
|
78
|
-
allowEmptyPredicates: true,
|
|
79
78
|
prepare: context =>
|
|
80
79
|
addGPUGroupedAggregationToGraph<Selection, Result>(context, key, groupCount, definitions)
|
|
81
80
|
});
|
|
@@ -7,7 +7,7 @@ import type {GPUTypeMap} from '@luma.gl/graph/gpu-tables';
|
|
|
7
7
|
import type {GPUCommandGraph} from '@luma.gl/graph/gpu-core';
|
|
8
8
|
import type {GPUDataFrameDictionary} from './gpu-data-frame';
|
|
9
9
|
import type {GPUDataFrameQuery} from './gpu-data-frame-query';
|
|
10
|
-
import {
|
|
10
|
+
import {getGPUExpressionResultFormats} from './gpu-expression';
|
|
11
11
|
import {
|
|
12
12
|
compileGPUDataFrameGroupedAggregation,
|
|
13
13
|
type CompiledGPUDataFrameGroupedAggregation
|
|
@@ -249,8 +249,10 @@ function getGPUDataFrameQueryColumnFormats<
|
|
|
249
249
|
);
|
|
250
250
|
|
|
251
251
|
for (const definition of query.derivedColumns) {
|
|
252
|
-
const
|
|
253
|
-
|
|
252
|
+
const inferred = getGPUExpressionResultFormats(definition.expression.node, formats)
|
|
253
|
+
.values()
|
|
254
|
+
.next().value;
|
|
255
|
+
formats.set(definition.name, definition.format ?? inferred ?? 'float32');
|
|
254
256
|
}
|
|
255
257
|
|
|
256
258
|
return formats;
|
|
@@ -84,7 +84,6 @@ export function compileGPUDataFrameHistogram<
|
|
|
84
84
|
GPUHistogramResult,
|
|
85
85
|
CompiledGPUDataFrameHistogram
|
|
86
86
|
>(source, predicates, selectedColumns, graph, derivedColumns, {
|
|
87
|
-
allowEmptyPredicates: true,
|
|
88
87
|
prepare: context => addGPUHistogramToGraph(context, column, options)
|
|
89
88
|
});
|
|
90
89
|
}
|
|
@@ -181,7 +181,6 @@ export function compileGPUDataFrameJoin<
|
|
|
181
181
|
Selection,
|
|
182
182
|
CompiledGPUDataFrameJoin<Selection, Right>
|
|
183
183
|
>(source, predicates, selectedColumns, graph, derivedColumns, {
|
|
184
|
-
allowEmptyPredicates: true,
|
|
185
184
|
prepare: context => addGPUJoinToGraph(context, retainedRight, options, joinType)
|
|
186
185
|
});
|
|
187
186
|
} catch (error) {
|
|
@@ -213,7 +212,6 @@ export function compileGPUDataFrameLookup<
|
|
|
213
212
|
Selection,
|
|
214
213
|
CompiledGPUDataFrameLookup<Selection, Right>
|
|
215
214
|
>(source, predicates, selectedColumns, graph, derivedColumns, {
|
|
216
|
-
allowEmptyPredicates: true,
|
|
217
215
|
prepare: context => addGPULookupToGraph(context, retainedRight, options)
|
|
218
216
|
});
|
|
219
217
|
} catch (error) {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
// SPDX-FileComment: Independently implemented for WebGPU; inspired by NVIDIA RAPIDS cuDF.
|
|
5
5
|
|
|
6
|
+
import {GPU_EXPRESSION_CAST_WGSL} from '../gpu-core/gpu-expression-cast';
|
|
6
7
|
import {
|
|
7
8
|
Buffer,
|
|
8
9
|
type Binding,
|
|
@@ -104,7 +105,6 @@ export type GPUDataFrameQueryCompilationExtension<
|
|
|
104
105
|
Result extends GPUTypeMap,
|
|
105
106
|
Compiled extends CompiledGPUDataFrameQuery<Result> = CompiledGPUDataFrameQuery<Result>
|
|
106
107
|
> = {
|
|
107
|
-
allowEmptyPredicates?: boolean;
|
|
108
108
|
prepare: (
|
|
109
109
|
context: GPUDataFrameQueryExtensionContext<Row>
|
|
110
110
|
) => GPUDataFrameQueryExtensionResult<Result, Compiled>;
|
|
@@ -216,8 +216,7 @@ export function compileGPUDataFrameQuery<
|
|
|
216
216
|
retainedSource,
|
|
217
217
|
predicates,
|
|
218
218
|
derivedColumns,
|
|
219
|
-
selectedColumns
|
|
220
|
-
predicates.length === 0 || extension?.allowEmptyPredicates === true
|
|
219
|
+
selectedColumns
|
|
221
220
|
);
|
|
222
221
|
validateGPUQueryBatchCapacity(retainedSource, graph);
|
|
223
222
|
validateGPUQueryBindingCapacity(plan, graph);
|
|
@@ -774,6 +773,7 @@ function addGPUQueryPredicatePass(
|
|
|
774
773
|
const source = /* wgsl */ `
|
|
775
774
|
const ELEMENT_COUNT: u32 = ${props.output.length}u;
|
|
776
775
|
${declarations.join('\n')}
|
|
776
|
+
${props.plan.usesCasts ? GPU_EXPRESSION_CAST_WGSL : ''}
|
|
777
777
|
|
|
778
778
|
@compute @workgroup_size(${LU_QUERY_WORKGROUP_SIZE})
|
|
779
779
|
fn main(
|
|
@@ -96,7 +96,6 @@ export function compileGPUDataFrameSort<Source extends GPUTypeMap, Selection ext
|
|
|
96
96
|
Selection,
|
|
97
97
|
CompiledGPUDataFrameSort<Selection>
|
|
98
98
|
>(source, predicates, selectedColumns, graph, derivedColumns, {
|
|
99
|
-
allowEmptyPredicates: true,
|
|
100
99
|
prepare: context => addGPUBatchSortToGraph(context, column, options)
|
|
101
100
|
});
|
|
102
101
|
}
|
|
@@ -38,6 +38,7 @@ export type GPUDataFrameNormalizedSortOptions = Readonly<{
|
|
|
38
38
|
nans: 'first' | 'last';
|
|
39
39
|
algorithm: 'auto' | 'bitonic' | 'radix';
|
|
40
40
|
limit?: number;
|
|
41
|
+
offset?: number;
|
|
41
42
|
}>;
|
|
42
43
|
|
|
43
44
|
/**
|
|
@@ -66,7 +67,8 @@ export class GPUDataFrameSortQuery<
|
|
|
66
67
|
column: Column,
|
|
67
68
|
options: GPUDataFrameSortOptions = {},
|
|
68
69
|
limit?: number,
|
|
69
|
-
defaultDirection: 'ascending' | 'descending' = 'ascending'
|
|
70
|
+
defaultDirection: 'ascending' | 'descending' = 'ascending',
|
|
71
|
+
offset?: number
|
|
70
72
|
) {
|
|
71
73
|
if (!query.selectedColumns.includes(column)) {
|
|
72
74
|
throw new Error(`GPUDataFrame sort column "${column}" is not selected`);
|
|
@@ -80,7 +82,7 @@ export class GPUDataFrameSortQuery<
|
|
|
80
82
|
|
|
81
83
|
this.query = query;
|
|
82
84
|
this.column = column;
|
|
83
|
-
this.options = normalizeGPUDataFrameSortOptions(options, limit, defaultDirection);
|
|
85
|
+
this.options = normalizeGPUDataFrameSortOptions(options, limit, defaultDirection, offset);
|
|
84
86
|
Object.freeze(this);
|
|
85
87
|
}
|
|
86
88
|
|
|
@@ -121,7 +123,22 @@ export class GPUDataFrameGlobalSortQuery<
|
|
|
121
123
|
override topK(
|
|
122
124
|
limit: number
|
|
123
125
|
): GPUDataFrameGlobalSortQuery<Logical, SelectedColumns, Column, Source> {
|
|
124
|
-
return
|
|
126
|
+
return this.page(this.options.offset ?? 0, limit);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/** Selects a page from the globally sorted rows after filtering. */
|
|
130
|
+
page(
|
|
131
|
+
offset: number,
|
|
132
|
+
limit?: number
|
|
133
|
+
): GPUDataFrameGlobalSortQuery<Logical, SelectedColumns, Column, Source> {
|
|
134
|
+
return new GPUDataFrameGlobalSortQuery(
|
|
135
|
+
this.query,
|
|
136
|
+
this.column,
|
|
137
|
+
this.options,
|
|
138
|
+
limit,
|
|
139
|
+
'ascending',
|
|
140
|
+
offset
|
|
141
|
+
);
|
|
125
142
|
}
|
|
126
143
|
|
|
127
144
|
/** Adds one cross-batch GPU permutation and global selected count to a reusable command graph. */
|
|
@@ -144,7 +161,8 @@ export class GPUDataFrameGlobalSortQuery<
|
|
|
144
161
|
function normalizeGPUDataFrameSortOptions(
|
|
145
162
|
options: GPUDataFrameSortOptions,
|
|
146
163
|
limit: number | undefined,
|
|
147
|
-
defaultDirection: 'ascending' | 'descending'
|
|
164
|
+
defaultDirection: 'ascending' | 'descending',
|
|
165
|
+
offset?: number
|
|
148
166
|
): GPUDataFrameNormalizedSortOptions {
|
|
149
167
|
if (!options || typeof options !== 'object') {
|
|
150
168
|
throw new Error('GPUDataFrame sorting options must be an object');
|
|
@@ -173,11 +191,19 @@ function normalizeGPUDataFrameSortOptions(
|
|
|
173
191
|
throw new Error('GPUDataFrame top-K limits require a nonnegative uint32 count');
|
|
174
192
|
}
|
|
175
193
|
|
|
194
|
+
if (
|
|
195
|
+
offset !== undefined &&
|
|
196
|
+
(!Number.isSafeInteger(offset) || offset < 0 || offset > MAXIMUM_UINT32)
|
|
197
|
+
) {
|
|
198
|
+
throw new Error('GPUDataFrame page offsets require a nonnegative uint32 count');
|
|
199
|
+
}
|
|
200
|
+
|
|
176
201
|
return Object.freeze({
|
|
177
202
|
direction,
|
|
178
203
|
nulls,
|
|
179
204
|
nans,
|
|
180
205
|
algorithm,
|
|
181
|
-
...(limit === undefined ? {} : {limit})
|
|
206
|
+
...(limit === undefined ? {} : {limit}),
|
|
207
|
+
...(offset ? {offset} : {})
|
|
182
208
|
});
|
|
183
209
|
}
|
|
@@ -48,12 +48,25 @@ export type {
|
|
|
48
48
|
GPUDataFrameJoinType,
|
|
49
49
|
GPUDataFrameLookupOptions
|
|
50
50
|
} from './gpu-join-query';
|
|
51
|
-
export {
|
|
51
|
+
export {
|
|
52
|
+
and,
|
|
53
|
+
caseWhen,
|
|
54
|
+
coalesce,
|
|
55
|
+
column,
|
|
56
|
+
literal,
|
|
57
|
+
GPUExpression,
|
|
58
|
+
not,
|
|
59
|
+
nullIf,
|
|
60
|
+
or,
|
|
61
|
+
parameter,
|
|
62
|
+
scalarFunction
|
|
63
|
+
} from './gpu-expression';
|
|
52
64
|
export type {
|
|
53
65
|
GPUExpressionBinaryOperator,
|
|
54
66
|
GPUExpressionNode,
|
|
55
67
|
GPUExpressionUnaryOperator,
|
|
56
|
-
GPUExpressionValue
|
|
68
|
+
GPUExpressionValue,
|
|
69
|
+
GPUScalarFunction
|
|
57
70
|
} from './gpu-expression';
|
|
58
71
|
export {CompiledGPUDataFrameQuery} from './gpu-query-compiler';
|
|
59
72
|
export type {GPUDataFrameQueryParameters} from './gpu-query-compiler';
|
|
@@ -63,3 +76,14 @@ export {CompiledGPUDataFrameHistogram} from './gpu-histogram-compiler';
|
|
|
63
76
|
export {CompiledGPUDataFrameSort} from './gpu-sort-compiler';
|
|
64
77
|
export {CompiledGPUDataFrameGlobalSort} from './gpu-global-sort-compiler';
|
|
65
78
|
export {CompiledGPUDataFrameJoin, CompiledGPUDataFrameLookup} from './gpu-join-compiler';
|
|
79
|
+
|
|
80
|
+
export {vector, cast} from './gpu-expression';
|
|
81
|
+
export type {GPUExpressionNumericValue} from './gpu-expression';
|
|
82
|
+
export type {
|
|
83
|
+
GPUVectorWGSLFormat as GPUExpressionNumericFormat,
|
|
84
|
+
GPUVectorWGSLScalarFormat as GPUExpressionScalarFormat
|
|
85
|
+
} from '@luma.gl/graph/gpu-data';
|
|
86
|
+
export {
|
|
87
|
+
makeGPUExpressionFromPortableAST,
|
|
88
|
+
makeGPUPredicateFromPortableAST
|
|
89
|
+
} from './portable-expression';
|
|
@@ -0,0 +1,194 @@
|
|
|
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 cuDF.
|
|
5
|
+
|
|
6
|
+
import {validateExpressionAST, type Expression} from '@math.gl/sql/expressions';
|
|
7
|
+
import {
|
|
8
|
+
GPUExpression,
|
|
9
|
+
isBooleanExpressionNode,
|
|
10
|
+
isGPUScalarFunction,
|
|
11
|
+
makeGPUCastNode,
|
|
12
|
+
type GPUExpressionNode,
|
|
13
|
+
type GPUExpressionBinaryOperator,
|
|
14
|
+
type GPUExpressionNumericValue
|
|
15
|
+
} from './gpu-expression';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Converts the supported subset of math.gl's portable AST into a DataFrame expression.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* import {parseSQLExpression} from '@math.gl/sql/parser';
|
|
23
|
+
*
|
|
24
|
+
* const position = makeGPUExpressionFromPortableAST(
|
|
25
|
+
* parseSQLExpression('ARRAY[x,y,z]::REAL[3]')
|
|
26
|
+
* );
|
|
27
|
+
* const query = frame.withColumn('position', position, {format: 'float32x3'});
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export function makeGPUExpressionFromPortableAST(
|
|
31
|
+
expression: Expression
|
|
32
|
+
): GPUExpression<GPUExpressionNumericValue | boolean> {
|
|
33
|
+
return new GPUExpression(convertPortableExpression(expression));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Converts a portable AST and requires a boolean result for use as a DataFrame predicate. */
|
|
37
|
+
export function makeGPUPredicateFromPortableAST(expression: Expression): GPUExpression<boolean> {
|
|
38
|
+
const node = convertPortableExpression(expression);
|
|
39
|
+
if (!isBooleanExpressionNode(node)) {
|
|
40
|
+
throw new Error('Expected a boolean portable GPU dataframe expression');
|
|
41
|
+
}
|
|
42
|
+
return new GPUExpression(node);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function convertPortableExpression(expression: Expression): GPUExpressionNode {
|
|
46
|
+
validateExpressionAST(expression);
|
|
47
|
+
return lowerPortableExpression(expression);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const binaryOperators: Readonly<Record<string, GPUExpressionBinaryOperator>> = {
|
|
51
|
+
'+': 'add',
|
|
52
|
+
'-': 'subtract',
|
|
53
|
+
'*': 'multiply',
|
|
54
|
+
'/': 'divide',
|
|
55
|
+
'==': 'equal',
|
|
56
|
+
'===': 'equal',
|
|
57
|
+
'!=': 'not-equal',
|
|
58
|
+
'!==': 'not-equal',
|
|
59
|
+
'>': 'greater-than',
|
|
60
|
+
'>=': 'greater-than-or-equal',
|
|
61
|
+
'<': 'less-than',
|
|
62
|
+
'<=': 'less-than-or-equal',
|
|
63
|
+
'&&': 'and',
|
|
64
|
+
'||': 'or'
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/** Lowers one validated portable node and rejects unsupported operations. */
|
|
68
|
+
export function lowerPortableExpression(
|
|
69
|
+
expression: Expression,
|
|
70
|
+
resolveLeaf?: (expression: Expression) => GPUExpressionNode | undefined
|
|
71
|
+
): GPUExpressionNode {
|
|
72
|
+
const resolved = resolveLeaf?.(expression);
|
|
73
|
+
if (resolved) return resolved;
|
|
74
|
+
const convert = (child: Expression) => lowerPortableExpression(child, resolveLeaf);
|
|
75
|
+
// math.gl's public parser type includes nonportable nodes; validation above narrows at runtime.
|
|
76
|
+
const node = expression as any;
|
|
77
|
+
switch (node.type) {
|
|
78
|
+
case 'Identifier':
|
|
79
|
+
return {kind: 'column', name: node.name};
|
|
80
|
+
case 'Literal':
|
|
81
|
+
if (
|
|
82
|
+
node.value === null ||
|
|
83
|
+
typeof node.value === 'boolean' ||
|
|
84
|
+
(typeof node.value === 'number' && Number.isFinite(node.value))
|
|
85
|
+
)
|
|
86
|
+
return {kind: 'literal', value: node.value};
|
|
87
|
+
break;
|
|
88
|
+
case 'UnaryExpression':
|
|
89
|
+
if (node.operator === '-' || node.operator === '!')
|
|
90
|
+
return {
|
|
91
|
+
kind: 'unary',
|
|
92
|
+
operator: node.operator === '-' ? 'negate' : 'not',
|
|
93
|
+
operand: convert(node.argument)
|
|
94
|
+
};
|
|
95
|
+
break;
|
|
96
|
+
case 'BinaryExpression':
|
|
97
|
+
case 'LogicalExpression': {
|
|
98
|
+
const operator = binaryOperators[node.operator];
|
|
99
|
+
if (operator)
|
|
100
|
+
return {kind: 'binary', operator, left: convert(node.left), right: convert(node.right)};
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
case 'ConditionalExpression':
|
|
104
|
+
return {
|
|
105
|
+
kind: 'conditional',
|
|
106
|
+
condition: convert(node.test),
|
|
107
|
+
whenTrue: convert(node.consequent),
|
|
108
|
+
otherwise: convert(node.alternate)
|
|
109
|
+
};
|
|
110
|
+
case 'CallExpression': {
|
|
111
|
+
const name = node.callee.name;
|
|
112
|
+
const functionName = node.sqlFunction === true ? name.toLowerCase() : name;
|
|
113
|
+
if (functionName === 'coalesce' || functionName === 'nullif') {
|
|
114
|
+
const count = node.arguments.length;
|
|
115
|
+
if (functionName === 'nullif' ? count !== 2 : count < 2 || count > 64) {
|
|
116
|
+
throw new Error(
|
|
117
|
+
'GPU DataFrame NULLIF requires two arguments and COALESCE requires 2–64 arguments'
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
const arguments_: GPUExpressionNode[] = node.arguments.map(convert);
|
|
121
|
+
return arguments_.reduceRight((right, left) => ({
|
|
122
|
+
kind: 'binary',
|
|
123
|
+
operator: functionName,
|
|
124
|
+
left,
|
|
125
|
+
right
|
|
126
|
+
}));
|
|
127
|
+
}
|
|
128
|
+
if (isGPUScalarFunction(functionName)) {
|
|
129
|
+
if (node.arguments.length !== 1) {
|
|
130
|
+
throw new Error(`GPU DataFrame ${name} requires one argument`);
|
|
131
|
+
}
|
|
132
|
+
return {kind: 'unary', operator: functionName, operand: convert(node.arguments[0])};
|
|
133
|
+
}
|
|
134
|
+
if ((name === 'isNull' || name === 'isNotNull') && node.arguments.length === 1) {
|
|
135
|
+
return {
|
|
136
|
+
kind: 'unary',
|
|
137
|
+
operator: name === 'isNull' ? 'is-null' : 'is-valid',
|
|
138
|
+
operand: convert(node.arguments[0])
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
if (name === 'in') {
|
|
142
|
+
const [subject, ...arguments_] = node.arguments as Expression[];
|
|
143
|
+
if (arguments_.length === 0 || arguments_.length > 64) {
|
|
144
|
+
throw new Error('GPU dataframe IN requires between 1 and 64 candidates');
|
|
145
|
+
}
|
|
146
|
+
const value = convert(subject);
|
|
147
|
+
const candidates = arguments_.map(convert);
|
|
148
|
+
if (
|
|
149
|
+
value.kind !== 'column' ||
|
|
150
|
+
candidates.some(
|
|
151
|
+
candidate => candidate.kind !== 'literal' && candidate.kind !== 'parameter'
|
|
152
|
+
)
|
|
153
|
+
) {
|
|
154
|
+
throw new Error('GPU dataframe IN requires a column and literal or parameter candidates');
|
|
155
|
+
}
|
|
156
|
+
return makeMembershipPredicate(value, candidates);
|
|
157
|
+
}
|
|
158
|
+
if (name === 'array_float32' && [2, 3, 4].includes(node.arguments.length)) {
|
|
159
|
+
return {
|
|
160
|
+
kind: 'vector',
|
|
161
|
+
format: `float32x${node.arguments.length}` as 'float32x2' | 'float32x3' | 'float32x4',
|
|
162
|
+
components: node.arguments.map(convert)
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
if (name === 'cast' && node.arguments.length === 2 && node.arguments[1].type === 'Literal') {
|
|
166
|
+
const target = node.arguments[1].value;
|
|
167
|
+
if (target === 'float32' || target === 'int32' || target === 'uint32')
|
|
168
|
+
return makeGPUCastNode(
|
|
169
|
+
convert(node.arguments[0]),
|
|
170
|
+
target === 'int32' ? 'sint32' : target
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
throw new Error('Unsupported portable GPU dataframe expression');
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/** Balanced OR preserves three-valued comparisons and bounds tree depth. */
|
|
180
|
+
function makeMembershipPredicate(
|
|
181
|
+
value: GPUExpressionNode,
|
|
182
|
+
candidates: readonly GPUExpressionNode[]
|
|
183
|
+
): GPUExpressionNode {
|
|
184
|
+
if (candidates.length === 1) {
|
|
185
|
+
return {kind: 'binary', operator: 'equal', left: value, right: candidates[0]};
|
|
186
|
+
}
|
|
187
|
+
const middle = Math.floor(candidates.length / 2);
|
|
188
|
+
return {
|
|
189
|
+
kind: 'binary',
|
|
190
|
+
operator: 'or',
|
|
191
|
+
left: makeMembershipPredicate(value, candidates.slice(0, middle)),
|
|
192
|
+
right: makeMembershipPredicate(value, candidates.slice(middle))
|
|
193
|
+
};
|
|
194
|
+
}
|
package/src/gpu-graph/index.ts
CHANGED
|
@@ -74,3 +74,20 @@ export type {
|
|
|
74
74
|
} from '../gpu-core/gpu-operation-contract';
|
|
75
75
|
|
|
76
76
|
export {CompiledGPUGraph, PreparedGPUGraphExecution} from '../gpu-core/compiled-gpu-graph';
|
|
77
|
+
|
|
78
|
+
export {GPUCPUOperation} from '../gpu-core/gpu-cpu-operation';
|
|
79
|
+
export type {
|
|
80
|
+
GPUCPUOperationProps,
|
|
81
|
+
GPUCPUArray,
|
|
82
|
+
GPUCPUVector,
|
|
83
|
+
GPUCPUResult
|
|
84
|
+
} from '../gpu-core/gpu-cpu-operation';
|
|
85
|
+
|
|
86
|
+
export {
|
|
87
|
+
GPUGraphGroupAggregation,
|
|
88
|
+
GPUGraphReduction
|
|
89
|
+
} from '../gpu-core/gpu-semantic-aggregation-operation';
|
|
90
|
+
export type {
|
|
91
|
+
GPUGraphGroupAggregationProps,
|
|
92
|
+
GPUGraphReductionProps
|
|
93
|
+
} from '../gpu-core/gpu-semantic-aggregation-operation';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
// SPDX-FileComment: Independently implemented for WebGPU; inspired by NVIDIA RAPIDS cuGraph.
|
|
5
5
|
|
|
6
|
+
import {GPU_GRID_COORDINATE_WGSL} from '../gpu-core/gpu-grid-coordinate';
|
|
6
7
|
import {addGPUCommandNodes} from '@luma.gl/graph/gpu-core';
|
|
7
8
|
import {type Binding} from '@luma.gl/core';
|
|
8
9
|
import {Kernel} from '../execution/compute/kernel';
|
|
@@ -423,21 +424,7 @@ const CELL_CENTERS_OFFSET: u32 = ${getViewElementOffset(state.cellCenters)}u;
|
|
|
423
424
|
const VALIDITY_OFFSET: u32 = ${getViewElementOffset(state.validity)}u;
|
|
424
425
|
${getBindingDeclarations(bindings)}
|
|
425
426
|
|
|
426
|
-
|
|
427
|
-
if (maximum == minimum || value == minimum) { return 0u; }
|
|
428
|
-
if (value == maximum) { return size - 1u; }
|
|
429
|
-
if (minimum < 0.0 && maximum > 0.0) {
|
|
430
|
-
let scale = max(abs(minimum), abs(maximum));
|
|
431
|
-
let scaledValue = value / scale;
|
|
432
|
-
let scaledMinimum = minimum / scale;
|
|
433
|
-
let scaledMaximum = maximum / scale;
|
|
434
|
-
return min(
|
|
435
|
-
u32((scaledValue - scaledMinimum) / (scaledMaximum - scaledMinimum) * f32(size)),
|
|
436
|
-
size - 1u
|
|
437
|
-
);
|
|
438
|
-
}
|
|
439
|
-
return min(u32((value - minimum) / (maximum - minimum) * f32(size)), size - 1u);
|
|
440
|
-
}
|
|
427
|
+
${GPU_GRID_COORDINATE_WGSL}
|
|
441
428
|
|
|
442
429
|
fn readPosition(vertex: u32) -> vec2<f32> {
|
|
443
430
|
let positionOffset = POSITIONS_OFFSET + vertex * 2u;
|