@luma.gl/graph 10.0.0-alpha.9 → 10.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +4 -4
- package/THIRD-PARTY-NOTICES.md +19 -0
- package/dist/arrow/arrow-colors.cjs +99 -18
- package/dist/arrow/arrow-colors.d.ts +27 -10
- package/dist/arrow/arrow-colors.d.ts.map +1 -1
- package/dist/arrow/arrow-colors.js +107 -24
- package/dist/arrow/arrow-colors.js.map +1 -1
- package/dist/arrow/arrow-utils/arrow-paths.cjs +4 -3
- package/dist/arrow/arrow-utils/arrow-paths.d.ts.map +1 -1
- package/dist/arrow/arrow-utils/arrow-paths.js +5 -4
- package/dist/arrow/arrow-utils/arrow-paths.js.map +1 -1
- package/dist/arrow/cpu/arrow-coordinate-projection.cjs +30 -0
- package/dist/arrow/cpu/arrow-coordinate-projection.d.ts +5 -0
- package/dist/arrow/cpu/arrow-coordinate-projection.d.ts.map +1 -0
- package/dist/arrow/cpu/arrow-coordinate-projection.js +9 -0
- package/dist/arrow/cpu/arrow-coordinate-projection.js.map +1 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.cjs +31 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.d.ts +2 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.d.ts.map +1 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.js +5 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.js.map +1 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.cjs +99 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.d.ts +9 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.d.ts.map +1 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.js +100 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.js.map +1 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.cjs +9 -371
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts +8 -28
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts.map +1 -1
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js +4 -381
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js.map +1 -1
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.cjs +11 -11
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts +2 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts.map +1 -1
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js +4 -4
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js.map +1 -1
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.cjs +2 -2
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.js +1 -1
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.js.map +1 -1
- package/dist/arrow/gpu/arrow-column-gpu-vector.cjs +27 -8
- package/dist/arrow/gpu/arrow-column-gpu-vector.d.ts +11 -1
- package/dist/arrow/gpu/arrow-column-gpu-vector.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-column-gpu-vector.js +33 -8
- package/dist/arrow/gpu/arrow-column-gpu-vector.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-table-conversion.cjs +68 -3
- package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts +9 -2
- package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-table-conversion.js +76 -3
- package/dist/arrow/gpu/arrow-gpu-table-conversion.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.cjs +8 -6
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.d.ts +1 -0
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.js +17 -7
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.cjs +35 -5
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.d.ts +6 -1
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.js +40 -5
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.js.map +1 -1
- package/dist/arrow/index.cjs +19 -2
- package/dist/arrow/index.cjs.map +3 -3
- package/dist/arrow/index.d.ts +5 -2
- package/dist/arrow/index.d.ts.map +1 -1
- package/dist/arrow/index.js +4 -1
- package/dist/arrow/index.js.map +1 -1
- package/dist/arrow/internal.cjs.map +2 -2
- package/dist/dist.dev.js +3820 -1646
- package/dist/dist.min.js +450 -136
- package/dist/experimental/index.cjs.map +1 -1
- package/dist/experimental/simulation/index.cjs.map +1 -1
- package/dist/experimental-models.cjs +21 -0
- package/dist/experimental-models.d.ts +2 -0
- package/dist/experimental-models.d.ts.map +1 -0
- package/dist/experimental-models.js +5 -0
- package/dist/experimental-models.js.map +1 -0
- package/dist/experimental-simulation.cjs +21 -0
- package/dist/experimental-simulation.d.ts +2 -0
- package/dist/experimental-simulation.d.ts.map +1 -0
- package/dist/experimental-simulation.js +5 -0
- package/dist/experimental-simulation.js.map +1 -0
- package/dist/geospatial/gpu-point-spatial-query.cjs +2 -15
- package/dist/geospatial/gpu-point-spatial-query.d.ts.map +1 -1
- package/dist/geospatial/gpu-point-spatial-query.js +2 -15
- package/dist/geospatial/gpu-point-spatial-query.js.map +1 -1
- package/dist/geospatial/index.cjs.map +2 -2
- package/dist/gpu-a5/index.cjs.map +1 -1
- package/dist/gpu-core/compiled-gpu-graph.cjs +47 -0
- package/dist/gpu-core/compiled-gpu-graph.d.ts +5 -0
- package/dist/gpu-core/compiled-gpu-graph.d.ts.map +1 -1
- package/dist/gpu-core/compiled-gpu-graph.js +54 -1
- package/dist/gpu-core/compiled-gpu-graph.js.map +1 -1
- package/dist/gpu-core/gpu-command-graph-compiler.cjs +11 -2
- package/dist/gpu-core/gpu-command-graph-compiler.d.ts +2 -1
- package/dist/gpu-core/gpu-command-graph-compiler.d.ts.map +1 -1
- package/dist/gpu-core/gpu-command-graph-compiler.js +13 -2
- package/dist/gpu-core/gpu-command-graph-compiler.js.map +1 -1
- package/dist/gpu-core/gpu-command-graph-types.d.ts +16 -1
- package/dist/gpu-core/gpu-command-graph-types.d.ts.map +1 -1
- package/dist/gpu-core/gpu-command-graph-types.js.map +1 -1
- package/dist/gpu-core/gpu-command-graph.cjs +34 -11
- package/dist/gpu-core/gpu-command-graph.d.ts +17 -8
- package/dist/gpu-core/gpu-command-graph.d.ts.map +1 -1
- package/dist/gpu-core/gpu-command-graph.js +39 -11
- package/dist/gpu-core/gpu-command-graph.js.map +1 -1
- package/dist/gpu-core/gpu-cpu-execution.cjs +279 -0
- package/dist/gpu-core/gpu-cpu-execution.d.ts +22 -0
- package/dist/gpu-core/gpu-cpu-execution.d.ts.map +1 -0
- package/dist/gpu-core/gpu-cpu-execution.js +294 -0
- package/dist/gpu-core/gpu-cpu-execution.js.map +1 -0
- package/dist/gpu-core/gpu-cpu-operation.cjs +54 -0
- package/dist/gpu-core/gpu-cpu-operation.d.ts +40 -0
- package/dist/gpu-core/gpu-cpu-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-cpu-operation.js +35 -0
- package/dist/gpu-core/gpu-cpu-operation.js.map +1 -0
- package/dist/gpu-core/gpu-dispatch-utils.cjs +7 -3
- package/dist/gpu-core/gpu-dispatch-utils.d.ts +2 -0
- package/dist/gpu-core/gpu-dispatch-utils.d.ts.map +1 -1
- package/dist/gpu-core/gpu-dispatch-utils.js +4 -1
- package/dist/gpu-core/gpu-dispatch-utils.js.map +1 -1
- package/dist/gpu-core/gpu-expression-operation.cjs +2 -2
- package/dist/gpu-core/gpu-expression-operation.d.ts +1 -1
- package/dist/gpu-core/gpu-expression-operation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-expression-operation.js +1 -1
- package/dist/gpu-core/gpu-expression-operation.js.map +1 -1
- package/dist/gpu-core/gpu-expression-plan.cjs +5 -1
- package/dist/gpu-core/gpu-expression-plan.d.ts +3 -2
- package/dist/gpu-core/gpu-expression-plan.d.ts.map +1 -1
- package/dist/gpu-core/gpu-expression-plan.js +7 -1
- package/dist/gpu-core/gpu-expression-plan.js.map +1 -1
- package/dist/gpu-core/gpu-graph-compiler.cjs +48 -0
- package/dist/gpu-core/gpu-graph-compiler.d.ts +1 -0
- package/dist/gpu-core/gpu-graph-compiler.d.ts.map +1 -1
- package/dist/gpu-core/gpu-graph-compiler.js +50 -0
- package/dist/gpu-core/gpu-graph-compiler.js.map +1 -1
- package/dist/gpu-core/gpu-graph.d.ts +2 -2
- package/dist/gpu-core/gpu-graph.d.ts.map +1 -1
- package/dist/gpu-core/gpu-graph.js.map +1 -1
- package/dist/gpu-core/gpu-grid-aggregation.cjs +2 -5
- package/dist/gpu-core/gpu-grid-aggregation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-grid-aggregation.js +2 -5
- package/dist/gpu-core/gpu-grid-aggregation.js.map +1 -1
- package/dist/gpu-core/gpu-grid-binning.cjs +2 -5
- package/dist/gpu-core/gpu-grid-binning.d.ts.map +1 -1
- package/dist/gpu-core/gpu-grid-binning.js +2 -5
- package/dist/gpu-core/gpu-grid-binning.js.map +1 -1
- package/dist/gpu-core/gpu-grid-coordinate.cjs +41 -0
- package/dist/gpu-core/gpu-grid-coordinate.d.ts +7 -0
- package/dist/gpu-core/gpu-grid-coordinate.d.ts.map +1 -0
- package/dist/gpu-core/gpu-grid-coordinate.js +24 -0
- package/dist/gpu-core/gpu-grid-coordinate.js.map +1 -0
- package/dist/gpu-core/gpu-grid-index-internals.cjs +2 -15
- package/dist/gpu-core/gpu-grid-index-internals.d.ts.map +1 -1
- package/dist/gpu-core/gpu-grid-index-internals.js +2 -15
- package/dist/gpu-core/gpu-grid-index-internals.js.map +1 -1
- package/dist/gpu-core/gpu-grid-index-query.cjs +2 -16
- package/dist/gpu-core/gpu-grid-index-query.d.ts.map +1 -1
- package/dist/gpu-core/gpu-grid-index-query.js +2 -16
- package/dist/gpu-core/gpu-grid-index-query.js.map +1 -1
- package/dist/gpu-core/gpu-group-aggregation.cjs +7 -15
- package/dist/gpu-core/gpu-group-aggregation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-group-aggregation.js +7 -18
- package/dist/gpu-core/gpu-group-aggregation.js.map +1 -1
- package/dist/gpu-core/gpu-operation.d.ts +4 -4
- package/dist/gpu-core/gpu-operation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-operation.js.map +1 -1
- package/dist/gpu-core/gpu-reduction.cjs +6 -14
- package/dist/gpu-core/gpu-reduction.d.ts.map +1 -1
- package/dist/gpu-core/gpu-reduction.js +6 -15
- package/dist/gpu-core/gpu-reduction.js.map +1 -1
- package/dist/gpu-core/gpu-render-operation.cjs +39 -0
- package/dist/gpu-core/gpu-render-operation.d.ts +21 -0
- package/dist/gpu-core/gpu-render-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-render-operation.js +22 -0
- package/dist/gpu-core/gpu-render-operation.js.map +1 -0
- package/dist/gpu-core/gpu-scan.cjs +46 -32
- package/dist/gpu-core/gpu-scan.d.ts.map +1 -1
- package/dist/gpu-core/gpu-scan.js +56 -44
- package/dist/gpu-core/gpu-scan.js.map +1 -1
- package/dist/gpu-core/gpu-segmented-reduction.cjs +12 -9
- package/dist/gpu-core/gpu-segmented-reduction.d.ts +1 -1
- package/dist/gpu-core/gpu-segmented-reduction.d.ts.map +1 -1
- package/dist/gpu-core/gpu-segmented-reduction.js +12 -9
- package/dist/gpu-core/gpu-segmented-reduction.js.map +1 -1
- package/dist/gpu-core/gpu-segmented-scan.cjs +73 -16
- package/dist/gpu-core/gpu-segmented-scan.d.ts.map +1 -1
- package/dist/gpu-core/gpu-segmented-scan.js +73 -16
- package/dist/gpu-core/gpu-segmented-scan.js.map +1 -1
- package/dist/gpu-core/gpu-semantic-aggregation-operation.cjs +112 -0
- package/dist/gpu-core/gpu-semantic-aggregation-operation.d.ts +71 -0
- package/dist/gpu-core/gpu-semantic-aggregation-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-semantic-aggregation-operation.js +92 -0
- package/dist/gpu-core/gpu-semantic-aggregation-operation.js.map +1 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.cjs +267 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.d.ts +29 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.d.ts.map +1 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.js +260 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.js.map +1 -0
- package/dist/gpu-core/gpu-shader-pass-operation.cjs +85 -0
- package/dist/gpu-core/gpu-shader-pass-operation.d.ts +32 -0
- package/dist/gpu-core/gpu-shader-pass-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-shader-pass-operation.js +74 -0
- package/dist/gpu-core/gpu-shader-pass-operation.js.map +1 -0
- package/dist/gpu-core/gpu-texture-plan.d.ts +3 -2
- package/dist/gpu-core/gpu-texture-plan.d.ts.map +1 -1
- package/dist/gpu-core/gpu-texture-plan.js.map +1 -1
- package/dist/gpu-core/index.cjs +32 -0
- package/dist/gpu-core/index.cjs.map +3 -3
- package/dist/gpu-core/index.d.ts +21 -1
- package/dist/gpu-core/index.d.ts.map +1 -1
- package/dist/gpu-core/index.js +10 -0
- package/dist/gpu-core/index.js.map +1 -1
- package/dist/gpu-data/color-conversion.cjs +105 -0
- package/dist/gpu-data/color-conversion.d.ts +30 -0
- package/dist/gpu-data/color-conversion.d.ts.map +1 -0
- package/dist/gpu-data/color-conversion.js +109 -0
- package/dist/gpu-data/color-conversion.js.map +1 -0
- package/dist/gpu-data/cpu-data.cjs +60 -0
- package/dist/gpu-data/cpu-data.d.ts +28 -0
- package/dist/gpu-data/cpu-data.d.ts.map +1 -0
- package/dist/gpu-data/cpu-data.js +41 -0
- package/dist/gpu-data/cpu-data.js.map +1 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.cjs +98 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.d.ts +9 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.d.ts.map +1 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.js +85 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.js.map +1 -0
- package/dist/gpu-data/cpu-vector.cjs +42 -0
- package/dist/gpu-data/cpu-vector.d.ts +17 -0
- package/dist/gpu-data/cpu-vector.d.ts.map +1 -0
- package/dist/gpu-data/cpu-vector.js +21 -0
- package/dist/gpu-data/cpu-vector.js.map +1 -0
- package/dist/gpu-data/gpu-data-buffer-props.cjs +41 -0
- package/dist/gpu-data/gpu-data-buffer-props.d.ts +5 -0
- package/dist/gpu-data/gpu-data-buffer-props.d.ts.map +1 -0
- package/dist/gpu-data/gpu-data-buffer-props.js +19 -0
- package/dist/gpu-data/gpu-data-buffer-props.js.map +1 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.cjs +50 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.d.ts +41 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.d.ts.map +1 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.js +45 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.js.map +1 -0
- package/dist/gpu-data/index.cjs +21 -2
- package/dist/gpu-data/index.cjs.map +3 -3
- package/dist/gpu-data/index.d.ts +6 -0
- package/dist/gpu-data/index.d.ts.map +1 -1
- package/dist/gpu-data/index.js +5 -0
- package/dist/gpu-data/index.js.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame-query.cjs +8 -19
- package/dist/gpu-dataframe/gpu-data-frame-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame-query.js +14 -26
- package/dist/gpu-dataframe/gpu-data-frame-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-expression-shader.cjs +87 -5
- package/dist/gpu-dataframe/gpu-expression-shader.d.ts +2 -1
- package/dist/gpu-dataframe/gpu-expression-shader.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-expression-shader.js +101 -5
- package/dist/gpu-dataframe/gpu-expression-shader.js.map +1 -1
- package/dist/gpu-dataframe/gpu-expression.cjs +177 -2
- package/dist/gpu-dataframe/gpu-expression.d.ts +60 -2
- package/dist/gpu-dataframe/gpu-expression.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-expression.js +187 -0
- package/dist/gpu-dataframe/gpu-expression.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.cjs +0 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js +0 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-query.cjs +2 -2
- package/dist/gpu-dataframe/gpu-global-aggregation-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-query.js +5 -3
- package/dist/gpu-dataframe/gpu-global-aggregation-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-sort-compiler.cjs +23 -11
- package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts +1 -1
- package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-sort-compiler.js +24 -12
- package/dist/gpu-dataframe/gpu-global-sort-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.cjs +0 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js +0 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-group-by-query.cjs +2 -2
- package/dist/gpu-dataframe/gpu-group-by-query.js +5 -3
- package/dist/gpu-dataframe/gpu-group-by-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-histogram-compiler.cjs +0 -1
- package/dist/gpu-dataframe/gpu-histogram-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-histogram-compiler.js +0 -1
- package/dist/gpu-dataframe/gpu-histogram-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-join-compiler.cjs +0 -2
- package/dist/gpu-dataframe/gpu-join-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-join-compiler.js +0 -2
- package/dist/gpu-dataframe/gpu-join-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-query-compiler.cjs +3 -1
- package/dist/gpu-dataframe/gpu-query-compiler.d.ts +0 -1
- package/dist/gpu-dataframe/gpu-query-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-query-compiler.js +3 -1
- package/dist/gpu-dataframe/gpu-query-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-sort-compiler.cjs +0 -1
- package/dist/gpu-dataframe/gpu-sort-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-sort-compiler.js +0 -1
- package/dist/gpu-dataframe/gpu-sort-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-sort-query.cjs +13 -5
- package/dist/gpu-dataframe/gpu-sort-query.d.ts +4 -1
- package/dist/gpu-dataframe/gpu-sort-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-sort-query.js +14 -5
- package/dist/gpu-dataframe/gpu-sort-query.js.map +1 -1
- package/dist/gpu-dataframe/index.cjs +20 -2
- package/dist/gpu-dataframe/index.cjs.map +3 -3
- package/dist/gpu-dataframe/index.d.ts +6 -2
- package/dist/gpu-dataframe/index.d.ts.map +1 -1
- package/dist/gpu-dataframe/index.js +3 -1
- package/dist/gpu-dataframe/index.js.map +1 -1
- package/dist/gpu-dataframe/portable-expression.cjs +167 -0
- package/dist/gpu-dataframe/portable-expression.d.ts +21 -0
- package/dist/gpu-dataframe/portable-expression.d.ts.map +1 -0
- package/dist/gpu-dataframe/portable-expression.js +162 -0
- package/dist/gpu-dataframe/portable-expression.js.map +1 -0
- package/dist/gpu-dggs/benchmarks.cjs.map +1 -1
- package/dist/gpu-dggs/index.cjs.map +1 -1
- package/dist/gpu-dggs-benchmarks.cjs +21 -0
- package/dist/gpu-dggs-benchmarks.d.ts +2 -0
- package/dist/gpu-dggs-benchmarks.d.ts.map +1 -0
- package/dist/gpu-dggs-benchmarks.js +5 -0
- package/dist/gpu-dggs-benchmarks.js.map +1 -0
- package/dist/gpu-geometry/index.cjs.map +1 -1
- package/dist/gpu-graph/index.cjs +8 -0
- package/dist/gpu-graph/index.cjs.map +3 -3
- package/dist/gpu-graph/index.d.ts +4 -0
- package/dist/gpu-graph/index.d.ts.map +1 -1
- package/dist/gpu-graph/index.js +2 -0
- package/dist/gpu-graph/index.js.map +1 -1
- package/dist/gpu-graph-algorithms/benchmarks.cjs.map +2 -2
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.cjs +2 -15
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.d.ts.map +1 -1
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js +2 -15
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js.map +1 -1
- package/dist/gpu-graph-algorithms/index.cjs.map +2 -2
- package/dist/gpu-graph-algorithms-benchmarks.cjs +21 -0
- package/dist/gpu-graph-algorithms-benchmarks.d.ts +2 -0
- package/dist/gpu-graph-algorithms-benchmarks.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms-benchmarks.js +5 -0
- package/dist/gpu-graph-algorithms-benchmarks.js.map +1 -0
- package/dist/gpu-h3/index.cjs.map +1 -1
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.cjs +116 -0
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.d.ts +42 -0
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.d.ts.map +1 -0
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.js +90 -0
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.js.map +1 -0
- package/dist/gpu-physics/gpu-physics-ensemble.cjs +97 -5
- package/dist/gpu-physics/gpu-physics-ensemble.d.ts +31 -2
- package/dist/gpu-physics/gpu-physics-ensemble.d.ts.map +1 -1
- package/dist/gpu-physics/gpu-physics-ensemble.js +99 -3
- package/dist/gpu-physics/gpu-physics-ensemble.js.map +1 -1
- package/dist/gpu-physics/gpu-rigid-body-world.cjs +568 -77
- package/dist/gpu-physics/gpu-rigid-body-world.d.ts +86 -0
- package/dist/gpu-physics/gpu-rigid-body-world.d.ts.map +1 -1
- package/dist/gpu-physics/gpu-rigid-body-world.js +617 -76
- package/dist/gpu-physics/gpu-rigid-body-world.js.map +1 -1
- package/dist/gpu-physics/index.cjs +23 -2
- package/dist/gpu-physics/index.cjs.map +3 -3
- package/dist/gpu-physics/index.d.ts +9 -2
- package/dist/gpu-physics/index.d.ts.map +1 -1
- package/dist/gpu-physics/index.js +6 -1
- package/dist/gpu-physics/index.js.map +1 -1
- package/dist/gpu-physics/rigid-body-bounds-shaders.cjs +21 -8
- package/dist/gpu-physics/rigid-body-bounds-shaders.d.ts +2 -1
- package/dist/gpu-physics/rigid-body-bounds-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-bounds-shaders.js +15 -1
- package/dist/gpu-physics/rigid-body-bounds-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-convex-shaders.cjs +3 -2
- package/dist/gpu-physics/rigid-body-convex-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-convex-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-convex-shaders.js +3 -2
- package/dist/gpu-physics/rigid-body-convex-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-reset.cjs +36 -7
- package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-reset.js +42 -7
- package/dist/gpu-physics/rigid-body-ensemble-reset.js.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.cjs +23 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts +4 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.js +25 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.js.map +1 -1
- package/dist/gpu-physics/rigid-body-geometry.cjs +41 -4
- package/dist/gpu-physics/rigid-body-geometry.d.ts +10 -1
- package/dist/gpu-physics/rigid-body-geometry.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-geometry.js +44 -3
- package/dist/gpu-physics/rigid-body-geometry.js.map +1 -1
- package/dist/gpu-physics/rigid-body-height-field-shader.cjs +80 -0
- package/dist/gpu-physics/rigid-body-height-field-shader.d.ts +3 -0
- package/dist/gpu-physics/rigid-body-height-field-shader.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-height-field-shader.js +56 -0
- package/dist/gpu-physics/rigid-body-height-field-shader.js.map +1 -0
- package/dist/gpu-physics/rigid-body-height-field.cjs +166 -0
- package/dist/gpu-physics/rigid-body-height-field.d.ts +55 -0
- package/dist/gpu-physics/rigid-body-height-field.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-height-field.js +184 -0
- package/dist/gpu-physics/rigid-body-height-field.js.map +1 -0
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.cjs +4 -2
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.js +4 -2
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-mesh.cjs +72 -17
- package/dist/gpu-physics/rigid-body-mesh.d.ts +3 -0
- package/dist/gpu-physics/rigid-body-mesh.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-mesh.js +76 -20
- package/dist/gpu-physics/rigid-body-mesh.js.map +1 -1
- package/dist/gpu-physics/rigid-body-parallel-shaders.cjs +24 -9
- package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-parallel-shaders.js +28 -9
- package/dist/gpu-physics/rigid-body-parallel-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-properties.cjs +4 -4
- package/dist/gpu-physics/rigid-body-properties.d.ts +6 -0
- package/dist/gpu-physics/rigid-body-properties.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-properties.js +1 -1
- package/dist/gpu-physics/rigid-body-properties.js.map +1 -1
- package/dist/gpu-physics/rigid-body-publication.cjs +2 -2
- package/dist/gpu-physics/rigid-body-publication.js +1 -1
- package/dist/gpu-physics/rigid-body-publication.js.map +1 -1
- package/dist/gpu-physics/rigid-body-query-geometry.cjs +22 -4
- package/dist/gpu-physics/rigid-body-query-geometry.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-query-geometry.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-query-geometry.js +22 -4
- package/dist/gpu-physics/rigid-body-query-geometry.js.map +1 -1
- package/dist/gpu-physics/rigid-body-shaders.cjs +12 -6
- package/dist/gpu-physics/rigid-body-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-shaders.js +15 -7
- package/dist/gpu-physics/rigid-body-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-shape-properties.cjs +2 -0
- package/dist/gpu-physics/rigid-body-shape-properties.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-shape-properties.js +2 -0
- package/dist/gpu-physics/rigid-body-shape-properties.js.map +1 -1
- package/dist/gpu-physics/rigid-body-terrain-atlas.cjs +287 -0
- package/dist/gpu-physics/rigid-body-terrain-atlas.d.ts +87 -0
- package/dist/gpu-physics/rigid-body-terrain-atlas.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-atlas.js +275 -0
- package/dist/gpu-physics/rigid-body-terrain-atlas.js.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.cjs +240 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.d.ts +76 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.js +247 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.js.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.cjs +215 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.d.ts +25 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.js +218 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.js.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.cjs +263 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.d.ts +97 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.js +250 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.js.map +1 -0
- package/dist/gpu-physics/rigid-body-triggers.cjs +1 -0
- package/dist/gpu-physics/rigid-body-triggers.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-triggers.js +1 -0
- package/dist/gpu-physics/rigid-body-triggers.js.map +1 -1
- package/dist/gpu-physics/rigid-body-vehicle.cjs +145 -0
- package/dist/gpu-physics/rigid-body-vehicle.d.ts +47 -0
- package/dist/gpu-physics/rigid-body-vehicle.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-vehicle.js +119 -0
- package/dist/gpu-physics/rigid-body-vehicle.js.map +1 -0
- package/dist/gpu-pointcloud/index.cjs.map +1 -1
- package/dist/gpu-project/benchmarks.cjs.map +2 -2
- package/dist/gpu-project/coordinate-projection-graph.cjs +59 -0
- package/dist/gpu-project/coordinate-projection-graph.d.ts +23 -0
- package/dist/gpu-project/coordinate-projection-graph.d.ts.map +1 -0
- package/dist/gpu-project/coordinate-projection-graph.js +40 -0
- package/dist/gpu-project/coordinate-projection-graph.js.map +1 -0
- package/dist/gpu-project/cpu-geoarrow.cjs +112 -0
- package/dist/gpu-project/cpu-geoarrow.d.ts +10 -0
- package/dist/gpu-project/cpu-geoarrow.d.ts.map +1 -0
- package/dist/gpu-project/cpu-geoarrow.js +103 -0
- package/dist/gpu-project/cpu-geoarrow.js.map +1 -0
- package/dist/gpu-project/cpu-geometry-pipelines.cjs +134 -0
- package/dist/gpu-project/cpu-geometry-pipelines.d.ts +19 -0
- package/dist/gpu-project/cpu-geometry-pipelines.d.ts.map +1 -0
- package/dist/gpu-project/cpu-geometry-pipelines.js +114 -0
- package/dist/gpu-project/cpu-geometry-pipelines.js.map +1 -0
- package/dist/gpu-project/cpu-projection-operation.cjs +54 -0
- package/dist/gpu-project/cpu-projection-operation.d.ts +14 -0
- package/dist/gpu-project/cpu-projection-operation.d.ts.map +1 -0
- package/dist/gpu-project/cpu-projection-operation.js +37 -0
- package/dist/gpu-project/cpu-projection-operation.js.map +1 -0
- package/dist/gpu-project/crs.cjs.map +3 -3
- package/dist/gpu-project/crs.d.ts +1 -1
- package/dist/gpu-project/geoarrow.cjs +36 -0
- package/dist/gpu-project/geoarrow.cjs.map +6 -0
- package/dist/gpu-project/geoarrow.d.ts +3 -0
- package/dist/gpu-project/geoarrow.d.ts.map +1 -0
- package/dist/gpu-project/geoarrow.js +7 -0
- package/dist/gpu-project/geoarrow.js.map +1 -0
- package/dist/gpu-project/graph.cjs +27 -0
- package/dist/gpu-project/graph.cjs.map +6 -0
- package/dist/gpu-project/graph.d.ts +2 -0
- package/dist/gpu-project/graph.d.ts.map +1 -0
- package/dist/gpu-project/graph.js +6 -0
- package/dist/gpu-project/graph.js.map +1 -0
- package/dist/gpu-project/index.cjs +3 -0
- package/dist/gpu-project/index.cjs.map +3 -3
- package/dist/gpu-project/index.d.ts +1 -0
- package/dist/gpu-project/index.d.ts.map +1 -1
- package/dist/gpu-project/index.js +1 -0
- package/dist/gpu-project/index.js.map +1 -1
- package/dist/gpu-project/projection-crs-benchmark.cjs +2 -2
- package/dist/gpu-project/projection-crs-benchmark.d.ts +1 -1
- package/dist/gpu-project/projection-crs-benchmark.js +1 -1
- package/dist/gpu-project/projection-crs-input.cjs +7 -7
- package/dist/gpu-project/projection-crs-input.d.ts +1 -1
- package/dist/gpu-project/projection-crs-input.js +4 -4
- package/dist/gpu-project/projection-engine.d.ts +2 -2
- package/dist/gpu-project-benchmarks.cjs +21 -0
- package/dist/gpu-project-benchmarks.d.ts +2 -0
- package/dist/gpu-project-benchmarks.d.ts.map +1 -0
- package/dist/gpu-project-benchmarks.js +5 -0
- package/dist/gpu-project-benchmarks.js.map +1 -0
- package/dist/gpu-project-crs.cjs +21 -0
- package/dist/gpu-project-crs.d.ts +2 -0
- package/dist/gpu-project-crs.d.ts.map +1 -0
- package/dist/gpu-project-crs.js +5 -0
- package/dist/gpu-project-crs.js.map +1 -0
- package/dist/gpu-project-geoarrow.cjs +21 -0
- package/dist/gpu-project-geoarrow.d.ts +2 -0
- package/dist/gpu-project-geoarrow.d.ts.map +1 -0
- package/dist/gpu-project-geoarrow.js +5 -0
- package/dist/gpu-project-geoarrow.js.map +1 -0
- package/dist/gpu-project-graph.cjs +21 -0
- package/dist/gpu-project-graph.d.ts +2 -0
- package/dist/gpu-project-graph.d.ts.map +1 -0
- package/dist/gpu-project-graph.js +5 -0
- package/dist/gpu-project-graph.js.map +1 -0
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.cjs +75 -5
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.d.ts +5 -1
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.d.ts.map +1 -1
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.js +86 -6
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.js.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.cjs +9 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts +2 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js +10 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-transfer.d.ts +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-transfer.d.ts.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-value.d.ts +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-value.d.ts.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph.cjs +126 -10
- package/dist/gpu-simple-graph/gpu-simple-graph.d.ts +36 -11
- package/dist/gpu-simple-graph/gpu-simple-graph.d.ts.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph.js +137 -12
- package/dist/gpu-simple-graph/gpu-simple-graph.js.map +1 -1
- package/dist/gpu-simple-graph/index.cjs.map +3 -3
- package/dist/gpu-simple-graph/index.d.ts +1 -1
- package/dist/gpu-simple-graph/index.d.ts.map +1 -1
- package/dist/gpu-simple-graph/index.js.map +1 -1
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.cjs +25 -0
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.d.ts +7 -1
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.js +28 -0
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.js.map +1 -1
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.cjs +7 -0
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.d.ts +2 -0
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.js +7 -0
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.js.map +1 -1
- package/dist/gpu-simple-graph/operation/operation.d.ts +1 -1
- package/dist/gpu-simple-graph/operation/operation.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operations/convert-colors.cjs +6 -6
- package/dist/gpu-simple-graph/operations/convert-colors.d.ts +5 -1
- package/dist/gpu-simple-graph/operations/convert-colors.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operations/convert-colors.js +12 -7
- package/dist/gpu-simple-graph/operations/convert-colors.js.map +1 -1
- package/dist/gpu-simple-graph/operations/cpu/convert-colors.cjs +16 -33
- package/dist/gpu-simple-graph/operations/cpu/convert-colors.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operations/cpu/convert-colors.js +22 -35
- package/dist/gpu-simple-graph/operations/cpu/convert-colors.js.map +1 -1
- package/dist/gpu-simple-graph/operations/cpu/index.cjs.map +3 -3
- package/dist/gpu-simple-graph/operations/webgl/index.cjs.map +3 -3
- package/dist/gpu-simple-graph/operations/webgpu/convert-colors.cjs +31 -13
- package/dist/gpu-simple-graph/operations/webgpu/convert-colors.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operations/webgpu/convert-colors.js +42 -13
- package/dist/gpu-simple-graph/operations/webgpu/convert-colors.js.map +1 -1
- package/dist/gpu-simple-graph/operations/webgpu/index.cjs.map +1 -1
- package/dist/gpu-simple-graph-cpu.cjs +21 -0
- package/dist/gpu-simple-graph-cpu.d.ts +2 -0
- package/dist/gpu-simple-graph-cpu.d.ts.map +1 -0
- package/dist/gpu-simple-graph-cpu.js +5 -0
- package/dist/gpu-simple-graph-cpu.js.map +1 -0
- package/dist/gpu-simple-graph-webgl.cjs +21 -0
- package/dist/gpu-simple-graph-webgl.d.ts +2 -0
- package/dist/gpu-simple-graph-webgl.d.ts.map +1 -0
- package/dist/gpu-simple-graph-webgl.js +5 -0
- package/dist/gpu-simple-graph-webgl.js.map +1 -0
- package/dist/gpu-simple-graph-webgpu.cjs +21 -0
- package/dist/gpu-simple-graph-webgpu.d.ts +2 -0
- package/dist/gpu-simple-graph-webgpu.d.ts.map +1 -0
- package/dist/gpu-simple-graph-webgpu.js +5 -0
- package/dist/gpu-simple-graph-webgpu.js.map +1 -0
- package/dist/gpu-sql/gpu-sql.cjs +159 -328
- package/dist/gpu-sql/gpu-sql.d.ts +1 -1
- package/dist/gpu-sql/gpu-sql.d.ts.map +1 -1
- package/dist/gpu-sql/gpu-sql.js +186 -340
- package/dist/gpu-sql/gpu-sql.js.map +1 -1
- package/dist/gpu-sql/index.cjs.map +3 -3
- package/dist/gpu-tables/index.cjs.map +2 -2
- package/dist/gpu-tables/table/gpu-table.cjs +2 -2
- package/dist/gpu-tables/table/gpu-table.d.ts.map +1 -1
- package/dist/gpu-tables/table/gpu-table.js +2 -2
- package/dist/gpu-tables/table/gpu-table.js.map +1 -1
- package/dist/gpu-timeseries/index.cjs.map +1 -1
- package/dist/index.cjs +11 -0
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +30 -16
- package/src/arrow/arrow-colors.ts +194 -33
- package/src/arrow/arrow-utils/arrow-paths.ts +5 -3
- package/src/arrow/cpu/arrow-coordinate-projection.ts +18 -0
- package/src/arrow/cpu/arrow-cpu-pipelines.ts +9 -0
- package/src/arrow/cpu/arrow-cpu-vector-adapters.ts +153 -0
- package/src/arrow/geoarrow/arrow-geoarrow-adapter.ts +21 -493
- package/src/arrow/geoarrow/arrow-geoarrow-conversion.ts +7 -5
- package/src/arrow/geoarrow/arrow-polygon-tessellation.ts +1 -1
- package/src/arrow/gpu/arrow-column-gpu-vector.ts +67 -14
- package/src/arrow/gpu/arrow-gpu-table-conversion.ts +96 -4
- package/src/arrow/gpu/arrow-gpu-vector-adapters.ts +20 -7
- package/src/arrow/gpu/arrow-gpu-vector-conversion.ts +49 -6
- package/src/arrow/index.ts +14 -0
- package/src/experimental-models.ts +5 -0
- package/src/experimental-simulation.ts +5 -0
- package/src/geospatial/gpu-point-spatial-query.ts +2 -15
- package/src/gpu-core/compiled-gpu-graph.ts +73 -1
- package/src/gpu-core/gpu-command-graph-compiler.ts +25 -2
- package/src/gpu-core/gpu-command-graph-types.ts +20 -0
- package/src/gpu-core/gpu-command-graph.ts +48 -11
- package/src/gpu-core/gpu-cpu-execution.ts +345 -0
- package/src/gpu-core/gpu-cpu-operation.ts +65 -0
- package/src/gpu-core/gpu-dispatch-utils.ts +13 -1
- package/src/gpu-core/gpu-expression-operation.ts +1 -1
- package/src/gpu-core/gpu-expression-plan.ts +11 -3
- package/src/gpu-core/gpu-graph-compiler.ts +61 -0
- package/src/gpu-core/gpu-graph.ts +3 -3
- package/src/gpu-core/gpu-grid-aggregation.ts +2 -5
- package/src/gpu-core/gpu-grid-binning.ts +2 -5
- package/src/gpu-core/gpu-grid-coordinate.ts +24 -0
- package/src/gpu-core/gpu-grid-index-internals.ts +2 -15
- package/src/gpu-core/gpu-grid-index-query.ts +2 -16
- package/src/gpu-core/gpu-group-aggregation.ts +38 -50
- package/src/gpu-core/gpu-operation.ts +9 -7
- package/src/gpu-core/gpu-reduction.ts +32 -42
- package/src/gpu-core/gpu-render-operation.ts +42 -0
- package/src/gpu-core/gpu-scan.ts +59 -45
- package/src/gpu-core/gpu-segmented-reduction.ts +20 -10
- package/src/gpu-core/gpu-segmented-scan.ts +82 -17
- package/src/gpu-core/gpu-semantic-aggregation-operation.ts +150 -0
- package/src/gpu-core/gpu-shader-pass-kernel.ts +307 -0
- package/src/gpu-core/gpu-shader-pass-operation.ts +103 -0
- package/src/gpu-core/gpu-texture-plan.ts +3 -2
- package/src/gpu-core/index.ts +39 -0
- package/src/gpu-data/color-conversion.ts +158 -0
- package/src/gpu-data/cpu-data.ts +62 -0
- package/src/gpu-data/cpu-gpu-vector-transfer.ts +110 -0
- package/src/gpu-data/cpu-vector.ts +31 -0
- package/src/gpu-data/gpu-data-buffer-props.ts +25 -0
- package/src/gpu-data/gpu-vector-wgsl-layout.ts +79 -0
- package/src/gpu-data/index.ts +15 -0
- package/src/gpu-dataframe/gpu-data-frame-query.ts +24 -31
- package/src/gpu-dataframe/gpu-expression-shader.ts +128 -7
- package/src/gpu-dataframe/gpu-expression.ts +259 -1
- package/src/gpu-dataframe/gpu-global-aggregation-compiler.ts +0 -1
- package/src/gpu-dataframe/gpu-global-aggregation-query.ts +5 -3
- package/src/gpu-dataframe/gpu-global-sort-compiler.ts +26 -12
- package/src/gpu-dataframe/gpu-group-aggregation-compiler.ts +0 -1
- package/src/gpu-dataframe/gpu-group-by-query.ts +5 -3
- package/src/gpu-dataframe/gpu-histogram-compiler.ts +0 -1
- package/src/gpu-dataframe/gpu-join-compiler.ts +0 -2
- package/src/gpu-dataframe/gpu-query-compiler.ts +3 -3
- package/src/gpu-dataframe/gpu-sort-compiler.ts +0 -1
- package/src/gpu-dataframe/gpu-sort-query.ts +31 -5
- package/src/gpu-dataframe/index.ts +26 -2
- package/src/gpu-dataframe/portable-expression.ts +194 -0
- package/src/gpu-dggs-benchmarks.ts +5 -0
- package/src/gpu-graph/index.ts +17 -0
- package/src/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.ts +2 -15
- package/src/gpu-graph-algorithms-benchmarks.ts +5 -0
- package/src/gpu-physics/gpu-physics-ensemble-terrain.ts +114 -0
- package/src/gpu-physics/gpu-physics-ensemble.ts +147 -4
- package/src/gpu-physics/gpu-rigid-body-world.ts +797 -102
- package/src/gpu-physics/index.ts +38 -0
- package/src/gpu-physics/rigid-body-bounds-shaders.ts +16 -1
- package/src/gpu-physics/rigid-body-convex-shaders.ts +3 -2
- package/src/gpu-physics/rigid-body-ensemble-reset.ts +48 -8
- package/src/gpu-physics/rigid-body-ensemble-transaction.ts +34 -1
- package/src/gpu-physics/rigid-body-geometry.ts +49 -4
- package/src/gpu-physics/rigid-body-height-field-shader.ts +56 -0
- package/src/gpu-physics/rigid-body-height-field.ts +257 -0
- package/src/gpu-physics/rigid-body-mesh-query-shaders.ts +4 -2
- package/src/gpu-physics/rigid-body-mesh.ts +97 -26
- package/src/gpu-physics/rigid-body-parallel-shaders.ts +32 -9
- package/src/gpu-physics/rigid-body-properties.ts +5 -2
- package/src/gpu-physics/rigid-body-publication.ts +1 -1
- package/src/gpu-physics/rigid-body-query-geometry.ts +22 -4
- package/src/gpu-physics/rigid-body-shaders.ts +19 -7
- package/src/gpu-physics/rigid-body-shape-properties.ts +2 -0
- package/src/gpu-physics/rigid-body-terrain-atlas.ts +378 -0
- package/src/gpu-physics/rigid-body-terrain-lod.ts +332 -0
- package/src/gpu-physics/rigid-body-terrain-stitch.ts +286 -0
- package/src/gpu-physics/rigid-body-terrain-stream.ts +323 -0
- package/src/gpu-physics/rigid-body-triggers.ts +1 -0
- package/src/gpu-physics/rigid-body-vehicle.ts +166 -0
- package/src/gpu-project/README.md +2 -2
- package/src/gpu-project/coordinate-projection-graph.ts +59 -0
- package/src/gpu-project/cpu-geoarrow.ts +135 -0
- package/src/gpu-project/cpu-geometry-pipelines.ts +159 -0
- package/src/gpu-project/cpu-projection-operation.ts +49 -0
- package/src/gpu-project/crs.ts +2 -2
- package/src/gpu-project/geoarrow.ts +11 -0
- package/src/gpu-project/graph.ts +10 -0
- package/src/gpu-project/index.ts +2 -0
- package/src/gpu-project/projection-crs-benchmark.ts +2 -2
- package/src/gpu-project/projection-crs-input.ts +4 -4
- package/src/gpu-project/projection-engine.ts +2 -2
- package/src/gpu-project-benchmarks.ts +5 -0
- package/src/gpu-project-crs.ts +5 -0
- package/src/gpu-project-geoarrow.ts +5 -0
- package/src/gpu-project-graph.ts +5 -0
- package/src/gpu-simple-graph/compiled-gpu-expression-graph.ts +97 -6
- package/src/gpu-simple-graph/gpu-simple-graph-lowering.ts +11 -0
- package/src/gpu-simple-graph/gpu-simple-graph-transfer.ts +1 -1
- package/src/gpu-simple-graph/gpu-simple-graph-value.ts +1 -1
- package/src/gpu-simple-graph/gpu-simple-graph.ts +163 -19
- package/src/gpu-simple-graph/index.ts +1 -0
- package/src/gpu-simple-graph/operation/gpu-data-evaluator.ts +25 -1
- package/src/gpu-simple-graph/operation/gpu-vector-evaluator.ts +7 -0
- package/src/gpu-simple-graph/operation/operation.ts +1 -1
- package/src/gpu-simple-graph/operations/convert-colors.ts +22 -7
- package/src/gpu-simple-graph/operations/cpu/convert-colors.ts +31 -48
- package/src/gpu-simple-graph/operations/swizzle.ts +1 -1
- package/src/gpu-simple-graph/operations/webgpu/convert-colors.ts +47 -13
- package/src/gpu-simple-graph-cpu.ts +5 -0
- package/src/gpu-simple-graph-webgl.ts +5 -0
- package/src/gpu-simple-graph-webgpu.ts +5 -0
- package/src/gpu-sql/gpu-sql.ts +238 -354
- package/src/gpu-tables/table/gpu-table.ts +2 -1
- package/src/index.ts +21 -0
|
@@ -32,6 +32,7 @@ class SimpleGraphLowering {
|
|
|
32
32
|
bindings;
|
|
33
33
|
owned = /* @__PURE__ */ new Set();
|
|
34
34
|
outputs = /* @__PURE__ */ new Map();
|
|
35
|
+
inputs = /* @__PURE__ */ new Map();
|
|
35
36
|
graphValues = /* @__PURE__ */ new Map();
|
|
36
37
|
scalars = /* @__PURE__ */ new Map();
|
|
37
38
|
vectors = /* @__PURE__ */ new Map();
|
|
@@ -151,6 +152,13 @@ class SimpleGraphLowering {
|
|
|
151
152
|
registerOutput(id, evaluator) {
|
|
152
153
|
(0, import_core.assert)(!this.outputs.has(id));
|
|
153
154
|
this.outputs.set(id, new import_gpu_simple_graph_operation.GPUSimpleGraphOperation({ id, evaluator }));
|
|
155
|
+
const chunks = evaluator instanceof import_gpu_vector_evaluator.GPUVectorEvaluator ? evaluator.gpuDataEvaluators : [evaluator];
|
|
156
|
+
if (chunks.every((chunk) => !chunk.source))
|
|
157
|
+
this.registerInput(id, evaluator);
|
|
158
|
+
}
|
|
159
|
+
registerInput(id, evaluator) {
|
|
160
|
+
(0, import_core.assert)(!this.inputs.has(id) || this.inputs.get(id) === evaluator);
|
|
161
|
+
this.inputs.set(id, evaluator);
|
|
154
162
|
}
|
|
155
163
|
resolveVector(vector) {
|
|
156
164
|
var _a;
|
|
@@ -171,6 +179,7 @@ class SimpleGraphLowering {
|
|
|
171
179
|
const evaluator = import_gpu_vector_evaluator.GPUVectorEvaluator.fromGPUDataEvaluators(data.map((chunk) => this.own(import_gpu_data_evaluator.GPUDataEvaluator.fromGPUData(chunk))), { id: vector.id, format: vector.format });
|
|
172
180
|
this.owned.add(evaluator);
|
|
173
181
|
this.vectors.set(vector, evaluator);
|
|
182
|
+
this.registerInput(vector.id, evaluator);
|
|
174
183
|
return evaluator;
|
|
175
184
|
}
|
|
176
185
|
}
|
|
@@ -10,6 +10,7 @@ export declare class SimpleGraphLowering {
|
|
|
10
10
|
private readonly bindings;
|
|
11
11
|
readonly owned: Set<GPUDataEvaluator | GPUVectorEvaluator>;
|
|
12
12
|
readonly outputs: Map<string, GPUSimpleGraphOperation<import("./gpu-simple-graph-operation").GPUSimpleGraphEvaluator>>;
|
|
13
|
+
readonly inputs: Map<string, GPUDataEvaluator | GPUVectorEvaluator>;
|
|
13
14
|
private readonly graphValues;
|
|
14
15
|
private readonly scalars;
|
|
15
16
|
private readonly vectors;
|
|
@@ -21,6 +22,7 @@ export declare class SimpleGraphLowering {
|
|
|
21
22
|
private own;
|
|
22
23
|
private registerValue;
|
|
23
24
|
private registerOutput;
|
|
25
|
+
private registerInput;
|
|
24
26
|
private resolveVector;
|
|
25
27
|
}
|
|
26
28
|
//# sourceMappingURL=gpu-simple-graph-lowering.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gpu-simple-graph-lowering.d.ts","sourceRoot":"","sources":["../../src/gpu-simple-graph/gpu-simple-graph-lowering.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,gBAAgB,EAAC,0CAAuC;AAChE,OAAO,EAAC,kBAAkB,EAAC,4CAAyC;AAEpE,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EAClB,KAAK,gBAAgB,EAEtB,MAAM,yBAAyB,CAAC;AACjC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,CAA6B;gBAEvB,QAAQ,EAAE,gBAAgB;IAEvD,KAAK,CAAC,SAAS,EAAE,eAAe,GAAG,IAAI;IAmEvC,OAAO,CAAC,WAAW;IAuDnB,OAAO,IAAI,IAAI;IAKf,OAAO,CAAC,GAAG;IAKX,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,aAAa;CA4BtB"}
|
|
@@ -14,6 +14,7 @@ export class SimpleGraphLowering {
|
|
|
14
14
|
bindings;
|
|
15
15
|
owned = new Set();
|
|
16
16
|
outputs = new Map();
|
|
17
|
+
inputs = new Map();
|
|
17
18
|
graphValues = new Map();
|
|
18
19
|
scalars = new Map();
|
|
19
20
|
vectors = new Map();
|
|
@@ -156,6 +157,14 @@ export class SimpleGraphLowering {
|
|
|
156
157
|
// Semantic output IDs and explicitly wrapped evaluator IDs share one namespace.
|
|
157
158
|
assert(!this.outputs.has(id));
|
|
158
159
|
this.outputs.set(id, new GPUSimpleGraphOperation({ id, evaluator }));
|
|
160
|
+
const chunks = evaluator instanceof GPUVectorEvaluator ? evaluator.gpuDataEvaluators : [evaluator];
|
|
161
|
+
if (chunks.every(chunk => !chunk.source))
|
|
162
|
+
this.registerInput(id, evaluator);
|
|
163
|
+
}
|
|
164
|
+
registerInput(id, evaluator) {
|
|
165
|
+
// An invalidation name must identify exactly one input, including semantic vector bindings.
|
|
166
|
+
assert(!this.inputs.has(id) || this.inputs.get(id) === evaluator);
|
|
167
|
+
this.inputs.set(id, evaluator);
|
|
159
168
|
}
|
|
160
169
|
resolveVector(vector) {
|
|
161
170
|
this.registerValue(vector);
|
|
@@ -178,6 +187,7 @@ export class SimpleGraphLowering {
|
|
|
178
187
|
const evaluator = GPUVectorEvaluator.fromGPUDataEvaluators(data.map(chunk => this.own(GPUDataEvaluator.fromGPUData(chunk))), { id: vector.id, format: vector.format });
|
|
179
188
|
this.owned.add(evaluator);
|
|
180
189
|
this.vectors.set(vector, evaluator);
|
|
190
|
+
this.registerInput(vector.id, evaluator);
|
|
181
191
|
return evaluator;
|
|
182
192
|
}
|
|
183
193
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gpu-simple-graph-lowering.js","sourceRoot":"","sources":["../../src/gpu-simple-graph/gpu-simple-graph-lowering.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,+BAA+B;AAC/B,4DAA4D;AAE5D,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,0CAAuC;AAChE,OAAO,EAAC,kBAAkB,EAAC,4CAAyC;AACpE,OAAO,EAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAC,mCAAgC;AAC9E,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EAIxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,iBAAiB,EAClB,uCAAoC;AACrC,OAAO,EAAC,uBAAuB,EAAC,wCAAqC;AAErE,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAC5B,qBAAqB,EACtB,oCAAiC;AAWlC,yFAAyF;AACzF,MAAM,OAAO,mBAAmB;
|
|
1
|
+
{"version":3,"file":"gpu-simple-graph-lowering.js","sourceRoot":"","sources":["../../src/gpu-simple-graph/gpu-simple-graph-lowering.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,+BAA+B;AAC/B,4DAA4D;AAE5D,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,0CAAuC;AAChE,OAAO,EAAC,kBAAkB,EAAC,4CAAyC;AACpE,OAAO,EAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAC,mCAAgC;AAC9E,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EAIxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,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AAS,CAAC,CAAC;QACzC,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type SignedDataType } from '@luma.gl/core';
|
|
2
|
-
import type { TypedArray } from '@math.gl/core';
|
|
2
|
+
import type { TypedArray } from '@math.gl/core/types';
|
|
3
3
|
import type { GPUOperation, GPUOperationMetadata } from '@luma.gl/graph/gpu-core';
|
|
4
4
|
import type { GPUSimpleGraphEvaluator } from "./gpu-simple-graph-operation.js";
|
|
5
5
|
/** CPU upload recipe. Data is borrowed until the first run; subsequent runs use cached results. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gpu-simple-graph-transfer.d.ts","sourceRoot":"","sources":["../../src/gpu-simple-graph/gpu-simple-graph-transfer.ts"],"names":[],"mappings":"AAIA,OAAO,EAA8B,KAAK,cAAc,EAAC,MAAM,eAAe,CAAC;AAC/E,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"gpu-simple-graph-transfer.d.ts","sourceRoot":"","sources":["../../src/gpu-simple-graph/gpu-simple-graph-transfer.ts"],"names":[],"mappings":"AAIA,OAAO,EAA8B,KAAK,cAAc,EAAC,MAAM,eAAe,CAAC;AAC/E,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAKpD,OAAO,KAAK,EAAC,YAAY,EAAE,oBAAoB,EAAC,MAAM,yBAAyB,CAAC;AAChF,OAAO,KAAK,EAAC,uBAAuB,EAAC,wCAAqC;AAE1E,mGAAmG;AACnG,MAAM,MAAM,yBAAyB,GAAG;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,UAAU,GAAG,MAAM,EAAE,CAAC;IAC5B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,qGAAqG;AACrG,qBAAa,6BAA8B,YAAW,YAAY;IAGpD,QAAQ,CAAC,KAAK,EAAE,yBAAyB;IAFrD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,yBAAyB;gBACjB,KAAK,EAAE,yBAAyB;IAGrD,IAAI,QAAQ,IAAI,oBAAoB,CAEnC;CACF;AAED,2FAA2F;AAC3F,qBAAa,2BAA4B,YAAW,YAAY;IAGlD,QAAQ,CAAC,KAAK,EAAE;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC;IAFvD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,uBAAuB;gBACf,KAAK,EAAE;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC;IAGvD,IAAI,QAAQ,IAAI,oBAAoB,CAKnC;CACF;AAED,sFAAsF;AACtF,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,uBAAuB,EAC9B,KAAK,EAAE,GAAG,CAAC,uBAAuB,CAAC,GAClC,uBAAuB,CAYzB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TypedArray } from '@math.gl/core';
|
|
1
|
+
import type { TypedArray } from '@math.gl/core/types';
|
|
2
2
|
import type { GPUData } from '@luma.gl/graph/gpu-data';
|
|
3
3
|
import { GPUDataEvaluator } from "./operation/gpu-data-evaluator.js";
|
|
4
4
|
import { type GPUVectorEvaluator } from "./operation/gpu-vector-evaluator.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gpu-simple-graph-value.d.ts","sourceRoot":"","sources":["../../src/gpu-simple-graph/gpu-simple-graph-value.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3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E,OAAO,GAAG,mBAAmB;IAItD,gBAAgB;IAChB,MAAM,CAAC,SAAS,CACd,IAAI,EAAE,MAAM,OAAO,UAAU,EAC7B,kBAAkB,EAAE,SAAS,OAAO,EAAE,GACrC,mBAAmB;CAGvB;AAED,mGAAmG;AACnG,eAAO,MAAM,qBAAqB,EAAE,wBAMP,CAAC;AAE9B,uDAAuD;AACvD,qBAAa,4BAA6B,YAAW,YAAY;IAI7D,QAAQ,CAAC,KAAK,EAAE;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,mBAAmB,GAAG,SAAS,mBAAmB,EAAE,CAAA;KAAC;IAH3F,QAAQ,CAAC,IAAI,wBAAwB;IACrC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;gBAET,KAAK,EAAE;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,mBAAmB,GAAG,SAAS,mBAAmB,EAAE,CAAA;KAAC;IAI3F,IAAI,QAAQ,IAAI,oBAAoB,CAEnC;CACF;AAED,4GAA4G;AAC5G,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,GAAG,CAAC,mBAAmB,EAAE,gBAAgB,CAAC,EACjD,KAAK,EAAE,GAAG,CAAC,gBAAgB,GAAG,kBAAkB,CAAC,GAChD,gBAAgB,CAuClB"}
|
|
@@ -33,6 +33,7 @@ var import_gpu_simple_graph_operation = require("./gpu-simple-graph-operation.cj
|
|
|
33
33
|
var import_gpu_simple_graph_transfer = require("./gpu-simple-graph-transfer.cjs");
|
|
34
34
|
var import_gpu_simple_graph_value = require("./gpu-simple-graph-value.cjs");
|
|
35
35
|
var import_gpu_simple_graph_lowering = require("./gpu-simple-graph-lowering.cjs");
|
|
36
|
+
var import_gpu_command_graph = require("../gpu-core/gpu-command-graph.cjs");
|
|
36
37
|
class GPUSimpleGraph {
|
|
37
38
|
declarations = new import_gpu_graph.GPUGraph();
|
|
38
39
|
device;
|
|
@@ -41,6 +42,7 @@ class GPUSimpleGraph {
|
|
|
41
42
|
evaluatorIds = /* @__PURE__ */ new Set();
|
|
42
43
|
programOperations = [];
|
|
43
44
|
compiled = false;
|
|
45
|
+
renderOperations = [];
|
|
44
46
|
/** Execution capabilities; evaluators retain control of backend submission. */
|
|
45
47
|
capabilities;
|
|
46
48
|
constructor(deviceOrProps, props = {}) {
|
|
@@ -49,8 +51,8 @@ class GPUSimpleGraph {
|
|
|
49
51
|
this.id = (device ? props.id : deviceOrProps == null ? void 0 : deviceOrProps.id) ?? "simple-graph";
|
|
50
52
|
this.capabilities = Object.freeze({
|
|
51
53
|
callerControlledSubmission: (device == null ? void 0 : device.type) === "webgpu",
|
|
52
|
-
dynamicBindings:
|
|
53
|
-
transientAllocation:
|
|
54
|
+
dynamicBindings: true,
|
|
55
|
+
transientAllocation: Boolean(device)
|
|
54
56
|
});
|
|
55
57
|
}
|
|
56
58
|
addInput(id, descriptor) {
|
|
@@ -73,12 +75,16 @@ class GPUSimpleGraph {
|
|
|
73
75
|
}
|
|
74
76
|
/** Accepts evaluator operations, semantic composites, and recursively nested arrays. */
|
|
75
77
|
add(operation) {
|
|
78
|
+
return this.addOperations(operation);
|
|
79
|
+
}
|
|
80
|
+
addOperations(operation) {
|
|
76
81
|
(0, import_core.assert)(!this.compiled);
|
|
77
82
|
if (!this.device || operation instanceof import_gpu_expression_operation.GPUExpressionOperation) {
|
|
78
83
|
this.declarations.add(operation);
|
|
79
84
|
return this;
|
|
80
85
|
}
|
|
81
86
|
const pending = [];
|
|
87
|
+
let hasRenderOperation = this.renderOperations.length > 0;
|
|
82
88
|
const pendingEvaluatorIds = /* @__PURE__ */ new Set();
|
|
83
89
|
const operations = [];
|
|
84
90
|
const visit = (value) => {
|
|
@@ -89,7 +95,11 @@ class GPUSimpleGraph {
|
|
|
89
95
|
(0, import_core.assert)(value.type === "composite");
|
|
90
96
|
for (const child of value.operations)
|
|
91
97
|
visit(child);
|
|
98
|
+
} else if (value instanceof import_gpu_core.GPURenderOperation) {
|
|
99
|
+
hasRenderOperation = true;
|
|
100
|
+
pending.push(value);
|
|
92
101
|
} else {
|
|
102
|
+
(0, import_core.assert)(!hasRenderOperation);
|
|
93
103
|
(0, import_core.assert)(value instanceof import_gpu_simple_graph_value.GPUSimpleGraphValueOperation || value instanceof import_gpu_simple_graph_operation.GPUSimpleGraphOperation || value instanceof import_gpu_simple_graph_transfer.GPUSimpleGraphUploadOperation || value instanceof import_gpu_simple_graph_transfer.GPUSimpleGraphCopyOperation || value instanceof import_gpu_core.GPUGraphScalarLiteral || value instanceof import_gpu_core.GPUGraphScalarOperation || value instanceof import_gpu_core.GPUGraphVectorMADD);
|
|
94
104
|
if (value instanceof import_gpu_simple_graph_value.GPUSimpleGraphValueOperation || value instanceof import_gpu_simple_graph_operation.GPUSimpleGraphOperation || value instanceof import_gpu_simple_graph_transfer.GPUSimpleGraphUploadOperation || value instanceof import_gpu_simple_graph_transfer.GPUSimpleGraphCopyOperation) {
|
|
95
105
|
(0, import_core.assert)(value.id && !this.evaluatorIds.has(value.id) && !pendingEvaluatorIds.has(value.id));
|
|
@@ -108,7 +118,12 @@ class GPUSimpleGraph {
|
|
|
108
118
|
};
|
|
109
119
|
visit(operation);
|
|
110
120
|
collect(operation);
|
|
111
|
-
|
|
121
|
+
for (const value of pending) {
|
|
122
|
+
if (value instanceof import_gpu_core.GPURenderOperation)
|
|
123
|
+
this.renderOperations.push(value);
|
|
124
|
+
else
|
|
125
|
+
this.leafOperations.push(value);
|
|
126
|
+
}
|
|
112
127
|
for (const identifier of pendingEvaluatorIds)
|
|
113
128
|
this.evaluatorIds.add(identifier);
|
|
114
129
|
this.programOperations.push(...operations);
|
|
@@ -116,20 +131,24 @@ class GPUSimpleGraph {
|
|
|
116
131
|
}
|
|
117
132
|
/** Publish a graph value; compilation owns its internal execution state. */
|
|
118
133
|
addValue(identifier, value) {
|
|
119
|
-
this.
|
|
134
|
+
this.addOperations(new import_gpu_simple_graph_value.GPUSimpleGraphValueOperation({ id: identifier, value }));
|
|
120
135
|
return value;
|
|
121
136
|
}
|
|
122
137
|
/** Compatibility adapter for existing evaluator-based callers. Prefer addValue() for new code. */
|
|
123
138
|
addEvaluator(identifier, evaluator) {
|
|
124
|
-
this.
|
|
139
|
+
this.addOperations(new import_gpu_simple_graph_operation.GPUSimpleGraphOperation({ id: identifier, evaluator }));
|
|
125
140
|
return evaluator;
|
|
126
141
|
}
|
|
142
|
+
/** Appends shared render passes after the evaluator phase. Use the same operation in GPUGraph. */
|
|
143
|
+
addRenderOperation(operation) {
|
|
144
|
+
return this.addOperations(operation);
|
|
145
|
+
}
|
|
127
146
|
get operationTree() {
|
|
128
147
|
return Object.freeze([...this.programOperations, ...this.declarations.operations].map(import_gpu_core.getGPUOperationTree));
|
|
129
148
|
}
|
|
130
149
|
compile(deviceOrOptions = {}, expressionOptions = {}) {
|
|
131
150
|
if ("type" in deviceOrOptions) {
|
|
132
|
-
(0, import_core.assert)(!this.compiled && this.leafOperations.length === 0);
|
|
151
|
+
(0, import_core.assert)(!this.compiled && this.leafOperations.length === 0 && this.renderOperations.length === 0);
|
|
133
152
|
this.compiled = true;
|
|
134
153
|
return new import_compiled_gpu_expression_graph.CompiledGPUSimpleExpressionGraph(deviceOrOptions, this.declarations, expressionOptions);
|
|
135
154
|
}
|
|
@@ -144,6 +163,7 @@ class GPUSimpleGraph {
|
|
|
144
163
|
(0, import_core.assert)(!this.compiled);
|
|
145
164
|
this.compiled = true;
|
|
146
165
|
const lowering = new import_gpu_simple_graph_lowering.SimpleGraphLowering(options.bindings ?? {});
|
|
166
|
+
let renderGraph;
|
|
147
167
|
try {
|
|
148
168
|
for (const operation of this.leafOperations)
|
|
149
169
|
lowering.lower(operation);
|
|
@@ -217,8 +237,17 @@ class GPUSimpleGraph {
|
|
|
217
237
|
});
|
|
218
238
|
}
|
|
219
239
|
}
|
|
220
|
-
|
|
240
|
+
if (this.renderOperations.length) {
|
|
241
|
+
const renderBuilder = new import_gpu_command_graph.GPUCommandGraphBuilder(this.device, {
|
|
242
|
+
id: `${this.id}-render`
|
|
243
|
+
});
|
|
244
|
+
for (const operation of this.renderOperations)
|
|
245
|
+
renderBuilder.add(operation);
|
|
246
|
+
renderGraph = renderBuilder.compile();
|
|
247
|
+
}
|
|
248
|
+
return new CompiledGPUSimpleGraph(this.device, nodes, roots, this.operationTree, lowering.owned, Object.fromEntries(roots.map(({ id, evaluator }) => [id, getIdentifier(evaluator)])), renderGraph, lowering.inputs);
|
|
221
249
|
} catch (error) {
|
|
250
|
+
renderGraph == null ? void 0 : renderGraph.destroy();
|
|
222
251
|
lowering.destroy();
|
|
223
252
|
throw error;
|
|
224
253
|
}
|
|
@@ -226,6 +255,8 @@ class GPUSimpleGraph {
|
|
|
226
255
|
}
|
|
227
256
|
class CompiledGPUSimpleGraph {
|
|
228
257
|
ownedEvaluators;
|
|
258
|
+
renderGraph;
|
|
259
|
+
inputs;
|
|
229
260
|
nodes;
|
|
230
261
|
outputs;
|
|
231
262
|
/** Maps every selected output ID, including aliases, to its dependency inspection node. */
|
|
@@ -236,8 +267,10 @@ class CompiledGPUSimpleGraph {
|
|
|
236
267
|
running = false;
|
|
237
268
|
destroyed = false;
|
|
238
269
|
pendingScope;
|
|
239
|
-
constructor(device, nodes, roots, operationTree, ownedEvaluators = /* @__PURE__ */ new Set(), outputNodes = {}) {
|
|
270
|
+
constructor(device, nodes, roots, operationTree, ownedEvaluators = /* @__PURE__ */ new Set(), outputNodes = {}, renderGraph, inputs = /* @__PURE__ */ new Map()) {
|
|
240
271
|
this.ownedEvaluators = ownedEvaluators;
|
|
272
|
+
this.renderGraph = renderGraph;
|
|
273
|
+
this.inputs = inputs;
|
|
241
274
|
this.device = device;
|
|
242
275
|
this.nodes = Object.freeze(nodes.map((node) => Object.freeze({ ...node, dependencies: Object.freeze([...node.dependencies]) })));
|
|
243
276
|
this.executionPlan = Object.freeze([...roots]);
|
|
@@ -245,17 +278,99 @@ class CompiledGPUSimpleGraph {
|
|
|
245
278
|
this.outputNodes = Object.freeze({ ...outputNodes });
|
|
246
279
|
this.outputs = Object.freeze(Object.fromEntries(roots.map(({ id, evaluator }) => [id, evaluator])));
|
|
247
280
|
}
|
|
281
|
+
/** Invalidates changed named inputs and their reachable consumers, preserving other channels. */
|
|
282
|
+
invalidate(inputIds) {
|
|
283
|
+
(0, import_core.assert)(!this.running && !this.destroyed && !this.pendingScope);
|
|
284
|
+
const changed = /* @__PURE__ */ new Set();
|
|
285
|
+
for (const identifier of inputIds) {
|
|
286
|
+
const input = this.inputs.get(identifier);
|
|
287
|
+
(0, import_core.assert)(input && this.ownedEvaluators.has(input));
|
|
288
|
+
changed.add(input);
|
|
289
|
+
if (input instanceof import_gpu_vector_evaluator.GPUVectorEvaluator) {
|
|
290
|
+
for (const chunk of input.gpuDataEvaluators)
|
|
291
|
+
changed.add(chunk);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
const affected = /* @__PURE__ */ new Map();
|
|
295
|
+
const visit = (evaluator) => {
|
|
296
|
+
const existing = affected.get(evaluator);
|
|
297
|
+
if (existing !== void 0)
|
|
298
|
+
return existing;
|
|
299
|
+
const dependencies = getDependencies(evaluator).map(visit);
|
|
300
|
+
const dirty = changed.has(evaluator) || dependencies.some(Boolean);
|
|
301
|
+
affected.set(evaluator, dirty);
|
|
302
|
+
return dirty;
|
|
303
|
+
};
|
|
304
|
+
for (const input of changed)
|
|
305
|
+
visit(input);
|
|
306
|
+
for (const { evaluator } of this.executionPlan)
|
|
307
|
+
visit(evaluator);
|
|
308
|
+
for (const [evaluator, dirty] of affected) {
|
|
309
|
+
if (dirty)
|
|
310
|
+
(0, import_core.assert)(this.ownedEvaluators.has(evaluator));
|
|
311
|
+
}
|
|
312
|
+
for (const [evaluator, dirty] of affected) {
|
|
313
|
+
if (dirty)
|
|
314
|
+
evaluator.invalidate();
|
|
315
|
+
}
|
|
316
|
+
}
|
|
248
317
|
/** Releases semantic evaluator results, preserving borrowed inputs and wrappers. */
|
|
249
318
|
destroy() {
|
|
319
|
+
var _a;
|
|
250
320
|
(0, import_core.assert)(!this.running && !this.pendingScope);
|
|
251
321
|
if (this.destroyed)
|
|
252
322
|
return;
|
|
323
|
+
(_a = this.renderGraph) == null ? void 0 : _a.destroy();
|
|
253
324
|
for (const evaluator of this.ownedEvaluators)
|
|
254
325
|
evaluator.destroy();
|
|
255
326
|
this.destroyed = true;
|
|
256
327
|
}
|
|
257
|
-
|
|
258
|
-
|
|
328
|
+
runSync(options) {
|
|
329
|
+
(0, import_core.assert)(this.device.type === "webgl" && !(options == null ? void 0 : options.scope));
|
|
330
|
+
(0, import_core.assert)(!this.running && !this.destroyed && !this.pendingScope);
|
|
331
|
+
this.running = true;
|
|
332
|
+
try {
|
|
333
|
+
const results = {};
|
|
334
|
+
const evaluated = /* @__PURE__ */ new Set();
|
|
335
|
+
const evaluate = (evaluator) => {
|
|
336
|
+
if (evaluated.has(evaluator))
|
|
337
|
+
return;
|
|
338
|
+
for (const dependency of getDependencies(evaluator))
|
|
339
|
+
evaluate(dependency);
|
|
340
|
+
evaluator.evaluateSync(this.device);
|
|
341
|
+
evaluated.add(evaluator);
|
|
342
|
+
};
|
|
343
|
+
for (const { id, evaluator } of this.executionPlan) {
|
|
344
|
+
evaluate(evaluator);
|
|
345
|
+
results[id] = evaluator.gpuVector;
|
|
346
|
+
}
|
|
347
|
+
this.encodeRenderPasses(options);
|
|
348
|
+
return results;
|
|
349
|
+
} finally {
|
|
350
|
+
this.running = false;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
encodeRenderPasses(options) {
|
|
354
|
+
const scope = options == null ? void 0 : options.scope;
|
|
355
|
+
if (!this.renderGraph)
|
|
356
|
+
return;
|
|
357
|
+
const commandEncoder = (scope == null ? void 0 : scope.commandEncoder) ?? this.device.createCommandEncoder();
|
|
358
|
+
try {
|
|
359
|
+
this.renderGraph.encode(commandEncoder, {
|
|
360
|
+
buffers: options == null ? void 0 : options.buffers,
|
|
361
|
+
textures: options == null ? void 0 : options.textures,
|
|
362
|
+
// The public overload requires parameters unless Parameters is void.
|
|
363
|
+
parameters: options == null ? void 0 : options.parameters
|
|
364
|
+
});
|
|
365
|
+
if (!scope)
|
|
366
|
+
this.device.submit(commandEncoder.finish());
|
|
367
|
+
} finally {
|
|
368
|
+
if (!scope)
|
|
369
|
+
commandEncoder.destroy();
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
async run(options) {
|
|
373
|
+
const scope = options == null ? void 0 : options.scope;
|
|
259
374
|
(0, import_core.assert)(!this.running && !this.destroyed && !this.pendingScope);
|
|
260
375
|
if (scope) {
|
|
261
376
|
(0, import_core.assert)(scope.device === this.device);
|
|
@@ -285,6 +400,7 @@ class CompiledGPUSimpleGraph {
|
|
|
285
400
|
await evaluateDependencies(evaluator);
|
|
286
401
|
results.push([id, evaluator.gpuVector]);
|
|
287
402
|
}
|
|
403
|
+
this.encodeRenderPasses(options);
|
|
288
404
|
return Object.fromEntries(results);
|
|
289
405
|
} catch (error) {
|
|
290
406
|
scope == null ? void 0 : scope.cancel();
|
|
@@ -8,9 +8,10 @@ import { type Device } from '@luma.gl/core';
|
|
|
8
8
|
import { type GPUDataEvaluatorTargetBuffer } from "./operation/gpu-data-evaluator.js";
|
|
9
9
|
import { type GPUEvaluationScope } from "./operation/gpu-evaluation-scope.js";
|
|
10
10
|
import type { GPUVector, GPUVectorFormat } from '@luma.gl/graph/gpu-data';
|
|
11
|
-
import { type GPUGraphBindings, type GPUOperationLike, type GPUOperationTree } from '@luma.gl/graph/gpu-core';
|
|
11
|
+
import { GPURenderOperation, type GPUCommandGraphEncodeOptions, GPUCompositeOperation, type GPUGraphBindings, type GPUOperationLike, type GPUOperationTree } from '@luma.gl/graph/gpu-core';
|
|
12
12
|
import { GPUSimpleGraphOperation, type GPUSimpleGraphEvaluator } from "./gpu-simple-graph-operation.js";
|
|
13
13
|
import { GPUSimpleGraphValue } from "./gpu-simple-graph-value.js";
|
|
14
|
+
import { type CompiledGPUCommandGraph } from "../gpu-core/gpu-command-graph.js";
|
|
14
15
|
/** Inspection record for one evaluator in dependency order. */
|
|
15
16
|
export type GPUSimpleGraphNode = {
|
|
16
17
|
readonly id: string;
|
|
@@ -30,16 +31,20 @@ export type GPUSimpleGraphCompileOptions = {
|
|
|
30
31
|
outputTargets?: Readonly<Record<string, GPUDataEvaluatorTargetBuffer | readonly GPUDataEvaluatorTargetBuffer[]>>;
|
|
31
32
|
};
|
|
32
33
|
/** Run options; scopes defer submission until the caller submits or cancels. */
|
|
33
|
-
export type GPUSimpleGraphRunOptions = {
|
|
34
|
+
export type GPUSimpleGraphRunOptions<Parameters = void> = {
|
|
34
35
|
scope?: GPUEvaluationScope;
|
|
35
|
-
}
|
|
36
|
+
} & Pick<GPUCommandGraphEncodeOptions<Parameters>, 'buffers' | 'textures'> & ([Parameters] extends [void] ? {
|
|
37
|
+
parameters?: Parameters;
|
|
38
|
+
} : {
|
|
39
|
+
parameters: Parameters;
|
|
40
|
+
});
|
|
36
41
|
/**
|
|
37
42
|
* Prototype graph-shaped interface to the existing lazy GPGPU evaluator.
|
|
38
43
|
*
|
|
39
44
|
* Operations, backend selection, fusion, caching, and storage ownership remain with
|
|
40
45
|
* the evaluators. Explicit evaluator inputs are borrowed; semantic lowering owns its adapters.
|
|
41
46
|
*/
|
|
42
|
-
export declare class GPUSimpleGraph {
|
|
47
|
+
export declare class GPUSimpleGraph<Parameters = void> {
|
|
43
48
|
private readonly declarations;
|
|
44
49
|
readonly device?: Device;
|
|
45
50
|
readonly id: string;
|
|
@@ -47,11 +52,13 @@ export declare class GPUSimpleGraph {
|
|
|
47
52
|
private readonly evaluatorIds;
|
|
48
53
|
private readonly programOperations;
|
|
49
54
|
private compiled;
|
|
55
|
+
private readonly renderOperations;
|
|
50
56
|
/** Execution capabilities; evaluators retain control of backend submission. */
|
|
51
57
|
readonly capabilities: Readonly<{
|
|
52
58
|
callerControlledSubmission: boolean;
|
|
53
|
-
dynamicBindings:
|
|
54
|
-
|
|
59
|
+
dynamicBindings: true;
|
|
60
|
+
/** Evaluator render mode uses graph-managed transient resources. */
|
|
61
|
+
transientAllocation: boolean;
|
|
55
62
|
}>;
|
|
56
63
|
constructor(deviceOrProps?: Device | {
|
|
57
64
|
id?: string;
|
|
@@ -72,19 +79,25 @@ export declare class GPUSimpleGraph {
|
|
|
72
79
|
chunkLengths?: readonly number[];
|
|
73
80
|
}): GPUGraphVector<T>;
|
|
74
81
|
/** Accepts evaluator operations, semantic composites, and recursively nested arrays. */
|
|
75
|
-
add(operation:
|
|
82
|
+
add<Operation extends GPUOperationLike>(operation: Operation & (true extends HasIncompatibleRenderParameters<NoInfer<Operation>, Parameters> ? never : unknown)): this;
|
|
83
|
+
private addOperations;
|
|
76
84
|
/** Publish a graph value; compilation owns its internal execution state. */
|
|
77
85
|
addValue<Value extends GPUSimpleGraphValue | readonly GPUSimpleGraphValue[]>(identifier: string, value: Value): Value;
|
|
78
86
|
/** Compatibility adapter for existing evaluator-based callers. Prefer addValue() for new code. */
|
|
79
87
|
addEvaluator<Evaluator extends GPUSimpleGraphEvaluator>(identifier: string, evaluator: Evaluator): Evaluator;
|
|
88
|
+
/** Appends shared render passes after the evaluator phase. Use the same operation in GPUGraph. */
|
|
89
|
+
addRenderOperation(operation: GPURenderOperation<Parameters>): this;
|
|
80
90
|
get operationTree(): readonly GPUOperationTree[];
|
|
81
91
|
/** Captures selected roots and an inspectable dependency plan without executing work. */
|
|
82
92
|
compile<Outputs extends GPUGraphOutputs = Record<string, GPUVector>>(device: Device, options?: GPUGraphCompileOptions): CompiledGPUSimpleExpressionGraph<Outputs>;
|
|
83
|
-
compile(options?: GPUSimpleGraphCompileOptions): CompiledGPUSimpleGraph
|
|
93
|
+
compile(options?: GPUSimpleGraphCompileOptions): CompiledGPUSimpleGraph<Parameters>;
|
|
84
94
|
}
|
|
85
95
|
/** Snapshot of named evaluator outputs and their reachable dependency plan. */
|
|
86
|
-
export declare class CompiledGPUSimpleGraph {
|
|
96
|
+
export declare class CompiledGPUSimpleGraph<Parameters = void> {
|
|
87
97
|
private readonly ownedEvaluators;
|
|
98
|
+
/** Shared render executor, including buffer/texture inspection and ownership. */
|
|
99
|
+
readonly renderGraph?: CompiledGPUCommandGraph<Parameters> | undefined;
|
|
100
|
+
private readonly inputs;
|
|
88
101
|
readonly nodes: readonly GPUSimpleGraphNode[];
|
|
89
102
|
readonly outputs: Readonly<Record<string, GPUSimpleGraphEvaluator>>;
|
|
90
103
|
/** Maps every selected output ID, including aliases, to its dependency inspection node. */
|
|
@@ -95,10 +108,22 @@ export declare class CompiledGPUSimpleGraph {
|
|
|
95
108
|
private running;
|
|
96
109
|
private destroyed;
|
|
97
110
|
private pendingScope?;
|
|
98
|
-
constructor(device: Device, nodes: readonly GPUSimpleGraphNode[], roots: readonly GPUSimpleGraphOperation[], operationTree: readonly GPUOperationTree[], ownedEvaluators?: ReadonlySet<GPUSimpleGraphEvaluator>, outputNodes?: Readonly<Record<string, string
|
|
111
|
+
constructor(device: Device, nodes: readonly GPUSimpleGraphNode[], roots: readonly GPUSimpleGraphOperation[], operationTree: readonly GPUOperationTree[], ownedEvaluators?: ReadonlySet<GPUSimpleGraphEvaluator>, outputNodes?: Readonly<Record<string, string>>,
|
|
112
|
+
/** Shared render executor, including buffer/texture inspection and ownership. */
|
|
113
|
+
renderGraph?: CompiledGPUCommandGraph<Parameters> | undefined, inputs?: ReadonlyMap<string, GPUSimpleGraphEvaluator>);
|
|
114
|
+
/** Invalidates changed named inputs and their reachable consumers, preserving other channels. */
|
|
115
|
+
invalidate(inputIds: readonly string[]): void;
|
|
99
116
|
/** Releases semantic evaluator results, preserving borrowed inputs and wrappers. */
|
|
100
117
|
destroy(): void;
|
|
118
|
+
/** Executes supported synchronous evaluators and render passes on WebGL, without readback. */
|
|
119
|
+
runSync(this: CompiledGPUSimpleGraph<void>): Record<string, GPUVector>;
|
|
120
|
+
runSync(options: GPUSimpleGraphRunOptions<Parameters>): Record<string, GPUVector>;
|
|
121
|
+
private encodeRenderPasses;
|
|
101
122
|
/** Materializes selected outputs without CPU readback. Semantic results live until destroy(). */
|
|
102
|
-
run(
|
|
123
|
+
run(this: CompiledGPUSimpleGraph<void>): Promise<Record<string, GPUVector>>;
|
|
124
|
+
run(options: GPUSimpleGraphRunOptions<Parameters>): Promise<Record<string, GPUVector>>;
|
|
103
125
|
}
|
|
126
|
+
/** Preserve render parameter requirements without expanding the recursive GPUOperationLike type. */
|
|
127
|
+
type HasIncompatibleRenderParameters<Operation, Parameters> = GPUOperationLike extends Operation ? false : Operation extends GPURenderOperation<infer RequiredParameters> ? [Parameters] extends [RequiredParameters] ? false : true : Operation extends GPUCompositeOperation<infer Child> ? HasIncompatibleRenderParameters<Child, Parameters> : Operation extends readonly (infer Child)[] ? HasIncompatibleRenderParameters<Child, Parameters> : false;
|
|
128
|
+
export {};
|
|
104
129
|
//# sourceMappingURL=gpu-simple-graph.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gpu-simple-graph.d.ts","sourceRoot":"","sources":["../../src/gpu-simple-graph/gpu-simple-graph.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAC,eAAe,EAAC,wCAAqC;AAClE,OAAO,EAAC,eAAe,EAAE,KAAK,yBAAyB,EAAC,uCAAoC;AAE5F,OAAO,KAAK,EAAC,sBAAsB,EAAC,2CAAwC;AAC5E,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EAExB,cAAc,EACd,cAAc,EACf,uCAAoC;AACrC,OAAO,EAAC,gCAAgC,EAAC,2CAAwC;AACjF,OAAO,EAAS,KAAK,MAAM,EAAC,MAAM,eAAe,CAAC;AAClD,OAAO,EAAmB,KAAK,4BAA4B,EAAC,0CAAuC;AAGnG,OAAO,EAAC,KAAK,kBAAkB,EAAC,4CAAyC;AACzE,OAAO,KAAK,EAAC,SAAS,EAAE,eAAe,EAAC,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