@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
|
@@ -19,6 +19,7 @@ var gpu_command_graph_exports = {};
|
|
|
19
19
|
__export(gpu_command_graph_exports, {
|
|
20
20
|
CompiledGPUCommandGraph: () => CompiledGPUCommandGraph,
|
|
21
21
|
GPUCommandGraph: () => GPUCommandGraph,
|
|
22
|
+
GPUCommandGraphBuilder: () => GPUCommandGraphBuilder,
|
|
22
23
|
GPUCommandGraphEncoding: () => GPUCommandGraphEncoding,
|
|
23
24
|
GPUCommandGraphExecution: () => GPUCommandGraphExecution,
|
|
24
25
|
GraphBufferHandle: () => import_gpu_command_graph_types2.GraphBufferHandle,
|
|
@@ -298,8 +299,8 @@ class GPUCommandGraphEncoding {
|
|
|
298
299
|
};
|
|
299
300
|
}
|
|
300
301
|
}
|
|
301
|
-
class
|
|
302
|
-
/**
|
|
302
|
+
class GPUCommandGraphBuilder {
|
|
303
|
+
/** Device that owns compilation and transient resources. */
|
|
303
304
|
device;
|
|
304
305
|
/** Identifier used as a prefix for graph-owned GPU resources. */
|
|
305
306
|
id;
|
|
@@ -316,14 +317,10 @@ class GPUCommandGraph {
|
|
|
316
317
|
/**
|
|
317
318
|
* Creates a mutable graph definition.
|
|
318
319
|
*
|
|
319
|
-
* @param device
|
|
320
|
+
* @param device Device used to compile and execute the graph.
|
|
320
321
|
* @param props Optional graph identity and generic adaptive-kernel selector.
|
|
321
|
-
* @throws If `device` is not a WebGPU device.
|
|
322
322
|
*/
|
|
323
323
|
constructor(device, props = {}) {
|
|
324
|
-
if (device.type !== "webgpu") {
|
|
325
|
-
throw new Error("GPUCommandGraph requires a WebGPU device");
|
|
326
|
-
}
|
|
327
324
|
assertDeviceAvailable(device, "construction");
|
|
328
325
|
this.device = device;
|
|
329
326
|
this.id = props.id ?? "gpu-command-graph";
|
|
@@ -368,6 +365,15 @@ class GPUCommandGraph {
|
|
|
368
365
|
validateGraphBufferDescriptor(descriptor, this.device);
|
|
369
366
|
return this.addBuffer(new import_gpu_command_graph_types.GraphBufferHandle(this, descriptor, true));
|
|
370
367
|
}
|
|
368
|
+
/** Choose a compiler-owned resource name without treating diagnostic labels as unique. @internal */
|
|
369
|
+
getUniqueResourceId(label) {
|
|
370
|
+
let id = label;
|
|
371
|
+
let suffix = 1;
|
|
372
|
+
while (this.buffers.has(id) || this.textures.has(id) || this.externalTextures.has(id)) {
|
|
373
|
+
id = `${label}-${suffix++}`;
|
|
374
|
+
}
|
|
375
|
+
return id;
|
|
376
|
+
}
|
|
371
377
|
/**
|
|
372
378
|
* Creates one typed range over a graph buffer.
|
|
373
379
|
*
|
|
@@ -562,7 +568,7 @@ class GPUCommandGraph {
|
|
|
562
568
|
*
|
|
563
569
|
* @returns An executable graph that owns compiled node state and transient allocations.
|
|
564
570
|
*/
|
|
565
|
-
compile() {
|
|
571
|
+
compile(options = {}) {
|
|
566
572
|
this.assertMutable();
|
|
567
573
|
assertDeviceAvailable(this.device, "compilation");
|
|
568
574
|
this.compiled = true;
|
|
@@ -572,7 +578,8 @@ class GPUCommandGraph {
|
|
|
572
578
|
buffers: this.buffers,
|
|
573
579
|
textures: this.textures,
|
|
574
580
|
externalTextures: this.externalTextures,
|
|
575
|
-
nodes: this.nodes
|
|
581
|
+
nodes: this.nodes,
|
|
582
|
+
kernelMetadata: options.kernelMetadata
|
|
576
583
|
}));
|
|
577
584
|
}
|
|
578
585
|
/**
|
|
@@ -587,7 +594,7 @@ class GPUCommandGraph {
|
|
|
587
594
|
*
|
|
588
595
|
* @returns An executable graph whose pipelines are ready before the promise resolves.
|
|
589
596
|
*/
|
|
590
|
-
async compileAsync() {
|
|
597
|
+
async compileAsync(options = {}) {
|
|
591
598
|
this.assertMutable();
|
|
592
599
|
assertDeviceAvailable(this.device, "compilation");
|
|
593
600
|
this.compiled = true;
|
|
@@ -597,10 +604,14 @@ class GPUCommandGraph {
|
|
|
597
604
|
buffers: this.buffers,
|
|
598
605
|
textures: this.textures,
|
|
599
606
|
externalTextures: this.externalTextures,
|
|
600
|
-
nodes: this.nodes
|
|
607
|
+
nodes: this.nodes,
|
|
608
|
+
kernelMetadata: options.kernelMetadata
|
|
601
609
|
}));
|
|
602
610
|
}
|
|
603
611
|
addNode(node) {
|
|
612
|
+
if (this.device.type !== "webgpu" && node.type !== "render") {
|
|
613
|
+
throw new Error("WebGL graphs support render passes only");
|
|
614
|
+
}
|
|
604
615
|
this.assertMutable();
|
|
605
616
|
if (!node.id) {
|
|
606
617
|
throw new Error("GPUCommandGraph node id is required");
|
|
@@ -670,6 +681,9 @@ class GPUCommandGraph {
|
|
|
670
681
|
this.assertTexture(texture);
|
|
671
682
|
validateTextureUseAgainstDescriptor(texture, resource.usage);
|
|
672
683
|
validateTextureViewForUsage(resource.texture, resource.usage);
|
|
684
|
+
if (this.device.type === "webgl" && resource.usage === "sampled" && resource.texture instanceof import_gpu_command_graph_types.GraphTextureView && !isDefaultGraphTextureView(resource.texture)) {
|
|
685
|
+
throw new Error("WebGL sampled textures require a full-resource view");
|
|
686
|
+
}
|
|
673
687
|
} else {
|
|
674
688
|
this.assertExternalTexture(resource.externalTexture);
|
|
675
689
|
if (resource.usage !== "sampled") {
|
|
@@ -1686,10 +1700,19 @@ function isDefaultGraphTextureView(view) {
|
|
|
1686
1700
|
const texture = view.texture;
|
|
1687
1701
|
return view.dimension === texture.dimension && view.aspect === "all" && view.baseMipLevel === 0 && view.mipLevelCount === texture.mipLevels && view.baseArrayLayer === 0 && view.arrayLayerCount === (texture.dimension === "3d" ? 1 : texture.depth);
|
|
1688
1702
|
}
|
|
1703
|
+
class GPUCommandGraph extends GPUCommandGraphBuilder {
|
|
1704
|
+
constructor(device, props = {}) {
|
|
1705
|
+
if (device.type !== "webgpu") {
|
|
1706
|
+
throw new Error("GPUCommandGraph requires a WebGPU device");
|
|
1707
|
+
}
|
|
1708
|
+
super(device, props);
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1689
1711
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1690
1712
|
0 && (module.exports = {
|
|
1691
1713
|
CompiledGPUCommandGraph,
|
|
1692
1714
|
GPUCommandGraph,
|
|
1715
|
+
GPUCommandGraphBuilder,
|
|
1693
1716
|
GPUCommandGraphEncoding,
|
|
1694
1717
|
GPUCommandGraphExecution,
|
|
1695
1718
|
GraphBufferHandle,
|
|
@@ -5,9 +5,9 @@ import { type GPUCommandGraphCompilation } from "./gpu-command-graph-compiler.js
|
|
|
5
5
|
import { GraphBufferHandle, GraphDataView, GraphExternalTextureHandle, GraphTextureHandle, GraphTextureView, GraphVectorView } from "./gpu-command-graph-types.js";
|
|
6
6
|
import { type GPUNode } from "./gpu-command-node.js";
|
|
7
7
|
import type { GPUCommandGraphAutotuner } from "./gpu-command-graph-autotuner.js";
|
|
8
|
-
import type { GPUCommandGraphComputeNode, GPUCommandGraphCapabilities, GPUCommandGraphCopyNode, GPUCommandGraphEncodeOptions, GPUCommandGraphEncodingStats, GPUCommandGraphNodeEncodingStats, GPUCommandGraphNodePublication, GPUCommandGraphPreflightReport, GPUCommandGraphRenderNode, GPUCommandGraphStats, GPUCommandGraphTimingReport, GraphBufferDescriptor, GraphExternalTextureDescriptor, GraphImportedBuffer, GraphImportedTexture, GraphTextureDescriptor, GraphTextureViewProps } from "./gpu-command-graph-types.js";
|
|
8
|
+
import type { GPUCommandGraphComputeNode, GPUCommandGraphCapabilities, GPUCommandGraphCopyNode, GPUCommandGraphEncodeOptions, GPUCommandGraphEncodingStats, GPUCommandGraphNodeEncodingStats, GPUCommandGraphCompileOptions, GPUCommandGraphNodePublication, GPUCommandGraphPreflightReport, GPUCommandGraphRenderNode, GPUCommandGraphStats, GPUCommandGraphTimingReport, GraphBufferDescriptor, GraphExternalTextureDescriptor, GraphImportedBuffer, GraphImportedTexture, GraphTextureDescriptor, GraphTextureViewProps } from "./gpu-command-graph-types.js";
|
|
9
9
|
export { GraphBufferHandle, GraphDataView, GraphExternalTextureHandle, GraphTextureHandle, GraphTextureView, GraphVectorView } from "./gpu-command-graph-types.js";
|
|
10
|
-
export type { GPUCommandGraphCompileContext, GPUCommandGraphCapabilities, GPUCommandGraphCPUCondition, GPUCommandGraphComputeExecutable, GPUCommandGraphComputeNode, GPUCommandGraphCopyExecutable, GPUCommandGraphCopyNode, GPUCommandGraphEncodeContext, GPUCommandGraphEncodeOptions, GPUCommandGraphGPUIndirectCondition, GPUCommandGraphNode, GPUCommandGraphNodeCondition, GPUCommandGraphNodeConditionPreflight, GPUCommandGraphNodeEncodingStats, GPUCommandGraphNodePreflight, GPUCommandGraphResourceSummary, GPUCommandGraphNodePublication, GPUCommandGraphNodeTiming, GPUCommandGraphNodeType, GPUCommandGraphNodeWorkloadEstimate, GPUCommandGraphPreflightReport, GPUCommandGraphRenderExecutable, GPUCommandGraphRenderNode, GPUCommandGraphStats, GPUCommandGraphEncodingStats, GPUCommandGraphTimingReport, GraphBufferDescriptor, GraphBufferUsage, GraphBufferUse, GraphExternalTextureBinding, GraphExternalTextureDescriptor, GraphExternalTextureUse, GraphFrameTextureBinding, GraphImportedBuffer, GraphImportedTexture, GraphRenderPassAttachments, GraphResourceUse, GraphTextureAspect, GraphTextureDescriptor, GraphTextureDimension, GraphTextureUsage, GraphTextureUse, GraphTextureViewProps } from "./gpu-command-graph-types.js";
|
|
10
|
+
export type { GPUCommandGraphCompileContext, GPUCommandGraphCapabilities, GPUCommandGraphCPUCondition, GPUCommandGraphComputeExecutable, GPUCommandGraphComputeNode, GPUCommandGraphCopyExecutable, GPUCommandGraphCopyNode, GPUCommandGraphEncodeContext, GPUCommandGraphEncodeOptions, GPUCommandGraphGPUIndirectCondition, GPUCommandGraphNode, GPUCommandGraphNodeCondition, GPUCommandGraphNodeConditionPreflight, GPUCommandGraphNodeEncodingStats, GPUCommandGraphNodePreflight, GPUCommandGraphCompileOptions, GPUCommandGraphKernelMetadata, GPUCommandGraphResourceSummary, GPUCommandGraphNodePublication, GPUCommandGraphNodeTiming, GPUCommandGraphNodeType, GPUCommandGraphNodeWorkloadEstimate, GPUCommandGraphPreflightReport, GPUCommandGraphRenderExecutable, GPUCommandGraphRenderNode, GPUCommandGraphStats, GPUCommandGraphEncodingStats, GPUCommandGraphTimingReport, GraphBufferDescriptor, GraphBufferUsage, GraphBufferUse, GraphExternalTextureBinding, GraphExternalTextureDescriptor, GraphExternalTextureUse, GraphFrameTextureBinding, GraphImportedBuffer, GraphImportedTexture, GraphRenderPassAttachments, GraphResourceUse, GraphTextureAspect, GraphTextureDescriptor, GraphTextureDimension, GraphTextureUsage, GraphTextureUse, GraphTextureViewProps } from "./gpu-command-graph-types.js";
|
|
11
11
|
/** Per-submission limits for a resumable command-graph execution. */
|
|
12
12
|
export type GPUCommandGraphExecutionBudget = {
|
|
13
13
|
/** Maximum statically estimated shader invocations encoded in one step. */
|
|
@@ -176,8 +176,9 @@ export declare class GPUCommandGraphEncoding {
|
|
|
176
176
|
* The graph compiles resource hazards, transient lifetimes, and node resources,
|
|
177
177
|
* but encoding and submission remain controlled by the application.
|
|
178
178
|
*/
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
/** @internal Shared resource planner and executor builder used by SimpleGraph render passes. */
|
|
180
|
+
export declare class GPUCommandGraphBuilder<Parameters = void> {
|
|
181
|
+
/** Device that owns compilation and transient resources. */
|
|
181
182
|
readonly device: Device;
|
|
182
183
|
/** Identifier used as a prefix for graph-owned GPU resources. */
|
|
183
184
|
readonly id: string;
|
|
@@ -194,9 +195,8 @@ export declare class GPUCommandGraph<Parameters = void> {
|
|
|
194
195
|
/**
|
|
195
196
|
* Creates a mutable graph definition.
|
|
196
197
|
*
|
|
197
|
-
* @param device
|
|
198
|
+
* @param device Device used to compile and execute the graph.
|
|
198
199
|
* @param props Optional graph identity and generic adaptive-kernel selector.
|
|
199
|
-
* @throws If `device` is not a WebGPU device.
|
|
200
200
|
*/
|
|
201
201
|
constructor(device: Device, props?: {
|
|
202
202
|
id?: string;
|
|
@@ -220,6 +220,8 @@ export declare class GPUCommandGraph<Parameters = void> {
|
|
|
220
220
|
* Compatible transient buffers with disjoint compiled lifetimes may share a physical allocation.
|
|
221
221
|
*/
|
|
222
222
|
createTransientBuffer(descriptor: GraphBufferDescriptor): GraphBufferHandle;
|
|
223
|
+
/** Choose a compiler-owned resource name without treating diagnostic labels as unique. @internal */
|
|
224
|
+
getUniqueResourceId(label: string): string;
|
|
223
225
|
/**
|
|
224
226
|
* Creates one typed range over a graph buffer.
|
|
225
227
|
*
|
|
@@ -306,7 +308,7 @@ export declare class GPUCommandGraph<Parameters = void> {
|
|
|
306
308
|
*
|
|
307
309
|
* @returns An executable graph that owns compiled node state and transient allocations.
|
|
308
310
|
*/
|
|
309
|
-
compile(): CompiledGPUCommandGraph<Parameters>;
|
|
311
|
+
compile(options?: GPUCommandGraphCompileOptions): CompiledGPUCommandGraph<Parameters>;
|
|
310
312
|
/**
|
|
311
313
|
* Compiles graph resources with asynchronous backend pipeline creation.
|
|
312
314
|
*
|
|
@@ -319,7 +321,7 @@ export declare class GPUCommandGraph<Parameters = void> {
|
|
|
319
321
|
*
|
|
320
322
|
* @returns An executable graph whose pipelines are ready before the promise resolves.
|
|
321
323
|
*/
|
|
322
|
-
compileAsync(): Promise<CompiledGPUCommandGraph<Parameters>>;
|
|
324
|
+
compileAsync(options?: GPUCommandGraphCompileOptions): Promise<CompiledGPUCommandGraph<Parameters>>;
|
|
323
325
|
private addNode;
|
|
324
326
|
private addBuffer;
|
|
325
327
|
private addTexture;
|
|
@@ -419,4 +421,11 @@ export declare class CompiledGPUCommandGraph<Parameters = void> {
|
|
|
419
421
|
private getFramebuffer;
|
|
420
422
|
private destroyFramebuffersUsingView;
|
|
421
423
|
}
|
|
424
|
+
/** WebGPU command graph. SimpleGraph reuses its resource planner for portable render passes. */
|
|
425
|
+
export declare class GPUCommandGraph<Parameters = void> extends GPUCommandGraphBuilder<Parameters> {
|
|
426
|
+
constructor(device: Device, props?: {
|
|
427
|
+
id?: string;
|
|
428
|
+
autotuner?: GPUCommandGraphAutotuner;
|
|
429
|
+
});
|
|
430
|
+
}
|
|
422
431
|
//# sourceMappingURL=gpu-command-graph.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gpu-command-graph.d.ts","sourceRoot":"","sources":["../../src/gpu-core/gpu-command-graph.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyB,KAAK,kBAAkB,EAAC,kCAA+B;AAEvF,OAAO,KAAK,EACV,cAAc,EAEd,MAAM,EAGN,QAAQ,EAER,aAAa,EAEd,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,eAAe,EAIrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAUL,KAAK,0BAA0B,EAEhC,wCAAqC;AACtC,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EAChB,qCAAkC;AACnC,OAAO,EAAwC,KAAK,OAAO,EAAC,8BAA2B;AACvF,OAAO,KAAK,EAAC,wBAAwB,EAAC,yCAAsC;AAE5E,OAAO,KAAK,EAEV,0BAA0B,EAC1B,2BAA2B,EAE3B,uBAAuB,EAEvB,4BAA4B,EAC5B,4BAA4B,EAE5B,gCAAgC,EAGhC,8BAA8B,EAC9B,8BAA8B,EAE9B,yBAAyB,EACzB,oBAAoB,EACpB,2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AAwB,CAAkC;IAC3E,OAAO,CAAC,SAAS,CAAS;IAE1B,gEAAgE;IAChE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,MAAM,CAEjC;IAED,4EAA4E;IAC5E,QAAQ,IAAI,MAAM;IAKlB,2EAA2E;IAC3E,MAAM,IAAI,MAAM;IAIhB,gBAAgB;gBACJ,KAAK,EAAE,0BAA0B,CAAC,UAAU,CAAC;IA8CzD;;;;;;;;;;OAUG;IACH,MAAM,CACJ,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,4BAA4B,CAAC,UAAU,CAAC,GAChD,uBAAuB;IAI1B;;;;;;OAMG;IACH,gBAAgB,CACd,MAAM,EAAE,8BAA8B,EACtC,OAAO,GAAE,+BAAoC,GAC5C,4BAA4B;IAI/B;;;;;;;OAOG;IACH,eAAe,CACb,MAAM,EAAE,8BAA8B,EACtC,OAAO,GAAE,+BAAoC,GAC5C,wBAAwB,CAAC,UAAU,CAAC;IASvC,OAAO,CAAC,eAAe;IA8SvB;;;;OAIG;IACH,OAAO,IAAI,IAAI;IAsBf,OAAO,CAAC,sBAAsB;IA+C9B,OAAO,CAAC,uBAAuB;IA4E/B,OAAO,CAAC,uBAAuB;IAkC/B,OAAO,CAAC,cAAc;IAqCtB,OAAO,CAAC,4BAA4B;CAYrC;AAwdD,gGAAgG;AAChG,qBAAa,eAAe,CAAC,UAAU,GAAG,IAAI,CAAE,SAAQ,sBAAsB,CAAC,UAAU,CAAC;gBAC5E,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE;QAAC,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,wBAAwB,CAAA;KAAM;CAM5F"}
|
|
@@ -303,8 +303,9 @@ export class GPUCommandGraphEncoding {
|
|
|
303
303
|
* The graph compiles resource hazards, transient lifetimes, and node resources,
|
|
304
304
|
* but encoding and submission remain controlled by the application.
|
|
305
305
|
*/
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
/** @internal Shared resource planner and executor builder used by SimpleGraph render passes. */
|
|
307
|
+
export class GPUCommandGraphBuilder {
|
|
308
|
+
/** Device that owns compilation and transient resources. */
|
|
308
309
|
device;
|
|
309
310
|
/** Identifier used as a prefix for graph-owned GPU resources. */
|
|
310
311
|
id;
|
|
@@ -321,14 +322,10 @@ export class GPUCommandGraph {
|
|
|
321
322
|
/**
|
|
322
323
|
* Creates a mutable graph definition.
|
|
323
324
|
*
|
|
324
|
-
* @param device
|
|
325
|
+
* @param device Device used to compile and execute the graph.
|
|
325
326
|
* @param props Optional graph identity and generic adaptive-kernel selector.
|
|
326
|
-
* @throws If `device` is not a WebGPU device.
|
|
327
327
|
*/
|
|
328
328
|
constructor(device, props = {}) {
|
|
329
|
-
if (device.type !== 'webgpu') {
|
|
330
|
-
throw new Error('GPUCommandGraph requires a WebGPU device');
|
|
331
|
-
}
|
|
332
329
|
assertDeviceAvailable(device, 'construction');
|
|
333
330
|
this.device = device;
|
|
334
331
|
this.id = props.id ?? 'gpu-command-graph';
|
|
@@ -373,6 +370,15 @@ export class GPUCommandGraph {
|
|
|
373
370
|
validateGraphBufferDescriptor(descriptor, this.device);
|
|
374
371
|
return this.addBuffer(new GraphBufferHandle(this, descriptor, true));
|
|
375
372
|
}
|
|
373
|
+
/** Choose a compiler-owned resource name without treating diagnostic labels as unique. @internal */
|
|
374
|
+
getUniqueResourceId(label) {
|
|
375
|
+
let id = label;
|
|
376
|
+
let suffix = 1;
|
|
377
|
+
while (this.buffers.has(id) || this.textures.has(id) || this.externalTextures.has(id)) {
|
|
378
|
+
id = `${label}-${suffix++}`;
|
|
379
|
+
}
|
|
380
|
+
return id;
|
|
381
|
+
}
|
|
376
382
|
/**
|
|
377
383
|
* Creates one typed range over a graph buffer.
|
|
378
384
|
*
|
|
@@ -577,7 +583,7 @@ export class GPUCommandGraph {
|
|
|
577
583
|
*
|
|
578
584
|
* @returns An executable graph that owns compiled node state and transient allocations.
|
|
579
585
|
*/
|
|
580
|
-
compile() {
|
|
586
|
+
compile(options = {}) {
|
|
581
587
|
this.assertMutable();
|
|
582
588
|
assertDeviceAvailable(this.device, 'compilation');
|
|
583
589
|
this.compiled = true;
|
|
@@ -587,7 +593,8 @@ export class GPUCommandGraph {
|
|
|
587
593
|
buffers: this.buffers,
|
|
588
594
|
textures: this.textures,
|
|
589
595
|
externalTextures: this.externalTextures,
|
|
590
|
-
nodes: this.nodes
|
|
596
|
+
nodes: this.nodes,
|
|
597
|
+
kernelMetadata: options.kernelMetadata
|
|
591
598
|
}));
|
|
592
599
|
}
|
|
593
600
|
/**
|
|
@@ -602,7 +609,7 @@ export class GPUCommandGraph {
|
|
|
602
609
|
*
|
|
603
610
|
* @returns An executable graph whose pipelines are ready before the promise resolves.
|
|
604
611
|
*/
|
|
605
|
-
async compileAsync() {
|
|
612
|
+
async compileAsync(options = {}) {
|
|
606
613
|
this.assertMutable();
|
|
607
614
|
assertDeviceAvailable(this.device, 'compilation');
|
|
608
615
|
this.compiled = true;
|
|
@@ -612,10 +619,15 @@ export class GPUCommandGraph {
|
|
|
612
619
|
buffers: this.buffers,
|
|
613
620
|
textures: this.textures,
|
|
614
621
|
externalTextures: this.externalTextures,
|
|
615
|
-
nodes: this.nodes
|
|
622
|
+
nodes: this.nodes,
|
|
623
|
+
kernelMetadata: options.kernelMetadata
|
|
616
624
|
}));
|
|
617
625
|
}
|
|
618
626
|
addNode(node) {
|
|
627
|
+
// SimpleGraph only exposes render passes on WebGL. Compute requires WebGPU.
|
|
628
|
+
if (this.device.type !== 'webgpu' && node.type !== 'render') {
|
|
629
|
+
throw new Error('WebGL graphs support render passes only');
|
|
630
|
+
}
|
|
619
631
|
this.assertMutable();
|
|
620
632
|
if (!node.id) {
|
|
621
633
|
throw new Error('GPUCommandGraph node id is required');
|
|
@@ -690,6 +702,13 @@ export class GPUCommandGraph {
|
|
|
690
702
|
this.assertTexture(texture);
|
|
691
703
|
validateTextureUseAgainstDescriptor(texture, resource.usage);
|
|
692
704
|
validateTextureViewForUsage(resource.texture, resource.usage);
|
|
705
|
+
// WebGL sampler bindings use the underlying texture, not a selected view range.
|
|
706
|
+
if (this.device.type === 'webgl' &&
|
|
707
|
+
resource.usage === 'sampled' &&
|
|
708
|
+
resource.texture instanceof GraphTextureView &&
|
|
709
|
+
!isDefaultGraphTextureView(resource.texture)) {
|
|
710
|
+
throw new Error('WebGL sampled textures require a full-resource view');
|
|
711
|
+
}
|
|
693
712
|
}
|
|
694
713
|
else {
|
|
695
714
|
this.assertExternalTexture(resource.externalTexture);
|
|
@@ -1830,4 +1849,13 @@ function isDefaultGraphTextureView(view) {
|
|
|
1830
1849
|
view.baseArrayLayer === 0 &&
|
|
1831
1850
|
view.arrayLayerCount === (texture.dimension === '3d' ? 1 : texture.depth));
|
|
1832
1851
|
}
|
|
1852
|
+
/** WebGPU command graph. SimpleGraph reuses its resource planner for portable render passes. */
|
|
1853
|
+
export class GPUCommandGraph extends GPUCommandGraphBuilder {
|
|
1854
|
+
constructor(device, props = {}) {
|
|
1855
|
+
if (device.type !== 'webgpu') {
|
|
1856
|
+
throw new Error('GPUCommandGraph requires a WebGPU device');
|
|
1857
|
+
}
|
|
1858
|
+
super(device, props);
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1833
1861
|
//# sourceMappingURL=gpu-command-graph.js.map
|