@luma.gl/graph 10.0.0-beta.2 → 10.0.0-beta.4
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/dist/arrow/gpu/arrow-gpu-analytics-adapters.cjs +22 -9
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.d.ts +11 -2
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.js +27 -10
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.cjs +24 -13
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.d.ts +9 -1
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.js +41 -14
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-table-conversion.cjs +82 -23
- package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts +16 -1
- package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-table-conversion.js +98 -24
- package/dist/arrow/gpu/arrow-gpu-table-conversion.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.cjs +7 -0
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.d.ts +2 -0
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.js +14 -0
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.js.map +1 -1
- package/dist/arrow/index.cjs +2 -0
- package/dist/arrow/index.cjs.map +3 -3
- package/dist/arrow/index.d.ts +1 -1
- package/dist/arrow/index.d.ts.map +1 -1
- package/dist/arrow/index.js +1 -1
- package/dist/arrow/index.js.map +1 -1
- package/dist/arrow/vectors/arrow-temporal-gpu-vector.cjs +1 -2
- package/dist/arrow/vectors/arrow-temporal-gpu-vector.js +2 -2
- package/dist/arrow/vectors/arrow-temporal-gpu-vector.js.map +1 -1
- package/dist/dist.dev.js +62 -27
- package/dist/dist.min.js +48 -47
- package/dist/gpu-core/gpu-bvh-bounds.cjs +63 -0
- package/dist/gpu-core/gpu-bvh-bounds.d.ts +32 -0
- package/dist/gpu-core/gpu-bvh-bounds.d.ts.map +1 -0
- package/dist/gpu-core/gpu-bvh-bounds.js +56 -0
- package/dist/gpu-core/gpu-bvh-bounds.js.map +1 -0
- package/dist/gpu-core/gpu-command-graph-budget-controller.cjs +10 -2
- package/dist/gpu-core/gpu-command-graph-budget-controller.d.ts +4 -0
- package/dist/gpu-core/gpu-command-graph-budget-controller.d.ts.map +1 -1
- package/dist/gpu-core/gpu-command-graph-budget-controller.js +10 -2
- package/dist/gpu-core/gpu-command-graph-budget-controller.js.map +1 -1
- package/dist/gpu-core/gpu-command-graph-submission-pacer.cjs +92 -0
- package/dist/gpu-core/gpu-command-graph-submission-pacer.d.ts +41 -0
- package/dist/gpu-core/gpu-command-graph-submission-pacer.d.ts.map +1 -0
- package/dist/gpu-core/gpu-command-graph-submission-pacer.js +85 -0
- package/dist/gpu-core/gpu-command-graph-submission-pacer.js.map +1 -0
- package/dist/gpu-core/gpu-group-aggregation.cjs +45 -21
- package/dist/gpu-core/gpu-group-aggregation.d.ts +4 -0
- package/dist/gpu-core/gpu-group-aggregation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-group-aggregation.js +58 -24
- package/dist/gpu-core/gpu-group-aggregation.js.map +1 -1
- package/dist/gpu-core/index.cjs +6 -0
- package/dist/gpu-core/index.cjs.map +3 -3
- package/dist/gpu-core/index.d.ts +4 -0
- package/dist/gpu-core/index.d.ts.map +1 -1
- package/dist/gpu-core/index.js +2 -0
- package/dist/gpu-core/index.js.map +1 -1
- package/dist/gpu-dataframe/gpu-analytics-compiler-utils.cjs +6 -6
- package/dist/gpu-dataframe/gpu-analytics-compiler-utils.d.ts +1 -1
- package/dist/gpu-dataframe/gpu-analytics-compiler-utils.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-analytics-compiler-utils.js +6 -6
- package/dist/gpu-dataframe/gpu-analytics-compiler-utils.js.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame-query.cjs +55 -14
- package/dist/gpu-dataframe/gpu-data-frame-query.d.ts +13 -2
- package/dist/gpu-dataframe/gpu-data-frame-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame-query.js +58 -17
- package/dist/gpu-dataframe/gpu-data-frame-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame.cjs +1 -3
- package/dist/gpu-dataframe/gpu-data-frame.d.ts +10 -0
- package/dist/gpu-dataframe/gpu-data-frame.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame.js +1 -3
- package/dist/gpu-dataframe/gpu-data-frame.js.map +1 -1
- package/dist/gpu-dataframe/gpu-expression-shader.cjs +94 -44
- package/dist/gpu-dataframe/gpu-expression-shader.d.ts +8 -5
- package/dist/gpu-dataframe/gpu-expression-shader.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-expression-shader.js +110 -47
- package/dist/gpu-dataframe/gpu-expression-shader.js.map +1 -1
- package/dist/gpu-dataframe/gpu-expression.cjs +14 -8
- package/dist/gpu-dataframe/gpu-expression.d.ts +12 -1
- package/dist/gpu-dataframe/gpu-expression.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-expression.js +11 -6
- package/dist/gpu-dataframe/gpu-expression.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.cjs +8 -4
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.d.ts +2 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js +10 -4
- 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 +5 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-query.js +6 -2
- package/dist/gpu-dataframe/gpu-global-aggregation-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-sort-compiler.cjs +156 -124
- package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts +12 -2
- package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-sort-compiler.js +160 -128
- package/dist/gpu-dataframe/gpu-global-sort-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.cjs +366 -53
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.d.ts +26 -4
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js +378 -47
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-group-by-query.cjs +20 -9
- package/dist/gpu-dataframe/gpu-group-by-query.d.ts +15 -2
- package/dist/gpu-dataframe/gpu-group-by-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-group-by-query.js +22 -8
- package/dist/gpu-dataframe/gpu-group-by-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-join-compiler.cjs +61 -8
- package/dist/gpu-dataframe/gpu-join-compiler.d.ts +10 -2
- package/dist/gpu-dataframe/gpu-join-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-join-compiler.js +60 -7
- package/dist/gpu-dataframe/gpu-join-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-query-compiler.cjs +61 -11
- package/dist/gpu-dataframe/gpu-query-compiler.d.ts +5 -1
- package/dist/gpu-dataframe/gpu-query-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-query-compiler.js +61 -10
- package/dist/gpu-dataframe/gpu-query-compiler.js.map +1 -1
- package/dist/gpu-dataframe/index.cjs +4 -2
- package/dist/gpu-dataframe/index.cjs.map +3 -3
- package/dist/gpu-dataframe/index.d.ts +1 -1
- package/dist/gpu-dataframe/index.d.ts.map +1 -1
- package/dist/gpu-dataframe/index.js +1 -1
- package/dist/gpu-dataframe/index.js.map +1 -1
- package/dist/gpu-graph/index.cjs.map +1 -1
- package/dist/gpu-graph-algorithms/benchmarks.cjs.map +2 -2
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.cjs +182 -62
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.d.ts +29 -2
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.d.ts.map +1 -1
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.js +200 -64
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.js.map +1 -1
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.cjs +135 -9
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.d.ts +55 -8
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.d.ts.map +1 -1
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.js +145 -14
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.js.map +1 -1
- package/dist/gpu-graph-algorithms/index.cjs.map +3 -3
- package/dist/gpu-physics/articulation-tree-shader.cjs +177 -0
- package/dist/gpu-physics/articulation-tree-shader.d.ts +3 -0
- package/dist/gpu-physics/articulation-tree-shader.d.ts.map +1 -0
- package/dist/gpu-physics/articulation-tree-shader.js +159 -0
- package/dist/gpu-physics/articulation-tree-shader.js.map +1 -0
- package/dist/gpu-physics/gpu-articulation-tree.cjs +203 -0
- package/dist/gpu-physics/gpu-articulation-tree.d.ts +81 -0
- package/dist/gpu-physics/gpu-articulation-tree.d.ts.map +1 -0
- package/dist/gpu-physics/gpu-articulation-tree.js +205 -0
- package/dist/gpu-physics/gpu-articulation-tree.js.map +1 -0
- package/dist/gpu-physics/gpu-physics-batch.cjs +11 -10
- package/dist/gpu-physics/gpu-physics-batch.d.ts +1 -0
- package/dist/gpu-physics/gpu-physics-batch.d.ts.map +1 -1
- package/dist/gpu-physics/gpu-physics-batch.js +14 -10
- package/dist/gpu-physics/gpu-physics-batch.js.map +1 -1
- package/dist/gpu-physics/gpu-physics-ensemble.cjs +9 -4
- package/dist/gpu-physics/gpu-physics-ensemble.d.ts +10 -1
- package/dist/gpu-physics/gpu-physics-ensemble.d.ts.map +1 -1
- package/dist/gpu-physics/gpu-physics-ensemble.js +11 -4
- package/dist/gpu-physics/gpu-physics-ensemble.js.map +1 -1
- package/dist/gpu-physics/gpu-rigid-body-world.cjs +323 -68
- package/dist/gpu-physics/gpu-rigid-body-world.d.ts +59 -2
- package/dist/gpu-physics/gpu-rigid-body-world.d.ts.map +1 -1
- package/dist/gpu-physics/gpu-rigid-body-world.js +400 -75
- package/dist/gpu-physics/gpu-rigid-body-world.js.map +1 -1
- package/dist/gpu-physics/index.cjs +3 -0
- package/dist/gpu-physics/index.cjs.map +3 -3
- package/dist/gpu-physics/index.d.ts +3 -1
- package/dist/gpu-physics/index.d.ts.map +1 -1
- package/dist/gpu-physics/index.js +1 -0
- package/dist/gpu-physics/index.js.map +1 -1
- package/dist/gpu-physics/rigid-body-cache-shaders.cjs +10 -6
- package/dist/gpu-physics/rigid-body-cache-shaders.d.ts +2 -1
- package/dist/gpu-physics/rigid-body-cache-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-cache-shaders.js +15 -6
- package/dist/gpu-physics/rigid-body-cache-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-capacity.cjs +15 -2
- package/dist/gpu-physics/rigid-body-capacity.d.ts +3 -1
- package/dist/gpu-physics/rigid-body-capacity.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-capacity.js +21 -2
- package/dist/gpu-physics/rigid-body-capacity.js.map +1 -1
- package/dist/gpu-physics/rigid-body-cast-index.cjs +192 -0
- package/dist/gpu-physics/rigid-body-cast-index.d.ts +44 -0
- package/dist/gpu-physics/rigid-body-cast-index.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-cast-index.js +194 -0
- package/dist/gpu-physics/rigid-body-cast-index.js.map +1 -0
- package/dist/gpu-physics/rigid-body-ensemble-layout.cjs +4 -2
- package/dist/gpu-physics/rigid-body-ensemble-layout.d.ts +2 -1
- package/dist/gpu-physics/rigid-body-ensemble-layout.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-layout.js +5 -2
- package/dist/gpu-physics/rigid-body-ensemble-layout.js.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-reset.cjs +11 -9
- 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 +13 -9
- package/dist/gpu-physics/rigid-body-ensemble-reset.js.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-shaders.cjs +14 -7
- package/dist/gpu-physics/rigid-body-ensemble-shaders.d.ts +5 -0
- package/dist/gpu-physics/rigid-body-ensemble-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-shaders.js +17 -7
- package/dist/gpu-physics/rigid-body-ensemble-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.cjs +21 -11
- package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts +2 -2
- package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.js +28 -12
- package/dist/gpu-physics/rigid-body-ensemble-transaction.js.map +1 -1
- package/dist/gpu-physics/rigid-body-event-compaction.cjs +184 -0
- package/dist/gpu-physics/rigid-body-event-compaction.d.ts +35 -0
- package/dist/gpu-physics/rigid-body-event-compaction.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-event-compaction.js +168 -0
- package/dist/gpu-physics/rigid-body-event-compaction.js.map +1 -0
- package/dist/gpu-physics/rigid-body-event-snapshot.cjs +51 -0
- package/dist/gpu-physics/rigid-body-event-snapshot.d.ts +33 -0
- package/dist/gpu-physics/rigid-body-event-snapshot.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-event-snapshot.js +34 -0
- package/dist/gpu-physics/rigid-body-event-snapshot.js.map +1 -0
- package/dist/gpu-physics/rigid-body-events.cjs +57 -25
- package/dist/gpu-physics/rigid-body-events.d.ts +2 -1
- package/dist/gpu-physics/rigid-body-events.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-events.js +60 -25
- package/dist/gpu-physics/rigid-body-events.js.map +1 -1
- package/dist/gpu-physics/rigid-body-joints.cjs +8 -3
- package/dist/gpu-physics/rigid-body-joints.d.ts +2 -0
- package/dist/gpu-physics/rigid-body-joints.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-joints.js +10 -6
- package/dist/gpu-physics/rigid-body-joints.js.map +1 -1
- package/dist/gpu-physics/rigid-body-queries.cjs +159 -16
- package/dist/gpu-physics/rigid-body-queries.d.ts +24 -1
- package/dist/gpu-physics/rigid-body-queries.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-queries.js +166 -14
- package/dist/gpu-physics/rigid-body-queries.js.map +1 -1
- package/dist/gpu-physics/rigid-body-shaders.cjs +3 -3
- 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 +3 -3
- package/dist/gpu-physics/rigid-body-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-triggers.cjs +53 -15
- package/dist/gpu-physics/rigid-body-triggers.d.ts +1 -0
- package/dist/gpu-physics/rigid-body-triggers.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-triggers.js +55 -15
- package/dist/gpu-physics/rigid-body-triggers.js.map +1 -1
- package/dist/gpu-physics/sphere-world-shaders.cjs +48 -20
- package/dist/gpu-physics/sphere-world-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/sphere-world-shaders.js +51 -21
- package/dist/gpu-physics/sphere-world-shaders.js.map +1 -1
- package/dist/gpu-project/benchmarks.cjs.map +2 -2
- package/dist/gpu-project/crs.cjs.map +2 -2
- package/dist/gpu-project/graph.cjs.map +2 -2
- package/dist/gpu-project/index.cjs.map +2 -2
- package/dist/gpu-project/projection-program.cjs +2 -9
- package/dist/gpu-project/projection-program.d.ts.map +1 -1
- package/dist/gpu-project/projection-program.js +1 -8
- package/dist/gpu-project/projection-program.js.map +1 -1
- package/dist/gpu-simple-graph/index.cjs.map +2 -2
- package/dist/gpu-sql/gpu-sql.cjs +345 -81
- package/dist/gpu-sql/gpu-sql.d.ts +42 -2
- package/dist/gpu-sql/gpu-sql.d.ts.map +1 -1
- package/dist/gpu-sql/gpu-sql.js +393 -90
- package/dist/gpu-sql/gpu-sql.js.map +1 -1
- package/dist/gpu-sql/index.cjs.map +3 -3
- package/dist/gpu-sql/index.d.ts +1 -1
- package/dist/gpu-sql/index.d.ts.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/utils/float32.cjs +35 -0
- package/dist/utils/float32.d.ts +3 -0
- package/dist/utils/float32.d.ts.map +1 -0
- package/dist/utils/float32.js +16 -0
- package/dist/utils/float32.js.map +1 -0
- package/package.json +8 -8
- package/src/arrow/gpu/arrow-gpu-analytics-adapters.ts +77 -25
- package/src/arrow/gpu/arrow-gpu-analytics-readback.ts +52 -16
- package/src/arrow/gpu/arrow-gpu-table-conversion.ts +130 -31
- package/src/arrow/gpu/arrow-gpu-vector-conversion.ts +19 -0
- package/src/arrow/index.ts +1 -0
- package/src/arrow/vectors/arrow-temporal-gpu-vector.ts +2 -2
- package/src/gpu-core/gpu-bvh-bounds.ts +84 -0
- package/src/gpu-core/gpu-command-graph-budget-controller.ts +22 -2
- package/src/gpu-core/gpu-command-graph-submission-pacer.ts +102 -0
- package/src/gpu-core/gpu-group-aggregation.ts +68 -30
- package/src/gpu-core/index.ts +5 -0
- package/src/gpu-dataframe/gpu-analytics-compiler-utils.ts +7 -10
- package/src/gpu-dataframe/gpu-data-frame-query.ts +106 -25
- package/src/gpu-dataframe/gpu-data-frame.ts +35 -2
- package/src/gpu-dataframe/gpu-expression-shader.ts +172 -58
- package/src/gpu-dataframe/gpu-expression.ts +62 -9
- package/src/gpu-dataframe/gpu-global-aggregation-compiler.ts +15 -4
- package/src/gpu-dataframe/gpu-global-aggregation-query.ts +12 -3
- package/src/gpu-dataframe/gpu-global-sort-compiler.ts +231 -156
- package/src/gpu-dataframe/gpu-group-aggregation-compiler.ts +645 -61
- package/src/gpu-dataframe/gpu-group-by-query.ts +51 -14
- package/src/gpu-dataframe/gpu-join-compiler.ts +87 -6
- package/src/gpu-dataframe/gpu-query-compiler.ts +100 -18
- package/src/gpu-dataframe/index.ts +1 -1
- package/src/gpu-graph-algorithms/README.md +4 -2
- package/src/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.ts +248 -66
- package/src/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.ts +218 -20
- package/src/gpu-physics/articulation-tree-shader.ts +169 -0
- package/src/gpu-physics/gpu-articulation-tree.ts +279 -0
- package/src/gpu-physics/gpu-physics-batch.ts +19 -13
- package/src/gpu-physics/gpu-physics-ensemble.ts +20 -4
- package/src/gpu-physics/gpu-rigid-body-world.ts +510 -93
- package/src/gpu-physics/index.ts +16 -0
- package/src/gpu-physics/rigid-body-cache-shaders.ts +18 -6
- package/src/gpu-physics/rigid-body-capacity.ts +25 -4
- package/src/gpu-physics/rigid-body-cast-index.ts +277 -0
- package/src/gpu-physics/rigid-body-ensemble-layout.ts +6 -2
- package/src/gpu-physics/rigid-body-ensemble-reset.ts +21 -9
- package/src/gpu-physics/rigid-body-ensemble-shaders.ts +18 -7
- package/src/gpu-physics/rigid-body-ensemble-transaction.ts +31 -13
- package/src/gpu-physics/rigid-body-event-compaction.ts +252 -0
- package/src/gpu-physics/rigid-body-event-snapshot.ts +76 -0
- package/src/gpu-physics/rigid-body-events.ts +63 -25
- package/src/gpu-physics/rigid-body-joints.ts +11 -11
- package/src/gpu-physics/rigid-body-queries.ts +202 -14
- package/src/gpu-physics/rigid-body-shaders.ts +4 -3
- package/src/gpu-physics/rigid-body-triggers.ts +64 -20
- package/src/gpu-physics/sphere-world-shaders.ts +53 -21
- package/src/gpu-project/projection-program.ts +1 -9
- package/src/gpu-sql/gpu-sql.ts +629 -124
- package/src/gpu-sql/index.ts +1 -1
- package/src/utils/float32.ts +16 -0
|
@@ -18,6 +18,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
18
18
|
var gpu_global_sort_compiler_exports = {};
|
|
19
19
|
__export(gpu_global_sort_compiler_exports, {
|
|
20
20
|
CompiledGPUDataFrameGlobalSort: () => CompiledGPUDataFrameGlobalSort,
|
|
21
|
+
addGPUGlobalOrdering: () => addGPUGlobalOrdering,
|
|
21
22
|
compileGPUDataFrameGlobalSort: () => compileGPUDataFrameGlobalSort
|
|
22
23
|
});
|
|
23
24
|
module.exports = __toCommonJS(gpu_global_sort_compiler_exports);
|
|
@@ -42,11 +43,12 @@ class CompiledGPUDataFrameGlobalSort extends import_gpu_sort_compiler.CompiledGP
|
|
|
42
43
|
this.globalSelectedCount = globalSelectedCount;
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
|
-
function compileGPUDataFrameGlobalSort(source, predicates, selectedColumns, derivedColumns, column, options, graph) {
|
|
46
|
-
|
|
46
|
+
function compileGPUDataFrameGlobalSort(source, predicates, selectedColumns, derivedColumns, column, options, graph, resultColumns, additionalKeys = []) {
|
|
47
|
+
const keys = [{ column, options }, ...additionalKeys];
|
|
48
|
+
(0, import_gpu_analytics_compiler_utils.validateGPUAnalyticsSource)(source, keys.map((key) => key.column));
|
|
47
49
|
validateGPUGlobalSortCapacity(source, graph);
|
|
48
50
|
return (0, import_gpu_query_compiler.compileGPUDataFrameQuery)(source, predicates, selectedColumns, graph, derivedColumns, {
|
|
49
|
-
prepare: (context) => addGPUGlobalSortToGraph(context,
|
|
51
|
+
prepare: (context) => addGPUGlobalSortToGraph(context, keys, resultColumns)
|
|
50
52
|
});
|
|
51
53
|
}
|
|
52
54
|
function validateGPUGlobalSortCapacity(source, graph) {
|
|
@@ -66,116 +68,144 @@ function validateGPUGlobalSortCapacity(source, graph) {
|
|
|
66
68
|
fallbackOffset += batch.numRows;
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
|
-
function addGPUGlobalSortToGraph(context,
|
|
70
|
-
var _a, _b;
|
|
71
|
-
const graph = context.graph;
|
|
71
|
+
function addGPUGlobalSortToGraph(context, keys, resultColumns) {
|
|
72
72
|
const prefix = `${context.queryId}-global-sort`;
|
|
73
73
|
const ownedVectors = [];
|
|
74
74
|
try {
|
|
75
|
-
const
|
|
76
|
-
const
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
const { column, options } = keys[0];
|
|
76
|
+
const { globalRowIndices, globalSelectedCount } = addGPUGlobalOrdering(context, keys, ownedVectors, prefix);
|
|
77
|
+
const projection = resultColumns && (0, import_gpu_query_compiler.projectGPUDataFrameQueryResult)(context, resultColumns);
|
|
78
|
+
return {
|
|
79
|
+
table: (projection == null ? void 0 : projection.table) ?? context.table,
|
|
80
|
+
validity: (projection == null ? void 0 : projection.validity) ?? context.validity,
|
|
81
|
+
dictionaries: (projection == null ? void 0 : projection.dictionaries) ?? context.dictionaries,
|
|
82
|
+
ownedTables: projection ? [projection] : [],
|
|
83
|
+
ownedVectors,
|
|
84
|
+
createCompiled: (props) => new CompiledGPUDataFrameGlobalSort(props, column, options, globalRowIndices, globalSelectedCount)
|
|
85
|
+
};
|
|
86
|
+
} catch (error) {
|
|
87
|
+
for (const vector of ownedVectors) {
|
|
88
|
+
vector.destroy();
|
|
80
89
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
throw error;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function addGPUGlobalOrdering(context, keys, ownedVectors, prefix) {
|
|
94
|
+
var _a;
|
|
95
|
+
const { graph } = context;
|
|
96
|
+
const { options } = keys[0];
|
|
97
|
+
const length = context.table.numRows;
|
|
98
|
+
const globalRowIndices = (0, import_gpu_analytics_compiler_utils.createGPUAnalyticsOutputVector)(graph.device, `${prefix}-row-indices`, "uint32", length);
|
|
99
|
+
ownedVectors.push(globalRowIndices);
|
|
100
|
+
const globalSelectedCount = (0, import_gpu_analytics_compiler_utils.createGPUAnalyticsOutputVector)(graph.device, `${prefix}-selected-count`, "uint32", 1);
|
|
101
|
+
ownedVectors.push(globalSelectedCount);
|
|
102
|
+
const globalRows = graph.importGPUVector(`${prefix}-row-vector`, globalRowIndices).data[0];
|
|
103
|
+
const selectedCount = graph.importGPUVector(`${prefix}-count-vector`, globalSelectedCount).data[0];
|
|
104
|
+
graph.add(new import_gpu_core.GPUReduction({
|
|
105
|
+
id: `${prefix}-count-selected`,
|
|
106
|
+
input: context.selectedCounts,
|
|
107
|
+
output: selectedCount,
|
|
108
|
+
operation: "sum"
|
|
109
|
+
}));
|
|
110
|
+
if (length > 0) {
|
|
111
|
+
const scratch = createGPUGlobalSortScratch(graph, prefix, length);
|
|
112
|
+
for (let index = keys.length - 1; index >= 0; index--) {
|
|
113
|
+
addGPUGlobalSortKeyPasses(context, `${prefix}-key-${index}`, keys[index], scratch, index === keys.length - 1);
|
|
114
|
+
}
|
|
115
|
+
addGPUGlobalSortPublishPass(graph, `${prefix}-publish`, {
|
|
116
|
+
scratch,
|
|
117
|
+
output: globalRows,
|
|
118
|
+
count: selectedCount,
|
|
119
|
+
offset: options.offset ?? 0,
|
|
120
|
+
limit: options.limit ?? MAXIMUM_UINT32
|
|
121
|
+
});
|
|
122
|
+
if (options.offset || options.limit !== void 0) {
|
|
96
123
|
let globalOffset = 0;
|
|
97
124
|
let fallbackOffset = 0;
|
|
98
125
|
for (const [batchIndex, batch] of context.table.batches.entries()) {
|
|
99
126
|
if (batch.numRows > 0) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
scratch,
|
|
127
|
+
const selection = context.selectionMask.data[batchIndex];
|
|
128
|
+
addGPUGlobalTopKSelectionPass(graph, `${prefix}-select-batch-${batchIndex}`, {
|
|
129
|
+
ranks: scratch.sourceClasses,
|
|
130
|
+
selection,
|
|
105
131
|
globalOffset,
|
|
106
|
-
|
|
107
|
-
options
|
|
132
|
+
offset: options.offset ?? 0,
|
|
133
|
+
limit: options.limit ?? MAXIMUM_UINT32
|
|
108
134
|
});
|
|
135
|
+
graph.add(new import_gpu_core3.GPUVisibilityWorkflow({
|
|
136
|
+
id: `${prefix}-visibility-batch-${batchIndex}`,
|
|
137
|
+
predicates: [{ kind: "selection", mask: selection }],
|
|
138
|
+
outputMask: selection,
|
|
139
|
+
output: context.rowIndices.data[batchIndex],
|
|
140
|
+
count: context.selectedCounts.data[batchIndex],
|
|
141
|
+
firstSourceIndex: ((_a = batch.sourceInfo) == null ? void 0 : _a.sourceRowIndexOffset) ?? fallbackOffset
|
|
142
|
+
}));
|
|
109
143
|
}
|
|
110
144
|
globalOffset += batch.numRows;
|
|
111
145
|
fallbackOffset += batch.numRows;
|
|
112
146
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return { globalRowIndices, globalSelectedCount };
|
|
150
|
+
}
|
|
151
|
+
function addGPUGlobalSortKeyPasses(context, prefix, { column, options }, scratch, initialize) {
|
|
152
|
+
var _a;
|
|
153
|
+
const graph = context.graph;
|
|
154
|
+
const input = graph.importGPUVector(`${prefix}-input`, (0, import_gpu_analytics_compiler_utils.getGPUAnalyticsVector)(context, column));
|
|
155
|
+
const field = context.table.schema.fields.find((candidate) => candidate.name === column);
|
|
156
|
+
const validityVector = (field == null ? void 0 : field.nullable) ? context.validity[column] : void 0;
|
|
157
|
+
if ((field == null ? void 0 : field.nullable) && !validityVector && input.length > 0) {
|
|
158
|
+
throw new Error(`GPUDataFrame nullable global sort column "${column}" requires GPU validity`);
|
|
159
|
+
}
|
|
160
|
+
const validity = validityVector ? graph.importGPUVector(`${prefix}-source-validity`, validityVector) : void 0;
|
|
161
|
+
let globalOffset = 0;
|
|
162
|
+
let fallbackOffset = 0;
|
|
163
|
+
for (const [batchIndex, batch] of context.table.batches.entries()) {
|
|
164
|
+
if (batch.numRows > 0) {
|
|
165
|
+
addGPUGlobalSortStagePass(graph, `${prefix}-stage-batch-${batchIndex}`, {
|
|
166
|
+
input: input.data[batchIndex],
|
|
167
|
+
selection: context.selectionMask.data[batchIndex],
|
|
168
|
+
validity: validity == null ? void 0 : validity.data[batchIndex],
|
|
133
169
|
scratch,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
170
|
+
globalOffset,
|
|
171
|
+
sourceOffset: ((_a = batch.sourceInfo) == null ? void 0 : _a.sourceRowIndexOffset) ?? fallbackOffset,
|
|
172
|
+
options,
|
|
173
|
+
initialize
|
|
138
174
|
});
|
|
139
|
-
if (options.offset || options.limit !== void 0) {
|
|
140
|
-
let globalOffset2 = 0;
|
|
141
|
-
let fallbackOffset2 = 0;
|
|
142
|
-
for (const [batchIndex, batch] of context.table.batches.entries()) {
|
|
143
|
-
if (batch.numRows > 0) {
|
|
144
|
-
const selection = context.selectionMask.data[batchIndex];
|
|
145
|
-
addGPUGlobalTopKSelectionPass(graph, `${prefix}-select-batch-${batchIndex}`, {
|
|
146
|
-
ranks: scratch.sourceClasses,
|
|
147
|
-
selection,
|
|
148
|
-
globalOffset: globalOffset2,
|
|
149
|
-
offset: options.offset ?? 0,
|
|
150
|
-
limit: options.limit ?? MAXIMUM_UINT32
|
|
151
|
-
});
|
|
152
|
-
graph.add(new import_gpu_core3.GPUVisibilityWorkflow({
|
|
153
|
-
id: `${prefix}-visibility-batch-${batchIndex}`,
|
|
154
|
-
predicates: [{ kind: "selection", mask: selection }],
|
|
155
|
-
outputMask: selection,
|
|
156
|
-
output: context.rowIndices.data[batchIndex],
|
|
157
|
-
count: context.selectedCounts.data[batchIndex],
|
|
158
|
-
firstSourceIndex: ((_b = batch.sourceInfo) == null ? void 0 : _b.sourceRowIndexOffset) ?? fallbackOffset2
|
|
159
|
-
}));
|
|
160
|
-
}
|
|
161
|
-
globalOffset2 += batch.numRows;
|
|
162
|
-
fallbackOffset2 += batch.numRows;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
175
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
validity: context.validity,
|
|
169
|
-
dictionaries: context.dictionaries,
|
|
170
|
-
ownedVectors,
|
|
171
|
-
createCompiled: (props) => new CompiledGPUDataFrameGlobalSort(props, column, options, globalRowIndices, globalSelectedCount)
|
|
172
|
-
};
|
|
173
|
-
} catch (error) {
|
|
174
|
-
for (const vector of ownedVectors) {
|
|
175
|
-
vector.destroy();
|
|
176
|
-
}
|
|
177
|
-
throw error;
|
|
176
|
+
globalOffset += batch.numRows;
|
|
177
|
+
fallbackOffset += batch.numRows;
|
|
178
178
|
}
|
|
179
|
+
if (!initialize) {
|
|
180
|
+
addGPUGlobalSortGatherPass(graph, `${prefix}-gather-keys`, {
|
|
181
|
+
ordinals: scratch.sourceOrdinals,
|
|
182
|
+
input: scratch.encodedKeys,
|
|
183
|
+
output: scratch.sortedKeys
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
graph.add(new import_gpu_core2.GPUSort({
|
|
187
|
+
id: `${prefix}-numeric`,
|
|
188
|
+
keys: initialize ? scratch.encodedKeys : scratch.sortedKeys,
|
|
189
|
+
values: scratch.sourceOrdinals,
|
|
190
|
+
outputKeys: initialize ? scratch.sortedKeys : scratch.encodedKeys,
|
|
191
|
+
outputValues: scratch.sortedOrdinals,
|
|
192
|
+
direction: options.direction,
|
|
193
|
+
algorithm: options.algorithm
|
|
194
|
+
}));
|
|
195
|
+
addGPUGlobalSortGatherPass(graph, `${prefix}-gather-classes`, {
|
|
196
|
+
ordinals: scratch.sortedOrdinals,
|
|
197
|
+
input: scratch.sourceClasses,
|
|
198
|
+
output: scratch.sortedKeys
|
|
199
|
+
});
|
|
200
|
+
graph.add(new import_gpu_core2.GPUSort({
|
|
201
|
+
id: `${prefix}-classes`,
|
|
202
|
+
keys: scratch.sortedKeys,
|
|
203
|
+
values: scratch.sortedOrdinals,
|
|
204
|
+
outputKeys: scratch.encodedKeys,
|
|
205
|
+
outputValues: scratch.sourceOrdinals,
|
|
206
|
+
direction: "ascending",
|
|
207
|
+
algorithm: options.algorithm
|
|
208
|
+
}));
|
|
179
209
|
}
|
|
180
210
|
function createGPUGlobalSortScratch(graph, prefix, length) {
|
|
181
211
|
return {
|
|
@@ -216,9 +246,9 @@ const ROW_OFFSET: u32 = ${(0, import_gpu_core4.getViewElementOffset)(props.scrat
|
|
|
216
246
|
@group(0) @binding(1) var<storage, read> selectionMask: array<u32>;
|
|
217
247
|
${validityBinding}
|
|
218
248
|
@group(0) @binding(${outputBinding}) var<storage, read_write> encodedKeys: array<u32>;
|
|
219
|
-
|
|
220
|
-
@group(0) @binding(${outputBinding + 2}) var<storage, read_write> sourceClasses: array<u32>;
|
|
221
|
-
|
|
249
|
+
${props.initialize ? `@group(0) @binding(${outputBinding + 1}) var<storage, read_write> sourceOrdinals: array<u32>;` : ""}
|
|
250
|
+
@group(0) @binding(${outputBinding + (props.initialize ? 2 : 1)}) var<storage, read_write> sourceClasses: array<u32>;
|
|
251
|
+
${props.initialize ? `@group(0) @binding(${outputBinding + 3}) var<storage, read_write> sourceRows: array<u32>;` : ""}
|
|
222
252
|
|
|
223
253
|
@compute @workgroup_size(${import_gpu_analytics_compiler_utils.LU_ANALYTICS_WORKGROUP_SIZE})
|
|
224
254
|
fn main(
|
|
@@ -236,9 +266,9 @@ fn main(
|
|
|
236
266
|
if (isNull) { rank = ${nullRank}u; }
|
|
237
267
|
if (selectionMask[SELECTION_OFFSET + index] == 0u) { rank = 3u; }
|
|
238
268
|
encodedKeys[KEY_OFFSET + ordinal] = select(${keyExpression}, 0u, isNull || isNaN);
|
|
239
|
-
sourceOrdinals[ORDINAL_OFFSET + ordinal] = ordinal;
|
|
269
|
+
${props.initialize ? "sourceOrdinals[ORDINAL_OFFSET + ordinal] = ordinal;" : ""}
|
|
240
270
|
sourceClasses[CLASS_OFFSET + ordinal] = rank;
|
|
241
|
-
sourceRows[ROW_OFFSET + ordinal] = SOURCE_OFFSET + index;
|
|
271
|
+
${props.initialize ? "sourceRows[ROW_OFFSET + ordinal] = SOURCE_OFFSET + index;" : ""}
|
|
242
272
|
}`
|
|
243
273
|
);
|
|
244
274
|
const resources = [
|
|
@@ -253,12 +283,13 @@ fn main(
|
|
|
253
283
|
resources.push({ buffer: props.validity, usage: "storage-read" });
|
|
254
284
|
bindings["validityValues"] = props.validity;
|
|
255
285
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
["sourceOrdinals", props.scratch.sourceOrdinals]
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
286
|
+
const outputs = [["encodedKeys", props.scratch.encodedKeys]];
|
|
287
|
+
if (props.initialize)
|
|
288
|
+
outputs.push(["sourceOrdinals", props.scratch.sourceOrdinals]);
|
|
289
|
+
outputs.push(["sourceClasses", props.scratch.sourceClasses]);
|
|
290
|
+
if (props.initialize)
|
|
291
|
+
outputs.push(["sourceRows", props.scratch.sourceRows]);
|
|
292
|
+
for (const [name, view] of outputs) {
|
|
262
293
|
resources.push({ buffer: view, usage: "storage-write" });
|
|
263
294
|
bindings[name] = view;
|
|
264
295
|
}
|
|
@@ -274,27 +305,27 @@ function getGPUGlobalSortNumericKeyExpression(format) {
|
|
|
274
305
|
return "select(bitcast<u32>(value), 0u, value == 0.0) ^ select(0x80000000u, 0xffffffffu, (bitcast<u32>(value) & 0x80000000u) != 0u && value != 0.0)";
|
|
275
306
|
}
|
|
276
307
|
}
|
|
277
|
-
function
|
|
308
|
+
function addGPUGlobalSortGatherPass(graph, id, { ordinals, input, output }) {
|
|
278
309
|
const source = (
|
|
279
310
|
/* wgsl */
|
|
280
311
|
`
|
|
281
|
-
const ELEMENT_COUNT: u32 = ${
|
|
282
|
-
const ORDINAL_OFFSET: u32 = ${(0, import_gpu_core4.getViewElementOffset)(
|
|
283
|
-
const
|
|
284
|
-
const OUTPUT_OFFSET: u32 = ${(0, import_gpu_core4.getViewElementOffset)(
|
|
285
|
-
@group(0) @binding(0) var<storage, read>
|
|
286
|
-
@group(0) @binding(1) var<storage, read>
|
|
287
|
-
@group(0) @binding(2) var<storage, read_write>
|
|
312
|
+
const ELEMENT_COUNT: u32 = ${ordinals.length}u;
|
|
313
|
+
const ORDINAL_OFFSET: u32 = ${(0, import_gpu_core4.getViewElementOffset)(ordinals)}u;
|
|
314
|
+
const INPUT_OFFSET: u32 = ${(0, import_gpu_core4.getViewElementOffset)(input)}u;
|
|
315
|
+
const OUTPUT_OFFSET: u32 = ${(0, import_gpu_core4.getViewElementOffset)(output)}u;
|
|
316
|
+
@group(0) @binding(0) var<storage, read> sourceOrdinals: array<u32>;
|
|
317
|
+
@group(0) @binding(1) var<storage, read> sourceValues: array<u32>;
|
|
318
|
+
@group(0) @binding(2) var<storage, read_write> gatheredValues: array<u32>;
|
|
288
319
|
|
|
289
320
|
@compute @workgroup_size(${import_gpu_analytics_compiler_utils.LU_ANALYTICS_WORKGROUP_SIZE})
|
|
290
321
|
fn main(
|
|
291
322
|
@builtin(local_invocation_index) localInvocationIndex: u32,
|
|
292
323
|
@builtin(workgroup_id) workgroupId: vec3<u32>
|
|
293
324
|
) {
|
|
294
|
-
${(0, import_gpu_analytics_compiler_utils.getGPUAnalyticsInvocationIndexSource)(graph,
|
|
325
|
+
${(0, import_gpu_analytics_compiler_utils.getGPUAnalyticsInvocationIndexSource)(graph, ordinals.length)}
|
|
295
326
|
if (index < ELEMENT_COUNT) {
|
|
296
|
-
|
|
297
|
-
|
|
327
|
+
gatheredValues[OUTPUT_OFFSET + index] =
|
|
328
|
+
sourceValues[INPUT_OFFSET + sourceOrdinals[ORDINAL_OFFSET + index]];
|
|
298
329
|
}
|
|
299
330
|
}`
|
|
300
331
|
);
|
|
@@ -302,16 +333,16 @@ fn main(
|
|
|
302
333
|
id,
|
|
303
334
|
source,
|
|
304
335
|
resources: [
|
|
305
|
-
{ buffer:
|
|
306
|
-
{ buffer:
|
|
307
|
-
{ buffer:
|
|
336
|
+
{ buffer: ordinals, usage: "storage-read" },
|
|
337
|
+
{ buffer: input, usage: "storage-read" },
|
|
338
|
+
{ buffer: output, usage: "storage-write" }
|
|
308
339
|
],
|
|
309
340
|
bindings: {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
341
|
+
sourceOrdinals: ordinals,
|
|
342
|
+
sourceValues: input,
|
|
343
|
+
gatheredValues: output
|
|
313
344
|
},
|
|
314
|
-
length:
|
|
345
|
+
length: ordinals.length
|
|
315
346
|
});
|
|
316
347
|
}
|
|
317
348
|
function addGPUGlobalSortPublishPass(graph, id, props) {
|
|
@@ -423,5 +454,6 @@ fn main(
|
|
|
423
454
|
// Annotate the CommonJS export names for ESM import in node:
|
|
424
455
|
0 && (module.exports = {
|
|
425
456
|
CompiledGPUDataFrameGlobalSort,
|
|
457
|
+
addGPUGlobalOrdering,
|
|
426
458
|
compileGPUDataFrameGlobalSort
|
|
427
459
|
});
|
|
@@ -4,7 +4,7 @@ import { type GPUCommandGraph } from '@luma.gl/graph/gpu-core';
|
|
|
4
4
|
import type { GPUDataFrame } from "./gpu-data-frame.js";
|
|
5
5
|
import type { GPUDataFrameDerivedColumn } from "./gpu-data-frame-query.js";
|
|
6
6
|
import type { GPUExpression } from "./gpu-expression.js";
|
|
7
|
-
import { type CompiledGPUDataFrameQueryProps, type GPUDataFrameQueryParameters } from "./gpu-query-compiler.js";
|
|
7
|
+
import { type CompiledGPUDataFrameQueryProps, type GPUDataFrameQueryExtensionContext, type GPUDataFrameQueryParameters } from "./gpu-query-compiler.js";
|
|
8
8
|
import { CompiledGPUDataFrameSort } from "./gpu-sort-compiler.js";
|
|
9
9
|
import type { GPUDataFrameNormalizedSortOptions } from "./gpu-sort-query.js";
|
|
10
10
|
/** Stable cross-batch ordering with explicit GPU-owned global row identities and selected count. */
|
|
@@ -16,6 +16,16 @@ export declare class CompiledGPUDataFrameGlobalSort<T extends GPUTypeMap = GPUTy
|
|
|
16
16
|
/** @internal */
|
|
17
17
|
constructor(props: CompiledGPUDataFrameQueryProps<T>, column: keyof T & string, options: GPUDataFrameNormalizedSortOptions, globalRowIndices: GPUVector<'uint32'>, globalSelectedCount: GPUVector<'uint32'>);
|
|
18
18
|
}
|
|
19
|
+
/** One globally ordered column and its stable sort controls. @internal */
|
|
20
|
+
export type GPUGlobalSortKey<Column extends string = string> = Readonly<{
|
|
21
|
+
column: Column;
|
|
22
|
+
options: GPUDataFrameNormalizedSortOptions;
|
|
23
|
+
}>;
|
|
19
24
|
/** Adds explicit globally stable ordering while leaving source buffers and batches untouched. */
|
|
20
|
-
export declare function compileGPUDataFrameGlobalSort<Source extends GPUTypeMap, Selection extends GPUTypeMap>(source: GPUDataFrame<Source>, predicates: readonly GPUExpression<boolean, string>[], selectedColumns: readonly (keyof Selection & string)[], derivedColumns: readonly GPUDataFrameDerivedColumn[], column: keyof Selection & string, options: GPUDataFrameNormalizedSortOptions, graph: GPUCommandGraph<GPUDataFrameQueryParameters>): CompiledGPUDataFrameGlobalSort<Selection>;
|
|
25
|
+
export declare function compileGPUDataFrameGlobalSort<Source extends GPUTypeMap, Selection extends GPUTypeMap>(source: GPUDataFrame<Source>, predicates: readonly GPUExpression<boolean, string>[], selectedColumns: readonly (keyof Selection & string)[], derivedColumns: readonly GPUDataFrameDerivedColumn[], column: keyof Selection & string, options: GPUDataFrameNormalizedSortOptions, graph: GPUCommandGraph<GPUDataFrameQueryParameters>, resultColumns?: readonly (keyof Selection & string)[], additionalKeys?: readonly GPUGlobalSortKey<keyof Selection & string>[]): CompiledGPUDataFrameGlobalSort<Selection>;
|
|
26
|
+
/** Orders a prepared table and its selection within the caller's open graph. @internal */
|
|
27
|
+
export declare function addGPUGlobalOrdering<Selection extends GPUTypeMap>(context: GPUDataFrameQueryExtensionContext<Selection>, keys: readonly GPUGlobalSortKey<keyof Selection & string>[], ownedVectors: GPUVector[], prefix: string): {
|
|
28
|
+
globalRowIndices: GPUVector<'uint32'>;
|
|
29
|
+
globalSelectedCount: GPUVector<'uint32'>;
|
|
30
|
+
};
|
|
21
31
|
//# sourceMappingURL=gpu-global-sort-compiler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gpu-global-sort-compiler.d.ts","sourceRoot":"","sources":["../../src/gpu-dataframe/gpu-global-sort-compiler.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,KAAK,SAAS,EAAC,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAC,KAAK,UAAU,EAAC,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,yBAAyB,CAAC;AAgBjC,OAAO,KAAK,EAAC,YAAY,EAAC,4BAAyB;AACnD,OAAO,KAAK,EAAC,yBAAyB,EAAC,kCAA+B;AACtE,OAAO,KAAK,EAAC,aAAa,EAAC,4BAAyB;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"gpu-global-sort-compiler.d.ts","sourceRoot":"","sources":["../../src/gpu-dataframe/gpu-global-sort-compiler.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,KAAK,SAAS,EAAC,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAC,KAAK,UAAU,EAAC,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,yBAAyB,CAAC;AAgBjC,OAAO,KAAK,EAAC,YAAY,EAAC,4BAAyB;AACnD,OAAO,KAAK,EAAC,yBAAyB,EAAC,kCAA+B;AACtE,OAAO,KAAK,EAAC,aAAa,EAAC,4BAAyB;AACpD,OAAO,EAGL,KAAK,8BAA8B,EACnC,KAAK,iCAAiC,EAEtC,KAAK,2BAA2B,EACjC,gCAA6B;AAC9B,OAAO,EAAC,wBAAwB,EAAC,+BAA4B;AAC7D,OAAO,KAAK,EAAC,iCAAiC,EAAC,4BAAyB;AAcxE,oGAAoG;AACpG,qBAAa,8BAA8B,CACzC,CAAC,SAAS,UAAU,GAAG,UAAU,CACjC,SAAQ,wBAAwB,CAAC,CAAC,CAAC;IACnC,iGAAiG;IACjG,QAAQ,CAAC,gBAAgB,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC/C,uFAAuF;IACvF,QAAQ,CAAC,mBAAmB,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAElD,gBAAgB;gBAEd,KAAK,EAAE,8BAA8B,CAAC,CAAC,CAAC,EACxC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EACxB,OAAO,EAAE,iCAAiC,EAC1C,gBAAgB,EAAE,SAAS,CAAC,QAAQ,CAAC,EACrC,mBAAmB,EAAE,SAAS,CAAC,QAAQ,CAAC;CAM3C;AAED,0EAA0E;AAC1E,MAAM,MAAM,gBAAgB,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,IAAI,QAAQ,CAAC;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,iCAAiC,CAAC;CAC5C,CAAC,CAAC;AAEH,iGAAiG;AACjG,wBAAgB,6BAA6B,CAC3C,MAAM,SAAS,UAAU,EACzB,SAAS,SAAS,UAAU,EAE5B,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,EAC5B,UAAU,EAAE,SAAS,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,EACrD,eAAe,EAAE,SAAS,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,EAAE,EACtD,cAAc,EAAE,SAAS,yBAAyB,EAAE,EACpD,MAAM,EAAE,MAAM,SAAS,GAAG,MAAM,EAChC,OAAO,EAAE,iCAAiC,EAC1C,KAAK,EAAE,eAAe,CAAC,2BAA2B,CAAC,EACnD,aAAa,CAAC,EAAE,SAAS,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,EAAE,EACrD,cAAc,GAAE,SAAS,gBAAgB,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,EAAO,GACzE,8BAA8B,CAAC,SAAS,CAAC,CAe3C;AAsED,0FAA0F;AAC1F,wBAAgB,oBAAoB,CAAC,SAAS,SAAS,UAAU,EAC/D,OAAO,EAAE,iCAAiC,CAAC,SAAS,CAAC,EACrD,IAAI,EAAE,SAAS,gBAAgB,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,EAAE,EAC3D,YAAY,EAAE,SAAS,EAAE,EACzB,MAAM,EAAE,MAAM,GACb;IAAC,gBAAgB,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAAC,mBAAmB,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAA;CAAC,CAkFnF"}
|