@luma.gl/graph 10.0.0-alpha.8 → 10.0.0-beta.1
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/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 +1 -16
- package/dist/gpu-dataframe/gpu-data-frame-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame-query.js +1 -23
- package/dist/gpu-dataframe/gpu-data-frame-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-expression.cjs +91 -2
- package/dist/gpu-dataframe/gpu-expression.d.ts +37 -0
- package/dist/gpu-dataframe/gpu-expression.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-expression.js +106 -0
- package/dist/gpu-dataframe/gpu-expression.js.map +1 -1
- package/dist/gpu-dataframe/index.cjs +12 -2
- package/dist/gpu-dataframe/index.cjs.map +3 -3
- package/dist/gpu-dataframe/index.d.ts +4 -0
- package/dist/gpu-dataframe/index.d.ts.map +1 -1
- package/dist/gpu-dataframe/index.js +2 -0
- package/dist/gpu-dataframe/index.js.map +1 -1
- package/dist/gpu-dataframe/portable-expression.cjs +103 -0
- package/dist/gpu-dataframe/portable-expression.d.ts +19 -0
- package/dist/gpu-dataframe/portable-expression.d.ts.map +1 -0
- package/dist/gpu-dataframe/portable-expression.js +98 -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-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-h3/index.cjs.map +1 -1
- package/dist/gpu-physics/gpu-rigid-body-world.cjs +162 -2
- package/dist/gpu-physics/gpu-rigid-body-world.d.ts +25 -0
- package/dist/gpu-physics/gpu-rigid-body-world.d.ts.map +1 -1
- package/dist/gpu-physics/gpu-rigid-body-world.js +181 -2
- package/dist/gpu-physics/gpu-rigid-body-world.js.map +1 -1
- package/dist/gpu-physics/index.cjs.map +2 -2
- package/dist/gpu-physics/index.d.ts +1 -0
- package/dist/gpu-physics/index.d.ts.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-shaders.cjs +2 -2
- 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 +2 -2
- package/dist/gpu-physics/rigid-body-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-vehicle.cjs +90 -0
- package/dist/gpu-physics/rigid-body-vehicle.d.ts +35 -0
- package/dist/gpu-physics/rigid-body-vehicle.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-vehicle.js +66 -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 +2 -2
- 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-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.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 +6 -0
- 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/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-sql/gpu-sql.cjs +376 -0
- package/dist/gpu-sql/gpu-sql.d.ts +36 -0
- package/dist/gpu-sql/gpu-sql.d.ts.map +1 -0
- package/dist/gpu-sql/gpu-sql.js +374 -0
- package/dist/gpu-sql/gpu-sql.js.map +1 -0
- package/dist/gpu-sql/index.cjs +5 -5
- package/dist/gpu-sql/index.cjs.map +3 -3
- package/dist/gpu-sql/index.d.ts +2 -2
- package/dist/gpu-sql/index.d.ts.map +1 -1
- package/dist/gpu-sql/index.js +1 -1
- package/dist/gpu-sql/index.js.map +1 -1
- 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 +21 -7
- 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/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 +6 -26
- package/src/gpu-dataframe/gpu-expression.ts +135 -0
- package/src/gpu-dataframe/index.ts +11 -0
- package/src/gpu-dataframe/portable-expression.ts +117 -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-physics/gpu-rigid-body-world.ts +227 -2
- package/src/gpu-physics/index.ts +1 -0
- package/src/gpu-physics/rigid-body-parallel-shaders.ts +32 -9
- package/src/gpu-physics/rigid-body-shaders.ts +3 -2
- package/src/gpu-physics/rigid-body-vehicle.ts +99 -0
- package/src/gpu-project/README.md +4 -4
- 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/geoarrow.ts +11 -0
- package/src/gpu-project/graph.ts +10 -0
- package/src/gpu-project/index.ts +2 -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.ts +163 -19
- package/src/gpu-simple-graph/index.ts +1 -0
- package/src/gpu-simple-graph/operation/gpu-data-evaluator.ts +24 -0
- package/src/gpu-simple-graph/operation/gpu-vector-evaluator.ts +7 -0
- 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/webgpu/convert-colors.ts +47 -13
- package/src/gpu-sql/gpu-sql.ts +494 -0
- package/src/gpu-sql/index.ts +2 -2
- package/src/gpu-tables/table/gpu-table.ts +2 -1
- package/src/index.ts +21 -0
- package/dist/gpu-sql/lu-sql.cjs +0 -499
- package/dist/gpu-sql/lu-sql.d.ts +0 -36
- package/dist/gpu-sql/lu-sql.d.ts.map +0 -1
- package/dist/gpu-sql/lu-sql.js +0 -497
- package/dist/gpu-sql/lu-sql.js.map +0 -1
- package/src/gpu-sql/lu-sql.ts +0 -599
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { GPUCommandGraph, CompiledGPUCommandGraph, GPUCommandGraphEncoding, GPUCommandGraphExecution, getGPUCommandGraphExecutionPlan, GraphBufferHandle, GraphDataView, GraphExternalTextureHandle, GraphTextureHandle, GraphTextureView, GraphVectorView, composite, GPUGraph, GPUGraphScalar, GPUGraphVector, GPUGraphTexture, GPUGraphTextureView, type GPUGraphScalarFormat, type GPUGraphVectorFormat, type GPUGraphTextureProps, GPUGraphCompiler, type GPUGraphBindings, type GPUGraphCompilation, type GPUGraphLoweredNode, type GPUGraphLoweringReport, type GPUOperationLowering, type GPUOperationLowerer, type GPUOperationLoweringContext, type GPUOperationLoweringDecision, type GPUGraphBackendCapabilities, inspectGPUGraphCompilation, type GPUGraphCompilationSummary, validateGPUGraph, type GPUGraphValidationIssue, type GPUGraphValidationReport, type GPUCommandGraphCompileContext, type GPUCommandGraphCapabilities, type GPUCommandGraphCPUCondition, type GPUCommandGraphComputeExecutable, type GPUCommandGraphComputeNode, type GPUCommandGraphCopyExecutable, type GPUCommandGraphCopyNode, type GPUCommandGraphEncodeContext, type GPUCommandGraphEncodeOptions, type GPUCommandGraphGPUIndirectCondition, type GPUCommandGraphNode, type GPUCommandGraphNodeCondition, type GPUCommandGraphNodeConditionPreflight, type GPUCommandGraphNodeEncodingStats, type GPUCommandGraphNodePreflight, type GPUCommandGraphResourceSummary, type GPUCommandGraphNodePublication, type GPUCommandGraphNodeTiming, type GPUCommandGraphNodeType, type GPUCommandGraphNodeWorkloadEstimate, type GPUCommandGraphPreflightReport, type GPUCommandGraphRenderExecutable, type GPUCommandGraphRenderNode, type GPUCommandGraphStats, type GPUCommandGraphEncodingStats, type GPUCommandGraphTimingReport, type GraphBufferDescriptor, type GraphBufferUsage, type GraphBufferUse, type GraphExternalTextureBinding, type GraphExternalTextureDescriptor, type GraphExternalTextureUse, type GraphFrameTextureBinding, type GraphImportedBuffer, type GraphImportedTexture, type GraphRenderPassAttachments, type GraphResourceUse, type GraphTextureAspect, type GraphTextureDescriptor, type GraphTextureDimension, type GraphTextureUsage, type GraphTextureUse, type GraphTextureViewProps, type GPUCommandGraphExecutionBudget, type GPUCommandGraphExecutionLatencyPriority, type GPUCommandGraphExecutionPublicationPolicy, type GPUCommandGraphExecutionOptions, type GPUCommandGraphExecutionPlanStep, type GPUCommandGraphExecutionPlan, type GPUCommandGraphExecutionStep } from "./gpu-graph/index.js";
|
|
1
|
+
export { GPUCommandGraph, CompiledGPUCommandGraph, GPUCommandGraphEncoding, GPUCommandGraphExecution, getGPUCommandGraphExecutionPlan, GraphBufferHandle, GraphDataView, GraphExternalTextureHandle, GraphTextureHandle, GraphTextureView, GraphVectorView, composite, GPUGraph, GPUGraphScalar, GPUGraphVector, GPUGraphTexture, GPUGraphTextureView, type GPUGraphScalarFormat, type GPUGraphVectorFormat, type GPUGraphTextureProps, GPUGraphCompiler, type GPUGraphBindings, type GPUGraphCompilation, type GPUGraphLoweredNode, type GPUGraphLoweringReport, type GPUOperationLowering, type GPUOperationLowerer, type GPUOperationLoweringContext, type GPUOperationLoweringDecision, type GPUGraphBackendCapabilities, inspectGPUGraphCompilation, type GPUGraphCompilationSummary, validateGPUGraph, type GPUGraphValidationIssue, type GPUGraphValidationReport, type GPUCommandGraphCompileContext, type GPUCommandGraphCapabilities, type GPUCommandGraphCPUCondition, type GPUCommandGraphComputeExecutable, type GPUCommandGraphComputeNode, type GPUCommandGraphCopyExecutable, type GPUCommandGraphCopyNode, type GPUCommandGraphEncodeContext, type GPUCommandGraphEncodeOptions, type GPUCommandGraphGPUIndirectCondition, type GPUCommandGraphNode, type GPUCommandGraphNodeCondition, type GPUCommandGraphNodeConditionPreflight, type GPUCommandGraphNodeEncodingStats, type GPUCommandGraphNodePreflight, type GPUCommandGraphCompileOptions, type GPUCommandGraphKernelMetadata, type GPUCommandGraphResourceSummary, type GPUCommandGraphNodePublication, type GPUCommandGraphNodeTiming, type GPUCommandGraphNodeType, type GPUCommandGraphNodeWorkloadEstimate, type GPUCommandGraphPreflightReport, type GPUCommandGraphRenderExecutable, type GPUCommandGraphRenderNode, type GPUCommandGraphStats, type GPUCommandGraphEncodingStats, type GPUCommandGraphTimingReport, type GraphBufferDescriptor, type GraphBufferUsage, type GraphBufferUse, type GraphExternalTextureBinding, type GraphExternalTextureDescriptor, type GraphExternalTextureUse, type GraphFrameTextureBinding, type GraphImportedBuffer, type GraphImportedTexture, type GraphRenderPassAttachments, type GraphResourceUse, type GraphTextureAspect, type GraphTextureDescriptor, type GraphTextureDimension, type GraphTextureUsage, type GraphTextureUse, type GraphTextureViewProps, type GPUCommandGraphExecutionBudget, type GPUCommandGraphExecutionLatencyPriority, type GPUCommandGraphExecutionPublicationPolicy, type GPUCommandGraphExecutionOptions, type GPUCommandGraphExecutionPlanStep, type GPUCommandGraphExecutionPlan, type GPUCommandGraphExecutionStep } from "./gpu-graph/index.js";
|
|
2
2
|
export { getGPUCommandGraphAdapterIdentity, type GPUCommandGraphAdapterIdentity, type GPUCommandGraphKernelCandidate, type GPUCommandGraphKernelCalibration, type GPUCommandGraphAutotuningProfile, type GPUCommandGraphAutotunerProps, type GPUCommandGraphKernelSelectionRequest, type GPUCommandGraphKernelSelection, type GPUCommandGraphKernelObservation, GPUCommandGraphAutotuner } from "./gpu-core/gpu-command-graph-autotuner.js";
|
|
3
3
|
export { type GPUCommandGraphExecutionBudgetControllerProps, type GPUCommandGraphExecutionBudgetObservation, GPUCommandGraphExecutionBudgetController } from "./gpu-core/gpu-command-graph-budget-controller.js";
|
|
4
4
|
export { type GPUCommandGraphInspectorGraph, type GPUCommandGraphInspectorEncoding, type GPUCommandGraphInspectorObservableGraph, type GPUCommandGraphInspectorObservation, type GPUCommandGraphInspectorNodeIdentity, type GPUCommandGraphInspectorProps, type GPUCommandGraphInspectorDurationSnapshot, type GPUCommandGraphInspectorCounterSnapshot, type GPUCommandGraphInspectorNodeSnapshot, type GPUCommandGraphInspectorStatsSnapshot, type GPUCommandGraphInspectorGraphSnapshot, type GPUCommandGraphInspectorSnapshot, GPUCommandGraphInspector } from "./gpu-core/gpu-command-graph-inspector.js";
|
|
@@ -24,9 +24,15 @@ export type { GPUGraphScalarDescriptor, GPUGraphVectorDescriptor, GPUGraphValueD
|
|
|
24
24
|
export type { GPUGraphExecutionBindings } from "./gpu-core/gpu-expression-plan.js";
|
|
25
25
|
export type { GPUOperationOutputDeclarations, GPUOperationContractContext } from "./gpu-core/gpu-operation-contract.js";
|
|
26
26
|
export { GPUUploadOperation, GPUCopyOperation } from "./gpu-core/gpu-transfer-operation.js";
|
|
27
|
+
export { GPUShaderPassOperation } from "./gpu-core/gpu-shader-pass-operation.js";
|
|
28
|
+
export type { GPUShaderPassOperationProps } from "./gpu-core/gpu-shader-pass-operation.js";
|
|
27
29
|
export type { GPUUploadOperationProps, GPUCopyOperationProps } from "./gpu-core/gpu-transfer-operation.js";
|
|
28
30
|
export { GPUCompactionOperation } from "./gpu-core/gpu-compaction-operation.js";
|
|
29
31
|
export type { GPUCompactionOperationProps } from "./gpu-core/gpu-compaction-operation.js";
|
|
30
32
|
export type { GPUGraphTextureDescriptor, GPUGraphTextureExtent } from "./gpu-core/gpu-graph-value.js";
|
|
31
33
|
export type { GPUGraphTextureBinding, GPUGraphOutput, GPUGraphOutputs } from "./gpu-core/gpu-texture-plan.js";
|
|
34
|
+
export { GPUCPUOperation } from "./gpu-core/gpu-cpu-operation.js";
|
|
35
|
+
export type { GPUCPUOperationProps, GPUCPUArray, GPUCPUVector, GPUCPUResult } from "./gpu-core/gpu-cpu-operation.js";
|
|
36
|
+
export { GPUGraphGroupAggregation, GPUGraphReduction } from "./gpu-core/gpu-semantic-aggregation-operation.js";
|
|
37
|
+
export type { GPUGraphGroupAggregationProps, GPUGraphReductionProps } from "./gpu-core/gpu-semantic-aggregation-operation.js";
|
|
32
38
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,+BAA+B,EAC/B,iBAAiB,EACjB,aAAa,EACb,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,QAAQ,EACR,cAAc,EACd,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,gBAAgB,EAChB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,0BAA0B,EAC1B,KAAK,0BAA0B,EAC/B,gBAAgB,EAChB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,mCAAmC,EACxC,KAAK,mBAAmB,EACxB,KAAK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BAAuB,EACxB,6CAA0C;AAC3C,YAAY,EAAC,YAAY,EAAC,oCAAiC;AAE3D,OAAO,EAAC,QAAQ,EAAC,sCAAmC;AACpD,YAAY,EACV,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,iBAAiB,EAClB,sCAAmC;AACpC,YAAY,EAAC,yBAAyB,EAAC,0CAAuC;AAC9E,YAAY,EACV,8BAA8B,EAC9B,2BAA2B,EAC5B,6CAA0C;AAE3C,OAAO,EAAC,kBAAkB,EAAE,gBAAgB,EAAC,6CAA0C;AACvF,OAAO,EAAC,sBAAsB,EAAC,gDAA6C;AAC5E,YAAY,EAAC,2BAA2B,EAAC,gDAA6C;AACtF,YAAY,EACV,uBAAuB,EACvB,qBAAqB,EACtB,6CAA0C;AAC3C,OAAO,EAAC,sBAAsB,EAAC,+CAA4C;AAC3E,YAAY,EAAC,2BAA2B,EAAC,+CAA4C;AAErF,YAAY,EAAC,yBAAyB,EAAE,qBAAqB,EAAC,sCAAmC;AACjG,YAAY,EACV,sBAAsB,EACtB,cAAc,EACd,eAAe,EAChB,uCAAoC;AAErC,OAAO,EAAC,eAAe,EAAC,wCAAqC;AAC7D,YAAY,EACV,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,YAAY,EACb,wCAAqC;AAEtC,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EAClB,yDAAsD;AACvD,YAAY,EACV,6BAA6B,EAC7B,sBAAsB,EACvB,yDAAsD"}
|
package/dist/index.js
CHANGED
|
@@ -14,5 +14,8 @@ export { GPUExpressionOperation } from "./gpu-core/gpu-expression-operation.js";
|
|
|
14
14
|
export { CompiledGPUGraph, PreparedGPUGraphExecution } from "./gpu-core/compiled-gpu-graph.js";
|
|
15
15
|
export { gpuGraph } from "./gpu-core/gpu-graph-value.js";
|
|
16
16
|
export { GPUUploadOperation, GPUCopyOperation } from "./gpu-core/gpu-transfer-operation.js";
|
|
17
|
+
export { GPUShaderPassOperation } from "./gpu-core/gpu-shader-pass-operation.js";
|
|
17
18
|
export { GPUCompactionOperation } from "./gpu-core/gpu-compaction-operation.js";
|
|
19
|
+
export { GPUCPUOperation } from "./gpu-core/gpu-cpu-operation.js";
|
|
20
|
+
export { GPUGraphGroupAggregation, GPUGraphReduction } from "./gpu-core/gpu-semantic-aggregation-operation.js";
|
|
18
21
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,+BAA+B;AAC/B,4DAA4D;AAE5D,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,+BAA+B,EAC/B,iBAAiB,EACjB,aAAa,EACb,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,QAAQ,EACR,cAAc,EACd,cAAc,EACd,eAAe,EACf,mBAAmB,EAInB,gBAAgB,EAUhB,0BAA0B,EAE1B,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,+BAA+B;AAC/B,4DAA4D;AAE5D,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,+BAA+B,EAC/B,iBAAiB,EACjB,aAAa,EACb,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,QAAQ,EACR,cAAc,EACd,cAAc,EACd,eAAe,EACf,mBAAmB,EAInB,gBAAgB,EAUhB,0BAA0B,EAE1B,gBAAgB,EAuDjB,6BAA0B;AAC3B,OAAO,EACL,iCAAiC,EASjC,wBAAwB,EACzB,kDAA+C;AAChD,OAAO,EAGL,wCAAwC,EACzC,0DAAuD;AACxD,OAAO,EAaL,wBAAwB,EACzB,kDAA+C;AAchD,OAAO,EAAC,cAAc,EAAC,uDAAoD;AAU3E,OAAO,EAAC,aAAa,EAAC,qDAAkD;AACxE,OAAO,EAAC,eAAe,EAAC,+CAA4C;AAMpE,OAAO,EAAC,MAAM,EAAC,sCAAmC;AAClD,OAAO,EAAC,YAAY,EAAC,6CAA0C;AAO/D,OAAO,EAAC,sBAAsB,EAAC,+CAA4C;AAK3E,OAAO,EAAC,gBAAgB,EAAE,yBAAyB,EAAC,yCAAsC;AAe1F,OAAO,EAAC,QAAQ,EAAC,sCAAmC;AAapD,OAAO,EAAC,kBAAkB,EAAE,gBAAgB,EAAC,6CAA0C;AACvF,OAAO,EAAC,sBAAsB,EAAC,gDAA6C;AAM5E,OAAO,EAAC,sBAAsB,EAAC,+CAA4C;AAU3E,OAAO,EAAC,eAAe,EAAC,wCAAqC;AAQ7D,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EAClB,yDAAsD"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "10.0.0-
|
|
6
|
+
"version": "10.0.0-beta.1",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"repository": {
|
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
"src",
|
|
24
24
|
"dist",
|
|
25
25
|
"dist.min.js",
|
|
26
|
-
"README.md"
|
|
26
|
+
"README.md",
|
|
27
|
+
"LICENSE",
|
|
28
|
+
"THIRD-PARTY-NOTICES.md"
|
|
27
29
|
],
|
|
28
30
|
"sideEffects": false,
|
|
29
31
|
"scripts": {
|
|
@@ -138,6 +140,16 @@
|
|
|
138
140
|
"import": "./dist/gpu-project/benchmarks.js",
|
|
139
141
|
"require": "./dist/gpu-project/benchmarks.cjs"
|
|
140
142
|
},
|
|
143
|
+
"./gpu-project/geoarrow": {
|
|
144
|
+
"types": "./dist/gpu-project/geoarrow.d.ts",
|
|
145
|
+
"import": "./dist/gpu-project/geoarrow.js",
|
|
146
|
+
"require": "./dist/gpu-project/geoarrow.cjs"
|
|
147
|
+
},
|
|
148
|
+
"./gpu-project/graph": {
|
|
149
|
+
"types": "./dist/gpu-project/graph.d.ts",
|
|
150
|
+
"import": "./dist/gpu-project/graph.js",
|
|
151
|
+
"require": "./dist/gpu-project/graph.cjs"
|
|
152
|
+
},
|
|
141
153
|
"./gpu-project/crs": {
|
|
142
154
|
"types": "./dist/gpu-project/crs.d.ts",
|
|
143
155
|
"import": "./dist/gpu-project/crs.js",
|
|
@@ -230,8 +242,8 @@
|
|
|
230
242
|
}
|
|
231
243
|
},
|
|
232
244
|
"peerDependencies": {
|
|
233
|
-
"@luma.gl/core": "~10.0.0-
|
|
234
|
-
"@luma.gl/shaders": "~10.0.0-
|
|
245
|
+
"@luma.gl/core": "~10.0.0-beta.1",
|
|
246
|
+
"@luma.gl/shaders": "~10.0.0-beta.1",
|
|
235
247
|
"apache-arrow": ">=17.0.0"
|
|
236
248
|
},
|
|
237
249
|
"peerDependenciesMeta": {
|
|
@@ -240,9 +252,11 @@
|
|
|
240
252
|
}
|
|
241
253
|
},
|
|
242
254
|
"dependencies": {
|
|
243
|
-
"@math.gl/core": "~5.0.0-
|
|
244
|
-
"@math.gl/
|
|
255
|
+
"@math.gl/core": "~5.0.0-rc.2",
|
|
256
|
+
"@math.gl/geometry": "~5.0.0-rc.2",
|
|
257
|
+
"@math.gl/geospatial": "~5.0.0-rc.2",
|
|
258
|
+
"@math.gl/sql": "~5.0.0-rc.2",
|
|
245
259
|
"probe.gl": "^5.0.0"
|
|
246
260
|
},
|
|
247
|
-
"gitHead": "
|
|
261
|
+
"gitHead": "36a0b0408f543cf231e2266e4854b6cd19016c19"
|
|
248
262
|
}
|
|
@@ -9,20 +9,40 @@ import {
|
|
|
9
9
|
} from '../gpu-simple-graph/operations/convert-colors';
|
|
10
10
|
import {GPUDataEvaluator} from '../gpu-simple-graph/operation/gpu-data-evaluator';
|
|
11
11
|
import {GPUVectorEvaluator} from '../gpu-simple-graph/operation/gpu-vector-evaluator';
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
CPUData,
|
|
14
|
+
CPUVector,
|
|
15
|
+
resolveColorOutputFormat,
|
|
16
|
+
getGPUVectorFormatInfo,
|
|
17
|
+
GPUData,
|
|
18
|
+
GPUVector,
|
|
19
|
+
type ColorConversionOptions,
|
|
20
|
+
type ColorOutputFormat,
|
|
21
|
+
type GPUVectorBufferProps
|
|
22
|
+
} from '@luma.gl/graph/gpu-data';
|
|
13
23
|
import {DataType, Field, FixedSizeList, Float16, Float32, Uint8, Vector} from 'apache-arrow';
|
|
14
|
-
import {
|
|
24
|
+
import {
|
|
25
|
+
makeArrowGPUValidityBitmap,
|
|
26
|
+
makeGPUVectorFromArrow,
|
|
27
|
+
readArrowGPUVectorAsync
|
|
28
|
+
} from './gpu/arrow-gpu-vector-adapters';
|
|
29
|
+
import {getArrowDataBufferSource, getArrowFixedSizeListRowValidity} from './gpu/arrow-gpu-data';
|
|
15
30
|
import type {GPUDataReadbackMetadata} from './gpu/arrow-gpu-data';
|
|
31
|
+
import type {AttributeArrowType} from './arrow-utils/arrow-types';
|
|
32
|
+
import type {Data} from 'apache-arrow';
|
|
33
|
+
import {convertCPUColorData} from '../gpu-data/color-conversion';
|
|
16
34
|
|
|
17
35
|
export type ArrowColorType = FixedSizeList<Uint8> | FixedSizeList<Float16> | FixedSizeList<Float32>;
|
|
18
36
|
type ArrowUint8ColorType = FixedSizeList<Uint8>;
|
|
19
37
|
|
|
20
|
-
type ConvertColorsProps = {
|
|
38
|
+
type ConvertColorsProps = ColorConversionOptions & {
|
|
21
39
|
name?: string;
|
|
22
40
|
inputFormat?: ColorInputFormat;
|
|
23
41
|
};
|
|
24
42
|
|
|
25
|
-
type ConvertArrowColorsProps = {
|
|
43
|
+
type ConvertArrowColorsProps = ColorConversionOptions & {
|
|
44
|
+
/** Convert Arrow payloads before uploading; avoids source upload and readback on CPU backends. */
|
|
45
|
+
preferCPU?: boolean;
|
|
26
46
|
name?: string;
|
|
27
47
|
bufferProps?: GPUVectorBufferProps;
|
|
28
48
|
};
|
|
@@ -32,45 +52,76 @@ const ARROW_UINT8_COLOR_TYPE = new FixedSizeList(
|
|
|
32
52
|
new Field('value', new Uint8(), false)
|
|
33
53
|
) as ArrowUint8ColorType;
|
|
34
54
|
|
|
35
|
-
/** Converts fixed-width GPU RGB/RGBA chunks
|
|
55
|
+
/** Converts fixed-width GPU RGB/RGBA chunks; preserve returns a borrowed wrapper when compatible. */
|
|
56
|
+
export function convertColors(
|
|
57
|
+
device: Device,
|
|
58
|
+
colors: GPUVector,
|
|
59
|
+
props?: ConvertColorsProps & {format?: 'unorm8x4'}
|
|
60
|
+
): Promise<GPUVector<'unorm8x4'>>;
|
|
61
|
+
export function convertColors<T extends ColorOutputFormat>(
|
|
62
|
+
device: Device,
|
|
63
|
+
colors: GPUVector,
|
|
64
|
+
props: ConvertColorsProps & {format: T}
|
|
65
|
+
): Promise<GPUVector<T>>;
|
|
66
|
+
export function convertColors(
|
|
67
|
+
device: Device,
|
|
68
|
+
colors: GPUVector,
|
|
69
|
+
props: ConvertColorsProps
|
|
70
|
+
): Promise<GPUVector<ColorOutputFormat>>;
|
|
36
71
|
export async function convertColors(
|
|
37
72
|
device: Device,
|
|
38
73
|
colors: GPUVector,
|
|
39
74
|
props: ConvertColorsProps = {}
|
|
40
|
-
): Promise<GPUVector<
|
|
75
|
+
): Promise<GPUVector<ColorOutputFormat>> {
|
|
76
|
+
const format = resolveColorOutputFormat(
|
|
77
|
+
props.inputFormat?.startsWith('float16') ? 'float16x4' : colors.format!,
|
|
78
|
+
props
|
|
79
|
+
);
|
|
80
|
+
const outputType = getColorArrowType(format);
|
|
81
|
+
const byteStride = getGPUVectorFormatInfo(format).byteLength;
|
|
82
|
+
if (props.format === 'preserve' && colors.format === format) {
|
|
83
|
+
return new GPUVector<ColorOutputFormat>({
|
|
84
|
+
type: 'data',
|
|
85
|
+
name: props.name ?? colors.name,
|
|
86
|
+
format,
|
|
87
|
+
dataType: outputType,
|
|
88
|
+
data: colors.data as GPUData<ColorOutputFormat>[],
|
|
89
|
+
ownsData: false
|
|
90
|
+
});
|
|
91
|
+
}
|
|
41
92
|
const source = GPUVectorEvaluator.fromGPUVector(colors);
|
|
42
93
|
const converted = source.mapGPUData(data =>
|
|
43
|
-
convertColorData(data, {inputFormat: props.inputFormat})
|
|
94
|
+
convertColorData(data, {inputFormat: props.inputFormat, format})
|
|
44
95
|
);
|
|
45
|
-
const outputBuffers =
|
|
46
|
-
const buffer = device.createBuffer({
|
|
47
|
-
id: `${props.name ?? 'colors'}-${chunkIndex}`,
|
|
48
|
-
usage: Buffer.VERTEX | Buffer.STORAGE | Buffer.COPY_DST | Buffer.COPY_SRC,
|
|
49
|
-
byteLength: evaluator.byteLength
|
|
50
|
-
});
|
|
51
|
-
evaluator.setTargetBuffer({buffer});
|
|
52
|
-
return buffer;
|
|
53
|
-
});
|
|
54
|
-
|
|
96
|
+
const outputBuffers: Buffer[] = [];
|
|
55
97
|
try {
|
|
98
|
+
converted.gpuDataEvaluators.forEach((evaluator, chunkIndex) => {
|
|
99
|
+
const buffer = device.createBuffer({
|
|
100
|
+
id: `${props.name ?? 'colors'}-${chunkIndex}`,
|
|
101
|
+
usage: Buffer.VERTEX | Buffer.STORAGE | Buffer.COPY_DST | Buffer.COPY_SRC,
|
|
102
|
+
byteLength: Math.max(evaluator.byteLength, 4)
|
|
103
|
+
});
|
|
104
|
+
evaluator.setTargetBuffer({buffer});
|
|
105
|
+
outputBuffers.push(buffer);
|
|
106
|
+
});
|
|
56
107
|
const evaluated = await converted.evaluate(device, {
|
|
57
108
|
name: props.name ?? 'colors',
|
|
58
|
-
format
|
|
109
|
+
format
|
|
59
110
|
});
|
|
60
111
|
const data = evaluated.data.map((chunk, chunkIndex) => {
|
|
61
112
|
const sourceData = colors.data[chunkIndex];
|
|
62
113
|
const readbackMetadata = sourceData
|
|
63
114
|
? getConvertedColorReadbackMetadata(sourceData)
|
|
64
115
|
: undefined;
|
|
65
|
-
return new GPUData<
|
|
116
|
+
return new GPUData<ColorOutputFormat>({
|
|
66
117
|
buffer: outputBuffers[chunkIndex],
|
|
67
|
-
dataType:
|
|
68
|
-
format
|
|
118
|
+
dataType: outputType,
|
|
119
|
+
format,
|
|
69
120
|
length: chunk.length,
|
|
70
121
|
stride: 4,
|
|
71
122
|
byteOffset: chunk.byteOffset,
|
|
72
|
-
byteStride
|
|
73
|
-
rowByteLength:
|
|
123
|
+
byteStride,
|
|
124
|
+
rowByteLength: byteStride,
|
|
74
125
|
ownsBuffer: true,
|
|
75
126
|
nullBitmap: readbackMetadata?.nullBitmap,
|
|
76
127
|
readbackMetadata
|
|
@@ -80,8 +131,8 @@ export async function convertColors(
|
|
|
80
131
|
return new GPUVector({
|
|
81
132
|
type: 'data',
|
|
82
133
|
name: evaluated.name,
|
|
83
|
-
dataType:
|
|
84
|
-
format
|
|
134
|
+
dataType: outputType,
|
|
135
|
+
format,
|
|
85
136
|
data,
|
|
86
137
|
ownsData: true
|
|
87
138
|
});
|
|
@@ -96,7 +147,7 @@ export async function convertColors(
|
|
|
96
147
|
}
|
|
97
148
|
}
|
|
98
149
|
|
|
99
|
-
/** Returns true
|
|
150
|
+
/** Returns true for supported fixed-width RGB/RGBA Arrow or GPU inputs. */
|
|
100
151
|
export function canConvertColors(colors: GPUVector | Vector): boolean {
|
|
101
152
|
try {
|
|
102
153
|
if (colors instanceof GPUVector) {
|
|
@@ -117,14 +168,105 @@ export function canConvertColors(colors: GPUVector | Vector): boolean {
|
|
|
117
168
|
}
|
|
118
169
|
}
|
|
119
170
|
|
|
120
|
-
/**
|
|
171
|
+
/** Converts Arrow RGB/RGBA chunks to selected storage without changing color space or alpha convention. */
|
|
172
|
+
export function convertArrowColors(
|
|
173
|
+
device: Device,
|
|
174
|
+
colors: Vector<ArrowColorType>,
|
|
175
|
+
props?: ConvertArrowColorsProps & {format?: 'unorm8x4'}
|
|
176
|
+
): Promise<GPUVector<'unorm8x4'>>;
|
|
177
|
+
export function convertArrowColors<T extends ColorOutputFormat>(
|
|
178
|
+
device: Device,
|
|
179
|
+
colors: Vector<ArrowColorType>,
|
|
180
|
+
props: ConvertArrowColorsProps & {format: T}
|
|
181
|
+
): Promise<GPUVector<T>>;
|
|
182
|
+
export function convertArrowColors(
|
|
183
|
+
device: Device,
|
|
184
|
+
colors: Vector<ArrowColorType>,
|
|
185
|
+
props: ConvertArrowColorsProps
|
|
186
|
+
): Promise<GPUVector<ColorOutputFormat>>;
|
|
121
187
|
export async function convertArrowColors(
|
|
122
188
|
device: Device,
|
|
123
189
|
colors: Vector<ArrowColorType>,
|
|
124
190
|
props: ConvertArrowColorsProps = {}
|
|
125
|
-
): Promise<GPUVector<
|
|
191
|
+
): Promise<GPUVector<ColorOutputFormat>> {
|
|
126
192
|
validateArrowColorType(colors.type, 'convertArrowColors');
|
|
127
193
|
const inputFormat = getArrowColorInputFormat(colors.type);
|
|
194
|
+
const sourceFormat = getArrowColorGPUFormat(inputFormat);
|
|
195
|
+
const format = resolveColorOutputFormat(
|
|
196
|
+
inputFormat.startsWith('float16') ? 'float16x4' : sourceFormat,
|
|
197
|
+
props
|
|
198
|
+
);
|
|
199
|
+
if (
|
|
200
|
+
props.format === 'preserve' &&
|
|
201
|
+
(sourceFormat === format || (sourceFormat === 'uint8x4' && format === 'unorm8x4'))
|
|
202
|
+
) {
|
|
203
|
+
return makeGPUVectorFromArrow(device, colors, {
|
|
204
|
+
...props.bufferProps,
|
|
205
|
+
name: props.name ?? 'colors',
|
|
206
|
+
format,
|
|
207
|
+
preserveDataChunks: true
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
if (props.preferCPU || device.type !== 'webgpu') {
|
|
211
|
+
const cpuSource = new CPUVector({
|
|
212
|
+
name: props.name ?? 'colors',
|
|
213
|
+
format: sourceFormat,
|
|
214
|
+
data: colors.data.map(
|
|
215
|
+
chunk =>
|
|
216
|
+
new CPUData({
|
|
217
|
+
buffer: getArrowDataBufferSource(chunk as Data<AttributeArrowType>),
|
|
218
|
+
format: sourceFormat,
|
|
219
|
+
length: chunk.length,
|
|
220
|
+
nullBitmap: makeArrowGPUValidityBitmap(getArrowFixedSizeListRowValidity(chunk))
|
|
221
|
+
})
|
|
222
|
+
)
|
|
223
|
+
});
|
|
224
|
+
const data: GPUData<ColorOutputFormat>[] = [];
|
|
225
|
+
try {
|
|
226
|
+
for (const chunk of cpuSource.data) {
|
|
227
|
+
const converted = convertCPUColorData(chunk, format, inputFormat);
|
|
228
|
+
const bytes = new Uint8Array(
|
|
229
|
+
converted.buffer,
|
|
230
|
+
converted.byteOffset,
|
|
231
|
+
converted.length * converted.byteStride
|
|
232
|
+
);
|
|
233
|
+
const readbackMetadata = getConvertedColorReadbackMetadata({
|
|
234
|
+
nullBitmap: chunk.nullBitmap,
|
|
235
|
+
length: chunk.length
|
|
236
|
+
});
|
|
237
|
+
data.push(
|
|
238
|
+
new GPUData({
|
|
239
|
+
buffer: device.createBuffer({
|
|
240
|
+
...props.bufferProps,
|
|
241
|
+
byteLength: Math.max(bytes.length, 4),
|
|
242
|
+
data: bytes.length ? bytes : new Uint8Array(4),
|
|
243
|
+
usage:
|
|
244
|
+
props.bufferProps?.usage ??
|
|
245
|
+
Buffer.VERTEX | Buffer.STORAGE | Buffer.COPY_DST | Buffer.COPY_SRC
|
|
246
|
+
}),
|
|
247
|
+
format,
|
|
248
|
+
dataType: getColorArrowType(format),
|
|
249
|
+
length: chunk.length,
|
|
250
|
+
ownsBuffer: true,
|
|
251
|
+
nullBitmap: readbackMetadata?.nullBitmap,
|
|
252
|
+
readbackMetadata
|
|
253
|
+
})
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
return new GPUVector({
|
|
257
|
+
type: 'data',
|
|
258
|
+
name: props.name ?? 'colors',
|
|
259
|
+
format,
|
|
260
|
+
dataType: getColorArrowType(format),
|
|
261
|
+
data,
|
|
262
|
+
ownsData: true
|
|
263
|
+
});
|
|
264
|
+
} catch (error) {
|
|
265
|
+
for (const chunk of data) chunk.destroy();
|
|
266
|
+
throw error;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
128
270
|
const source = makeGPUVectorFromArrow(device, colors, {
|
|
129
271
|
...props.bufferProps,
|
|
130
272
|
name: props.name ? `${props.name}-source` : 'colors-source',
|
|
@@ -135,22 +277,33 @@ export async function convertArrowColors(
|
|
|
135
277
|
try {
|
|
136
278
|
return await convertColors(device, source, {
|
|
137
279
|
name: props.name ?? 'colors',
|
|
138
|
-
inputFormat
|
|
280
|
+
inputFormat,
|
|
281
|
+
format
|
|
139
282
|
});
|
|
140
283
|
} finally {
|
|
141
284
|
source.destroy();
|
|
142
285
|
}
|
|
143
286
|
}
|
|
144
287
|
|
|
145
|
-
/**
|
|
288
|
+
/** Converts color storage and reads it back; floating outputs retain HDR and negative channels. */
|
|
289
|
+
export function convertArrowColorsToArrow(
|
|
290
|
+
device: Device,
|
|
291
|
+
colors: Vector<ArrowColorType>,
|
|
292
|
+
props?: ConvertArrowColorsProps & {format?: 'unorm8x4'}
|
|
293
|
+
): Promise<Vector<ArrowUint8ColorType>>;
|
|
294
|
+
export function convertArrowColorsToArrow(
|
|
295
|
+
device: Device,
|
|
296
|
+
colors: Vector<ArrowColorType>,
|
|
297
|
+
props: ConvertArrowColorsProps
|
|
298
|
+
): Promise<Vector<ArrowColorType>>;
|
|
146
299
|
export async function convertArrowColorsToArrow(
|
|
147
300
|
device: Device,
|
|
148
301
|
colors: Vector<ArrowColorType>,
|
|
149
302
|
props: ConvertArrowColorsProps = {}
|
|
150
|
-
): Promise<Vector<
|
|
303
|
+
): Promise<Vector<ArrowColorType>> {
|
|
151
304
|
const converted = await convertArrowColors(device, colors, props);
|
|
152
305
|
try {
|
|
153
|
-
return await readArrowGPUVectorAsync<
|
|
306
|
+
return await readArrowGPUVectorAsync<ArrowColorType>(converted);
|
|
154
307
|
} finally {
|
|
155
308
|
converted.destroy();
|
|
156
309
|
}
|
|
@@ -213,7 +366,7 @@ function getArrowColorGPUFormat(inputFormat: ColorInputFormat): VertexFormat {
|
|
|
213
366
|
}
|
|
214
367
|
|
|
215
368
|
function getConvertedColorReadbackMetadata(
|
|
216
|
-
source: GPUData
|
|
369
|
+
source: Pick<GPUData, 'nullBitmap' | 'length'>
|
|
217
370
|
): Extract<GPUDataReadbackMetadata, {kind: 'fixed-size-list'}> | undefined {
|
|
218
371
|
const sourceNullBitmap = source.nullBitmap;
|
|
219
372
|
if (!sourceNullBitmap) {
|
|
@@ -231,3 +384,11 @@ function getConvertedColorReadbackMetadata(
|
|
|
231
384
|
? {kind: 'fixed-size-list', nullCount, nullBitmap, childNullCount: 0}
|
|
232
385
|
: undefined;
|
|
233
386
|
}
|
|
387
|
+
|
|
388
|
+
function getColorArrowType(format: ColorOutputFormat): ArrowColorType {
|
|
389
|
+
return format === 'unorm8x4'
|
|
390
|
+
? ARROW_UINT8_COLOR_TYPE
|
|
391
|
+
: format === 'float16x4'
|
|
392
|
+
? new FixedSizeList(4, new Field('value', new Float16(), false))
|
|
393
|
+
: new FixedSizeList(4, new Field('value', new Float32(), false));
|
|
394
|
+
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
+
import {isArrowRecordBatch, isArrowTable} from '@math.gl/core/arrow';
|
|
6
|
+
|
|
5
7
|
import {Data, DataType, Field, RecordBatch, Schema, Table, Vector, makeVector} from 'apache-arrow';
|
|
6
8
|
|
|
7
9
|
/** Returns all leaf column paths in an Arrow object, using dot notation for nested structs. */
|
|
@@ -39,7 +41,7 @@ export function findArrowFieldByPath(
|
|
|
39
41
|
schemaOrTable: Schema | Table,
|
|
40
42
|
columnPath: string
|
|
41
43
|
): Field | null {
|
|
42
|
-
const schema = schemaOrTable
|
|
44
|
+
const schema = isArrowTable(schemaOrTable) ? schemaOrTable.schema : schemaOrTable;
|
|
43
45
|
const path = decomposePath(columnPath);
|
|
44
46
|
let fields = schema.fields;
|
|
45
47
|
let resolvedField: Field | null = null;
|
|
@@ -164,9 +166,9 @@ export function getArrowFieldByPath(arrowObject: Table | RecordBatch, columnPath
|
|
|
164
166
|
|
|
165
167
|
/** Returns the data chunks contained by an Arrow object. */
|
|
166
168
|
export function getArrowDataArray(arrowObject: Data | Table | RecordBatch | Vector): Data[] {
|
|
167
|
-
if (arrowObject
|
|
169
|
+
if (isArrowTable(arrowObject)) {
|
|
168
170
|
return arrowObject.data;
|
|
169
|
-
} else if (arrowObject
|
|
171
|
+
} else if (isArrowRecordBatch(arrowObject)) {
|
|
170
172
|
return [arrowObject.data];
|
|
171
173
|
} else if (arrowObject instanceof Vector) {
|
|
172
174
|
// @ts-expect-error for some reason read-only in this context
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
|
|
5
|
+
import type {Vector} from 'apache-arrow';
|
|
6
|
+
import type {
|
|
7
|
+
CoordinateProjectionGraph,
|
|
8
|
+
ProjectedCoordinateResult
|
|
9
|
+
} from '../../gpu-project/coordinate-projection-graph';
|
|
10
|
+
import {makeCPUVectorFromArrow} from './arrow-cpu-vector-adapters';
|
|
11
|
+
|
|
12
|
+
/** Adapt Arrow point coordinate batches into the shared reusable CPU/GPU projection graph. */
|
|
13
|
+
export function projectArrowCoordinates(
|
|
14
|
+
graph: CoordinateProjectionGraph,
|
|
15
|
+
source: Vector
|
|
16
|
+
): Promise<ProjectedCoordinateResult> {
|
|
17
|
+
return graph.run(makeCPUVectorFromArrow(source, {name: 'source'}));
|
|
18
|
+
}
|