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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (746) 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/experimental-models.cjs +21 -0
  72. package/dist/experimental-models.d.ts +2 -0
  73. package/dist/experimental-models.d.ts.map +1 -0
  74. package/dist/experimental-models.js +5 -0
  75. package/dist/experimental-models.js.map +1 -0
  76. package/dist/experimental-simulation.cjs +21 -0
  77. package/dist/experimental-simulation.d.ts +2 -0
  78. package/dist/experimental-simulation.d.ts.map +1 -0
  79. package/dist/experimental-simulation.js +5 -0
  80. package/dist/experimental-simulation.js.map +1 -0
  81. package/dist/geospatial/gpu-point-spatial-query.cjs +2 -15
  82. package/dist/geospatial/gpu-point-spatial-query.d.ts.map +1 -1
  83. package/dist/geospatial/gpu-point-spatial-query.js +2 -15
  84. package/dist/geospatial/gpu-point-spatial-query.js.map +1 -1
  85. package/dist/geospatial/index.cjs.map +2 -2
  86. package/dist/gpu-a5/index.cjs.map +1 -1
  87. package/dist/gpu-core/compiled-gpu-graph.cjs +47 -0
  88. package/dist/gpu-core/compiled-gpu-graph.d.ts +5 -0
  89. package/dist/gpu-core/compiled-gpu-graph.d.ts.map +1 -1
  90. package/dist/gpu-core/compiled-gpu-graph.js +54 -1
  91. package/dist/gpu-core/compiled-gpu-graph.js.map +1 -1
  92. package/dist/gpu-core/gpu-command-graph-compiler.cjs +11 -2
  93. package/dist/gpu-core/gpu-command-graph-compiler.d.ts +2 -1
  94. package/dist/gpu-core/gpu-command-graph-compiler.d.ts.map +1 -1
  95. package/dist/gpu-core/gpu-command-graph-compiler.js +13 -2
  96. package/dist/gpu-core/gpu-command-graph-compiler.js.map +1 -1
  97. package/dist/gpu-core/gpu-command-graph-types.d.ts +16 -1
  98. package/dist/gpu-core/gpu-command-graph-types.d.ts.map +1 -1
  99. package/dist/gpu-core/gpu-command-graph-types.js.map +1 -1
  100. package/dist/gpu-core/gpu-command-graph.cjs +34 -11
  101. package/dist/gpu-core/gpu-command-graph.d.ts +17 -8
  102. package/dist/gpu-core/gpu-command-graph.d.ts.map +1 -1
  103. package/dist/gpu-core/gpu-command-graph.js +39 -11
  104. package/dist/gpu-core/gpu-command-graph.js.map +1 -1
  105. package/dist/gpu-core/gpu-cpu-execution.cjs +279 -0
  106. package/dist/gpu-core/gpu-cpu-execution.d.ts +22 -0
  107. package/dist/gpu-core/gpu-cpu-execution.d.ts.map +1 -0
  108. package/dist/gpu-core/gpu-cpu-execution.js +294 -0
  109. package/dist/gpu-core/gpu-cpu-execution.js.map +1 -0
  110. package/dist/gpu-core/gpu-cpu-operation.cjs +54 -0
  111. package/dist/gpu-core/gpu-cpu-operation.d.ts +40 -0
  112. package/dist/gpu-core/gpu-cpu-operation.d.ts.map +1 -0
  113. package/dist/gpu-core/gpu-cpu-operation.js +35 -0
  114. package/dist/gpu-core/gpu-cpu-operation.js.map +1 -0
  115. package/dist/gpu-core/gpu-dispatch-utils.cjs +7 -3
  116. package/dist/gpu-core/gpu-dispatch-utils.d.ts +2 -0
  117. package/dist/gpu-core/gpu-dispatch-utils.d.ts.map +1 -1
  118. package/dist/gpu-core/gpu-dispatch-utils.js +4 -1
  119. package/dist/gpu-core/gpu-dispatch-utils.js.map +1 -1
  120. package/dist/gpu-core/gpu-expression-operation.cjs +2 -2
  121. package/dist/gpu-core/gpu-expression-operation.d.ts +1 -1
  122. package/dist/gpu-core/gpu-expression-operation.d.ts.map +1 -1
  123. package/dist/gpu-core/gpu-expression-operation.js +1 -1
  124. package/dist/gpu-core/gpu-expression-operation.js.map +1 -1
  125. package/dist/gpu-core/gpu-expression-plan.cjs +5 -1
  126. package/dist/gpu-core/gpu-expression-plan.d.ts +3 -2
  127. package/dist/gpu-core/gpu-expression-plan.d.ts.map +1 -1
  128. package/dist/gpu-core/gpu-expression-plan.js +7 -1
  129. package/dist/gpu-core/gpu-expression-plan.js.map +1 -1
  130. package/dist/gpu-core/gpu-graph-compiler.cjs +48 -0
  131. package/dist/gpu-core/gpu-graph-compiler.d.ts +1 -0
  132. package/dist/gpu-core/gpu-graph-compiler.d.ts.map +1 -1
  133. package/dist/gpu-core/gpu-graph-compiler.js +50 -0
  134. package/dist/gpu-core/gpu-graph-compiler.js.map +1 -1
  135. package/dist/gpu-core/gpu-graph.d.ts +2 -2
  136. package/dist/gpu-core/gpu-graph.d.ts.map +1 -1
  137. package/dist/gpu-core/gpu-graph.js.map +1 -1
  138. package/dist/gpu-core/gpu-grid-aggregation.cjs +2 -5
  139. package/dist/gpu-core/gpu-grid-aggregation.d.ts.map +1 -1
  140. package/dist/gpu-core/gpu-grid-aggregation.js +2 -5
  141. package/dist/gpu-core/gpu-grid-aggregation.js.map +1 -1
  142. package/dist/gpu-core/gpu-grid-binning.cjs +2 -5
  143. package/dist/gpu-core/gpu-grid-binning.d.ts.map +1 -1
  144. package/dist/gpu-core/gpu-grid-binning.js +2 -5
  145. package/dist/gpu-core/gpu-grid-binning.js.map +1 -1
  146. package/dist/gpu-core/gpu-grid-coordinate.cjs +41 -0
  147. package/dist/gpu-core/gpu-grid-coordinate.d.ts +7 -0
  148. package/dist/gpu-core/gpu-grid-coordinate.d.ts.map +1 -0
  149. package/dist/gpu-core/gpu-grid-coordinate.js +24 -0
  150. package/dist/gpu-core/gpu-grid-coordinate.js.map +1 -0
  151. package/dist/gpu-core/gpu-grid-index-internals.cjs +2 -15
  152. package/dist/gpu-core/gpu-grid-index-internals.d.ts.map +1 -1
  153. package/dist/gpu-core/gpu-grid-index-internals.js +2 -15
  154. package/dist/gpu-core/gpu-grid-index-internals.js.map +1 -1
  155. package/dist/gpu-core/gpu-grid-index-query.cjs +2 -16
  156. package/dist/gpu-core/gpu-grid-index-query.d.ts.map +1 -1
  157. package/dist/gpu-core/gpu-grid-index-query.js +2 -16
  158. package/dist/gpu-core/gpu-grid-index-query.js.map +1 -1
  159. package/dist/gpu-core/gpu-group-aggregation.cjs +7 -15
  160. package/dist/gpu-core/gpu-group-aggregation.d.ts.map +1 -1
  161. package/dist/gpu-core/gpu-group-aggregation.js +7 -18
  162. package/dist/gpu-core/gpu-group-aggregation.js.map +1 -1
  163. package/dist/gpu-core/gpu-operation.d.ts +4 -4
  164. package/dist/gpu-core/gpu-operation.d.ts.map +1 -1
  165. package/dist/gpu-core/gpu-operation.js.map +1 -1
  166. package/dist/gpu-core/gpu-reduction.cjs +6 -14
  167. package/dist/gpu-core/gpu-reduction.d.ts.map +1 -1
  168. package/dist/gpu-core/gpu-reduction.js +6 -15
  169. package/dist/gpu-core/gpu-reduction.js.map +1 -1
  170. package/dist/gpu-core/gpu-render-operation.cjs +39 -0
  171. package/dist/gpu-core/gpu-render-operation.d.ts +21 -0
  172. package/dist/gpu-core/gpu-render-operation.d.ts.map +1 -0
  173. package/dist/gpu-core/gpu-render-operation.js +22 -0
  174. package/dist/gpu-core/gpu-render-operation.js.map +1 -0
  175. package/dist/gpu-core/gpu-scan.cjs +46 -32
  176. package/dist/gpu-core/gpu-scan.d.ts.map +1 -1
  177. package/dist/gpu-core/gpu-scan.js +56 -44
  178. package/dist/gpu-core/gpu-scan.js.map +1 -1
  179. package/dist/gpu-core/gpu-segmented-reduction.cjs +12 -9
  180. package/dist/gpu-core/gpu-segmented-reduction.d.ts +1 -1
  181. package/dist/gpu-core/gpu-segmented-reduction.d.ts.map +1 -1
  182. package/dist/gpu-core/gpu-segmented-reduction.js +12 -9
  183. package/dist/gpu-core/gpu-segmented-reduction.js.map +1 -1
  184. package/dist/gpu-core/gpu-segmented-scan.cjs +73 -16
  185. package/dist/gpu-core/gpu-segmented-scan.d.ts.map +1 -1
  186. package/dist/gpu-core/gpu-segmented-scan.js +73 -16
  187. package/dist/gpu-core/gpu-segmented-scan.js.map +1 -1
  188. package/dist/gpu-core/gpu-semantic-aggregation-operation.cjs +112 -0
  189. package/dist/gpu-core/gpu-semantic-aggregation-operation.d.ts +71 -0
  190. package/dist/gpu-core/gpu-semantic-aggregation-operation.d.ts.map +1 -0
  191. package/dist/gpu-core/gpu-semantic-aggregation-operation.js +92 -0
  192. package/dist/gpu-core/gpu-semantic-aggregation-operation.js.map +1 -0
  193. package/dist/gpu-core/gpu-shader-pass-kernel.cjs +267 -0
  194. package/dist/gpu-core/gpu-shader-pass-kernel.d.ts +29 -0
  195. package/dist/gpu-core/gpu-shader-pass-kernel.d.ts.map +1 -0
  196. package/dist/gpu-core/gpu-shader-pass-kernel.js +260 -0
  197. package/dist/gpu-core/gpu-shader-pass-kernel.js.map +1 -0
  198. package/dist/gpu-core/gpu-shader-pass-operation.cjs +85 -0
  199. package/dist/gpu-core/gpu-shader-pass-operation.d.ts +32 -0
  200. package/dist/gpu-core/gpu-shader-pass-operation.d.ts.map +1 -0
  201. package/dist/gpu-core/gpu-shader-pass-operation.js +74 -0
  202. package/dist/gpu-core/gpu-shader-pass-operation.js.map +1 -0
  203. package/dist/gpu-core/gpu-texture-plan.d.ts +3 -2
  204. package/dist/gpu-core/gpu-texture-plan.d.ts.map +1 -1
  205. package/dist/gpu-core/gpu-texture-plan.js.map +1 -1
  206. package/dist/gpu-core/index.cjs +32 -0
  207. package/dist/gpu-core/index.cjs.map +3 -3
  208. package/dist/gpu-core/index.d.ts +21 -1
  209. package/dist/gpu-core/index.d.ts.map +1 -1
  210. package/dist/gpu-core/index.js +10 -0
  211. package/dist/gpu-core/index.js.map +1 -1
  212. package/dist/gpu-data/color-conversion.cjs +105 -0
  213. package/dist/gpu-data/color-conversion.d.ts +30 -0
  214. package/dist/gpu-data/color-conversion.d.ts.map +1 -0
  215. package/dist/gpu-data/color-conversion.js +109 -0
  216. package/dist/gpu-data/color-conversion.js.map +1 -0
  217. package/dist/gpu-data/cpu-data.cjs +60 -0
  218. package/dist/gpu-data/cpu-data.d.ts +28 -0
  219. package/dist/gpu-data/cpu-data.d.ts.map +1 -0
  220. package/dist/gpu-data/cpu-data.js +41 -0
  221. package/dist/gpu-data/cpu-data.js.map +1 -0
  222. package/dist/gpu-data/cpu-gpu-vector-transfer.cjs +98 -0
  223. package/dist/gpu-data/cpu-gpu-vector-transfer.d.ts +9 -0
  224. package/dist/gpu-data/cpu-gpu-vector-transfer.d.ts.map +1 -0
  225. package/dist/gpu-data/cpu-gpu-vector-transfer.js +85 -0
  226. package/dist/gpu-data/cpu-gpu-vector-transfer.js.map +1 -0
  227. package/dist/gpu-data/cpu-vector.cjs +42 -0
  228. package/dist/gpu-data/cpu-vector.d.ts +17 -0
  229. package/dist/gpu-data/cpu-vector.d.ts.map +1 -0
  230. package/dist/gpu-data/cpu-vector.js +21 -0
  231. package/dist/gpu-data/cpu-vector.js.map +1 -0
  232. package/dist/gpu-data/gpu-data-buffer-props.cjs +41 -0
  233. package/dist/gpu-data/gpu-data-buffer-props.d.ts +5 -0
  234. package/dist/gpu-data/gpu-data-buffer-props.d.ts.map +1 -0
  235. package/dist/gpu-data/gpu-data-buffer-props.js +19 -0
  236. package/dist/gpu-data/gpu-data-buffer-props.js.map +1 -0
  237. package/dist/gpu-data/gpu-vector-wgsl-layout.cjs +50 -0
  238. package/dist/gpu-data/gpu-vector-wgsl-layout.d.ts +41 -0
  239. package/dist/gpu-data/gpu-vector-wgsl-layout.d.ts.map +1 -0
  240. package/dist/gpu-data/gpu-vector-wgsl-layout.js +45 -0
  241. package/dist/gpu-data/gpu-vector-wgsl-layout.js.map +1 -0
  242. package/dist/gpu-data/index.cjs +21 -2
  243. package/dist/gpu-data/index.cjs.map +3 -3
  244. package/dist/gpu-data/index.d.ts +6 -0
  245. package/dist/gpu-data/index.d.ts.map +1 -1
  246. package/dist/gpu-data/index.js +5 -0
  247. package/dist/gpu-data/index.js.map +1 -1
  248. package/dist/gpu-dataframe/gpu-data-frame-query.cjs +8 -19
  249. package/dist/gpu-dataframe/gpu-data-frame-query.d.ts.map +1 -1
  250. package/dist/gpu-dataframe/gpu-data-frame-query.js +14 -26
  251. package/dist/gpu-dataframe/gpu-data-frame-query.js.map +1 -1
  252. package/dist/gpu-dataframe/gpu-expression-shader.cjs +87 -5
  253. package/dist/gpu-dataframe/gpu-expression-shader.d.ts +2 -1
  254. package/dist/gpu-dataframe/gpu-expression-shader.d.ts.map +1 -1
  255. package/dist/gpu-dataframe/gpu-expression-shader.js +101 -5
  256. package/dist/gpu-dataframe/gpu-expression-shader.js.map +1 -1
  257. package/dist/gpu-dataframe/gpu-expression.cjs +177 -2
  258. package/dist/gpu-dataframe/gpu-expression.d.ts +60 -2
  259. package/dist/gpu-dataframe/gpu-expression.d.ts.map +1 -1
  260. package/dist/gpu-dataframe/gpu-expression.js +187 -0
  261. package/dist/gpu-dataframe/gpu-expression.js.map +1 -1
  262. package/dist/gpu-dataframe/gpu-global-aggregation-compiler.cjs +0 -1
  263. package/dist/gpu-dataframe/gpu-global-aggregation-compiler.d.ts.map +1 -1
  264. package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js +0 -1
  265. package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js.map +1 -1
  266. package/dist/gpu-dataframe/gpu-global-aggregation-query.cjs +2 -2
  267. package/dist/gpu-dataframe/gpu-global-aggregation-query.d.ts.map +1 -1
  268. package/dist/gpu-dataframe/gpu-global-aggregation-query.js +5 -3
  269. package/dist/gpu-dataframe/gpu-global-aggregation-query.js.map +1 -1
  270. package/dist/gpu-dataframe/gpu-global-sort-compiler.cjs +23 -11
  271. package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts +1 -1
  272. package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts.map +1 -1
  273. package/dist/gpu-dataframe/gpu-global-sort-compiler.js +24 -12
  274. package/dist/gpu-dataframe/gpu-global-sort-compiler.js.map +1 -1
  275. package/dist/gpu-dataframe/gpu-group-aggregation-compiler.cjs +0 -1
  276. package/dist/gpu-dataframe/gpu-group-aggregation-compiler.d.ts.map +1 -1
  277. package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js +0 -1
  278. package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js.map +1 -1
  279. package/dist/gpu-dataframe/gpu-group-by-query.cjs +2 -2
  280. package/dist/gpu-dataframe/gpu-group-by-query.js +5 -3
  281. package/dist/gpu-dataframe/gpu-group-by-query.js.map +1 -1
  282. package/dist/gpu-dataframe/gpu-histogram-compiler.cjs +0 -1
  283. package/dist/gpu-dataframe/gpu-histogram-compiler.d.ts.map +1 -1
  284. package/dist/gpu-dataframe/gpu-histogram-compiler.js +0 -1
  285. package/dist/gpu-dataframe/gpu-histogram-compiler.js.map +1 -1
  286. package/dist/gpu-dataframe/gpu-join-compiler.cjs +0 -2
  287. package/dist/gpu-dataframe/gpu-join-compiler.d.ts.map +1 -1
  288. package/dist/gpu-dataframe/gpu-join-compiler.js +0 -2
  289. package/dist/gpu-dataframe/gpu-join-compiler.js.map +1 -1
  290. package/dist/gpu-dataframe/gpu-query-compiler.cjs +3 -1
  291. package/dist/gpu-dataframe/gpu-query-compiler.d.ts +0 -1
  292. package/dist/gpu-dataframe/gpu-query-compiler.d.ts.map +1 -1
  293. package/dist/gpu-dataframe/gpu-query-compiler.js +3 -1
  294. package/dist/gpu-dataframe/gpu-query-compiler.js.map +1 -1
  295. package/dist/gpu-dataframe/gpu-sort-compiler.cjs +0 -1
  296. package/dist/gpu-dataframe/gpu-sort-compiler.d.ts.map +1 -1
  297. package/dist/gpu-dataframe/gpu-sort-compiler.js +0 -1
  298. package/dist/gpu-dataframe/gpu-sort-compiler.js.map +1 -1
  299. package/dist/gpu-dataframe/gpu-sort-query.cjs +13 -5
  300. package/dist/gpu-dataframe/gpu-sort-query.d.ts +4 -1
  301. package/dist/gpu-dataframe/gpu-sort-query.d.ts.map +1 -1
  302. package/dist/gpu-dataframe/gpu-sort-query.js +14 -5
  303. package/dist/gpu-dataframe/gpu-sort-query.js.map +1 -1
  304. package/dist/gpu-dataframe/index.cjs +20 -2
  305. package/dist/gpu-dataframe/index.cjs.map +3 -3
  306. package/dist/gpu-dataframe/index.d.ts +6 -2
  307. package/dist/gpu-dataframe/index.d.ts.map +1 -1
  308. package/dist/gpu-dataframe/index.js +3 -1
  309. package/dist/gpu-dataframe/index.js.map +1 -1
  310. package/dist/gpu-dataframe/portable-expression.cjs +167 -0
  311. package/dist/gpu-dataframe/portable-expression.d.ts +21 -0
  312. package/dist/gpu-dataframe/portable-expression.d.ts.map +1 -0
  313. package/dist/gpu-dataframe/portable-expression.js +162 -0
  314. package/dist/gpu-dataframe/portable-expression.js.map +1 -0
  315. package/dist/gpu-dggs/benchmarks.cjs.map +1 -1
  316. package/dist/gpu-dggs/index.cjs.map +1 -1
  317. package/dist/gpu-dggs-benchmarks.cjs +21 -0
  318. package/dist/gpu-dggs-benchmarks.d.ts +2 -0
  319. package/dist/gpu-dggs-benchmarks.d.ts.map +1 -0
  320. package/dist/gpu-dggs-benchmarks.js +5 -0
  321. package/dist/gpu-dggs-benchmarks.js.map +1 -0
  322. package/dist/gpu-geometry/index.cjs.map +1 -1
  323. package/dist/gpu-graph/index.cjs +8 -0
  324. package/dist/gpu-graph/index.cjs.map +3 -3
  325. package/dist/gpu-graph/index.d.ts +4 -0
  326. package/dist/gpu-graph/index.d.ts.map +1 -1
  327. package/dist/gpu-graph/index.js +2 -0
  328. package/dist/gpu-graph/index.js.map +1 -1
  329. package/dist/gpu-graph-algorithms/benchmarks.cjs.map +2 -2
  330. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.cjs +2 -15
  331. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.d.ts.map +1 -1
  332. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js +2 -15
  333. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js.map +1 -1
  334. package/dist/gpu-graph-algorithms/index.cjs.map +2 -2
  335. package/dist/gpu-graph-algorithms-benchmarks.cjs +21 -0
  336. package/dist/gpu-graph-algorithms-benchmarks.d.ts +2 -0
  337. package/dist/gpu-graph-algorithms-benchmarks.d.ts.map +1 -0
  338. package/dist/gpu-graph-algorithms-benchmarks.js +5 -0
  339. package/dist/gpu-graph-algorithms-benchmarks.js.map +1 -0
  340. package/dist/gpu-h3/index.cjs.map +1 -1
  341. package/dist/gpu-physics/gpu-physics-ensemble-terrain.cjs +116 -0
  342. package/dist/gpu-physics/gpu-physics-ensemble-terrain.d.ts +42 -0
  343. package/dist/gpu-physics/gpu-physics-ensemble-terrain.d.ts.map +1 -0
  344. package/dist/gpu-physics/gpu-physics-ensemble-terrain.js +90 -0
  345. package/dist/gpu-physics/gpu-physics-ensemble-terrain.js.map +1 -0
  346. package/dist/gpu-physics/gpu-physics-ensemble.cjs +97 -5
  347. package/dist/gpu-physics/gpu-physics-ensemble.d.ts +31 -2
  348. package/dist/gpu-physics/gpu-physics-ensemble.d.ts.map +1 -1
  349. package/dist/gpu-physics/gpu-physics-ensemble.js +99 -3
  350. package/dist/gpu-physics/gpu-physics-ensemble.js.map +1 -1
  351. package/dist/gpu-physics/gpu-rigid-body-world.cjs +568 -77
  352. package/dist/gpu-physics/gpu-rigid-body-world.d.ts +86 -0
  353. package/dist/gpu-physics/gpu-rigid-body-world.d.ts.map +1 -1
  354. package/dist/gpu-physics/gpu-rigid-body-world.js +617 -76
  355. package/dist/gpu-physics/gpu-rigid-body-world.js.map +1 -1
  356. package/dist/gpu-physics/index.cjs +23 -2
  357. package/dist/gpu-physics/index.cjs.map +3 -3
  358. package/dist/gpu-physics/index.d.ts +9 -2
  359. package/dist/gpu-physics/index.d.ts.map +1 -1
  360. package/dist/gpu-physics/index.js +6 -1
  361. package/dist/gpu-physics/index.js.map +1 -1
  362. package/dist/gpu-physics/rigid-body-bounds-shaders.cjs +21 -8
  363. package/dist/gpu-physics/rigid-body-bounds-shaders.d.ts +2 -1
  364. package/dist/gpu-physics/rigid-body-bounds-shaders.d.ts.map +1 -1
  365. package/dist/gpu-physics/rigid-body-bounds-shaders.js +15 -1
  366. package/dist/gpu-physics/rigid-body-bounds-shaders.js.map +1 -1
  367. package/dist/gpu-physics/rigid-body-convex-shaders.cjs +3 -2
  368. package/dist/gpu-physics/rigid-body-convex-shaders.d.ts +1 -1
  369. package/dist/gpu-physics/rigid-body-convex-shaders.d.ts.map +1 -1
  370. package/dist/gpu-physics/rigid-body-convex-shaders.js +3 -2
  371. package/dist/gpu-physics/rigid-body-convex-shaders.js.map +1 -1
  372. package/dist/gpu-physics/rigid-body-ensemble-reset.cjs +36 -7
  373. package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts +1 -1
  374. package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts.map +1 -1
  375. package/dist/gpu-physics/rigid-body-ensemble-reset.js +42 -7
  376. package/dist/gpu-physics/rigid-body-ensemble-reset.js.map +1 -1
  377. package/dist/gpu-physics/rigid-body-ensemble-transaction.cjs +23 -1
  378. package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts +4 -1
  379. package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts.map +1 -1
  380. package/dist/gpu-physics/rigid-body-ensemble-transaction.js +25 -1
  381. package/dist/gpu-physics/rigid-body-ensemble-transaction.js.map +1 -1
  382. package/dist/gpu-physics/rigid-body-geometry.cjs +41 -4
  383. package/dist/gpu-physics/rigid-body-geometry.d.ts +10 -1
  384. package/dist/gpu-physics/rigid-body-geometry.d.ts.map +1 -1
  385. package/dist/gpu-physics/rigid-body-geometry.js +44 -3
  386. package/dist/gpu-physics/rigid-body-geometry.js.map +1 -1
  387. package/dist/gpu-physics/rigid-body-height-field-shader.cjs +80 -0
  388. package/dist/gpu-physics/rigid-body-height-field-shader.d.ts +3 -0
  389. package/dist/gpu-physics/rigid-body-height-field-shader.d.ts.map +1 -0
  390. package/dist/gpu-physics/rigid-body-height-field-shader.js +56 -0
  391. package/dist/gpu-physics/rigid-body-height-field-shader.js.map +1 -0
  392. package/dist/gpu-physics/rigid-body-height-field.cjs +166 -0
  393. package/dist/gpu-physics/rigid-body-height-field.d.ts +55 -0
  394. package/dist/gpu-physics/rigid-body-height-field.d.ts.map +1 -0
  395. package/dist/gpu-physics/rigid-body-height-field.js +184 -0
  396. package/dist/gpu-physics/rigid-body-height-field.js.map +1 -0
  397. package/dist/gpu-physics/rigid-body-mesh-query-shaders.cjs +4 -2
  398. package/dist/gpu-physics/rigid-body-mesh-query-shaders.d.ts +1 -1
  399. package/dist/gpu-physics/rigid-body-mesh-query-shaders.d.ts.map +1 -1
  400. package/dist/gpu-physics/rigid-body-mesh-query-shaders.js +4 -2
  401. package/dist/gpu-physics/rigid-body-mesh-query-shaders.js.map +1 -1
  402. package/dist/gpu-physics/rigid-body-mesh.cjs +72 -17
  403. package/dist/gpu-physics/rigid-body-mesh.d.ts +3 -0
  404. package/dist/gpu-physics/rigid-body-mesh.d.ts.map +1 -1
  405. package/dist/gpu-physics/rigid-body-mesh.js +76 -20
  406. package/dist/gpu-physics/rigid-body-mesh.js.map +1 -1
  407. package/dist/gpu-physics/rigid-body-parallel-shaders.cjs +24 -9
  408. package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts +1 -1
  409. package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts.map +1 -1
  410. package/dist/gpu-physics/rigid-body-parallel-shaders.js +28 -9
  411. package/dist/gpu-physics/rigid-body-parallel-shaders.js.map +1 -1
  412. package/dist/gpu-physics/rigid-body-properties.cjs +4 -4
  413. package/dist/gpu-physics/rigid-body-properties.d.ts +6 -0
  414. package/dist/gpu-physics/rigid-body-properties.d.ts.map +1 -1
  415. package/dist/gpu-physics/rigid-body-properties.js +1 -1
  416. package/dist/gpu-physics/rigid-body-properties.js.map +1 -1
  417. package/dist/gpu-physics/rigid-body-publication.cjs +2 -2
  418. package/dist/gpu-physics/rigid-body-publication.js +1 -1
  419. package/dist/gpu-physics/rigid-body-publication.js.map +1 -1
  420. package/dist/gpu-physics/rigid-body-query-geometry.cjs +22 -4
  421. package/dist/gpu-physics/rigid-body-query-geometry.d.ts +1 -1
  422. package/dist/gpu-physics/rigid-body-query-geometry.d.ts.map +1 -1
  423. package/dist/gpu-physics/rigid-body-query-geometry.js +22 -4
  424. package/dist/gpu-physics/rigid-body-query-geometry.js.map +1 -1
  425. package/dist/gpu-physics/rigid-body-shaders.cjs +12 -6
  426. package/dist/gpu-physics/rigid-body-shaders.d.ts +1 -1
  427. package/dist/gpu-physics/rigid-body-shaders.d.ts.map +1 -1
  428. package/dist/gpu-physics/rigid-body-shaders.js +15 -7
  429. package/dist/gpu-physics/rigid-body-shaders.js.map +1 -1
  430. package/dist/gpu-physics/rigid-body-shape-properties.cjs +2 -0
  431. package/dist/gpu-physics/rigid-body-shape-properties.d.ts.map +1 -1
  432. package/dist/gpu-physics/rigid-body-shape-properties.js +2 -0
  433. package/dist/gpu-physics/rigid-body-shape-properties.js.map +1 -1
  434. package/dist/gpu-physics/rigid-body-terrain-atlas.cjs +287 -0
  435. package/dist/gpu-physics/rigid-body-terrain-atlas.d.ts +87 -0
  436. package/dist/gpu-physics/rigid-body-terrain-atlas.d.ts.map +1 -0
  437. package/dist/gpu-physics/rigid-body-terrain-atlas.js +275 -0
  438. package/dist/gpu-physics/rigid-body-terrain-atlas.js.map +1 -0
  439. package/dist/gpu-physics/rigid-body-terrain-lod.cjs +240 -0
  440. package/dist/gpu-physics/rigid-body-terrain-lod.d.ts +76 -0
  441. package/dist/gpu-physics/rigid-body-terrain-lod.d.ts.map +1 -0
  442. package/dist/gpu-physics/rigid-body-terrain-lod.js +247 -0
  443. package/dist/gpu-physics/rigid-body-terrain-lod.js.map +1 -0
  444. package/dist/gpu-physics/rigid-body-terrain-stitch.cjs +215 -0
  445. package/dist/gpu-physics/rigid-body-terrain-stitch.d.ts +25 -0
  446. package/dist/gpu-physics/rigid-body-terrain-stitch.d.ts.map +1 -0
  447. package/dist/gpu-physics/rigid-body-terrain-stitch.js +218 -0
  448. package/dist/gpu-physics/rigid-body-terrain-stitch.js.map +1 -0
  449. package/dist/gpu-physics/rigid-body-terrain-stream.cjs +263 -0
  450. package/dist/gpu-physics/rigid-body-terrain-stream.d.ts +97 -0
  451. package/dist/gpu-physics/rigid-body-terrain-stream.d.ts.map +1 -0
  452. package/dist/gpu-physics/rigid-body-terrain-stream.js +250 -0
  453. package/dist/gpu-physics/rigid-body-terrain-stream.js.map +1 -0
  454. package/dist/gpu-physics/rigid-body-triggers.cjs +1 -0
  455. package/dist/gpu-physics/rigid-body-triggers.d.ts.map +1 -1
  456. package/dist/gpu-physics/rigid-body-triggers.js +1 -0
  457. package/dist/gpu-physics/rigid-body-triggers.js.map +1 -1
  458. package/dist/gpu-physics/rigid-body-vehicle.cjs +145 -0
  459. package/dist/gpu-physics/rigid-body-vehicle.d.ts +47 -0
  460. package/dist/gpu-physics/rigid-body-vehicle.d.ts.map +1 -0
  461. package/dist/gpu-physics/rigid-body-vehicle.js +119 -0
  462. package/dist/gpu-physics/rigid-body-vehicle.js.map +1 -0
  463. package/dist/gpu-pointcloud/index.cjs.map +1 -1
  464. package/dist/gpu-project/benchmarks.cjs.map +2 -2
  465. package/dist/gpu-project/coordinate-projection-graph.cjs +59 -0
  466. package/dist/gpu-project/coordinate-projection-graph.d.ts +23 -0
  467. package/dist/gpu-project/coordinate-projection-graph.d.ts.map +1 -0
  468. package/dist/gpu-project/coordinate-projection-graph.js +40 -0
  469. package/dist/gpu-project/coordinate-projection-graph.js.map +1 -0
  470. package/dist/gpu-project/cpu-geoarrow.cjs +112 -0
  471. package/dist/gpu-project/cpu-geoarrow.d.ts +10 -0
  472. package/dist/gpu-project/cpu-geoarrow.d.ts.map +1 -0
  473. package/dist/gpu-project/cpu-geoarrow.js +103 -0
  474. package/dist/gpu-project/cpu-geoarrow.js.map +1 -0
  475. package/dist/gpu-project/cpu-geometry-pipelines.cjs +134 -0
  476. package/dist/gpu-project/cpu-geometry-pipelines.d.ts +19 -0
  477. package/dist/gpu-project/cpu-geometry-pipelines.d.ts.map +1 -0
  478. package/dist/gpu-project/cpu-geometry-pipelines.js +114 -0
  479. package/dist/gpu-project/cpu-geometry-pipelines.js.map +1 -0
  480. package/dist/gpu-project/cpu-projection-operation.cjs +54 -0
  481. package/dist/gpu-project/cpu-projection-operation.d.ts +14 -0
  482. package/dist/gpu-project/cpu-projection-operation.d.ts.map +1 -0
  483. package/dist/gpu-project/cpu-projection-operation.js +37 -0
  484. package/dist/gpu-project/cpu-projection-operation.js.map +1 -0
  485. package/dist/gpu-project/crs.cjs.map +3 -3
  486. package/dist/gpu-project/crs.d.ts +1 -1
  487. package/dist/gpu-project/geoarrow.cjs +36 -0
  488. package/dist/gpu-project/geoarrow.cjs.map +6 -0
  489. package/dist/gpu-project/geoarrow.d.ts +3 -0
  490. package/dist/gpu-project/geoarrow.d.ts.map +1 -0
  491. package/dist/gpu-project/geoarrow.js +7 -0
  492. package/dist/gpu-project/geoarrow.js.map +1 -0
  493. package/dist/gpu-project/graph.cjs +27 -0
  494. package/dist/gpu-project/graph.cjs.map +6 -0
  495. package/dist/gpu-project/graph.d.ts +2 -0
  496. package/dist/gpu-project/graph.d.ts.map +1 -0
  497. package/dist/gpu-project/graph.js +6 -0
  498. package/dist/gpu-project/graph.js.map +1 -0
  499. package/dist/gpu-project/index.cjs +3 -0
  500. package/dist/gpu-project/index.cjs.map +3 -3
  501. package/dist/gpu-project/index.d.ts +1 -0
  502. package/dist/gpu-project/index.d.ts.map +1 -1
  503. package/dist/gpu-project/index.js +1 -0
  504. package/dist/gpu-project/index.js.map +1 -1
  505. package/dist/gpu-project/projection-crs-benchmark.cjs +2 -2
  506. package/dist/gpu-project/projection-crs-benchmark.d.ts +1 -1
  507. package/dist/gpu-project/projection-crs-benchmark.js +1 -1
  508. package/dist/gpu-project/projection-crs-input.cjs +7 -7
  509. package/dist/gpu-project/projection-crs-input.d.ts +1 -1
  510. package/dist/gpu-project/projection-crs-input.js +4 -4
  511. package/dist/gpu-project/projection-engine.d.ts +2 -2
  512. package/dist/gpu-project-benchmarks.cjs +21 -0
  513. package/dist/gpu-project-benchmarks.d.ts +2 -0
  514. package/dist/gpu-project-benchmarks.d.ts.map +1 -0
  515. package/dist/gpu-project-benchmarks.js +5 -0
  516. package/dist/gpu-project-benchmarks.js.map +1 -0
  517. package/dist/gpu-project-crs.cjs +21 -0
  518. package/dist/gpu-project-crs.d.ts +2 -0
  519. package/dist/gpu-project-crs.d.ts.map +1 -0
  520. package/dist/gpu-project-crs.js +5 -0
  521. package/dist/gpu-project-crs.js.map +1 -0
  522. package/dist/gpu-project-geoarrow.cjs +21 -0
  523. package/dist/gpu-project-geoarrow.d.ts +2 -0
  524. package/dist/gpu-project-geoarrow.d.ts.map +1 -0
  525. package/dist/gpu-project-geoarrow.js +5 -0
  526. package/dist/gpu-project-geoarrow.js.map +1 -0
  527. package/dist/gpu-project-graph.cjs +21 -0
  528. package/dist/gpu-project-graph.d.ts +2 -0
  529. package/dist/gpu-project-graph.d.ts.map +1 -0
  530. package/dist/gpu-project-graph.js +5 -0
  531. package/dist/gpu-project-graph.js.map +1 -0
  532. package/dist/gpu-simple-graph/compiled-gpu-expression-graph.cjs +75 -5
  533. package/dist/gpu-simple-graph/compiled-gpu-expression-graph.d.ts +5 -1
  534. package/dist/gpu-simple-graph/compiled-gpu-expression-graph.d.ts.map +1 -1
  535. package/dist/gpu-simple-graph/compiled-gpu-expression-graph.js +86 -6
  536. package/dist/gpu-simple-graph/compiled-gpu-expression-graph.js.map +1 -1
  537. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.cjs +9 -0
  538. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts +2 -0
  539. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts.map +1 -1
  540. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js +10 -0
  541. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js.map +1 -1
  542. package/dist/gpu-simple-graph/gpu-simple-graph-transfer.d.ts +1 -1
  543. package/dist/gpu-simple-graph/gpu-simple-graph-transfer.d.ts.map +1 -1
  544. package/dist/gpu-simple-graph/gpu-simple-graph-value.d.ts +1 -1
  545. package/dist/gpu-simple-graph/gpu-simple-graph-value.d.ts.map +1 -1
  546. package/dist/gpu-simple-graph/gpu-simple-graph.cjs +126 -10
  547. package/dist/gpu-simple-graph/gpu-simple-graph.d.ts +36 -11
  548. package/dist/gpu-simple-graph/gpu-simple-graph.d.ts.map +1 -1
  549. package/dist/gpu-simple-graph/gpu-simple-graph.js +137 -12
  550. package/dist/gpu-simple-graph/gpu-simple-graph.js.map +1 -1
  551. package/dist/gpu-simple-graph/index.cjs.map +3 -3
  552. package/dist/gpu-simple-graph/index.d.ts +1 -1
  553. package/dist/gpu-simple-graph/index.d.ts.map +1 -1
  554. package/dist/gpu-simple-graph/index.js.map +1 -1
  555. package/dist/gpu-simple-graph/operation/gpu-data-evaluator.cjs +25 -0
  556. package/dist/gpu-simple-graph/operation/gpu-data-evaluator.d.ts +7 -1
  557. package/dist/gpu-simple-graph/operation/gpu-data-evaluator.d.ts.map +1 -1
  558. package/dist/gpu-simple-graph/operation/gpu-data-evaluator.js +28 -0
  559. package/dist/gpu-simple-graph/operation/gpu-data-evaluator.js.map +1 -1
  560. package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.cjs +7 -0
  561. package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.d.ts +2 -0
  562. package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.d.ts.map +1 -1
  563. package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.js +7 -0
  564. package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.js.map +1 -1
  565. package/dist/gpu-simple-graph/operation/operation.d.ts +1 -1
  566. package/dist/gpu-simple-graph/operation/operation.d.ts.map +1 -1
  567. package/dist/gpu-simple-graph/operations/convert-colors.cjs +6 -6
  568. package/dist/gpu-simple-graph/operations/convert-colors.d.ts +5 -1
  569. package/dist/gpu-simple-graph/operations/convert-colors.d.ts.map +1 -1
  570. package/dist/gpu-simple-graph/operations/convert-colors.js +12 -7
  571. package/dist/gpu-simple-graph/operations/convert-colors.js.map +1 -1
  572. package/dist/gpu-simple-graph/operations/cpu/convert-colors.cjs +16 -33
  573. package/dist/gpu-simple-graph/operations/cpu/convert-colors.d.ts.map +1 -1
  574. package/dist/gpu-simple-graph/operations/cpu/convert-colors.js +22 -35
  575. package/dist/gpu-simple-graph/operations/cpu/convert-colors.js.map +1 -1
  576. package/dist/gpu-simple-graph/operations/cpu/index.cjs.map +3 -3
  577. package/dist/gpu-simple-graph/operations/webgl/index.cjs.map +3 -3
  578. package/dist/gpu-simple-graph/operations/webgpu/convert-colors.cjs +31 -13
  579. package/dist/gpu-simple-graph/operations/webgpu/convert-colors.d.ts.map +1 -1
  580. package/dist/gpu-simple-graph/operations/webgpu/convert-colors.js +42 -13
  581. package/dist/gpu-simple-graph/operations/webgpu/convert-colors.js.map +1 -1
  582. package/dist/gpu-simple-graph/operations/webgpu/index.cjs.map +1 -1
  583. package/dist/gpu-simple-graph-cpu.cjs +21 -0
  584. package/dist/gpu-simple-graph-cpu.d.ts +2 -0
  585. package/dist/gpu-simple-graph-cpu.d.ts.map +1 -0
  586. package/dist/gpu-simple-graph-cpu.js +5 -0
  587. package/dist/gpu-simple-graph-cpu.js.map +1 -0
  588. package/dist/gpu-simple-graph-webgl.cjs +21 -0
  589. package/dist/gpu-simple-graph-webgl.d.ts +2 -0
  590. package/dist/gpu-simple-graph-webgl.d.ts.map +1 -0
  591. package/dist/gpu-simple-graph-webgl.js +5 -0
  592. package/dist/gpu-simple-graph-webgl.js.map +1 -0
  593. package/dist/gpu-simple-graph-webgpu.cjs +21 -0
  594. package/dist/gpu-simple-graph-webgpu.d.ts +2 -0
  595. package/dist/gpu-simple-graph-webgpu.d.ts.map +1 -0
  596. package/dist/gpu-simple-graph-webgpu.js +5 -0
  597. package/dist/gpu-simple-graph-webgpu.js.map +1 -0
  598. package/dist/gpu-sql/gpu-sql.cjs +159 -328
  599. package/dist/gpu-sql/gpu-sql.d.ts +1 -1
  600. package/dist/gpu-sql/gpu-sql.d.ts.map +1 -1
  601. package/dist/gpu-sql/gpu-sql.js +186 -340
  602. package/dist/gpu-sql/gpu-sql.js.map +1 -1
  603. package/dist/gpu-sql/index.cjs.map +3 -3
  604. package/dist/gpu-tables/index.cjs.map +2 -2
  605. package/dist/gpu-tables/table/gpu-table.cjs +2 -2
  606. package/dist/gpu-tables/table/gpu-table.d.ts.map +1 -1
  607. package/dist/gpu-tables/table/gpu-table.js +2 -2
  608. package/dist/gpu-tables/table/gpu-table.js.map +1 -1
  609. package/dist/gpu-timeseries/index.cjs.map +1 -1
  610. package/dist/index.cjs +11 -0
  611. package/dist/index.cjs.map +3 -3
  612. package/dist/index.d.ts +7 -1
  613. package/dist/index.d.ts.map +1 -1
  614. package/dist/index.js +3 -0
  615. package/dist/index.js.map +1 -1
  616. package/package.json +30 -16
  617. package/src/arrow/arrow-colors.ts +194 -33
  618. package/src/arrow/arrow-utils/arrow-paths.ts +5 -3
  619. package/src/arrow/cpu/arrow-coordinate-projection.ts +18 -0
  620. package/src/arrow/cpu/arrow-cpu-pipelines.ts +9 -0
  621. package/src/arrow/cpu/arrow-cpu-vector-adapters.ts +153 -0
  622. package/src/arrow/geoarrow/arrow-geoarrow-adapter.ts +21 -493
  623. package/src/arrow/geoarrow/arrow-geoarrow-conversion.ts +7 -5
  624. package/src/arrow/geoarrow/arrow-polygon-tessellation.ts +1 -1
  625. package/src/arrow/gpu/arrow-column-gpu-vector.ts +67 -14
  626. package/src/arrow/gpu/arrow-gpu-table-conversion.ts +96 -4
  627. package/src/arrow/gpu/arrow-gpu-vector-adapters.ts +20 -7
  628. package/src/arrow/gpu/arrow-gpu-vector-conversion.ts +49 -6
  629. package/src/arrow/index.ts +14 -0
  630. package/src/experimental-models.ts +5 -0
  631. package/src/experimental-simulation.ts +5 -0
  632. package/src/geospatial/gpu-point-spatial-query.ts +2 -15
  633. package/src/gpu-core/compiled-gpu-graph.ts +73 -1
  634. package/src/gpu-core/gpu-command-graph-compiler.ts +25 -2
  635. package/src/gpu-core/gpu-command-graph-types.ts +20 -0
  636. package/src/gpu-core/gpu-command-graph.ts +48 -11
  637. package/src/gpu-core/gpu-cpu-execution.ts +345 -0
  638. package/src/gpu-core/gpu-cpu-operation.ts +65 -0
  639. package/src/gpu-core/gpu-dispatch-utils.ts +13 -1
  640. package/src/gpu-core/gpu-expression-operation.ts +1 -1
  641. package/src/gpu-core/gpu-expression-plan.ts +11 -3
  642. package/src/gpu-core/gpu-graph-compiler.ts +61 -0
  643. package/src/gpu-core/gpu-graph.ts +3 -3
  644. package/src/gpu-core/gpu-grid-aggregation.ts +2 -5
  645. package/src/gpu-core/gpu-grid-binning.ts +2 -5
  646. package/src/gpu-core/gpu-grid-coordinate.ts +24 -0
  647. package/src/gpu-core/gpu-grid-index-internals.ts +2 -15
  648. package/src/gpu-core/gpu-grid-index-query.ts +2 -16
  649. package/src/gpu-core/gpu-group-aggregation.ts +38 -50
  650. package/src/gpu-core/gpu-operation.ts +9 -7
  651. package/src/gpu-core/gpu-reduction.ts +32 -42
  652. package/src/gpu-core/gpu-render-operation.ts +42 -0
  653. package/src/gpu-core/gpu-scan.ts +59 -45
  654. package/src/gpu-core/gpu-segmented-reduction.ts +20 -10
  655. package/src/gpu-core/gpu-segmented-scan.ts +82 -17
  656. package/src/gpu-core/gpu-semantic-aggregation-operation.ts +150 -0
  657. package/src/gpu-core/gpu-shader-pass-kernel.ts +307 -0
  658. package/src/gpu-core/gpu-shader-pass-operation.ts +103 -0
  659. package/src/gpu-core/gpu-texture-plan.ts +3 -2
  660. package/src/gpu-core/index.ts +39 -0
  661. package/src/gpu-data/color-conversion.ts +158 -0
  662. package/src/gpu-data/cpu-data.ts +62 -0
  663. package/src/gpu-data/cpu-gpu-vector-transfer.ts +110 -0
  664. package/src/gpu-data/cpu-vector.ts +31 -0
  665. package/src/gpu-data/gpu-data-buffer-props.ts +25 -0
  666. package/src/gpu-data/gpu-vector-wgsl-layout.ts +79 -0
  667. package/src/gpu-data/index.ts +15 -0
  668. package/src/gpu-dataframe/gpu-data-frame-query.ts +24 -31
  669. package/src/gpu-dataframe/gpu-expression-shader.ts +128 -7
  670. package/src/gpu-dataframe/gpu-expression.ts +259 -1
  671. package/src/gpu-dataframe/gpu-global-aggregation-compiler.ts +0 -1
  672. package/src/gpu-dataframe/gpu-global-aggregation-query.ts +5 -3
  673. package/src/gpu-dataframe/gpu-global-sort-compiler.ts +26 -12
  674. package/src/gpu-dataframe/gpu-group-aggregation-compiler.ts +0 -1
  675. package/src/gpu-dataframe/gpu-group-by-query.ts +5 -3
  676. package/src/gpu-dataframe/gpu-histogram-compiler.ts +0 -1
  677. package/src/gpu-dataframe/gpu-join-compiler.ts +0 -2
  678. package/src/gpu-dataframe/gpu-query-compiler.ts +3 -3
  679. package/src/gpu-dataframe/gpu-sort-compiler.ts +0 -1
  680. package/src/gpu-dataframe/gpu-sort-query.ts +31 -5
  681. package/src/gpu-dataframe/index.ts +26 -2
  682. package/src/gpu-dataframe/portable-expression.ts +194 -0
  683. package/src/gpu-dggs-benchmarks.ts +5 -0
  684. package/src/gpu-graph/index.ts +17 -0
  685. package/src/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.ts +2 -15
  686. package/src/gpu-graph-algorithms-benchmarks.ts +5 -0
  687. package/src/gpu-physics/gpu-physics-ensemble-terrain.ts +114 -0
  688. package/src/gpu-physics/gpu-physics-ensemble.ts +147 -4
  689. package/src/gpu-physics/gpu-rigid-body-world.ts +797 -102
  690. package/src/gpu-physics/index.ts +38 -0
  691. package/src/gpu-physics/rigid-body-bounds-shaders.ts +16 -1
  692. package/src/gpu-physics/rigid-body-convex-shaders.ts +3 -2
  693. package/src/gpu-physics/rigid-body-ensemble-reset.ts +48 -8
  694. package/src/gpu-physics/rigid-body-ensemble-transaction.ts +34 -1
  695. package/src/gpu-physics/rigid-body-geometry.ts +49 -4
  696. package/src/gpu-physics/rigid-body-height-field-shader.ts +56 -0
  697. package/src/gpu-physics/rigid-body-height-field.ts +257 -0
  698. package/src/gpu-physics/rigid-body-mesh-query-shaders.ts +4 -2
  699. package/src/gpu-physics/rigid-body-mesh.ts +97 -26
  700. package/src/gpu-physics/rigid-body-parallel-shaders.ts +32 -9
  701. package/src/gpu-physics/rigid-body-properties.ts +5 -2
  702. package/src/gpu-physics/rigid-body-publication.ts +1 -1
  703. package/src/gpu-physics/rigid-body-query-geometry.ts +22 -4
  704. package/src/gpu-physics/rigid-body-shaders.ts +19 -7
  705. package/src/gpu-physics/rigid-body-shape-properties.ts +2 -0
  706. package/src/gpu-physics/rigid-body-terrain-atlas.ts +378 -0
  707. package/src/gpu-physics/rigid-body-terrain-lod.ts +332 -0
  708. package/src/gpu-physics/rigid-body-terrain-stitch.ts +286 -0
  709. package/src/gpu-physics/rigid-body-terrain-stream.ts +323 -0
  710. package/src/gpu-physics/rigid-body-triggers.ts +1 -0
  711. package/src/gpu-physics/rigid-body-vehicle.ts +166 -0
  712. package/src/gpu-project/README.md +2 -2
  713. package/src/gpu-project/coordinate-projection-graph.ts +59 -0
  714. package/src/gpu-project/cpu-geoarrow.ts +135 -0
  715. package/src/gpu-project/cpu-geometry-pipelines.ts +159 -0
  716. package/src/gpu-project/cpu-projection-operation.ts +49 -0
  717. package/src/gpu-project/crs.ts +2 -2
  718. package/src/gpu-project/geoarrow.ts +11 -0
  719. package/src/gpu-project/graph.ts +10 -0
  720. package/src/gpu-project/index.ts +2 -0
  721. package/src/gpu-project/projection-crs-benchmark.ts +2 -2
  722. package/src/gpu-project/projection-crs-input.ts +4 -4
  723. package/src/gpu-project/projection-engine.ts +2 -2
  724. package/src/gpu-project-benchmarks.ts +5 -0
  725. package/src/gpu-project-crs.ts +5 -0
  726. package/src/gpu-project-geoarrow.ts +5 -0
  727. package/src/gpu-project-graph.ts +5 -0
  728. package/src/gpu-simple-graph/compiled-gpu-expression-graph.ts +97 -6
  729. package/src/gpu-simple-graph/gpu-simple-graph-lowering.ts +11 -0
  730. package/src/gpu-simple-graph/gpu-simple-graph-transfer.ts +1 -1
  731. package/src/gpu-simple-graph/gpu-simple-graph-value.ts +1 -1
  732. package/src/gpu-simple-graph/gpu-simple-graph.ts +163 -19
  733. package/src/gpu-simple-graph/index.ts +1 -0
  734. package/src/gpu-simple-graph/operation/gpu-data-evaluator.ts +25 -1
  735. package/src/gpu-simple-graph/operation/gpu-vector-evaluator.ts +7 -0
  736. package/src/gpu-simple-graph/operation/operation.ts +1 -1
  737. package/src/gpu-simple-graph/operations/convert-colors.ts +22 -7
  738. package/src/gpu-simple-graph/operations/cpu/convert-colors.ts +31 -48
  739. package/src/gpu-simple-graph/operations/swizzle.ts +1 -1
  740. package/src/gpu-simple-graph/operations/webgpu/convert-colors.ts +47 -13
  741. package/src/gpu-simple-graph-cpu.ts +5 -0
  742. package/src/gpu-simple-graph-webgl.ts +5 -0
  743. package/src/gpu-simple-graph-webgpu.ts +5 -0
  744. package/src/gpu-sql/gpu-sql.ts +238 -354
  745. package/src/gpu-tables/table/gpu-table.ts +2 -1
  746. package/src/index.ts +21 -0
@@ -0,0 +1,323 @@
1
+ // luma.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
4
+
5
+ import type {GPURigidBodyWorld, GPURigidBodyHeightFieldEdit} from './gpu-rigid-body-world';
6
+ import {
7
+ stitchRigidBodyTerrainTiles,
8
+ type GPURigidBodyTerrainSeam,
9
+ type GPURigidBodyTerrainTile
10
+ } from './rigid-body-terrain-stitch';
11
+
12
+ /** Fetch and decode a tile by an application-defined revisioned key. */
13
+ export type GPURigidBodyTerrainProvider = {
14
+ /** Resolve a detached tile in the shared collider frame. Honor signal for prompt cancellation. */
15
+ loadTile(key: string, signal: AbortSignal): Promise<GPURigidBodyTerrainTile>;
16
+ };
17
+
18
+ /** URL resolver and decoder used by the standard fetch provider. */
19
+ export type GPURigidBodyTerrainFetchProps = {
20
+ /** Resolve a revisioned tile key to a request URL. */
21
+ getTileUrl: (key: string) => string | URL;
22
+ /** Decode the response into a native field and metric placement. */
23
+ decode: (
24
+ response: Response,
25
+ key: string,
26
+ signal: AbortSignal
27
+ ) => Promise<GPURigidBodyTerrainTile>;
28
+ /** Optional transport for applications with custom request policy. */
29
+ fetch?: typeof globalThis.fetch;
30
+ };
31
+
32
+ /** Load HTTP tiles with the stream's cancellation signal and a caller-supplied decoder. */
33
+ export function makeRigidBodyTerrainFetchProvider(
34
+ props: GPURigidBodyTerrainFetchProps
35
+ ): GPURigidBodyTerrainProvider {
36
+ return {
37
+ async loadTile(key, signal) {
38
+ const response = await (props.fetch ?? globalThis.fetch)(props.getTileUrl(key), {signal});
39
+ if (!response.ok) throw new Error(`Terrain request failed with HTTP ${response.status}`);
40
+ signal.throwIfAborted();
41
+ return props.decode(response, key, signal);
42
+ }
43
+ };
44
+ }
45
+
46
+ /** One requested tile and its reserved native height-field slot. */
47
+ export type GPURigidBodyTerrainSlot = {
48
+ /** Collider receiving the tile. */
49
+ collider: number;
50
+ /** Stable content key, including revision if tiles can change. */
51
+ key: string;
52
+ };
53
+
54
+ /** Complete desired residency and the edges to reconcile before publication. */
55
+ export type GPURigidBodyTerrainWindow = {
56
+ /** Requested tiles across all slots owned by this stream. */
57
+ tiles: readonly GPURigidBodyTerrainSlot[];
58
+ /** Explicit collinear neighbors in the supplied frame. */
59
+ seams?: readonly GPURigidBodyTerrainSeam[];
60
+ };
61
+
62
+ /** Stream settings. */
63
+ export type GPURigidBodyTerrainStreamProps = {
64
+ /** Data source for loading native fields. */
65
+ provider: GPURigidBodyTerrainProvider;
66
+ /** Upper bound shared across current and superseded windows. Defaults to four. */
67
+ maximumConcurrentLoads?: number;
68
+ };
69
+
70
+ /** Prepared or committed provider data, including the unmodified seam sources. */
71
+ type ResidentWindow = {
72
+ keys: Map<number, string>;
73
+ source: Map<string, GPURigidBodyTerrainTile>;
74
+ stitched: ReadonlyMap<number, GPURigidBodyTerrainTile>;
75
+ };
76
+
77
+ /** A revisioned request that may be queued, active, or retained for publication. */
78
+ type TileLoad = {
79
+ controller: AbortController;
80
+ tile: Promise<GPURigidBodyTerrainTile>;
81
+ resolve: (tile: GPURigidBodyTerrainTile) => void;
82
+ reject: (error: unknown) => void;
83
+ };
84
+
85
+ /** Bounded provider fetching with an explicit publication boundary between GPU submissions. */
86
+ export class GPURigidBodyTerrainStream {
87
+ /** Last request, used to ignore late completions. */
88
+ private controller?: AbortController;
89
+ /** Fully fetched and stitched window waiting for publication. */
90
+ private ready?: ResidentWindow;
91
+ /** Current stream-owned collider contents. */
92
+ private resident: ResidentWindow = {keys: new Map(), source: new Map(), stitched: new Map()};
93
+
94
+ /** Create a streamer that borrows a world's fixed slots and owns its provider requests. */
95
+ constructor(
96
+ private readonly world: Pick<GPURigidBodyWorld, 'setHeightFieldTiles'>,
97
+ props: GPURigidBodyTerrainStreamProps,
98
+ /** @internal One queue can serve multiple independent residency windows. */
99
+ private readonly loadQueue = new RigidBodyTerrainLoadQueue(props)
100
+ ) {}
101
+
102
+ /** Stage the latest window. False indicates a newer window or cancellation superseded it. */
103
+ async prepare(window: GPURigidBodyTerrainWindow): Promise<boolean> {
104
+ const keys = new Map<number, string>();
105
+ for (const {collider, key} of window.tiles) {
106
+ if (!Number.isSafeInteger(collider) || collider < 0 || keys.has(collider) || !key)
107
+ throw new Error('Invalid terrain window slot');
108
+ keys.set(collider, key);
109
+ }
110
+ const seams = window.seams?.map(seam => ({...seam})) ?? [];
111
+ for (const seam of seams)
112
+ if (!keys.has(seam.first) || !keys.has(seam.second))
113
+ throw new Error('Terrain seam references an absent slot');
114
+
115
+ this.controller?.abort();
116
+ this.ready = undefined;
117
+ const required = new Set(keys.values());
118
+ this.loadQueue.setDemand(this, new Set([...this.resident.source.keys(), ...required]));
119
+ const controller = new AbortController();
120
+ this.controller = controller;
121
+ const signal = controller.signal;
122
+ const cancellation = new Promise<false>(resolve => {
123
+ signal.addEventListener('abort', () => resolve(false), {once: true});
124
+ });
125
+ // Capture this revision's cache so a later publication cannot change the selected source.
126
+ const residentSources = this.resident.source;
127
+ const loadWindow = async (): Promise<boolean> => {
128
+ const source = new Map(
129
+ await Promise.all(
130
+ [...required].map(
131
+ async key =>
132
+ [key, residentSources.get(key) ?? (await this.loadQueue.getLoad(key))] as const
133
+ )
134
+ )
135
+ );
136
+ if (signal.aborted) return false;
137
+ const tiles = new Map(Array.from(keys, ([collider, key]) => [collider, source.get(key)!]));
138
+ const stitched = stitchRigidBodyTerrainTiles(tiles, seams);
139
+ this.ready = {keys, source, stitched};
140
+ return true;
141
+ };
142
+ try {
143
+ return await Promise.race([loadWindow(), cancellation]);
144
+ } catch (error) {
145
+ if (signal.aborted) return false;
146
+ this.cancel();
147
+ throw error;
148
+ } finally {
149
+ if (this.controller === controller) this.controller = undefined;
150
+ }
151
+ }
152
+
153
+ /** Publish the fully staged window between submissions. Preserve it if upload validation fails. */
154
+ apply(): boolean {
155
+ const edits = this.getPreparedEdits();
156
+ if (!edits) return false;
157
+ if (edits.length) this.world.setHeightFieldTiles(edits);
158
+ this.commitPreparedWindow();
159
+ return true;
160
+ }
161
+
162
+ /** @internal Plan the ready window without changing its publication status. */
163
+ getPreparedEdits(): GPURigidBodyHeightFieldEdit[] | undefined {
164
+ const ready = this.ready;
165
+ if (!ready) return undefined;
166
+ const edits: GPURigidBodyHeightFieldEdit[] = [];
167
+ for (const collider of this.resident.stitched.keys()) {
168
+ if (!ready.keys.has(collider)) edits.push({collider, field: null});
169
+ }
170
+ for (const [collider, tile] of ready.stitched) {
171
+ const previous = this.resident.stitched.get(collider);
172
+ const keyChanged = this.resident.keys.get(collider) !== ready.keys.get(collider);
173
+ if (keyChanged || !sameStitchedSamples(previous, tile))
174
+ edits.push({collider, field: tile.field, position: tile.position});
175
+ }
176
+ return edits;
177
+ }
178
+
179
+ /** @internal Commit only after the caller has published the corresponding edits. */
180
+ commitPreparedWindow(): void {
181
+ const ready = this.ready!;
182
+ this.resident = ready;
183
+ this.ready = undefined;
184
+ this.loadQueue.setDemand(this, new Set(ready.source.keys()));
185
+ }
186
+
187
+ /** Number of slots in the committed window. */
188
+ get residentTileCount(): number {
189
+ return this.resident.keys.size;
190
+ }
191
+
192
+ /** Read a detached copy of the collider's currently committed and stitched tile. */
193
+ getTile(collider: number): GPURigidBodyTerrainTile | null {
194
+ const tile = this.resident.stitched.get(collider);
195
+ return tile ? structuredClone(tile) : null;
196
+ }
197
+
198
+ /** Cancel pending work and discard unapplied data. */
199
+ cancel(): void {
200
+ this.controller?.abort();
201
+ this.controller = undefined;
202
+ this.ready = undefined;
203
+ this.loadQueue.setDemand(this, new Set(this.resident.source.keys()));
204
+ }
205
+
206
+ /** Release stream-owned slots after canceling fetches. Call between submissions. */
207
+ clear(): void {
208
+ this.cancel();
209
+ const edits = Array.from(this.resident.stitched.keys(), collider => ({collider, field: null}));
210
+ if (edits.length) this.world.setHeightFieldTiles(edits);
211
+ this.release();
212
+ }
213
+
214
+ /** @internal Forget the window after its world has taken over resource disposal. */
215
+ release(): void {
216
+ this.cancel();
217
+ this.loadQueue.setDemand(this, new Set());
218
+ this.resident = {keys: new Map(), source: new Map(), stitched: new Map()};
219
+ }
220
+ }
221
+
222
+ /** @internal Shared, ref-counted provider requests across independent windows. */
223
+ export class RigidBodyTerrainLoadQueue {
224
+ /** Active provider work, including aborted requests that have not settled. */
225
+ private activeLoads = 0;
226
+ /** Requests retained by the latest window, including completed but unapplied data. */
227
+ private readonly loads = new Map<string, TileLoad>();
228
+ /** Pending provider work in submission order. */
229
+ private readonly queued = new Map<string, TileLoad>();
230
+ /** Shared concurrency limit. */
231
+ private readonly maximumConcurrentLoads: number;
232
+ private readonly demands = new Map<object, ReadonlySet<string>>();
233
+ private readonly references = new Map<string, number>();
234
+
235
+ constructor(private readonly props: GPURigidBodyTerrainStreamProps) {
236
+ this.maximumConcurrentLoads = props.maximumConcurrentLoads ?? 4;
237
+ if (!Number.isSafeInteger(this.maximumConcurrentLoads) || this.maximumConcurrentLoads < 1)
238
+ throw new Error('Invalid terrain provider concurrency');
239
+ }
240
+
241
+ /** Replace one owner's demand while keeping shared requests and resident content alive. */
242
+ setDemand(owner: object, keys: ReadonlySet<string>): void {
243
+ const previous = this.demands.get(owner);
244
+ for (const key of keys)
245
+ if (!previous?.has(key)) this.references.set(key, (this.references.get(key) ?? 0) + 1);
246
+ for (const key of previous ?? []) {
247
+ if (keys.has(key)) continue;
248
+ const remaining = this.references.get(key)! - 1;
249
+ if (remaining) {
250
+ this.references.set(key, remaining);
251
+ } else {
252
+ this.references.delete(key);
253
+ const load = this.loads.get(key);
254
+ if (load) this.abortLoad(load);
255
+ this.loads.delete(key);
256
+ this.queued.delete(key);
257
+ }
258
+ }
259
+ if (keys.size) this.demands.set(owner, keys);
260
+ else this.demands.delete(owner);
261
+ }
262
+
263
+ /** Reuse the same fetch when a superseding window still needs its revisioned key. */
264
+ getLoad(key: string): Promise<GPURigidBodyTerrainTile> {
265
+ const retained = this.loads.get(key);
266
+ if (retained) return retained.tile;
267
+ let resolve!: TileLoad['resolve'];
268
+ let reject!: TileLoad['reject'];
269
+ const tile = new Promise<GPURigidBodyTerrainTile>((resolveTile, rejectTile) => {
270
+ resolve = resolveTile;
271
+ reject = rejectTile;
272
+ });
273
+ const load = {controller: new AbortController(), tile, resolve, reject};
274
+ this.loads.set(key, load);
275
+ this.queued.set(key, load);
276
+ this.startQueuedLoads();
277
+ return tile;
278
+ }
279
+
280
+ /** Release the waiting window promptly while retaining the active capacity reservation. */
281
+ private abortLoad(load: TileLoad): void {
282
+ load.controller.abort();
283
+ load.reject(load.controller.signal.reason);
284
+ }
285
+
286
+ /** Only active provider work consumes concurrency, even if the provider ignores abort. */
287
+ private startQueuedLoads(): void {
288
+ for (const [key, load] of this.queued) {
289
+ if (this.activeLoads >= this.maximumConcurrentLoads) break;
290
+ this.queued.delete(key);
291
+ this.activeLoads++;
292
+ const {signal} = load.controller;
293
+ void Promise.resolve()
294
+ .then(() => {
295
+ signal.throwIfAborted();
296
+ return this.props.provider.loadTile(key, signal);
297
+ })
298
+ .then(tile => load.resolve(structuredClone(tile)))
299
+ .catch(error => {
300
+ if (this.loads.get(key) === load) this.loads.delete(key);
301
+ load.reject(error);
302
+ })
303
+ .finally(() => {
304
+ this.activeLoads--;
305
+ this.startQueuedLoads();
306
+ });
307
+ }
308
+ }
309
+ }
310
+
311
+ /** For the same raw tile, only stitched seam heights can differ. */
312
+ function sameStitchedSamples(
313
+ previous: GPURigidBodyTerrainTile | undefined,
314
+ next: GPURigidBodyTerrainTile
315
+ ): boolean {
316
+ if (previous === next) return true;
317
+ const first = previous?.field.heights;
318
+ const second = next.field.heights;
319
+ return (
320
+ first?.length === second?.length &&
321
+ (!first || first.every((value, index) => Object.is(value, second![index])))
322
+ );
323
+ }
@@ -217,6 +217,7 @@ struct TriggerRing {sequence:u32,step:u32,saturated:u32,reserved:u32,entries:arr
217
217
  for(var firstTriangle=0u;firstTriangle<firstCount&&!found;firstTriangle++){
218
218
  for(var secondTriangle=0u;secondTriangle<secondCount;secondTriangle++){
219
219
  if(tested>=MESH_TRAVERSAL_BUDGET){incomplete=true;break;}tested++;
220
+ if((firstMesh&&!meshTriangleActive(pair.x,firstTriangle))||(secondMesh&&!meshTriangleActive(pair.y,secondTriangle))){continue;}
220
221
  if(!permitsPlaneContact(pair.x,pair.y)||!permitsPlaneContact(pair.y,pair.x)){continue;}
221
222
  let hit=convexContact(pair.x,pair.y,select(-1,i32(firstTriangle),firstMesh),select(-1,i32(secondTriangle),secondMesh));
222
223
  incomplete=incomplete||hit.status==2u;
@@ -0,0 +1,166 @@
1
+ // luma.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
4
+
5
+ /** Four independently sprung wheels in a chassis frame with +X forward and +Z up. */
6
+ export type GPURigidBodyVehicle = {
7
+ /** Index of the dynamic chassis body. */
8
+ chassis: number;
9
+ /** Primary static collider sampled by all wheels. Wins equal-distance ties. */
10
+ terrainCollider: number;
11
+ /** Up to three more static colliders to sweep, in tie-break order after the primary collider. */
12
+ additionalTerrainColliders?: readonly number[];
13
+ /** Four independently suspended wheels, in rendering and telemetry order. */
14
+ wheels: readonly {
15
+ /** At full compression the wheel center is here, in chassis node coordinates (meters). */
16
+ mount: readonly [number, number, number];
17
+ /** Turn this wheel about chassis +Z by the commanded steering angle. */
18
+ steer?: boolean;
19
+ /** Apply the commanded drive torque to this wheel. */
20
+ drive?: boolean;
21
+ }[];
22
+ /** Wheel contact sphere radius in meters. */
23
+ radius: number;
24
+ /** Maximum downward distance of the wheel center from its mount in meters. */
25
+ travel: number;
26
+ /** Per-wheel spring stiffness in newtons per meter. */
27
+ springRate: number;
28
+ /** Per-wheel damping coefficient in newton seconds per meter. */
29
+ damping: number;
30
+ /** Dimensionless tire friction coefficient limiting combined longitudinal and lateral force. */
31
+ grip: number;
32
+ /** Torque per driven wheel in N m. */
33
+ motorTorque: number;
34
+ /** Maximum braking torque per wheel in newton meters. */
35
+ brakeTorque: number;
36
+ /** Rotational inertia of one wheel in kilogram meters squared. */
37
+ wheelInertia: number;
38
+ /** Enable Ackermann steering with this front-to-rear axle separation in meters. Chassis Y is measured from the steering centerline. */
39
+ steeringWheelbase?: number;
40
+ /** Load transferred per meter of left/right travel difference. Wheel pairs 0–1 and 2–3 are axles. */
41
+ antiRollRate?: number;
42
+ /** Longitudinal and lateral slip gain, in inverse meters per second. Defaults to [1.1, 1.5]. */
43
+ slipGain?: readonly [number, number];
44
+ };
45
+
46
+ /** Packed storage per chassis, including four wheel poses. */
47
+ export const VEHICLE_STRIDE = 512;
48
+
49
+ /** Byte size of one aligned row of optional terrain collider indices. */
50
+ export const VEHICLE_TERRAIN_ROW_SIZE = 16;
51
+
52
+ /** Each invocation owns one chassis. All wheels sample the same pre-step velocity. */
53
+ export function getVehicleShader(
54
+ vehicleCount: number,
55
+ multiSurface: boolean,
56
+ vehiclesPerInstance: number
57
+ ): string {
58
+ const vehicleRows = multiSurface ? 'vehicle.rows' : 'vehicle';
59
+ return /* wgsl */ `
60
+ struct Wheel { mount:vec4f, flags:vec4f, state:vec4f }
61
+ struct Vehicle { controls:vec4f, geometry:vec4f, tire:vec4f, indices:vec4u, wheels:array<Wheel,4>, poses:array<mat4x4f,4> }
62
+ @group(0) @binding(12) var<storage,read_write> vehicle:${multiSurface ? 'VehicleStorage' : 'array<Vehicle>'};
63
+ ${multiSurface ? `struct VehicleStorage { rows:array<Vehicle,${vehicleCount}>, terrain:array<vec4u,${vehicleCount}> }` : ''}
64
+ struct SuspensionContact { normal:vec3f, lever:vec3f, lengthNow:f32, load:f32 }
65
+ ${vehiclesPerInstance ? `const VEHICLES_PER_INSTANCE:u32=${vehiclesPerInstance}u;` : ''}
66
+ @compute @workgroup_size(${vehiclesPerInstance ? 64 : 1}) fn advanceVehicle(@builtin(global_invocation_id) invocation:vec3u) {
67
+ var vehicleIndex=invocation.x;
68
+ ${vehiclesPerInstance ? 'if(invocation.x>=ensemble[0]*VEHICLES_PER_INSTANCE){return;} vehicleIndex=ensemble[INSTANCE_QUEUE+invocation.x/VEHICLES_PER_INSTANCE]*VEHICLES_PER_INSTANCE+invocation.x%VEHICLES_PER_INSTANCE;' : ''}
69
+ let settingsForVehicle=${vehicleRows}[vehicleIndex];
70
+ let chassis=settingsForVehicle.indices.x;
71
+ let primaryTerrain=settingsForVehicle.indices.y;
72
+ if(!dynamic(chassis)){return;}
73
+ let rotation=orientations[chassis];
74
+ let center=positions[chassis].xyz;
75
+ let down=rotate(rotation,vec3f(0,0,-1));
76
+ let radius=settingsForVehicle.geometry.x;
77
+ let travel=settingsForVehicle.geometry.y;
78
+ let timestep=settings.gravity.w;
79
+ let wheelbase=bitcast<f32>(settingsForVehicle.indices.z);
80
+ let antiRollRate=bitcast<f32>(settingsForVehicle.indices.w);
81
+ var contacts:array<SuspensionContact,4>;
82
+ var maximumSteeringOffset=0.0;
83
+ for(var index=0u;index<4u;index++){
84
+ let wheel=settingsForVehicle.wheels[index];
85
+ maximumSteeringOffset=max(maximumSteeringOffset,abs(wheel.mount.y)*wheel.flags.x);
86
+ let mount=center+rotate(rotation,wheel.mount.xyz-bodyCenter(chassis));
87
+ contacts[index].lengthNow=travel;
88
+ var found=false;
89
+ for(var surfaceIndex=0u;surfaceIndex<${multiSurface ? '4u' : '1u'};surfaceIndex++){
90
+ var terrain=primaryTerrain;
91
+ ${multiSurface ? 'if(surfaceIndex>0u){terrain=vehicle.terrain[vehicleIndex][surfaceIndex-1u];if(terrain==0xffffffffu){break;}}' : ''}
92
+ if(bodies.bodies[colliderBody(terrain)].motion.x!=0.0){continue;}
93
+ let hit=sweepSphere(terrain,colliderLocal(terrain,mount-colliderPosition(terrain)),colliderLocal(terrain,down),travel,radius,false);
94
+ if(hit.hit!=0u && hit.complete!=0u){
95
+ let normal=rotate(colliderRotation(terrain),hit.normal);
96
+ let support=dot(normal,-down);
97
+ if(support>0.15 && (!found || hit.distance<contacts[index].lengthNow)){
98
+ let lever=colliderPosition(terrain)+rotate(colliderRotation(terrain),hit.point)-center;
99
+ let velocity=velocities[chassis].xyz+cross(angularVelocities[chassis].xyz,lever);
100
+ let load=max(0.0,(travel-hit.distance)*settingsForVehicle.geometry.z-settingsForVehicle.geometry.w*dot(velocity,normal)/support);
101
+ contacts[index]=SuspensionContact(normal,lever,hit.distance,load);
102
+ found=true;
103
+ }
104
+ }
105
+ }
106
+ }
107
+ // Transfer load within an axle without adding lift or pulling on an airborne tire.
108
+ for(var left=0u;left<4u;left+=2u){
109
+ let right=left+1u;
110
+ if(contacts[left].load>0.0 && contacts[right].load>0.0){
111
+ let transfer=(contacts[right].lengthNow-contacts[left].lengthNow)*antiRollRate;
112
+ let bounded=clamp(transfer,-contacts[left].load,contacts[right].load);
113
+ contacts[left].load+=bounded;
114
+ contacts[right].load-=bounded;
115
+ }
116
+ }
117
+ // Keep the center of the turn beyond the inside steered wheel on either side.
118
+ let steeringLimit=min(1.5,atan2(0.9*wheelbase,max(maximumSteeringOffset,0.0001)));
119
+ var impulse=vec3f(0);
120
+ var torque=vec3f(0);
121
+ for(var index=0u;index<4u;index++){
122
+ let wheel=settingsForVehicle.wheels[index];
123
+ let contact=contacts[index];
124
+ var speed=wheel.state.x+settingsForVehicle.controls.x*settingsForVehicle.tire.y*wheel.flags.y*timestep/settingsForVehicle.tire.w;
125
+ speed-=sign(speed)*min(abs(speed),settingsForVehicle.controls.z*settingsForVehicle.tire.z*timestep/settingsForVehicle.tire.w);
126
+ var steering=settingsForVehicle.controls.y*wheel.flags.x;
127
+ if(wheelbase>0.0){
128
+ let reference=clamp(steering,-steeringLimit,steeringLimit);
129
+ steering=atan2(sin(reference)*wheelbase,cos(reference)*wheelbase-wheel.mount.y*sin(reference));
130
+ }
131
+ let load=contact.load;
132
+ if(load>0.0){
133
+ let velocity=velocities[chassis].xyz+cross(angularVelocities[chassis].xyz,contact.lever);
134
+ let heading=rotate(rotation,vec3f(cos(steering),sin(steering),0));
135
+ let side=normalize(cross(contact.normal,heading));
136
+ let forward=cross(side,contact.normal);
137
+ let slip=vec2f(speed*radius-dot(velocity,forward),-dot(velocity,side));
138
+ // Zero in the packed gain fields denotes the original vehicle defaults.
139
+ let gains=select(vec2f(1.1,1.5),vec2f(wheel.mount.w,wheel.flags.z)-1.0,vec2f(wheel.mount.w,wheel.flags.z)>vec2f(0));
140
+ let demand=slip*load*gains;
141
+ var friction=demand*min(1.0,settingsForVehicle.tire.x*load/max(length(demand),0.0001));
142
+ // Bound tire feedback so a light wheel cannot overshoot rolling speed in one step.
143
+ let longitudinalLimit=abs(slip.x)*settingsForVehicle.tire.w/(radius*radius*timestep);
144
+ friction.x=clamp(friction.x,-longitudinalLimit,longitudinalLimit);
145
+ let change=(contact.normal*load+forward*friction.x+side*friction.y)*timestep;
146
+ impulse+=change;
147
+ torque+=cross(contact.lever,change);
148
+ speed-=friction.x*radius*timestep/settingsForVehicle.tire.w;
149
+ }
150
+ let lengthNow=contact.lengthNow;
151
+ let angle=wheel.state.y+speed*timestep;
152
+ ${vehicleRows}[vehicleIndex].wheels[index].flags.w=steering;
153
+ ${vehicleRows}[vehicleIndex].wheels[index].state=vec4f(speed,angle,lengthNow,load);
154
+ let heading=vec3f(cos(steering),sin(steering),0);
155
+ let axle=vec3f(-sin(steering),cos(steering),0);
156
+ let vertical=vec3f(0,0,1);
157
+ let hub=wheel.mount.xyz-vertical*lengthNow;
158
+ ${vehicleRows}[vehicleIndex].poses[index]=mat4x4f(vec4f(heading*cos(angle)-vertical*sin(angle),0),
159
+ vec4f(axle,0),vec4f(heading*sin(angle)+vertical*cos(angle),0),vec4f(hub,1));
160
+ }
161
+ velocities[chassis]=vec4f(velocities[chassis].xyz+impulse*velocities[chassis].w,velocities[chassis].w);
162
+ angularVelocities[chassis]=vec4f(angularVelocities[chassis].xyz+inverseInertia(chassis,torque),0);
163
+ sleepStates[chassis]=vec4f(0);
164
+ }
165
+ `;
166
+ }
@@ -276,7 +276,7 @@ or `unknown`. Native scales propagate a preceding adaptive estimate in destinati
276
276
  adaptive stage reports unknown composed error because provider sensitivity and patch continuity
277
277
  are not established. Estimates exclude input/native/output rounding and are never certified bounds.
278
278
 
279
- The optional `@luma.gl/graph/gpu-project/crs` subpath uses public math.gl 5 APIs. Install
279
+ The optional `@luma.gl/graph/gpu-project-crs` subpath uses public math.gl 5 APIs. Install
280
280
  `@math.gl/geospatial` version `~5.0.0-beta.1` as its optional peer to use:
281
281
 
282
282
  - `planProjectionPipeline({pipeline})`: parse a PROJ string or accept math.gl's AST, then lower
@@ -383,7 +383,7 @@ import {createWebMercatorProjection} from '@luma.gl/graph/gpu-project';
383
383
  import {
384
384
  runGPUProjectionBenchmark,
385
385
  runProjectionBenchmark
386
- } from '@luma.gl/graph/gpu-project/benchmarks';
386
+ } from '@luma.gl/graph/gpu-project-benchmarks';
387
387
 
388
388
  const options = {
389
389
  projection: createWebMercatorProjection(),
@@ -0,0 +1,59 @@
1
+ // luma.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
4
+ // SPDX-FileComment: Independently implemented for WebGPU; inspired by NVIDIA RAPIDS cuProj.
5
+
6
+ import {assert, type Device} from '@luma.gl/core';
7
+ import {CPUVector, GPUVector} from '@luma.gl/graph/gpu-data';
8
+ import {GPUSimpleGraph} from '../gpu-simple-graph/gpu-simple-graph';
9
+ import {GPUGraph} from '../gpu-core/gpu-graph';
10
+ import type {CompiledGPUGraph} from '../gpu-core/compiled-gpu-graph';
11
+ import type {CompiledGPUSimpleExpressionGraph} from '../gpu-simple-graph/compiled-gpu-expression-graph';
12
+ import {gpuGraph} from '../gpu-core/gpu-graph-value';
13
+ import {CPUProjectionOperation, type CPUProjectionOperationProps} from './cpu-projection-operation';
14
+
15
+ export type CoordinateProjectionGraphProps = {
16
+ format: 'float32x2' | 'float32x3';
17
+ projection: CPUProjectionOperationProps['projection'];
18
+ };
19
+ export type ProjectedCoordinateResult = {
20
+ positions: GPUVector;
21
+ /** Release this invocation's GPU result after downstream consumers finish. */
22
+ destroy(): void;
23
+ };
24
+
25
+ /** Reusable layer-facing point-coordinate pipeline. Projection loading remains caller-owned. */
26
+ export class CoordinateProjectionGraph {
27
+ private readonly graph: CompiledGPUGraph | CompiledGPUSimpleExpressionGraph;
28
+ readonly format: CoordinateProjectionGraphProps['format'];
29
+
30
+ constructor(device: Device, props: CoordinateProjectionGraphProps) {
31
+ this.format = props.format;
32
+ const graph = device.type === 'webgpu' ? new GPUGraph() : new GPUSimpleGraph();
33
+ graph.addInput('source', gpuGraph.vector(props.format));
34
+ graph.add(
35
+ new CPUProjectionOperation({
36
+ id: 'project-coordinates',
37
+ input: 'source',
38
+ output: 'positions',
39
+ format: props.format,
40
+ projection: props.projection
41
+ })
42
+ );
43
+ this.graph = graph.compile(device, {outputs: ['positions']});
44
+ }
45
+
46
+ /** Borrow input storage and preserve row/chunk boundaries; each result owns independent storage. */
47
+ async run(source: CPUVector | GPUVector): Promise<ProjectedCoordinateResult> {
48
+ assert(source.format === this.format);
49
+ // Point layers must handle null filtering before this numeric projection boundary.
50
+ assert(source.data.every(chunk => !chunk.nullBitmap && !chunk.valueOffsets));
51
+ const {positions} = await this.graph.run({inputs: {source}});
52
+ return {positions, destroy: () => positions.destroy()};
53
+ }
54
+
55
+ /** Destroy the compiled pipeline. Previously returned results remain caller-owned. */
56
+ destroy(): void {
57
+ this.graph.destroy();
58
+ }
59
+ }