@luma.gl/graph 10.0.0-alpha.9 → 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 +157 -280
- 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 +168 -291
- 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 +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/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 +179 -293
- package/src/gpu-tables/table/gpu-table.ts +2 -1
- package/src/index.ts +21 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileComment: Independently implemented for WebGPU; inspired by NVIDIA RAPIDS cuProj.
|
|
5
|
+
|
|
6
|
+
import {assert} from '@luma.gl/core';
|
|
7
|
+
import {CPUData, CPUVector, getGPUVectorFormatInfo} from '@luma.gl/graph/gpu-data';
|
|
8
|
+
import type {
|
|
9
|
+
GeoArrowColumn,
|
|
10
|
+
GeoArrowDimension,
|
|
11
|
+
GeoArrowArray,
|
|
12
|
+
GeoArrowFixedSizeList
|
|
13
|
+
} from '@math.gl/core/arrow';
|
|
14
|
+
|
|
15
|
+
/** Borrow CPU coordinate chunks as native GeoArrow points or single-level coordinate lists. */
|
|
16
|
+
export function makeGeoArrowColumnFromCPUVector(
|
|
17
|
+
vector: CPUVector,
|
|
18
|
+
options: {
|
|
19
|
+
encoding?:
|
|
20
|
+
| 'geoarrow.point'
|
|
21
|
+
| 'geoarrow.linestring'
|
|
22
|
+
| 'geoarrow.multipoint'
|
|
23
|
+
| 'geoarrow.polygon';
|
|
24
|
+
dimension?: GeoArrowDimension;
|
|
25
|
+
} = {}
|
|
26
|
+
): GeoArrowColumn {
|
|
27
|
+
const info = getGPUVectorFormatInfo(vector.format);
|
|
28
|
+
assert(info.signedDataType === 'float32' && info.components >= 2 && !info.fixedSizeList);
|
|
29
|
+
const variable = info.vertexList || info.valueList;
|
|
30
|
+
const encoding = options.encoding ?? (variable ? 'geoarrow.linestring' : 'geoarrow.point');
|
|
31
|
+
assert(variable === (encoding !== 'geoarrow.point'));
|
|
32
|
+
const dimension =
|
|
33
|
+
options.dimension ?? (info.components === 2 ? 'xy' : info.components === 3 ? 'xyz' : 'xyzm');
|
|
34
|
+
assert((dimension === 'xy' ? 2 : dimension === 'xyzm' ? 4 : 3) === info.components);
|
|
35
|
+
const chunks = vector.data.map(chunk => {
|
|
36
|
+
// GeoArrow primitive scalar stride cannot express padding between coordinate tuples.
|
|
37
|
+
const packed = chunk.byteStride === info.byteLength && chunk.byteOffset % 4 === 0;
|
|
38
|
+
const count = variable ? chunk.valueLength : chunk.length;
|
|
39
|
+
let values: Float32Array;
|
|
40
|
+
if (packed) values = new Float32Array(chunk.buffer, chunk.byteOffset, count * info.components);
|
|
41
|
+
else {
|
|
42
|
+
values = new Float32Array(count * info.components);
|
|
43
|
+
const bytes = new Uint8Array(values.buffer);
|
|
44
|
+
for (let index = 0; index < count; index++)
|
|
45
|
+
bytes.set(
|
|
46
|
+
new Uint8Array(
|
|
47
|
+
chunk.buffer,
|
|
48
|
+
chunk.byteOffset + index * chunk.byteStride,
|
|
49
|
+
info.byteLength
|
|
50
|
+
),
|
|
51
|
+
index * info.byteLength
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
const coordinates: GeoArrowFixedSizeList = {
|
|
55
|
+
kind: 'fixed-size-list',
|
|
56
|
+
length: count,
|
|
57
|
+
size: info.components,
|
|
58
|
+
child: {
|
|
59
|
+
kind: 'primitive',
|
|
60
|
+
length: count * info.components,
|
|
61
|
+
values
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const validity = chunk.nullBitmap ? {values: chunk.nullBitmap} : undefined;
|
|
65
|
+
if (!variable) return {...coordinates, validity};
|
|
66
|
+
assert(chunk.valueOffsets);
|
|
67
|
+
const rings: GeoArrowArray = {
|
|
68
|
+
kind: 'list',
|
|
69
|
+
length: chunk.length,
|
|
70
|
+
offsets: chunk.valueOffsets,
|
|
71
|
+
child: coordinates,
|
|
72
|
+
validity
|
|
73
|
+
};
|
|
74
|
+
return encoding === 'geoarrow.polygon'
|
|
75
|
+
? {
|
|
76
|
+
kind: 'list' as const,
|
|
77
|
+
length: chunk.length,
|
|
78
|
+
offsets: Int32Array.from({length: chunk.length + 1}, (_, index) => index),
|
|
79
|
+
child: rings,
|
|
80
|
+
validity
|
|
81
|
+
}
|
|
82
|
+
: rings;
|
|
83
|
+
});
|
|
84
|
+
return {encoding, dimension, coordinateLayout: 'interleaved', chunks};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** Borrow packed Float32 GeoArrow points/lines/multipoints as CPU chunks. Nested polygons stay GeoArrow. */
|
|
88
|
+
export function makeCPUVectorFromGeoArrowColumn(column: GeoArrowColumn): CPUVector {
|
|
89
|
+
assert(
|
|
90
|
+
column.coordinateLayout === 'interleaved' &&
|
|
91
|
+
['geoarrow.point', 'geoarrow.linestring', 'geoarrow.multipoint'].includes(column.encoding)
|
|
92
|
+
);
|
|
93
|
+
const components = column.dimension === 'xy' ? 2 : column.dimension === 'xyzm' ? 4 : 3;
|
|
94
|
+
const variable = column.encoding !== 'geoarrow.point';
|
|
95
|
+
const element = `float32x${components}` as 'float32x2' | 'float32x3' | 'float32x4';
|
|
96
|
+
const format = variable ? (`vertex-list<${element}>` as const) : element;
|
|
97
|
+
const data = column.chunks.map(chunk => {
|
|
98
|
+
assert(!chunk.validity?.bitOffset);
|
|
99
|
+
const coordinates = variable && chunk.kind === 'list' ? chunk.child : chunk;
|
|
100
|
+
assert(
|
|
101
|
+
coordinates.kind === 'fixed-size-list' &&
|
|
102
|
+
coordinates.size === components &&
|
|
103
|
+
!coordinates.offset &&
|
|
104
|
+
(!variable || !coordinates.validity)
|
|
105
|
+
);
|
|
106
|
+
const primitive = coordinates.child;
|
|
107
|
+
assert(
|
|
108
|
+
primitive.kind === 'primitive' &&
|
|
109
|
+
primitive.values instanceof Float32Array &&
|
|
110
|
+
!primitive.validity &&
|
|
111
|
+
(!primitive.stride || primitive.stride === 1)
|
|
112
|
+
);
|
|
113
|
+
const offset = primitive.offset ?? 0;
|
|
114
|
+
const values = primitive.values.subarray(offset, offset + coordinates.length * components);
|
|
115
|
+
let valueOffsets: Int32Array | undefined;
|
|
116
|
+
if (variable) {
|
|
117
|
+
assert(
|
|
118
|
+
chunk.kind === 'list' &&
|
|
119
|
+
chunk.offsets instanceof Int32Array &&
|
|
120
|
+
!chunk.offset &&
|
|
121
|
+
!chunk.offsetBase
|
|
122
|
+
);
|
|
123
|
+
valueOffsets = chunk.offsets;
|
|
124
|
+
}
|
|
125
|
+
return new CPUData({
|
|
126
|
+
buffer: values,
|
|
127
|
+
format,
|
|
128
|
+
length: chunk.length,
|
|
129
|
+
valueLength: variable ? coordinates.length : undefined,
|
|
130
|
+
valueOffsets,
|
|
131
|
+
nullBitmap: chunk.validity?.values
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
return new CPUVector({format, data});
|
|
135
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileComment: Independently implemented for WebGPU; inspired by NVIDIA RAPIDS cuProj.
|
|
5
|
+
|
|
6
|
+
import {assert} from '@luma.gl/core';
|
|
7
|
+
import {CPUData, CPUVector, getGPUVectorFormatInfo} from '@luma.gl/graph/gpu-data';
|
|
8
|
+
import type {Projection} from '@math.gl/geospatial/projection/types';
|
|
9
|
+
import type {GeoArrowColumn} from '@math.gl/core/arrow';
|
|
10
|
+
import {
|
|
11
|
+
tessellateGeoArrowPolygons,
|
|
12
|
+
type TessellateGeoArrowPolygonsOptions
|
|
13
|
+
} from '@math.gl/geometry/arrow';
|
|
14
|
+
import {makeGeoArrowColumnFromCPUVector, makeCPUVectorFromGeoArrowColumn} from './cpu-geoarrow';
|
|
15
|
+
|
|
16
|
+
/** Project Float32 coordinates while retaining single-level row topology and null rows. */
|
|
17
|
+
export async function projectCPUVector(
|
|
18
|
+
vector: CPUVector,
|
|
19
|
+
projection: Pick<Projection, 'projectFlat'>
|
|
20
|
+
): Promise<CPUVector> {
|
|
21
|
+
const {name, format} = vector;
|
|
22
|
+
vector = makeCPUVectorFromGeoArrowColumn(makeGeoArrowColumnFromCPUVector(vector));
|
|
23
|
+
const info = getGPUVectorFormatInfo(vector.format);
|
|
24
|
+
assert(
|
|
25
|
+
info.signedDataType === 'float32' &&
|
|
26
|
+
(info.components === 2 || info.components === 3) &&
|
|
27
|
+
!info.fixedSizeList
|
|
28
|
+
);
|
|
29
|
+
const data: CPUData[] = [];
|
|
30
|
+
for (const chunk of vector.data) {
|
|
31
|
+
const variable = info.vertexList || info.valueList;
|
|
32
|
+
const count = variable ? chunk.valueLength : chunk.length;
|
|
33
|
+
const values = new Float32Array(count * info.components);
|
|
34
|
+
const bytes = new Uint8Array(values.buffer);
|
|
35
|
+
for (let index = 0; index < count; index++)
|
|
36
|
+
bytes.set(
|
|
37
|
+
new Uint8Array(chunk.buffer, chunk.byteOffset + index * chunk.byteStride, info.byteLength),
|
|
38
|
+
index * info.byteLength
|
|
39
|
+
);
|
|
40
|
+
if (variable) assert(chunk.valueOffsets);
|
|
41
|
+
let row = 0;
|
|
42
|
+
while (row < chunk.length) {
|
|
43
|
+
if (chunk.nullBitmap && !(chunk.nullBitmap[row >> 3] & (1 << (row & 7)))) {
|
|
44
|
+
row++;
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
const firstRow = row++;
|
|
48
|
+
while (
|
|
49
|
+
row < chunk.length &&
|
|
50
|
+
(!chunk.nullBitmap || chunk.nullBitmap[row >> 3] & (1 << (row & 7)))
|
|
51
|
+
)
|
|
52
|
+
row++;
|
|
53
|
+
const start = variable ? chunk.valueOffsets![firstRow] : firstRow;
|
|
54
|
+
const end = variable ? chunk.valueOffsets![row] : row;
|
|
55
|
+
if (end > start)
|
|
56
|
+
values.set(
|
|
57
|
+
await projection.projectFlat(
|
|
58
|
+
values.slice(start * info.components, end * info.components),
|
|
59
|
+
info.components
|
|
60
|
+
),
|
|
61
|
+
start * info.components
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
data.push(
|
|
65
|
+
new CPUData({
|
|
66
|
+
buffer: values,
|
|
67
|
+
format,
|
|
68
|
+
length: chunk.length,
|
|
69
|
+
valueLength: chunk.valueLength,
|
|
70
|
+
valueOffsets: chunk.valueOffsets?.slice(),
|
|
71
|
+
nullBitmap: chunk.nullBitmap?.slice()
|
|
72
|
+
})
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
return new CPUVector({name, format, data});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** Tessellate one simple polygon ring per list row, preserving source chunks and row identities. */
|
|
79
|
+
export function tessellateCPUVectorPolygons(vector: CPUVector): {
|
|
80
|
+
positions: CPUVector<'vertex-list<float32x4>'>;
|
|
81
|
+
indices: CPUVector<'vertex-list<uint32>'>;
|
|
82
|
+
rowIndices: CPUVector<'vertex-list<uint32>'>;
|
|
83
|
+
} {
|
|
84
|
+
return tessellateGeoArrowColumnToCPUVectors(
|
|
85
|
+
makeGeoArrowColumnFromCPUVector(vector, {encoding: 'geoarrow.polygon'})
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** Full native GeoArrow polygon tessellation, including holes, multipolygons and mixed columns. */
|
|
90
|
+
export function tessellateGeoArrowColumnToCPUVectors(
|
|
91
|
+
column: GeoArrowColumn,
|
|
92
|
+
options: TessellateGeoArrowPolygonsOptions = {}
|
|
93
|
+
): {
|
|
94
|
+
positions: CPUVector<'vertex-list<float32x4>'>;
|
|
95
|
+
indices: CPUVector<'vertex-list<uint32>'>;
|
|
96
|
+
rowIndices: CPUVector<'vertex-list<uint32>'>;
|
|
97
|
+
} {
|
|
98
|
+
const positions: CPUData<'vertex-list<float32x4>'>[] = [];
|
|
99
|
+
const indices: CPUData<'vertex-list<uint32>'>[] = [];
|
|
100
|
+
const rowIndices: CPUData<'vertex-list<uint32>'>[] = [];
|
|
101
|
+
let rowOffset = options.sourceRowOffset ?? 0;
|
|
102
|
+
for (const rings of column.chunks) {
|
|
103
|
+
const mesh = tessellateGeoArrowPolygons(
|
|
104
|
+
{...column, chunks: [rings]},
|
|
105
|
+
{...options, positionSize: 4, sourceRowOffset: rowOffset}
|
|
106
|
+
);
|
|
107
|
+
const vertexOffsets = new Int32Array(rings.length + 1);
|
|
108
|
+
const indexOffsets = new Int32Array(rings.length + 1);
|
|
109
|
+
for (const source of mesh.sourceRowIndices) vertexOffsets[source - rowOffset + 1]++;
|
|
110
|
+
for (const index of mesh.indices) indexOffsets[mesh.sourceRowIndices[index] - rowOffset + 1]++;
|
|
111
|
+
for (let row = 1; row <= rings.length; row++) {
|
|
112
|
+
vertexOffsets[row] += vertexOffsets[row - 1];
|
|
113
|
+
indexOffsets[row] += indexOffsets[row - 1];
|
|
114
|
+
}
|
|
115
|
+
let nullBitmap: Uint8Array | undefined;
|
|
116
|
+
if (rings.validity) {
|
|
117
|
+
nullBitmap = new Uint8Array(Math.ceil(rings.length / 8));
|
|
118
|
+
for (let row = 0; row < rings.length; row++) {
|
|
119
|
+
const bit = row + (rings.validity.bitOffset ?? 0);
|
|
120
|
+
if (rings.validity.values[bit >> 3] & (1 << (bit & 7)))
|
|
121
|
+
nullBitmap[row >> 3] |= 1 << (row & 7);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
const common = {length: rings.length, nullBitmap};
|
|
125
|
+
positions.push(
|
|
126
|
+
new CPUData({
|
|
127
|
+
...common,
|
|
128
|
+
format: 'vertex-list<float32x4>',
|
|
129
|
+
buffer: mesh.positions,
|
|
130
|
+
valueLength: mesh.vertexCount,
|
|
131
|
+
valueOffsets: vertexOffsets
|
|
132
|
+
})
|
|
133
|
+
);
|
|
134
|
+
indices.push(
|
|
135
|
+
new CPUData({
|
|
136
|
+
...common,
|
|
137
|
+
format: 'vertex-list<uint32>',
|
|
138
|
+
buffer: Uint32Array.from(mesh.indices),
|
|
139
|
+
valueLength: mesh.indices.length,
|
|
140
|
+
valueOffsets: indexOffsets
|
|
141
|
+
})
|
|
142
|
+
);
|
|
143
|
+
rowIndices.push(
|
|
144
|
+
new CPUData({
|
|
145
|
+
...common,
|
|
146
|
+
format: 'vertex-list<uint32>',
|
|
147
|
+
buffer: mesh.sourceRowIndices,
|
|
148
|
+
valueLength: mesh.vertexCount,
|
|
149
|
+
valueOffsets: vertexOffsets
|
|
150
|
+
})
|
|
151
|
+
);
|
|
152
|
+
rowOffset += rings.length;
|
|
153
|
+
}
|
|
154
|
+
return {
|
|
155
|
+
positions: new CPUVector({format: 'vertex-list<float32x4>', data: positions}),
|
|
156
|
+
indices: new CPUVector({format: 'vertex-list<uint32>', data: indices}),
|
|
157
|
+
rowIndices: new CPUVector({format: 'vertex-list<uint32>', data: rowIndices})
|
|
158
|
+
};
|
|
159
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileComment: Independently implemented for WebGPU; inspired by NVIDIA RAPIDS cuProj.
|
|
5
|
+
|
|
6
|
+
import {assert} from '@luma.gl/core';
|
|
7
|
+
import type {Projection} from '@math.gl/geospatial/projection/types';
|
|
8
|
+
import {GPUCPUOperation} from '../gpu-core/gpu-cpu-operation';
|
|
9
|
+
import {gpuGraph} from '../gpu-core/gpu-graph-value';
|
|
10
|
+
|
|
11
|
+
export type CPUProjectionOperationProps = {
|
|
12
|
+
id: string;
|
|
13
|
+
input: string;
|
|
14
|
+
output: string;
|
|
15
|
+
format: 'float32x2' | 'float32x3';
|
|
16
|
+
projection: Pick<Projection, 'projectFlat'>;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** Forward projection on the CPU with executor-managed GPU readback and upload. */
|
|
20
|
+
export class CPUProjectionOperation extends GPUCPUOperation {
|
|
21
|
+
constructor(props: CPUProjectionOperationProps) {
|
|
22
|
+
const dimension = props.format === 'float32x2' ? 2 : 3;
|
|
23
|
+
super({
|
|
24
|
+
id: props.id,
|
|
25
|
+
inputs: {positions: props.input},
|
|
26
|
+
outputs: {[props.output]: gpuGraph.vector(props.format)},
|
|
27
|
+
async execute({inputs}) {
|
|
28
|
+
const input = inputs['positions'];
|
|
29
|
+
// Coordinates must match the declared packed Float32 dimension.
|
|
30
|
+
assert(typeof input !== 'number' && input.format === props.format);
|
|
31
|
+
return {
|
|
32
|
+
[props.output]: {
|
|
33
|
+
chunks: await Promise.all(
|
|
34
|
+
input.chunks.map(async chunk => {
|
|
35
|
+
assert(chunk.values instanceof Float32Array);
|
|
36
|
+
const values = chunk.values.slice();
|
|
37
|
+
return {
|
|
38
|
+
values: values.length
|
|
39
|
+
? await props.projection.projectFlat(values, dimension)
|
|
40
|
+
: values
|
|
41
|
+
};
|
|
42
|
+
})
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileComment: Independently implemented for WebGPU; inspired by NVIDIA RAPIDS cuProj.
|
|
5
|
+
|
|
6
|
+
export {makeGeoArrowColumnFromCPUVector, makeCPUVectorFromGeoArrowColumn} from './cpu-geoarrow';
|
|
7
|
+
export {
|
|
8
|
+
projectCPUVector,
|
|
9
|
+
tessellateCPUVectorPolygons,
|
|
10
|
+
tessellateGeoArrowColumnToCPUVectors
|
|
11
|
+
} from './cpu-geometry-pipelines';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
// SPDX-FileComment: Independently implemented for WebGPU; inspired by NVIDIA RAPIDS cuProj.
|
|
5
|
+
|
|
6
|
+
export {
|
|
7
|
+
CoordinateProjectionGraph,
|
|
8
|
+
type CoordinateProjectionGraphProps,
|
|
9
|
+
type ProjectedCoordinateResult
|
|
10
|
+
} from './coordinate-projection-graph';
|
package/src/gpu-project/index.ts
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
type ArithmeticOp,
|
|
15
15
|
type ArithmeticArgument
|
|
16
16
|
} from './operations/arithmetic-operation';
|
|
17
|
-
import {GPUVector} from '@luma.gl/graph/gpu-data';
|
|
17
|
+
import {CPUVector, GPUVector} from '@luma.gl/graph/gpu-data';
|
|
18
18
|
import type {GPUGraph} from '../gpu-core/gpu-graph';
|
|
19
19
|
import {
|
|
20
20
|
GPUExpressionOperation,
|
|
@@ -38,12 +38,20 @@ import type {GPUGraphOutputs} from '../gpu-core/gpu-texture-plan';
|
|
|
38
38
|
|
|
39
39
|
import {GPUExpressionCastOperation} from './gpu-expression-cast-operation';
|
|
40
40
|
import {GPUExpressionRowOperation} from './gpu-expression-row-operation';
|
|
41
|
+
import {GPUShaderPassOperation} from '../gpu-core/gpu-shader-pass-operation';
|
|
42
|
+
import {GPUShaderPassKernel} from '../gpu-core/gpu-shader-pass-kernel';
|
|
43
|
+
|
|
44
|
+
import {GPUCPUOperation} from '../gpu-core/gpu-cpu-operation';
|
|
45
|
+
import {GPUCPUExecution} from '../gpu-core/gpu-cpu-execution';
|
|
41
46
|
|
|
42
47
|
/** Reusable expression program implemented through the unchanged evaluator API. */
|
|
43
48
|
export class CompiledGPUSimpleExpressionGraph<
|
|
44
49
|
Outputs extends GPUGraphOutputs = Record<string, GPUVector>
|
|
45
50
|
> {
|
|
46
51
|
private readonly program: GPUExpressionProgram;
|
|
52
|
+
private readonly shaderPasses = new Map<GPUShaderPassOperation, GPUShaderPassKernel>();
|
|
53
|
+
private cpuExecution?: GPUCPUExecution;
|
|
54
|
+
private readonly outputLocations: Readonly<Record<string, 'cpu' | 'gpu'>>;
|
|
47
55
|
private running = false;
|
|
48
56
|
private destroyed = false;
|
|
49
57
|
|
|
@@ -54,6 +62,7 @@ export class CompiledGPUSimpleExpressionGraph<
|
|
|
54
62
|
) {
|
|
55
63
|
if (options.lowerings) throw new Error('Custom lowerings require GPUGraph');
|
|
56
64
|
this.program = new GPUExpressionProgram(source, options);
|
|
65
|
+
this.outputLocations = options.outputLocations ?? {};
|
|
57
66
|
if (this.program.textures.length && device.type !== 'webgpu')
|
|
58
67
|
throw new Error('SimpleGraph texture execution requires WebGPU');
|
|
59
68
|
if (this.program.vectors.some(value => value.role === 'state'))
|
|
@@ -62,18 +71,40 @@ export class CompiledGPUSimpleExpressionGraph<
|
|
|
62
71
|
this.program.operations.some(
|
|
63
72
|
operation =>
|
|
64
73
|
!(
|
|
74
|
+
operation instanceof GPUCPUOperation ||
|
|
65
75
|
operation instanceof GPUExpressionOperation ||
|
|
66
76
|
operation instanceof GPUUploadOperation ||
|
|
77
|
+
operation instanceof GPUShaderPassOperation ||
|
|
67
78
|
operation instanceof GPUCopyOperation
|
|
68
79
|
)
|
|
69
80
|
)
|
|
70
81
|
)
|
|
71
82
|
throw new Error(
|
|
72
|
-
'SimpleGraph declarative execution supports expression, upload and
|
|
83
|
+
'SimpleGraph declarative execution supports expression, CPU, upload, copy and shader-pass operations only'
|
|
84
|
+
);
|
|
85
|
+
if (
|
|
86
|
+
this.program.operations.some(operation => operation instanceof GPUCPUOperation) ||
|
|
87
|
+
Object.values(this.outputLocations).includes('cpu')
|
|
88
|
+
)
|
|
89
|
+
this.cpuExecution = new GPUCPUExecution(
|
|
90
|
+
device,
|
|
91
|
+
this.program,
|
|
92
|
+
(source, outputs) => new CompiledGPUSimpleExpressionGraph(device, source, {outputs})
|
|
73
93
|
);
|
|
94
|
+
try {
|
|
95
|
+
for (const operation of this.program.operations)
|
|
96
|
+
if (operation instanceof GPUShaderPassOperation)
|
|
97
|
+
this.shaderPasses.set(
|
|
98
|
+
operation,
|
|
99
|
+
new GPUShaderPassKernel(device, operation, this.program)
|
|
100
|
+
);
|
|
101
|
+
} catch (error) {
|
|
102
|
+
this.destroy();
|
|
103
|
+
throw error;
|
|
104
|
+
}
|
|
74
105
|
}
|
|
75
106
|
|
|
76
|
-
/** Prepare
|
|
107
|
+
/** Prepare straight-line texture copies and shader passes without submitting work. */
|
|
77
108
|
prepare(
|
|
78
109
|
supplied: GPUGraphRunBindings | GPUGraphExecutionBindings,
|
|
79
110
|
options: GPUGraphRunOptions = {}
|
|
@@ -83,13 +114,23 @@ export class CompiledGPUSimpleExpressionGraph<
|
|
|
83
114
|
!this.program.textures.length ||
|
|
84
115
|
this.program.operations.some(
|
|
85
116
|
operation =>
|
|
86
|
-
!(operation instanceof
|
|
87
|
-
!
|
|
117
|
+
!(operation instanceof GPUShaderPassOperation) &&
|
|
118
|
+
(!(operation instanceof GPUCopyOperation) ||
|
|
119
|
+
!this.program.textures.some(texture => texture.id === operation.input))
|
|
88
120
|
)
|
|
89
121
|
)
|
|
90
|
-
throw new Error(
|
|
122
|
+
throw new Error(
|
|
123
|
+
'SimpleGraph prepare currently supports texture-copy and shader-pass programs only'
|
|
124
|
+
);
|
|
91
125
|
const resolved = this.program.resolveBindings(supplied, options);
|
|
92
126
|
const invocation = this.program.prepare(this.device, resolved.bindings, resolved.options);
|
|
127
|
+
let shaderPasses;
|
|
128
|
+
try {
|
|
129
|
+
shaderPasses = this.prepareShaderPasses(invocation);
|
|
130
|
+
} catch (error) {
|
|
131
|
+
invocation.destroy();
|
|
132
|
+
throw error;
|
|
133
|
+
}
|
|
93
134
|
let encoded = false;
|
|
94
135
|
let destroyed = false;
|
|
95
136
|
return {
|
|
@@ -98,6 +139,10 @@ export class CompiledGPUSimpleExpressionGraph<
|
|
|
98
139
|
assert(!this.destroyed && !destroyed && !encoded && encoder.device === this.device);
|
|
99
140
|
encoded = true;
|
|
100
141
|
for (const operation of this.program.operations) {
|
|
142
|
+
if (operation instanceof GPUShaderPassOperation) {
|
|
143
|
+
shaderPasses.get(operation)!.encode(encoder);
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
101
146
|
assert(operation instanceof GPUCopyOperation);
|
|
102
147
|
encodeTextureCopy(
|
|
103
148
|
encoder,
|
|
@@ -109,6 +154,7 @@ export class CompiledGPUSimpleExpressionGraph<
|
|
|
109
154
|
destroy: (): void => {
|
|
110
155
|
if (destroyed) return;
|
|
111
156
|
destroyed = true;
|
|
157
|
+
for (const pass of shaderPasses.values()) pass.destroy();
|
|
112
158
|
invocation.finish();
|
|
113
159
|
}
|
|
114
160
|
};
|
|
@@ -123,19 +169,48 @@ export class CompiledGPUSimpleExpressionGraph<
|
|
|
123
169
|
const resolvedBindings = this.program.resolveBindings(supplied, options);
|
|
124
170
|
const bindings = resolvedBindings.bindings;
|
|
125
171
|
options = resolvedBindings.options;
|
|
172
|
+
const suppliedInputs = 'inputs' in supplied ? supplied.inputs : supplied;
|
|
173
|
+
const useCPU =
|
|
174
|
+
this.program.operations.some(operation => operation instanceof GPUCPUOperation) ||
|
|
175
|
+
Object.values(this.outputLocations).includes('cpu') ||
|
|
176
|
+
Object.values(suppliedInputs ?? {}).some(value => value instanceof CPUVector);
|
|
177
|
+
if (!this.cpuExecution && useCPU)
|
|
178
|
+
this.cpuExecution = new GPUCPUExecution(
|
|
179
|
+
this.device,
|
|
180
|
+
this.program,
|
|
181
|
+
(source, outputs) => new CompiledGPUSimpleExpressionGraph(this.device, source, {outputs})
|
|
182
|
+
);
|
|
126
183
|
this.running = true;
|
|
184
|
+
if (useCPU && this.cpuExecution) {
|
|
185
|
+
try {
|
|
186
|
+
// Dynamic CPU results cannot be prepared into caller-owned storage yet.
|
|
187
|
+
assert(!options.outputTargets || Object.keys(options.outputTargets).length === 0);
|
|
188
|
+
return (await this.cpuExecution.run(bindings, this.outputLocations)) as Outputs;
|
|
189
|
+
} finally {
|
|
190
|
+
this.running = false;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
127
193
|
const evaluators = new Set<GPUDataEvaluator>();
|
|
128
194
|
const scalarBuffers = new Set<Buffer>();
|
|
129
195
|
let scope: GPUEvaluationScope | undefined;
|
|
130
196
|
let invocation: ReturnType<GPUExpressionProgram['prepare']> | undefined;
|
|
197
|
+
let shaderPasses:
|
|
198
|
+
| ReturnType<CompiledGPUSimpleExpressionGraph['prepareShaderPasses']>
|
|
199
|
+
| undefined;
|
|
131
200
|
try {
|
|
132
201
|
invocation = this.program.prepare(this.device, bindings, options);
|
|
202
|
+
shaderPasses = this.prepareShaderPasses(invocation);
|
|
133
203
|
if (this.device.type === 'webgpu') scope = new GPUEvaluationScope(this.device);
|
|
134
204
|
const retain = (evaluator: GPUDataEvaluator): GPUDataEvaluator => {
|
|
135
205
|
evaluators.add(evaluator);
|
|
136
206
|
return evaluator;
|
|
137
207
|
};
|
|
138
208
|
for (const operation of this.program.operations) {
|
|
209
|
+
if (operation instanceof GPUShaderPassOperation) {
|
|
210
|
+
assert(scope);
|
|
211
|
+
shaderPasses.get(operation)!.encode(scope.commandEncoder);
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
139
214
|
if (operation instanceof GPUUploadOperation || operation instanceof GPUCopyOperation) {
|
|
140
215
|
if (
|
|
141
216
|
operation instanceof GPUCopyOperation &&
|
|
@@ -364,6 +439,7 @@ export class CompiledGPUSimpleExpressionGraph<
|
|
|
364
439
|
invocation?.destroy();
|
|
365
440
|
throw error;
|
|
366
441
|
} finally {
|
|
442
|
+
for (const pass of shaderPasses?.values() ?? []) pass.destroy();
|
|
367
443
|
for (const evaluator of evaluators) evaluator.destroy();
|
|
368
444
|
for (const buffer of scalarBuffers) buffer.destroy();
|
|
369
445
|
this.running = false;
|
|
@@ -373,8 +449,23 @@ export class CompiledGPUSimpleExpressionGraph<
|
|
|
373
449
|
destroy(): void {
|
|
374
450
|
// A running program owns evaluator resources until execution finishes.
|
|
375
451
|
assert(!this.running);
|
|
452
|
+
this.cpuExecution?.destroy();
|
|
453
|
+
for (const kernel of this.shaderPasses.values()) kernel.destroy();
|
|
454
|
+
this.shaderPasses.clear();
|
|
376
455
|
this.destroyed = true;
|
|
377
456
|
}
|
|
457
|
+
|
|
458
|
+
private prepareShaderPasses(invocation: ReturnType<GPUExpressionProgram['prepare']>) {
|
|
459
|
+
const passes = new Map<GPUShaderPassOperation, ReturnType<GPUShaderPassKernel['prepare']>>();
|
|
460
|
+
try {
|
|
461
|
+
for (const [operation, kernel] of this.shaderPasses)
|
|
462
|
+
passes.set(operation, kernel.prepare(invocation.textures!.values, invocation.values));
|
|
463
|
+
return passes;
|
|
464
|
+
} catch (error) {
|
|
465
|
+
for (const pass of passes.values()) pass.destroy();
|
|
466
|
+
throw error;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
378
469
|
}
|
|
379
470
|
|
|
380
471
|
/** Keep graph scalar arithmetic on the GPU with the same float32 boundaries as vectors. */
|
|
@@ -39,6 +39,7 @@ export type SimpleOperation =
|
|
|
39
39
|
export class SimpleGraphLowering {
|
|
40
40
|
readonly owned = new Set<GPUDataEvaluator | GPUVectorEvaluator>();
|
|
41
41
|
readonly outputs = new Map<string, GPUSimpleGraphOperation>();
|
|
42
|
+
readonly inputs = new Map<string, GPUDataEvaluator | GPUVectorEvaluator>();
|
|
42
43
|
private readonly graphValues = new Map<GPUSimpleGraphValue, GPUDataEvaluator>();
|
|
43
44
|
private readonly scalars = new Map<object, GPUDataEvaluator>();
|
|
44
45
|
private readonly vectors = new Map<object, GPUVectorEvaluator>();
|
|
@@ -188,6 +189,15 @@ export class SimpleGraphLowering {
|
|
|
188
189
|
// Semantic output IDs and explicitly wrapped evaluator IDs share one namespace.
|
|
189
190
|
assert(!this.outputs.has(id));
|
|
190
191
|
this.outputs.set(id, new GPUSimpleGraphOperation({id, evaluator}));
|
|
192
|
+
const chunks =
|
|
193
|
+
evaluator instanceof GPUVectorEvaluator ? evaluator.gpuDataEvaluators : [evaluator];
|
|
194
|
+
if (chunks.every(chunk => !chunk.source)) this.registerInput(id, evaluator);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
private registerInput(id: string, evaluator: GPUDataEvaluator | GPUVectorEvaluator): void {
|
|
198
|
+
// An invalidation name must identify exactly one input, including semantic vector bindings.
|
|
199
|
+
assert(!this.inputs.has(id) || this.inputs.get(id) === evaluator);
|
|
200
|
+
this.inputs.set(id, evaluator);
|
|
191
201
|
}
|
|
192
202
|
|
|
193
203
|
private resolveVector(vector: GPUGraphVector<'float32'>): GPUVectorEvaluator {
|
|
@@ -215,6 +225,7 @@ export class SimpleGraphLowering {
|
|
|
215
225
|
);
|
|
216
226
|
this.owned.add(evaluator);
|
|
217
227
|
this.vectors.set(vector, evaluator);
|
|
228
|
+
this.registerInput(vector.id, evaluator);
|
|
218
229
|
return evaluator;
|
|
219
230
|
}
|
|
220
231
|
}
|