@luma.gl/graph 10.0.0-alpha.9 → 10.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (480) hide show
  1. package/LICENSE +4 -4
  2. package/THIRD-PARTY-NOTICES.md +19 -0
  3. package/dist/arrow/arrow-colors.cjs +99 -18
  4. package/dist/arrow/arrow-colors.d.ts +27 -10
  5. package/dist/arrow/arrow-colors.d.ts.map +1 -1
  6. package/dist/arrow/arrow-colors.js +107 -24
  7. package/dist/arrow/arrow-colors.js.map +1 -1
  8. package/dist/arrow/arrow-utils/arrow-paths.cjs +4 -3
  9. package/dist/arrow/arrow-utils/arrow-paths.d.ts.map +1 -1
  10. package/dist/arrow/arrow-utils/arrow-paths.js +5 -4
  11. package/dist/arrow/arrow-utils/arrow-paths.js.map +1 -1
  12. package/dist/arrow/cpu/arrow-coordinate-projection.cjs +30 -0
  13. package/dist/arrow/cpu/arrow-coordinate-projection.d.ts +5 -0
  14. package/dist/arrow/cpu/arrow-coordinate-projection.d.ts.map +1 -0
  15. package/dist/arrow/cpu/arrow-coordinate-projection.js +9 -0
  16. package/dist/arrow/cpu/arrow-coordinate-projection.js.map +1 -0
  17. package/dist/arrow/cpu/arrow-cpu-pipelines.cjs +31 -0
  18. package/dist/arrow/cpu/arrow-cpu-pipelines.d.ts +2 -0
  19. package/dist/arrow/cpu/arrow-cpu-pipelines.d.ts.map +1 -0
  20. package/dist/arrow/cpu/arrow-cpu-pipelines.js +5 -0
  21. package/dist/arrow/cpu/arrow-cpu-pipelines.js.map +1 -0
  22. package/dist/arrow/cpu/arrow-cpu-vector-adapters.cjs +99 -0
  23. package/dist/arrow/cpu/arrow-cpu-vector-adapters.d.ts +9 -0
  24. package/dist/arrow/cpu/arrow-cpu-vector-adapters.d.ts.map +1 -0
  25. package/dist/arrow/cpu/arrow-cpu-vector-adapters.js +100 -0
  26. package/dist/arrow/cpu/arrow-cpu-vector-adapters.js.map +1 -0
  27. package/dist/arrow/geoarrow/arrow-geoarrow-adapter.cjs +9 -371
  28. package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts +8 -28
  29. package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts.map +1 -1
  30. package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js +4 -381
  31. package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js.map +1 -1
  32. package/dist/arrow/geoarrow/arrow-geoarrow-conversion.cjs +11 -11
  33. package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts +2 -0
  34. package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts.map +1 -1
  35. package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js +4 -4
  36. package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js.map +1 -1
  37. package/dist/arrow/geoarrow/arrow-polygon-tessellation.cjs +2 -2
  38. package/dist/arrow/geoarrow/arrow-polygon-tessellation.js +1 -1
  39. package/dist/arrow/geoarrow/arrow-polygon-tessellation.js.map +1 -1
  40. package/dist/arrow/gpu/arrow-column-gpu-vector.cjs +27 -8
  41. package/dist/arrow/gpu/arrow-column-gpu-vector.d.ts +11 -1
  42. package/dist/arrow/gpu/arrow-column-gpu-vector.d.ts.map +1 -1
  43. package/dist/arrow/gpu/arrow-column-gpu-vector.js +33 -8
  44. package/dist/arrow/gpu/arrow-column-gpu-vector.js.map +1 -1
  45. package/dist/arrow/gpu/arrow-gpu-table-conversion.cjs +68 -3
  46. package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts +9 -2
  47. package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts.map +1 -1
  48. package/dist/arrow/gpu/arrow-gpu-table-conversion.js +76 -3
  49. package/dist/arrow/gpu/arrow-gpu-table-conversion.js.map +1 -1
  50. package/dist/arrow/gpu/arrow-gpu-vector-adapters.cjs +8 -6
  51. package/dist/arrow/gpu/arrow-gpu-vector-adapters.d.ts +1 -0
  52. package/dist/arrow/gpu/arrow-gpu-vector-adapters.d.ts.map +1 -1
  53. package/dist/arrow/gpu/arrow-gpu-vector-adapters.js +17 -7
  54. package/dist/arrow/gpu/arrow-gpu-vector-adapters.js.map +1 -1
  55. package/dist/arrow/gpu/arrow-gpu-vector-conversion.cjs +35 -5
  56. package/dist/arrow/gpu/arrow-gpu-vector-conversion.d.ts +6 -1
  57. package/dist/arrow/gpu/arrow-gpu-vector-conversion.d.ts.map +1 -1
  58. package/dist/arrow/gpu/arrow-gpu-vector-conversion.js +40 -5
  59. package/dist/arrow/gpu/arrow-gpu-vector-conversion.js.map +1 -1
  60. package/dist/arrow/index.cjs +19 -2
  61. package/dist/arrow/index.cjs.map +3 -3
  62. package/dist/arrow/index.d.ts +5 -2
  63. package/dist/arrow/index.d.ts.map +1 -1
  64. package/dist/arrow/index.js +4 -1
  65. package/dist/arrow/index.js.map +1 -1
  66. package/dist/arrow/internal.cjs.map +2 -2
  67. package/dist/dist.dev.js +3820 -1646
  68. package/dist/dist.min.js +450 -136
  69. package/dist/experimental/index.cjs.map +1 -1
  70. package/dist/experimental/simulation/index.cjs.map +1 -1
  71. package/dist/geospatial/gpu-point-spatial-query.cjs +2 -15
  72. package/dist/geospatial/gpu-point-spatial-query.d.ts.map +1 -1
  73. package/dist/geospatial/gpu-point-spatial-query.js +2 -15
  74. package/dist/geospatial/gpu-point-spatial-query.js.map +1 -1
  75. package/dist/geospatial/index.cjs.map +2 -2
  76. package/dist/gpu-a5/index.cjs.map +1 -1
  77. package/dist/gpu-core/compiled-gpu-graph.cjs +47 -0
  78. package/dist/gpu-core/compiled-gpu-graph.d.ts +5 -0
  79. package/dist/gpu-core/compiled-gpu-graph.d.ts.map +1 -1
  80. package/dist/gpu-core/compiled-gpu-graph.js +54 -1
  81. package/dist/gpu-core/compiled-gpu-graph.js.map +1 -1
  82. package/dist/gpu-core/gpu-command-graph-compiler.cjs +11 -2
  83. package/dist/gpu-core/gpu-command-graph-compiler.d.ts +2 -1
  84. package/dist/gpu-core/gpu-command-graph-compiler.d.ts.map +1 -1
  85. package/dist/gpu-core/gpu-command-graph-compiler.js +13 -2
  86. package/dist/gpu-core/gpu-command-graph-compiler.js.map +1 -1
  87. package/dist/gpu-core/gpu-command-graph-types.d.ts +16 -1
  88. package/dist/gpu-core/gpu-command-graph-types.d.ts.map +1 -1
  89. package/dist/gpu-core/gpu-command-graph-types.js.map +1 -1
  90. package/dist/gpu-core/gpu-command-graph.cjs +34 -11
  91. package/dist/gpu-core/gpu-command-graph.d.ts +17 -8
  92. package/dist/gpu-core/gpu-command-graph.d.ts.map +1 -1
  93. package/dist/gpu-core/gpu-command-graph.js +39 -11
  94. package/dist/gpu-core/gpu-command-graph.js.map +1 -1
  95. package/dist/gpu-core/gpu-cpu-execution.cjs +279 -0
  96. package/dist/gpu-core/gpu-cpu-execution.d.ts +22 -0
  97. package/dist/gpu-core/gpu-cpu-execution.d.ts.map +1 -0
  98. package/dist/gpu-core/gpu-cpu-execution.js +294 -0
  99. package/dist/gpu-core/gpu-cpu-execution.js.map +1 -0
  100. package/dist/gpu-core/gpu-cpu-operation.cjs +54 -0
  101. package/dist/gpu-core/gpu-cpu-operation.d.ts +40 -0
  102. package/dist/gpu-core/gpu-cpu-operation.d.ts.map +1 -0
  103. package/dist/gpu-core/gpu-cpu-operation.js +35 -0
  104. package/dist/gpu-core/gpu-cpu-operation.js.map +1 -0
  105. package/dist/gpu-core/gpu-dispatch-utils.cjs +7 -3
  106. package/dist/gpu-core/gpu-dispatch-utils.d.ts +2 -0
  107. package/dist/gpu-core/gpu-dispatch-utils.d.ts.map +1 -1
  108. package/dist/gpu-core/gpu-dispatch-utils.js +4 -1
  109. package/dist/gpu-core/gpu-dispatch-utils.js.map +1 -1
  110. package/dist/gpu-core/gpu-expression-operation.cjs +2 -2
  111. package/dist/gpu-core/gpu-expression-operation.d.ts +1 -1
  112. package/dist/gpu-core/gpu-expression-operation.d.ts.map +1 -1
  113. package/dist/gpu-core/gpu-expression-operation.js +1 -1
  114. package/dist/gpu-core/gpu-expression-operation.js.map +1 -1
  115. package/dist/gpu-core/gpu-expression-plan.cjs +5 -1
  116. package/dist/gpu-core/gpu-expression-plan.d.ts +3 -2
  117. package/dist/gpu-core/gpu-expression-plan.d.ts.map +1 -1
  118. package/dist/gpu-core/gpu-expression-plan.js +7 -1
  119. package/dist/gpu-core/gpu-expression-plan.js.map +1 -1
  120. package/dist/gpu-core/gpu-graph-compiler.cjs +48 -0
  121. package/dist/gpu-core/gpu-graph-compiler.d.ts +1 -0
  122. package/dist/gpu-core/gpu-graph-compiler.d.ts.map +1 -1
  123. package/dist/gpu-core/gpu-graph-compiler.js +50 -0
  124. package/dist/gpu-core/gpu-graph-compiler.js.map +1 -1
  125. package/dist/gpu-core/gpu-graph.d.ts +2 -2
  126. package/dist/gpu-core/gpu-graph.d.ts.map +1 -1
  127. package/dist/gpu-core/gpu-graph.js.map +1 -1
  128. package/dist/gpu-core/gpu-grid-aggregation.cjs +2 -5
  129. package/dist/gpu-core/gpu-grid-aggregation.d.ts.map +1 -1
  130. package/dist/gpu-core/gpu-grid-aggregation.js +2 -5
  131. package/dist/gpu-core/gpu-grid-aggregation.js.map +1 -1
  132. package/dist/gpu-core/gpu-grid-binning.cjs +2 -5
  133. package/dist/gpu-core/gpu-grid-binning.d.ts.map +1 -1
  134. package/dist/gpu-core/gpu-grid-binning.js +2 -5
  135. package/dist/gpu-core/gpu-grid-binning.js.map +1 -1
  136. package/dist/gpu-core/gpu-grid-coordinate.cjs +41 -0
  137. package/dist/gpu-core/gpu-grid-coordinate.d.ts +7 -0
  138. package/dist/gpu-core/gpu-grid-coordinate.d.ts.map +1 -0
  139. package/dist/gpu-core/gpu-grid-coordinate.js +24 -0
  140. package/dist/gpu-core/gpu-grid-coordinate.js.map +1 -0
  141. package/dist/gpu-core/gpu-grid-index-internals.cjs +2 -15
  142. package/dist/gpu-core/gpu-grid-index-internals.d.ts.map +1 -1
  143. package/dist/gpu-core/gpu-grid-index-internals.js +2 -15
  144. package/dist/gpu-core/gpu-grid-index-internals.js.map +1 -1
  145. package/dist/gpu-core/gpu-grid-index-query.cjs +2 -16
  146. package/dist/gpu-core/gpu-grid-index-query.d.ts.map +1 -1
  147. package/dist/gpu-core/gpu-grid-index-query.js +2 -16
  148. package/dist/gpu-core/gpu-grid-index-query.js.map +1 -1
  149. package/dist/gpu-core/gpu-group-aggregation.cjs +7 -15
  150. package/dist/gpu-core/gpu-group-aggregation.d.ts.map +1 -1
  151. package/dist/gpu-core/gpu-group-aggregation.js +7 -18
  152. package/dist/gpu-core/gpu-group-aggregation.js.map +1 -1
  153. package/dist/gpu-core/gpu-operation.d.ts +4 -4
  154. package/dist/gpu-core/gpu-operation.d.ts.map +1 -1
  155. package/dist/gpu-core/gpu-operation.js.map +1 -1
  156. package/dist/gpu-core/gpu-reduction.cjs +6 -14
  157. package/dist/gpu-core/gpu-reduction.d.ts.map +1 -1
  158. package/dist/gpu-core/gpu-reduction.js +6 -15
  159. package/dist/gpu-core/gpu-reduction.js.map +1 -1
  160. package/dist/gpu-core/gpu-render-operation.cjs +39 -0
  161. package/dist/gpu-core/gpu-render-operation.d.ts +21 -0
  162. package/dist/gpu-core/gpu-render-operation.d.ts.map +1 -0
  163. package/dist/gpu-core/gpu-render-operation.js +22 -0
  164. package/dist/gpu-core/gpu-render-operation.js.map +1 -0
  165. package/dist/gpu-core/gpu-scan.cjs +46 -32
  166. package/dist/gpu-core/gpu-scan.d.ts.map +1 -1
  167. package/dist/gpu-core/gpu-scan.js +56 -44
  168. package/dist/gpu-core/gpu-scan.js.map +1 -1
  169. package/dist/gpu-core/gpu-segmented-reduction.cjs +12 -9
  170. package/dist/gpu-core/gpu-segmented-reduction.d.ts +1 -1
  171. package/dist/gpu-core/gpu-segmented-reduction.d.ts.map +1 -1
  172. package/dist/gpu-core/gpu-segmented-reduction.js +12 -9
  173. package/dist/gpu-core/gpu-segmented-reduction.js.map +1 -1
  174. package/dist/gpu-core/gpu-segmented-scan.cjs +73 -16
  175. package/dist/gpu-core/gpu-segmented-scan.d.ts.map +1 -1
  176. package/dist/gpu-core/gpu-segmented-scan.js +73 -16
  177. package/dist/gpu-core/gpu-segmented-scan.js.map +1 -1
  178. package/dist/gpu-core/gpu-semantic-aggregation-operation.cjs +112 -0
  179. package/dist/gpu-core/gpu-semantic-aggregation-operation.d.ts +71 -0
  180. package/dist/gpu-core/gpu-semantic-aggregation-operation.d.ts.map +1 -0
  181. package/dist/gpu-core/gpu-semantic-aggregation-operation.js +92 -0
  182. package/dist/gpu-core/gpu-semantic-aggregation-operation.js.map +1 -0
  183. package/dist/gpu-core/gpu-shader-pass-kernel.cjs +267 -0
  184. package/dist/gpu-core/gpu-shader-pass-kernel.d.ts +29 -0
  185. package/dist/gpu-core/gpu-shader-pass-kernel.d.ts.map +1 -0
  186. package/dist/gpu-core/gpu-shader-pass-kernel.js +260 -0
  187. package/dist/gpu-core/gpu-shader-pass-kernel.js.map +1 -0
  188. package/dist/gpu-core/gpu-shader-pass-operation.cjs +85 -0
  189. package/dist/gpu-core/gpu-shader-pass-operation.d.ts +32 -0
  190. package/dist/gpu-core/gpu-shader-pass-operation.d.ts.map +1 -0
  191. package/dist/gpu-core/gpu-shader-pass-operation.js +74 -0
  192. package/dist/gpu-core/gpu-shader-pass-operation.js.map +1 -0
  193. package/dist/gpu-core/gpu-texture-plan.d.ts +3 -2
  194. package/dist/gpu-core/gpu-texture-plan.d.ts.map +1 -1
  195. package/dist/gpu-core/gpu-texture-plan.js.map +1 -1
  196. package/dist/gpu-core/index.cjs +32 -0
  197. package/dist/gpu-core/index.cjs.map +3 -3
  198. package/dist/gpu-core/index.d.ts +21 -1
  199. package/dist/gpu-core/index.d.ts.map +1 -1
  200. package/dist/gpu-core/index.js +10 -0
  201. package/dist/gpu-core/index.js.map +1 -1
  202. package/dist/gpu-data/color-conversion.cjs +105 -0
  203. package/dist/gpu-data/color-conversion.d.ts +30 -0
  204. package/dist/gpu-data/color-conversion.d.ts.map +1 -0
  205. package/dist/gpu-data/color-conversion.js +109 -0
  206. package/dist/gpu-data/color-conversion.js.map +1 -0
  207. package/dist/gpu-data/cpu-data.cjs +60 -0
  208. package/dist/gpu-data/cpu-data.d.ts +28 -0
  209. package/dist/gpu-data/cpu-data.d.ts.map +1 -0
  210. package/dist/gpu-data/cpu-data.js +41 -0
  211. package/dist/gpu-data/cpu-data.js.map +1 -0
  212. package/dist/gpu-data/cpu-gpu-vector-transfer.cjs +98 -0
  213. package/dist/gpu-data/cpu-gpu-vector-transfer.d.ts +9 -0
  214. package/dist/gpu-data/cpu-gpu-vector-transfer.d.ts.map +1 -0
  215. package/dist/gpu-data/cpu-gpu-vector-transfer.js +85 -0
  216. package/dist/gpu-data/cpu-gpu-vector-transfer.js.map +1 -0
  217. package/dist/gpu-data/cpu-vector.cjs +42 -0
  218. package/dist/gpu-data/cpu-vector.d.ts +17 -0
  219. package/dist/gpu-data/cpu-vector.d.ts.map +1 -0
  220. package/dist/gpu-data/cpu-vector.js +21 -0
  221. package/dist/gpu-data/cpu-vector.js.map +1 -0
  222. package/dist/gpu-data/gpu-data-buffer-props.cjs +41 -0
  223. package/dist/gpu-data/gpu-data-buffer-props.d.ts +5 -0
  224. package/dist/gpu-data/gpu-data-buffer-props.d.ts.map +1 -0
  225. package/dist/gpu-data/gpu-data-buffer-props.js +19 -0
  226. package/dist/gpu-data/gpu-data-buffer-props.js.map +1 -0
  227. package/dist/gpu-data/gpu-vector-wgsl-layout.cjs +50 -0
  228. package/dist/gpu-data/gpu-vector-wgsl-layout.d.ts +41 -0
  229. package/dist/gpu-data/gpu-vector-wgsl-layout.d.ts.map +1 -0
  230. package/dist/gpu-data/gpu-vector-wgsl-layout.js +45 -0
  231. package/dist/gpu-data/gpu-vector-wgsl-layout.js.map +1 -0
  232. package/dist/gpu-data/index.cjs +21 -2
  233. package/dist/gpu-data/index.cjs.map +3 -3
  234. package/dist/gpu-data/index.d.ts +6 -0
  235. package/dist/gpu-data/index.d.ts.map +1 -1
  236. package/dist/gpu-data/index.js +5 -0
  237. package/dist/gpu-data/index.js.map +1 -1
  238. package/dist/gpu-dataframe/gpu-data-frame-query.cjs +1 -16
  239. package/dist/gpu-dataframe/gpu-data-frame-query.d.ts.map +1 -1
  240. package/dist/gpu-dataframe/gpu-data-frame-query.js +1 -23
  241. package/dist/gpu-dataframe/gpu-data-frame-query.js.map +1 -1
  242. package/dist/gpu-dataframe/gpu-expression.cjs +91 -2
  243. package/dist/gpu-dataframe/gpu-expression.d.ts +37 -0
  244. package/dist/gpu-dataframe/gpu-expression.d.ts.map +1 -1
  245. package/dist/gpu-dataframe/gpu-expression.js +106 -0
  246. package/dist/gpu-dataframe/gpu-expression.js.map +1 -1
  247. package/dist/gpu-dataframe/index.cjs +12 -2
  248. package/dist/gpu-dataframe/index.cjs.map +3 -3
  249. package/dist/gpu-dataframe/index.d.ts +4 -0
  250. package/dist/gpu-dataframe/index.d.ts.map +1 -1
  251. package/dist/gpu-dataframe/index.js +2 -0
  252. package/dist/gpu-dataframe/index.js.map +1 -1
  253. package/dist/gpu-dataframe/portable-expression.cjs +103 -0
  254. package/dist/gpu-dataframe/portable-expression.d.ts +19 -0
  255. package/dist/gpu-dataframe/portable-expression.d.ts.map +1 -0
  256. package/dist/gpu-dataframe/portable-expression.js +98 -0
  257. package/dist/gpu-dataframe/portable-expression.js.map +1 -0
  258. package/dist/gpu-dggs/benchmarks.cjs.map +1 -1
  259. package/dist/gpu-dggs/index.cjs.map +1 -1
  260. package/dist/gpu-geometry/index.cjs.map +1 -1
  261. package/dist/gpu-graph/index.cjs +8 -0
  262. package/dist/gpu-graph/index.cjs.map +3 -3
  263. package/dist/gpu-graph/index.d.ts +4 -0
  264. package/dist/gpu-graph/index.d.ts.map +1 -1
  265. package/dist/gpu-graph/index.js +2 -0
  266. package/dist/gpu-graph/index.js.map +1 -1
  267. package/dist/gpu-graph-algorithms/benchmarks.cjs.map +2 -2
  268. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.cjs +2 -15
  269. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.d.ts.map +1 -1
  270. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js +2 -15
  271. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js.map +1 -1
  272. package/dist/gpu-graph-algorithms/index.cjs.map +2 -2
  273. package/dist/gpu-h3/index.cjs.map +1 -1
  274. package/dist/gpu-physics/gpu-rigid-body-world.cjs +162 -2
  275. package/dist/gpu-physics/gpu-rigid-body-world.d.ts +25 -0
  276. package/dist/gpu-physics/gpu-rigid-body-world.d.ts.map +1 -1
  277. package/dist/gpu-physics/gpu-rigid-body-world.js +181 -2
  278. package/dist/gpu-physics/gpu-rigid-body-world.js.map +1 -1
  279. package/dist/gpu-physics/index.cjs.map +2 -2
  280. package/dist/gpu-physics/index.d.ts +1 -0
  281. package/dist/gpu-physics/index.d.ts.map +1 -1
  282. package/dist/gpu-physics/rigid-body-parallel-shaders.cjs +24 -9
  283. package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts +1 -1
  284. package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts.map +1 -1
  285. package/dist/gpu-physics/rigid-body-parallel-shaders.js +28 -9
  286. package/dist/gpu-physics/rigid-body-parallel-shaders.js.map +1 -1
  287. package/dist/gpu-physics/rigid-body-shaders.cjs +2 -2
  288. package/dist/gpu-physics/rigid-body-shaders.d.ts +1 -1
  289. package/dist/gpu-physics/rigid-body-shaders.d.ts.map +1 -1
  290. package/dist/gpu-physics/rigid-body-shaders.js +2 -2
  291. package/dist/gpu-physics/rigid-body-shaders.js.map +1 -1
  292. package/dist/gpu-physics/rigid-body-vehicle.cjs +90 -0
  293. package/dist/gpu-physics/rigid-body-vehicle.d.ts +35 -0
  294. package/dist/gpu-physics/rigid-body-vehicle.d.ts.map +1 -0
  295. package/dist/gpu-physics/rigid-body-vehicle.js +66 -0
  296. package/dist/gpu-physics/rigid-body-vehicle.js.map +1 -0
  297. package/dist/gpu-pointcloud/index.cjs.map +1 -1
  298. package/dist/gpu-project/benchmarks.cjs.map +2 -2
  299. package/dist/gpu-project/coordinate-projection-graph.cjs +59 -0
  300. package/dist/gpu-project/coordinate-projection-graph.d.ts +23 -0
  301. package/dist/gpu-project/coordinate-projection-graph.d.ts.map +1 -0
  302. package/dist/gpu-project/coordinate-projection-graph.js +40 -0
  303. package/dist/gpu-project/coordinate-projection-graph.js.map +1 -0
  304. package/dist/gpu-project/cpu-geoarrow.cjs +112 -0
  305. package/dist/gpu-project/cpu-geoarrow.d.ts +10 -0
  306. package/dist/gpu-project/cpu-geoarrow.d.ts.map +1 -0
  307. package/dist/gpu-project/cpu-geoarrow.js +103 -0
  308. package/dist/gpu-project/cpu-geoarrow.js.map +1 -0
  309. package/dist/gpu-project/cpu-geometry-pipelines.cjs +134 -0
  310. package/dist/gpu-project/cpu-geometry-pipelines.d.ts +19 -0
  311. package/dist/gpu-project/cpu-geometry-pipelines.d.ts.map +1 -0
  312. package/dist/gpu-project/cpu-geometry-pipelines.js +114 -0
  313. package/dist/gpu-project/cpu-geometry-pipelines.js.map +1 -0
  314. package/dist/gpu-project/cpu-projection-operation.cjs +54 -0
  315. package/dist/gpu-project/cpu-projection-operation.d.ts +14 -0
  316. package/dist/gpu-project/cpu-projection-operation.d.ts.map +1 -0
  317. package/dist/gpu-project/cpu-projection-operation.js +37 -0
  318. package/dist/gpu-project/cpu-projection-operation.js.map +1 -0
  319. package/dist/gpu-project/crs.cjs.map +2 -2
  320. package/dist/gpu-project/geoarrow.cjs +36 -0
  321. package/dist/gpu-project/geoarrow.cjs.map +6 -0
  322. package/dist/gpu-project/geoarrow.d.ts +3 -0
  323. package/dist/gpu-project/geoarrow.d.ts.map +1 -0
  324. package/dist/gpu-project/geoarrow.js +7 -0
  325. package/dist/gpu-project/geoarrow.js.map +1 -0
  326. package/dist/gpu-project/graph.cjs +27 -0
  327. package/dist/gpu-project/graph.cjs.map +6 -0
  328. package/dist/gpu-project/graph.d.ts +2 -0
  329. package/dist/gpu-project/graph.d.ts.map +1 -0
  330. package/dist/gpu-project/graph.js +6 -0
  331. package/dist/gpu-project/graph.js.map +1 -0
  332. package/dist/gpu-project/index.cjs +3 -0
  333. package/dist/gpu-project/index.cjs.map +3 -3
  334. package/dist/gpu-project/index.d.ts +1 -0
  335. package/dist/gpu-project/index.d.ts.map +1 -1
  336. package/dist/gpu-project/index.js +1 -0
  337. package/dist/gpu-project/index.js.map +1 -1
  338. package/dist/gpu-simple-graph/compiled-gpu-expression-graph.cjs +75 -5
  339. package/dist/gpu-simple-graph/compiled-gpu-expression-graph.d.ts +5 -1
  340. package/dist/gpu-simple-graph/compiled-gpu-expression-graph.d.ts.map +1 -1
  341. package/dist/gpu-simple-graph/compiled-gpu-expression-graph.js +86 -6
  342. package/dist/gpu-simple-graph/compiled-gpu-expression-graph.js.map +1 -1
  343. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.cjs +9 -0
  344. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts +2 -0
  345. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts.map +1 -1
  346. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js +10 -0
  347. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js.map +1 -1
  348. package/dist/gpu-simple-graph/gpu-simple-graph.cjs +126 -10
  349. package/dist/gpu-simple-graph/gpu-simple-graph.d.ts +36 -11
  350. package/dist/gpu-simple-graph/gpu-simple-graph.d.ts.map +1 -1
  351. package/dist/gpu-simple-graph/gpu-simple-graph.js +137 -12
  352. package/dist/gpu-simple-graph/gpu-simple-graph.js.map +1 -1
  353. package/dist/gpu-simple-graph/index.cjs.map +3 -3
  354. package/dist/gpu-simple-graph/index.d.ts +1 -1
  355. package/dist/gpu-simple-graph/index.d.ts.map +1 -1
  356. package/dist/gpu-simple-graph/index.js.map +1 -1
  357. package/dist/gpu-simple-graph/operation/gpu-data-evaluator.cjs +25 -0
  358. package/dist/gpu-simple-graph/operation/gpu-data-evaluator.d.ts +6 -0
  359. package/dist/gpu-simple-graph/operation/gpu-data-evaluator.d.ts.map +1 -1
  360. package/dist/gpu-simple-graph/operation/gpu-data-evaluator.js +28 -0
  361. package/dist/gpu-simple-graph/operation/gpu-data-evaluator.js.map +1 -1
  362. package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.cjs +7 -0
  363. package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.d.ts +2 -0
  364. package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.d.ts.map +1 -1
  365. package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.js +7 -0
  366. package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.js.map +1 -1
  367. package/dist/gpu-simple-graph/operations/convert-colors.cjs +6 -6
  368. package/dist/gpu-simple-graph/operations/convert-colors.d.ts +5 -1
  369. package/dist/gpu-simple-graph/operations/convert-colors.d.ts.map +1 -1
  370. package/dist/gpu-simple-graph/operations/convert-colors.js +12 -7
  371. package/dist/gpu-simple-graph/operations/convert-colors.js.map +1 -1
  372. package/dist/gpu-simple-graph/operations/cpu/convert-colors.cjs +16 -33
  373. package/dist/gpu-simple-graph/operations/cpu/convert-colors.d.ts.map +1 -1
  374. package/dist/gpu-simple-graph/operations/cpu/convert-colors.js +22 -35
  375. package/dist/gpu-simple-graph/operations/cpu/convert-colors.js.map +1 -1
  376. package/dist/gpu-simple-graph/operations/cpu/index.cjs.map +3 -3
  377. package/dist/gpu-simple-graph/operations/webgl/index.cjs.map +3 -3
  378. package/dist/gpu-simple-graph/operations/webgpu/convert-colors.cjs +31 -13
  379. package/dist/gpu-simple-graph/operations/webgpu/convert-colors.d.ts.map +1 -1
  380. package/dist/gpu-simple-graph/operations/webgpu/convert-colors.js +42 -13
  381. package/dist/gpu-simple-graph/operations/webgpu/convert-colors.js.map +1 -1
  382. package/dist/gpu-simple-graph/operations/webgpu/index.cjs.map +1 -1
  383. package/dist/gpu-sql/gpu-sql.cjs +157 -280
  384. package/dist/gpu-sql/gpu-sql.d.ts +1 -1
  385. package/dist/gpu-sql/gpu-sql.d.ts.map +1 -1
  386. package/dist/gpu-sql/gpu-sql.js +168 -291
  387. package/dist/gpu-sql/gpu-sql.js.map +1 -1
  388. package/dist/gpu-sql/index.cjs.map +3 -3
  389. package/dist/gpu-tables/index.cjs.map +2 -2
  390. package/dist/gpu-tables/table/gpu-table.cjs +2 -2
  391. package/dist/gpu-tables/table/gpu-table.d.ts.map +1 -1
  392. package/dist/gpu-tables/table/gpu-table.js +2 -2
  393. package/dist/gpu-tables/table/gpu-table.js.map +1 -1
  394. package/dist/gpu-timeseries/index.cjs.map +1 -1
  395. package/dist/index.cjs +11 -0
  396. package/dist/index.cjs.map +3 -3
  397. package/dist/index.d.ts +7 -1
  398. package/dist/index.d.ts.map +1 -1
  399. package/dist/index.js +3 -0
  400. package/dist/index.js.map +1 -1
  401. package/package.json +21 -7
  402. package/src/arrow/arrow-colors.ts +194 -33
  403. package/src/arrow/arrow-utils/arrow-paths.ts +5 -3
  404. package/src/arrow/cpu/arrow-coordinate-projection.ts +18 -0
  405. package/src/arrow/cpu/arrow-cpu-pipelines.ts +9 -0
  406. package/src/arrow/cpu/arrow-cpu-vector-adapters.ts +153 -0
  407. package/src/arrow/geoarrow/arrow-geoarrow-adapter.ts +21 -493
  408. package/src/arrow/geoarrow/arrow-geoarrow-conversion.ts +7 -5
  409. package/src/arrow/geoarrow/arrow-polygon-tessellation.ts +1 -1
  410. package/src/arrow/gpu/arrow-column-gpu-vector.ts +67 -14
  411. package/src/arrow/gpu/arrow-gpu-table-conversion.ts +96 -4
  412. package/src/arrow/gpu/arrow-gpu-vector-adapters.ts +20 -7
  413. package/src/arrow/gpu/arrow-gpu-vector-conversion.ts +49 -6
  414. package/src/arrow/index.ts +14 -0
  415. package/src/geospatial/gpu-point-spatial-query.ts +2 -15
  416. package/src/gpu-core/compiled-gpu-graph.ts +73 -1
  417. package/src/gpu-core/gpu-command-graph-compiler.ts +25 -2
  418. package/src/gpu-core/gpu-command-graph-types.ts +20 -0
  419. package/src/gpu-core/gpu-command-graph.ts +48 -11
  420. package/src/gpu-core/gpu-cpu-execution.ts +345 -0
  421. package/src/gpu-core/gpu-cpu-operation.ts +65 -0
  422. package/src/gpu-core/gpu-dispatch-utils.ts +13 -1
  423. package/src/gpu-core/gpu-expression-operation.ts +1 -1
  424. package/src/gpu-core/gpu-expression-plan.ts +11 -3
  425. package/src/gpu-core/gpu-graph-compiler.ts +61 -0
  426. package/src/gpu-core/gpu-graph.ts +3 -3
  427. package/src/gpu-core/gpu-grid-aggregation.ts +2 -5
  428. package/src/gpu-core/gpu-grid-binning.ts +2 -5
  429. package/src/gpu-core/gpu-grid-coordinate.ts +24 -0
  430. package/src/gpu-core/gpu-grid-index-internals.ts +2 -15
  431. package/src/gpu-core/gpu-grid-index-query.ts +2 -16
  432. package/src/gpu-core/gpu-group-aggregation.ts +38 -50
  433. package/src/gpu-core/gpu-operation.ts +9 -7
  434. package/src/gpu-core/gpu-reduction.ts +32 -42
  435. package/src/gpu-core/gpu-render-operation.ts +42 -0
  436. package/src/gpu-core/gpu-scan.ts +59 -45
  437. package/src/gpu-core/gpu-segmented-reduction.ts +20 -10
  438. package/src/gpu-core/gpu-segmented-scan.ts +82 -17
  439. package/src/gpu-core/gpu-semantic-aggregation-operation.ts +150 -0
  440. package/src/gpu-core/gpu-shader-pass-kernel.ts +307 -0
  441. package/src/gpu-core/gpu-shader-pass-operation.ts +103 -0
  442. package/src/gpu-core/gpu-texture-plan.ts +3 -2
  443. package/src/gpu-core/index.ts +39 -0
  444. package/src/gpu-data/color-conversion.ts +158 -0
  445. package/src/gpu-data/cpu-data.ts +62 -0
  446. package/src/gpu-data/cpu-gpu-vector-transfer.ts +110 -0
  447. package/src/gpu-data/cpu-vector.ts +31 -0
  448. package/src/gpu-data/gpu-data-buffer-props.ts +25 -0
  449. package/src/gpu-data/gpu-vector-wgsl-layout.ts +79 -0
  450. package/src/gpu-data/index.ts +15 -0
  451. package/src/gpu-dataframe/gpu-data-frame-query.ts +6 -26
  452. package/src/gpu-dataframe/gpu-expression.ts +135 -0
  453. package/src/gpu-dataframe/index.ts +11 -0
  454. package/src/gpu-dataframe/portable-expression.ts +117 -0
  455. package/src/gpu-graph/index.ts +17 -0
  456. package/src/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.ts +2 -15
  457. package/src/gpu-physics/gpu-rigid-body-world.ts +227 -2
  458. package/src/gpu-physics/index.ts +1 -0
  459. package/src/gpu-physics/rigid-body-parallel-shaders.ts +32 -9
  460. package/src/gpu-physics/rigid-body-shaders.ts +3 -2
  461. package/src/gpu-physics/rigid-body-vehicle.ts +99 -0
  462. package/src/gpu-project/coordinate-projection-graph.ts +59 -0
  463. package/src/gpu-project/cpu-geoarrow.ts +135 -0
  464. package/src/gpu-project/cpu-geometry-pipelines.ts +159 -0
  465. package/src/gpu-project/cpu-projection-operation.ts +49 -0
  466. package/src/gpu-project/geoarrow.ts +11 -0
  467. package/src/gpu-project/graph.ts +10 -0
  468. package/src/gpu-project/index.ts +2 -0
  469. package/src/gpu-simple-graph/compiled-gpu-expression-graph.ts +97 -6
  470. package/src/gpu-simple-graph/gpu-simple-graph-lowering.ts +11 -0
  471. package/src/gpu-simple-graph/gpu-simple-graph.ts +163 -19
  472. package/src/gpu-simple-graph/index.ts +1 -0
  473. package/src/gpu-simple-graph/operation/gpu-data-evaluator.ts +24 -0
  474. package/src/gpu-simple-graph/operation/gpu-vector-evaluator.ts +7 -0
  475. package/src/gpu-simple-graph/operations/convert-colors.ts +22 -7
  476. package/src/gpu-simple-graph/operations/cpu/convert-colors.ts +31 -48
  477. package/src/gpu-simple-graph/operations/webgpu/convert-colors.ts +47 -13
  478. package/src/gpu-sql/gpu-sql.ts +179 -293
  479. package/src/gpu-tables/table/gpu-table.ts +2 -1
  480. package/src/index.ts +21 -0
@@ -0,0 +1,71 @@
1
+ import { type GPUGraphVector } from "./gpu-graph-value.js";
2
+ import type { GPUOperation } from "./gpu-operation.js";
3
+ import { type GPUOperationContract } from "./gpu-operation-contract.js";
4
+ import type { GPUGroupAggregationOperation } from "./gpu-group-aggregation.js";
5
+ import type { GPUReductionOperation } from "./gpu-reduction.js";
6
+ type ScalarFormat = 'uint32' | 'sint32' | 'float32';
7
+ /** Logical inputs and destination for dense grouped statistics. */
8
+ export type GPUGraphGroupAggregationProps = {
9
+ /** Stable operation identifier. Defaults to the output name plus a suffix. */
10
+ id?: string;
11
+ /** Dense unsigned group keys; out-of-range keys are ignored. */
12
+ keys: string | GPUGraphVector<'uint32'>;
13
+ /** Optional row selection: zero rejects, nonzero accepts. */
14
+ mask?: string | GPUGraphVector<'uint32'>;
15
+ /** Output cardinality. May be omitted when output storage/shape is declared separately. */
16
+ groupCount?: number;
17
+ } & ({
18
+ /** Count accepted rows per group. */
19
+ operation: 'count';
20
+ /** Logical unsigned count destination. */
21
+ output: string | GPUGraphVector<'uint32'>;
22
+ values?: never;
23
+ } | {
24
+ /** Statistic computed over finite float32 contributions. */
25
+ operation: Exclude<GPUGroupAggregationOperation, 'count'>;
26
+ /** One float32 contribution per key. */
27
+ values: string | GPUGraphVector<'float32'>;
28
+ /** Logical float32 statistic destination. */
29
+ output: string | GPUGraphVector<'float32'>;
30
+ });
31
+ /** Dense grouped statistics lowered to GPUGroupAggregation by GPUGraphCompiler. */
32
+ export declare class GPUGraphGroupAggregation implements GPUOperation {
33
+ /** Semantic operation discriminator. */
34
+ readonly type = "group-aggregation";
35
+ /** Stable operation identifier. */
36
+ readonly id: string;
37
+ /** Immutable logical operation arguments. */
38
+ readonly props: Readonly<GPUGraphGroupAggregationProps>;
39
+ /** Describe grouped reduction without allocating or reading GPU storage. */
40
+ constructor(props: GPUGraphGroupAggregationProps);
41
+ /** Logical dependencies and optional inferred output shape. */
42
+ get contract(): GPUOperationContract;
43
+ }
44
+ /** Logical scalar reduction inputs and destination. */
45
+ export type GPUGraphReductionProps = {
46
+ /** Stable operation identifier. Defaults to the output name plus a suffix. */
47
+ id?: string;
48
+ /** Scalar uint32, sint32, or float32 input. */
49
+ input: string | GPUGraphVector<ScalarFormat>;
50
+ /** Optional nonzero/zero row selection. */
51
+ mask?: string | GPUGraphVector<'uint32'>;
52
+ /** Statistic to compute; extent produces minimum followed by maximum. */
53
+ operation: GPUReductionOperation;
54
+ /** Logical result destination, with the same format as input. */
55
+ output: string | GPUGraphVector<ScalarFormat>;
56
+ };
57
+ /** Scalar statistics lowered to GPUReduction by GPUGraphCompiler. */
58
+ export declare class GPUGraphReduction implements GPUOperation {
59
+ /** Semantic operation discriminator. */
60
+ readonly type = "reduction";
61
+ /** Stable operation identifier. */
62
+ readonly id: string;
63
+ /** Immutable logical operation arguments. */
64
+ readonly props: Readonly<GPUGraphReductionProps>;
65
+ /** Describe a scalar reduction without allocating or reading GPU storage. */
66
+ constructor(props: GPUGraphReductionProps);
67
+ /** Infer a packed one-row result, or two rows for extent. */
68
+ get contract(): GPUOperationContract;
69
+ }
70
+ export {};
71
+ //# sourceMappingURL=gpu-semantic-aggregation-operation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gpu-semantic-aggregation-operation.d.ts","sourceRoot":"","sources":["../../src/gpu-core/gpu-semantic-aggregation-operation.ts"],"names":[],"mappings":"AAKA,OAAO,EAAW,KAAK,cAAc,EAAC,6BAA0B;AAChE,OAAO,KAAK,EAAC,YAAY,EAAC,2BAAwB;AAClD,OAAO,EAA2B,KAAK,oBAAoB,EAAC,oCAAiC;AAC7F,OAAO,KAAK,EAAC,4BAA4B,EAAC,mCAAgC;AAC1E,OAAO,KAAK,EAAC,qBAAqB,EAAC,2BAAwB;AAE3D,KAAK,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEpD,mEAAmE;AACnE,MAAM,MAAM,6BAA6B,GAAG;IAC1C,8EAA8E;IAC9E,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gEAAgE;IAChE,IAAI,EAAE,MAAM,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;IACxC,6DAA6D;IAC7D,IAA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G,cAAc,CAAC,YAAY,CAAC,CAAC;CAC/C,CAAC;AAEF,qEAAqE;AACrE,qBAAa,iBAAkB,YAAW,YAAY;IACpD,wCAAwC;IACxC,QAAQ,CAAC,IAAI,eAAe;IAC5B,mCAAmC;IACnC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC;IAEjD,6EAA6E;gBACjE,KAAK,EAAE,sBAAsB;IAKzC,6DAA6D;IAC7D,IAAI,QAAQ,IAAI,oBAAoB,CAwBnC;CACF"}
@@ -0,0 +1,92 @@
1
+ // luma.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
4
+ import { assert } from '@luma.gl/core';
5
+ import { gpuGraph } from "./gpu-graph-value.js";
6
+ import { getGPUOperationValueName } from "./gpu-operation-contract.js";
7
+ /** Dense grouped statistics lowered to GPUGroupAggregation by GPUGraphCompiler. */
8
+ export class GPUGraphGroupAggregation {
9
+ /** Semantic operation discriminator. */
10
+ type = 'group-aggregation';
11
+ /** Stable operation identifier. */
12
+ id;
13
+ /** Immutable logical operation arguments. */
14
+ props;
15
+ /** Describe grouped reduction without allocating or reading GPU storage. */
16
+ constructor(props) {
17
+ // Dense group destinations must have positive integer cardinality.
18
+ assert(props.groupCount === undefined ||
19
+ (Number.isSafeInteger(props.groupCount) && props.groupCount > 0));
20
+ this.id = props.id ?? `${getGPUOperationValueName(props.output)}-group-aggregation`;
21
+ this.props = Object.freeze({ ...props });
22
+ }
23
+ /** Logical dependencies and optional inferred output shape. */
24
+ get contract() {
25
+ const { keys, mask, output, groupCount } = this.props;
26
+ const values = this.props.operation === 'count' ? undefined : this.props.values;
27
+ return {
28
+ outputs: ({ getValue }) => {
29
+ for (const input of [keys, mask]) {
30
+ if (input) {
31
+ const descriptor = getValue(getGPUOperationValueName(input));
32
+ assert(descriptor.type === 'vector' && descriptor.format === 'uint32');
33
+ }
34
+ }
35
+ if (values) {
36
+ const descriptor = getValue(getGPUOperationValueName(values));
37
+ assert(descriptor.type === 'vector' && descriptor.format === 'float32');
38
+ }
39
+ return {
40
+ [getGPUOperationValueName(output)]: gpuGraph.vector(this.props.operation === 'count' ? 'uint32' : 'float32', { length: groupCount })
41
+ };
42
+ },
43
+ values: [
44
+ { value: keys, access: 'read' },
45
+ ...(values ? [{ value: values, access: 'read' }] : []),
46
+ ...(mask ? [{ value: mask, access: 'read' }] : []),
47
+ { value: output, access: 'write' }
48
+ ]
49
+ };
50
+ }
51
+ }
52
+ /** Scalar statistics lowered to GPUReduction by GPUGraphCompiler. */
53
+ export class GPUGraphReduction {
54
+ /** Semantic operation discriminator. */
55
+ type = 'reduction';
56
+ /** Stable operation identifier. */
57
+ id;
58
+ /** Immutable logical operation arguments. */
59
+ props;
60
+ /** Describe a scalar reduction without allocating or reading GPU storage. */
61
+ constructor(props) {
62
+ this.id = props.id ?? `${getGPUOperationValueName(props.output)}-reduction`;
63
+ this.props = Object.freeze({ ...props });
64
+ }
65
+ /** Infer a packed one-row result, or two rows for extent. */
66
+ get contract() {
67
+ const { input, mask, output, operation } = this.props;
68
+ return {
69
+ outputs: ({ getValue }) => {
70
+ const descriptor = getValue(getGPUOperationValueName(input));
71
+ assert(descriptor.type === 'vector');
72
+ const { format } = descriptor;
73
+ assert(format === 'uint32' || format === 'sint32' || format === 'float32');
74
+ if (mask) {
75
+ const selection = getValue(getGPUOperationValueName(mask));
76
+ assert(selection.type === 'vector' && selection.format === 'uint32');
77
+ }
78
+ return {
79
+ [getGPUOperationValueName(output)]: gpuGraph.vector(format, {
80
+ length: operation === 'extent' ? 2 : 1
81
+ })
82
+ };
83
+ },
84
+ values: [
85
+ { value: input, access: 'read' },
86
+ ...(mask ? [{ value: mask, access: 'read' }] : []),
87
+ { value: output, access: 'write' }
88
+ ]
89
+ };
90
+ }
91
+ }
92
+ //# sourceMappingURL=gpu-semantic-aggregation-operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gpu-semantic-aggregation-operation.js","sourceRoot":"","sources":["../../src/gpu-core/gpu-semantic-aggregation-operation.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,+BAA+B;AAC/B,4DAA4D;AAE5D,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AACrC,OAAO,EAAC,QAAQ,EAAsB,6BAA0B;AAEhE,OAAO,EAAC,wBAAwB,EAA4B,oCAAiC;AAkC7F,mFAAmF;AACnF,MAAM,OAAO,wBAAwB;IACnC,wCAAwC;IAC/B,IAAI,GAAG,mBAAmB,CAAC;IACpC,mCAAmC;IAC1B,EAAE,CAAS;IACpB,6CAA6C;IACpC,KAAK,CAA0C;IAExD,4EAA4E;IAC5E,YAAY,KAAoC;QAC9C,mEAAmE;QACnE,MAAM,CACJ,KAAK,CAAC,UAAU,KAAK,SAAS;YAC5B,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,CACnE,CAAC;QACF,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,IAAI,GAAG,wBAAwB,CAAC,KAAK,CAAC,MAAM,CAAC,oBAAoB,CAAC;QACpF,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,EAAC,GAAG,KAAK,EAAC,CAAC,CAAC;IACzC,CAAC;IAED,+DAA+D;IAC/D,IAAI,QAAQ;QACV,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QACpD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;QAChF,OAAO;YACL,OAAO,EAAE,CAAC,EAAC,QAAQ,EAAC,EAAE,EAAE;gBACtB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AAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;qBACvC,CAAC;iBACH,CAAC;YACJ,CAAC;YACD,MAAM,EAAE;gBACN,EAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAC;gBAC9B,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAe,EAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBACzD,EAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC;aACjC;SACF,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,267 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var gpu_shader_pass_kernel_exports = {};
19
+ __export(gpu_shader_pass_kernel_exports, {
20
+ GPUShaderPassKernel: () => GPUShaderPassKernel
21
+ });
22
+ module.exports = __toCommonJS(gpu_shader_pass_kernel_exports);
23
+ var import_core = require("@luma.gl/core");
24
+ var import_gpu_data = require("@luma.gl/graph/gpu-data");
25
+ var import_render_kernel = require("../execution/compute/render-kernel.cjs");
26
+ var import_gpu_scalar = require("./gpu-scalar.cjs");
27
+ var import_gpu_texture_plan = require("./gpu-texture-plan.cjs");
28
+ const VERTEX_SOURCE = `
29
+ struct GraphShaderPassVertex {
30
+ @builtin(position) position: vec4<f32>,
31
+ @location(0) textureCoordinates: vec2<f32>
32
+ };
33
+ @vertex fn vertexMain(@builtin(vertex_index) index: u32) -> GraphShaderPassVertex {
34
+ let position = vec2<f32>(f32((index << 1u) & 2u), f32(index & 2u));
35
+ var result: GraphShaderPassVertex;
36
+ result.position = vec4<f32>(position * 2.0 - 1.0, 0.0, 1.0);
37
+ result.textureCoordinates = vec2<f32>(position.x, 1.0 - position.y);
38
+ return result;
39
+ }`;
40
+ class GPUShaderPassKernel {
41
+ device;
42
+ operation;
43
+ kernel;
44
+ vertexArray;
45
+ samplers = /* @__PURE__ */ Object.create(null);
46
+ parameterFormats;
47
+ parameterByteLength;
48
+ constructor(device, operation, program) {
49
+ this.device = device;
50
+ this.operation = operation;
51
+ (0, import_core.assert)(device.type === "webgpu");
52
+ this.parameterFormats = Object.values(operation.parameters).map((name) => {
53
+ const scalar = program.scalars.find((value) => value.id === name);
54
+ (0, import_core.assert)(scalar);
55
+ return scalar.format;
56
+ });
57
+ this.parameterByteLength = Math.ceil(this.parameterFormats.length / 4) * 16;
58
+ for (const name of Object.values(operation.inputs)) {
59
+ const input = program.textures.find((texture) => texture.id === name);
60
+ const info = device.getTextureFormatInfo(input.format);
61
+ (0, import_core.assert)(!info.integer && info.attachment !== "depth" && info.attachment !== "depth-stencil" && device.getTextureFormatCapabilities(input.format).filter);
62
+ }
63
+ const outputInfo = device.getTextureFormatInfo(operation.outputDescriptor.format);
64
+ (0, import_core.assert)(!outputInfo.integer && device.getTextureFormatCapabilities(operation.outputDescriptor.format).render);
65
+ const shaderBindings = [
66
+ ...Object.keys(operation.inputs).map((name, location) => ({
67
+ name,
68
+ location,
69
+ group: 0,
70
+ type: "texture",
71
+ viewDimension: "2d",
72
+ sampleType: "float"
73
+ })),
74
+ ...Object.keys(operation.samplers).map((name, index) => ({
75
+ name,
76
+ location: Object.keys(operation.inputs).length + index,
77
+ group: 0,
78
+ type: "sampler"
79
+ }))
80
+ ];
81
+ let binding = 0;
82
+ const declarations = [
83
+ ...Object.keys(operation.inputs).map((name) => `@group(0) @binding(${binding++}) var ${name}: texture_2d<f32>;`),
84
+ ...Object.keys(operation.samplers).map((name) => `@group(0) @binding(${binding++}) var ${name}: sampler;`)
85
+ ];
86
+ if (this.parameterFormats.length) {
87
+ shaderBindings.push({ name: "parameters", location: binding, group: 0, type: "uniform" });
88
+ declarations.push(`struct GraphShaderPassParameters {${Object.keys(operation.parameters).map((name, index) => `${name}: ${(0, import_gpu_scalar.getGPUScalarWGSLType)(this.parameterFormats[index])}`).join(",")}};
89
+ @group(0) @binding(${binding}) var<uniform> parameters: GraphShaderPassParameters;`);
90
+ }
91
+ try {
92
+ this.kernel = new import_render_kernel.RenderKernel(device, {
93
+ id: operation.id,
94
+ vertexSource: VERTEX_SOURCE,
95
+ fragmentSource: `${declarations.join("\n")}
96
+ ${operation.fragmentSource}
97
+
98
+ @fragment fn fragmentMain(@location(0) textureCoordinates: vec2<f32>) -> @location(0) vec4<f32> {
99
+ return shade(textureCoordinates);
100
+ }`,
101
+ vertexEntryPoint: "vertexMain",
102
+ fragmentEntryPoint: "fragmentMain",
103
+ topology: "triangle-list",
104
+ shaderLayout: { attributes: [], bindings: shaderBindings },
105
+ colorAttachmentFormats: [operation.outputDescriptor.format],
106
+ parameters: { depthWriteEnabled: false }
107
+ });
108
+ this.vertexArray = device.createVertexArray({
109
+ shaderLayout: this.kernel.pipeline.shaderLayout,
110
+ bufferLayout: []
111
+ });
112
+ for (const [name, props] of Object.entries(operation.samplers))
113
+ this.samplers[name] = device.createSampler(props);
114
+ } catch (error) {
115
+ this.destroy();
116
+ throw error;
117
+ }
118
+ }
119
+ /** Validate selected view geometry before either executor records commands. */
120
+ validateTextures(textures) {
121
+ for (const name of [...Object.values(this.operation.inputs), this.operation.output]) {
122
+ const binding = textures.get(name);
123
+ (0, import_core.assert)(binding);
124
+ const info = (0, import_gpu_texture_plan.getTextureBindingInfo)(binding);
125
+ (0, import_core.assert)(info.texture.device === this.device && info.dimension === "2d" && info.depth === 1 && info.samples === 1);
126
+ if (name === this.operation.output)
127
+ (0, import_core.assert)(info.mipLevels === 1);
128
+ }
129
+ }
130
+ /** Full graph lowers to ordinary resource-tracked copy and render nodes. */
131
+ lower(context) {
132
+ const operation = this.operation;
133
+ const inputs = Object.fromEntries(Object.entries(operation.inputs).map(([name, value]) => [
134
+ name,
135
+ context.resolveTextureView(value)
136
+ ]));
137
+ const output = context.resolveTextureView(operation.output);
138
+ const parameters = this.parameterFormats.length ? context.graph.createTransientBuffer({
139
+ id: context.graph.getUniqueResourceId(`${operation.id}-parameters`),
140
+ byteLength: this.parameterByteLength,
141
+ usage: import_core.Buffer.UNIFORM | import_core.Buffer.COPY_DST
142
+ }) : void 0;
143
+ if (parameters) {
144
+ const sources = Object.values(operation.parameters).map((name) => context.resolveScalar(name).view);
145
+ context.graph.addCopyPass({
146
+ id: `${operation.id}-parameters`,
147
+ resources: [
148
+ ...sources.map((buffer) => ({ buffer, usage: "copy-source" })),
149
+ { buffer: parameters, usage: "copy-destination" }
150
+ ],
151
+ compile: () => ({
152
+ encode: ({ commandEncoder, getBuffer }) => {
153
+ sources.forEach((source, index) => commandEncoder.copyBufferToBuffer({
154
+ sourceBuffer: getBuffer(source),
155
+ sourceOffset: source.byteOffset,
156
+ destinationBuffer: getBuffer(parameters),
157
+ destinationOffset: index * 4,
158
+ size: 4
159
+ }));
160
+ }
161
+ })
162
+ });
163
+ }
164
+ context.graph.addRenderPass({
165
+ id: operation.id,
166
+ resources: [
167
+ ...Object.values(inputs).map((texture) => ({ texture, usage: "sampled" })),
168
+ ...parameters ? [{ buffer: parameters, usage: "uniform" }] : []
169
+ ],
170
+ attachments: { colorAttachments: [output] },
171
+ compile: () => ({
172
+ getRenderPassProps: () => ({ clearColor: [0, 0, 0, 0], clearDepth: false }),
173
+ encode: ({ renderPass, getTextureView, getBuffer }) => this.draw(renderPass, Object.fromEntries(Object.entries(inputs).map(([name, view]) => [name, getTextureView(view)])), parameters ? getBuffer(parameters) : void 0)
174
+ })
175
+ });
176
+ }
177
+ /** SimpleGraph owns only per-invocation framebuffer/uniform wrappers, never bound textures. */
178
+ prepare(textures, values) {
179
+ this.validateTextures(textures);
180
+ const inputs = Object.fromEntries(Object.entries(this.operation.inputs).map(([name, value]) => [name, textures.get(value)]));
181
+ const output = textures.get(this.operation.output);
182
+ const info = (0, import_gpu_texture_plan.getTextureBindingInfo)(output);
183
+ const data = new Uint8Array(this.parameterByteLength);
184
+ const view = new DataView(data.buffer);
185
+ const parameterValues = Object.values(this.operation.parameters).map((name, index) => {
186
+ const value = values.get(name);
187
+ (0, import_core.assert)(value !== void 0);
188
+ if (typeof value === "number") {
189
+ switch (this.parameterFormats[index]) {
190
+ case "float32":
191
+ view.setFloat32(index * 4, value, true);
192
+ break;
193
+ case "sint32":
194
+ view.setInt32(index * 4, value, true);
195
+ break;
196
+ case "uint32":
197
+ view.setUint32(index * 4, value, true);
198
+ break;
199
+ }
200
+ } else
201
+ (0, import_core.assert)(value.length === 1 && value.data.length === 1);
202
+ return value;
203
+ });
204
+ const parameters = data.byteLength ? this.device.createBuffer({ data, usage: import_core.Buffer.UNIFORM | import_core.Buffer.COPY_DST }) : void 0;
205
+ let framebuffer;
206
+ try {
207
+ framebuffer = this.device.createFramebuffer({
208
+ width: info.width,
209
+ height: info.height,
210
+ colorAttachments: [output]
211
+ });
212
+ } catch (error) {
213
+ parameters == null ? void 0 : parameters.destroy();
214
+ throw error;
215
+ }
216
+ return {
217
+ encode: (commandEncoder) => {
218
+ this.validateTextures(textures);
219
+ if (parameters)
220
+ parameterValues.forEach((value, index) => {
221
+ if (!(value instanceof import_gpu_data.GPUVector))
222
+ return;
223
+ const chunk = value.data[0];
224
+ const buffer = chunk.buffer instanceof import_core.Buffer ? chunk.buffer : chunk.buffer.buffer;
225
+ commandEncoder.copyBufferToBuffer({
226
+ sourceBuffer: buffer,
227
+ sourceOffset: chunk.byteOffset,
228
+ destinationBuffer: parameters,
229
+ destinationOffset: index * 4,
230
+ size: 4
231
+ });
232
+ });
233
+ const pass = commandEncoder.beginRenderPass({
234
+ framebuffer,
235
+ clearColor: [0, 0, 0, 0],
236
+ clearDepth: false
237
+ });
238
+ try {
239
+ this.draw(pass, inputs, parameters);
240
+ } finally {
241
+ pass.end();
242
+ }
243
+ },
244
+ destroy: () => {
245
+ framebuffer.destroy();
246
+ parameters == null ? void 0 : parameters.destroy();
247
+ }
248
+ };
249
+ }
250
+ destroy() {
251
+ var _a, _b;
252
+ for (const sampler of Object.values(this.samplers))
253
+ sampler.destroy();
254
+ (_a = this.vertexArray) == null ? void 0 : _a.destroy();
255
+ (_b = this.kernel) == null ? void 0 : _b.destroy();
256
+ }
257
+ draw(renderPass, inputs, parameters) {
258
+ const bindings = { ...inputs, ...this.samplers };
259
+ if (parameters)
260
+ bindings["parameters"] = parameters;
261
+ this.kernel.draw(renderPass, { vertexArray: this.vertexArray, vertexCount: 3, bindings });
262
+ }
263
+ }
264
+ // Annotate the CommonJS export names for ESM import in node:
265
+ 0 && (module.exports = {
266
+ GPUShaderPassKernel
267
+ });
@@ -0,0 +1,29 @@
1
+ import { type CommandEncoder, type Device } from '@luma.gl/core';
2
+ import { GPUVector } from '@luma.gl/graph/gpu-data';
3
+ import type { GPUShaderPassOperation } from "./gpu-shader-pass-operation.js";
4
+ import type { GPUExpressionProgram } from "./gpu-expression-plan.js";
5
+ import type { GPUOperationLoweringContext } from "./gpu-graph-lowering.js";
6
+ import { type GPUGraphTextureBinding } from "./gpu-texture-plan.js";
7
+ /** One immutable pipeline; resources and uniforms are supplied independently for each draw. @internal */
8
+ export declare class GPUShaderPassKernel {
9
+ readonly device: Device;
10
+ readonly operation: GPUShaderPassOperation;
11
+ private kernel;
12
+ private vertexArray;
13
+ private readonly samplers;
14
+ private readonly parameterFormats;
15
+ private readonly parameterByteLength;
16
+ constructor(device: Device, operation: GPUShaderPassOperation, program: Pick<GPUExpressionProgram, 'textures' | 'scalars'>);
17
+ /** Validate selected view geometry before either executor records commands. */
18
+ validateTextures(textures: ReadonlyMap<string, GPUGraphTextureBinding>): void;
19
+ /** Full graph lowers to ordinary resource-tracked copy and render nodes. */
20
+ lower<Parameters>(context: GPUOperationLoweringContext<Parameters>): void;
21
+ /** SimpleGraph owns only per-invocation framebuffer/uniform wrappers, never bound textures. */
22
+ prepare(textures: ReadonlyMap<string, GPUGraphTextureBinding>, values: ReadonlyMap<string, GPUVector | number>): {
23
+ encode: (commandEncoder: CommandEncoder) => void;
24
+ destroy: () => void;
25
+ };
26
+ destroy(): void;
27
+ private draw;
28
+ }
29
+ //# sourceMappingURL=gpu-shader-pass-kernel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gpu-shader-pass-kernel.d.ts","sourceRoot":"","sources":["../../src/gpu-core/gpu-shader-pass-kernel.ts"],"names":[],"mappings":"AAIA,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,MAAM,EAIZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAElD,OAAO,KAAK,EAAC,sBAAsB,EAAC,uCAAoC;AACxE,OAAO,KAAK,EAAC,oBAAoB,EAAC,iCAA8B;AAChE,OAAO,KAAK,EAAC,2BAA2B,EAAC,gCAA6B;AAEtE,OAAO,EAAwB,KAAK,sBAAsB,EAAC,8BAA2B;AAetF,yGAAyG;AACzG,qBAAa,mBAAmB;IAQ5B,QAAQ,CAAC,MAAM,EAAE,MAAM;IACvB,QAAQ,CAAC,SAAS,EAAE,sBAAsB;IAR5C,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,WAAW,CAAe;IAClC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgD;IACzE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA+C;IAChF,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAS;gBAGlC,MAAM,EAAE,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