@luma.gl/graph 0.0.0-stage → 10.0.0-alpha.6
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 +38 -0
- package/README.md +62 -2
- package/dist/arrow/dggs/dggs-gpu-polygons.cjs +667 -0
- package/dist/arrow/dggs/dggs-gpu-polygons.d.ts +75 -0
- package/dist/arrow/dggs/dggs-gpu-polygons.d.ts.map +1 -0
- package/dist/arrow/dggs/dggs-gpu-polygons.js +651 -0
- package/dist/arrow/dggs/dggs-gpu-polygons.js.map +1 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.cjs +411 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts +31 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts.map +1 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js +395 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js.map +1 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.cjs +304 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts +32 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts.map +1 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js +293 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js.map +1 -0
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.cjs +232 -0
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.d.ts +54 -0
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.d.ts.map +1 -0
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.js +222 -0
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.js.map +1 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.cjs +314 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.d.ts +42 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.d.ts.map +1 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.js +318 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.js.map +1 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.cjs +204 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.d.ts +30 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.d.ts.map +1 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.js +195 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.js.map +1 -0
- package/dist/arrow/gpu/arrow-gpu-table-adapters.cjs +257 -0
- package/dist/arrow/gpu/arrow-gpu-table-adapters.d.ts +45 -0
- package/dist/arrow/gpu/arrow-gpu-table-adapters.d.ts.map +1 -0
- package/dist/arrow/gpu/arrow-gpu-table-adapters.js +257 -0
- package/dist/arrow/gpu/arrow-gpu-table-adapters.js.map +1 -0
- package/dist/arrow/gpu/arrow-gpu-table-conversion.cjs +230 -0
- package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts +71 -0
- package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts.map +1 -0
- package/dist/arrow/gpu/arrow-gpu-table-conversion.js +215 -0
- package/dist/arrow/gpu/arrow-gpu-table-conversion.js.map +1 -0
- package/dist/arrow/gpu/arrow-input-schema.cjs +36 -0
- package/dist/arrow/gpu/arrow-input-schema.d.ts +41 -0
- package/dist/arrow/gpu/arrow-input-schema.d.ts.map +1 -0
- package/dist/arrow/gpu/arrow-input-schema.js +17 -0
- package/dist/arrow/gpu/arrow-input-schema.js.map +1 -0
- package/dist/arrow/index.cjs +90 -0
- package/dist/arrow/index.cjs.map +6 -0
- package/dist/arrow/index.d.ts +9 -0
- package/dist/arrow/index.d.ts.map +1 -0
- package/dist/arrow/index.js +12 -0
- package/dist/arrow/index.js.map +1 -0
- package/dist/arrow/internal.cjs +30 -0
- package/dist/arrow/internal.cjs.map +6 -0
- package/dist/arrow/internal.d.ts +19 -0
- package/dist/arrow/internal.d.ts.map +1 -0
- package/dist/arrow/internal.js +7 -0
- package/dist/arrow/internal.js.map +1 -0
- package/dist/dist.dev.js +9873 -0
- package/dist/dist.min.js +205 -0
- package/dist/experimental/index.cjs +23 -0
- package/dist/experimental/index.cjs.map +6 -0
- package/dist/experimental/index.d.ts +3 -0
- package/dist/experimental/index.d.ts.map +1 -0
- package/dist/experimental/index.js +6 -0
- package/dist/experimental/index.js.map +1 -0
- package/dist/experimental/models/index.cjs +42 -0
- package/dist/experimental/models/index.cjs.map +6 -0
- package/dist/experimental/models/index.d.ts +6 -0
- package/dist/experimental/models/index.d.ts.map +1 -0
- package/dist/experimental/models/index.js +8 -0
- package/dist/experimental/models/index.js.map +1 -0
- package/dist/experimental/models/path/gpu/gpu-path-expansion.cjs +238 -0
- package/dist/experimental/models/path/gpu/gpu-path-expansion.d.ts +70 -0
- package/dist/experimental/models/path/gpu/gpu-path-expansion.d.ts.map +1 -0
- package/dist/experimental/models/path/gpu/gpu-path-expansion.js +213 -0
- package/dist/experimental/models/path/gpu/gpu-path-expansion.js.map +1 -0
- package/dist/experimental/models/path/gpu/path-storage-gpu-inputs.cjs +166 -0
- package/dist/experimental/models/path/gpu/path-storage-gpu-inputs.d.ts +54 -0
- package/dist/experimental/models/path/gpu/path-storage-gpu-inputs.d.ts.map +1 -0
- package/dist/experimental/models/path/gpu/path-storage-gpu-inputs.js +152 -0
- package/dist/experimental/models/path/gpu/path-storage-gpu-inputs.js.map +1 -0
- package/dist/experimental/models/polygon/polygon-gpu-inputs.cjs +85 -0
- package/dist/experimental/models/polygon/polygon-gpu-inputs.d.ts +60 -0
- package/dist/experimental/models/polygon/polygon-gpu-inputs.d.ts.map +1 -0
- package/dist/experimental/models/polygon/polygon-gpu-inputs.js +64 -0
- package/dist/experimental/models/polygon/polygon-gpu-inputs.js.map +1 -0
- package/dist/experimental/simulation/flow-field-atlas.cjs +86 -0
- package/dist/experimental/simulation/flow-field-atlas.d.ts +33 -0
- package/dist/experimental/simulation/flow-field-atlas.d.ts.map +1 -0
- package/dist/experimental/simulation/flow-field-atlas.js +70 -0
- package/dist/experimental/simulation/flow-field-atlas.js.map +1 -0
- package/dist/experimental/simulation/flow-particle-field.cjs +41 -0
- package/dist/experimental/simulation/flow-particle-field.d.ts +18 -0
- package/dist/experimental/simulation/flow-particle-field.d.ts.map +1 -0
- package/dist/experimental/simulation/flow-particle-field.js +21 -0
- package/dist/experimental/simulation/flow-particle-field.js.map +1 -0
- package/dist/experimental/simulation/flow-particle-shaders.cjs +193 -0
- package/dist/experimental/simulation/flow-particle-shaders.d.ts +4 -0
- package/dist/experimental/simulation/flow-particle-shaders.d.ts.map +1 -0
- package/dist/experimental/simulation/flow-particle-shaders.js +158 -0
- package/dist/experimental/simulation/flow-particle-shaders.js.map +1 -0
- package/dist/experimental/simulation/flow-particle-simulation.cjs +236 -0
- package/dist/experimental/simulation/flow-particle-simulation.d.ts +66 -0
- package/dist/experimental/simulation/flow-particle-simulation.d.ts.map +1 -0
- package/dist/experimental/simulation/flow-particle-simulation.js +221 -0
- package/dist/experimental/simulation/flow-particle-simulation.js.map +1 -0
- package/dist/experimental/simulation/index.cjs +71 -0
- package/dist/experimental/simulation/index.cjs.map +6 -0
- package/dist/experimental/simulation/index.d.ts +14 -0
- package/dist/experimental/simulation/index.d.ts.map +1 -0
- package/dist/experimental/simulation/index.js +11 -0
- package/dist/experimental/simulation/index.js.map +1 -0
- package/dist/experimental/simulation/mls-mpm-fluid-simulation-shaders.cjs +418 -0
- package/dist/experimental/simulation/mls-mpm-fluid-simulation-shaders.d.ts +26 -0
- package/dist/experimental/simulation/mls-mpm-fluid-simulation-shaders.d.ts.map +1 -0
- package/dist/experimental/simulation/mls-mpm-fluid-simulation-shaders.js +350 -0
- package/dist/experimental/simulation/mls-mpm-fluid-simulation-shaders.js.map +1 -0
- package/dist/experimental/simulation/mls-mpm-fluid-simulation.cjs +713 -0
- package/dist/experimental/simulation/mls-mpm-fluid-simulation.d.ts +199 -0
- package/dist/experimental/simulation/mls-mpm-fluid-simulation.d.ts.map +1 -0
- package/dist/experimental/simulation/mls-mpm-fluid-simulation.js +703 -0
- package/dist/experimental/simulation/mls-mpm-fluid-simulation.js.map +1 -0
- package/dist/experimental/simulation/scientific-flow-compute.cjs +266 -0
- package/dist/experimental/simulation/scientific-flow-compute.d.ts +41 -0
- package/dist/experimental/simulation/scientific-flow-compute.d.ts.map +1 -0
- package/dist/experimental/simulation/scientific-flow-compute.js +262 -0
- package/dist/experimental/simulation/scientific-flow-compute.js.map +1 -0
- package/dist/experimental/simulation/scientific-flow-field.cjs +85 -0
- package/dist/experimental/simulation/scientific-flow-field.d.ts +39 -0
- package/dist/experimental/simulation/scientific-flow-field.d.ts.map +1 -0
- package/dist/experimental/simulation/scientific-flow-field.js +79 -0
- package/dist/experimental/simulation/scientific-flow-field.js.map +1 -0
- package/dist/experimental/simulation/scientific-flow-graph.cjs +184 -0
- package/dist/experimental/simulation/scientific-flow-graph.d.ts +50 -0
- package/dist/experimental/simulation/scientific-flow-graph.d.ts.map +1 -0
- package/dist/experimental/simulation/scientific-flow-graph.js +166 -0
- package/dist/experimental/simulation/scientific-flow-graph.js.map +1 -0
- package/dist/experimental/simulation/scientific-flow-rk45-shaders.cjs +158 -0
- package/dist/experimental/simulation/scientific-flow-rk45-shaders.d.ts +2 -0
- package/dist/experimental/simulation/scientific-flow-rk45-shaders.d.ts.map +1 -0
- package/dist/experimental/simulation/scientific-flow-rk45-shaders.js +137 -0
- package/dist/experimental/simulation/scientific-flow-rk45-shaders.js.map +1 -0
- package/dist/experimental/simulation/scientific-flow-sampling-shaders.cjs +68 -0
- package/dist/experimental/simulation/scientific-flow-sampling-shaders.d.ts +3 -0
- package/dist/experimental/simulation/scientific-flow-sampling-shaders.d.ts.map +1 -0
- package/dist/experimental/simulation/scientific-flow-sampling-shaders.js +44 -0
- package/dist/experimental/simulation/scientific-flow-sampling-shaders.js.map +1 -0
- package/dist/experimental/simulation/scientific-flow-tracer.cjs +398 -0
- package/dist/experimental/simulation/scientific-flow-tracer.d.ts +99 -0
- package/dist/experimental/simulation/scientific-flow-tracer.d.ts.map +1 -0
- package/dist/experimental/simulation/scientific-flow-tracer.js +397 -0
- package/dist/experimental/simulation/scientific-flow-tracer.js.map +1 -0
- package/dist/geospatial/geospatial-utils.cjs +449 -0
- package/dist/geospatial/geospatial-utils.d.ts +97 -0
- package/dist/geospatial/geospatial-utils.d.ts.map +1 -0
- package/dist/geospatial/geospatial-utils.js +449 -0
- package/dist/geospatial/geospatial-utils.js.map +1 -0
- package/dist/geospatial/gpu-haversine-distance.cjs +171 -0
- package/dist/geospatial/gpu-haversine-distance.d.ts +41 -0
- package/dist/geospatial/gpu-haversine-distance.d.ts.map +1 -0
- package/dist/geospatial/gpu-haversine-distance.js +155 -0
- package/dist/geospatial/gpu-haversine-distance.js.map +1 -0
- package/dist/geospatial/gpu-pairwise-point-distance.cjs +109 -0
- package/dist/geospatial/gpu-pairwise-point-distance.d.ts +35 -0
- package/dist/geospatial/gpu-pairwise-point-distance.d.ts.map +1 -0
- package/dist/geospatial/gpu-pairwise-point-distance.js +87 -0
- package/dist/geospatial/gpu-pairwise-point-distance.js.map +1 -0
- package/dist/geospatial/gpu-pairwise-point-in-polygon.cjs +441 -0
- package/dist/geospatial/gpu-pairwise-point-in-polygon.d.ts +63 -0
- package/dist/geospatial/gpu-pairwise-point-in-polygon.d.ts.map +1 -0
- package/dist/geospatial/gpu-pairwise-point-in-polygon.js +425 -0
- package/dist/geospatial/gpu-pairwise-point-in-polygon.js.map +1 -0
- package/dist/geospatial/gpu-pairwise-point-linestring-nearest.cjs +685 -0
- package/dist/geospatial/gpu-pairwise-point-linestring-nearest.d.ts +64 -0
- package/dist/geospatial/gpu-pairwise-point-linestring-nearest.d.ts.map +1 -0
- package/dist/geospatial/gpu-pairwise-point-linestring-nearest.js +684 -0
- package/dist/geospatial/gpu-pairwise-point-linestring-nearest.js.map +1 -0
- package/dist/geospatial/gpu-pairwise-point-segment-distance.cjs +201 -0
- package/dist/geospatial/gpu-pairwise-point-segment-distance.d.ts +40 -0
- package/dist/geospatial/gpu-pairwise-point-segment-distance.d.ts.map +1 -0
- package/dist/geospatial/gpu-pairwise-point-segment-distance.js +179 -0
- package/dist/geospatial/gpu-pairwise-point-segment-distance.js.map +1 -0
- package/dist/geospatial/gpu-point-spatial-query.cjs +783 -0
- package/dist/geospatial/gpu-point-spatial-query.d.ts +102 -0
- package/dist/geospatial/gpu-point-spatial-query.d.ts.map +1 -0
- package/dist/geospatial/gpu-point-spatial-query.js +871 -0
- package/dist/geospatial/gpu-point-spatial-query.js.map +1 -0
- package/dist/geospatial/gpu-sinusoidal-projection.cjs +113 -0
- package/dist/geospatial/gpu-sinusoidal-projection.d.ts +31 -0
- package/dist/geospatial/gpu-sinusoidal-projection.d.ts.map +1 -0
- package/dist/geospatial/gpu-sinusoidal-projection.js +103 -0
- package/dist/geospatial/gpu-sinusoidal-projection.js.map +1 -0
- package/dist/geospatial/gpu-spatial-query-types.cjs +15 -0
- package/dist/geospatial/gpu-spatial-query-types.d.ts +23 -0
- package/dist/geospatial/gpu-spatial-query-types.d.ts.map +1 -0
- package/dist/geospatial/gpu-spatial-query-types.js +6 -0
- package/dist/geospatial/gpu-spatial-query-types.js.map +1 -0
- package/dist/geospatial/index.cjs +50 -0
- package/dist/geospatial/index.cjs.map +6 -0
- package/dist/geospatial/index.d.ts +19 -0
- package/dist/geospatial/index.d.ts.map +1 -0
- package/dist/geospatial/index.js +13 -0
- package/dist/geospatial/index.js.map +1 -0
- package/dist/geospatial/types.cjs +15 -0
- package/dist/geospatial/types.d.ts +19 -0
- package/dist/geospatial/types.d.ts.map +1 -0
- package/dist/geospatial/types.js +6 -0
- package/dist/geospatial/types.js.map +1 -0
- package/dist/gpu-a5/gpu-a5-cell-projection.cjs +32 -0
- package/dist/gpu-a5/gpu-a5-cell-projection.d.ts +8 -0
- package/dist/gpu-a5/gpu-a5-cell-projection.d.ts.map +1 -0
- package/dist/gpu-a5/gpu-a5-cell-projection.js +11 -0
- package/dist/gpu-a5/gpu-a5-cell-projection.js.map +1 -0
- package/dist/gpu-a5/index.cjs +27 -0
- package/dist/gpu-a5/index.cjs.map +6 -0
- package/dist/gpu-a5/index.d.ts +4 -0
- package/dist/gpu-a5/index.d.ts.map +1 -0
- package/dist/gpu-a5/index.js +5 -0
- package/dist/gpu-a5/index.js.map +1 -0
- package/dist/gpu-core/dispatch-command-buffer.cjs +136 -0
- package/dist/gpu-core/dispatch-command-buffer.d.ts +49 -0
- package/dist/gpu-core/dispatch-command-buffer.d.ts.map +1 -0
- package/dist/gpu-core/dispatch-command-buffer.js +118 -0
- package/dist/gpu-core/dispatch-command-buffer.js.map +1 -0
- package/dist/gpu-core/draw-command-buffer.cjs +207 -0
- package/dist/gpu-core/draw-command-buffer.d.ts +97 -0
- package/dist/gpu-core/draw-command-buffer.d.ts.map +1 -0
- package/dist/gpu-core/draw-command-buffer.js +199 -0
- package/dist/gpu-core/draw-command-buffer.js.map +1 -0
- package/dist/gpu-core/gpu-adaptive-spmv.cjs +287 -0
- package/dist/gpu-core/gpu-adaptive-spmv.d.ts +33 -0
- package/dist/gpu-core/gpu-adaptive-spmv.d.ts.map +1 -0
- package/dist/gpu-core/gpu-adaptive-spmv.js +269 -0
- package/dist/gpu-core/gpu-adaptive-spmv.js.map +1 -0
- package/dist/gpu-core/gpu-ancestor-projection.cjs +302 -0
- package/dist/gpu-core/gpu-ancestor-projection.d.ts +46 -0
- package/dist/gpu-core/gpu-ancestor-projection.d.ts.map +1 -0
- package/dist/gpu-core/gpu-ancestor-projection.js +294 -0
- package/dist/gpu-core/gpu-ancestor-projection.js.map +1 -0
- package/dist/gpu-core/gpu-batch-hash-index.cjs +174 -0
- package/dist/gpu-core/gpu-batch-hash-index.d.ts +53 -0
- package/dist/gpu-core/gpu-batch-hash-index.d.ts.map +1 -0
- package/dist/gpu-core/gpu-batch-hash-index.js +166 -0
- package/dist/gpu-core/gpu-batch-hash-index.js.map +1 -0
- package/dist/gpu-core/gpu-batch-hash-join.cjs +209 -0
- package/dist/gpu-core/gpu-batch-hash-join.d.ts +66 -0
- package/dist/gpu-core/gpu-batch-hash-join.d.ts.map +1 -0
- package/dist/gpu-core/gpu-batch-hash-join.js +206 -0
- package/dist/gpu-core/gpu-batch-hash-join.js.map +1 -0
- package/dist/gpu-core/gpu-batch-sort.cjs +131 -0
- package/dist/gpu-core/gpu-batch-sort.d.ts +58 -0
- package/dist/gpu-core/gpu-batch-sort.d.ts.map +1 -0
- package/dist/gpu-core/gpu-batch-sort.js +121 -0
- package/dist/gpu-core/gpu-batch-sort.js.map +1 -0
- package/dist/gpu-core/gpu-bvh-query.cjs +447 -0
- package/dist/gpu-core/gpu-bvh-query.d.ts +61 -0
- package/dist/gpu-core/gpu-bvh-query.d.ts.map +1 -0
- package/dist/gpu-core/gpu-bvh-query.js +457 -0
- package/dist/gpu-core/gpu-bvh-query.js.map +1 -0
- package/dist/gpu-core/gpu-bvh.cjs +550 -0
- package/dist/gpu-core/gpu-bvh.d.ts +84 -0
- package/dist/gpu-core/gpu-bvh.d.ts.map +1 -0
- package/dist/gpu-core/gpu-bvh.js +534 -0
- package/dist/gpu-core/gpu-bvh.js.map +1 -0
- package/dist/gpu-core/gpu-byte-range-gather.cjs +263 -0
- package/dist/gpu-core/gpu-byte-range-gather.d.ts +22 -0
- package/dist/gpu-core/gpu-byte-range-gather.d.ts.map +1 -0
- package/dist/gpu-core/gpu-byte-range-gather.js +251 -0
- package/dist/gpu-core/gpu-byte-range-gather.js.map +1 -0
- package/dist/gpu-core/gpu-chunk-utils.cjs +172 -0
- package/dist/gpu-core/gpu-chunk-utils.d.ts +20 -0
- package/dist/gpu-core/gpu-chunk-utils.d.ts.map +1 -0
- package/dist/gpu-core/gpu-chunk-utils.js +164 -0
- package/dist/gpu-core/gpu-chunk-utils.js.map +1 -0
- package/dist/gpu-core/gpu-chunked-indexed-scatter.cjs +531 -0
- package/dist/gpu-core/gpu-chunked-indexed-scatter.d.ts +60 -0
- package/dist/gpu-core/gpu-chunked-indexed-scatter.d.ts.map +1 -0
- package/dist/gpu-core/gpu-chunked-indexed-scatter.js +513 -0
- package/dist/gpu-core/gpu-chunked-indexed-scatter.js.map +1 -0
- package/dist/gpu-core/gpu-command-dispatch-metadata.cjs +47 -0
- package/dist/gpu-core/gpu-command-dispatch-metadata.d.ts +11 -0
- package/dist/gpu-core/gpu-command-dispatch-metadata.d.ts.map +1 -0
- package/dist/gpu-core/gpu-command-dispatch-metadata.js +29 -0
- package/dist/gpu-core/gpu-command-dispatch-metadata.js.map +1 -0
- package/dist/gpu-core/gpu-command-graph-autotuner.cjs +237 -0
- package/dist/gpu-core/gpu-command-graph-autotuner.d.ts +110 -0
- package/dist/gpu-core/gpu-command-graph-autotuner.d.ts.map +1 -0
- package/dist/gpu-core/gpu-command-graph-autotuner.js +258 -0
- package/dist/gpu-core/gpu-command-graph-autotuner.js.map +1 -0
- package/dist/gpu-core/gpu-command-graph-budget-controller.cjs +161 -0
- package/dist/gpu-core/gpu-command-graph-budget-controller.d.ts +63 -0
- package/dist/gpu-core/gpu-command-graph-budget-controller.d.ts.map +1 -0
- package/dist/gpu-core/gpu-command-graph-budget-controller.js +157 -0
- package/dist/gpu-core/gpu-command-graph-budget-controller.js.map +1 -0
- package/dist/gpu-core/gpu-command-graph-compiler.cjs +579 -0
- package/dist/gpu-core/gpu-command-graph-compiler.d.ts +122 -0
- package/dist/gpu-core/gpu-command-graph-compiler.d.ts.map +1 -0
- package/dist/gpu-core/gpu-command-graph-compiler.js +669 -0
- package/dist/gpu-core/gpu-command-graph-compiler.js.map +1 -0
- package/dist/gpu-core/gpu-command-graph-inspector.cjs +333 -0
- package/dist/gpu-core/gpu-command-graph-inspector.d.ts +197 -0
- package/dist/gpu-core/gpu-command-graph-inspector.d.ts.map +1 -0
- package/dist/gpu-core/gpu-command-graph-inspector.js +321 -0
- package/dist/gpu-core/gpu-command-graph-inspector.js.map +1 -0
- package/dist/gpu-core/gpu-command-graph-lowering-scope.cjs +87 -0
- package/dist/gpu-core/gpu-command-graph-lowering-scope.d.ts +27 -0
- package/dist/gpu-core/gpu-command-graph-lowering-scope.d.ts.map +1 -0
- package/dist/gpu-core/gpu-command-graph-lowering-scope.js +75 -0
- package/dist/gpu-core/gpu-command-graph-lowering-scope.js.map +1 -0
- package/dist/gpu-core/gpu-command-graph-types.cjs +220 -0
- package/dist/gpu-core/gpu-command-graph-types.d.ts +690 -0
- package/dist/gpu-core/gpu-command-graph-types.d.ts.map +1 -0
- package/dist/gpu-core/gpu-command-graph-types.js +220 -0
- package/dist/gpu-core/gpu-command-graph-types.js.map +1 -0
- package/dist/gpu-core/gpu-command-graph.cjs +1702 -0
- package/dist/gpu-core/gpu-command-graph.d.ts +422 -0
- package/dist/gpu-core/gpu-command-graph.d.ts.map +1 -0
- package/dist/gpu-core/gpu-command-graph.js +1833 -0
- package/dist/gpu-core/gpu-command-graph.js.map +1 -0
- package/dist/gpu-core/gpu-command-node.cjs +66 -0
- package/dist/gpu-core/gpu-command-node.d.ts +23 -0
- package/dist/gpu-core/gpu-command-node.d.ts.map +1 -0
- package/dist/gpu-core/gpu-command-node.js +37 -0
- package/dist/gpu-core/gpu-command-node.js.map +1 -0
- package/dist/gpu-core/gpu-compaction.cjs +287 -0
- package/dist/gpu-core/gpu-compaction.d.ts +53 -0
- package/dist/gpu-core/gpu-compaction.d.ts.map +1 -0
- package/dist/gpu-core/gpu-compaction.js +295 -0
- package/dist/gpu-core/gpu-compaction.js.map +1 -0
- package/dist/gpu-core/gpu-conjugate-gradient-program.cjs +193 -0
- package/dist/gpu-core/gpu-conjugate-gradient-program.d.ts +23 -0
- package/dist/gpu-core/gpu-conjugate-gradient-program.d.ts.map +1 -0
- package/dist/gpu-core/gpu-conjugate-gradient-program.js +172 -0
- package/dist/gpu-core/gpu-conjugate-gradient-program.js.map +1 -0
- package/dist/gpu-core/gpu-control-flow-operation.cjs +65 -0
- package/dist/gpu-core/gpu-control-flow-operation.d.ts +40 -0
- package/dist/gpu-core/gpu-control-flow-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-control-flow-operation.js +41 -0
- package/dist/gpu-core/gpu-control-flow-operation.js.map +1 -0
- package/dist/gpu-core/gpu-convolution-benchmark.cjs +278 -0
- package/dist/gpu-core/gpu-convolution-benchmark.d.ts +54 -0
- package/dist/gpu-core/gpu-convolution-benchmark.d.ts.map +1 -0
- package/dist/gpu-core/gpu-convolution-benchmark.js +275 -0
- package/dist/gpu-core/gpu-convolution-benchmark.js.map +1 -0
- package/dist/gpu-core/gpu-convolution.cjs +748 -0
- package/dist/gpu-core/gpu-convolution.d.ts +124 -0
- package/dist/gpu-core/gpu-convolution.d.ts.map +1 -0
- package/dist/gpu-core/gpu-convolution.js +756 -0
- package/dist/gpu-core/gpu-convolution.js.map +1 -0
- package/dist/gpu-core/gpu-coo-to-csr.cjs +114 -0
- package/dist/gpu-core/gpu-coo-to-csr.d.ts +20 -0
- package/dist/gpu-core/gpu-coo-to-csr.d.ts.map +1 -0
- package/dist/gpu-core/gpu-coo-to-csr.js +100 -0
- package/dist/gpu-core/gpu-coo-to-csr.js.map +1 -0
- package/dist/gpu-core/gpu-dense-utils.cjs +166 -0
- package/dist/gpu-core/gpu-dense-utils.d.ts +34 -0
- package/dist/gpu-core/gpu-dense-utils.d.ts.map +1 -0
- package/dist/gpu-core/gpu-dense-utils.js +144 -0
- package/dist/gpu-core/gpu-dense-utils.js.map +1 -0
- package/dist/gpu-core/gpu-dispatch-utils.cjs +60 -0
- package/dist/gpu-core/gpu-dispatch-utils.d.ts +11 -0
- package/dist/gpu-core/gpu-dispatch-utils.d.ts.map +1 -0
- package/dist/gpu-core/gpu-dispatch-utils.js +42 -0
- package/dist/gpu-core/gpu-dispatch-utils.js.map +1 -0
- package/dist/gpu-core/gpu-dot-product-scalar.cjs +82 -0
- package/dist/gpu-core/gpu-dot-product-scalar.d.ts +24 -0
- package/dist/gpu-core/gpu-dot-product-scalar.d.ts.map +1 -0
- package/dist/gpu-core/gpu-dot-product-scalar.js +67 -0
- package/dist/gpu-core/gpu-dot-product-scalar.js.map +1 -0
- package/dist/gpu-core/gpu-elementwise-scalar.cjs +163 -0
- package/dist/gpu-core/gpu-elementwise-scalar.d.ts +20 -0
- package/dist/gpu-core/gpu-elementwise-scalar.d.ts.map +1 -0
- package/dist/gpu-core/gpu-elementwise-scalar.js +150 -0
- package/dist/gpu-core/gpu-elementwise-scalar.js.map +1 -0
- package/dist/gpu-core/gpu-elementwise.cjs +225 -0
- package/dist/gpu-core/gpu-elementwise.d.ts +35 -0
- package/dist/gpu-core/gpu-elementwise.d.ts.map +1 -0
- package/dist/gpu-core/gpu-elementwise.js +220 -0
- package/dist/gpu-core/gpu-elementwise.js.map +1 -0
- package/dist/gpu-core/gpu-fft-utils.cjs +81 -0
- package/dist/gpu-core/gpu-fft-utils.d.ts +18 -0
- package/dist/gpu-core/gpu-fft-utils.d.ts.map +1 -0
- package/dist/gpu-core/gpu-fft-utils.js +53 -0
- package/dist/gpu-core/gpu-fft-utils.js.map +1 -0
- package/dist/gpu-core/gpu-fft1d-benchmark.cjs +175 -0
- package/dist/gpu-core/gpu-fft1d-benchmark.d.ts +40 -0
- package/dist/gpu-core/gpu-fft1d-benchmark.d.ts.map +1 -0
- package/dist/gpu-core/gpu-fft1d-benchmark.js +173 -0
- package/dist/gpu-core/gpu-fft1d-benchmark.js.map +1 -0
- package/dist/gpu-core/gpu-fft1d.cjs +465 -0
- package/dist/gpu-core/gpu-fft1d.d.ts +103 -0
- package/dist/gpu-core/gpu-fft1d.d.ts.map +1 -0
- package/dist/gpu-core/gpu-fft1d.js +473 -0
- package/dist/gpu-core/gpu-fft1d.js.map +1 -0
- package/dist/gpu-core/gpu-fft2d-shaders.cjs +109 -0
- package/dist/gpu-core/gpu-fft2d-shaders.d.ts +7 -0
- package/dist/gpu-core/gpu-fft2d-shaders.d.ts.map +1 -0
- package/dist/gpu-core/gpu-fft2d-shaders.js +84 -0
- package/dist/gpu-core/gpu-fft2d-shaders.js.map +1 -0
- package/dist/gpu-core/gpu-fft2d.cjs +332 -0
- package/dist/gpu-core/gpu-fft2d.d.ts +69 -0
- package/dist/gpu-core/gpu-fft2d.d.ts.map +1 -0
- package/dist/gpu-core/gpu-fft2d.js +330 -0
- package/dist/gpu-core/gpu-fft2d.js.map +1 -0
- package/dist/gpu-core/gpu-finite-difference-2d.cjs +203 -0
- package/dist/gpu-core/gpu-finite-difference-2d.d.ts +73 -0
- package/dist/gpu-core/gpu-finite-difference-2d.d.ts.map +1 -0
- package/dist/gpu-core/gpu-finite-difference-2d.js +197 -0
- package/dist/gpu-core/gpu-finite-difference-2d.js.map +1 -0
- package/dist/gpu-core/gpu-finite-difference-3d.cjs +224 -0
- package/dist/gpu-core/gpu-finite-difference-3d.d.ts +59 -0
- package/dist/gpu-core/gpu-finite-difference-3d.d.ts.map +1 -0
- package/dist/gpu-core/gpu-finite-difference-3d.js +206 -0
- package/dist/gpu-core/gpu-finite-difference-3d.js.map +1 -0
- package/dist/gpu-core/gpu-finite-difference-utils.cjs +225 -0
- package/dist/gpu-core/gpu-finite-difference-utils.d.ts +42 -0
- package/dist/gpu-core/gpu-finite-difference-utils.d.ts.map +1 -0
- package/dist/gpu-core/gpu-finite-difference-utils.js +219 -0
- package/dist/gpu-core/gpu-finite-difference-utils.js.map +1 -0
- package/dist/gpu-core/gpu-flag-offsets.cjs +163 -0
- package/dist/gpu-core/gpu-flag-offsets.d.ts +29 -0
- package/dist/gpu-core/gpu-flag-offsets.d.ts.map +1 -0
- package/dist/gpu-core/gpu-flag-offsets.js +152 -0
- package/dist/gpu-core/gpu-flag-offsets.js.map +1 -0
- package/dist/gpu-core/gpu-galloping-search-chunks.cjs +179 -0
- package/dist/gpu-core/gpu-galloping-search-chunks.d.ts +6 -0
- package/dist/gpu-core/gpu-galloping-search-chunks.d.ts.map +1 -0
- package/dist/gpu-core/gpu-galloping-search-chunks.js +162 -0
- package/dist/gpu-core/gpu-galloping-search-chunks.js.map +1 -0
- package/dist/gpu-core/gpu-galloping-search.cjs +374 -0
- package/dist/gpu-core/gpu-galloping-search.d.ts +73 -0
- package/dist/gpu-core/gpu-galloping-search.d.ts.map +1 -0
- package/dist/gpu-core/gpu-galloping-search.js +370 -0
- package/dist/gpu-core/gpu-galloping-search.js.map +1 -0
- package/dist/gpu-core/gpu-gather.cjs +222 -0
- package/dist/gpu-core/gpu-gather.d.ts +34 -0
- package/dist/gpu-core/gpu-gather.d.ts.map +1 -0
- package/dist/gpu-core/gpu-gather.js +225 -0
- package/dist/gpu-core/gpu-gather.js.map +1 -0
- package/dist/gpu-core/gpu-graph-compiler.cjs +426 -0
- package/dist/gpu-core/gpu-graph-compiler.d.ts +66 -0
- package/dist/gpu-core/gpu-graph-compiler.d.ts.map +1 -0
- package/dist/gpu-core/gpu-graph-compiler.js +422 -0
- package/dist/gpu-core/gpu-graph-compiler.js.map +1 -0
- package/dist/gpu-core/gpu-graph-inspector.cjs +44 -0
- package/dist/gpu-core/gpu-graph-inspector.d.ts +16 -0
- package/dist/gpu-core/gpu-graph-inspector.d.ts.map +1 -0
- package/dist/gpu-core/gpu-graph-inspector.js +23 -0
- package/dist/gpu-core/gpu-graph-inspector.js.map +1 -0
- package/dist/gpu-core/gpu-graph-lowering.cjs +40 -0
- package/dist/gpu-core/gpu-graph-lowering.d.ts +37 -0
- package/dist/gpu-core/gpu-graph-lowering.d.ts.map +1 -0
- package/dist/gpu-core/gpu-graph-lowering.js +18 -0
- package/dist/gpu-core/gpu-graph-lowering.js.map +1 -0
- package/dist/gpu-core/gpu-graph-traversal.cjs +602 -0
- package/dist/gpu-core/gpu-graph-traversal.d.ts +78 -0
- package/dist/gpu-core/gpu-graph-traversal.d.ts.map +1 -0
- package/dist/gpu-core/gpu-graph-traversal.js +597 -0
- package/dist/gpu-core/gpu-graph-traversal.js.map +1 -0
- package/dist/gpu-core/gpu-graph-validation.cjs +74 -0
- package/dist/gpu-core/gpu-graph-validation.d.ts +16 -0
- package/dist/gpu-core/gpu-graph-validation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-graph-validation.js +52 -0
- package/dist/gpu-core/gpu-graph-validation.js.map +1 -0
- package/dist/gpu-core/gpu-graph-value.cjs +100 -0
- package/dist/gpu-core/gpu-graph-value.d.ts +61 -0
- package/dist/gpu-core/gpu-graph-value.d.ts.map +1 -0
- package/dist/gpu-core/gpu-graph-value.js +83 -0
- package/dist/gpu-core/gpu-graph-value.js.map +1 -0
- package/dist/gpu-core/gpu-graph.cjs +108 -0
- package/dist/gpu-core/gpu-graph.d.ts +35 -0
- package/dist/gpu-core/gpu-graph.d.ts.map +1 -0
- package/dist/gpu-core/gpu-graph.js +85 -0
- package/dist/gpu-core/gpu-graph.js.map +1 -0
- package/dist/gpu-core/gpu-grid-aggregation.cjs +396 -0
- package/dist/gpu-core/gpu-grid-aggregation.d.ts +66 -0
- package/dist/gpu-core/gpu-grid-aggregation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-grid-aggregation.js +424 -0
- package/dist/gpu-core/gpu-grid-aggregation.js.map +1 -0
- package/dist/gpu-core/gpu-grid-binning.cjs +252 -0
- package/dist/gpu-core/gpu-grid-binning.d.ts +51 -0
- package/dist/gpu-core/gpu-grid-binning.d.ts.map +1 -0
- package/dist/gpu-core/gpu-grid-binning.js +257 -0
- package/dist/gpu-core/gpu-grid-binning.js.map +1 -0
- package/dist/gpu-core/gpu-grid-index-internals.cjs +249 -0
- package/dist/gpu-core/gpu-grid-index-internals.d.ts +11 -0
- package/dist/gpu-core/gpu-grid-index-internals.d.ts.map +1 -0
- package/dist/gpu-core/gpu-grid-index-internals.js +231 -0
- package/dist/gpu-core/gpu-grid-index-internals.js.map +1 -0
- package/dist/gpu-core/gpu-grid-index-query.cjs +381 -0
- package/dist/gpu-core/gpu-grid-index-query.d.ts +55 -0
- package/dist/gpu-core/gpu-grid-index-query.d.ts.map +1 -0
- package/dist/gpu-core/gpu-grid-index-query.js +399 -0
- package/dist/gpu-core/gpu-grid-index-query.js.map +1 -0
- package/dist/gpu-core/gpu-grid-index.cjs +135 -0
- package/dist/gpu-core/gpu-grid-index.d.ts +60 -0
- package/dist/gpu-core/gpu-grid-index.d.ts.map +1 -0
- package/dist/gpu-core/gpu-grid-index.js +123 -0
- package/dist/gpu-core/gpu-grid-index.js.map +1 -0
- package/dist/gpu-core/gpu-group-aggregation.cjs +540 -0
- package/dist/gpu-core/gpu-group-aggregation.d.ts +71 -0
- package/dist/gpu-core/gpu-group-aggregation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-group-aggregation.js +578 -0
- package/dist/gpu-core/gpu-group-aggregation.js.map +1 -0
- package/dist/gpu-core/gpu-hash-index.cjs +634 -0
- package/dist/gpu-core/gpu-hash-index.d.ts +108 -0
- package/dist/gpu-core/gpu-hash-index.d.ts.map +1 -0
- package/dist/gpu-core/gpu-hash-index.js +618 -0
- package/dist/gpu-core/gpu-hash-index.js.map +1 -0
- package/dist/gpu-core/gpu-hash-join.cjs +439 -0
- package/dist/gpu-core/gpu-hash-join.d.ts +64 -0
- package/dist/gpu-core/gpu-hash-join.d.ts.map +1 -0
- package/dist/gpu-core/gpu-hash-join.js +429 -0
- package/dist/gpu-core/gpu-hash-join.js.map +1 -0
- package/dist/gpu-core/gpu-hierarchy-layout.cjs +257 -0
- package/dist/gpu-core/gpu-hierarchy-layout.d.ts +58 -0
- package/dist/gpu-core/gpu-hierarchy-layout.d.ts.map +1 -0
- package/dist/gpu-core/gpu-hierarchy-layout.js +246 -0
- package/dist/gpu-core/gpu-hierarchy-layout.js.map +1 -0
- package/dist/gpu-core/gpu-histogram.cjs +599 -0
- package/dist/gpu-core/gpu-histogram.d.ts +76 -0
- package/dist/gpu-core/gpu-histogram.d.ts.map +1 -0
- package/dist/gpu-core/gpu-histogram.js +655 -0
- package/dist/gpu-core/gpu-histogram.js.map +1 -0
- package/dist/gpu-core/gpu-incremental-execution.cjs +167 -0
- package/dist/gpu-core/gpu-incremental-execution.d.ts +67 -0
- package/dist/gpu-core/gpu-incremental-execution.d.ts.map +1 -0
- package/dist/gpu-core/gpu-incremental-execution.js +167 -0
- package/dist/gpu-core/gpu-incremental-execution.js.map +1 -0
- package/dist/gpu-core/gpu-index-picking-target.cjs +369 -0
- package/dist/gpu-core/gpu-index-picking-target.d.ts +113 -0
- package/dist/gpu-core/gpu-index-picking-target.d.ts.map +1 -0
- package/dist/gpu-core/gpu-index-picking-target.js +363 -0
- package/dist/gpu-core/gpu-index-picking-target.js.map +1 -0
- package/dist/gpu-core/gpu-indexed-range-compaction.cjs +868 -0
- package/dist/gpu-core/gpu-indexed-range-compaction.d.ts +136 -0
- package/dist/gpu-core/gpu-indexed-range-compaction.d.ts.map +1 -0
- package/dist/gpu-core/gpu-indexed-range-compaction.js +836 -0
- package/dist/gpu-core/gpu-indexed-range-compaction.js.map +1 -0
- package/dist/gpu-core/gpu-jacobi-preconditioner.cjs +108 -0
- package/dist/gpu-core/gpu-jacobi-preconditioner.d.ts +18 -0
- package/dist/gpu-core/gpu-jacobi-preconditioner.d.ts.map +1 -0
- package/dist/gpu-core/gpu-jacobi-preconditioner.js +92 -0
- package/dist/gpu-core/gpu-jacobi-preconditioner.js.map +1 -0
- package/dist/gpu-core/gpu-lz-byte-batch-decompressor.cjs +258 -0
- package/dist/gpu-core/gpu-lz-byte-batch-decompressor.d.ts +59 -0
- package/dist/gpu-core/gpu-lz-byte-batch-decompressor.d.ts.map +1 -0
- package/dist/gpu-core/gpu-lz-byte-batch-decompressor.js +250 -0
- package/dist/gpu-core/gpu-lz-byte-batch-decompressor.js.map +1 -0
- package/dist/gpu-core/gpu-lz-byte-decompressor.cjs +310 -0
- package/dist/gpu-core/gpu-lz-byte-decompressor.d.ts +55 -0
- package/dist/gpu-core/gpu-lz-byte-decompressor.d.ts.map +1 -0
- package/dist/gpu-core/gpu-lz-byte-decompressor.js +308 -0
- package/dist/gpu-core/gpu-lz-byte-decompressor.js.map +1 -0
- package/dist/gpu-core/gpu-mask.cjs +198 -0
- package/dist/gpu-core/gpu-mask.d.ts +43 -0
- package/dist/gpu-core/gpu-mask.d.ts.map +1 -0
- package/dist/gpu-core/gpu-mask.js +183 -0
- package/dist/gpu-core/gpu-mask.js.map +1 -0
- package/dist/gpu-core/gpu-matmul.cjs +137 -0
- package/dist/gpu-core/gpu-matmul.d.ts +28 -0
- package/dist/gpu-core/gpu-matmul.d.ts.map +1 -0
- package/dist/gpu-core/gpu-matmul.js +116 -0
- package/dist/gpu-core/gpu-matmul.js.map +1 -0
- package/dist/gpu-core/gpu-matvec.cjs +112 -0
- package/dist/gpu-core/gpu-matvec.d.ts +26 -0
- package/dist/gpu-core/gpu-matvec.d.ts.map +1 -0
- package/dist/gpu-core/gpu-matvec.js +91 -0
- package/dist/gpu-core/gpu-matvec.js.map +1 -0
- package/dist/gpu-core/gpu-operation.cjs +73 -0
- package/dist/gpu-core/gpu-operation.d.ts +58 -0
- package/dist/gpu-core/gpu-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-operation.js +48 -0
- package/dist/gpu-core/gpu-operation.js.map +1 -0
- package/dist/gpu-core/gpu-pcg.cjs +256 -0
- package/dist/gpu-core/gpu-pcg.d.ts +37 -0
- package/dist/gpu-core/gpu-pcg.d.ts.map +1 -0
- package/dist/gpu-core/gpu-pcg.js +238 -0
- package/dist/gpu-core/gpu-pcg.js.map +1 -0
- package/dist/gpu-core/gpu-planning-heap.cjs +66 -0
- package/dist/gpu-core/gpu-planning-heap.d.ts +10 -0
- package/dist/gpu-core/gpu-planning-heap.d.ts.map +1 -0
- package/dist/gpu-core/gpu-planning-heap.js +46 -0
- package/dist/gpu-core/gpu-planning-heap.js.map +1 -0
- package/dist/gpu-core/gpu-point-spatial-filter.cjs +303 -0
- package/dist/gpu-core/gpu-point-spatial-filter.d.ts +52 -0
- package/dist/gpu-core/gpu-point-spatial-filter.d.ts.map +1 -0
- package/dist/gpu-core/gpu-point-spatial-filter.js +311 -0
- package/dist/gpu-core/gpu-point-spatial-filter.js.map +1 -0
- package/dist/gpu-core/gpu-predicate-conjunction.cjs +79 -0
- package/dist/gpu-core/gpu-predicate-conjunction.d.ts +19 -0
- package/dist/gpu-core/gpu-predicate-conjunction.d.ts.map +1 -0
- package/dist/gpu-core/gpu-predicate-conjunction.js +57 -0
- package/dist/gpu-core/gpu-predicate-conjunction.js.map +1 -0
- package/dist/gpu-core/gpu-readback-ring.cjs +213 -0
- package/dist/gpu-core/gpu-readback-ring.d.ts +84 -0
- package/dist/gpu-core/gpu-readback-ring.d.ts.map +1 -0
- package/dist/gpu-core/gpu-readback-ring.js +210 -0
- package/dist/gpu-core/gpu-readback-ring.js.map +1 -0
- package/dist/gpu-core/gpu-reduction-strategy.cjs +88 -0
- package/dist/gpu-core/gpu-reduction-strategy.d.ts +12 -0
- package/dist/gpu-core/gpu-reduction-strategy.d.ts.map +1 -0
- package/dist/gpu-core/gpu-reduction-strategy.js +65 -0
- package/dist/gpu-core/gpu-reduction-strategy.js.map +1 -0
- package/dist/gpu-core/gpu-reduction-substrate.cjs +189 -0
- package/dist/gpu-core/gpu-reduction-substrate.d.ts +15 -0
- package/dist/gpu-core/gpu-reduction-substrate.d.ts.map +1 -0
- package/dist/gpu-core/gpu-reduction-substrate.js +175 -0
- package/dist/gpu-core/gpu-reduction-substrate.js.map +1 -0
- package/dist/gpu-core/gpu-reduction.cjs +486 -0
- package/dist/gpu-core/gpu-reduction.d.ts +77 -0
- package/dist/gpu-core/gpu-reduction.d.ts.map +1 -0
- package/dist/gpu-core/gpu-reduction.js +526 -0
- package/dist/gpu-core/gpu-reduction.js.map +1 -0
- package/dist/gpu-core/gpu-resource-preview.cjs +83 -0
- package/dist/gpu-core/gpu-resource-preview.d.ts +12 -0
- package/dist/gpu-core/gpu-resource-preview.d.ts.map +1 -0
- package/dist/gpu-core/gpu-resource-preview.js +67 -0
- package/dist/gpu-core/gpu-resource-preview.js.map +1 -0
- package/dist/gpu-core/gpu-run-length-encode.cjs +187 -0
- package/dist/gpu-core/gpu-run-length-encode.d.ts +27 -0
- package/dist/gpu-core/gpu-run-length-encode.d.ts.map +1 -0
- package/dist/gpu-core/gpu-run-length-encode.js +171 -0
- package/dist/gpu-core/gpu-run-length-encode.js.map +1 -0
- package/dist/gpu-core/gpu-scalar-dispatch-gate.cjs +126 -0
- package/dist/gpu-core/gpu-scalar-dispatch-gate.d.ts +25 -0
- package/dist/gpu-core/gpu-scalar-dispatch-gate.d.ts.map +1 -0
- package/dist/gpu-core/gpu-scalar-dispatch-gate.js +106 -0
- package/dist/gpu-core/gpu-scalar-dispatch-gate.js.map +1 -0
- package/dist/gpu-core/gpu-scalar-literal.cjs +84 -0
- package/dist/gpu-core/gpu-scalar-literal.d.ts +20 -0
- package/dist/gpu-core/gpu-scalar-literal.d.ts.map +1 -0
- package/dist/gpu-core/gpu-scalar-literal.js +67 -0
- package/dist/gpu-core/gpu-scalar-literal.js.map +1 -0
- package/dist/gpu-core/gpu-scalar-operation.cjs +152 -0
- package/dist/gpu-core/gpu-scalar-operation.d.ts +24 -0
- package/dist/gpu-core/gpu-scalar-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-scalar-operation.js +131 -0
- package/dist/gpu-core/gpu-scalar-operation.js.map +1 -0
- package/dist/gpu-core/gpu-scalar.cjs +102 -0
- package/dist/gpu-core/gpu-scalar.d.ts +33 -0
- package/dist/gpu-core/gpu-scalar.d.ts.map +1 -0
- package/dist/gpu-core/gpu-scalar.js +79 -0
- package/dist/gpu-core/gpu-scalar.js.map +1 -0
- package/dist/gpu-core/gpu-scan.cjs +630 -0
- package/dist/gpu-core/gpu-scan.d.ts +65 -0
- package/dist/gpu-core/gpu-scan.d.ts.map +1 -0
- package/dist/gpu-core/gpu-scan.js +692 -0
- package/dist/gpu-core/gpu-scan.js.map +1 -0
- package/dist/gpu-core/gpu-scatter.cjs +132 -0
- package/dist/gpu-core/gpu-scatter.d.ts +39 -0
- package/dist/gpu-core/gpu-scatter.d.ts.map +1 -0
- package/dist/gpu-core/gpu-scatter.js +125 -0
- package/dist/gpu-core/gpu-scatter.js.map +1 -0
- package/dist/gpu-core/gpu-scene-draw-generation.cjs +484 -0
- package/dist/gpu-core/gpu-scene-draw-generation.d.ts +52 -0
- package/dist/gpu-core/gpu-scene-draw-generation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-scene-draw-generation.js +494 -0
- package/dist/gpu-core/gpu-scene-draw-generation.js.map +1 -0
- package/dist/gpu-core/gpu-scene-resource-groups.cjs +322 -0
- package/dist/gpu-core/gpu-scene-resource-groups.d.ts +66 -0
- package/dist/gpu-core/gpu-scene-resource-groups.d.ts.map +1 -0
- package/dist/gpu-core/gpu-scene-resource-groups.js +330 -0
- package/dist/gpu-core/gpu-scene-resource-groups.js.map +1 -0
- package/dist/gpu-core/gpu-scene.cjs +499 -0
- package/dist/gpu-core/gpu-scene.d.ts +172 -0
- package/dist/gpu-core/gpu-scene.d.ts.map +1 -0
- package/dist/gpu-core/gpu-scene.js +494 -0
- package/dist/gpu-core/gpu-scene.js.map +1 -0
- package/dist/gpu-core/gpu-segment-offsets.cjs +269 -0
- package/dist/gpu-core/gpu-segment-offsets.d.ts +34 -0
- package/dist/gpu-core/gpu-segment-offsets.d.ts.map +1 -0
- package/dist/gpu-core/gpu-segment-offsets.js +254 -0
- package/dist/gpu-core/gpu-segment-offsets.js.map +1 -0
- package/dist/gpu-core/gpu-segmented-bvh.cjs +391 -0
- package/dist/gpu-core/gpu-segmented-bvh.d.ts +84 -0
- package/dist/gpu-core/gpu-segmented-bvh.d.ts.map +1 -0
- package/dist/gpu-core/gpu-segmented-bvh.js +392 -0
- package/dist/gpu-core/gpu-segmented-bvh.js.map +1 -0
- package/dist/gpu-core/gpu-segmented-layout.cjs +322 -0
- package/dist/gpu-core/gpu-segmented-layout.d.ts +53 -0
- package/dist/gpu-core/gpu-segmented-layout.d.ts.map +1 -0
- package/dist/gpu-core/gpu-segmented-layout.js +321 -0
- package/dist/gpu-core/gpu-segmented-layout.js.map +1 -0
- package/dist/gpu-core/gpu-segmented-reduction.cjs +149 -0
- package/dist/gpu-core/gpu-segmented-reduction.d.ts +23 -0
- package/dist/gpu-core/gpu-segmented-reduction.d.ts.map +1 -0
- package/dist/gpu-core/gpu-segmented-reduction.js +151 -0
- package/dist/gpu-core/gpu-segmented-reduction.js.map +1 -0
- package/dist/gpu-core/gpu-segmented-scan.cjs +112 -0
- package/dist/gpu-core/gpu-segmented-scan.d.ts +24 -0
- package/dist/gpu-core/gpu-segmented-scan.d.ts.map +1 -0
- package/dist/gpu-core/gpu-segmented-scan.js +92 -0
- package/dist/gpu-core/gpu-segmented-scan.js.map +1 -0
- package/dist/gpu-core/gpu-segmented-sort.cjs +381 -0
- package/dist/gpu-core/gpu-segmented-sort.d.ts +70 -0
- package/dist/gpu-core/gpu-segmented-sort.d.ts.map +1 -0
- package/dist/gpu-core/gpu-segmented-sort.js +375 -0
- package/dist/gpu-core/gpu-segmented-sort.js.map +1 -0
- package/dist/gpu-core/gpu-semantic-scalar-operation.cjs +94 -0
- package/dist/gpu-core/gpu-semantic-scalar-operation.d.ts +35 -0
- package/dist/gpu-core/gpu-semantic-scalar-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-semantic-scalar-operation.js +70 -0
- package/dist/gpu-core/gpu-semantic-scalar-operation.js.map +1 -0
- package/dist/gpu-core/gpu-semantic-spmv.cjs +71 -0
- package/dist/gpu-core/gpu-semantic-spmv.d.ts +45 -0
- package/dist/gpu-core/gpu-semantic-spmv.d.ts.map +1 -0
- package/dist/gpu-core/gpu-semantic-spmv.js +49 -0
- package/dist/gpu-core/gpu-semantic-spmv.js.map +1 -0
- package/dist/gpu-core/gpu-semantic-state-operation.cjs +39 -0
- package/dist/gpu-core/gpu-semantic-state-operation.d.ts +18 -0
- package/dist/gpu-core/gpu-semantic-state-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-semantic-state-operation.js +18 -0
- package/dist/gpu-core/gpu-semantic-state-operation.js.map +1 -0
- package/dist/gpu-core/gpu-semantic-vector-operation.cjs +55 -0
- package/dist/gpu-core/gpu-semantic-vector-operation.d.ts +41 -0
- package/dist/gpu-core/gpu-semantic-vector-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-semantic-vector-operation.js +33 -0
- package/dist/gpu-core/gpu-semantic-vector-operation.js.map +1 -0
- package/dist/gpu-core/gpu-sort-chunks.cjs +135 -0
- package/dist/gpu-core/gpu-sort-chunks.d.ts +6 -0
- package/dist/gpu-core/gpu-sort-chunks.d.ts.map +1 -0
- package/dist/gpu-core/gpu-sort-chunks.js +105 -0
- package/dist/gpu-core/gpu-sort-chunks.js.map +1 -0
- package/dist/gpu-core/gpu-sort.cjs +741 -0
- package/dist/gpu-core/gpu-sort.d.ts +70 -0
- package/dist/gpu-core/gpu-sort.d.ts.map +1 -0
- package/dist/gpu-core/gpu-sort.js +727 -0
- package/dist/gpu-core/gpu-sort.js.map +1 -0
- package/dist/gpu-core/gpu-spatial-query-benchmark.cjs +183 -0
- package/dist/gpu-core/gpu-spatial-query-benchmark.d.ts +82 -0
- package/dist/gpu-core/gpu-spatial-query-benchmark.d.ts.map +1 -0
- package/dist/gpu-core/gpu-spatial-query-benchmark.js +178 -0
- package/dist/gpu-core/gpu-spatial-query-benchmark.js.map +1 -0
- package/dist/gpu-core/gpu-spatial-utils.cjs +79 -0
- package/dist/gpu-core/gpu-spatial-utils.d.ts +14 -0
- package/dist/gpu-core/gpu-spatial-utils.d.ts.map +1 -0
- package/dist/gpu-core/gpu-spatial-utils.js +58 -0
- package/dist/gpu-core/gpu-spatial-utils.js.map +1 -0
- package/dist/gpu-core/gpu-spmv-strategy.cjs +87 -0
- package/dist/gpu-core/gpu-spmv-strategy.d.ts +22 -0
- package/dist/gpu-core/gpu-spmv-strategy.d.ts.map +1 -0
- package/dist/gpu-core/gpu-spmv-strategy.js +65 -0
- package/dist/gpu-core/gpu-spmv-strategy.js.map +1 -0
- package/dist/gpu-core/gpu-strategy.cjs +62 -0
- package/dist/gpu-core/gpu-strategy.d.ts +43 -0
- package/dist/gpu-core/gpu-strategy.d.ts.map +1 -0
- package/dist/gpu-core/gpu-strategy.js +43 -0
- package/dist/gpu-core/gpu-strategy.js.map +1 -0
- package/dist/gpu-core/gpu-subgroup-utils.cjs +84 -0
- package/dist/gpu-core/gpu-subgroup-utils.d.ts +24 -0
- package/dist/gpu-core/gpu-subgroup-utils.d.ts.map +1 -0
- package/dist/gpu-core/gpu-subgroup-utils.js +66 -0
- package/dist/gpu-core/gpu-subgroup-utils.js.map +1 -0
- package/dist/gpu-core/gpu-text-selection.cjs +282 -0
- package/dist/gpu-core/gpu-text-selection.d.ts +40 -0
- package/dist/gpu-core/gpu-text-selection.d.ts.map +1 -0
- package/dist/gpu-core/gpu-text-selection.js +264 -0
- package/dist/gpu-core/gpu-text-selection.js.map +1 -0
- package/dist/gpu-core/gpu-texture-history.cjs +92 -0
- package/dist/gpu-core/gpu-texture-history.d.ts +39 -0
- package/dist/gpu-core/gpu-texture-history.d.ts.map +1 -0
- package/dist/gpu-core/gpu-texture-history.js +79 -0
- package/dist/gpu-core/gpu-texture-history.js.map +1 -0
- package/dist/gpu-core/gpu-transient-lifetime-planner.cjs +83 -0
- package/dist/gpu-core/gpu-transient-lifetime-planner.d.ts +32 -0
- package/dist/gpu-core/gpu-transient-lifetime-planner.d.ts.map +1 -0
- package/dist/gpu-core/gpu-transient-lifetime-planner.js +72 -0
- package/dist/gpu-core/gpu-transient-lifetime-planner.js.map +1 -0
- package/dist/gpu-core/gpu-transpose-benchmark.cjs +229 -0
- package/dist/gpu-core/gpu-transpose-benchmark.d.ts +37 -0
- package/dist/gpu-core/gpu-transpose-benchmark.d.ts.map +1 -0
- package/dist/gpu-core/gpu-transpose-benchmark.js +226 -0
- package/dist/gpu-core/gpu-transpose-benchmark.js.map +1 -0
- package/dist/gpu-core/gpu-transpose.cjs +313 -0
- package/dist/gpu-core/gpu-transpose.d.ts +67 -0
- package/dist/gpu-core/gpu-transpose.d.ts.map +1 -0
- package/dist/gpu-core/gpu-transpose.js +302 -0
- package/dist/gpu-core/gpu-transpose.js.map +1 -0
- package/dist/gpu-core/gpu-uint32-gather.cjs +42 -0
- package/dist/gpu-core/gpu-uint32-gather.d.ts +13 -0
- package/dist/gpu-core/gpu-uint32-gather.d.ts.map +1 -0
- package/dist/gpu-core/gpu-uint32-gather.js +23 -0
- package/dist/gpu-core/gpu-uint32-gather.js.map +1 -0
- package/dist/gpu-core/gpu-uint64-scan.cjs +190 -0
- package/dist/gpu-core/gpu-uint64-scan.d.ts +19 -0
- package/dist/gpu-core/gpu-uint64-scan.d.ts.map +1 -0
- package/dist/gpu-core/gpu-uint64-scan.js +177 -0
- package/dist/gpu-core/gpu-uint64-scan.js.map +1 -0
- package/dist/gpu-core/gpu-value-arena-inspector.cjs +53 -0
- package/dist/gpu-core/gpu-value-arena-inspector.d.ts +22 -0
- package/dist/gpu-core/gpu-value-arena-inspector.d.ts.map +1 -0
- package/dist/gpu-core/gpu-value-arena-inspector.js +31 -0
- package/dist/gpu-core/gpu-value-arena-inspector.js.map +1 -0
- package/dist/gpu-core/gpu-value-arena.cjs +113 -0
- package/dist/gpu-core/gpu-value-arena.d.ts +30 -0
- package/dist/gpu-core/gpu-value-arena.d.ts.map +1 -0
- package/dist/gpu-core/gpu-value-arena.js +90 -0
- package/dist/gpu-core/gpu-value-arena.js.map +1 -0
- package/dist/gpu-core/gpu-virtual-geometry-selection.cjs +498 -0
- package/dist/gpu-core/gpu-virtual-geometry-selection.d.ts +96 -0
- package/dist/gpu-core/gpu-virtual-geometry-selection.d.ts.map +1 -0
- package/dist/gpu-core/gpu-virtual-geometry-selection.js +496 -0
- package/dist/gpu-core/gpu-virtual-geometry-selection.js.map +1 -0
- package/dist/gpu-core/gpu-visibility-workflow.cjs +227 -0
- package/dist/gpu-core/gpu-visibility-workflow.d.ts +62 -0
- package/dist/gpu-core/gpu-visibility-workflow.d.ts.map +1 -0
- package/dist/gpu-core/gpu-visibility-workflow.js +220 -0
- package/dist/gpu-core/gpu-visibility-workflow.js.map +1 -0
- package/dist/gpu-core/gpu-workgroup-reduction-benchmark.cjs +279 -0
- package/dist/gpu-core/gpu-workgroup-reduction-benchmark.d.ts +39 -0
- package/dist/gpu-core/gpu-workgroup-reduction-benchmark.d.ts.map +1 -0
- package/dist/gpu-core/gpu-workgroup-reduction-benchmark.js +264 -0
- package/dist/gpu-core/gpu-workgroup-reduction-benchmark.js.map +1 -0
- package/dist/gpu-core/gpu-workgroup-scan-benchmark.cjs +304 -0
- package/dist/gpu-core/gpu-workgroup-scan-benchmark.d.ts +54 -0
- package/dist/gpu-core/gpu-workgroup-scan-benchmark.d.ts.map +1 -0
- package/dist/gpu-core/gpu-workgroup-scan-benchmark.js +293 -0
- package/dist/gpu-core/gpu-workgroup-scan-benchmark.js.map +1 -0
- package/dist/gpu-core/graph-data-view-utils.cjs +165 -0
- package/dist/gpu-core/graph-data-view-utils.d.ts +49 -0
- package/dist/gpu-core/graph-data-view-utils.d.ts.map +1 -0
- package/dist/gpu-core/graph-data-view-utils.js +158 -0
- package/dist/gpu-core/graph-data-view-utils.js.map +1 -0
- package/dist/gpu-core/graph-vector-view-utils.cjs +71 -0
- package/dist/gpu-core/graph-vector-view-utils.d.ts +10 -0
- package/dist/gpu-core/graph-vector-view-utils.d.ts.map +1 -0
- package/dist/gpu-core/graph-vector-view-utils.js +53 -0
- package/dist/gpu-core/graph-vector-view-utils.js.map +1 -0
- package/dist/gpu-core/index.cjs +455 -0
- package/dist/gpu-core/index.cjs.map +6 -0
- package/dist/gpu-core/index.d.ts +165 -0
- package/dist/gpu-core/index.d.ts.map +1 -0
- package/dist/gpu-core/index.js +89 -0
- package/dist/gpu-core/index.js.map +1 -0
- package/dist/gpu-core/utils/bound-kernel.cjs +37 -0
- package/dist/gpu-core/utils/bound-kernel.d.ts +13 -0
- package/dist/gpu-core/utils/bound-kernel.d.ts.map +1 -0
- package/dist/gpu-core/utils/bound-kernel.js +13 -0
- package/dist/gpu-core/utils/bound-kernel.js.map +1 -0
- package/dist/gpu-crossfilter/gpu-crossfilter.cjs +372 -0
- package/dist/gpu-crossfilter/gpu-crossfilter.d.ts +152 -0
- package/dist/gpu-crossfilter/gpu-crossfilter.d.ts.map +1 -0
- package/dist/gpu-crossfilter/gpu-crossfilter.js +370 -0
- package/dist/gpu-crossfilter/gpu-crossfilter.js.map +1 -0
- package/dist/gpu-crossfilter/gpu-selection.cjs +342 -0
- package/dist/gpu-crossfilter/gpu-selection.d.ts +69 -0
- package/dist/gpu-crossfilter/gpu-selection.d.ts.map +1 -0
- package/dist/gpu-crossfilter/gpu-selection.js +352 -0
- package/dist/gpu-crossfilter/gpu-selection.js.map +1 -0
- package/dist/gpu-crossfilter/index.cjs +30 -0
- package/dist/gpu-crossfilter/index.cjs.map +6 -0
- package/dist/gpu-crossfilter/index.d.ts +5 -0
- package/dist/gpu-crossfilter/index.d.ts.map +1 -0
- package/dist/gpu-crossfilter/index.js +7 -0
- package/dist/gpu-crossfilter/index.js.map +1 -0
- package/dist/gpu-dataframe/gpu-analytics-compiler-utils.cjs +242 -0
- package/dist/gpu-dataframe/gpu-analytics-compiler-utils.d.ts +37 -0
- package/dist/gpu-dataframe/gpu-analytics-compiler-utils.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-analytics-compiler-utils.js +225 -0
- package/dist/gpu-dataframe/gpu-analytics-compiler-utils.js.map +1 -0
- package/dist/gpu-dataframe/gpu-data-frame-query.cjs +238 -0
- package/dist/gpu-dataframe/gpu-data-frame-query.d.ts +83 -0
- package/dist/gpu-dataframe/gpu-data-frame-query.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-data-frame-query.js +236 -0
- package/dist/gpu-dataframe/gpu-data-frame-query.js.map +1 -0
- package/dist/gpu-dataframe/gpu-data-frame.cjs +372 -0
- package/dist/gpu-dataframe/gpu-data-frame.d.ts +122 -0
- package/dist/gpu-dataframe/gpu-data-frame.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-data-frame.js +373 -0
- package/dist/gpu-dataframe/gpu-data-frame.js.map +1 -0
- package/dist/gpu-dataframe/gpu-expression-shader.cjs +394 -0
- package/dist/gpu-dataframe/gpu-expression-shader.d.ts +46 -0
- package/dist/gpu-dataframe/gpu-expression-shader.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-expression-shader.js +399 -0
- package/dist/gpu-dataframe/gpu-expression-shader.js.map +1 -0
- package/dist/gpu-dataframe/gpu-expression.cjs +198 -0
- package/dist/gpu-dataframe/gpu-expression.d.ts +88 -0
- package/dist/gpu-dataframe/gpu-expression.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-expression.js +179 -0
- package/dist/gpu-dataframe/gpu-expression.js.map +1 -0
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.cjs +311 -0
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.d.ts +13 -0
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js +290 -0
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js.map +1 -0
- package/dist/gpu-dataframe/gpu-global-aggregation-query.cjs +93 -0
- package/dist/gpu-dataframe/gpu-global-aggregation-query.d.ts +58 -0
- package/dist/gpu-dataframe/gpu-global-aggregation-query.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-global-aggregation-query.js +75 -0
- package/dist/gpu-dataframe/gpu-global-aggregation-query.js.map +1 -0
- package/dist/gpu-dataframe/gpu-global-sort-compiler.cjs +415 -0
- package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts +21 -0
- package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-global-sort-compiler.js +409 -0
- package/dist/gpu-dataframe/gpu-global-sort-compiler.js.map +1 -0
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.cjs +374 -0
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.d.ts +17 -0
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js +365 -0
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js.map +1 -0
- package/dist/gpu-dataframe/gpu-group-by-query.cjs +141 -0
- package/dist/gpu-dataframe/gpu-group-by-query.d.ts +74 -0
- package/dist/gpu-dataframe/gpu-group-by-query.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-group-by-query.js +130 -0
- package/dist/gpu-dataframe/gpu-group-by-query.js.map +1 -0
- package/dist/gpu-dataframe/gpu-histogram-compiler.cjs +132 -0
- package/dist/gpu-dataframe/gpu-histogram-compiler.d.ts +26 -0
- package/dist/gpu-dataframe/gpu-histogram-compiler.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-histogram-compiler.js +113 -0
- package/dist/gpu-dataframe/gpu-histogram-compiler.js.map +1 -0
- package/dist/gpu-dataframe/gpu-histogram-query.cjs +114 -0
- package/dist/gpu-dataframe/gpu-histogram-query.d.ts +34 -0
- package/dist/gpu-dataframe/gpu-histogram-query.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-histogram-query.js +103 -0
- package/dist/gpu-dataframe/gpu-histogram-query.js.map +1 -0
- package/dist/gpu-dataframe/gpu-join-compiler.cjs +682 -0
- package/dist/gpu-dataframe/gpu-join-compiler.d.ts +71 -0
- package/dist/gpu-dataframe/gpu-join-compiler.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-join-compiler.js +678 -0
- package/dist/gpu-dataframe/gpu-join-compiler.js.map +1 -0
- package/dist/gpu-dataframe/gpu-join-query.cjs +161 -0
- package/dist/gpu-dataframe/gpu-join-query.d.ts +70 -0
- package/dist/gpu-dataframe/gpu-join-query.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-join-query.js +153 -0
- package/dist/gpu-dataframe/gpu-join-query.js.map +1 -0
- package/dist/gpu-dataframe/gpu-query-compiler.cjs +530 -0
- package/dist/gpu-dataframe/gpu-query-compiler.d.ts +81 -0
- package/dist/gpu-dataframe/gpu-query-compiler.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-query-compiler.js +541 -0
- package/dist/gpu-dataframe/gpu-query-compiler.js.map +1 -0
- package/dist/gpu-dataframe/gpu-sort-compiler.cjs +348 -0
- package/dist/gpu-dataframe/gpu-sort-compiler.d.ts +27 -0
- package/dist/gpu-dataframe/gpu-sort-compiler.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-sort-compiler.js +347 -0
- package/dist/gpu-dataframe/gpu-sort-compiler.js.map +1 -0
- package/dist/gpu-dataframe/gpu-sort-query.cjs +105 -0
- package/dist/gpu-dataframe/gpu-sort-query.d.ts +60 -0
- package/dist/gpu-dataframe/gpu-sort-query.d.ts.map +1 -0
- package/dist/gpu-dataframe/gpu-sort-query.js +97 -0
- package/dist/gpu-dataframe/gpu-sort-query.js.map +1 -0
- package/dist/gpu-dataframe/index.cjs +89 -0
- package/dist/gpu-dataframe/index.cjs.map +6 -0
- package/dist/gpu-dataframe/index.d.ts +25 -0
- package/dist/gpu-dataframe/index.d.ts.map +1 -0
- package/dist/gpu-dataframe/index.js +20 -0
- package/dist/gpu-dataframe/index.js.map +1 -0
- package/dist/gpu-dggs/benchmarks.cjs +27 -0
- package/dist/gpu-dggs/benchmarks.cjs.map +6 -0
- package/dist/gpu-dggs/benchmarks.d.ts +3 -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-dggs/gpu-dggs-cell-projection-benchmark.cjs +229 -0
- package/dist/gpu-dggs/gpu-dggs-cell-projection-benchmark.d.ts +47 -0
- package/dist/gpu-dggs/gpu-dggs-cell-projection-benchmark.d.ts.map +1 -0
- package/dist/gpu-dggs/gpu-dggs-cell-projection-benchmark.js +229 -0
- package/dist/gpu-dggs/gpu-dggs-cell-projection-benchmark.js.map +1 -0
- package/dist/gpu-dggs/gpu-dggs-cell-projection.cjs +174 -0
- package/dist/gpu-dggs/gpu-dggs-cell-projection.d.ts +35 -0
- package/dist/gpu-dggs/gpu-dggs-cell-projection.d.ts.map +1 -0
- package/dist/gpu-dggs/gpu-dggs-cell-projection.js +166 -0
- package/dist/gpu-dggs/gpu-dggs-cell-projection.js.map +1 -0
- package/dist/gpu-dggs/index.cjs +27 -0
- package/dist/gpu-dggs/index.cjs.map +6 -0
- package/dist/gpu-dggs/index.d.ts +3 -0
- package/dist/gpu-dggs/index.d.ts.map +1 -0
- package/dist/gpu-dggs/index.js +5 -0
- package/dist/gpu-dggs/index.js.map +1 -0
- package/dist/gpu-effects/fft-bloom-shaders.cjs +327 -0
- package/dist/gpu-effects/fft-bloom-shaders.d.ts +10 -0
- package/dist/gpu-effects/fft-bloom-shaders.d.ts.map +1 -0
- package/dist/gpu-effects/fft-bloom-shaders.js +284 -0
- package/dist/gpu-effects/fft-bloom-shaders.js.map +1 -0
- package/dist/gpu-effects/fft-bloom.cjs +590 -0
- package/dist/gpu-effects/fft-bloom.d.ts +149 -0
- package/dist/gpu-effects/fft-bloom.d.ts.map +1 -0
- package/dist/gpu-effects/fft-bloom.js +593 -0
- package/dist/gpu-effects/fft-bloom.js.map +1 -0
- package/dist/gpu-effects/index.cjs +35 -0
- package/dist/gpu-effects/index.cjs.map +6 -0
- package/dist/gpu-effects/index.d.ts +3 -0
- package/dist/gpu-effects/index.d.ts.map +1 -0
- package/dist/gpu-effects/index.js +5 -0
- package/dist/gpu-effects/index.js.map +1 -0
- package/dist/gpu-geometry/gpu-mesh-normals.cjs +81 -0
- package/dist/gpu-geometry/gpu-mesh-normals.d.ts +34 -0
- package/dist/gpu-geometry/gpu-mesh-normals.d.ts.map +1 -0
- package/dist/gpu-geometry/gpu-mesh-normals.js +61 -0
- package/dist/gpu-geometry/gpu-mesh-normals.js.map +1 -0
- package/dist/gpu-geometry/gpu-mesh-smoothing.cjs +61 -0
- package/dist/gpu-geometry/gpu-mesh-smoothing.d.ts +21 -0
- package/dist/gpu-geometry/gpu-mesh-smoothing.d.ts.map +1 -0
- package/dist/gpu-geometry/gpu-mesh-smoothing.js +43 -0
- package/dist/gpu-geometry/gpu-mesh-smoothing.js.map +1 -0
- package/dist/gpu-geometry/index.cjs +32 -0
- package/dist/gpu-geometry/index.cjs.map +6 -0
- package/dist/gpu-geometry/index.d.ts +5 -0
- package/dist/gpu-geometry/index.d.ts.map +1 -0
- package/dist/gpu-geometry/index.js +6 -0
- package/dist/gpu-geometry/index.js.map +1 -0
- package/dist/gpu-graph/index.cjs +73 -0
- package/dist/gpu-graph/index.cjs.map +6 -0
- package/dist/gpu-graph/index.d.ts +15 -0
- package/dist/gpu-graph/index.d.ts.map +1 -0
- package/dist/gpu-graph/index.js +12 -0
- package/dist/gpu-graph/index.js.map +1 -0
- package/dist/gpu-graph-algorithms/benchmarks.cjs +30 -0
- package/dist/gpu-graph-algorithms/benchmarks.cjs.map +6 -0
- package/dist/gpu-graph-algorithms/benchmarks.d.ts +4 -0
- package/dist/gpu-graph-algorithms/benchmarks.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/benchmarks.js +7 -0
- package/dist/gpu-graph-algorithms/benchmarks.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-benchmark-data.cjs +628 -0
- package/dist/gpu-graph-algorithms/gpu-graph-benchmark-data.d.ts +131 -0
- package/dist/gpu-graph-algorithms/gpu-graph-benchmark-data.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-benchmark-data.js +639 -0
- package/dist/gpu-graph-algorithms/gpu-graph-benchmark-data.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-benchmark.cjs +550 -0
- package/dist/gpu-graph-algorithms/gpu-graph-benchmark.d.ts +12 -0
- package/dist/gpu-graph-algorithms/gpu-graph-benchmark.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-benchmark.js +585 -0
- package/dist/gpu-graph-algorithms/gpu-graph-benchmark.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.cjs +289 -0
- package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.d.ts +8 -0
- package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.js +300 -0
- package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search.cjs +169 -0
- package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search.d.ts +63 -0
- package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search.js +183 -0
- package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-connected-components-internals.cjs +276 -0
- package/dist/gpu-graph-algorithms/gpu-graph-connected-components-internals.d.ts +8 -0
- package/dist/gpu-graph-algorithms/gpu-graph-connected-components-internals.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-connected-components-internals.js +271 -0
- package/dist/gpu-graph-algorithms/gpu-graph-connected-components-internals.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-connected-components.cjs +117 -0
- package/dist/gpu-graph-algorithms/gpu-graph-connected-components.d.ts +41 -0
- package/dist/gpu-graph-algorithms/gpu-graph-connected-components.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-connected-components.js +124 -0
- package/dist/gpu-graph-algorithms/gpu-graph-connected-components.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-core-number-internals.cjs +415 -0
- package/dist/gpu-graph-algorithms/gpu-graph-core-number-internals.d.ts +8 -0
- package/dist/gpu-graph-algorithms/gpu-graph-core-number-internals.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-core-number-internals.js +412 -0
- package/dist/gpu-graph-algorithms/gpu-graph-core-number-internals.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-core-number.cjs +124 -0
- package/dist/gpu-graph-algorithms/gpu-graph-core-number.d.ts +49 -0
- package/dist/gpu-graph-algorithms/gpu-graph-core-number.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-core-number.js +136 -0
- package/dist/gpu-graph-algorithms/gpu-graph-core-number.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-degree-internals.cjs +102 -0
- package/dist/gpu-graph-algorithms/gpu-graph-degree-internals.d.ts +8 -0
- package/dist/gpu-graph-algorithms/gpu-graph-degree-internals.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-degree-internals.js +81 -0
- package/dist/gpu-graph-algorithms/gpu-graph-degree-internals.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-degree.cjs +100 -0
- package/dist/gpu-graph-algorithms/gpu-graph-degree.d.ts +38 -0
- package/dist/gpu-graph-algorithms/gpu-graph-degree.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-degree.js +104 -0
- package/dist/gpu-graph-algorithms/gpu-graph-degree.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-force-layout-internals.cjs +391 -0
- package/dist/gpu-graph-algorithms/gpu-graph-force-layout-internals.d.ts +8 -0
- package/dist/gpu-graph-algorithms/gpu-graph-force-layout-internals.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-force-layout-internals.js +396 -0
- package/dist/gpu-graph-algorithms/gpu-graph-force-layout-internals.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-force-layout.cjs +186 -0
- package/dist/gpu-graph-algorithms/gpu-graph-force-layout.d.ts +80 -0
- package/dist/gpu-graph-algorithms/gpu-graph-force-layout.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-force-layout.js +198 -0
- package/dist/gpu-graph-algorithms/gpu-graph-force-layout.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-label-propagation-internals.cjs +344 -0
- package/dist/gpu-graph-algorithms/gpu-graph-label-propagation-internals.d.ts +8 -0
- package/dist/gpu-graph-algorithms/gpu-graph-label-propagation-internals.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-label-propagation-internals.js +357 -0
- package/dist/gpu-graph-algorithms/gpu-graph-label-propagation-internals.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-label-propagation.cjs +120 -0
- package/dist/gpu-graph-algorithms/gpu-graph-label-propagation.d.ts +46 -0
- package/dist/gpu-graph-algorithms/gpu-graph-label-propagation.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-label-propagation.js +132 -0
- package/dist/gpu-graph-algorithms/gpu-graph-label-propagation.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.cjs +243 -0
- package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.d.ts +8 -0
- package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.js +244 -0
- package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.cjs +111 -0
- package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.d.ts +47 -0
- package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.js +126 -0
- package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity-internals.cjs +387 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity-internals.d.ts +8 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity-internals.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity-internals.js +387 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity-internals.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.cjs +818 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.d.ts +8 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.js +824 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization.cjs +148 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization.d.ts +72 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization.js +171 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity.cjs +109 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity.d.ts +55 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity.js +124 -0
- package/dist/gpu-graph-algorithms/gpu-graph-modularity.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-page-rank-internals.cjs +437 -0
- package/dist/gpu-graph-algorithms/gpu-graph-page-rank-internals.d.ts +8 -0
- package/dist/gpu-graph-algorithms/gpu-graph-page-rank-internals.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-page-rank-internals.js +457 -0
- package/dist/gpu-graph-algorithms/gpu-graph-page-rank-internals.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-page-rank.cjs +127 -0
- package/dist/gpu-graph-algorithms/gpu-graph-page-rank.d.ts +45 -0
- package/dist/gpu-graph-algorithms/gpu-graph-page-rank.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-page-rank.js +134 -0
- package/dist/gpu-graph-algorithms/gpu-graph-page-rank.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.cjs +542 -0
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.d.ts +8 -0
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.js +545 -0
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.cjs +141 -0
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.d.ts +59 -0
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.js +155 -0
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.cjs +593 -0
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.d.ts +8 -0
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js +594 -0
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout.cjs +161 -0
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout.d.ts +71 -0
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout.js +179 -0
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-topology-internals.cjs +512 -0
- package/dist/gpu-graph-algorithms/gpu-graph-topology-internals.d.ts +8 -0
- package/dist/gpu-graph-algorithms/gpu-graph-topology-internals.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-topology-internals.js +516 -0
- package/dist/gpu-graph-algorithms/gpu-graph-topology-internals.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-topology.cjs +149 -0
- package/dist/gpu-graph-algorithms/gpu-graph-topology.d.ts +55 -0
- package/dist/gpu-graph-algorithms/gpu-graph-topology.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph-topology.js +160 -0
- package/dist/gpu-graph-algorithms/gpu-graph-topology.js.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph.cjs +128 -0
- package/dist/gpu-graph-algorithms/gpu-graph.d.ts +69 -0
- package/dist/gpu-graph-algorithms/gpu-graph.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/gpu-graph.js +132 -0
- package/dist/gpu-graph-algorithms/gpu-graph.js.map +1 -0
- package/dist/gpu-graph-algorithms/index.cjs +66 -0
- package/dist/gpu-graph-algorithms/index.cjs.map +6 -0
- package/dist/gpu-graph-algorithms/index.d.ts +29 -0
- package/dist/gpu-graph-algorithms/index.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms/index.js +19 -0
- package/dist/gpu-graph-algorithms/index.js.map +1 -0
- package/dist/gpu-h3/gpu-h3-cell-projection.cjs +32 -0
- package/dist/gpu-h3/gpu-h3-cell-projection.d.ts +14 -0
- package/dist/gpu-h3/gpu-h3-cell-projection.d.ts.map +1 -0
- package/dist/gpu-h3/gpu-h3-cell-projection.js +17 -0
- package/dist/gpu-h3/gpu-h3-cell-projection.js.map +1 -0
- package/dist/gpu-h3/index.cjs +27 -0
- package/dist/gpu-h3/index.cjs.map +6 -0
- package/dist/gpu-h3/index.d.ts +4 -0
- package/dist/gpu-h3/index.d.ts.map +1 -0
- package/dist/gpu-h3/index.js +5 -0
- package/dist/gpu-h3/index.js.map +1 -0
- package/dist/gpu-parse/compression/gpu-lz4-raw-decompressor.cjs +59 -0
- package/dist/gpu-parse/compression/gpu-lz4-raw-decompressor.d.ts +23 -0
- package/dist/gpu-parse/compression/gpu-lz4-raw-decompressor.d.ts.map +1 -0
- package/dist/gpu-parse/compression/gpu-lz4-raw-decompressor.js +34 -0
- package/dist/gpu-parse/compression/gpu-lz4-raw-decompressor.js.map +1 -0
- package/dist/gpu-parse/compression/gpu-snappy-decompressor.cjs +50 -0
- package/dist/gpu-parse/compression/gpu-snappy-decompressor.d.ts +19 -0
- package/dist/gpu-parse/compression/gpu-snappy-decompressor.d.ts.map +1 -0
- package/dist/gpu-parse/compression/gpu-snappy-decompressor.js +27 -0
- package/dist/gpu-parse/compression/gpu-snappy-decompressor.js.map +1 -0
- package/dist/gpu-parse/compression/lz4-raw-plan.cjs +100 -0
- package/dist/gpu-parse/compression/lz4-raw-plan.d.ts +16 -0
- package/dist/gpu-parse/compression/lz4-raw-plan.d.ts.map +1 -0
- package/dist/gpu-parse/compression/lz4-raw-plan.js +77 -0
- package/dist/gpu-parse/compression/lz4-raw-plan.js.map +1 -0
- package/dist/gpu-parse/compression/snappy-plan.cjs +142 -0
- package/dist/gpu-parse/compression/snappy-plan.d.ts +16 -0
- package/dist/gpu-parse/compression/snappy-plan.d.ts.map +1 -0
- package/dist/gpu-parse/compression/snappy-plan.js +119 -0
- package/dist/gpu-parse/compression/snappy-plan.js.map +1 -0
- package/dist/gpu-parse/index.cjs +188 -0
- package/dist/gpu-parse/index.cjs.map +6 -0
- package/dist/gpu-parse/index.d.ts +33 -0
- package/dist/gpu-parse/index.d.ts.map +1 -0
- package/dist/gpu-parse/index.js +36 -0
- package/dist/gpu-parse/index.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.cjs +161 -0
- package/dist/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.d.ts +22 -0
- package/dist/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.js +139 -0
- package/dist/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.cjs +69 -0
- package/dist/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.d.ts +21 -0
- package/dist/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.js +49 -0
- package/dist/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.cjs +204 -0
- package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.d.ts +53 -0
- package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.js +195 -0
- package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.cjs +190 -0
- package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.d.ts +47 -0
- package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.js +174 -0
- package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.cjs +55 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.d.ts +19 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.js +34 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.cjs +54 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.d.ts +21 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.js +33 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.cjs +225 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.d.ts +23 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.js +210 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.cjs +227 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.d.ts +27 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.js +218 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.cjs +356 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.d.ts +32 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.js +337 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.cjs +54 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.d.ts +20 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.js +33 -0
- package/dist/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-dictionary-decoder.cjs +203 -0
- package/dist/gpu-parse/parquet/gpu-parquet-dictionary-decoder.d.ts +33 -0
- package/dist/gpu-parse/parquet/gpu-parquet-dictionary-decoder.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-dictionary-decoder.js +183 -0
- package/dist/gpu-parse/parquet/gpu-parquet-dictionary-decoder.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.cjs +276 -0
- package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.d.ts +147 -0
- package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.js +291 -0
- package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch.cjs +472 -0
- package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch.d.ts +51 -0
- package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch.js +479 -0
- package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-level-layout.cjs +191 -0
- package/dist/gpu-parse/parquet/gpu-parquet-level-layout.d.ts +47 -0
- package/dist/gpu-parse/parquet/gpu-parquet-level-layout.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-level-layout.js +179 -0
- package/dist/gpu-parse/parquet/gpu-parquet-level-layout.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-nested-column-layout.cjs +279 -0
- package/dist/gpu-parse/parquet/gpu-parquet-nested-column-layout.d.ts +68 -0
- package/dist/gpu-parse/parquet/gpu-parquet-nested-column-layout.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-nested-column-layout.js +278 -0
- package/dist/gpu-parse/parquet/gpu-parquet-nested-column-layout.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.cjs +146 -0
- package/dist/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.d.ts +19 -0
- package/dist/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.js +125 -0
- package/dist/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.cjs +47 -0
- package/dist/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.d.ts +19 -0
- package/dist/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.js +26 -0
- package/dist/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.cjs +238 -0
- package/dist/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.d.ts +34 -0
- package/dist/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.js +220 -0
- package/dist/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.js.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.cjs +59 -0
- package/dist/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.d.ts +22 -0
- package/dist/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.js +38 -0
- package/dist/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.js.map +1 -0
- package/dist/gpu-parse/parquet/parquet-column-decode-plan.cjs +76 -0
- package/dist/gpu-parse/parquet/parquet-column-decode-plan.d.ts +34 -0
- package/dist/gpu-parse/parquet/parquet-column-decode-plan.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/parquet-column-decode-plan.js +59 -0
- package/dist/gpu-parse/parquet/parquet-column-decode-plan.js.map +1 -0
- package/dist/gpu-parse/parquet/parquet-delta-binary-packed-int64.cjs +137 -0
- package/dist/gpu-parse/parquet/parquet-delta-binary-packed-int64.d.ts +16 -0
- package/dist/gpu-parse/parquet/parquet-delta-binary-packed-int64.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/parquet-delta-binary-packed-int64.js +114 -0
- package/dist/gpu-parse/parquet/parquet-delta-binary-packed-int64.js.map +1 -0
- package/dist/gpu-parse/parquet/parquet-delta-binary-packed.cjs +128 -0
- package/dist/gpu-parse/parquet/parquet-delta-binary-packed.d.ts +15 -0
- package/dist/gpu-parse/parquet/parquet-delta-binary-packed.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/parquet-delta-binary-packed.js +105 -0
- package/dist/gpu-parse/parquet/parquet-delta-binary-packed.js.map +1 -0
- package/dist/gpu-parse/parquet/parquet-delta-byte-array.cjs +56 -0
- package/dist/gpu-parse/parquet/parquet-delta-byte-array.d.ts +11 -0
- package/dist/gpu-parse/parquet/parquet-delta-byte-array.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/parquet-delta-byte-array.js +35 -0
- package/dist/gpu-parse/parquet/parquet-delta-byte-array.js.map +1 -0
- package/dist/gpu-parse/parquet/parquet-delta-length-byte-array.cjs +35 -0
- package/dist/gpu-parse/parquet/parquet-delta-length-byte-array.d.ts +10 -0
- package/dist/gpu-parse/parquet/parquet-delta-length-byte-array.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/parquet-delta-length-byte-array.js +14 -0
- package/dist/gpu-parse/parquet/parquet-delta-length-byte-array.js.map +1 -0
- package/dist/gpu-parse/parquet/parquet-encoded-page-batch.cjs +690 -0
- package/dist/gpu-parse/parquet/parquet-encoded-page-batch.d.ts +248 -0
- package/dist/gpu-parse/parquet/parquet-encoded-page-batch.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/parquet-encoded-page-batch.js +690 -0
- package/dist/gpu-parse/parquet/parquet-encoded-page-batch.js.map +1 -0
- package/dist/gpu-parse/parquet/parquet-plain-byte-array.cjs +65 -0
- package/dist/gpu-parse/parquet/parquet-plain-byte-array.d.ts +12 -0
- package/dist/gpu-parse/parquet/parquet-plain-byte-array.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/parquet-plain-byte-array.js +48 -0
- package/dist/gpu-parse/parquet/parquet-plain-byte-array.js.map +1 -0
- package/dist/gpu-parse/parquet/parquet-rle-bit-packed.cjs +87 -0
- package/dist/gpu-parse/parquet/parquet-rle-bit-packed.d.ts +18 -0
- package/dist/gpu-parse/parquet/parquet-rle-bit-packed.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/parquet-rle-bit-packed.js +71 -0
- package/dist/gpu-parse/parquet/parquet-rle-bit-packed.js.map +1 -0
- package/dist/gpu-parse/parquet/parquet-rle-framing.cjs +81 -0
- package/dist/gpu-parse/parquet/parquet-rle-framing.d.ts +20 -0
- package/dist/gpu-parse/parquet/parquet-rle-framing.d.ts.map +1 -0
- package/dist/gpu-parse/parquet/parquet-rle-framing.js +62 -0
- package/dist/gpu-parse/parquet/parquet-rle-framing.js.map +1 -0
- package/dist/gpu-physics/gpu-physics-batch.cjs +287 -0
- package/dist/gpu-physics/gpu-physics-batch.d.ts +89 -0
- package/dist/gpu-physics/gpu-physics-batch.d.ts.map +1 -0
- package/dist/gpu-physics/gpu-physics-batch.js +279 -0
- package/dist/gpu-physics/gpu-physics-batch.js.map +1 -0
- package/dist/gpu-physics/gpu-physics-ensemble.cjs +164 -0
- package/dist/gpu-physics/gpu-physics-ensemble.d.ts +72 -0
- package/dist/gpu-physics/gpu-physics-ensemble.d.ts.map +1 -0
- package/dist/gpu-physics/gpu-physics-ensemble.js +164 -0
- package/dist/gpu-physics/gpu-physics-ensemble.js.map +1 -0
- package/dist/gpu-physics/gpu-rigid-body-world.cjs +1953 -0
- package/dist/gpu-physics/gpu-rigid-body-world.d.ts +305 -0
- package/dist/gpu-physics/gpu-rigid-body-world.d.ts.map +1 -0
- package/dist/gpu-physics/gpu-rigid-body-world.js +2311 -0
- package/dist/gpu-physics/gpu-rigid-body-world.js.map +1 -0
- package/dist/gpu-physics/gpu-sphere-world.cjs +809 -0
- package/dist/gpu-physics/gpu-sphere-world.d.ts +176 -0
- package/dist/gpu-physics/gpu-sphere-world.d.ts.map +1 -0
- package/dist/gpu-physics/gpu-sphere-world.js +845 -0
- package/dist/gpu-physics/gpu-sphere-world.js.map +1 -0
- package/dist/gpu-physics/index.cjs +93 -0
- package/dist/gpu-physics/index.cjs.map +6 -0
- package/dist/gpu-physics/index.d.ts +28 -0
- package/dist/gpu-physics/index.d.ts.map +1 -0
- package/dist/gpu-physics/index.js +21 -0
- package/dist/gpu-physics/index.js.map +1 -0
- package/dist/gpu-physics/joint-types.cjs +15 -0
- package/dist/gpu-physics/joint-types.d.ts +19 -0
- package/dist/gpu-physics/joint-types.d.ts.map +1 -0
- package/dist/gpu-physics/joint-types.js +5 -0
- package/dist/gpu-physics/joint-types.js.map +1 -0
- package/dist/gpu-physics/rigid-body-bounds-shaders.cjs +79 -0
- package/dist/gpu-physics/rigid-body-bounds-shaders.d.ts +3 -0
- package/dist/gpu-physics/rigid-body-bounds-shaders.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-bounds-shaders.js +49 -0
- package/dist/gpu-physics/rigid-body-bounds-shaders.js.map +1 -0
- package/dist/gpu-physics/rigid-body-broad-phase.cjs +315 -0
- package/dist/gpu-physics/rigid-body-broad-phase.d.ts +45 -0
- package/dist/gpu-physics/rigid-body-broad-phase.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-broad-phase.js +333 -0
- package/dist/gpu-physics/rigid-body-broad-phase.js.map +1 -0
- package/dist/gpu-physics/rigid-body-cache-shaders.cjs +118 -0
- package/dist/gpu-physics/rigid-body-cache-shaders.d.ts +7 -0
- package/dist/gpu-physics/rigid-body-cache-shaders.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-cache-shaders.js +94 -0
- package/dist/gpu-physics/rigid-body-cache-shaders.js.map +1 -0
- package/dist/gpu-physics/rigid-body-capacity.cjs +102 -0
- package/dist/gpu-physics/rigid-body-capacity.d.ts +27 -0
- package/dist/gpu-physics/rigid-body-capacity.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-capacity.js +93 -0
- package/dist/gpu-physics/rigid-body-capacity.js.map +1 -0
- package/dist/gpu-physics/rigid-body-contact-features.cjs +83 -0
- package/dist/gpu-physics/rigid-body-contact-features.d.ts +7 -0
- package/dist/gpu-physics/rigid-body-contact-features.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-contact-features.js +65 -0
- package/dist/gpu-physics/rigid-body-contact-features.js.map +1 -0
- package/dist/gpu-physics/rigid-body-continuous.cjs +314 -0
- package/dist/gpu-physics/rigid-body-continuous.d.ts +27 -0
- package/dist/gpu-physics/rigid-body-continuous.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-continuous.js +311 -0
- package/dist/gpu-physics/rigid-body-continuous.js.map +1 -0
- package/dist/gpu-physics/rigid-body-convex-continuous-shader.cjs +550 -0
- package/dist/gpu-physics/rigid-body-convex-continuous-shader.d.ts +3 -0
- package/dist/gpu-physics/rigid-body-convex-continuous-shader.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-convex-continuous-shader.js +528 -0
- package/dist/gpu-physics/rigid-body-convex-continuous-shader.js.map +1 -0
- package/dist/gpu-physics/rigid-body-convex-shaders.cjs +242 -0
- package/dist/gpu-physics/rigid-body-convex-shaders.d.ts +2 -0
- package/dist/gpu-physics/rigid-body-convex-shaders.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-convex-shaders.js +217 -0
- package/dist/gpu-physics/rigid-body-convex-shaders.js.map +1 -0
- package/dist/gpu-physics/rigid-body-diagnostics.cjs +123 -0
- package/dist/gpu-physics/rigid-body-diagnostics.d.ts +50 -0
- package/dist/gpu-physics/rigid-body-diagnostics.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-diagnostics.js +98 -0
- package/dist/gpu-physics/rigid-body-diagnostics.js.map +1 -0
- package/dist/gpu-physics/rigid-body-ensemble-layout.cjs +55 -0
- package/dist/gpu-physics/rigid-body-ensemble-layout.d.ts +17 -0
- package/dist/gpu-physics/rigid-body-ensemble-layout.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-ensemble-layout.js +34 -0
- package/dist/gpu-physics/rigid-body-ensemble-layout.js.map +1 -0
- package/dist/gpu-physics/rigid-body-ensemble-reset.cjs +158 -0
- package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts +8 -0
- package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-ensemble-reset.js +135 -0
- package/dist/gpu-physics/rigid-body-ensemble-reset.js.map +1 -0
- package/dist/gpu-physics/rigid-body-ensemble-shaders.cjs +145 -0
- package/dist/gpu-physics/rigid-body-ensemble-shaders.d.ts +20 -0
- package/dist/gpu-physics/rigid-body-ensemble-shaders.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-ensemble-shaders.js +121 -0
- package/dist/gpu-physics/rigid-body-ensemble-shaders.js.map +1 -0
- package/dist/gpu-physics/rigid-body-ensemble-transaction.cjs +175 -0
- package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts +19 -0
- package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-ensemble-transaction.js +156 -0
- package/dist/gpu-physics/rigid-body-ensemble-transaction.js.map +1 -0
- package/dist/gpu-physics/rigid-body-events.cjs +93 -0
- package/dist/gpu-physics/rigid-body-events.d.ts +22 -0
- package/dist/gpu-physics/rigid-body-events.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-events.js +67 -0
- package/dist/gpu-physics/rigid-body-events.js.map +1 -0
- package/dist/gpu-physics/rigid-body-general-joints.cjs +142 -0
- package/dist/gpu-physics/rigid-body-general-joints.d.ts +8 -0
- package/dist/gpu-physics/rigid-body-general-joints.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-general-joints.js +120 -0
- package/dist/gpu-physics/rigid-body-general-joints.js.map +1 -0
- package/dist/gpu-physics/rigid-body-geometry.cjs +87 -0
- package/dist/gpu-physics/rigid-body-geometry.d.ts +11 -0
- package/dist/gpu-physics/rigid-body-geometry.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-geometry.js +68 -0
- package/dist/gpu-physics/rigid-body-geometry.js.map +1 -0
- package/dist/gpu-physics/rigid-body-joints.cjs +205 -0
- package/dist/gpu-physics/rigid-body-joints.d.ts +50 -0
- package/dist/gpu-physics/rigid-body-joints.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-joints.js +190 -0
- package/dist/gpu-physics/rigid-body-joints.js.map +1 -0
- package/dist/gpu-physics/rigid-body-journal.cjs +101 -0
- package/dist/gpu-physics/rigid-body-journal.d.ts +62 -0
- package/dist/gpu-physics/rigid-body-journal.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-journal.js +78 -0
- package/dist/gpu-physics/rigid-body-journal.js.map +1 -0
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.cjs +122 -0
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.d.ts +3 -0
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.js +98 -0
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.js.map +1 -0
- package/dist/gpu-physics/rigid-body-mesh.cjs +253 -0
- package/dist/gpu-physics/rigid-body-mesh.d.ts +19 -0
- package/dist/gpu-physics/rigid-body-mesh.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-mesh.js +254 -0
- package/dist/gpu-physics/rigid-body-mesh.js.map +1 -0
- package/dist/gpu-physics/rigid-body-orientation.cjs +53 -0
- package/dist/gpu-physics/rigid-body-orientation.d.ts +3 -0
- package/dist/gpu-physics/rigid-body-orientation.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-orientation.js +34 -0
- package/dist/gpu-physics/rigid-body-orientation.js.map +1 -0
- package/dist/gpu-physics/rigid-body-origin.cjs +85 -0
- package/dist/gpu-physics/rigid-body-origin.d.ts +4 -0
- package/dist/gpu-physics/rigid-body-origin.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-origin.js +63 -0
- package/dist/gpu-physics/rigid-body-origin.js.map +1 -0
- package/dist/gpu-physics/rigid-body-parallel-shaders.cjs +245 -0
- package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts +3 -0
- package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-parallel-shaders.js +223 -0
- package/dist/gpu-physics/rigid-body-parallel-shaders.js.map +1 -0
- package/dist/gpu-physics/rigid-body-properties.cjs +106 -0
- package/dist/gpu-physics/rigid-body-properties.d.ts +84 -0
- package/dist/gpu-physics/rigid-body-properties.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-properties.js +89 -0
- package/dist/gpu-physics/rigid-body-properties.js.map +1 -0
- package/dist/gpu-physics/rigid-body-publication.cjs +117 -0
- package/dist/gpu-physics/rigid-body-publication.d.ts +21 -0
- package/dist/gpu-physics/rigid-body-publication.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-publication.js +98 -0
- package/dist/gpu-physics/rigid-body-publication.js.map +1 -0
- package/dist/gpu-physics/rigid-body-queries.cjs +84 -0
- package/dist/gpu-physics/rigid-body-queries.d.ts +34 -0
- package/dist/gpu-physics/rigid-body-queries.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-queries.js +59 -0
- package/dist/gpu-physics/rigid-body-queries.js.map +1 -0
- package/dist/gpu-physics/rigid-body-query-geometry.cjs +285 -0
- package/dist/gpu-physics/rigid-body-query-geometry.d.ts +3 -0
- package/dist/gpu-physics/rigid-body-query-geometry.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-query-geometry.js +261 -0
- package/dist/gpu-physics/rigid-body-query-geometry.js.map +1 -0
- package/dist/gpu-physics/rigid-body-recovery.cjs +207 -0
- package/dist/gpu-physics/rigid-body-recovery.d.ts +55 -0
- package/dist/gpu-physics/rigid-body-recovery.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-recovery.js +211 -0
- package/dist/gpu-physics/rigid-body-recovery.js.map +1 -0
- package/dist/gpu-physics/rigid-body-shaders.cjs +469 -0
- package/dist/gpu-physics/rigid-body-shaders.d.ts +3 -0
- package/dist/gpu-physics/rigid-body-shaders.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-shaders.js +451 -0
- package/dist/gpu-physics/rigid-body-shaders.js.map +1 -0
- package/dist/gpu-physics/rigid-body-shape-properties.cjs +92 -0
- package/dist/gpu-physics/rigid-body-shape-properties.d.ts +9 -0
- package/dist/gpu-physics/rigid-body-shape-properties.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-shape-properties.js +82 -0
- package/dist/gpu-physics/rigid-body-shape-properties.js.map +1 -0
- package/dist/gpu-physics/rigid-body-support-shaders.cjs +66 -0
- package/dist/gpu-physics/rigid-body-support-shaders.d.ts +3 -0
- package/dist/gpu-physics/rigid-body-support-shaders.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-support-shaders.js +42 -0
- package/dist/gpu-physics/rigid-body-support-shaders.js.map +1 -0
- package/dist/gpu-physics/rigid-body-transaction.cjs +187 -0
- package/dist/gpu-physics/rigid-body-transaction.d.ts +19 -0
- package/dist/gpu-physics/rigid-body-transaction.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-transaction.js +162 -0
- package/dist/gpu-physics/rigid-body-transaction.js.map +1 -0
- package/dist/gpu-physics/rigid-body-triggers.cjs +239 -0
- package/dist/gpu-physics/rigid-body-triggers.d.ts +58 -0
- package/dist/gpu-physics/rigid-body-triggers.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-triggers.js +229 -0
- package/dist/gpu-physics/rigid-body-triggers.js.map +1 -0
- package/dist/gpu-physics/scale-shape.cjs +65 -0
- package/dist/gpu-physics/scale-shape.d.ts +4 -0
- package/dist/gpu-physics/scale-shape.d.ts.map +1 -0
- package/dist/gpu-physics/scale-shape.js +44 -0
- package/dist/gpu-physics/scale-shape.js.map +1 -0
- package/dist/gpu-physics/sphere-calibration.cjs +109 -0
- package/dist/gpu-physics/sphere-calibration.d.ts +60 -0
- package/dist/gpu-physics/sphere-calibration.d.ts.map +1 -0
- package/dist/gpu-physics/sphere-calibration.js +98 -0
- package/dist/gpu-physics/sphere-calibration.js.map +1 -0
- package/dist/gpu-physics/sphere-events.cjs +57 -0
- package/dist/gpu-physics/sphere-events.d.ts +29 -0
- package/dist/gpu-physics/sphere-events.d.ts.map +1 -0
- package/dist/gpu-physics/sphere-events.js +36 -0
- package/dist/gpu-physics/sphere-events.js.map +1 -0
- package/dist/gpu-physics/sphere-persistent-contacts.cjs +249 -0
- package/dist/gpu-physics/sphere-persistent-contacts.d.ts +9 -0
- package/dist/gpu-physics/sphere-persistent-contacts.d.ts.map +1 -0
- package/dist/gpu-physics/sphere-persistent-contacts.js +211 -0
- package/dist/gpu-physics/sphere-persistent-contacts.js.map +1 -0
- package/dist/gpu-physics/sphere-shapes.cjs +69 -0
- package/dist/gpu-physics/sphere-shapes.d.ts +18 -0
- package/dist/gpu-physics/sphere-shapes.d.ts.map +1 -0
- package/dist/gpu-physics/sphere-shapes.js +49 -0
- package/dist/gpu-physics/sphere-shapes.js.map +1 -0
- package/dist/gpu-physics/sphere-world-events.cjs +190 -0
- package/dist/gpu-physics/sphere-world-events.d.ts +5 -0
- package/dist/gpu-physics/sphere-world-events.d.ts.map +1 -0
- package/dist/gpu-physics/sphere-world-events.js +163 -0
- package/dist/gpu-physics/sphere-world-events.js.map +1 -0
- package/dist/gpu-physics/sphere-world-shaders.cjs +418 -0
- package/dist/gpu-physics/sphere-world-shaders.d.ts +10 -0
- package/dist/gpu-physics/sphere-world-shaders.d.ts.map +1 -0
- package/dist/gpu-physics/sphere-world-shaders.js +369 -0
- package/dist/gpu-physics/sphere-world-shaders.js.map +1 -0
- package/dist/gpu-pointcloud/gpu-pointcloud-octree.cjs +231 -0
- package/dist/gpu-pointcloud/gpu-pointcloud-octree.d.ts +38 -0
- package/dist/gpu-pointcloud/gpu-pointcloud-octree.d.ts.map +1 -0
- package/dist/gpu-pointcloud/gpu-pointcloud-octree.js +220 -0
- package/dist/gpu-pointcloud/gpu-pointcloud-octree.js.map +1 -0
- package/dist/gpu-pointcloud/gpu-pointcloud-radius-filter.cjs +63 -0
- package/dist/gpu-pointcloud/gpu-pointcloud-radius-filter.d.ts +20 -0
- package/dist/gpu-pointcloud/gpu-pointcloud-radius-filter.d.ts.map +1 -0
- package/dist/gpu-pointcloud/gpu-pointcloud-radius-filter.js +46 -0
- package/dist/gpu-pointcloud/gpu-pointcloud-radius-filter.js.map +1 -0
- package/dist/gpu-pointcloud/gpu-pointcloud-voxel-downsample.cjs +80 -0
- package/dist/gpu-pointcloud/gpu-pointcloud-voxel-downsample.d.ts +22 -0
- package/dist/gpu-pointcloud/gpu-pointcloud-voxel-downsample.d.ts.map +1 -0
- package/dist/gpu-pointcloud/gpu-pointcloud-voxel-downsample.js +63 -0
- package/dist/gpu-pointcloud/gpu-pointcloud-voxel-downsample.js.map +1 -0
- package/dist/gpu-pointcloud/index.cjs +35 -0
- package/dist/gpu-pointcloud/index.cjs.map +6 -0
- package/dist/gpu-pointcloud/index.d.ts +7 -0
- package/dist/gpu-pointcloud/index.d.ts.map +1 -0
- package/dist/gpu-pointcloud/index.js +7 -0
- package/dist/gpu-pointcloud/index.js.map +1 -0
- package/dist/gpu-project/benchmarks.cjs +42 -0
- package/dist/gpu-project/benchmarks.cjs.map +6 -0
- package/dist/gpu-project/benchmarks.d.ts +13 -0
- package/dist/gpu-project/benchmarks.d.ts.map +1 -0
- package/dist/gpu-project/benchmarks.js +11 -0
- package/dist/gpu-project/benchmarks.js.map +1 -0
- package/dist/gpu-project/crs.cjs +195 -0
- package/dist/gpu-project/crs.cjs.map +6 -0
- package/dist/gpu-project/crs.d.ts +37 -0
- package/dist/gpu-project/crs.d.ts.map +1 -0
- package/dist/gpu-project/crs.js +177 -0
- package/dist/gpu-project/crs.js.map +1 -0
- package/dist/gpu-project/gpu-projection-benchmark.cjs +240 -0
- package/dist/gpu-project/gpu-projection-benchmark.d.ts +49 -0
- package/dist/gpu-project/gpu-projection-benchmark.d.ts.map +1 -0
- package/dist/gpu-project/gpu-projection-benchmark.js +253 -0
- package/dist/gpu-project/gpu-projection-benchmark.js.map +1 -0
- package/dist/gpu-project/gpu-projection-program.cjs +163 -0
- package/dist/gpu-project/gpu-projection-program.d.ts +29 -0
- package/dist/gpu-project/gpu-projection-program.d.ts.map +1 -0
- package/dist/gpu-project/gpu-projection-program.js +141 -0
- package/dist/gpu-project/gpu-projection-program.js.map +1 -0
- package/dist/gpu-project/gpu-projection-table.cjs +152 -0
- package/dist/gpu-project/gpu-projection-table.d.ts +38 -0
- package/dist/gpu-project/gpu-projection-table.d.ts.map +1 -0
- package/dist/gpu-project/gpu-projection-table.js +158 -0
- package/dist/gpu-project/gpu-projection-table.js.map +1 -0
- package/dist/gpu-project/gpu-projection.cjs +257 -0
- package/dist/gpu-project/gpu-projection.d.ts +87 -0
- package/dist/gpu-project/gpu-projection.d.ts.map +1 -0
- package/dist/gpu-project/gpu-projection.js +259 -0
- package/dist/gpu-project/gpu-projection.js.map +1 -0
- package/dist/gpu-project/index.cjs +81 -0
- package/dist/gpu-project/index.cjs.map +6 -0
- package/dist/gpu-project/index.d.ts +24 -0
- package/dist/gpu-project/index.d.ts.map +1 -0
- package/dist/gpu-project/index.js +16 -0
- package/dist/gpu-project/index.js.map +1 -0
- package/dist/gpu-project/projection-benchmark.cjs +146 -0
- package/dist/gpu-project/projection-benchmark.d.ts +60 -0
- package/dist/gpu-project/projection-benchmark.d.ts.map +1 -0
- package/dist/gpu-project/projection-benchmark.js +130 -0
- package/dist/gpu-project/projection-benchmark.js.map +1 -0
- package/dist/gpu-project/projection-conic.cjs +204 -0
- package/dist/gpu-project/projection-conic.d.ts +38 -0
- package/dist/gpu-project/projection-conic.d.ts.map +1 -0
- package/dist/gpu-project/projection-conic.js +237 -0
- package/dist/gpu-project/projection-conic.js.map +1 -0
- package/dist/gpu-project/projection-crs-benchmark.cjs +116 -0
- package/dist/gpu-project/projection-crs-benchmark.d.ts +14 -0
- package/dist/gpu-project/projection-crs-benchmark.d.ts.map +1 -0
- package/dist/gpu-project/projection-crs-benchmark.js +115 -0
- package/dist/gpu-project/projection-crs-benchmark.js.map +1 -0
- package/dist/gpu-project/projection-crs-identifiers.cjs +34 -0
- package/dist/gpu-project/projection-crs-identifiers.d.ts +12 -0
- package/dist/gpu-project/projection-crs-identifiers.d.ts.map +1 -0
- package/dist/gpu-project/projection-crs-identifiers.js +18 -0
- package/dist/gpu-project/projection-crs-identifiers.js.map +1 -0
- package/dist/gpu-project/projection-crs-input.cjs +161 -0
- package/dist/gpu-project/projection-crs-input.d.ts +16 -0
- package/dist/gpu-project/projection-crs-input.d.ts.map +1 -0
- package/dist/gpu-project/projection-crs-input.js +154 -0
- package/dist/gpu-project/projection-crs-input.js.map +1 -0
- package/dist/gpu-project/projection-crs-lowering.cjs +391 -0
- package/dist/gpu-project/projection-crs-lowering.d.ts +20 -0
- package/dist/gpu-project/projection-crs-lowering.d.ts.map +1 -0
- package/dist/gpu-project/projection-crs-lowering.js +459 -0
- package/dist/gpu-project/projection-crs-lowering.js.map +1 -0
- package/dist/gpu-project/projection-crs-provider.cjs +98 -0
- package/dist/gpu-project/projection-crs-provider.d.ts +9 -0
- package/dist/gpu-project/projection-crs-provider.d.ts.map +1 -0
- package/dist/gpu-project/projection-crs-provider.js +92 -0
- package/dist/gpu-project/projection-crs-provider.js.map +1 -0
- package/dist/gpu-project/projection-engine.cjs +84 -0
- package/dist/gpu-project/projection-engine.d.ts +31 -0
- package/dist/gpu-project/projection-engine.d.ts.map +1 -0
- package/dist/gpu-project/projection-engine.js +69 -0
- package/dist/gpu-project/projection-engine.js.map +1 -0
- package/dist/gpu-project/projection-execution.cjs +95 -0
- package/dist/gpu-project/projection-execution.d.ts +37 -0
- package/dist/gpu-project/projection-execution.d.ts.map +1 -0
- package/dist/gpu-project/projection-execution.js +98 -0
- package/dist/gpu-project/projection-execution.js.map +1 -0
- package/dist/gpu-project/projection-longitude-wrap.cjs +82 -0
- package/dist/gpu-project/projection-longitude-wrap.d.ts +20 -0
- package/dist/gpu-project/projection-longitude-wrap.d.ts.map +1 -0
- package/dist/gpu-project/projection-longitude-wrap.js +64 -0
- package/dist/gpu-project/projection-longitude-wrap.js.map +1 -0
- package/dist/gpu-project/projection-metadata.cjs +123 -0
- package/dist/gpu-project/projection-metadata.d.ts +57 -0
- package/dist/gpu-project/projection-metadata.d.ts.map +1 -0
- package/dist/gpu-project/projection-metadata.js +130 -0
- package/dist/gpu-project/projection-metadata.js.map +1 -0
- package/dist/gpu-project/projection-partition.cjs +168 -0
- package/dist/gpu-project/projection-partition.d.ts +50 -0
- package/dist/gpu-project/projection-partition.d.ts.map +1 -0
- package/dist/gpu-project/projection-partition.js +183 -0
- package/dist/gpu-project/projection-partition.js.map +1 -0
- package/dist/gpu-project/projection-pipeline.cjs +273 -0
- package/dist/gpu-project/projection-pipeline.d.ts +11 -0
- package/dist/gpu-project/projection-pipeline.d.ts.map +1 -0
- package/dist/gpu-project/projection-pipeline.js +304 -0
- package/dist/gpu-project/projection-pipeline.js.map +1 -0
- package/dist/gpu-project/projection-plan.cjs +561 -0
- package/dist/gpu-project/projection-plan.d.ts +40 -0
- package/dist/gpu-project/projection-plan.d.ts.map +1 -0
- package/dist/gpu-project/projection-plan.js +612 -0
- package/dist/gpu-project/projection-plan.js.map +1 -0
- package/dist/gpu-project/projection-planning.cjs +122 -0
- package/dist/gpu-project/projection-planning.d.ts +64 -0
- package/dist/gpu-project/projection-planning.d.ts.map +1 -0
- package/dist/gpu-project/projection-planning.js +105 -0
- package/dist/gpu-project/projection-planning.js.map +1 -0
- package/dist/gpu-project/projection-program-benchmark.cjs +342 -0
- package/dist/gpu-project/projection-program-benchmark.d.ts +117 -0
- package/dist/gpu-project/projection-program-benchmark.d.ts.map +1 -0
- package/dist/gpu-project/projection-program-benchmark.js +359 -0
- package/dist/gpu-project/projection-program-benchmark.js.map +1 -0
- package/dist/gpu-project/projection-program-cpu-benchmark.cjs +125 -0
- package/dist/gpu-project/projection-program-cpu-benchmark.d.ts +53 -0
- package/dist/gpu-project/projection-program-cpu-benchmark.d.ts.map +1 -0
- package/dist/gpu-project/projection-program-cpu-benchmark.js +114 -0
- package/dist/gpu-project/projection-program-cpu-benchmark.js.map +1 -0
- package/dist/gpu-project/projection-program.cjs +335 -0
- package/dist/gpu-project/projection-program.d.ts +81 -0
- package/dist/gpu-project/projection-program.d.ts.map +1 -0
- package/dist/gpu-project/projection-program.js +352 -0
- package/dist/gpu-project/projection-program.js.map +1 -0
- package/dist/gpu-project/projection-routing-benchmark.cjs +189 -0
- package/dist/gpu-project/projection-routing-benchmark.d.ts +36 -0
- package/dist/gpu-project/projection-routing-benchmark.d.ts.map +1 -0
- package/dist/gpu-project/projection-routing-benchmark.js +183 -0
- package/dist/gpu-project/projection-routing-benchmark.js.map +1 -0
- package/dist/gpu-project/projection-routing.cjs +78 -0
- package/dist/gpu-project/projection-routing.d.ts +20 -0
- package/dist/gpu-project/projection-routing.d.ts.map +1 -0
- package/dist/gpu-project/projection-routing.js +61 -0
- package/dist/gpu-project/projection-routing.js.map +1 -0
- package/dist/gpu-project/projection-shader.cjs +434 -0
- package/dist/gpu-project/projection-shader.d.ts +27 -0
- package/dist/gpu-project/projection-shader.d.ts.map +1 -0
- package/dist/gpu-project/projection-shader.js +455 -0
- package/dist/gpu-project/projection-shader.js.map +1 -0
- package/dist/gpu-project/projection-table-benchmark.cjs +283 -0
- package/dist/gpu-project/projection-table-benchmark.d.ts +72 -0
- package/dist/gpu-project/projection-table-benchmark.d.ts.map +1 -0
- package/dist/gpu-project/projection-table-benchmark.js +291 -0
- package/dist/gpu-project/projection-table-benchmark.js.map +1 -0
- package/dist/gpu-project/projection-table-transform.cjs +103 -0
- package/dist/gpu-project/projection-table-transform.d.ts +50 -0
- package/dist/gpu-project/projection-table-transform.d.ts.map +1 -0
- package/dist/gpu-project/projection-table-transform.js +97 -0
- package/dist/gpu-project/projection-table-transform.js.map +1 -0
- package/dist/gpu-project/projection-transverse-mercator.cjs +222 -0
- package/dist/gpu-project/projection-transverse-mercator.d.ts +23 -0
- package/dist/gpu-project/projection-transverse-mercator.d.ts.map +1 -0
- package/dist/gpu-project/projection-transverse-mercator.js +223 -0
- package/dist/gpu-project/projection-transverse-mercator.js.map +1 -0
- package/dist/gpu-project/projection-web-mercator.cjs +63 -0
- package/dist/gpu-project/projection-web-mercator.d.ts +18 -0
- package/dist/gpu-project/projection-web-mercator.d.ts.map +1 -0
- package/dist/gpu-project/projection-web-mercator.js +52 -0
- package/dist/gpu-project/projection-web-mercator.js.map +1 -0
- package/dist/gpu-project/types.cjs +15 -0
- package/dist/gpu-project/types.d.ts +93 -0
- package/dist/gpu-project/types.d.ts.map +1 -0
- package/dist/gpu-project/types.js +6 -0
- package/dist/gpu-project/types.js.map +1 -0
- package/dist/gpu-project/web-mercator.cjs +58 -0
- package/dist/gpu-project/web-mercator.d.ts +13 -0
- package/dist/gpu-project/web-mercator.d.ts.map +1 -0
- package/dist/gpu-project/web-mercator.js +42 -0
- package/dist/gpu-project/web-mercator.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-band-math.cjs +280 -0
- package/dist/gpu-raster/gpu-raster-band-math.d.ts +44 -0
- package/dist/gpu-raster/gpu-raster-band-math.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-band-math.js +277 -0
- package/dist/gpu-raster/gpu-raster-band-math.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-buffer-to-texture.cjs +212 -0
- package/dist/gpu-raster/gpu-raster-buffer-to-texture.d.ts +35 -0
- package/dist/gpu-raster/gpu-raster-buffer-to-texture.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-buffer-to-texture.js +210 -0
- package/dist/gpu-raster/gpu-raster-buffer-to-texture.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-connected-components.cjs +420 -0
- package/dist/gpu-raster/gpu-raster-connected-components.d.ts +55 -0
- package/dist/gpu-raster/gpu-raster-connected-components.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-connected-components.js +412 -0
- package/dist/gpu-raster/gpu-raster-connected-components.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-contours.cjs +604 -0
- package/dist/gpu-raster/gpu-raster-contours.d.ts +95 -0
- package/dist/gpu-raster/gpu-raster-contours.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-contours.js +618 -0
- package/dist/gpu-raster/gpu-raster-contours.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-contrast.cjs +411 -0
- package/dist/gpu-raster/gpu-raster-contrast.d.ts +55 -0
- package/dist/gpu-raster/gpu-raster-contrast.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-contrast.js +418 -0
- package/dist/gpu-raster/gpu-raster-contrast.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-convolution.cjs +182 -0
- package/dist/gpu-raster/gpu-raster-convolution.d.ts +61 -0
- package/dist/gpu-raster/gpu-raster-convolution.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-convolution.js +175 -0
- package/dist/gpu-raster/gpu-raster-convolution.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-cross-tile-components.cjs +1020 -0
- package/dist/gpu-raster/gpu-raster-cross-tile-components.d.ts +85 -0
- package/dist/gpu-raster/gpu-raster-cross-tile-components.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-cross-tile-components.js +1002 -0
- package/dist/gpu-raster/gpu-raster-cross-tile-components.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-dense-components.cjs +311 -0
- package/dist/gpu-raster/gpu-raster-dense-components.d.ts +56 -0
- package/dist/gpu-raster/gpu-raster-dense-components.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-dense-components.js +297 -0
- package/dist/gpu-raster/gpu-raster-dense-components.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-edges.cjs +297 -0
- package/dist/gpu-raster/gpu-raster-edges.d.ts +88 -0
- package/dist/gpu-raster/gpu-raster-edges.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-edges.js +284 -0
- package/dist/gpu-raster/gpu-raster-edges.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-global-statistics.cjs +510 -0
- package/dist/gpu-raster/gpu-raster-global-statistics.d.ts +90 -0
- package/dist/gpu-raster/gpu-raster-global-statistics.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-global-statistics.js +484 -0
- package/dist/gpu-raster/gpu-raster-global-statistics.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-histogram.cjs +212 -0
- package/dist/gpu-raster/gpu-raster-histogram.d.ts +38 -0
- package/dist/gpu-raster/gpu-raster-histogram.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-histogram.js +212 -0
- package/dist/gpu-raster/gpu-raster-histogram.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-morphology.cjs +487 -0
- package/dist/gpu-raster/gpu-raster-morphology.d.ts +122 -0
- package/dist/gpu-raster/gpu-raster-morphology.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-morphology.js +478 -0
- package/dist/gpu-raster/gpu-raster-morphology.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-ndvi.cjs +66 -0
- package/dist/gpu-raster/gpu-raster-ndvi.d.ts +40 -0
- package/dist/gpu-raster/gpu-raster-ndvi.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-ndvi.js +50 -0
- package/dist/gpu-raster/gpu-raster-ndvi.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-neighborhood.cjs +330 -0
- package/dist/gpu-raster/gpu-raster-neighborhood.d.ts +62 -0
- package/dist/gpu-raster/gpu-raster-neighborhood.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-neighborhood.js +322 -0
- package/dist/gpu-raster/gpu-raster-neighborhood.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-overview.cjs +488 -0
- package/dist/gpu-raster/gpu-raster-overview.d.ts +115 -0
- package/dist/gpu-raster/gpu-raster-overview.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-overview.js +515 -0
- package/dist/gpu-raster/gpu-raster-overview.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-region-measurements.cjs +464 -0
- package/dist/gpu-raster/gpu-raster-region-measurements.d.ts +88 -0
- package/dist/gpu-raster/gpu-raster-region-measurements.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-region-measurements.js +450 -0
- package/dist/gpu-raster/gpu-raster-region-measurements.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-statistics.cjs +262 -0
- package/dist/gpu-raster/gpu-raster-statistics.d.ts +42 -0
- package/dist/gpu-raster/gpu-raster-statistics.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-statistics.js +246 -0
- package/dist/gpu-raster/gpu-raster-statistics.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-texture-to-buffer.cjs +182 -0
- package/dist/gpu-raster/gpu-raster-texture-to-buffer.d.ts +33 -0
- package/dist/gpu-raster/gpu-raster-texture-to-buffer.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-texture-to-buffer.js +176 -0
- package/dist/gpu-raster/gpu-raster-texture-to-buffer.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-threshold.cjs +383 -0
- package/dist/gpu-raster/gpu-raster-threshold.d.ts +72 -0
- package/dist/gpu-raster/gpu-raster-threshold.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-threshold.js +402 -0
- package/dist/gpu-raster/gpu-raster-threshold.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-tile-cache.cjs +622 -0
- package/dist/gpu-raster/gpu-raster-tile-cache.d.ts +151 -0
- package/dist/gpu-raster/gpu-raster-tile-cache.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-tile-cache.js +635 -0
- package/dist/gpu-raster/gpu-raster-tile-cache.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-tile-halo.cjs +440 -0
- package/dist/gpu-raster/gpu-raster-tile-halo.d.ts +121 -0
- package/dist/gpu-raster/gpu-raster-tile-halo.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-tile-halo.js +454 -0
- package/dist/gpu-raster/gpu-raster-tile-halo.js.map +1 -0
- package/dist/gpu-raster/gpu-raster-tile-source.cjs +387 -0
- package/dist/gpu-raster/gpu-raster-tile-source.d.ts +99 -0
- package/dist/gpu-raster/gpu-raster-tile-source.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster-tile-source.js +414 -0
- package/dist/gpu-raster/gpu-raster-tile-source.js.map +1 -0
- package/dist/gpu-raster/gpu-raster.cjs +97 -0
- package/dist/gpu-raster/gpu-raster.d.ts +34 -0
- package/dist/gpu-raster/gpu-raster.d.ts.map +1 -0
- package/dist/gpu-raster/gpu-raster.js +86 -0
- package/dist/gpu-raster/gpu-raster.js.map +1 -0
- package/dist/gpu-raster/index.cjs +144 -0
- package/dist/gpu-raster/index.cjs.map +6 -0
- package/dist/gpu-raster/index.d.ts +50 -0
- package/dist/gpu-raster/index.d.ts.map +1 -0
- package/dist/gpu-raster/index.js +28 -0
- package/dist/gpu-raster/index.js.map +1 -0
- package/dist/gpu-raster/raster-device-limits.cjs +112 -0
- package/dist/gpu-raster/raster-device-limits.d.ts +82 -0
- package/dist/gpu-raster/raster-device-limits.d.ts.map +1 -0
- package/dist/gpu-raster/raster-device-limits.js +106 -0
- package/dist/gpu-raster/raster-device-limits.js.map +1 -0
- package/dist/gpu-raster/raster-utils.cjs +253 -0
- package/dist/gpu-raster/raster-utils.d.ts +37 -0
- package/dist/gpu-raster/raster-utils.d.ts.map +1 -0
- package/dist/gpu-raster/raster-utils.js +227 -0
- package/dist/gpu-raster/raster-utils.js.map +1 -0
- package/dist/gpu-raster/types.cjs +15 -0
- package/dist/gpu-raster/types.d.ts +71 -0
- package/dist/gpu-raster/types.d.ts.map +1 -0
- package/dist/gpu-raster/types.js +5 -0
- package/dist/gpu-raster/types.js.map +1 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.cjs +178 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts +25 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts.map +1 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js +182 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js.map +1 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-operation.cjs +58 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-operation.d.ts +18 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-operation.d.ts.map +1 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-operation.js +36 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-operation.js.map +1 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-transfer.cjs +133 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-transfer.d.ts +40 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-transfer.d.ts.map +1 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-transfer.js +113 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-transfer.js.map +1 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-value.cjs +142 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-value.d.ts +87 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-value.d.ts.map +1 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-value.js +118 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-value.js.map +1 -0
- package/dist/gpu-simple-graph/gpu-simple-graph.cjs +268 -0
- package/dist/gpu-simple-graph/gpu-simple-graph.d.ts +80 -0
- package/dist/gpu-simple-graph/gpu-simple-graph.d.ts.map +1 -0
- package/dist/gpu-simple-graph/gpu-simple-graph.js +281 -0
- package/dist/gpu-simple-graph/gpu-simple-graph.js.map +1 -0
- package/dist/gpu-simple-graph/index.cjs +44 -0
- package/dist/gpu-simple-graph/index.cjs.map +6 -0
- package/dist/gpu-simple-graph/index.d.ts +9 -0
- package/dist/gpu-simple-graph/index.d.ts.map +1 -0
- package/dist/gpu-simple-graph/index.js +8 -0
- package/dist/gpu-simple-graph/index.js.map +1 -0
- package/dist/gpu-simulation/index.cjs +46 -0
- package/dist/gpu-simulation/index.cjs.map +6 -0
- package/dist/gpu-simulation/index.d.ts +5 -0
- package/dist/gpu-simulation/index.d.ts.map +1 -0
- package/dist/gpu-simulation/index.js +6 -0
- package/dist/gpu-simulation/index.js.map +1 -0
- package/dist/gpu-simulation/spectral-ocean-initial-spectrum.cjs +71 -0
- package/dist/gpu-simulation/spectral-ocean-initial-spectrum.d.ts +12 -0
- package/dist/gpu-simulation/spectral-ocean-initial-spectrum.d.ts.map +1 -0
- package/dist/gpu-simulation/spectral-ocean-initial-spectrum.js +55 -0
- package/dist/gpu-simulation/spectral-ocean-initial-spectrum.js.map +1 -0
- package/dist/gpu-simulation/spectral-ocean-simulation-shaders.cjs +208 -0
- package/dist/gpu-simulation/spectral-ocean-simulation-shaders.d.ts +9 -0
- package/dist/gpu-simulation/spectral-ocean-simulation-shaders.d.ts.map +1 -0
- package/dist/gpu-simulation/spectral-ocean-simulation-shaders.js +178 -0
- package/dist/gpu-simulation/spectral-ocean-simulation-shaders.js.map +1 -0
- package/dist/gpu-simulation/spectral-ocean-simulation.cjs +501 -0
- package/dist/gpu-simulation/spectral-ocean-simulation.d.ts +120 -0
- package/dist/gpu-simulation/spectral-ocean-simulation.d.ts.map +1 -0
- package/dist/gpu-simulation/spectral-ocean-simulation.js +490 -0
- package/dist/gpu-simulation/spectral-ocean-simulation.js.map +1 -0
- package/dist/gpu-simulation/volumetric-fire-simulation-shaders.cjs +997 -0
- package/dist/gpu-simulation/volumetric-fire-simulation-shaders.d.ts +46 -0
- package/dist/gpu-simulation/volumetric-fire-simulation-shaders.d.ts.map +1 -0
- package/dist/gpu-simulation/volumetric-fire-simulation-shaders.js +941 -0
- package/dist/gpu-simulation/volumetric-fire-simulation-shaders.js.map +1 -0
- package/dist/gpu-simulation/volumetric-fire-simulation.cjs +513 -0
- package/dist/gpu-simulation/volumetric-fire-simulation.d.ts +121 -0
- package/dist/gpu-simulation/volumetric-fire-simulation.d.ts.map +1 -0
- package/dist/gpu-simulation/volumetric-fire-simulation.js +510 -0
- package/dist/gpu-simulation/volumetric-fire-simulation.js.map +1 -0
- package/dist/gpu-sql/index.cjs +29 -0
- package/dist/gpu-sql/index.cjs.map +6 -0
- package/dist/gpu-sql/index.d.ts +3 -0
- package/dist/gpu-sql/index.d.ts.map +1 -0
- package/dist/gpu-sql/index.js +5 -0
- package/dist/gpu-sql/index.js.map +1 -0
- package/dist/gpu-sql/lu-sql.cjs +499 -0
- package/dist/gpu-sql/lu-sql.d.ts +36 -0
- package/dist/gpu-sql/lu-sql.d.ts.map +1 -0
- package/dist/gpu-sql/lu-sql.js +497 -0
- package/dist/gpu-sql/lu-sql.js.map +1 -0
- package/dist/gpu-tables/engine/gpu-input-schema.cjs +58 -0
- package/dist/gpu-tables/engine/gpu-input-schema.d.ts +52 -0
- package/dist/gpu-tables/engine/gpu-input-schema.d.ts.map +1 -0
- package/dist/gpu-tables/engine/gpu-input-schema.js +43 -0
- package/dist/gpu-tables/engine/gpu-input-schema.js.map +1 -0
- package/dist/gpu-tables/engine/gpu-renderable.cjs +43 -0
- package/dist/gpu-tables/engine/gpu-renderable.d.ts +16 -0
- package/dist/gpu-tables/engine/gpu-renderable.d.ts.map +1 -0
- package/dist/gpu-tables/engine/gpu-renderable.js +22 -0
- package/dist/gpu-tables/engine/gpu-renderable.js.map +1 -0
- package/dist/gpu-tables/engine/gpu-scene-adapters.cjs +220 -0
- package/dist/gpu-tables/engine/gpu-scene-adapters.d.ts +80 -0
- package/dist/gpu-tables/engine/gpu-scene-adapters.d.ts.map +1 -0
- package/dist/gpu-tables/engine/gpu-scene-adapters.js +214 -0
- package/dist/gpu-tables/engine/gpu-scene-adapters.js.map +1 -0
- package/dist/gpu-tables/engine/gpu-table-computation.cjs +168 -0
- package/dist/gpu-tables/engine/gpu-table-computation.d.ts +45 -0
- package/dist/gpu-tables/engine/gpu-table-computation.d.ts.map +1 -0
- package/dist/gpu-tables/engine/gpu-table-computation.js +158 -0
- package/dist/gpu-tables/engine/gpu-table-computation.js.map +1 -0
- package/dist/gpu-tables/engine/gpu-table-shader-bindings.cjs +374 -0
- package/dist/gpu-tables/engine/gpu-table-shader-bindings.d.ts +47 -0
- package/dist/gpu-tables/engine/gpu-table-shader-bindings.d.ts.map +1 -0
- package/dist/gpu-tables/engine/gpu-table-shader-bindings.js +382 -0
- package/dist/gpu-tables/engine/gpu-table-shader-bindings.js.map +1 -0
- package/dist/gpu-tables/index.cjs +64 -0
- package/dist/gpu-tables/index.cjs.map +6 -0
- package/dist/gpu-tables/index.d.ts +11 -0
- package/dist/gpu-tables/index.d.ts.map +1 -0
- package/dist/gpu-tables/index.js +14 -0
- package/dist/gpu-tables/index.js.map +1 -0
- package/dist/gpu-tables/table/gpu-record-batch.cjs +140 -0
- package/dist/gpu-tables/table/gpu-record-batch.d.ts +57 -0
- package/dist/gpu-tables/table/gpu-record-batch.d.ts.map +1 -0
- package/dist/gpu-tables/table/gpu-record-batch.js +122 -0
- package/dist/gpu-tables/table/gpu-record-batch.js.map +1 -0
- package/dist/gpu-tables/table/gpu-schema.cjs +32 -0
- package/dist/gpu-tables/table/gpu-schema.d.ts +46 -0
- package/dist/gpu-tables/table/gpu-schema.d.ts.map +1 -0
- package/dist/gpu-tables/table/gpu-schema.js +10 -0
- package/dist/gpu-tables/table/gpu-schema.js.map +1 -0
- package/dist/gpu-tables/table/gpu-table.cjs +689 -0
- package/dist/gpu-tables/table/gpu-table.d.ts +108 -0
- package/dist/gpu-tables/table/gpu-table.d.ts.map +1 -0
- package/dist/gpu-tables/table/gpu-table.js +712 -0
- package/dist/gpu-tables/table/gpu-table.js.map +1 -0
- package/dist/gpu-tables/utils/generated-buffer-batches.cjs +92 -0
- package/dist/gpu-tables/utils/generated-buffer-batches.d.ts +39 -0
- package/dist/gpu-tables/utils/generated-buffer-batches.d.ts.map +1 -0
- package/dist/gpu-tables/utils/generated-buffer-batches.js +77 -0
- package/dist/gpu-tables/utils/generated-buffer-batches.js.map +1 -0
- package/dist/gpu-tables/utils/gpu-table-buffer-planner.cjs +322 -0
- package/dist/gpu-tables/utils/gpu-table-buffer-planner.d.ts +208 -0
- package/dist/gpu-tables/utils/gpu-table-buffer-planner.d.ts.map +1 -0
- package/dist/gpu-tables/utils/gpu-table-buffer-planner.js +441 -0
- package/dist/gpu-tables/utils/gpu-table-buffer-planner.js.map +1 -0
- package/dist/gpu-timeseries/gpu-time-series-envelope.cjs +163 -0
- package/dist/gpu-timeseries/gpu-time-series-envelope.d.ts +30 -0
- package/dist/gpu-timeseries/gpu-time-series-envelope.d.ts.map +1 -0
- package/dist/gpu-timeseries/gpu-time-series-envelope.js +152 -0
- package/dist/gpu-timeseries/gpu-time-series-envelope.js.map +1 -0
- package/dist/gpu-timeseries/gpu-time-series.cjs +60 -0
- package/dist/gpu-timeseries/gpu-time-series.d.ts +23 -0
- package/dist/gpu-timeseries/gpu-time-series.d.ts.map +1 -0
- package/dist/gpu-timeseries/gpu-time-series.js +40 -0
- package/dist/gpu-timeseries/gpu-time-series.js.map +1 -0
- package/dist/gpu-timeseries/index.cjs +30 -0
- package/dist/gpu-timeseries/index.cjs.map +6 -0
- package/dist/gpu-timeseries/index.d.ts +5 -0
- package/dist/gpu-timeseries/index.d.ts.map +1 -0
- package/dist/gpu-timeseries/index.js +6 -0
- package/dist/gpu-timeseries/index.js.map +1 -0
- package/dist/gpu-trace/gpu-trace-aggregation.cjs +104 -0
- package/dist/gpu-trace/gpu-trace-aggregation.d.ts +64 -0
- package/dist/gpu-trace/gpu-trace-aggregation.d.ts.map +1 -0
- package/dist/gpu-trace/gpu-trace-aggregation.js +91 -0
- package/dist/gpu-trace/gpu-trace-aggregation.js.map +1 -0
- package/dist/gpu-trace/gpu-trace-analytics-output.cjs +133 -0
- package/dist/gpu-trace/gpu-trace-analytics-output.d.ts +51 -0
- package/dist/gpu-trace/gpu-trace-analytics-output.d.ts.map +1 -0
- package/dist/gpu-trace/gpu-trace-analytics-output.js +120 -0
- package/dist/gpu-trace/gpu-trace-analytics-output.js.map +1 -0
- package/dist/gpu-trace/gpu-trace-anomaly-scoring.cjs +474 -0
- package/dist/gpu-trace/gpu-trace-anomaly-scoring.d.ts +68 -0
- package/dist/gpu-trace/gpu-trace-anomaly-scoring.d.ts.map +1 -0
- package/dist/gpu-trace/gpu-trace-anomaly-scoring.js +453 -0
- package/dist/gpu-trace/gpu-trace-anomaly-scoring.js.map +1 -0
- package/dist/gpu-trace/gpu-trace-comparison.cjs +474 -0
- package/dist/gpu-trace/gpu-trace-comparison.d.ts +69 -0
- package/dist/gpu-trace/gpu-trace-comparison.d.ts.map +1 -0
- package/dist/gpu-trace/gpu-trace-comparison.js +440 -0
- package/dist/gpu-trace/gpu-trace-comparison.js.map +1 -0
- package/dist/gpu-trace/gpu-trace-critical-path.cjs +626 -0
- package/dist/gpu-trace/gpu-trace-critical-path.d.ts +61 -0
- package/dist/gpu-trace/gpu-trace-critical-path.d.ts.map +1 -0
- package/dist/gpu-trace/gpu-trace-critical-path.js +596 -0
- package/dist/gpu-trace/gpu-trace-critical-path.js.map +1 -0
- package/dist/gpu-trace/gpu-trace-interaction.cjs +434 -0
- package/dist/gpu-trace/gpu-trace-interaction.d.ts +194 -0
- package/dist/gpu-trace/gpu-trace-interaction.d.ts.map +1 -0
- package/dist/gpu-trace/gpu-trace-interaction.js +454 -0
- package/dist/gpu-trace/gpu-trace-interaction.js.map +1 -0
- package/dist/gpu-trace/gpu-trace-lane-index-builder.cjs +524 -0
- package/dist/gpu-trace/gpu-trace-lane-index-builder.d.ts +66 -0
- package/dist/gpu-trace/gpu-trace-lane-index-builder.d.ts.map +1 -0
- package/dist/gpu-trace/gpu-trace-lane-index-builder.js +496 -0
- package/dist/gpu-trace/gpu-trace-lane-index-builder.js.map +1 -0
- package/dist/gpu-trace/gpu-trace-mipmap-boundaries.cjs +325 -0
- package/dist/gpu-trace/gpu-trace-mipmap-boundaries.d.ts +61 -0
- package/dist/gpu-trace/gpu-trace-mipmap-boundaries.d.ts.map +1 -0
- package/dist/gpu-trace/gpu-trace-mipmap-boundaries.js +312 -0
- package/dist/gpu-trace/gpu-trace-mipmap-boundaries.js.map +1 -0
- package/dist/gpu-trace/gpu-trace-picking.cjs +63 -0
- package/dist/gpu-trace/gpu-trace-picking.d.ts +30 -0
- package/dist/gpu-trace/gpu-trace-picking.d.ts.map +1 -0
- package/dist/gpu-trace/gpu-trace-picking.js +68 -0
- package/dist/gpu-trace/gpu-trace-picking.js.map +1 -0
- package/dist/gpu-trace/gpu-trace-pixel-mipmap.cjs +787 -0
- package/dist/gpu-trace/gpu-trace-pixel-mipmap.d.ts +67 -0
- package/dist/gpu-trace/gpu-trace-pixel-mipmap.d.ts.map +1 -0
- package/dist/gpu-trace/gpu-trace-pixel-mipmap.js +802 -0
- package/dist/gpu-trace/gpu-trace-pixel-mipmap.js.map +1 -0
- package/dist/gpu-trace/gpu-trace-range-maximum-index.cjs +342 -0
- package/dist/gpu-trace/gpu-trace-range-maximum-index.d.ts +50 -0
- package/dist/gpu-trace/gpu-trace-range-maximum-index.d.ts.map +1 -0
- package/dist/gpu-trace/gpu-trace-range-maximum-index.js +334 -0
- package/dist/gpu-trace/gpu-trace-range-maximum-index.js.map +1 -0
- package/dist/gpu-trace/gpu-trace-scene.cjs +320 -0
- package/dist/gpu-trace/gpu-trace-scene.d.ts +233 -0
- package/dist/gpu-trace/gpu-trace-scene.d.ts.map +1 -0
- package/dist/gpu-trace/gpu-trace-scene.js +366 -0
- package/dist/gpu-trace/gpu-trace-scene.js.map +1 -0
- package/dist/gpu-trace/gpu-trace-temporal-index-builder.cjs +287 -0
- package/dist/gpu-trace/gpu-trace-temporal-index-builder.d.ts +59 -0
- package/dist/gpu-trace/gpu-trace-temporal-index-builder.d.ts.map +1 -0
- package/dist/gpu-trace/gpu-trace-temporal-index-builder.js +281 -0
- package/dist/gpu-trace/gpu-trace-temporal-index-builder.js.map +1 -0
- package/dist/gpu-trace/gpu-trace-temporal-index.cjs +692 -0
- package/dist/gpu-trace/gpu-trace-temporal-index.d.ts +97 -0
- package/dist/gpu-trace/gpu-trace-temporal-index.d.ts.map +1 -0
- package/dist/gpu-trace/gpu-trace-temporal-index.js +687 -0
- package/dist/gpu-trace/gpu-trace-temporal-index.js.map +1 -0
- package/dist/gpu-trace/gpu-trace-time-buckets.cjs +435 -0
- package/dist/gpu-trace/gpu-trace-time-buckets.d.ts +67 -0
- package/dist/gpu-trace/gpu-trace-time-buckets.d.ts.map +1 -0
- package/dist/gpu-trace/gpu-trace-time-buckets.js +466 -0
- package/dist/gpu-trace/gpu-trace-time-buckets.js.map +1 -0
- package/dist/gpu-trace/index.cjs +111 -0
- package/dist/gpu-trace/index.cjs.map +6 -0
- package/dist/gpu-trace/index.d.ts +30 -0
- package/dist/gpu-trace/index.d.ts.map +1 -0
- package/dist/gpu-trace/index.js +19 -0
- package/dist/gpu-trace/index.js.map +1 -0
- package/dist/gpu-vector-search/embedding-matrix.cjs +192 -0
- package/dist/gpu-vector-search/embedding-matrix.d.ts +72 -0
- package/dist/gpu-vector-search/embedding-matrix.d.ts.map +1 -0
- package/dist/gpu-vector-search/embedding-matrix.js +213 -0
- package/dist/gpu-vector-search/embedding-matrix.js.map +1 -0
- package/dist/gpu-vector-search/gpu-clustering-utils.cjs +218 -0
- package/dist/gpu-vector-search/gpu-clustering-utils.d.ts +42 -0
- package/dist/gpu-vector-search/gpu-clustering-utils.d.ts.map +1 -0
- package/dist/gpu-vector-search/gpu-clustering-utils.js +211 -0
- package/dist/gpu-vector-search/gpu-clustering-utils.js.map +1 -0
- package/dist/gpu-vector-search/gpu-ivf-flat-index.cjs +1095 -0
- package/dist/gpu-vector-search/gpu-ivf-flat-index.d.ts +95 -0
- package/dist/gpu-vector-search/gpu-ivf-flat-index.d.ts.map +1 -0
- package/dist/gpu-vector-search/gpu-ivf-flat-index.js +1159 -0
- package/dist/gpu-vector-search/gpu-ivf-flat-index.js.map +1 -0
- package/dist/gpu-vector-search/gpu-k-means.cjs +599 -0
- package/dist/gpu-vector-search/gpu-k-means.d.ts +55 -0
- package/dist/gpu-vector-search/gpu-k-means.d.ts.map +1 -0
- package/dist/gpu-vector-search/gpu-k-means.js +601 -0
- package/dist/gpu-vector-search/gpu-k-means.js.map +1 -0
- package/dist/gpu-vector-search/gpu-similarity-search.cjs +781 -0
- package/dist/gpu-vector-search/gpu-similarity-search.d.ts +54 -0
- package/dist/gpu-vector-search/gpu-similarity-search.d.ts.map +1 -0
- package/dist/gpu-vector-search/gpu-similarity-search.js +785 -0
- package/dist/gpu-vector-search/gpu-similarity-search.js.map +1 -0
- package/dist/gpu-vector-search/index.cjs +38 -0
- package/dist/gpu-vector-search/index.cjs.map +6 -0
- package/dist/gpu-vector-search/index.d.ts +8 -0
- package/dist/gpu-vector-search/index.d.ts.map +1 -0
- package/dist/gpu-vector-search/index.js +9 -0
- package/dist/gpu-vector-search/index.js.map +1 -0
- package/dist/gpu-vector-search/types.cjs +15 -0
- package/dist/gpu-vector-search/types.d.ts +63 -0
- package/dist/gpu-vector-search/types.d.ts.map +1 -0
- package/dist/gpu-vector-search/types.js +6 -0
- package/dist/gpu-vector-search/types.js.map +1 -0
- package/dist/index.cjs +75 -0
- package/dist/index.cjs.map +6 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/lucim/gpu-volume-connected-components.cjs +443 -0
- package/dist/lucim/gpu-volume-connected-components.d.ts +55 -0
- package/dist/lucim/gpu-volume-connected-components.d.ts.map +1 -0
- package/dist/lucim/gpu-volume-connected-components.js +429 -0
- package/dist/lucim/gpu-volume-connected-components.js.map +1 -0
- package/dist/lucim/gpu-volume-morphology.cjs +503 -0
- package/dist/lucim/gpu-volume-morphology.d.ts +121 -0
- package/dist/lucim/gpu-volume-morphology.d.ts.map +1 -0
- package/dist/lucim/gpu-volume-morphology.js +492 -0
- package/dist/lucim/gpu-volume-morphology.js.map +1 -0
- package/dist/lucim/gpu-volume-region-measurements.cjs +307 -0
- package/dist/lucim/gpu-volume-region-measurements.d.ts +49 -0
- package/dist/lucim/gpu-volume-region-measurements.d.ts.map +1 -0
- package/dist/lucim/gpu-volume-region-measurements.js +286 -0
- package/dist/lucim/gpu-volume-region-measurements.js.map +1 -0
- package/dist/lucim/gpu-volume-threshold.cjs +218 -0
- package/dist/lucim/gpu-volume-threshold.d.ts +45 -0
- package/dist/lucim/gpu-volume-threshold.d.ts.map +1 -0
- package/dist/lucim/gpu-volume-threshold.js +221 -0
- package/dist/lucim/gpu-volume-threshold.js.map +1 -0
- package/dist/lucim/gpu-volume.cjs +95 -0
- package/dist/lucim/gpu-volume.d.ts +34 -0
- package/dist/lucim/gpu-volume.d.ts.map +1 -0
- package/dist/lucim/gpu-volume.js +96 -0
- package/dist/lucim/gpu-volume.js.map +1 -0
- package/dist/lucim/index.cjs +47 -0
- package/dist/lucim/index.cjs.map +6 -0
- package/dist/lucim/index.d.ts +12 -0
- package/dist/lucim/index.d.ts.map +1 -0
- package/dist/lucim/index.js +9 -0
- package/dist/lucim/index.js.map +1 -0
- package/dist/lucim/types.cjs +15 -0
- package/dist/lucim/types.d.ts +35 -0
- package/dist/lucim/types.d.ts.map +1 -0
- package/dist/lucim/types.js +5 -0
- package/dist/lucim/types.js.map +1 -0
- package/dist/lucim/volume-utils.cjs +193 -0
- package/dist/lucim/volume-utils.d.ts +30 -0
- package/dist/lucim/volume-utils.d.ts.map +1 -0
- package/dist/lucim/volume-utils.js +167 -0
- package/dist/lucim/volume-utils.js.map +1 -0
- package/dist/utils/assemble-compute-kernel.cjs +46 -0
- package/dist/utils/assemble-compute-kernel.d.ts +11 -0
- package/dist/utils/assemble-compute-kernel.d.ts.map +1 -0
- package/dist/utils/assemble-compute-kernel.js +24 -0
- package/dist/utils/assemble-compute-kernel.js.map +1 -0
- package/dist/utils/gpu-spatial-operation.cjs +87 -0
- package/dist/utils/gpu-spatial-operation.d.ts +13 -0
- package/dist/utils/gpu-spatial-operation.d.ts.map +1 -0
- package/dist/utils/gpu-spatial-operation.js +81 -0
- package/dist/utils/gpu-spatial-operation.js.map +1 -0
- package/package.json +222 -4
- package/src/arrow/dggs/dggs-gpu-polygons.ts +820 -0
- package/src/arrow/geoarrow/arrow-geoarrow-adapter.ts +519 -0
- package/src/arrow/geoarrow/arrow-geoarrow-conversion.ts +415 -0
- package/src/arrow/geoarrow/arrow-polygon-tessellation.ts +369 -0
- package/src/arrow/gpu/arrow-gpu-analytics-adapters.ts +474 -0
- package/src/arrow/gpu/arrow-gpu-analytics-readback.ts +294 -0
- package/src/arrow/gpu/arrow-gpu-table-adapters.ts +378 -0
- package/src/arrow/gpu/arrow-gpu-table-conversion.ts +324 -0
- package/src/arrow/gpu/arrow-input-schema.ts +98 -0
- package/src/arrow/index.ts +79 -0
- package/src/arrow/internal.ts +23 -0
- package/src/experimental/index.ts +6 -0
- package/src/experimental/models/index.ts +31 -0
- package/src/experimental/models/path/gpu/gpu-path-expansion.ts +321 -0
- package/src/experimental/models/path/gpu/path-storage-gpu-inputs.ts +246 -0
- package/src/experimental/models/polygon/polygon-gpu-inputs.ts +102 -0
- package/src/experimental/simulation/PARCELS-LICENSE.txt +19 -0
- package/src/experimental/simulation/README.md +99 -0
- package/src/experimental/simulation/SCIENTIFIC-FLOW.md +120 -0
- package/src/experimental/simulation/flow-field-atlas.ts +85 -0
- package/src/experimental/simulation/flow-particle-field.ts +45 -0
- package/src/experimental/simulation/flow-particle-shaders.ts +160 -0
- package/src/experimental/simulation/flow-particle-simulation.ts +259 -0
- package/src/experimental/simulation/index.ts +50 -0
- package/src/experimental/simulation/mls-mpm-fluid-simulation-shaders.ts +365 -0
- package/src/experimental/simulation/mls-mpm-fluid-simulation.ts +1077 -0
- package/src/experimental/simulation/scientific-flow-compute.ts +289 -0
- package/src/experimental/simulation/scientific-flow-field.ts +121 -0
- package/src/experimental/simulation/scientific-flow-graph.ts +202 -0
- package/src/experimental/simulation/scientific-flow-rk45-shaders.ts +137 -0
- package/src/experimental/simulation/scientific-flow-sampling-shaders.ts +44 -0
- package/src/experimental/simulation/scientific-flow-tracer.ts +482 -0
- package/src/geospatial/geospatial-utils.ts +590 -0
- package/src/geospatial/gpu-haversine-distance.ts +203 -0
- package/src/geospatial/gpu-pairwise-point-distance.ts +140 -0
- package/src/geospatial/gpu-pairwise-point-in-polygon.ts +499 -0
- package/src/geospatial/gpu-pairwise-point-linestring-nearest.ts +788 -0
- package/src/geospatial/gpu-pairwise-point-segment-distance.ts +254 -0
- package/src/geospatial/gpu-point-spatial-query.ts +1046 -0
- package/src/geospatial/gpu-sinusoidal-projection.ts +141 -0
- package/src/geospatial/gpu-spatial-query-types.ts +28 -0
- package/src/geospatial/index.ts +52 -0
- package/src/geospatial/types.ts +29 -0
- package/src/gpu-a5/gpu-a5-cell-projection.ts +18 -0
- package/src/gpu-a5/index.ts +10 -0
- package/src/gpu-core/dispatch-command-buffer.ts +155 -0
- package/src/gpu-core/draw-command-buffer.ts +281 -0
- package/src/gpu-core/gpu-adaptive-spmv.ts +359 -0
- package/src/gpu-core/gpu-ancestor-projection.ts +374 -0
- package/src/gpu-core/gpu-batch-hash-index.ts +229 -0
- package/src/gpu-core/gpu-batch-hash-join.ts +290 -0
- package/src/gpu-core/gpu-batch-sort.ts +161 -0
- package/src/gpu-core/gpu-bvh-query.ts +580 -0
- package/src/gpu-core/gpu-bvh.ts +666 -0
- package/src/gpu-core/gpu-byte-range-gather.ts +323 -0
- package/src/gpu-core/gpu-chunk-utils.ts +202 -0
- package/src/gpu-core/gpu-chunked-indexed-scatter.ts +685 -0
- package/src/gpu-core/gpu-command-dispatch-metadata.ts +45 -0
- package/src/gpu-core/gpu-command-graph-autotuner.ts +417 -0
- package/src/gpu-core/gpu-command-graph-budget-controller.ts +229 -0
- package/src/gpu-core/gpu-command-graph-compiler.ts +992 -0
- package/src/gpu-core/gpu-command-graph-inspector.ts +596 -0
- package/src/gpu-core/gpu-command-graph-lowering-scope.ts +91 -0
- package/src/gpu-core/gpu-command-graph-types.ts +873 -0
- package/src/gpu-core/gpu-command-graph.ts +2526 -0
- package/src/gpu-core/gpu-command-node.ts +78 -0
- package/src/gpu-core/gpu-compaction.ts +431 -0
- package/src/gpu-core/gpu-conjugate-gradient-program.ts +201 -0
- package/src/gpu-core/gpu-control-flow-operation.ts +75 -0
- package/src/gpu-core/gpu-convolution-benchmark.ts +448 -0
- package/src/gpu-core/gpu-convolution.ts +1141 -0
- package/src/gpu-core/gpu-coo-to-csr.ts +136 -0
- package/src/gpu-core/gpu-dense-utils.ts +204 -0
- package/src/gpu-core/gpu-dispatch-utils.ts +65 -0
- package/src/gpu-core/gpu-dot-product-scalar.ts +89 -0
- package/src/gpu-core/gpu-elementwise-scalar.ts +176 -0
- package/src/gpu-core/gpu-elementwise.ts +309 -0
- package/src/gpu-core/gpu-fft-utils.ts +69 -0
- package/src/gpu-core/gpu-fft1d-benchmark.ts +269 -0
- package/src/gpu-core/gpu-fft1d.ts +673 -0
- package/src/gpu-core/gpu-fft2d-shaders.ts +87 -0
- package/src/gpu-core/gpu-fft2d.ts +507 -0
- package/src/gpu-core/gpu-finite-difference-2d.ts +282 -0
- package/src/gpu-core/gpu-finite-difference-3d.ts +284 -0
- package/src/gpu-core/gpu-finite-difference-utils.ts +341 -0
- package/src/gpu-core/gpu-flag-offsets.ts +195 -0
- package/src/gpu-core/gpu-galloping-search-chunks.ts +200 -0
- package/src/gpu-core/gpu-galloping-search.ts +507 -0
- package/src/gpu-core/gpu-gather.ts +307 -0
- package/src/gpu-core/gpu-graph-compiler.ts +548 -0
- package/src/gpu-core/gpu-graph-inspector.ts +43 -0
- package/src/gpu-core/gpu-graph-lowering.ts +68 -0
- package/src/gpu-core/gpu-graph-traversal.ts +912 -0
- package/src/gpu-core/gpu-graph-validation.ts +66 -0
- package/src/gpu-core/gpu-graph-value.ts +111 -0
- package/src/gpu-core/gpu-graph.ts +115 -0
- package/src/gpu-core/gpu-grid-aggregation.ts +574 -0
- package/src/gpu-core/gpu-grid-binning.ts +365 -0
- package/src/gpu-core/gpu-grid-index-internals.ts +305 -0
- package/src/gpu-core/gpu-grid-index-query.ts +534 -0
- package/src/gpu-core/gpu-grid-index.ts +208 -0
- package/src/gpu-core/gpu-group-aggregation.ts +794 -0
- package/src/gpu-core/gpu-hash-index.ts +828 -0
- package/src/gpu-core/gpu-hash-join.ts +579 -0
- package/src/gpu-core/gpu-hierarchy-layout.ts +330 -0
- package/src/gpu-core/gpu-histogram.ts +855 -0
- package/src/gpu-core/gpu-incremental-execution.ts +218 -0
- package/src/gpu-core/gpu-index-picking-target.ts +452 -0
- package/src/gpu-core/gpu-indexed-range-compaction.ts +1163 -0
- package/src/gpu-core/gpu-jacobi-preconditioner.ts +120 -0
- package/src/gpu-core/gpu-lz-byte-batch-decompressor.ts +308 -0
- package/src/gpu-core/gpu-lz-byte-decompressor.ts +386 -0
- package/src/gpu-core/gpu-mask.ts +266 -0
- package/src/gpu-core/gpu-matmul.ts +178 -0
- package/src/gpu-core/gpu-matvec.ts +134 -0
- package/src/gpu-core/gpu-operation.ts +120 -0
- package/src/gpu-core/gpu-pcg.ts +330 -0
- package/src/gpu-core/gpu-planning-heap.ts +47 -0
- package/src/gpu-core/gpu-point-spatial-filter.ts +420 -0
- package/src/gpu-core/gpu-predicate-conjunction.ts +71 -0
- package/src/gpu-core/gpu-readback-ring.ts +261 -0
- package/src/gpu-core/gpu-reduction-strategy.ts +84 -0
- package/src/gpu-core/gpu-reduction-substrate.ts +227 -0
- package/src/gpu-core/gpu-reduction.ts +758 -0
- package/src/gpu-core/gpu-resource-preview.ts +80 -0
- package/src/gpu-core/gpu-run-length-encode.ts +211 -0
- package/src/gpu-core/gpu-scalar-dispatch-gate.ts +125 -0
- package/src/gpu-core/gpu-scalar-literal.ts +76 -0
- package/src/gpu-core/gpu-scalar-operation.ts +169 -0
- package/src/gpu-core/gpu-scalar.ts +108 -0
- package/src/gpu-core/gpu-scan.ts +955 -0
- package/src/gpu-core/gpu-scatter.ts +193 -0
- package/src/gpu-core/gpu-scene-draw-generation.ts +640 -0
- package/src/gpu-core/gpu-scene-resource-groups.ts +445 -0
- package/src/gpu-core/gpu-scene.ts +710 -0
- package/src/gpu-core/gpu-segment-offsets.ts +352 -0
- package/src/gpu-core/gpu-segmented-bvh.ts +544 -0
- package/src/gpu-core/gpu-segmented-layout.ts +468 -0
- package/src/gpu-core/gpu-segmented-reduction.ts +187 -0
- package/src/gpu-core/gpu-segmented-scan.ts +123 -0
- package/src/gpu-core/gpu-segmented-sort.ts +508 -0
- package/src/gpu-core/gpu-semantic-scalar-operation.ts +100 -0
- package/src/gpu-core/gpu-semantic-spmv.ts +69 -0
- package/src/gpu-core/gpu-semantic-state-operation.ts +20 -0
- package/src/gpu-core/gpu-semantic-vector-operation.ts +48 -0
- package/src/gpu-core/gpu-sort-chunks.ts +124 -0
- package/src/gpu-core/gpu-sort.ts +1002 -0
- package/src/gpu-core/gpu-spatial-query-benchmark.ts +310 -0
- package/src/gpu-core/gpu-spatial-utils.ts +83 -0
- package/src/gpu-core/gpu-spmv-strategy.ts +95 -0
- package/src/gpu-core/gpu-strategy.ts +75 -0
- package/src/gpu-core/gpu-subgroup-utils.ts +82 -0
- package/src/gpu-core/gpu-text-selection.ts +336 -0
- package/src/gpu-core/gpu-texture-history.ts +100 -0
- package/src/gpu-core/gpu-transient-lifetime-planner.ts +95 -0
- package/src/gpu-core/gpu-transpose-benchmark.ts +343 -0
- package/src/gpu-core/gpu-transpose.ts +426 -0
- package/src/gpu-core/gpu-uint32-gather.ts +35 -0
- package/src/gpu-core/gpu-uint64-scan.ts +239 -0
- package/src/gpu-core/gpu-value-arena-inspector.ts +53 -0
- package/src/gpu-core/gpu-value-arena.ts +114 -0
- package/src/gpu-core/gpu-virtual-geometry-selection.ts +677 -0
- package/src/gpu-core/gpu-visibility-workflow.ts +354 -0
- package/src/gpu-core/gpu-workgroup-reduction-benchmark.ts +363 -0
- package/src/gpu-core/gpu-workgroup-scan-benchmark.ts +407 -0
- package/src/gpu-core/graph-data-view-utils.ts +218 -0
- package/src/gpu-core/graph-vector-view-utils.ts +69 -0
- package/src/gpu-core/index.ts +655 -0
- package/src/gpu-core/utils/bound-kernel.ts +23 -0
- package/src/gpu-crossfilter/README.md +146 -0
- package/src/gpu-crossfilter/gpu-crossfilter.ts +568 -0
- package/src/gpu-crossfilter/gpu-selection.ts +470 -0
- package/src/gpu-crossfilter/index.ts +25 -0
- package/src/gpu-dataframe/gpu-analytics-compiler-utils.ts +321 -0
- package/src/gpu-dataframe/gpu-data-frame-query.ts +461 -0
- package/src/gpu-dataframe/gpu-data-frame.ts +663 -0
- package/src/gpu-dataframe/gpu-expression-shader.ts +530 -0
- package/src/gpu-dataframe/gpu-expression.ts +309 -0
- package/src/gpu-dataframe/gpu-global-aggregation-compiler.ts +436 -0
- package/src/gpu-dataframe/gpu-global-aggregation-query.ts +182 -0
- package/src/gpu-dataframe/gpu-global-sort-compiler.ts +564 -0
- package/src/gpu-dataframe/gpu-group-aggregation-compiler.ts +527 -0
- package/src/gpu-dataframe/gpu-group-by-query.ts +267 -0
- package/src/gpu-dataframe/gpu-histogram-compiler.ts +194 -0
- package/src/gpu-dataframe/gpu-histogram-query.ts +151 -0
- package/src/gpu-dataframe/gpu-join-compiler.ts +964 -0
- package/src/gpu-dataframe/gpu-join-query.ts +312 -0
- package/src/gpu-dataframe/gpu-query-compiler.ts +826 -0
- package/src/gpu-dataframe/gpu-sort-compiler.ts +471 -0
- package/src/gpu-dataframe/gpu-sort-query.ts +183 -0
- package/src/gpu-dataframe/index.ts +65 -0
- package/src/gpu-dggs/benchmarks.ts +10 -0
- package/src/gpu-dggs/gpu-dggs-cell-projection-benchmark.ts +378 -0
- package/src/gpu-dggs/gpu-dggs-cell-projection.ts +233 -0
- package/src/gpu-dggs/index.ts +12 -0
- package/src/gpu-effects/fft-bloom-shaders.ts +290 -0
- package/src/gpu-effects/fft-bloom.ts +905 -0
- package/src/gpu-effects/index.ts +21 -0
- package/src/gpu-geometry/gpu-mesh-normals.ts +80 -0
- package/src/gpu-geometry/gpu-mesh-smoothing.ts +58 -0
- package/src/gpu-geometry/index.ts +8 -0
- package/src/gpu-graph/index.ts +53 -0
- package/src/gpu-graph-algorithms/README.md +158 -0
- package/src/gpu-graph-algorithms/benchmarks.ts +16 -0
- package/src/gpu-graph-algorithms/gpu-graph-benchmark-data.ts +944 -0
- package/src/gpu-graph-algorithms/gpu-graph-benchmark.ts +850 -0
- package/src/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.ts +418 -0
- package/src/gpu-graph-algorithms/gpu-graph-breadth-first-search.ts +256 -0
- package/src/gpu-graph-algorithms/gpu-graph-connected-components-internals.ts +370 -0
- package/src/gpu-graph-algorithms/gpu-graph-connected-components.ts +165 -0
- package/src/gpu-graph-algorithms/gpu-graph-core-number-internals.ts +543 -0
- package/src/gpu-graph-algorithms/gpu-graph-core-number.ts +180 -0
- package/src/gpu-graph-algorithms/gpu-graph-degree-internals.ts +120 -0
- package/src/gpu-graph-algorithms/gpu-graph-degree.ts +147 -0
- package/src/gpu-graph-algorithms/gpu-graph-force-layout-internals.ts +516 -0
- package/src/gpu-graph-algorithms/gpu-graph-force-layout.ts +267 -0
- package/src/gpu-graph-algorithms/gpu-graph-label-propagation-internals.ts +467 -0
- package/src/gpu-graph-algorithms/gpu-graph-label-propagation.ts +174 -0
- package/src/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.ts +319 -0
- package/src/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.ts +180 -0
- package/src/gpu-graph-algorithms/gpu-graph-modularity-internals.ts +534 -0
- package/src/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.ts +1054 -0
- package/src/gpu-graph-algorithms/gpu-graph-modularity-optimization.ts +238 -0
- package/src/gpu-graph-algorithms/gpu-graph-modularity.ts +181 -0
- package/src/gpu-graph-algorithms/gpu-graph-page-rank-internals.ts +619 -0
- package/src/gpu-graph-algorithms/gpu-graph-page-rank.ts +178 -0
- package/src/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.ts +723 -0
- package/src/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.ts +234 -0
- package/src/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.ts +738 -0
- package/src/gpu-graph-algorithms/gpu-graph-spatial-force-layout.ts +246 -0
- package/src/gpu-graph-algorithms/gpu-graph-topology-internals.ts +727 -0
- package/src/gpu-graph-algorithms/gpu-graph-topology.ts +229 -0
- package/src/gpu-graph-algorithms/gpu-graph.ts +229 -0
- package/src/gpu-graph-algorithms/index.ts +50 -0
- package/src/gpu-h3/gpu-h3-cell-projection.ts +24 -0
- package/src/gpu-h3/index.ts +10 -0
- package/src/gpu-parse/README.md +38 -0
- package/src/gpu-parse/compression/gpu-lz4-raw-decompressor.ts +66 -0
- package/src/gpu-parse/compression/gpu-snappy-decompressor.ts +48 -0
- package/src/gpu-parse/compression/lz4-raw-plan.ts +99 -0
- package/src/gpu-parse/compression/snappy-plan.ts +162 -0
- package/src/gpu-parse/index.ts +196 -0
- package/src/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.ts +182 -0
- package/src/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.ts +87 -0
- package/src/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.ts +252 -0
- package/src/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.ts +243 -0
- package/src/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.ts +55 -0
- package/src/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.ts +61 -0
- package/src/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.ts +262 -0
- package/src/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.ts +281 -0
- package/src/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.ts +443 -0
- package/src/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.ts +50 -0
- package/src/gpu-parse/parquet/gpu-parquet-dictionary-decoder.ts +256 -0
- package/src/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.ts +406 -0
- package/src/gpu-parse/parquet/gpu-parquet-encoded-page-batch.ts +709 -0
- package/src/gpu-parse/parquet/gpu-parquet-level-layout.ts +268 -0
- package/src/gpu-parse/parquet/gpu-parquet-nested-column-layout.ts +441 -0
- package/src/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.ts +170 -0
- package/src/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.ts +42 -0
- package/src/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.ts +279 -0
- package/src/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.ts +60 -0
- package/src/gpu-parse/parquet/parquet-column-decode-plan.ts +101 -0
- package/src/gpu-parse/parquet/parquet-delta-binary-packed-int64.ts +149 -0
- package/src/gpu-parse/parquet/parquet-delta-binary-packed.ts +132 -0
- package/src/gpu-parse/parquet/parquet-delta-byte-array.ts +59 -0
- package/src/gpu-parse/parquet/parquet-delta-length-byte-array.ts +27 -0
- package/src/gpu-parse/parquet/parquet-encoded-page-batch.ts +1320 -0
- package/src/gpu-parse/parquet/parquet-plain-byte-array.ts +64 -0
- package/src/gpu-parse/parquet/parquet-rle-bit-packed.ts +93 -0
- package/src/gpu-parse/parquet/parquet-rle-framing.ts +112 -0
- package/src/gpu-physics/README.md +42 -0
- package/src/gpu-physics/gpu-physics-batch.ts +351 -0
- package/src/gpu-physics/gpu-physics-ensemble.ts +208 -0
- package/src/gpu-physics/gpu-rigid-body-world.ts +3040 -0
- package/src/gpu-physics/gpu-sphere-world.ts +1255 -0
- package/src/gpu-physics/index.ts +118 -0
- package/src/gpu-physics/joint-types.ts +22 -0
- package/src/gpu-physics/rigid-body-bounds-shaders.ts +50 -0
- package/src/gpu-physics/rigid-body-broad-phase.ts +428 -0
- package/src/gpu-physics/rigid-body-cache-shaders.ts +108 -0
- package/src/gpu-physics/rigid-body-capacity.ts +125 -0
- package/src/gpu-physics/rigid-body-contact-features.ts +72 -0
- package/src/gpu-physics/rigid-body-continuous.ts +410 -0
- package/src/gpu-physics/rigid-body-convex-continuous-shader.ts +535 -0
- package/src/gpu-physics/rigid-body-convex-shaders.ts +218 -0
- package/src/gpu-physics/rigid-body-diagnostics.ts +155 -0
- package/src/gpu-physics/rigid-body-ensemble-layout.ts +38 -0
- package/src/gpu-physics/rigid-body-ensemble-reset.ts +141 -0
- package/src/gpu-physics/rigid-body-ensemble-shaders.ts +157 -0
- package/src/gpu-physics/rigid-body-ensemble-transaction.ts +220 -0
- package/src/gpu-physics/rigid-body-events.ts +94 -0
- package/src/gpu-physics/rigid-body-general-joints.ts +132 -0
- package/src/gpu-physics/rigid-body-geometry.ts +79 -0
- package/src/gpu-physics/rigid-body-joints.ts +285 -0
- package/src/gpu-physics/rigid-body-journal.ts +131 -0
- package/src/gpu-physics/rigid-body-mesh-query-shaders.ts +98 -0
- package/src/gpu-physics/rigid-body-mesh.ts +296 -0
- package/src/gpu-physics/rigid-body-orientation.ts +39 -0
- package/src/gpu-physics/rigid-body-origin.ts +74 -0
- package/src/gpu-physics/rigid-body-parallel-shaders.ts +225 -0
- package/src/gpu-physics/rigid-body-properties.ts +163 -0
- package/src/gpu-physics/rigid-body-publication.ts +134 -0
- package/src/gpu-physics/rigid-body-queries.ts +90 -0
- package/src/gpu-physics/rigid-body-query-geometry.ts +261 -0
- package/src/gpu-physics/rigid-body-recovery.ts +257 -0
- package/src/gpu-physics/rigid-body-shaders.ts +481 -0
- package/src/gpu-physics/rigid-body-shape-properties.ts +105 -0
- package/src/gpu-physics/rigid-body-support-shaders.ts +42 -0
- package/src/gpu-physics/rigid-body-transaction.ts +197 -0
- package/src/gpu-physics/rigid-body-triggers.ts +333 -0
- package/src/gpu-physics/scale-shape.ts +50 -0
- package/src/gpu-physics/sphere-calibration.ts +188 -0
- package/src/gpu-physics/sphere-events.ts +64 -0
- package/src/gpu-physics/sphere-persistent-contacts.ts +221 -0
- package/src/gpu-physics/sphere-shapes.ts +65 -0
- package/src/gpu-physics/sphere-world-events.ts +168 -0
- package/src/gpu-physics/sphere-world-shaders.ts +385 -0
- package/src/gpu-pointcloud/gpu-pointcloud-octree.ts +356 -0
- package/src/gpu-pointcloud/gpu-pointcloud-radius-filter.ts +62 -0
- package/src/gpu-pointcloud/gpu-pointcloud-voxel-downsample.ts +83 -0
- package/src/gpu-pointcloud/index.ts +10 -0
- package/src/gpu-project/README.md +479 -0
- package/src/gpu-project/benchmarks.ts +44 -0
- package/src/gpu-project/crs.ts +282 -0
- package/src/gpu-project/gpu-projection-benchmark.ts +404 -0
- package/src/gpu-project/gpu-projection-program.ts +193 -0
- package/src/gpu-project/gpu-projection-table.ts +197 -0
- package/src/gpu-project/gpu-projection.ts +380 -0
- package/src/gpu-project/index.ts +86 -0
- package/src/gpu-project/projection-benchmark.ts +243 -0
- package/src/gpu-project/projection-conic.ts +308 -0
- package/src/gpu-project/projection-crs-benchmark.ts +127 -0
- package/src/gpu-project/projection-crs-identifiers.ts +23 -0
- package/src/gpu-project/projection-crs-input.ts +221 -0
- package/src/gpu-project/projection-crs-lowering.ts +606 -0
- package/src/gpu-project/projection-crs-provider.ts +125 -0
- package/src/gpu-project/projection-engine.ts +113 -0
- package/src/gpu-project/projection-execution.ts +143 -0
- package/src/gpu-project/projection-longitude-wrap.ts +88 -0
- package/src/gpu-project/projection-metadata.ts +190 -0
- package/src/gpu-project/projection-partition.ts +259 -0
- package/src/gpu-project/projection-pipeline.ts +429 -0
- package/src/gpu-project/projection-plan.ts +985 -0
- package/src/gpu-project/projection-planning.ts +221 -0
- package/src/gpu-project/projection-program-benchmark.ts +582 -0
- package/src/gpu-project/projection-program-cpu-benchmark.ts +179 -0
- package/src/gpu-project/projection-program.ts +473 -0
- package/src/gpu-project/projection-routing-benchmark.ts +249 -0
- package/src/gpu-project/projection-routing.ts +82 -0
- package/src/gpu-project/projection-shader.ts +499 -0
- package/src/gpu-project/projection-table-benchmark.ts +407 -0
- package/src/gpu-project/projection-table-transform.ts +134 -0
- package/src/gpu-project/projection-transverse-mercator.ts +267 -0
- package/src/gpu-project/projection-web-mercator.ts +74 -0
- package/src/gpu-project/types.ts +107 -0
- package/src/gpu-project/web-mercator.ts +49 -0
- package/src/gpu-raster/gpu-raster-band-math.ts +342 -0
- package/src/gpu-raster/gpu-raster-buffer-to-texture.ts +284 -0
- package/src/gpu-raster/gpu-raster-connected-components.ts +552 -0
- package/src/gpu-raster/gpu-raster-contours.ts +799 -0
- package/src/gpu-raster/gpu-raster-contrast.ts +519 -0
- package/src/gpu-raster/gpu-raster-convolution.ts +236 -0
- package/src/gpu-raster/gpu-raster-cross-tile-components.ts +1443 -0
- package/src/gpu-raster/gpu-raster-dense-components.ts +405 -0
- package/src/gpu-raster/gpu-raster-edges.ts +386 -0
- package/src/gpu-raster/gpu-raster-global-statistics.ts +651 -0
- package/src/gpu-raster/gpu-raster-histogram.ts +292 -0
- package/src/gpu-raster/gpu-raster-morphology.ts +650 -0
- package/src/gpu-raster/gpu-raster-ndvi.ts +73 -0
- package/src/gpu-raster/gpu-raster-neighborhood.ts +395 -0
- package/src/gpu-raster/gpu-raster-overview.ts +674 -0
- package/src/gpu-raster/gpu-raster-region-measurements.ts +653 -0
- package/src/gpu-raster/gpu-raster-statistics.ts +321 -0
- package/src/gpu-raster/gpu-raster-texture-to-buffer.ts +232 -0
- package/src/gpu-raster/gpu-raster-threshold.ts +500 -0
- package/src/gpu-raster/gpu-raster-tile-cache.ts +780 -0
- package/src/gpu-raster/gpu-raster-tile-halo.ts +644 -0
- package/src/gpu-raster/gpu-raster-tile-source.ts +612 -0
- package/src/gpu-raster/gpu-raster.ts +115 -0
- package/src/gpu-raster/index.ts +222 -0
- package/src/gpu-raster/raster-device-limits.ts +215 -0
- package/src/gpu-raster/raster-utils.ts +302 -0
- package/src/gpu-raster/types.ts +91 -0
- package/src/gpu-simple-graph/README.md +116 -0
- package/src/gpu-simple-graph/gpu-simple-graph-lowering.ts +226 -0
- package/src/gpu-simple-graph/gpu-simple-graph-operation.ts +47 -0
- package/src/gpu-simple-graph/gpu-simple-graph-transfer.ts +134 -0
- package/src/gpu-simple-graph/gpu-simple-graph-value.ts +186 -0
- package/src/gpu-simple-graph/gpu-simple-graph.ts +364 -0
- package/src/gpu-simple-graph/index.ts +26 -0
- package/src/gpu-simulation/index.ts +31 -0
- package/src/gpu-simulation/spectral-ocean-initial-spectrum.ts +79 -0
- package/src/gpu-simulation/spectral-ocean-simulation-shaders.ts +182 -0
- package/src/gpu-simulation/spectral-ocean-simulation.ts +722 -0
- package/src/gpu-simulation/volumetric-fire-simulation-shaders.ts +961 -0
- package/src/gpu-simulation/volumetric-fire-simulation.ts +816 -0
- package/src/gpu-sql/index.ts +6 -0
- package/src/gpu-sql/lu-sql.ts +599 -0
- package/src/gpu-tables/engine/gpu-input-schema.ts +107 -0
- package/src/gpu-tables/engine/gpu-renderable.ts +33 -0
- package/src/gpu-tables/engine/gpu-scene-adapters.ts +322 -0
- package/src/gpu-tables/engine/gpu-table-computation.ts +236 -0
- package/src/gpu-tables/engine/gpu-table-shader-bindings.ts +562 -0
- package/src/gpu-tables/index.ts +83 -0
- package/src/gpu-tables/table/gpu-record-batch.ts +206 -0
- package/src/gpu-tables/table/gpu-schema.ts +61 -0
- package/src/gpu-tables/table/gpu-table.ts +1013 -0
- package/src/gpu-tables/utils/generated-buffer-batches.ts +165 -0
- package/src/gpu-tables/utils/gpu-table-buffer-planner.ts +754 -0
- package/src/gpu-timeseries/gpu-time-series-envelope.ts +194 -0
- package/src/gpu-timeseries/gpu-time-series.ts +62 -0
- package/src/gpu-timeseries/index.ts +8 -0
- package/src/gpu-trace/README.md +187 -0
- package/src/gpu-trace/gpu-trace-aggregation.ts +163 -0
- package/src/gpu-trace/gpu-trace-analytics-output.ts +176 -0
- package/src/gpu-trace/gpu-trace-anomaly-scoring.ts +634 -0
- package/src/gpu-trace/gpu-trace-comparison.ts +566 -0
- package/src/gpu-trace/gpu-trace-critical-path.ts +780 -0
- package/src/gpu-trace/gpu-trace-interaction.ts +597 -0
- package/src/gpu-trace/gpu-trace-lane-index-builder.ts +672 -0
- package/src/gpu-trace/gpu-trace-mipmap-boundaries.ts +419 -0
- package/src/gpu-trace/gpu-trace-picking.ts +70 -0
- package/src/gpu-trace/gpu-trace-pixel-mipmap.ts +956 -0
- package/src/gpu-trace/gpu-trace-range-maximum-index.ts +424 -0
- package/src/gpu-trace/gpu-trace-scene.ts +581 -0
- package/src/gpu-trace/gpu-trace-temporal-index-builder.ts +384 -0
- package/src/gpu-trace/gpu-trace-temporal-index.ts +934 -0
- package/src/gpu-trace/gpu-trace-time-buckets.ts +609 -0
- package/src/gpu-trace/index.ts +149 -0
- package/src/gpu-vector-search/embedding-matrix.ts +381 -0
- package/src/gpu-vector-search/gpu-clustering-utils.ts +329 -0
- package/src/gpu-vector-search/gpu-ivf-flat-index.ts +1528 -0
- package/src/gpu-vector-search/gpu-k-means.ts +799 -0
- package/src/gpu-vector-search/gpu-similarity-search.ts +1148 -0
- package/src/gpu-vector-search/index.ts +27 -0
- package/src/gpu-vector-search/types.ts +72 -0
- package/src/index.ts +8 -0
- package/src/lucim/gpu-volume-connected-components.ts +580 -0
- package/src/lucim/gpu-volume-morphology.ts +651 -0
- package/src/lucim/gpu-volume-region-measurements.ts +398 -0
- package/src/lucim/gpu-volume-threshold.ts +288 -0
- package/src/lucim/gpu-volume.ts +126 -0
- package/src/lucim/index.ts +50 -0
- package/src/lucim/types.ts +44 -0
- package/src/lucim/volume-utils.ts +216 -0
- package/src/utils/assemble-compute-kernel.ts +34 -0
- package/src/utils/gpu-spatial-operation.ts +109 -0
|
@@ -0,0 +1,1833 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
import { readGPUResourcePreview } from "./gpu-resource-preview.js";
|
|
5
|
+
import { Buffer, Texture } from '@luma.gl/core';
|
|
6
|
+
import { DynamicBuffer, DynamicTexture } from '@luma.gl/core/dynamic';
|
|
7
|
+
import { getGPUVectorFormatInfo, isValueListGPUVectorFormat, isVertexListGPUVectorFormat } from '@luma.gl/gpgpu/gpu-data';
|
|
8
|
+
import { compileGPUCommandGraph, compileGPUCommandGraphAsync, getBufferHandle, getTextureHandle, isGraphBufferUse, isGraphTextureUse, validateGraphNodeBufferBindingAliasing } from "./gpu-command-graph-compiler.js";
|
|
9
|
+
import { GraphBufferHandle, GraphDataView, GraphExternalTextureHandle, GraphTextureHandle, GraphTextureView, GraphVectorView } from "./gpu-command-graph-types.js";
|
|
10
|
+
import { addGPUCommandNode, addGPUCommandNodes } from "./gpu-command-node.js";
|
|
11
|
+
const UINT32_BYTE_LENGTH = 4;
|
|
12
|
+
export { GraphBufferHandle, GraphDataView, GraphExternalTextureHandle, GraphTextureHandle, GraphTextureView, GraphVectorView } from "./gpu-command-graph-types.js";
|
|
13
|
+
/**
|
|
14
|
+
* Cursor over one dependency-ordered graph execution.
|
|
15
|
+
*
|
|
16
|
+
* Each call records a contiguous node range whose annotated invocation bounds fit the requested
|
|
17
|
+
* budget. A node remains atomic, so operations opt into finer scheduling by contributing bounded
|
|
18
|
+
* partition nodes. Submitting steps to the same device queue preserves graph order across frames.
|
|
19
|
+
*/
|
|
20
|
+
export class GPUCommandGraphExecution {
|
|
21
|
+
/** Total number of scheduled graph nodes in this execution. */
|
|
22
|
+
nodeCount;
|
|
23
|
+
/** Per-step scheduling budget. */
|
|
24
|
+
budget;
|
|
25
|
+
/** Immutable dry-run plan used by this execution. */
|
|
26
|
+
plan;
|
|
27
|
+
encodeNodeRange;
|
|
28
|
+
nextStepIndex = 0;
|
|
29
|
+
currentPublishedProgress = 0;
|
|
30
|
+
/** @internal */
|
|
31
|
+
constructor(props) {
|
|
32
|
+
validateGPUCommandGraphExecutionBudget(props.budget);
|
|
33
|
+
this.plan = props.plan;
|
|
34
|
+
this.nodeCount = props.plan.nodeCount;
|
|
35
|
+
this.budget = Object.freeze({ ...props.budget });
|
|
36
|
+
this.encodeNodeRange = props.encodeNodeRange;
|
|
37
|
+
}
|
|
38
|
+
/** Whether every scheduled node has been encoded. */
|
|
39
|
+
get completed() {
|
|
40
|
+
return this.nextStepIndex >= this.plan.stepCount;
|
|
41
|
+
}
|
|
42
|
+
/** Fraction of scheduled nodes already encoded. */
|
|
43
|
+
get progress() {
|
|
44
|
+
return this.plan.stepCount === 0 ? 1 : this.nextStepIndex / this.plan.stepCount;
|
|
45
|
+
}
|
|
46
|
+
/** Fraction of planned submissions whose results have reached a declared safe boundary. */
|
|
47
|
+
get publishedProgress() {
|
|
48
|
+
return this.currentPublishedProgress;
|
|
49
|
+
}
|
|
50
|
+
/** Records the next dependency-ordered step without finishing or submitting its encoder. */
|
|
51
|
+
encodeNext(commandEncoder, options) {
|
|
52
|
+
if (this.completed) {
|
|
53
|
+
throw new Error('GPUCommandGraph execution has already completed');
|
|
54
|
+
}
|
|
55
|
+
const plannedStep = this.plan.steps[this.nextStepIndex];
|
|
56
|
+
const encoding = this.encodeNodeRange(commandEncoder, options, plannedStep.firstNodeIndex, plannedStep.nextNodeIndex);
|
|
57
|
+
this.nextStepIndex++;
|
|
58
|
+
if (plannedStep.publishable)
|
|
59
|
+
this.currentPublishedProgress = this.progress;
|
|
60
|
+
return {
|
|
61
|
+
...plannedStep,
|
|
62
|
+
encoding,
|
|
63
|
+
progress: this.progress,
|
|
64
|
+
completed: this.completed,
|
|
65
|
+
publishedProgress: this.publishedProgress
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/** Creates a device-independent bounded-submission plan from one compiled graph preflight. */
|
|
70
|
+
export function getGPUCommandGraphExecutionPlan(preflight, budget, options = {}) {
|
|
71
|
+
validateGPUCommandGraphExecutionBudget(budget);
|
|
72
|
+
const latencyPriority = options.latencyPriority ?? 'normal';
|
|
73
|
+
const publicationPolicy = options.publicationPolicy ?? 'final';
|
|
74
|
+
if (!['interactive', 'normal', 'background'].includes(latencyPriority)) {
|
|
75
|
+
throw new Error(`GPUCommandGraph execution latency priority "${latencyPriority}" is invalid`);
|
|
76
|
+
}
|
|
77
|
+
if (!['final', 'progressive'].includes(publicationPolicy)) {
|
|
78
|
+
throw new Error(`GPUCommandGraph execution publication policy "${publicationPolicy}" is invalid`);
|
|
79
|
+
}
|
|
80
|
+
const nodes = preflight.nodes;
|
|
81
|
+
const steps = [];
|
|
82
|
+
let nextNodeIndex = 0;
|
|
83
|
+
while (nextNodeIndex < nodes.length) {
|
|
84
|
+
const firstNodeIndex = nextNodeIndex;
|
|
85
|
+
let cost = getEmptyGPUCommandGraphExecutionCost();
|
|
86
|
+
while (nextNodeIndex < nodes.length) {
|
|
87
|
+
const nextCost = addGPUCommandGraphExecutionCost(cost, nodes[nextNodeIndex]);
|
|
88
|
+
if (nextNodeIndex > firstNodeIndex &&
|
|
89
|
+
exceedsGPUCommandGraphExecutionBudget(nextCost, budget)) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
cost = nextCost;
|
|
93
|
+
nextNodeIndex++;
|
|
94
|
+
if (publicationPolicy === 'progressive' && nodes[nextNodeIndex - 1].publication)
|
|
95
|
+
break;
|
|
96
|
+
if (reachesGPUCommandGraphExecutionBudget(cost, budget))
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
const publications = publicationPolicy === 'progressive'
|
|
100
|
+
? Object.freeze(nodes
|
|
101
|
+
.slice(firstNodeIndex, nextNodeIndex)
|
|
102
|
+
.flatMap(node => (node.publication ? [node.publication] : [])))
|
|
103
|
+
: Object.freeze([]);
|
|
104
|
+
const completed = nextNodeIndex === nodes.length;
|
|
105
|
+
steps.push(Object.freeze({
|
|
106
|
+
stepIndex: steps.length,
|
|
107
|
+
firstNodeIndex,
|
|
108
|
+
nextNodeIndex,
|
|
109
|
+
...cost,
|
|
110
|
+
exceedsBudget: exceedsGPUCommandGraphExecutionBudget(cost, budget),
|
|
111
|
+
latencyPriority,
|
|
112
|
+
publications,
|
|
113
|
+
publishable: completed || publications.length > 0
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
const totalCost = nodes.reduce((cost, node) => addGPUCommandGraphExecutionCost(cost, node), getEmptyGPUCommandGraphExecutionCost());
|
|
117
|
+
return Object.freeze({
|
|
118
|
+
...totalCost,
|
|
119
|
+
annotatedNodeCount: preflight.annotatedNodeCount,
|
|
120
|
+
stepCount: steps.length,
|
|
121
|
+
oversizedStepCount: steps.filter(step => step.exceedsBudget).length,
|
|
122
|
+
latencyPriority,
|
|
123
|
+
publicationPolicy,
|
|
124
|
+
publicationCount: steps.reduce((count, step) => count + step.publications.length, 0),
|
|
125
|
+
steps: Object.freeze(steps)
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
function getEmptyGPUCommandGraphExecutionCost() {
|
|
129
|
+
return {
|
|
130
|
+
nodeCount: 0,
|
|
131
|
+
commandCount: 0,
|
|
132
|
+
maximumInvocationCount: 0,
|
|
133
|
+
readByteLength: 0,
|
|
134
|
+
writeByteLength: 0,
|
|
135
|
+
conditionalNodeCount: 0
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function addGPUCommandGraphExecutionCost(cost, node) {
|
|
139
|
+
return {
|
|
140
|
+
nodeCount: cost.nodeCount + 1,
|
|
141
|
+
commandCount: cost.commandCount + node.commandCount,
|
|
142
|
+
maximumInvocationCount: cost.maximumInvocationCount + node.maximumInvocationCount,
|
|
143
|
+
readByteLength: cost.readByteLength + node.readByteLength,
|
|
144
|
+
writeByteLength: cost.writeByteLength + node.writeByteLength,
|
|
145
|
+
conditionalNodeCount: cost.conditionalNodeCount + (node.condition ? 1 : 0)
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
function exceedsGPUCommandGraphExecutionBudget(cost, budget) {
|
|
149
|
+
return (cost.maximumInvocationCount > budget.maximumInvocationCount ||
|
|
150
|
+
(budget.maximumNodeCount !== undefined && cost.nodeCount > budget.maximumNodeCount) ||
|
|
151
|
+
(budget.maximumCommandCount !== undefined && cost.commandCount > budget.maximumCommandCount) ||
|
|
152
|
+
(budget.maximumReadByteLength !== undefined &&
|
|
153
|
+
cost.readByteLength > budget.maximumReadByteLength) ||
|
|
154
|
+
(budget.maximumWriteByteLength !== undefined &&
|
|
155
|
+
cost.writeByteLength > budget.maximumWriteByteLength));
|
|
156
|
+
}
|
|
157
|
+
function reachesGPUCommandGraphExecutionBudget(cost, budget) {
|
|
158
|
+
return (cost.maximumInvocationCount >= budget.maximumInvocationCount ||
|
|
159
|
+
(budget.maximumNodeCount !== undefined && cost.nodeCount >= budget.maximumNodeCount) ||
|
|
160
|
+
(budget.maximumCommandCount !== undefined && cost.commandCount >= budget.maximumCommandCount) ||
|
|
161
|
+
(budget.maximumReadByteLength !== undefined &&
|
|
162
|
+
cost.readByteLength >= budget.maximumReadByteLength) ||
|
|
163
|
+
(budget.maximumWriteByteLength !== undefined &&
|
|
164
|
+
cost.writeByteLength >= budget.maximumWriteByteLength));
|
|
165
|
+
}
|
|
166
|
+
function validateGPUCommandGraphExecutionBudget(budget) {
|
|
167
|
+
const limits = [
|
|
168
|
+
['maximumInvocationCount', budget.maximumInvocationCount],
|
|
169
|
+
['maximumNodeCount', budget.maximumNodeCount],
|
|
170
|
+
['maximumCommandCount', budget.maximumCommandCount],
|
|
171
|
+
['maximumReadByteLength', budget.maximumReadByteLength],
|
|
172
|
+
['maximumWriteByteLength', budget.maximumWriteByteLength]
|
|
173
|
+
];
|
|
174
|
+
for (const [name, value] of limits) {
|
|
175
|
+
if (value !== undefined && (!Number.isSafeInteger(value) || value <= 0)) {
|
|
176
|
+
throw new Error(`GPUCommandGraph execution ${name} must be a positive safe integer`);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/** Redirects one direct dispatch to a GPU-written indirect command without exposing a fake skip. */
|
|
181
|
+
function makeGPUIndirectConditionalComputePass(computePass, indirectBuffer, indirectByteOffset, nodeId) {
|
|
182
|
+
let dispatchCount = 0;
|
|
183
|
+
const conditionalPass = new Proxy(computePass, {
|
|
184
|
+
get(target, property) {
|
|
185
|
+
if (property === 'dispatch') {
|
|
186
|
+
return () => {
|
|
187
|
+
if (dispatchCount > 0) {
|
|
188
|
+
throw new Error(`GPUCommandGraph GPU-conditional compute node "${nodeId}" must encode exactly one dispatch`);
|
|
189
|
+
}
|
|
190
|
+
dispatchCount++;
|
|
191
|
+
target.dispatchIndirect(indirectBuffer, indirectByteOffset);
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
if (property === 'dispatchIndirect') {
|
|
195
|
+
return () => {
|
|
196
|
+
throw new Error(`GPUCommandGraph GPU-conditional compute node "${nodeId}" must use dispatch(); the graph supplies its indirect command`);
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
const value = Reflect.get(target, property, target);
|
|
200
|
+
return typeof value === 'function' ? value.bind(target) : value;
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
return {
|
|
204
|
+
computePass: conditionalPass,
|
|
205
|
+
assertDispatched: () => {
|
|
206
|
+
if (dispatchCount !== 1) {
|
|
207
|
+
throw new Error(`GPUCommandGraph GPU-conditional compute node "${nodeId}" must encode exactly one dispatch`);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Synchronous encoding statistics plus optional explicit GPU timing readback.
|
|
214
|
+
*
|
|
215
|
+
* Creating this result never maps a buffer, submits commands, or waits for the GPU. Call
|
|
216
|
+
* `readTimings()` and `readResource()` only after the caller submits the encoded command buffer.
|
|
217
|
+
* Resource reads inspect current allocations and may submit separate diagnostic copies.
|
|
218
|
+
*/
|
|
219
|
+
export class GPUCommandGraphEncoding {
|
|
220
|
+
readResource;
|
|
221
|
+
/** CPU encoding statistics available immediately after `encode()`. */
|
|
222
|
+
stats;
|
|
223
|
+
/** Whether at least one render or compute node recorded a GPU timestamp pair. */
|
|
224
|
+
canReadGPUTimings;
|
|
225
|
+
nodes;
|
|
226
|
+
/** @internal */
|
|
227
|
+
constructor(nodes, cpuEncodeTimeMilliseconds, computePassCount = nodes.filter(node => node.stats.type === 'compute' && node.stats.condition?.outcome !== 'skipped').length, cpuEncodeStartTimeMilliseconds, cpuEncodeEndTimeMilliseconds, readResource) {
|
|
228
|
+
this.readResource = readResource;
|
|
229
|
+
this.nodes = nodes;
|
|
230
|
+
this.canReadGPUTimings = nodes.some(node => node.timestamp !== undefined);
|
|
231
|
+
const executedNodes = nodes.filter(node => node.stats.condition?.outcome !== 'skipped');
|
|
232
|
+
const computeNodeCount = executedNodes.filter(node => node.stats.type === 'compute').length;
|
|
233
|
+
this.stats = {
|
|
234
|
+
cpuEncodeTimeMilliseconds,
|
|
235
|
+
cpuEncodeStartTimeMilliseconds,
|
|
236
|
+
cpuEncodeEndTimeMilliseconds,
|
|
237
|
+
nodeCount: executedNodes.length,
|
|
238
|
+
skippedNodeCount: nodes.length - executedNodes.length,
|
|
239
|
+
computePassCount,
|
|
240
|
+
coalescedComputeNodeCount: computeNodeCount - computePassCount,
|
|
241
|
+
timestampedNodeCount: nodes.filter(node => node.timestamp !== undefined).length,
|
|
242
|
+
nodes: nodes.map(node => node.stats)
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Explicitly reads available per-pass GPU timestamp pairs after submission.
|
|
247
|
+
*
|
|
248
|
+
* Copy nodes currently report CPU encoding cost only because the portable command-encoder API
|
|
249
|
+
* does not expose standalone timestamp writes.
|
|
250
|
+
*/
|
|
251
|
+
async readTimings() {
|
|
252
|
+
const nodes = await Promise.all(this.nodes.map(async ({ stats, timestamp }) => {
|
|
253
|
+
if (!timestamp) {
|
|
254
|
+
return { ...stats };
|
|
255
|
+
}
|
|
256
|
+
const { querySet, snapshot, beginIndex, endIndex } = timestamp;
|
|
257
|
+
if (querySet.device.type !== 'webgpu') {
|
|
258
|
+
return {
|
|
259
|
+
...stats,
|
|
260
|
+
gpuTimeMilliseconds: await querySet.readTimestampDuration(beginIndex, endIndex)
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
const results = await (snapshot ?? querySet).readResults({
|
|
264
|
+
firstQuery: beginIndex,
|
|
265
|
+
queryCount: endIndex - beginIndex + 1
|
|
266
|
+
});
|
|
267
|
+
const startTime = results[0];
|
|
268
|
+
const endTime = results[results.length - 1];
|
|
269
|
+
return {
|
|
270
|
+
...stats,
|
|
271
|
+
gpuStartTimeMilliseconds: Number(startTime) / 1e6,
|
|
272
|
+
gpuEndTimeMilliseconds: Number(endTime) / 1e6,
|
|
273
|
+
gpuTimeMilliseconds: Number(endTime - startTime) / 1e6
|
|
274
|
+
};
|
|
275
|
+
}));
|
|
276
|
+
const timestampedNodes = nodes.filter(node => node.gpuTimeMilliseconds !== undefined);
|
|
277
|
+
const spans = nodes.filter(node => node.gpuStartTimeMilliseconds !== undefined);
|
|
278
|
+
const correlations = this.nodes.flatMap(node => node.timestamp?.snapshot?.clockCorrelation ? [node.timestamp.snapshot.clockCorrelation] : []);
|
|
279
|
+
const clockCorrelation = correlations.sort((first, second) => first.uncertaintyMilliseconds - second.uncertaintyMilliseconds)[0];
|
|
280
|
+
return {
|
|
281
|
+
...(clockCorrelation ? { clockCorrelation } : {}),
|
|
282
|
+
cpuEncodeStartTimeMilliseconds: this.stats.cpuEncodeStartTimeMilliseconds,
|
|
283
|
+
cpuEncodeEndTimeMilliseconds: this.stats.cpuEncodeEndTimeMilliseconds,
|
|
284
|
+
...(spans.length > 0
|
|
285
|
+
? {
|
|
286
|
+
gpuStartTimeMilliseconds: Math.min(...spans.map(node => node.gpuStartTimeMilliseconds)),
|
|
287
|
+
gpuEndTimeMilliseconds: Math.max(...spans.map(node => node.gpuEndTimeMilliseconds))
|
|
288
|
+
}
|
|
289
|
+
: {}),
|
|
290
|
+
cpuEncodeTimeMilliseconds: this.stats.cpuEncodeTimeMilliseconds,
|
|
291
|
+
...(timestampedNodes.length > 0
|
|
292
|
+
? {
|
|
293
|
+
gpuTimeMilliseconds: timestampedNodes.reduce((total, node) => total + (node.gpuTimeMilliseconds ?? 0), 0)
|
|
294
|
+
}
|
|
295
|
+
: {}),
|
|
296
|
+
nodes
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Declarative WebGPU command graph with explicit resource access and ownership.
|
|
302
|
+
*
|
|
303
|
+
* The graph compiles resource hazards, transient lifetimes, and node resources,
|
|
304
|
+
* but encoding and submission remain controlled by the application.
|
|
305
|
+
*/
|
|
306
|
+
export class GPUCommandGraph {
|
|
307
|
+
/** WebGPU device that owns compilation and transient resources. */
|
|
308
|
+
device;
|
|
309
|
+
/** Identifier used as a prefix for graph-owned GPU resources. */
|
|
310
|
+
id;
|
|
311
|
+
/** Optional adapter-local equivalent-kernel selector shared by graph contributors. */
|
|
312
|
+
autotuner;
|
|
313
|
+
buffers = new Map();
|
|
314
|
+
textures = new Map();
|
|
315
|
+
externalTextures = new Map();
|
|
316
|
+
importedBufferHandles = new Map();
|
|
317
|
+
dynamicBufferHandles = new Map();
|
|
318
|
+
nodes = [];
|
|
319
|
+
nodeIds = new Set();
|
|
320
|
+
compiled = false;
|
|
321
|
+
/**
|
|
322
|
+
* Creates a mutable graph definition.
|
|
323
|
+
*
|
|
324
|
+
* @param device WebGPU device used to compile and execute the graph.
|
|
325
|
+
* @param props Optional graph identity and generic adaptive-kernel selector.
|
|
326
|
+
* @throws If `device` is not a WebGPU device.
|
|
327
|
+
*/
|
|
328
|
+
constructor(device, props = {}) {
|
|
329
|
+
if (device.type !== 'webgpu') {
|
|
330
|
+
throw new Error('GPUCommandGraph requires a WebGPU device');
|
|
331
|
+
}
|
|
332
|
+
assertDeviceAvailable(device, 'construction');
|
|
333
|
+
this.device = device;
|
|
334
|
+
this.id = props.id ?? 'gpu-command-graph';
|
|
335
|
+
this.autotuner = props.autotuner;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Declares a caller-owned buffer that can be supplied now or for each encoding.
|
|
339
|
+
*
|
|
340
|
+
* Represent one physical buffer with one logical handle whenever a graph access may write to
|
|
341
|
+
* it. Distinct active imported handles may share a physical buffer only when every graph access
|
|
342
|
+
* is read-only because write hazards are tracked by handle identity.
|
|
343
|
+
*
|
|
344
|
+
* @param descriptor Required capacity and usage.
|
|
345
|
+
* @param defaultBuffer Optional default binding used when an encoding supplies no override.
|
|
346
|
+
* @returns An opaque logical handle used by graph nodes and data views.
|
|
347
|
+
*/
|
|
348
|
+
importBuffer(descriptor, defaultBuffer) {
|
|
349
|
+
this.assertMutable();
|
|
350
|
+
validateGraphBufferDescriptor(descriptor, this.device);
|
|
351
|
+
if (defaultBuffer) {
|
|
352
|
+
validateImportedBuffer(defaultBuffer, descriptor, this.device);
|
|
353
|
+
}
|
|
354
|
+
const handle = this.addBuffer(new GraphBufferHandle(this, descriptor, false, defaultBuffer));
|
|
355
|
+
if (defaultBuffer) {
|
|
356
|
+
const coreBuffer = getCoreBuffer(defaultBuffer);
|
|
357
|
+
if (!this.importedBufferHandles.has(coreBuffer)) {
|
|
358
|
+
this.importedBufferHandles.set(coreBuffer, handle);
|
|
359
|
+
}
|
|
360
|
+
if (defaultBuffer instanceof DynamicBuffer && !this.dynamicBufferHandles.has(defaultBuffer)) {
|
|
361
|
+
this.dynamicBufferHandles.set(defaultBuffer, handle);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
return handle;
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* Declares one graph-owned scratch buffer.
|
|
368
|
+
*
|
|
369
|
+
* Compatible transient buffers with disjoint compiled lifetimes may share a physical allocation.
|
|
370
|
+
*/
|
|
371
|
+
createTransientBuffer(descriptor) {
|
|
372
|
+
this.assertMutable();
|
|
373
|
+
validateGraphBufferDescriptor(descriptor, this.device);
|
|
374
|
+
return this.addBuffer(new GraphBufferHandle(this, descriptor, true));
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Creates one typed range over a graph buffer.
|
|
378
|
+
*
|
|
379
|
+
* The view is non-owning. Its layout is validated against the logical buffer capacity.
|
|
380
|
+
*/
|
|
381
|
+
createDataView(buffer, props) {
|
|
382
|
+
this.assertBuffer(buffer);
|
|
383
|
+
const formatInfo = getGPUVectorFormatInfo(props.format);
|
|
384
|
+
const byteOffset = props.byteOffset ?? 0;
|
|
385
|
+
const rowByteLength = props.rowByteLength ?? formatInfo.byteLength;
|
|
386
|
+
const byteStride = props.byteStride ?? rowByteLength;
|
|
387
|
+
validateGraphDataView(buffer, {
|
|
388
|
+
length: props.length,
|
|
389
|
+
byteOffset,
|
|
390
|
+
byteStride,
|
|
391
|
+
rowByteLength
|
|
392
|
+
});
|
|
393
|
+
return new GraphDataView(buffer, {
|
|
394
|
+
format: props.format,
|
|
395
|
+
length: props.length,
|
|
396
|
+
byteOffset,
|
|
397
|
+
byteStride,
|
|
398
|
+
rowByteLength
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Imports one borrowed `GPUData` chunk and returns a typed view preserving its layout.
|
|
403
|
+
*
|
|
404
|
+
* The graph never destroys the imported buffer.
|
|
405
|
+
*/
|
|
406
|
+
importGPUData(id, data) {
|
|
407
|
+
return this.importGPUDataView(id, data);
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Imports all chunks of one fixed-width `GPUVector` without packing them.
|
|
411
|
+
*
|
|
412
|
+
* Shared physical buffers map to one graph handle while each chunk retains its own offset and
|
|
413
|
+
* layout. Interleaved and variable-length vectors are rejected.
|
|
414
|
+
*/
|
|
415
|
+
importGPUVector(id, vector) {
|
|
416
|
+
if (vector.bufferLayout) {
|
|
417
|
+
throw new Error(`GPUCommandGraph import "${id}" does not accept interleaved GPUVector data`);
|
|
418
|
+
}
|
|
419
|
+
const format = vector.format ?? vector.data[0]?.format;
|
|
420
|
+
if (!format) {
|
|
421
|
+
throw new Error(`GPUCommandGraph import "${id}" requires GPUVector.format`);
|
|
422
|
+
}
|
|
423
|
+
if (isVertexListGPUVectorFormat(format) || isValueListGPUVectorFormat(format)) {
|
|
424
|
+
throw new Error(`GPUCommandGraph import "${id}" requires a fixed-width GPUVector format`);
|
|
425
|
+
}
|
|
426
|
+
const formatInfo = getGPUVectorFormatInfo(format);
|
|
427
|
+
const data = vector.data.map((chunk, chunkIndex) => {
|
|
428
|
+
if (chunk.format !== format) {
|
|
429
|
+
throw new Error(`GPUCommandGraph import "${id}" requires matching GPUVector chunk formats`);
|
|
430
|
+
}
|
|
431
|
+
const chunkId = vector.data.length === 1 ? id : `${id}-chunk-${chunkIndex}`;
|
|
432
|
+
return this.importGPUDataView(chunkId, chunk);
|
|
433
|
+
});
|
|
434
|
+
return new GraphVectorView({
|
|
435
|
+
id,
|
|
436
|
+
name: vector.name ?? id,
|
|
437
|
+
format,
|
|
438
|
+
length: vector.length,
|
|
439
|
+
valueLength: vector.valueLength ?? vector.data.reduce((sum, chunk) => sum + chunk.valueLength, 0),
|
|
440
|
+
stride: vector.stride ??
|
|
441
|
+
vector.data[0]?.stride ??
|
|
442
|
+
formatInfo.components * (formatInfo.listSize ?? 1),
|
|
443
|
+
byteStride: vector.byteStride ?? data[0]?.byteStride ?? formatInfo.byteLength,
|
|
444
|
+
rowByteLength: vector.rowByteLength ?? data[0]?.rowByteLength ?? formatInfo.byteLength,
|
|
445
|
+
data
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Declares a caller-owned fixed-size texture supplied now or while encoding.
|
|
450
|
+
*
|
|
451
|
+
* Replacements must exactly match format, dimension, extent, mip count, and sample count.
|
|
452
|
+
*/
|
|
453
|
+
importTexture(descriptor, defaultTexture) {
|
|
454
|
+
this.assertMutable();
|
|
455
|
+
const normalizedDescriptor = normalizeGraphTextureDescriptor(descriptor, this.device);
|
|
456
|
+
if (defaultTexture) {
|
|
457
|
+
validateImportedTexture(defaultTexture, normalizedDescriptor, this.device);
|
|
458
|
+
}
|
|
459
|
+
return this.addTexture(new GraphTextureHandle(this, normalizedDescriptor, false, defaultTexture));
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Declares a caller-acquired texture that is valid for exactly one numbered encoding frame.
|
|
463
|
+
*
|
|
464
|
+
* Frame textures have no default and must be supplied through `encode({frameTextures})` with a
|
|
465
|
+
* strictly increasing frame ID. The graph borrows but never acquires, presents, or destroys them.
|
|
466
|
+
*/
|
|
467
|
+
importFrameTexture(descriptor) {
|
|
468
|
+
this.assertMutable();
|
|
469
|
+
const normalizedDescriptor = normalizeGraphTextureDescriptor(descriptor, this.device);
|
|
470
|
+
return this.addTexture(new GraphTextureHandle(this, normalizedDescriptor, false, undefined, true));
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Declares a sampled external image that must be replaced for every numbered encoding frame.
|
|
474
|
+
*
|
|
475
|
+
* Media scheduling and acquisition remain caller-owned. The graph borrows each fresh binding
|
|
476
|
+
* for one encoding and never destroys it.
|
|
477
|
+
*/
|
|
478
|
+
importExternalTexture(descriptor) {
|
|
479
|
+
this.assertMutable();
|
|
480
|
+
validateGraphExternalTextureDescriptor(descriptor, this.device);
|
|
481
|
+
return this.addExternalTexture(new GraphExternalTextureHandle(this, descriptor));
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Declares one graph-owned fixed-size transient texture.
|
|
485
|
+
*
|
|
486
|
+
* Descriptor-compatible textures with disjoint compiled lifetimes may share an allocation.
|
|
487
|
+
*/
|
|
488
|
+
createTransientTexture(descriptor) {
|
|
489
|
+
this.assertMutable();
|
|
490
|
+
const normalizedDescriptor = normalizeGraphTextureDescriptor(descriptor, this.device);
|
|
491
|
+
return this.addTexture(new GraphTextureHandle(this, normalizedDescriptor, true));
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Creates one logical mip, layer, and aspect range over a graph texture.
|
|
495
|
+
*
|
|
496
|
+
* The normalized range is used for texture hazard inference and concrete view creation.
|
|
497
|
+
*/
|
|
498
|
+
createTextureView(texture, props = {}) {
|
|
499
|
+
this.assertTexture(texture);
|
|
500
|
+
const normalizedProps = normalizeGraphTextureView(texture, props);
|
|
501
|
+
return new GraphTextureView(texture, normalizedProps);
|
|
502
|
+
}
|
|
503
|
+
/** Expands groups and primitives, scheduling concrete command nodes in depth-first order. */
|
|
504
|
+
add(node) {
|
|
505
|
+
this.assertMutable();
|
|
506
|
+
if ('getNodes' in node) {
|
|
507
|
+
for (const child of node.getNodes())
|
|
508
|
+
this.add(child);
|
|
509
|
+
}
|
|
510
|
+
else if ('getCommandNodes' in node) {
|
|
511
|
+
addGPUCommandNodes(this, node.getCommandNodes(this));
|
|
512
|
+
}
|
|
513
|
+
else if ('type' in node) {
|
|
514
|
+
addGPUCommandNode(this, node);
|
|
515
|
+
}
|
|
516
|
+
else {
|
|
517
|
+
for (const child of node)
|
|
518
|
+
this.add(child);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Adds a compute node.
|
|
523
|
+
*
|
|
524
|
+
* The graph opens and closes the compute pass; the compiled executable only records commands.
|
|
525
|
+
* Declared resource uses participate in automatic dependency inference.
|
|
526
|
+
*/
|
|
527
|
+
addComputePass(node) {
|
|
528
|
+
this.addNode({ ...node, type: 'compute' });
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Adds a render node.
|
|
532
|
+
*
|
|
533
|
+
* Graph attachments are validated, added to the node's resource uses, and resolved to a cached
|
|
534
|
+
* framebuffer at encode time. The graph opens and closes the render pass.
|
|
535
|
+
*/
|
|
536
|
+
addRenderPass(node) {
|
|
537
|
+
if (node.attachments) {
|
|
538
|
+
this.validateRenderAttachments(node.id, node.attachments);
|
|
539
|
+
}
|
|
540
|
+
const attachmentUses = node.attachments
|
|
541
|
+
? [
|
|
542
|
+
...node.attachments.colorAttachments.map(texture => ({
|
|
543
|
+
texture,
|
|
544
|
+
usage: 'render-attachment'
|
|
545
|
+
})),
|
|
546
|
+
...(node.attachments.resolveTargets ?? [])
|
|
547
|
+
.filter((texture) => texture !== null)
|
|
548
|
+
.map(texture => ({ texture, usage: 'render-attachment' })),
|
|
549
|
+
...(node.attachments.depthStencilAttachment
|
|
550
|
+
? [
|
|
551
|
+
{
|
|
552
|
+
texture: node.attachments.depthStencilAttachment,
|
|
553
|
+
usage: 'render-attachment'
|
|
554
|
+
}
|
|
555
|
+
]
|
|
556
|
+
: [])
|
|
557
|
+
]
|
|
558
|
+
: [];
|
|
559
|
+
this.addNode({
|
|
560
|
+
...node,
|
|
561
|
+
resources: [...(node.resources ?? []), ...attachmentUses],
|
|
562
|
+
type: 'render'
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Adds a copy or pass-independent node.
|
|
567
|
+
*
|
|
568
|
+
* Its executable records directly into the caller-owned command encoder.
|
|
569
|
+
*/
|
|
570
|
+
addCopyPass(node) {
|
|
571
|
+
this.addNode({ ...node, type: 'copy' });
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* Compiles scheduling, transient allocations, and executable node resources.
|
|
575
|
+
*
|
|
576
|
+
* Compilation freezes this graph. A graph can be compiled only once.
|
|
577
|
+
*
|
|
578
|
+
* @returns An executable graph that owns compiled node state and transient allocations.
|
|
579
|
+
*/
|
|
580
|
+
compile() {
|
|
581
|
+
this.assertMutable();
|
|
582
|
+
assertDeviceAvailable(this.device, 'compilation');
|
|
583
|
+
this.compiled = true;
|
|
584
|
+
return new CompiledGPUCommandGraph(compileGPUCommandGraph({
|
|
585
|
+
device: this.device,
|
|
586
|
+
id: this.id,
|
|
587
|
+
buffers: this.buffers,
|
|
588
|
+
textures: this.textures,
|
|
589
|
+
externalTextures: this.externalTextures,
|
|
590
|
+
nodes: this.nodes
|
|
591
|
+
}));
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* Compiles graph resources with asynchronous backend pipeline creation.
|
|
595
|
+
*
|
|
596
|
+
* Every node's asynchronous compile callback is started before compilation waits for any one
|
|
597
|
+
* node. This lets independent WebGPU pipelines compile concurrently. Nodes that do not provide
|
|
598
|
+
* an asynchronous callback use their existing synchronous compile callback.
|
|
599
|
+
*
|
|
600
|
+
* Compilation freezes this graph immediately. A graph can be compiled only once, including when
|
|
601
|
+
* asynchronous compilation rejects.
|
|
602
|
+
*
|
|
603
|
+
* @returns An executable graph whose pipelines are ready before the promise resolves.
|
|
604
|
+
*/
|
|
605
|
+
async compileAsync() {
|
|
606
|
+
this.assertMutable();
|
|
607
|
+
assertDeviceAvailable(this.device, 'compilation');
|
|
608
|
+
this.compiled = true;
|
|
609
|
+
return new CompiledGPUCommandGraph(await compileGPUCommandGraphAsync({
|
|
610
|
+
device: this.device,
|
|
611
|
+
id: this.id,
|
|
612
|
+
buffers: this.buffers,
|
|
613
|
+
textures: this.textures,
|
|
614
|
+
externalTextures: this.externalTextures,
|
|
615
|
+
nodes: this.nodes
|
|
616
|
+
}));
|
|
617
|
+
}
|
|
618
|
+
addNode(node) {
|
|
619
|
+
this.assertMutable();
|
|
620
|
+
if (!node.id) {
|
|
621
|
+
throw new Error('GPUCommandGraph node id is required');
|
|
622
|
+
}
|
|
623
|
+
if (this.nodeIds.has(node.id)) {
|
|
624
|
+
throw new Error(`GPUCommandGraph node id "${node.id}" is already in use`);
|
|
625
|
+
}
|
|
626
|
+
for (const [name, value] of Object.entries(node.workload ?? {})) {
|
|
627
|
+
if (name === 'operation' || name === 'variant') {
|
|
628
|
+
if (typeof value !== 'string' || !value) {
|
|
629
|
+
throw new Error(`GPUCommandGraph node "${node.id}" workload ${name} must be nonempty`);
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
else if (typeof value !== 'number' || !Number.isSafeInteger(value) || value < 0) {
|
|
633
|
+
throw new Error(`GPUCommandGraph node "${node.id}" workload ${name} must be a nonnegative safe integer`);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
if (node.condition) {
|
|
637
|
+
if (!node.condition.id) {
|
|
638
|
+
throw new Error(`GPUCommandGraph node "${node.id}" condition id is required`);
|
|
639
|
+
}
|
|
640
|
+
if (node.condition.source === 'cpu') {
|
|
641
|
+
if (typeof node.condition.evaluate !== 'function') {
|
|
642
|
+
throw new Error(`GPUCommandGraph node "${node.id}" CPU condition requires an evaluate function`);
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
else {
|
|
646
|
+
const gpuCondition = node.condition;
|
|
647
|
+
if (node.type !== 'compute' || gpuCondition.mode !== 'indirect') {
|
|
648
|
+
throw new Error(`GPUCommandGraph node "${node.id}" GPU conditions require an indirect compute node`);
|
|
649
|
+
}
|
|
650
|
+
if (!gpuCondition.buffer) {
|
|
651
|
+
throw new Error(`GPUCommandGraph node "${node.id}" GPU condition requires an indirect command buffer`);
|
|
652
|
+
}
|
|
653
|
+
this.assertBuffer(gpuCondition.buffer);
|
|
654
|
+
const byteOffset = gpuCondition.byteOffset ?? 0;
|
|
655
|
+
if (!Number.isSafeInteger(byteOffset) || byteOffset < 0 || byteOffset % 4 !== 0) {
|
|
656
|
+
throw new Error(`GPUCommandGraph node "${node.id}" GPU condition byteOffset must be a nonnegative multiple of 4`);
|
|
657
|
+
}
|
|
658
|
+
if (byteOffset + 3 * UINT32_BYTE_LENGTH > gpuCondition.buffer.byteLength) {
|
|
659
|
+
throw new Error(`GPUCommandGraph node "${node.id}" GPU condition indirect command exceeds buffer "${gpuCondition.buffer.id}"`);
|
|
660
|
+
}
|
|
661
|
+
if (!(node.resources ?? []).some(resource => isGraphBufferUse(resource) &&
|
|
662
|
+
getBufferHandle(resource.buffer) === gpuCondition.buffer &&
|
|
663
|
+
resource.usage === 'indirect')) {
|
|
664
|
+
node = {
|
|
665
|
+
...node,
|
|
666
|
+
resources: [...(node.resources ?? []), { buffer: gpuCondition.buffer, usage: 'indirect' }]
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
if (node.publication) {
|
|
672
|
+
if (node.condition) {
|
|
673
|
+
throw new Error(`GPUCommandGraph node "${node.id}" cannot combine conditional execution with a publication boundary`);
|
|
674
|
+
}
|
|
675
|
+
if (!node.publication.id) {
|
|
676
|
+
throw new Error(`GPUCommandGraph node "${node.id}" publication id is required`);
|
|
677
|
+
}
|
|
678
|
+
if (!['partial', 'complete'].includes(node.publication.completeness)) {
|
|
679
|
+
throw new Error(`GPUCommandGraph node "${node.id}" publication completeness is invalid`);
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
for (const resource of node.resources ?? []) {
|
|
683
|
+
if (isGraphBufferUse(resource)) {
|
|
684
|
+
const buffer = getBufferHandle(resource.buffer);
|
|
685
|
+
this.assertBuffer(buffer);
|
|
686
|
+
validateBufferUseAgainstDescriptor(buffer, resource.usage);
|
|
687
|
+
}
|
|
688
|
+
else if (isGraphTextureUse(resource)) {
|
|
689
|
+
const texture = getTextureHandle(resource.texture);
|
|
690
|
+
this.assertTexture(texture);
|
|
691
|
+
validateTextureUseAgainstDescriptor(texture, resource.usage);
|
|
692
|
+
validateTextureViewForUsage(resource.texture, resource.usage);
|
|
693
|
+
}
|
|
694
|
+
else {
|
|
695
|
+
this.assertExternalTexture(resource.externalTexture);
|
|
696
|
+
if (resource.usage !== 'sampled') {
|
|
697
|
+
throw new Error('GPUCommandGraph external textures support sampled access only');
|
|
698
|
+
}
|
|
699
|
+
if (node.type !== 'render') {
|
|
700
|
+
throw new Error('GPUCommandGraph external textures can be sampled only by render nodes');
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
validateGraphNodeBufferBindingAliasing(node);
|
|
705
|
+
this.nodeIds.add(node.id);
|
|
706
|
+
this.nodes.push(node);
|
|
707
|
+
}
|
|
708
|
+
addBuffer(buffer) {
|
|
709
|
+
if (this.buffers.has(buffer.id) ||
|
|
710
|
+
this.textures.has(buffer.id) ||
|
|
711
|
+
this.externalTextures.has(buffer.id)) {
|
|
712
|
+
throw new Error(`GPUCommandGraph resource id "${buffer.id}" is already in use`);
|
|
713
|
+
}
|
|
714
|
+
this.buffers.set(buffer.id, buffer);
|
|
715
|
+
return buffer;
|
|
716
|
+
}
|
|
717
|
+
addTexture(texture) {
|
|
718
|
+
if (this.buffers.has(texture.id) ||
|
|
719
|
+
this.textures.has(texture.id) ||
|
|
720
|
+
this.externalTextures.has(texture.id)) {
|
|
721
|
+
throw new Error(`GPUCommandGraph resource id "${texture.id}" is already in use`);
|
|
722
|
+
}
|
|
723
|
+
this.textures.set(texture.id, texture);
|
|
724
|
+
return texture;
|
|
725
|
+
}
|
|
726
|
+
addExternalTexture(texture) {
|
|
727
|
+
if (this.buffers.has(texture.id) ||
|
|
728
|
+
this.textures.has(texture.id) ||
|
|
729
|
+
this.externalTextures.has(texture.id)) {
|
|
730
|
+
throw new Error(`GPUCommandGraph resource id "${texture.id}" is already in use`);
|
|
731
|
+
}
|
|
732
|
+
this.externalTextures.set(texture.id, texture);
|
|
733
|
+
return texture;
|
|
734
|
+
}
|
|
735
|
+
importGPUDataView(id, data) {
|
|
736
|
+
if (!data.format) {
|
|
737
|
+
throw new Error(`GPUCommandGraph import "${id}" requires GPUData.format`);
|
|
738
|
+
}
|
|
739
|
+
const coreBuffer = getCoreBuffer(data.buffer);
|
|
740
|
+
const requirements = {
|
|
741
|
+
byteLength: getGPUDataEndByteOffset(data),
|
|
742
|
+
usage: coreBuffer.usage
|
|
743
|
+
};
|
|
744
|
+
let handle = data.buffer instanceof DynamicBuffer
|
|
745
|
+
? this.getDynamicBufferHandle(data.buffer, requirements)
|
|
746
|
+
: this.getImportedBufferHandle(coreBuffer, requirements);
|
|
747
|
+
if (!handle) {
|
|
748
|
+
handle = this.importBuffer({ id, byteLength: coreBuffer.byteLength, usage: coreBuffer.usage }, data.buffer);
|
|
749
|
+
if (data.buffer instanceof DynamicBuffer) {
|
|
750
|
+
this.dynamicBufferHandles.set(data.buffer, handle);
|
|
751
|
+
}
|
|
752
|
+
else {
|
|
753
|
+
this.importedBufferHandles.set(coreBuffer, handle);
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
return this.createDataView(handle, {
|
|
757
|
+
format: data.format,
|
|
758
|
+
length: data.length,
|
|
759
|
+
byteOffset: data.byteOffset,
|
|
760
|
+
byteStride: data.byteStride,
|
|
761
|
+
rowByteLength: data.rowByteLength
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
getDynamicBufferHandle(buffer, requirements) {
|
|
765
|
+
const cachedHandle = this.dynamicBufferHandles.get(buffer);
|
|
766
|
+
if (cachedHandle?.defaultBuffer === buffer &&
|
|
767
|
+
doesGraphBufferHandleCoverRequirements(cachedHandle, requirements)) {
|
|
768
|
+
return cachedHandle;
|
|
769
|
+
}
|
|
770
|
+
this.dynamicBufferHandles.delete(buffer);
|
|
771
|
+
for (const handle of this.buffers.values()) {
|
|
772
|
+
if (handle.defaultBuffer === buffer &&
|
|
773
|
+
doesGraphBufferHandleCoverRequirements(handle, requirements)) {
|
|
774
|
+
this.dynamicBufferHandles.set(buffer, handle);
|
|
775
|
+
return handle;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
return undefined;
|
|
779
|
+
}
|
|
780
|
+
getImportedBufferHandle(buffer, requirements) {
|
|
781
|
+
const cachedHandle = this.importedBufferHandles.get(buffer);
|
|
782
|
+
if (cachedHandle?.defaultBuffer &&
|
|
783
|
+
getCoreBuffer(cachedHandle.defaultBuffer) === buffer &&
|
|
784
|
+
doesGraphBufferHandleCoverRequirements(cachedHandle, requirements)) {
|
|
785
|
+
return cachedHandle;
|
|
786
|
+
}
|
|
787
|
+
this.importedBufferHandles.delete(buffer);
|
|
788
|
+
for (const [dynamicBuffer, handle] of this.dynamicBufferHandles) {
|
|
789
|
+
if (dynamicBuffer.buffer === buffer &&
|
|
790
|
+
doesGraphBufferHandleCoverRequirements(handle, requirements)) {
|
|
791
|
+
this.importedBufferHandles.set(buffer, handle);
|
|
792
|
+
return handle;
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
for (const handle of this.buffers.values()) {
|
|
796
|
+
if (handle.defaultBuffer === buffer &&
|
|
797
|
+
doesGraphBufferHandleCoverRequirements(handle, requirements)) {
|
|
798
|
+
this.importedBufferHandles.set(buffer, handle);
|
|
799
|
+
return handle;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
return undefined;
|
|
803
|
+
}
|
|
804
|
+
assertBuffer(buffer) {
|
|
805
|
+
if (buffer.graph !== this || this.buffers.get(buffer.id) !== buffer) {
|
|
806
|
+
throw new Error(`Graph buffer "${buffer.id}" does not belong to ${this.id}`);
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
assertTexture(texture) {
|
|
810
|
+
if (texture.graph !== this || this.textures.get(texture.id) !== texture) {
|
|
811
|
+
throw new Error(`Graph texture "${texture.id}" does not belong to ${this.id}`);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
assertExternalTexture(texture) {
|
|
815
|
+
if (texture.graph !== this || this.externalTextures.get(texture.id) !== texture) {
|
|
816
|
+
throw new Error(`Graph external texture "${texture.id}" does not belong to ${this.id}`);
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
assertMutable() {
|
|
820
|
+
if (this.compiled) {
|
|
821
|
+
throw new Error(`GPUCommandGraph "${this.id}" has already been compiled`);
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
validateRenderAttachments(id, attachments) {
|
|
825
|
+
if (attachments.colorAttachments.length === 0 && !attachments.depthStencilAttachment) {
|
|
826
|
+
throw new Error(`GPUCommandGraph render node "${id}" requires at least one attachment`);
|
|
827
|
+
}
|
|
828
|
+
const allAttachments = [
|
|
829
|
+
...attachments.colorAttachments,
|
|
830
|
+
...(attachments.depthStencilAttachment ? [attachments.depthStencilAttachment] : [])
|
|
831
|
+
];
|
|
832
|
+
for (const attachment of allAttachments) {
|
|
833
|
+
this.assertTexture(attachment.texture);
|
|
834
|
+
if (attachment.dimension !== '2d' ||
|
|
835
|
+
attachment.mipLevelCount !== 1 ||
|
|
836
|
+
attachment.arrayLayerCount !== 1) {
|
|
837
|
+
throw new Error(`GPUCommandGraph render node "${id}" attachments must be single-mip, single-layer 2d views`);
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
const [first, ...remaining] = allAttachments;
|
|
841
|
+
for (const attachment of remaining) {
|
|
842
|
+
if (attachment.width !== first.width ||
|
|
843
|
+
attachment.height !== first.height ||
|
|
844
|
+
attachment.texture.samples !== first.texture.samples) {
|
|
845
|
+
throw new Error(`GPUCommandGraph render node "${id}" attachments must have matching extent and samples`);
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
this.validateResolveTargets(id, attachments);
|
|
849
|
+
}
|
|
850
|
+
validateResolveTargets(id, attachments) {
|
|
851
|
+
const resolveTargets = attachments.resolveTargets;
|
|
852
|
+
if (!resolveTargets) {
|
|
853
|
+
return;
|
|
854
|
+
}
|
|
855
|
+
if (this.device.type !== 'webgpu') {
|
|
856
|
+
throw new Error(`GPUCommandGraph render node "${id}" resolve targets require WebGPU`);
|
|
857
|
+
}
|
|
858
|
+
if (resolveTargets.length !== attachments.colorAttachments.length) {
|
|
859
|
+
throw new Error(`GPUCommandGraph render node "${id}" requires one resolve entry per color attachment`);
|
|
860
|
+
}
|
|
861
|
+
for (let index = 0; index < resolveTargets.length; index++) {
|
|
862
|
+
const target = resolveTargets[index];
|
|
863
|
+
if (!target) {
|
|
864
|
+
continue;
|
|
865
|
+
}
|
|
866
|
+
const source = attachments.colorAttachments[index];
|
|
867
|
+
this.assertTexture(target.texture);
|
|
868
|
+
if (source.texture.samples <= 1 ||
|
|
869
|
+
target.texture.samples !== 1 ||
|
|
870
|
+
source.format !== target.format ||
|
|
871
|
+
source.width !== target.width ||
|
|
872
|
+
source.height !== target.height) {
|
|
873
|
+
throw new Error(`GPUCommandGraph render node "${id}" resolve target ${index} must match a multisampled source and be single-sampled`);
|
|
874
|
+
}
|
|
875
|
+
if (target.dimension !== '2d' ||
|
|
876
|
+
target.aspect !== 'all' ||
|
|
877
|
+
target.mipLevelCount !== 1 ||
|
|
878
|
+
target.arrayLayerCount !== 1) {
|
|
879
|
+
throw new Error(`GPUCommandGraph render node "${id}" resolve targets must be single-mip, single-layer 2d color views`);
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Executable, fixed-capacity command graph.
|
|
886
|
+
*
|
|
887
|
+
* The compiled graph owns transient allocations, compiled node state, and cached views and
|
|
888
|
+
* framebuffers. Imported buffers and textures remain caller-owned.
|
|
889
|
+
*/
|
|
890
|
+
export class CompiledGPUCommandGraph {
|
|
891
|
+
/** WebGPU device that owns the compiled resources. */
|
|
892
|
+
device;
|
|
893
|
+
/** Identifier inherited from the graph definition. */
|
|
894
|
+
id;
|
|
895
|
+
/** Scheduling and transient-allocation statistics. */
|
|
896
|
+
stats;
|
|
897
|
+
/** Static resource and workload bounds for application-defined preflight policy. */
|
|
898
|
+
preflight;
|
|
899
|
+
/** Adapter capabilities and limits relevant to graph execution. */
|
|
900
|
+
capabilities;
|
|
901
|
+
buffers;
|
|
902
|
+
textures;
|
|
903
|
+
externalTextures;
|
|
904
|
+
compiledNodes;
|
|
905
|
+
activeImportedBufferHandles = new Set();
|
|
906
|
+
writableImportedBufferHandles = new Set();
|
|
907
|
+
activeImportedTextureHandles = new Set();
|
|
908
|
+
writableImportedTextureHandles = new Set();
|
|
909
|
+
transientBuffers;
|
|
910
|
+
transientTextures;
|
|
911
|
+
bufferTransientAllocations;
|
|
912
|
+
textureTransientAllocations;
|
|
913
|
+
cachedTextureViews = [];
|
|
914
|
+
cachedFramebuffers = [];
|
|
915
|
+
lastFrameIds = new Map();
|
|
916
|
+
lastExternalTextureFrameIds = new Map();
|
|
917
|
+
consumedExternalTextures = new WeakSet();
|
|
918
|
+
destroyed = false;
|
|
919
|
+
/** String tag used by object inspectors and developer tools. */
|
|
920
|
+
get [Symbol.toStringTag]() {
|
|
921
|
+
return 'CompiledGPUCommandGraph';
|
|
922
|
+
}
|
|
923
|
+
/** Compact graph summary that avoids recursively printing GPU resources. */
|
|
924
|
+
toString() {
|
|
925
|
+
const state = this.destroyed ? 'destroyed' : 'active';
|
|
926
|
+
return `${this[Symbol.toStringTag]}:"${this.id}":${this.stats.nodeOrder.length} nodes:${this.stats.physicalTransientResourceBytes}B transient:${state}`;
|
|
927
|
+
}
|
|
928
|
+
/** Compact serialization for assertion diffs and structured debug logs. */
|
|
929
|
+
toJSON() {
|
|
930
|
+
return this.toString();
|
|
931
|
+
}
|
|
932
|
+
/** @internal */
|
|
933
|
+
constructor(props) {
|
|
934
|
+
this.device = props.device;
|
|
935
|
+
this.id = props.id;
|
|
936
|
+
this.buffers = props.buffers;
|
|
937
|
+
this.textures = props.textures;
|
|
938
|
+
this.externalTextures = props.externalTextures;
|
|
939
|
+
this.compiledNodes = props.compiledNodes;
|
|
940
|
+
for (const { node } of this.compiledNodes) {
|
|
941
|
+
for (const resource of node.resources ?? []) {
|
|
942
|
+
if (isGraphBufferUse(resource)) {
|
|
943
|
+
const handle = getBufferHandle(resource.buffer);
|
|
944
|
+
if (!handle.transient) {
|
|
945
|
+
this.activeImportedBufferHandles.add(handle);
|
|
946
|
+
if (resource.usage === 'storage-write' ||
|
|
947
|
+
resource.usage === 'storage-read-write' ||
|
|
948
|
+
resource.usage === 'copy-destination') {
|
|
949
|
+
this.writableImportedBufferHandles.add(handle);
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
else if (isGraphTextureUse(resource)) {
|
|
954
|
+
const handle = getTextureHandle(resource.texture);
|
|
955
|
+
if (!handle.transient) {
|
|
956
|
+
this.activeImportedTextureHandles.add(handle);
|
|
957
|
+
if (resource.usage === 'storage-write' ||
|
|
958
|
+
resource.usage === 'storage-read-write' ||
|
|
959
|
+
resource.usage === 'render-attachment' ||
|
|
960
|
+
resource.usage === 'copy-destination') {
|
|
961
|
+
this.writableImportedTextureHandles.add(handle);
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
this.transientBuffers = props.transientBuffers;
|
|
968
|
+
this.transientTextures = props.transientTextures;
|
|
969
|
+
this.bufferTransientAllocations = props.bufferTransientAllocations;
|
|
970
|
+
this.textureTransientAllocations = props.textureTransientAllocations;
|
|
971
|
+
this.stats = props.stats;
|
|
972
|
+
this.preflight = props.preflight;
|
|
973
|
+
this.capabilities = getGPUCommandGraphCapabilities(this.device);
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
* Records every graph node into a caller-owned command encoder.
|
|
977
|
+
*
|
|
978
|
+
* Imported resources are resolved from per-encoding overrides first, then from defaults supplied
|
|
979
|
+
* at graph construction. Distinct active buffer or texture handles must not alias one physical
|
|
980
|
+
* resource when either handle is written. This method records only; it does not finish or submit
|
|
981
|
+
* the encoder.
|
|
982
|
+
*
|
|
983
|
+
* @param commandEncoder Encoder that receives all graph commands.
|
|
984
|
+
* @param options Per-encoding parameters and optional imported-resource replacements.
|
|
985
|
+
*/
|
|
986
|
+
encode(commandEncoder, options) {
|
|
987
|
+
return this.encodeNodeRange(commandEncoder, options, 0, this.compiledNodes.length);
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* Creates an immutable dry-run plan for one resumable graph invocation.
|
|
991
|
+
*
|
|
992
|
+
* The plan exposes submission count, static cost totals, and indivisible oversized steps before
|
|
993
|
+
* any commands are encoded. Applications can therefore reject, explain, or retune expensive
|
|
994
|
+
* work without first placing it on the GPU queue.
|
|
995
|
+
*/
|
|
996
|
+
getExecutionPlan(budget, options = {}) {
|
|
997
|
+
return getGPUCommandGraphExecutionPlan(this.preflight, budget, options);
|
|
998
|
+
}
|
|
999
|
+
/**
|
|
1000
|
+
* Creates a resumable dependency-ordered execution governed by static workload estimates.
|
|
1001
|
+
*
|
|
1002
|
+
* The graph does not own a frame loop or submit command buffers. Callers encode and submit one
|
|
1003
|
+
* step whenever their scheduler admits more work. Nodes without an invocation estimate are
|
|
1004
|
+
* treated as zero-cost, while an individual node larger than the budget is encoded alone to
|
|
1005
|
+
* guarantee progress.
|
|
1006
|
+
*/
|
|
1007
|
+
createExecution(budget, options = {}) {
|
|
1008
|
+
return new GPUCommandGraphExecution({
|
|
1009
|
+
plan: this.getExecutionPlan(budget, options),
|
|
1010
|
+
budget,
|
|
1011
|
+
encodeNodeRange: (commandEncoder, options, firstNodeIndex, nextNodeIndex) => this.encodeNodeRange(commandEncoder, options, firstNodeIndex, nextNodeIndex)
|
|
1012
|
+
});
|
|
1013
|
+
}
|
|
1014
|
+
encodeNodeRange(commandEncoder, options, firstNodeIndex, nextNodeIndex) {
|
|
1015
|
+
if (this.destroyed) {
|
|
1016
|
+
throw new Error(`CompiledGPUCommandGraph "${this.id}" has been destroyed`);
|
|
1017
|
+
}
|
|
1018
|
+
assertDeviceAvailable(this.device, 'encoding');
|
|
1019
|
+
if (commandEncoder.device !== this.device) {
|
|
1020
|
+
throw new Error('GPUCommandGraph command encoder must belong to the graph device');
|
|
1021
|
+
}
|
|
1022
|
+
const encodingStartTime = getTimestampMilliseconds();
|
|
1023
|
+
const importedBuffers = this.resolveImportedBuffers(options.buffers ?? {});
|
|
1024
|
+
validateEncodingFrameId(options.frameTextures ?? {}, options.externalTextures ?? {});
|
|
1025
|
+
const importedTextureResult = this.resolveImportedTextures(options.textures ?? {}, options.frameTextures ?? {});
|
|
1026
|
+
const externalTextureResult = this.resolveExternalTextures(options.externalTextures ?? {});
|
|
1027
|
+
for (const [handle, nextFrameId] of importedTextureResult.frameIds) {
|
|
1028
|
+
this.lastFrameIds.set(handle, nextFrameId);
|
|
1029
|
+
}
|
|
1030
|
+
for (const [handle, nextFrameId] of externalTextureResult.frameIds) {
|
|
1031
|
+
this.lastExternalTextureFrameIds.set(handle, nextFrameId);
|
|
1032
|
+
}
|
|
1033
|
+
for (const texture of externalTextureResult.textures.values()) {
|
|
1034
|
+
this.consumedExternalTextures.add(texture);
|
|
1035
|
+
}
|
|
1036
|
+
const importedTextures = importedTextureResult.textures;
|
|
1037
|
+
const getBuffer = (bufferOrView) => {
|
|
1038
|
+
const handle = getBufferHandle(bufferOrView);
|
|
1039
|
+
const buffer = handle.transient
|
|
1040
|
+
? this.transientBuffers.get(handle)
|
|
1041
|
+
: importedBuffers.get(handle);
|
|
1042
|
+
if (!buffer) {
|
|
1043
|
+
throw new Error(`GPUCommandGraph buffer "${handle.id}" is not bound`);
|
|
1044
|
+
}
|
|
1045
|
+
return buffer;
|
|
1046
|
+
};
|
|
1047
|
+
const getTexture = (textureOrView) => {
|
|
1048
|
+
const handle = getTextureHandle(textureOrView);
|
|
1049
|
+
const texture = handle.transient
|
|
1050
|
+
? this.transientTextures.get(handle)
|
|
1051
|
+
: importedTextures.get(handle);
|
|
1052
|
+
if (!texture) {
|
|
1053
|
+
throw new Error(`GPUCommandGraph texture "${handle.id}" is not bound`);
|
|
1054
|
+
}
|
|
1055
|
+
return texture;
|
|
1056
|
+
};
|
|
1057
|
+
const getTextureView = (textureOrView) => {
|
|
1058
|
+
const texture = getTexture(textureOrView);
|
|
1059
|
+
if (textureOrView instanceof GraphTextureHandle || isDefaultGraphTextureView(textureOrView)) {
|
|
1060
|
+
return texture.view;
|
|
1061
|
+
}
|
|
1062
|
+
if (textureOrView.texture.frameScoped) {
|
|
1063
|
+
const frameId = this.lastFrameIds.get(textureOrView.texture);
|
|
1064
|
+
for (let index = this.cachedTextureViews.length - 1; index >= 0; index--) {
|
|
1065
|
+
const entry = this.cachedTextureViews[index];
|
|
1066
|
+
if (entry.logicalView === textureOrView && entry.frameId !== frameId) {
|
|
1067
|
+
this.destroyFramebuffersUsingView(entry.view);
|
|
1068
|
+
entry.view.destroy();
|
|
1069
|
+
this.cachedTextureViews.splice(index, 1);
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
const cached = this.cachedTextureViews.find(entry => entry.logicalView === textureOrView &&
|
|
1074
|
+
entry.texture === texture &&
|
|
1075
|
+
(!textureOrView.texture.frameScoped ||
|
|
1076
|
+
entry.frameId === this.lastFrameIds.get(textureOrView.texture)));
|
|
1077
|
+
if (cached) {
|
|
1078
|
+
return cached.view;
|
|
1079
|
+
}
|
|
1080
|
+
const view = texture.createView({
|
|
1081
|
+
format: textureOrView.format,
|
|
1082
|
+
dimension: textureOrView.dimension,
|
|
1083
|
+
aspect: textureOrView.aspect,
|
|
1084
|
+
baseMipLevel: textureOrView.baseMipLevel,
|
|
1085
|
+
mipLevelCount: textureOrView.mipLevelCount,
|
|
1086
|
+
baseArrayLayer: textureOrView.baseArrayLayer,
|
|
1087
|
+
arrayLayerCount: textureOrView.arrayLayerCount
|
|
1088
|
+
});
|
|
1089
|
+
this.cachedTextureViews.push({
|
|
1090
|
+
logicalView: textureOrView,
|
|
1091
|
+
texture,
|
|
1092
|
+
view,
|
|
1093
|
+
...(textureOrView.texture.frameScoped
|
|
1094
|
+
? { frameId: this.lastFrameIds.get(textureOrView.texture) }
|
|
1095
|
+
: {})
|
|
1096
|
+
});
|
|
1097
|
+
return view;
|
|
1098
|
+
};
|
|
1099
|
+
const getExternalTexture = (handle) => {
|
|
1100
|
+
const texture = externalTextureResult.textures.get(handle);
|
|
1101
|
+
if (!texture) {
|
|
1102
|
+
throw new Error(`GPUCommandGraph external texture "${handle.id}" is not bound`);
|
|
1103
|
+
}
|
|
1104
|
+
return texture;
|
|
1105
|
+
};
|
|
1106
|
+
const baseContext = {
|
|
1107
|
+
commandEncoder,
|
|
1108
|
+
parameters: options.parameters,
|
|
1109
|
+
getBuffer,
|
|
1110
|
+
getTexture,
|
|
1111
|
+
getTextureView,
|
|
1112
|
+
getExternalTexture
|
|
1113
|
+
};
|
|
1114
|
+
const encodedNodes = [];
|
|
1115
|
+
let activeComputePass;
|
|
1116
|
+
let computePassCount = 0;
|
|
1117
|
+
let coalesceComputePasses = options.coalesceComputePasses !== false && commandEncoder.getTimeProfilingQuerySet() === null;
|
|
1118
|
+
const endActiveComputePass = () => {
|
|
1119
|
+
const computePass = activeComputePass;
|
|
1120
|
+
activeComputePass = undefined;
|
|
1121
|
+
computePass?.end();
|
|
1122
|
+
};
|
|
1123
|
+
try {
|
|
1124
|
+
for (let nodeIndex = firstNodeIndex; nodeIndex < nextNodeIndex; nodeIndex++) {
|
|
1125
|
+
const { node, executable } = this.compiledNodes[nodeIndex];
|
|
1126
|
+
const nodeStartTime = getTimestampMilliseconds();
|
|
1127
|
+
if (node.condition?.source === 'cpu') {
|
|
1128
|
+
let shouldExecute = false;
|
|
1129
|
+
try {
|
|
1130
|
+
shouldExecute = node.condition.evaluate(options.parameters);
|
|
1131
|
+
}
|
|
1132
|
+
catch (error) {
|
|
1133
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
1134
|
+
throw new Error(`GPUCommandGraph CPU condition "${node.condition.id}" failed for node "${node.id}": ${message}`);
|
|
1135
|
+
}
|
|
1136
|
+
if (!shouldExecute) {
|
|
1137
|
+
const nodeEndTime = getTimestampMilliseconds();
|
|
1138
|
+
encodedNodes.push({
|
|
1139
|
+
stats: {
|
|
1140
|
+
id: node.id,
|
|
1141
|
+
description: node.description,
|
|
1142
|
+
resources: this.preflight.nodes[nodeIndex].resources,
|
|
1143
|
+
operation: node.workload?.operation,
|
|
1144
|
+
type: node.type,
|
|
1145
|
+
cpuEncodeStartTimeMilliseconds: nodeStartTime,
|
|
1146
|
+
cpuEncodeEndTimeMilliseconds: nodeEndTime,
|
|
1147
|
+
cpuEncodeTimeMilliseconds: nodeEndTime - nodeStartTime,
|
|
1148
|
+
hasGPUTimestamps: false,
|
|
1149
|
+
condition: { id: node.condition.id, source: 'cpu', outcome: 'skipped' }
|
|
1150
|
+
}
|
|
1151
|
+
});
|
|
1152
|
+
continue;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
let timestamp;
|
|
1156
|
+
switch (node.type) {
|
|
1157
|
+
case 'compute': {
|
|
1158
|
+
if (!activeComputePass) {
|
|
1159
|
+
activeComputePass = commandEncoder.beginComputePass({ id: node.id });
|
|
1160
|
+
computePassCount++;
|
|
1161
|
+
}
|
|
1162
|
+
const computePass = activeComputePass;
|
|
1163
|
+
timestamp = getPassTimestamp(computePass, commandEncoder);
|
|
1164
|
+
if (timestamp) {
|
|
1165
|
+
coalesceComputePasses = false;
|
|
1166
|
+
}
|
|
1167
|
+
computePass.pushDebugGroup(node.id);
|
|
1168
|
+
try {
|
|
1169
|
+
const gpuCondition = node.condition?.source === 'gpu' ? node.condition : undefined;
|
|
1170
|
+
const conditionalPass = gpuCondition
|
|
1171
|
+
? makeGPUIndirectConditionalComputePass(computePass, getBuffer(gpuCondition.buffer), gpuCondition.byteOffset ?? 0, node.id)
|
|
1172
|
+
: undefined;
|
|
1173
|
+
executable.encode({
|
|
1174
|
+
...baseContext,
|
|
1175
|
+
computePass: conditionalPass?.computePass ?? computePass
|
|
1176
|
+
});
|
|
1177
|
+
conditionalPass?.assertDispatched();
|
|
1178
|
+
}
|
|
1179
|
+
finally {
|
|
1180
|
+
computePass.popDebugGroup();
|
|
1181
|
+
}
|
|
1182
|
+
if (!coalesceComputePasses) {
|
|
1183
|
+
endActiveComputePass();
|
|
1184
|
+
}
|
|
1185
|
+
break;
|
|
1186
|
+
}
|
|
1187
|
+
case 'render': {
|
|
1188
|
+
endActiveComputePass();
|
|
1189
|
+
const renderExecutable = executable;
|
|
1190
|
+
const renderPassProps = renderExecutable.getRenderPassProps?.(baseContext) ?? {
|
|
1191
|
+
id: node.id
|
|
1192
|
+
};
|
|
1193
|
+
if (node.attachments && renderPassProps.framebuffer !== undefined) {
|
|
1194
|
+
throw new Error(`GPUCommandGraph render node "${node.id}" cannot supply framebuffer with graph attachments`);
|
|
1195
|
+
}
|
|
1196
|
+
if (node.attachments?.resolveTargets && renderPassProps.resolveTargets !== undefined) {
|
|
1197
|
+
throw new Error(`GPUCommandGraph render node "${node.id}" cannot supply resolveTargets with graph attachments`);
|
|
1198
|
+
}
|
|
1199
|
+
const framebuffer = node.attachments
|
|
1200
|
+
? this.getFramebuffer(node.id, node.attachments, getTextureView)
|
|
1201
|
+
: undefined;
|
|
1202
|
+
const resolveTargets = node.attachments?.resolveTargets?.map(target => target ? getTextureView(target) : null);
|
|
1203
|
+
const renderPass = commandEncoder.beginRenderPass({
|
|
1204
|
+
...renderPassProps,
|
|
1205
|
+
...(framebuffer ? { framebuffer } : {}),
|
|
1206
|
+
...(resolveTargets ? { resolveTargets } : {})
|
|
1207
|
+
});
|
|
1208
|
+
timestamp = getPassTimestamp(renderPass, commandEncoder);
|
|
1209
|
+
renderPass.pushDebugGroup(node.id);
|
|
1210
|
+
try {
|
|
1211
|
+
renderExecutable.encode({ ...baseContext, renderPass });
|
|
1212
|
+
}
|
|
1213
|
+
finally {
|
|
1214
|
+
renderPass.popDebugGroup();
|
|
1215
|
+
renderPass.end();
|
|
1216
|
+
}
|
|
1217
|
+
break;
|
|
1218
|
+
}
|
|
1219
|
+
case 'copy':
|
|
1220
|
+
endActiveComputePass();
|
|
1221
|
+
executable.encode(baseContext);
|
|
1222
|
+
break;
|
|
1223
|
+
}
|
|
1224
|
+
const nodeEndTime = getTimestampMilliseconds();
|
|
1225
|
+
encodedNodes.push({
|
|
1226
|
+
stats: {
|
|
1227
|
+
id: node.id,
|
|
1228
|
+
description: node.description,
|
|
1229
|
+
resources: this.preflight.nodes[nodeIndex].resources,
|
|
1230
|
+
operation: node.workload?.operation,
|
|
1231
|
+
type: node.type,
|
|
1232
|
+
cpuEncodeStartTimeMilliseconds: nodeStartTime,
|
|
1233
|
+
cpuEncodeEndTimeMilliseconds: nodeEndTime,
|
|
1234
|
+
cpuEncodeTimeMilliseconds: nodeEndTime - nodeStartTime,
|
|
1235
|
+
hasGPUTimestamps: timestamp !== undefined,
|
|
1236
|
+
...(node.condition
|
|
1237
|
+
? {
|
|
1238
|
+
condition: {
|
|
1239
|
+
id: node.condition.id,
|
|
1240
|
+
source: node.condition.source,
|
|
1241
|
+
outcome: node.condition.source === 'gpu'
|
|
1242
|
+
? 'gpu-resolved'
|
|
1243
|
+
: 'executed'
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
: {})
|
|
1247
|
+
},
|
|
1248
|
+
timestamp
|
|
1249
|
+
});
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
finally {
|
|
1253
|
+
endActiveComputePass();
|
|
1254
|
+
}
|
|
1255
|
+
const encodingEndTime = getTimestampMilliseconds();
|
|
1256
|
+
return new GPUCommandGraphEncoding(encodedNodes, encodingEndTime - encodingStartTime, computePassCount, encodingStartTime, encodingEndTime, async (nodeId, resourceIndex) => {
|
|
1257
|
+
if (this.destroyed)
|
|
1258
|
+
throw new Error('Graph has been destroyed.');
|
|
1259
|
+
const nodeIndex = this.compiledNodes.findIndex(({ node }) => node.id === nodeId);
|
|
1260
|
+
const use = this.compiledNodes[nodeIndex]?.node.resources?.[resourceIndex];
|
|
1261
|
+
const summary = this.preflight.nodes[nodeIndex]?.resources?.[resourceIndex];
|
|
1262
|
+
if (!use || !summary)
|
|
1263
|
+
throw new Error('Resource is unavailable.');
|
|
1264
|
+
if ('externalTexture' in use)
|
|
1265
|
+
throw new Error('External images cannot be read back.');
|
|
1266
|
+
const handle = 'buffer' in use ? getBufferHandle(use.buffer) : getTextureHandle(use.texture);
|
|
1267
|
+
if ('frameScoped' in handle && handle.frameScoped)
|
|
1268
|
+
throw new Error('Frame textures expire after presentation.');
|
|
1269
|
+
const resource = 'buffer' in use ? getBuffer(use.buffer) : getTexture(use.texture);
|
|
1270
|
+
// A pooled allocation may now hold a later logical resource. Never label those bytes as this resource.
|
|
1271
|
+
const aliases = resource instanceof Buffer ? this.transientBuffers : this.transientTextures;
|
|
1272
|
+
if (handle.transient &&
|
|
1273
|
+
[...aliases].some(([candidate, allocation]) => candidate !== handle && allocation === resource))
|
|
1274
|
+
throw new Error('Transient allocation is reused; logical contents are no longer available.');
|
|
1275
|
+
return readGPUResourcePreview(resource, summary);
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
/**
|
|
1279
|
+
* Releases compiled node state, cached views and framebuffers, and graph-owned transients.
|
|
1280
|
+
*
|
|
1281
|
+
* Imported resources are borrowed and are never destroyed. Repeated calls are safe.
|
|
1282
|
+
*/
|
|
1283
|
+
destroy() {
|
|
1284
|
+
if (this.destroyed) {
|
|
1285
|
+
return;
|
|
1286
|
+
}
|
|
1287
|
+
for (const { executable } of this.compiledNodes) {
|
|
1288
|
+
executable.destroy?.();
|
|
1289
|
+
}
|
|
1290
|
+
for (const cached of this.cachedFramebuffers) {
|
|
1291
|
+
cached.framebuffer.destroy();
|
|
1292
|
+
}
|
|
1293
|
+
for (const cached of this.cachedTextureViews) {
|
|
1294
|
+
cached.view.destroy();
|
|
1295
|
+
}
|
|
1296
|
+
for (const allocation of this.bufferTransientAllocations) {
|
|
1297
|
+
allocation.buffer?.destroy();
|
|
1298
|
+
}
|
|
1299
|
+
for (const allocation of this.textureTransientAllocations) {
|
|
1300
|
+
allocation.texture?.destroy();
|
|
1301
|
+
}
|
|
1302
|
+
this.destroyed = true;
|
|
1303
|
+
}
|
|
1304
|
+
resolveImportedBuffers(overrides) {
|
|
1305
|
+
const resolved = new Map();
|
|
1306
|
+
const activePhysicalBuffers = new Map();
|
|
1307
|
+
for (const [id, handle] of this.buffers) {
|
|
1308
|
+
if (handle.transient) {
|
|
1309
|
+
continue;
|
|
1310
|
+
}
|
|
1311
|
+
const importedBuffer = overrides[id] ?? handle.defaultBuffer;
|
|
1312
|
+
if (!importedBuffer) {
|
|
1313
|
+
throw new Error(`GPUCommandGraph imported buffer "${id}" is required`);
|
|
1314
|
+
}
|
|
1315
|
+
validateImportedBuffer(importedBuffer, handle, this.device);
|
|
1316
|
+
const coreBuffer = getCoreBuffer(importedBuffer);
|
|
1317
|
+
if (this.activeImportedBufferHandles.has(handle)) {
|
|
1318
|
+
const physicalHandle = coreBuffer.handle;
|
|
1319
|
+
const physicalBuffer = (typeof physicalHandle === 'object' && physicalHandle !== null) ||
|
|
1320
|
+
typeof physicalHandle === 'function'
|
|
1321
|
+
? physicalHandle
|
|
1322
|
+
: coreBuffer;
|
|
1323
|
+
const previousHandle = activePhysicalBuffers.get(physicalBuffer);
|
|
1324
|
+
if (previousHandle &&
|
|
1325
|
+
(this.writableImportedBufferHandles.has(previousHandle) ||
|
|
1326
|
+
this.writableImportedBufferHandles.has(handle))) {
|
|
1327
|
+
throw new Error(`GPUCommandGraph imported buffers "${previousHandle.id}" and "${id}" resolve to the same physical buffer`);
|
|
1328
|
+
}
|
|
1329
|
+
if (!previousHandle) {
|
|
1330
|
+
activePhysicalBuffers.set(physicalBuffer, handle);
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
resolved.set(handle, coreBuffer);
|
|
1334
|
+
}
|
|
1335
|
+
for (const id of Object.keys(overrides)) {
|
|
1336
|
+
const handle = this.buffers.get(id);
|
|
1337
|
+
if (!handle || handle.transient) {
|
|
1338
|
+
throw new Error(`GPUCommandGraph has no imported buffer named "${id}"`);
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
return resolved;
|
|
1342
|
+
}
|
|
1343
|
+
resolveImportedTextures(overrides, frameBindings) {
|
|
1344
|
+
const resolved = new Map();
|
|
1345
|
+
const nextFrameIds = new Map();
|
|
1346
|
+
for (const [id, handle] of this.textures) {
|
|
1347
|
+
if (handle.transient) {
|
|
1348
|
+
continue;
|
|
1349
|
+
}
|
|
1350
|
+
if (handle.frameScoped) {
|
|
1351
|
+
const binding = frameBindings[id];
|
|
1352
|
+
if (!binding) {
|
|
1353
|
+
throw new Error(`GPUCommandGraph frame texture "${id}" is required`);
|
|
1354
|
+
}
|
|
1355
|
+
const lastFrameId = this.lastFrameIds.get(handle);
|
|
1356
|
+
if (lastFrameId !== undefined && binding.frameId <= lastFrameId) {
|
|
1357
|
+
throw new Error(`GPUCommandGraph frame texture "${id}" frameId ${binding.frameId} is stale; expected greater than ${lastFrameId}`);
|
|
1358
|
+
}
|
|
1359
|
+
validateImportedTexture(binding.texture, handle, this.device);
|
|
1360
|
+
resolved.set(handle, getCoreTexture(binding.texture));
|
|
1361
|
+
nextFrameIds.set(handle, binding.frameId);
|
|
1362
|
+
continue;
|
|
1363
|
+
}
|
|
1364
|
+
const importedTexture = overrides[id] ?? handle.defaultTexture;
|
|
1365
|
+
if (!importedTexture) {
|
|
1366
|
+
throw new Error(`GPUCommandGraph imported texture "${id}" is required`);
|
|
1367
|
+
}
|
|
1368
|
+
validateImportedTexture(importedTexture, handle, this.device);
|
|
1369
|
+
resolved.set(handle, getCoreTexture(importedTexture));
|
|
1370
|
+
}
|
|
1371
|
+
for (const id of Object.keys(overrides)) {
|
|
1372
|
+
const handle = this.textures.get(id);
|
|
1373
|
+
if (!handle || handle.transient || handle.frameScoped) {
|
|
1374
|
+
throw new Error(`GPUCommandGraph has no imported texture named "${id}"`);
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
for (const id of Object.keys(frameBindings)) {
|
|
1378
|
+
const handle = this.textures.get(id);
|
|
1379
|
+
if (!handle?.frameScoped) {
|
|
1380
|
+
throw new Error(`GPUCommandGraph has no frame texture named "${id}"`);
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
const activePhysicalTextures = new Map();
|
|
1384
|
+
for (const [handle, texture] of resolved) {
|
|
1385
|
+
if (!this.activeImportedTextureHandles.has(handle)) {
|
|
1386
|
+
continue;
|
|
1387
|
+
}
|
|
1388
|
+
const physicalHandle = texture.handle;
|
|
1389
|
+
const physicalTexture = (typeof physicalHandle === 'object' && physicalHandle !== null) ||
|
|
1390
|
+
typeof physicalHandle === 'function'
|
|
1391
|
+
? physicalHandle
|
|
1392
|
+
: texture;
|
|
1393
|
+
const previousHandle = activePhysicalTextures.get(physicalTexture);
|
|
1394
|
+
if (previousHandle &&
|
|
1395
|
+
(this.writableImportedTextureHandles.has(previousHandle) ||
|
|
1396
|
+
this.writableImportedTextureHandles.has(handle))) {
|
|
1397
|
+
throw new Error(`GPUCommandGraph imported textures "${previousHandle.id}" and "${handle.id}" resolve to the same physical texture`);
|
|
1398
|
+
}
|
|
1399
|
+
if (!previousHandle) {
|
|
1400
|
+
activePhysicalTextures.set(physicalTexture, handle);
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
return { textures: resolved, frameIds: nextFrameIds };
|
|
1404
|
+
}
|
|
1405
|
+
resolveExternalTextures(bindings) {
|
|
1406
|
+
const textures = new Map();
|
|
1407
|
+
const frameIds = new Map();
|
|
1408
|
+
for (const [id, handle] of this.externalTextures) {
|
|
1409
|
+
const binding = bindings[id];
|
|
1410
|
+
if (!binding) {
|
|
1411
|
+
throw new Error(`GPUCommandGraph external texture "${id}" is required`);
|
|
1412
|
+
}
|
|
1413
|
+
const lastFrameId = this.lastExternalTextureFrameIds.get(handle);
|
|
1414
|
+
if (lastFrameId !== undefined && binding.frameId <= lastFrameId) {
|
|
1415
|
+
throw new Error(`GPUCommandGraph external texture "${id}" frameId ${binding.frameId} is stale; expected greater than ${lastFrameId}`);
|
|
1416
|
+
}
|
|
1417
|
+
if (this.consumedExternalTextures.has(binding.texture)) {
|
|
1418
|
+
throw new Error(`GPUCommandGraph external texture "${id}" requires a fresh binding for each frame`);
|
|
1419
|
+
}
|
|
1420
|
+
validateImportedExternalTexture(binding.texture, handle, this.device);
|
|
1421
|
+
textures.set(handle, binding.texture);
|
|
1422
|
+
frameIds.set(handle, binding.frameId);
|
|
1423
|
+
}
|
|
1424
|
+
for (const id of Object.keys(bindings)) {
|
|
1425
|
+
if (!this.externalTextures.has(id)) {
|
|
1426
|
+
throw new Error(`GPUCommandGraph has no external texture named "${id}"`);
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
return { textures, frameIds };
|
|
1430
|
+
}
|
|
1431
|
+
getFramebuffer(nodeId, attachments, getTextureView) {
|
|
1432
|
+
const colorAttachments = attachments.colorAttachments.map(getTextureView);
|
|
1433
|
+
const depthStencilAttachment = attachments.depthStencilAttachment
|
|
1434
|
+
? getTextureView(attachments.depthStencilAttachment)
|
|
1435
|
+
: undefined;
|
|
1436
|
+
const cached = this.cachedFramebuffers.find(entry => entry.nodeId === nodeId &&
|
|
1437
|
+
entry.depthStencilAttachment === depthStencilAttachment &&
|
|
1438
|
+
entry.colorAttachments.length === colorAttachments.length &&
|
|
1439
|
+
entry.colorAttachments.every((view, index) => view === colorAttachments[index]));
|
|
1440
|
+
if (cached) {
|
|
1441
|
+
return cached.framebuffer;
|
|
1442
|
+
}
|
|
1443
|
+
const firstLogicalAttachment = attachments.colorAttachments[0] ?? attachments.depthStencilAttachment;
|
|
1444
|
+
const framebuffer = this.device.createFramebuffer({
|
|
1445
|
+
id: `${this.id}-${nodeId}-framebuffer-${this.cachedFramebuffers.length}`,
|
|
1446
|
+
width: firstLogicalAttachment.width,
|
|
1447
|
+
height: firstLogicalAttachment.height,
|
|
1448
|
+
colorAttachments,
|
|
1449
|
+
depthStencilAttachment: depthStencilAttachment ?? null
|
|
1450
|
+
});
|
|
1451
|
+
this.cachedFramebuffers.push({
|
|
1452
|
+
nodeId,
|
|
1453
|
+
colorAttachments,
|
|
1454
|
+
depthStencilAttachment,
|
|
1455
|
+
framebuffer
|
|
1456
|
+
});
|
|
1457
|
+
return framebuffer;
|
|
1458
|
+
}
|
|
1459
|
+
destroyFramebuffersUsingView(view) {
|
|
1460
|
+
for (let index = this.cachedFramebuffers.length - 1; index >= 0; index--) {
|
|
1461
|
+
const cached = this.cachedFramebuffers[index];
|
|
1462
|
+
if (cached.depthStencilAttachment === view ||
|
|
1463
|
+
cached.colorAttachments.some(attachment => attachment === view)) {
|
|
1464
|
+
cached.framebuffer.destroy();
|
|
1465
|
+
this.cachedFramebuffers.splice(index, 1);
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
/** Unwraps a dynamic import to the concrete buffer used for validation and encoding. */
|
|
1471
|
+
function getCoreBuffer(buffer) {
|
|
1472
|
+
return buffer instanceof DynamicBuffer ? buffer.buffer : buffer;
|
|
1473
|
+
}
|
|
1474
|
+
/** Returns the exclusive physical byte offset required by one typed GPU data import. */
|
|
1475
|
+
function getGPUDataEndByteOffset(data) {
|
|
1476
|
+
const byteLength = data.length === 0 ? 0 : (data.length - 1) * data.byteStride + data.rowByteLength;
|
|
1477
|
+
return data.byteOffset + byteLength;
|
|
1478
|
+
}
|
|
1479
|
+
/** Returns whether one canonical handle covers a typed import's capacity and usage. */
|
|
1480
|
+
function doesGraphBufferHandleCoverRequirements(handle, requirements) {
|
|
1481
|
+
return (handle.byteLength >= requirements.byteLength &&
|
|
1482
|
+
(handle.usage & requirements.usage) === requirements.usage);
|
|
1483
|
+
}
|
|
1484
|
+
/** Unwraps a ready dynamic import to the concrete texture used for validation and encoding. */
|
|
1485
|
+
function getCoreTexture(texture) {
|
|
1486
|
+
if (texture instanceof DynamicTexture) {
|
|
1487
|
+
if (!texture.isReady) {
|
|
1488
|
+
throw new Error(`GPUCommandGraph dynamic texture "${texture.id}" is not ready`);
|
|
1489
|
+
}
|
|
1490
|
+
return texture.texture;
|
|
1491
|
+
}
|
|
1492
|
+
return texture;
|
|
1493
|
+
}
|
|
1494
|
+
/** Ensures all ephemeral image imports belong to one explicit application frame. */
|
|
1495
|
+
function validateEncodingFrameId(frameTextures, externalTextures) {
|
|
1496
|
+
let encodingFrameId;
|
|
1497
|
+
for (const [id, binding] of [
|
|
1498
|
+
...Object.entries(frameTextures),
|
|
1499
|
+
...Object.entries(externalTextures)
|
|
1500
|
+
]) {
|
|
1501
|
+
if (!Number.isSafeInteger(binding.frameId) || binding.frameId < 0) {
|
|
1502
|
+
throw new Error(`GPUCommandGraph frame resource "${id}" requires a valid frameId`);
|
|
1503
|
+
}
|
|
1504
|
+
if (encodingFrameId !== undefined && binding.frameId !== encodingFrameId) {
|
|
1505
|
+
throw new Error('GPUCommandGraph frame resources must share one frameId per encoding');
|
|
1506
|
+
}
|
|
1507
|
+
encodingFrameId = binding.frameId;
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
/** Returns a portable timestamp pair recorded by one render or compute pass. */
|
|
1511
|
+
function getPassTimestamp(pass, commandEncoder) {
|
|
1512
|
+
const { timestampQuerySet, beginTimestampIndex, endTimestampIndex } = pass.props;
|
|
1513
|
+
return timestampQuerySet &&
|
|
1514
|
+
Number.isSafeInteger(beginTimestampIndex) &&
|
|
1515
|
+
Number.isSafeInteger(endTimestampIndex) &&
|
|
1516
|
+
beginTimestampIndex >= 0 &&
|
|
1517
|
+
endTimestampIndex > beginTimestampIndex
|
|
1518
|
+
? {
|
|
1519
|
+
querySet: timestampQuerySet,
|
|
1520
|
+
snapshot: timestampQuerySet.device.type === 'webgpu'
|
|
1521
|
+
? commandEncoder.captureTimestampQuerySet?.(timestampQuerySet)
|
|
1522
|
+
: undefined,
|
|
1523
|
+
beginIndex: beginTimestampIndex,
|
|
1524
|
+
endIndex: endTimestampIndex
|
|
1525
|
+
}
|
|
1526
|
+
: undefined;
|
|
1527
|
+
}
|
|
1528
|
+
/** Captures graph-relevant adapter limits without requiring backend-specific handles. */
|
|
1529
|
+
function getGPUCommandGraphCapabilities(device) {
|
|
1530
|
+
return Object.freeze({
|
|
1531
|
+
timestampQueries: device.features.has('timestamp-query'),
|
|
1532
|
+
subgroups: device.features.has('subgroups'),
|
|
1533
|
+
subgroupId: device.wgslLanguageFeatures.has('subgroup_id'),
|
|
1534
|
+
subgroupMinSize: device.info.subgroupMinSize,
|
|
1535
|
+
subgroupMaxSize: device.info.subgroupMaxSize,
|
|
1536
|
+
softwareAdapter: device.info.gpu === 'software' ||
|
|
1537
|
+
device.info.gpuType === 'cpu' ||
|
|
1538
|
+
Boolean(device.info.fallback),
|
|
1539
|
+
maxBufferByteLength: device.limits.maxBufferSize,
|
|
1540
|
+
maxStorageBufferBindingByteLength: device.limits.maxStorageBufferBindingSize,
|
|
1541
|
+
maxComputeInvocationsPerWorkgroup: device.limits.maxComputeInvocationsPerWorkgroup,
|
|
1542
|
+
maxComputeWorkgroupsPerDimension: device.limits.maxComputeWorkgroupsPerDimension
|
|
1543
|
+
});
|
|
1544
|
+
}
|
|
1545
|
+
/** Rejects graph work after a WebGPU device has been lost. */
|
|
1546
|
+
function assertDeviceAvailable(device, operation) {
|
|
1547
|
+
if (device.isLost) {
|
|
1548
|
+
throw new Error(`GPUCommandGraph cannot perform ${operation} after device loss`);
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
/** Returns a monotonic timestamp for synchronous CPU encoding diagnostics. */
|
|
1552
|
+
function getTimestampMilliseconds() {
|
|
1553
|
+
return globalThis.performance?.now() ?? Date.now();
|
|
1554
|
+
}
|
|
1555
|
+
/** Validates graph identity, capacity, and usage fields for a logical buffer. */
|
|
1556
|
+
function validateGraphBufferDescriptor(descriptor, device) {
|
|
1557
|
+
if (!descriptor.id) {
|
|
1558
|
+
throw new Error('GPUCommandGraph buffer id is required');
|
|
1559
|
+
}
|
|
1560
|
+
if (!Number.isSafeInteger(descriptor.byteLength) || descriptor.byteLength < 0) {
|
|
1561
|
+
throw new Error(`GPUCommandGraph buffer "${descriptor.id}" requires a valid byteLength`);
|
|
1562
|
+
}
|
|
1563
|
+
if (descriptor.byteLength > device.limits.maxBufferSize) {
|
|
1564
|
+
throw new Error(`GPUCommandGraph buffer "${descriptor.id}" exceeds the device buffer limit`);
|
|
1565
|
+
}
|
|
1566
|
+
if (!Number.isSafeInteger(descriptor.usage) || descriptor.usage <= 0) {
|
|
1567
|
+
throw new Error(`GPUCommandGraph buffer "${descriptor.id}" requires buffer usage flags`);
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
/** Validates the stable metadata used to check successive external-image snapshots. */
|
|
1571
|
+
function validateGraphExternalTextureDescriptor(descriptor, device) {
|
|
1572
|
+
if (!descriptor.id) {
|
|
1573
|
+
throw new Error('GPUCommandGraph external texture id is required');
|
|
1574
|
+
}
|
|
1575
|
+
for (const [name, value] of Object.entries({
|
|
1576
|
+
width: descriptor.width,
|
|
1577
|
+
height: descriptor.height
|
|
1578
|
+
})) {
|
|
1579
|
+
if (!Number.isSafeInteger(value) || value <= 0) {
|
|
1580
|
+
throw new Error(`GPUCommandGraph external texture "${descriptor.id}" ${name} must be a positive safe integer`);
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
if (descriptor.width > device.limits.maxTextureDimension2D ||
|
|
1584
|
+
descriptor.height > device.limits.maxTextureDimension2D) {
|
|
1585
|
+
throw new Error(`GPUCommandGraph external texture "${descriptor.id}" exceeds device dimension limits`);
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
/** Applies texture defaults and validates limits and dimension-specific invariants. */
|
|
1589
|
+
function normalizeGraphTextureDescriptor(descriptor, device) {
|
|
1590
|
+
if (!descriptor.id) {
|
|
1591
|
+
throw new Error('GPUCommandGraph texture id is required');
|
|
1592
|
+
}
|
|
1593
|
+
const dimension = descriptor.dimension ?? '2d';
|
|
1594
|
+
const depth = dimension === 'cube' ? 6 : (descriptor.depth ?? 1);
|
|
1595
|
+
const mipLevels = descriptor.mipLevels ?? 1;
|
|
1596
|
+
const samples = descriptor.samples ?? 1;
|
|
1597
|
+
for (const [name, value] of Object.entries({
|
|
1598
|
+
width: descriptor.width,
|
|
1599
|
+
height: descriptor.height,
|
|
1600
|
+
depth,
|
|
1601
|
+
mipLevels,
|
|
1602
|
+
samples
|
|
1603
|
+
})) {
|
|
1604
|
+
if (!Number.isSafeInteger(value) || value <= 0) {
|
|
1605
|
+
throw new Error(`GPUCommandGraph texture "${descriptor.id}" ${name} must be a positive safe integer`);
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
if (!Number.isSafeInteger(descriptor.usage) || descriptor.usage <= 0) {
|
|
1609
|
+
throw new Error(`GPUCommandGraph texture "${descriptor.id}" requires texture usage flags`);
|
|
1610
|
+
}
|
|
1611
|
+
if (!device.isTextureFormatSupported(descriptor.format)) {
|
|
1612
|
+
throw new Error(`GPUCommandGraph texture "${descriptor.id}" format ${descriptor.format} is unsupported`);
|
|
1613
|
+
}
|
|
1614
|
+
if (dimension === '1d' && (descriptor.height !== 1 || depth !== 1)) {
|
|
1615
|
+
throw new Error(`GPUCommandGraph 1d texture "${descriptor.id}" requires height and depth 1`);
|
|
1616
|
+
}
|
|
1617
|
+
if (dimension === 'cube' && descriptor.width !== descriptor.height) {
|
|
1618
|
+
throw new Error(`GPUCommandGraph cube texture "${descriptor.id}" must be square`);
|
|
1619
|
+
}
|
|
1620
|
+
if (dimension === 'cube-array' && (descriptor.width !== descriptor.height || depth % 6 !== 0)) {
|
|
1621
|
+
throw new Error(`GPUCommandGraph cube-array texture "${descriptor.id}" must be square with depth divisible by 6`);
|
|
1622
|
+
}
|
|
1623
|
+
if (mipLevels >
|
|
1624
|
+
device.getMipLevelCount(descriptor.width, descriptor.height, dimension === '3d' ? depth : 1)) {
|
|
1625
|
+
throw new Error(`GPUCommandGraph texture "${descriptor.id}" declares too many mip levels`);
|
|
1626
|
+
}
|
|
1627
|
+
const maximumWidth = dimension === '1d'
|
|
1628
|
+
? device.limits.maxTextureDimension1D
|
|
1629
|
+
: dimension === '3d'
|
|
1630
|
+
? device.limits.maxTextureDimension3D
|
|
1631
|
+
: device.limits.maxTextureDimension2D;
|
|
1632
|
+
const maximumHeight = dimension === '3d' ? device.limits.maxTextureDimension3D : device.limits.maxTextureDimension2D;
|
|
1633
|
+
const maximumDepth = dimension === '3d' ? device.limits.maxTextureDimension3D : device.limits.maxTextureArrayLayers;
|
|
1634
|
+
if (descriptor.width > maximumWidth ||
|
|
1635
|
+
descriptor.height > maximumHeight ||
|
|
1636
|
+
depth > maximumDepth) {
|
|
1637
|
+
throw new Error(`GPUCommandGraph texture "${descriptor.id}" exceeds device dimension limits`);
|
|
1638
|
+
}
|
|
1639
|
+
return {
|
|
1640
|
+
id: descriptor.id,
|
|
1641
|
+
format: descriptor.format,
|
|
1642
|
+
width: descriptor.width,
|
|
1643
|
+
height: descriptor.height,
|
|
1644
|
+
usage: descriptor.usage,
|
|
1645
|
+
dimension,
|
|
1646
|
+
depth,
|
|
1647
|
+
mipLevels,
|
|
1648
|
+
samples
|
|
1649
|
+
};
|
|
1650
|
+
}
|
|
1651
|
+
/** Applies view defaults, validates subresource bounds, and computes the selected extent. */
|
|
1652
|
+
function normalizeGraphTextureView(texture, props) {
|
|
1653
|
+
const dimension = props.dimension ?? texture.dimension;
|
|
1654
|
+
const aspect = props.aspect ?? 'all';
|
|
1655
|
+
const baseMipLevel = props.baseMipLevel ?? 0;
|
|
1656
|
+
const mipLevelCount = props.mipLevelCount ?? texture.mipLevels - baseMipLevel;
|
|
1657
|
+
const baseArrayLayer = props.baseArrayLayer ?? 0;
|
|
1658
|
+
const maximumArrayLayerCount = texture.dimension === '3d' ? 1 : texture.depth;
|
|
1659
|
+
const arrayLayerCount = props.arrayLayerCount ?? maximumArrayLayerCount - baseArrayLayer;
|
|
1660
|
+
for (const [name, value] of Object.entries({
|
|
1661
|
+
baseMipLevel,
|
|
1662
|
+
mipLevelCount,
|
|
1663
|
+
baseArrayLayer,
|
|
1664
|
+
arrayLayerCount
|
|
1665
|
+
})) {
|
|
1666
|
+
if (!Number.isSafeInteger(value) || value < 0) {
|
|
1667
|
+
throw new Error(`Graph texture view ${name} must be a non-negative safe integer`);
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
if (mipLevelCount === 0 || baseMipLevel + mipLevelCount > texture.mipLevels) {
|
|
1671
|
+
throw new Error(`Graph texture view exceeds texture "${texture.id}" mip levels`);
|
|
1672
|
+
}
|
|
1673
|
+
if (arrayLayerCount === 0 ||
|
|
1674
|
+
baseArrayLayer + arrayLayerCount > maximumArrayLayerCount ||
|
|
1675
|
+
(texture.dimension === '3d' && (baseArrayLayer !== 0 || arrayLayerCount !== 1))) {
|
|
1676
|
+
throw new Error(`Graph texture view exceeds texture "${texture.id}" array layers`);
|
|
1677
|
+
}
|
|
1678
|
+
const width = Math.max(1, texture.width >> baseMipLevel);
|
|
1679
|
+
const height = texture.dimension === '1d' ? 1 : Math.max(1, texture.height >> baseMipLevel);
|
|
1680
|
+
const depth = texture.dimension === '3d' ? Math.max(1, texture.depth >> baseMipLevel) : arrayLayerCount;
|
|
1681
|
+
return {
|
|
1682
|
+
dimension,
|
|
1683
|
+
aspect,
|
|
1684
|
+
baseMipLevel,
|
|
1685
|
+
mipLevelCount,
|
|
1686
|
+
baseArrayLayer,
|
|
1687
|
+
arrayLayerCount,
|
|
1688
|
+
width,
|
|
1689
|
+
height,
|
|
1690
|
+
depth
|
|
1691
|
+
};
|
|
1692
|
+
}
|
|
1693
|
+
/** Validates a strided logical range against its buffer capacity. */
|
|
1694
|
+
function validateGraphDataView(buffer, props) {
|
|
1695
|
+
for (const [name, value] of Object.entries(props)) {
|
|
1696
|
+
if (!Number.isSafeInteger(value) || value < 0) {
|
|
1697
|
+
throw new Error(`Graph data view ${name} must be a non-negative safe integer`);
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
if (props.length > 1 && props.byteStride === 0) {
|
|
1701
|
+
throw new Error('Graph data view byteStride must be positive for multiple rows');
|
|
1702
|
+
}
|
|
1703
|
+
if (props.rowByteLength > props.byteStride && props.length > 1) {
|
|
1704
|
+
throw new Error('Graph data view rowByteLength cannot exceed byteStride');
|
|
1705
|
+
}
|
|
1706
|
+
const byteLength = props.length === 0 ? 0 : (props.length - 1) * props.byteStride + props.rowByteLength;
|
|
1707
|
+
const endByteOffset = props.byteOffset + byteLength;
|
|
1708
|
+
if (!Number.isSafeInteger(byteLength) || !Number.isSafeInteger(endByteOffset)) {
|
|
1709
|
+
throw new Error('Graph data view byte range exceeds safe integer precision');
|
|
1710
|
+
}
|
|
1711
|
+
if (endByteOffset > buffer.byteLength) {
|
|
1712
|
+
throw new Error(`Graph data view exceeds buffer "${buffer.id}" byte length`);
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
/** Validates an imported buffer's device, capacity, and usage against its logical descriptor. */
|
|
1716
|
+
function validateImportedBuffer(importedBuffer, descriptor, device) {
|
|
1717
|
+
const buffer = getCoreBuffer(importedBuffer);
|
|
1718
|
+
if (buffer.device !== device) {
|
|
1719
|
+
throw new Error(`GPUCommandGraph buffer "${descriptor.id}" belongs to another device`);
|
|
1720
|
+
}
|
|
1721
|
+
if (buffer.byteLength < descriptor.byteLength) {
|
|
1722
|
+
throw new Error(`GPUCommandGraph buffer "${descriptor.id}" is smaller than compiled capacity`);
|
|
1723
|
+
}
|
|
1724
|
+
if ((buffer.usage & descriptor.usage) !== descriptor.usage) {
|
|
1725
|
+
throw new Error(`GPUCommandGraph buffer "${descriptor.id}" has incompatible usage flags`);
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
/** Validates an imported texture's exact shape and format plus required usage flags. */
|
|
1729
|
+
function validateImportedTexture(importedTexture, descriptor, device) {
|
|
1730
|
+
const texture = getCoreTexture(importedTexture);
|
|
1731
|
+
if (texture.device !== device) {
|
|
1732
|
+
throw new Error(`GPUCommandGraph texture "${descriptor.id}" belongs to another device`);
|
|
1733
|
+
}
|
|
1734
|
+
for (const [name, expected, actual] of [
|
|
1735
|
+
['format', descriptor.format, texture.format],
|
|
1736
|
+
['dimension', descriptor.dimension, texture.dimension],
|
|
1737
|
+
['width', descriptor.width, texture.width],
|
|
1738
|
+
['height', descriptor.height, texture.height],
|
|
1739
|
+
['depth', descriptor.depth, texture.depth],
|
|
1740
|
+
['mipLevels', descriptor.mipLevels, texture.mipLevels],
|
|
1741
|
+
['samples', descriptor.samples, texture.samples]
|
|
1742
|
+
]) {
|
|
1743
|
+
if (actual !== expected) {
|
|
1744
|
+
throw new Error(`GPUCommandGraph texture "${descriptor.id}" has incompatible ${name} (${actual} !== ${expected})`);
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
if ((texture.props.usage & descriptor.usage) !== descriptor.usage) {
|
|
1748
|
+
throw new Error(`GPUCommandGraph texture "${descriptor.id}" has incompatible usage flags`);
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
/** Validates one opaque, sampled-only external-image snapshot. */
|
|
1752
|
+
function validateImportedExternalTexture(texture, descriptor, device) {
|
|
1753
|
+
if (texture.device !== device) {
|
|
1754
|
+
throw new Error(`GPUCommandGraph external texture "${descriptor.id}" belongs to another device`);
|
|
1755
|
+
}
|
|
1756
|
+
if (texture.destroyed) {
|
|
1757
|
+
throw new Error(`GPUCommandGraph external texture "${descriptor.id}" has been destroyed`);
|
|
1758
|
+
}
|
|
1759
|
+
if (texture.width !== descriptor.width || texture.height !== descriptor.height) {
|
|
1760
|
+
throw new Error(`GPUCommandGraph external texture "${descriptor.id}" has incompatible dimensions (${texture.width}x${texture.height} !== ${descriptor.width}x${descriptor.height})`);
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
/** Checks that a logical buffer descriptor permits a node's declared access mode. */
|
|
1764
|
+
function validateBufferUseAgainstDescriptor(buffer, usage) {
|
|
1765
|
+
const requiredUsage = getRequiredBufferUsage(usage);
|
|
1766
|
+
if ((buffer.usage & requiredUsage) !== requiredUsage) {
|
|
1767
|
+
throw new Error(`GPUCommandGraph buffer "${buffer.id}" does not declare usage required by ${usage}`);
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
/** Checks that a logical texture descriptor permits a node's declared access mode. */
|
|
1771
|
+
function validateTextureUseAgainstDescriptor(texture, usage) {
|
|
1772
|
+
const requiredUsage = getRequiredTextureUsage(usage);
|
|
1773
|
+
if ((texture.usage & requiredUsage) !== requiredUsage) {
|
|
1774
|
+
throw new Error(`GPUCommandGraph texture "${texture.id}" does not declare usage required by ${usage}`);
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
/** Validates view restrictions imposed by the declared texture access mode. */
|
|
1778
|
+
function validateTextureViewForUsage(textureOrView, usage) {
|
|
1779
|
+
if (textureOrView instanceof GraphTextureView &&
|
|
1780
|
+
usage.startsWith('storage-') &&
|
|
1781
|
+
textureOrView.mipLevelCount !== 1) {
|
|
1782
|
+
throw new Error('GPUCommandGraph storage texture views must contain exactly one mip level');
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
/** Maps a graph access mode to its required luma.gl buffer usage flag. */
|
|
1786
|
+
function getRequiredBufferUsage(usage) {
|
|
1787
|
+
switch (usage) {
|
|
1788
|
+
case 'storage-read':
|
|
1789
|
+
case 'storage-write':
|
|
1790
|
+
case 'storage-read-write':
|
|
1791
|
+
return Buffer.STORAGE;
|
|
1792
|
+
case 'uniform':
|
|
1793
|
+
return Buffer.UNIFORM;
|
|
1794
|
+
case 'copy-source':
|
|
1795
|
+
return Buffer.COPY_SRC;
|
|
1796
|
+
case 'copy-destination':
|
|
1797
|
+
return Buffer.COPY_DST;
|
|
1798
|
+
case 'indirect':
|
|
1799
|
+
return Buffer.INDIRECT;
|
|
1800
|
+
case 'vertex':
|
|
1801
|
+
return Buffer.VERTEX;
|
|
1802
|
+
case 'index':
|
|
1803
|
+
return Buffer.INDEX;
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
/** Maps a graph access mode to its required luma.gl texture usage flag. */
|
|
1807
|
+
function getRequiredTextureUsage(usage) {
|
|
1808
|
+
switch (usage) {
|
|
1809
|
+
case 'sampled':
|
|
1810
|
+
return Texture.SAMPLE;
|
|
1811
|
+
case 'storage-read':
|
|
1812
|
+
case 'storage-write':
|
|
1813
|
+
case 'storage-read-write':
|
|
1814
|
+
return Texture.STORAGE;
|
|
1815
|
+
case 'render-attachment':
|
|
1816
|
+
return Texture.RENDER;
|
|
1817
|
+
case 'copy-source':
|
|
1818
|
+
return Texture.COPY_SRC;
|
|
1819
|
+
case 'copy-destination':
|
|
1820
|
+
return Texture.COPY_DST;
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
/** Returns whether a logical view is exactly the texture's default full-resource view. */
|
|
1824
|
+
function isDefaultGraphTextureView(view) {
|
|
1825
|
+
const texture = view.texture;
|
|
1826
|
+
return (view.dimension === texture.dimension &&
|
|
1827
|
+
view.aspect === 'all' &&
|
|
1828
|
+
view.baseMipLevel === 0 &&
|
|
1829
|
+
view.mipLevelCount === texture.mipLevels &&
|
|
1830
|
+
view.baseArrayLayer === 0 &&
|
|
1831
|
+
view.arrayLayerCount === (texture.dimension === '3d' ? 1 : texture.depth));
|
|
1832
|
+
}
|
|
1833
|
+
//# sourceMappingURL=gpu-command-graph.js.map
|