@luma.gl/graph 0.0.0-stage → 10.0.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2671) hide show
  1. package/LICENSE +38 -0
  2. package/README.md +62 -2
  3. package/dist/arrow/dggs/dggs-gpu-polygons.cjs +667 -0
  4. package/dist/arrow/dggs/dggs-gpu-polygons.d.ts +75 -0
  5. package/dist/arrow/dggs/dggs-gpu-polygons.d.ts.map +1 -0
  6. package/dist/arrow/dggs/dggs-gpu-polygons.js +651 -0
  7. package/dist/arrow/dggs/dggs-gpu-polygons.js.map +1 -0
  8. package/dist/arrow/geoarrow/arrow-geoarrow-adapter.cjs +411 -0
  9. package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts +31 -0
  10. package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts.map +1 -0
  11. package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js +395 -0
  12. package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js.map +1 -0
  13. package/dist/arrow/geoarrow/arrow-geoarrow-conversion.cjs +304 -0
  14. package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts +32 -0
  15. package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts.map +1 -0
  16. package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js +293 -0
  17. package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js.map +1 -0
  18. package/dist/arrow/geoarrow/arrow-polygon-tessellation.cjs +232 -0
  19. package/dist/arrow/geoarrow/arrow-polygon-tessellation.d.ts +54 -0
  20. package/dist/arrow/geoarrow/arrow-polygon-tessellation.d.ts.map +1 -0
  21. package/dist/arrow/geoarrow/arrow-polygon-tessellation.js +222 -0
  22. package/dist/arrow/geoarrow/arrow-polygon-tessellation.js.map +1 -0
  23. package/dist/arrow/gpu/arrow-gpu-analytics-adapters.cjs +314 -0
  24. package/dist/arrow/gpu/arrow-gpu-analytics-adapters.d.ts +42 -0
  25. package/dist/arrow/gpu/arrow-gpu-analytics-adapters.d.ts.map +1 -0
  26. package/dist/arrow/gpu/arrow-gpu-analytics-adapters.js +318 -0
  27. package/dist/arrow/gpu/arrow-gpu-analytics-adapters.js.map +1 -0
  28. package/dist/arrow/gpu/arrow-gpu-analytics-readback.cjs +204 -0
  29. package/dist/arrow/gpu/arrow-gpu-analytics-readback.d.ts +30 -0
  30. package/dist/arrow/gpu/arrow-gpu-analytics-readback.d.ts.map +1 -0
  31. package/dist/arrow/gpu/arrow-gpu-analytics-readback.js +195 -0
  32. package/dist/arrow/gpu/arrow-gpu-analytics-readback.js.map +1 -0
  33. package/dist/arrow/gpu/arrow-gpu-table-adapters.cjs +257 -0
  34. package/dist/arrow/gpu/arrow-gpu-table-adapters.d.ts +45 -0
  35. package/dist/arrow/gpu/arrow-gpu-table-adapters.d.ts.map +1 -0
  36. package/dist/arrow/gpu/arrow-gpu-table-adapters.js +257 -0
  37. package/dist/arrow/gpu/arrow-gpu-table-adapters.js.map +1 -0
  38. package/dist/arrow/gpu/arrow-gpu-table-conversion.cjs +230 -0
  39. package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts +71 -0
  40. package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts.map +1 -0
  41. package/dist/arrow/gpu/arrow-gpu-table-conversion.js +215 -0
  42. package/dist/arrow/gpu/arrow-gpu-table-conversion.js.map +1 -0
  43. package/dist/arrow/gpu/arrow-input-schema.cjs +36 -0
  44. package/dist/arrow/gpu/arrow-input-schema.d.ts +41 -0
  45. package/dist/arrow/gpu/arrow-input-schema.d.ts.map +1 -0
  46. package/dist/arrow/gpu/arrow-input-schema.js +17 -0
  47. package/dist/arrow/gpu/arrow-input-schema.js.map +1 -0
  48. package/dist/arrow/index.cjs +90 -0
  49. package/dist/arrow/index.cjs.map +6 -0
  50. package/dist/arrow/index.d.ts +9 -0
  51. package/dist/arrow/index.d.ts.map +1 -0
  52. package/dist/arrow/index.js +12 -0
  53. package/dist/arrow/index.js.map +1 -0
  54. package/dist/arrow/internal.cjs +30 -0
  55. package/dist/arrow/internal.cjs.map +6 -0
  56. package/dist/arrow/internal.d.ts +19 -0
  57. package/dist/arrow/internal.d.ts.map +1 -0
  58. package/dist/arrow/internal.js +7 -0
  59. package/dist/arrow/internal.js.map +1 -0
  60. package/dist/dist.dev.js +9873 -0
  61. package/dist/dist.min.js +205 -0
  62. package/dist/experimental/index.cjs +23 -0
  63. package/dist/experimental/index.cjs.map +6 -0
  64. package/dist/experimental/index.d.ts +3 -0
  65. package/dist/experimental/index.d.ts.map +1 -0
  66. package/dist/experimental/index.js +6 -0
  67. package/dist/experimental/index.js.map +1 -0
  68. package/dist/experimental/models/index.cjs +42 -0
  69. package/dist/experimental/models/index.cjs.map +6 -0
  70. package/dist/experimental/models/index.d.ts +6 -0
  71. package/dist/experimental/models/index.d.ts.map +1 -0
  72. package/dist/experimental/models/index.js +8 -0
  73. package/dist/experimental/models/index.js.map +1 -0
  74. package/dist/experimental/models/path/gpu/gpu-path-expansion.cjs +238 -0
  75. package/dist/experimental/models/path/gpu/gpu-path-expansion.d.ts +70 -0
  76. package/dist/experimental/models/path/gpu/gpu-path-expansion.d.ts.map +1 -0
  77. package/dist/experimental/models/path/gpu/gpu-path-expansion.js +213 -0
  78. package/dist/experimental/models/path/gpu/gpu-path-expansion.js.map +1 -0
  79. package/dist/experimental/models/path/gpu/path-storage-gpu-inputs.cjs +166 -0
  80. package/dist/experimental/models/path/gpu/path-storage-gpu-inputs.d.ts +54 -0
  81. package/dist/experimental/models/path/gpu/path-storage-gpu-inputs.d.ts.map +1 -0
  82. package/dist/experimental/models/path/gpu/path-storage-gpu-inputs.js +152 -0
  83. package/dist/experimental/models/path/gpu/path-storage-gpu-inputs.js.map +1 -0
  84. package/dist/experimental/models/polygon/polygon-gpu-inputs.cjs +85 -0
  85. package/dist/experimental/models/polygon/polygon-gpu-inputs.d.ts +60 -0
  86. package/dist/experimental/models/polygon/polygon-gpu-inputs.d.ts.map +1 -0
  87. package/dist/experimental/models/polygon/polygon-gpu-inputs.js +64 -0
  88. package/dist/experimental/models/polygon/polygon-gpu-inputs.js.map +1 -0
  89. package/dist/experimental/simulation/flow-field-atlas.cjs +86 -0
  90. package/dist/experimental/simulation/flow-field-atlas.d.ts +33 -0
  91. package/dist/experimental/simulation/flow-field-atlas.d.ts.map +1 -0
  92. package/dist/experimental/simulation/flow-field-atlas.js +70 -0
  93. package/dist/experimental/simulation/flow-field-atlas.js.map +1 -0
  94. package/dist/experimental/simulation/flow-particle-field.cjs +41 -0
  95. package/dist/experimental/simulation/flow-particle-field.d.ts +18 -0
  96. package/dist/experimental/simulation/flow-particle-field.d.ts.map +1 -0
  97. package/dist/experimental/simulation/flow-particle-field.js +21 -0
  98. package/dist/experimental/simulation/flow-particle-field.js.map +1 -0
  99. package/dist/experimental/simulation/flow-particle-shaders.cjs +193 -0
  100. package/dist/experimental/simulation/flow-particle-shaders.d.ts +4 -0
  101. package/dist/experimental/simulation/flow-particle-shaders.d.ts.map +1 -0
  102. package/dist/experimental/simulation/flow-particle-shaders.js +158 -0
  103. package/dist/experimental/simulation/flow-particle-shaders.js.map +1 -0
  104. package/dist/experimental/simulation/flow-particle-simulation.cjs +236 -0
  105. package/dist/experimental/simulation/flow-particle-simulation.d.ts +66 -0
  106. package/dist/experimental/simulation/flow-particle-simulation.d.ts.map +1 -0
  107. package/dist/experimental/simulation/flow-particle-simulation.js +221 -0
  108. package/dist/experimental/simulation/flow-particle-simulation.js.map +1 -0
  109. package/dist/experimental/simulation/index.cjs +71 -0
  110. package/dist/experimental/simulation/index.cjs.map +6 -0
  111. package/dist/experimental/simulation/index.d.ts +14 -0
  112. package/dist/experimental/simulation/index.d.ts.map +1 -0
  113. package/dist/experimental/simulation/index.js +11 -0
  114. package/dist/experimental/simulation/index.js.map +1 -0
  115. package/dist/experimental/simulation/mls-mpm-fluid-simulation-shaders.cjs +418 -0
  116. package/dist/experimental/simulation/mls-mpm-fluid-simulation-shaders.d.ts +26 -0
  117. package/dist/experimental/simulation/mls-mpm-fluid-simulation-shaders.d.ts.map +1 -0
  118. package/dist/experimental/simulation/mls-mpm-fluid-simulation-shaders.js +350 -0
  119. package/dist/experimental/simulation/mls-mpm-fluid-simulation-shaders.js.map +1 -0
  120. package/dist/experimental/simulation/mls-mpm-fluid-simulation.cjs +713 -0
  121. package/dist/experimental/simulation/mls-mpm-fluid-simulation.d.ts +199 -0
  122. package/dist/experimental/simulation/mls-mpm-fluid-simulation.d.ts.map +1 -0
  123. package/dist/experimental/simulation/mls-mpm-fluid-simulation.js +703 -0
  124. package/dist/experimental/simulation/mls-mpm-fluid-simulation.js.map +1 -0
  125. package/dist/experimental/simulation/scientific-flow-compute.cjs +266 -0
  126. package/dist/experimental/simulation/scientific-flow-compute.d.ts +41 -0
  127. package/dist/experimental/simulation/scientific-flow-compute.d.ts.map +1 -0
  128. package/dist/experimental/simulation/scientific-flow-compute.js +262 -0
  129. package/dist/experimental/simulation/scientific-flow-compute.js.map +1 -0
  130. package/dist/experimental/simulation/scientific-flow-field.cjs +85 -0
  131. package/dist/experimental/simulation/scientific-flow-field.d.ts +39 -0
  132. package/dist/experimental/simulation/scientific-flow-field.d.ts.map +1 -0
  133. package/dist/experimental/simulation/scientific-flow-field.js +79 -0
  134. package/dist/experimental/simulation/scientific-flow-field.js.map +1 -0
  135. package/dist/experimental/simulation/scientific-flow-graph.cjs +184 -0
  136. package/dist/experimental/simulation/scientific-flow-graph.d.ts +50 -0
  137. package/dist/experimental/simulation/scientific-flow-graph.d.ts.map +1 -0
  138. package/dist/experimental/simulation/scientific-flow-graph.js +166 -0
  139. package/dist/experimental/simulation/scientific-flow-graph.js.map +1 -0
  140. package/dist/experimental/simulation/scientific-flow-rk45-shaders.cjs +158 -0
  141. package/dist/experimental/simulation/scientific-flow-rk45-shaders.d.ts +2 -0
  142. package/dist/experimental/simulation/scientific-flow-rk45-shaders.d.ts.map +1 -0
  143. package/dist/experimental/simulation/scientific-flow-rk45-shaders.js +137 -0
  144. package/dist/experimental/simulation/scientific-flow-rk45-shaders.js.map +1 -0
  145. package/dist/experimental/simulation/scientific-flow-sampling-shaders.cjs +68 -0
  146. package/dist/experimental/simulation/scientific-flow-sampling-shaders.d.ts +3 -0
  147. package/dist/experimental/simulation/scientific-flow-sampling-shaders.d.ts.map +1 -0
  148. package/dist/experimental/simulation/scientific-flow-sampling-shaders.js +44 -0
  149. package/dist/experimental/simulation/scientific-flow-sampling-shaders.js.map +1 -0
  150. package/dist/experimental/simulation/scientific-flow-tracer.cjs +398 -0
  151. package/dist/experimental/simulation/scientific-flow-tracer.d.ts +99 -0
  152. package/dist/experimental/simulation/scientific-flow-tracer.d.ts.map +1 -0
  153. package/dist/experimental/simulation/scientific-flow-tracer.js +397 -0
  154. package/dist/experimental/simulation/scientific-flow-tracer.js.map +1 -0
  155. package/dist/geospatial/geospatial-utils.cjs +449 -0
  156. package/dist/geospatial/geospatial-utils.d.ts +97 -0
  157. package/dist/geospatial/geospatial-utils.d.ts.map +1 -0
  158. package/dist/geospatial/geospatial-utils.js +449 -0
  159. package/dist/geospatial/geospatial-utils.js.map +1 -0
  160. package/dist/geospatial/gpu-haversine-distance.cjs +171 -0
  161. package/dist/geospatial/gpu-haversine-distance.d.ts +41 -0
  162. package/dist/geospatial/gpu-haversine-distance.d.ts.map +1 -0
  163. package/dist/geospatial/gpu-haversine-distance.js +155 -0
  164. package/dist/geospatial/gpu-haversine-distance.js.map +1 -0
  165. package/dist/geospatial/gpu-pairwise-point-distance.cjs +109 -0
  166. package/dist/geospatial/gpu-pairwise-point-distance.d.ts +35 -0
  167. package/dist/geospatial/gpu-pairwise-point-distance.d.ts.map +1 -0
  168. package/dist/geospatial/gpu-pairwise-point-distance.js +87 -0
  169. package/dist/geospatial/gpu-pairwise-point-distance.js.map +1 -0
  170. package/dist/geospatial/gpu-pairwise-point-in-polygon.cjs +441 -0
  171. package/dist/geospatial/gpu-pairwise-point-in-polygon.d.ts +63 -0
  172. package/dist/geospatial/gpu-pairwise-point-in-polygon.d.ts.map +1 -0
  173. package/dist/geospatial/gpu-pairwise-point-in-polygon.js +425 -0
  174. package/dist/geospatial/gpu-pairwise-point-in-polygon.js.map +1 -0
  175. package/dist/geospatial/gpu-pairwise-point-linestring-nearest.cjs +685 -0
  176. package/dist/geospatial/gpu-pairwise-point-linestring-nearest.d.ts +64 -0
  177. package/dist/geospatial/gpu-pairwise-point-linestring-nearest.d.ts.map +1 -0
  178. package/dist/geospatial/gpu-pairwise-point-linestring-nearest.js +684 -0
  179. package/dist/geospatial/gpu-pairwise-point-linestring-nearest.js.map +1 -0
  180. package/dist/geospatial/gpu-pairwise-point-segment-distance.cjs +201 -0
  181. package/dist/geospatial/gpu-pairwise-point-segment-distance.d.ts +40 -0
  182. package/dist/geospatial/gpu-pairwise-point-segment-distance.d.ts.map +1 -0
  183. package/dist/geospatial/gpu-pairwise-point-segment-distance.js +179 -0
  184. package/dist/geospatial/gpu-pairwise-point-segment-distance.js.map +1 -0
  185. package/dist/geospatial/gpu-point-spatial-query.cjs +783 -0
  186. package/dist/geospatial/gpu-point-spatial-query.d.ts +102 -0
  187. package/dist/geospatial/gpu-point-spatial-query.d.ts.map +1 -0
  188. package/dist/geospatial/gpu-point-spatial-query.js +871 -0
  189. package/dist/geospatial/gpu-point-spatial-query.js.map +1 -0
  190. package/dist/geospatial/gpu-sinusoidal-projection.cjs +113 -0
  191. package/dist/geospatial/gpu-sinusoidal-projection.d.ts +31 -0
  192. package/dist/geospatial/gpu-sinusoidal-projection.d.ts.map +1 -0
  193. package/dist/geospatial/gpu-sinusoidal-projection.js +103 -0
  194. package/dist/geospatial/gpu-sinusoidal-projection.js.map +1 -0
  195. package/dist/geospatial/gpu-spatial-query-types.cjs +15 -0
  196. package/dist/geospatial/gpu-spatial-query-types.d.ts +23 -0
  197. package/dist/geospatial/gpu-spatial-query-types.d.ts.map +1 -0
  198. package/dist/geospatial/gpu-spatial-query-types.js +6 -0
  199. package/dist/geospatial/gpu-spatial-query-types.js.map +1 -0
  200. package/dist/geospatial/index.cjs +50 -0
  201. package/dist/geospatial/index.cjs.map +6 -0
  202. package/dist/geospatial/index.d.ts +19 -0
  203. package/dist/geospatial/index.d.ts.map +1 -0
  204. package/dist/geospatial/index.js +13 -0
  205. package/dist/geospatial/index.js.map +1 -0
  206. package/dist/geospatial/types.cjs +15 -0
  207. package/dist/geospatial/types.d.ts +19 -0
  208. package/dist/geospatial/types.d.ts.map +1 -0
  209. package/dist/geospatial/types.js +6 -0
  210. package/dist/geospatial/types.js.map +1 -0
  211. package/dist/gpu-a5/gpu-a5-cell-projection.cjs +32 -0
  212. package/dist/gpu-a5/gpu-a5-cell-projection.d.ts +8 -0
  213. package/dist/gpu-a5/gpu-a5-cell-projection.d.ts.map +1 -0
  214. package/dist/gpu-a5/gpu-a5-cell-projection.js +11 -0
  215. package/dist/gpu-a5/gpu-a5-cell-projection.js.map +1 -0
  216. package/dist/gpu-a5/index.cjs +27 -0
  217. package/dist/gpu-a5/index.cjs.map +6 -0
  218. package/dist/gpu-a5/index.d.ts +4 -0
  219. package/dist/gpu-a5/index.d.ts.map +1 -0
  220. package/dist/gpu-a5/index.js +5 -0
  221. package/dist/gpu-a5/index.js.map +1 -0
  222. package/dist/gpu-core/dispatch-command-buffer.cjs +136 -0
  223. package/dist/gpu-core/dispatch-command-buffer.d.ts +49 -0
  224. package/dist/gpu-core/dispatch-command-buffer.d.ts.map +1 -0
  225. package/dist/gpu-core/dispatch-command-buffer.js +118 -0
  226. package/dist/gpu-core/dispatch-command-buffer.js.map +1 -0
  227. package/dist/gpu-core/draw-command-buffer.cjs +207 -0
  228. package/dist/gpu-core/draw-command-buffer.d.ts +97 -0
  229. package/dist/gpu-core/draw-command-buffer.d.ts.map +1 -0
  230. package/dist/gpu-core/draw-command-buffer.js +199 -0
  231. package/dist/gpu-core/draw-command-buffer.js.map +1 -0
  232. package/dist/gpu-core/gpu-adaptive-spmv.cjs +287 -0
  233. package/dist/gpu-core/gpu-adaptive-spmv.d.ts +33 -0
  234. package/dist/gpu-core/gpu-adaptive-spmv.d.ts.map +1 -0
  235. package/dist/gpu-core/gpu-adaptive-spmv.js +269 -0
  236. package/dist/gpu-core/gpu-adaptive-spmv.js.map +1 -0
  237. package/dist/gpu-core/gpu-ancestor-projection.cjs +302 -0
  238. package/dist/gpu-core/gpu-ancestor-projection.d.ts +46 -0
  239. package/dist/gpu-core/gpu-ancestor-projection.d.ts.map +1 -0
  240. package/dist/gpu-core/gpu-ancestor-projection.js +294 -0
  241. package/dist/gpu-core/gpu-ancestor-projection.js.map +1 -0
  242. package/dist/gpu-core/gpu-batch-hash-index.cjs +174 -0
  243. package/dist/gpu-core/gpu-batch-hash-index.d.ts +53 -0
  244. package/dist/gpu-core/gpu-batch-hash-index.d.ts.map +1 -0
  245. package/dist/gpu-core/gpu-batch-hash-index.js +166 -0
  246. package/dist/gpu-core/gpu-batch-hash-index.js.map +1 -0
  247. package/dist/gpu-core/gpu-batch-hash-join.cjs +209 -0
  248. package/dist/gpu-core/gpu-batch-hash-join.d.ts +66 -0
  249. package/dist/gpu-core/gpu-batch-hash-join.d.ts.map +1 -0
  250. package/dist/gpu-core/gpu-batch-hash-join.js +206 -0
  251. package/dist/gpu-core/gpu-batch-hash-join.js.map +1 -0
  252. package/dist/gpu-core/gpu-batch-sort.cjs +131 -0
  253. package/dist/gpu-core/gpu-batch-sort.d.ts +58 -0
  254. package/dist/gpu-core/gpu-batch-sort.d.ts.map +1 -0
  255. package/dist/gpu-core/gpu-batch-sort.js +121 -0
  256. package/dist/gpu-core/gpu-batch-sort.js.map +1 -0
  257. package/dist/gpu-core/gpu-bvh-query.cjs +447 -0
  258. package/dist/gpu-core/gpu-bvh-query.d.ts +61 -0
  259. package/dist/gpu-core/gpu-bvh-query.d.ts.map +1 -0
  260. package/dist/gpu-core/gpu-bvh-query.js +457 -0
  261. package/dist/gpu-core/gpu-bvh-query.js.map +1 -0
  262. package/dist/gpu-core/gpu-bvh.cjs +550 -0
  263. package/dist/gpu-core/gpu-bvh.d.ts +84 -0
  264. package/dist/gpu-core/gpu-bvh.d.ts.map +1 -0
  265. package/dist/gpu-core/gpu-bvh.js +534 -0
  266. package/dist/gpu-core/gpu-bvh.js.map +1 -0
  267. package/dist/gpu-core/gpu-byte-range-gather.cjs +263 -0
  268. package/dist/gpu-core/gpu-byte-range-gather.d.ts +22 -0
  269. package/dist/gpu-core/gpu-byte-range-gather.d.ts.map +1 -0
  270. package/dist/gpu-core/gpu-byte-range-gather.js +251 -0
  271. package/dist/gpu-core/gpu-byte-range-gather.js.map +1 -0
  272. package/dist/gpu-core/gpu-chunk-utils.cjs +172 -0
  273. package/dist/gpu-core/gpu-chunk-utils.d.ts +20 -0
  274. package/dist/gpu-core/gpu-chunk-utils.d.ts.map +1 -0
  275. package/dist/gpu-core/gpu-chunk-utils.js +164 -0
  276. package/dist/gpu-core/gpu-chunk-utils.js.map +1 -0
  277. package/dist/gpu-core/gpu-chunked-indexed-scatter.cjs +531 -0
  278. package/dist/gpu-core/gpu-chunked-indexed-scatter.d.ts +60 -0
  279. package/dist/gpu-core/gpu-chunked-indexed-scatter.d.ts.map +1 -0
  280. package/dist/gpu-core/gpu-chunked-indexed-scatter.js +513 -0
  281. package/dist/gpu-core/gpu-chunked-indexed-scatter.js.map +1 -0
  282. package/dist/gpu-core/gpu-command-dispatch-metadata.cjs +47 -0
  283. package/dist/gpu-core/gpu-command-dispatch-metadata.d.ts +11 -0
  284. package/dist/gpu-core/gpu-command-dispatch-metadata.d.ts.map +1 -0
  285. package/dist/gpu-core/gpu-command-dispatch-metadata.js +29 -0
  286. package/dist/gpu-core/gpu-command-dispatch-metadata.js.map +1 -0
  287. package/dist/gpu-core/gpu-command-graph-autotuner.cjs +237 -0
  288. package/dist/gpu-core/gpu-command-graph-autotuner.d.ts +110 -0
  289. package/dist/gpu-core/gpu-command-graph-autotuner.d.ts.map +1 -0
  290. package/dist/gpu-core/gpu-command-graph-autotuner.js +258 -0
  291. package/dist/gpu-core/gpu-command-graph-autotuner.js.map +1 -0
  292. package/dist/gpu-core/gpu-command-graph-budget-controller.cjs +161 -0
  293. package/dist/gpu-core/gpu-command-graph-budget-controller.d.ts +63 -0
  294. package/dist/gpu-core/gpu-command-graph-budget-controller.d.ts.map +1 -0
  295. package/dist/gpu-core/gpu-command-graph-budget-controller.js +157 -0
  296. package/dist/gpu-core/gpu-command-graph-budget-controller.js.map +1 -0
  297. package/dist/gpu-core/gpu-command-graph-compiler.cjs +579 -0
  298. package/dist/gpu-core/gpu-command-graph-compiler.d.ts +122 -0
  299. package/dist/gpu-core/gpu-command-graph-compiler.d.ts.map +1 -0
  300. package/dist/gpu-core/gpu-command-graph-compiler.js +669 -0
  301. package/dist/gpu-core/gpu-command-graph-compiler.js.map +1 -0
  302. package/dist/gpu-core/gpu-command-graph-inspector.cjs +333 -0
  303. package/dist/gpu-core/gpu-command-graph-inspector.d.ts +197 -0
  304. package/dist/gpu-core/gpu-command-graph-inspector.d.ts.map +1 -0
  305. package/dist/gpu-core/gpu-command-graph-inspector.js +321 -0
  306. package/dist/gpu-core/gpu-command-graph-inspector.js.map +1 -0
  307. package/dist/gpu-core/gpu-command-graph-lowering-scope.cjs +87 -0
  308. package/dist/gpu-core/gpu-command-graph-lowering-scope.d.ts +27 -0
  309. package/dist/gpu-core/gpu-command-graph-lowering-scope.d.ts.map +1 -0
  310. package/dist/gpu-core/gpu-command-graph-lowering-scope.js +75 -0
  311. package/dist/gpu-core/gpu-command-graph-lowering-scope.js.map +1 -0
  312. package/dist/gpu-core/gpu-command-graph-types.cjs +220 -0
  313. package/dist/gpu-core/gpu-command-graph-types.d.ts +690 -0
  314. package/dist/gpu-core/gpu-command-graph-types.d.ts.map +1 -0
  315. package/dist/gpu-core/gpu-command-graph-types.js +220 -0
  316. package/dist/gpu-core/gpu-command-graph-types.js.map +1 -0
  317. package/dist/gpu-core/gpu-command-graph.cjs +1702 -0
  318. package/dist/gpu-core/gpu-command-graph.d.ts +422 -0
  319. package/dist/gpu-core/gpu-command-graph.d.ts.map +1 -0
  320. package/dist/gpu-core/gpu-command-graph.js +1833 -0
  321. package/dist/gpu-core/gpu-command-graph.js.map +1 -0
  322. package/dist/gpu-core/gpu-command-node.cjs +66 -0
  323. package/dist/gpu-core/gpu-command-node.d.ts +23 -0
  324. package/dist/gpu-core/gpu-command-node.d.ts.map +1 -0
  325. package/dist/gpu-core/gpu-command-node.js +37 -0
  326. package/dist/gpu-core/gpu-command-node.js.map +1 -0
  327. package/dist/gpu-core/gpu-compaction.cjs +287 -0
  328. package/dist/gpu-core/gpu-compaction.d.ts +53 -0
  329. package/dist/gpu-core/gpu-compaction.d.ts.map +1 -0
  330. package/dist/gpu-core/gpu-compaction.js +295 -0
  331. package/dist/gpu-core/gpu-compaction.js.map +1 -0
  332. package/dist/gpu-core/gpu-conjugate-gradient-program.cjs +193 -0
  333. package/dist/gpu-core/gpu-conjugate-gradient-program.d.ts +23 -0
  334. package/dist/gpu-core/gpu-conjugate-gradient-program.d.ts.map +1 -0
  335. package/dist/gpu-core/gpu-conjugate-gradient-program.js +172 -0
  336. package/dist/gpu-core/gpu-conjugate-gradient-program.js.map +1 -0
  337. package/dist/gpu-core/gpu-control-flow-operation.cjs +65 -0
  338. package/dist/gpu-core/gpu-control-flow-operation.d.ts +40 -0
  339. package/dist/gpu-core/gpu-control-flow-operation.d.ts.map +1 -0
  340. package/dist/gpu-core/gpu-control-flow-operation.js +41 -0
  341. package/dist/gpu-core/gpu-control-flow-operation.js.map +1 -0
  342. package/dist/gpu-core/gpu-convolution-benchmark.cjs +278 -0
  343. package/dist/gpu-core/gpu-convolution-benchmark.d.ts +54 -0
  344. package/dist/gpu-core/gpu-convolution-benchmark.d.ts.map +1 -0
  345. package/dist/gpu-core/gpu-convolution-benchmark.js +275 -0
  346. package/dist/gpu-core/gpu-convolution-benchmark.js.map +1 -0
  347. package/dist/gpu-core/gpu-convolution.cjs +748 -0
  348. package/dist/gpu-core/gpu-convolution.d.ts +124 -0
  349. package/dist/gpu-core/gpu-convolution.d.ts.map +1 -0
  350. package/dist/gpu-core/gpu-convolution.js +756 -0
  351. package/dist/gpu-core/gpu-convolution.js.map +1 -0
  352. package/dist/gpu-core/gpu-coo-to-csr.cjs +114 -0
  353. package/dist/gpu-core/gpu-coo-to-csr.d.ts +20 -0
  354. package/dist/gpu-core/gpu-coo-to-csr.d.ts.map +1 -0
  355. package/dist/gpu-core/gpu-coo-to-csr.js +100 -0
  356. package/dist/gpu-core/gpu-coo-to-csr.js.map +1 -0
  357. package/dist/gpu-core/gpu-dense-utils.cjs +166 -0
  358. package/dist/gpu-core/gpu-dense-utils.d.ts +34 -0
  359. package/dist/gpu-core/gpu-dense-utils.d.ts.map +1 -0
  360. package/dist/gpu-core/gpu-dense-utils.js +144 -0
  361. package/dist/gpu-core/gpu-dense-utils.js.map +1 -0
  362. package/dist/gpu-core/gpu-dispatch-utils.cjs +60 -0
  363. package/dist/gpu-core/gpu-dispatch-utils.d.ts +11 -0
  364. package/dist/gpu-core/gpu-dispatch-utils.d.ts.map +1 -0
  365. package/dist/gpu-core/gpu-dispatch-utils.js +42 -0
  366. package/dist/gpu-core/gpu-dispatch-utils.js.map +1 -0
  367. package/dist/gpu-core/gpu-dot-product-scalar.cjs +82 -0
  368. package/dist/gpu-core/gpu-dot-product-scalar.d.ts +24 -0
  369. package/dist/gpu-core/gpu-dot-product-scalar.d.ts.map +1 -0
  370. package/dist/gpu-core/gpu-dot-product-scalar.js +67 -0
  371. package/dist/gpu-core/gpu-dot-product-scalar.js.map +1 -0
  372. package/dist/gpu-core/gpu-elementwise-scalar.cjs +163 -0
  373. package/dist/gpu-core/gpu-elementwise-scalar.d.ts +20 -0
  374. package/dist/gpu-core/gpu-elementwise-scalar.d.ts.map +1 -0
  375. package/dist/gpu-core/gpu-elementwise-scalar.js +150 -0
  376. package/dist/gpu-core/gpu-elementwise-scalar.js.map +1 -0
  377. package/dist/gpu-core/gpu-elementwise.cjs +225 -0
  378. package/dist/gpu-core/gpu-elementwise.d.ts +35 -0
  379. package/dist/gpu-core/gpu-elementwise.d.ts.map +1 -0
  380. package/dist/gpu-core/gpu-elementwise.js +220 -0
  381. package/dist/gpu-core/gpu-elementwise.js.map +1 -0
  382. package/dist/gpu-core/gpu-fft-utils.cjs +81 -0
  383. package/dist/gpu-core/gpu-fft-utils.d.ts +18 -0
  384. package/dist/gpu-core/gpu-fft-utils.d.ts.map +1 -0
  385. package/dist/gpu-core/gpu-fft-utils.js +53 -0
  386. package/dist/gpu-core/gpu-fft-utils.js.map +1 -0
  387. package/dist/gpu-core/gpu-fft1d-benchmark.cjs +175 -0
  388. package/dist/gpu-core/gpu-fft1d-benchmark.d.ts +40 -0
  389. package/dist/gpu-core/gpu-fft1d-benchmark.d.ts.map +1 -0
  390. package/dist/gpu-core/gpu-fft1d-benchmark.js +173 -0
  391. package/dist/gpu-core/gpu-fft1d-benchmark.js.map +1 -0
  392. package/dist/gpu-core/gpu-fft1d.cjs +465 -0
  393. package/dist/gpu-core/gpu-fft1d.d.ts +103 -0
  394. package/dist/gpu-core/gpu-fft1d.d.ts.map +1 -0
  395. package/dist/gpu-core/gpu-fft1d.js +473 -0
  396. package/dist/gpu-core/gpu-fft1d.js.map +1 -0
  397. package/dist/gpu-core/gpu-fft2d-shaders.cjs +109 -0
  398. package/dist/gpu-core/gpu-fft2d-shaders.d.ts +7 -0
  399. package/dist/gpu-core/gpu-fft2d-shaders.d.ts.map +1 -0
  400. package/dist/gpu-core/gpu-fft2d-shaders.js +84 -0
  401. package/dist/gpu-core/gpu-fft2d-shaders.js.map +1 -0
  402. package/dist/gpu-core/gpu-fft2d.cjs +332 -0
  403. package/dist/gpu-core/gpu-fft2d.d.ts +69 -0
  404. package/dist/gpu-core/gpu-fft2d.d.ts.map +1 -0
  405. package/dist/gpu-core/gpu-fft2d.js +330 -0
  406. package/dist/gpu-core/gpu-fft2d.js.map +1 -0
  407. package/dist/gpu-core/gpu-finite-difference-2d.cjs +203 -0
  408. package/dist/gpu-core/gpu-finite-difference-2d.d.ts +73 -0
  409. package/dist/gpu-core/gpu-finite-difference-2d.d.ts.map +1 -0
  410. package/dist/gpu-core/gpu-finite-difference-2d.js +197 -0
  411. package/dist/gpu-core/gpu-finite-difference-2d.js.map +1 -0
  412. package/dist/gpu-core/gpu-finite-difference-3d.cjs +224 -0
  413. package/dist/gpu-core/gpu-finite-difference-3d.d.ts +59 -0
  414. package/dist/gpu-core/gpu-finite-difference-3d.d.ts.map +1 -0
  415. package/dist/gpu-core/gpu-finite-difference-3d.js +206 -0
  416. package/dist/gpu-core/gpu-finite-difference-3d.js.map +1 -0
  417. package/dist/gpu-core/gpu-finite-difference-utils.cjs +225 -0
  418. package/dist/gpu-core/gpu-finite-difference-utils.d.ts +42 -0
  419. package/dist/gpu-core/gpu-finite-difference-utils.d.ts.map +1 -0
  420. package/dist/gpu-core/gpu-finite-difference-utils.js +219 -0
  421. package/dist/gpu-core/gpu-finite-difference-utils.js.map +1 -0
  422. package/dist/gpu-core/gpu-flag-offsets.cjs +163 -0
  423. package/dist/gpu-core/gpu-flag-offsets.d.ts +29 -0
  424. package/dist/gpu-core/gpu-flag-offsets.d.ts.map +1 -0
  425. package/dist/gpu-core/gpu-flag-offsets.js +152 -0
  426. package/dist/gpu-core/gpu-flag-offsets.js.map +1 -0
  427. package/dist/gpu-core/gpu-galloping-search-chunks.cjs +179 -0
  428. package/dist/gpu-core/gpu-galloping-search-chunks.d.ts +6 -0
  429. package/dist/gpu-core/gpu-galloping-search-chunks.d.ts.map +1 -0
  430. package/dist/gpu-core/gpu-galloping-search-chunks.js +162 -0
  431. package/dist/gpu-core/gpu-galloping-search-chunks.js.map +1 -0
  432. package/dist/gpu-core/gpu-galloping-search.cjs +374 -0
  433. package/dist/gpu-core/gpu-galloping-search.d.ts +73 -0
  434. package/dist/gpu-core/gpu-galloping-search.d.ts.map +1 -0
  435. package/dist/gpu-core/gpu-galloping-search.js +370 -0
  436. package/dist/gpu-core/gpu-galloping-search.js.map +1 -0
  437. package/dist/gpu-core/gpu-gather.cjs +222 -0
  438. package/dist/gpu-core/gpu-gather.d.ts +34 -0
  439. package/dist/gpu-core/gpu-gather.d.ts.map +1 -0
  440. package/dist/gpu-core/gpu-gather.js +225 -0
  441. package/dist/gpu-core/gpu-gather.js.map +1 -0
  442. package/dist/gpu-core/gpu-graph-compiler.cjs +426 -0
  443. package/dist/gpu-core/gpu-graph-compiler.d.ts +66 -0
  444. package/dist/gpu-core/gpu-graph-compiler.d.ts.map +1 -0
  445. package/dist/gpu-core/gpu-graph-compiler.js +422 -0
  446. package/dist/gpu-core/gpu-graph-compiler.js.map +1 -0
  447. package/dist/gpu-core/gpu-graph-inspector.cjs +44 -0
  448. package/dist/gpu-core/gpu-graph-inspector.d.ts +16 -0
  449. package/dist/gpu-core/gpu-graph-inspector.d.ts.map +1 -0
  450. package/dist/gpu-core/gpu-graph-inspector.js +23 -0
  451. package/dist/gpu-core/gpu-graph-inspector.js.map +1 -0
  452. package/dist/gpu-core/gpu-graph-lowering.cjs +40 -0
  453. package/dist/gpu-core/gpu-graph-lowering.d.ts +37 -0
  454. package/dist/gpu-core/gpu-graph-lowering.d.ts.map +1 -0
  455. package/dist/gpu-core/gpu-graph-lowering.js +18 -0
  456. package/dist/gpu-core/gpu-graph-lowering.js.map +1 -0
  457. package/dist/gpu-core/gpu-graph-traversal.cjs +602 -0
  458. package/dist/gpu-core/gpu-graph-traversal.d.ts +78 -0
  459. package/dist/gpu-core/gpu-graph-traversal.d.ts.map +1 -0
  460. package/dist/gpu-core/gpu-graph-traversal.js +597 -0
  461. package/dist/gpu-core/gpu-graph-traversal.js.map +1 -0
  462. package/dist/gpu-core/gpu-graph-validation.cjs +74 -0
  463. package/dist/gpu-core/gpu-graph-validation.d.ts +16 -0
  464. package/dist/gpu-core/gpu-graph-validation.d.ts.map +1 -0
  465. package/dist/gpu-core/gpu-graph-validation.js +52 -0
  466. package/dist/gpu-core/gpu-graph-validation.js.map +1 -0
  467. package/dist/gpu-core/gpu-graph-value.cjs +100 -0
  468. package/dist/gpu-core/gpu-graph-value.d.ts +61 -0
  469. package/dist/gpu-core/gpu-graph-value.d.ts.map +1 -0
  470. package/dist/gpu-core/gpu-graph-value.js +83 -0
  471. package/dist/gpu-core/gpu-graph-value.js.map +1 -0
  472. package/dist/gpu-core/gpu-graph.cjs +108 -0
  473. package/dist/gpu-core/gpu-graph.d.ts +35 -0
  474. package/dist/gpu-core/gpu-graph.d.ts.map +1 -0
  475. package/dist/gpu-core/gpu-graph.js +85 -0
  476. package/dist/gpu-core/gpu-graph.js.map +1 -0
  477. package/dist/gpu-core/gpu-grid-aggregation.cjs +396 -0
  478. package/dist/gpu-core/gpu-grid-aggregation.d.ts +66 -0
  479. package/dist/gpu-core/gpu-grid-aggregation.d.ts.map +1 -0
  480. package/dist/gpu-core/gpu-grid-aggregation.js +424 -0
  481. package/dist/gpu-core/gpu-grid-aggregation.js.map +1 -0
  482. package/dist/gpu-core/gpu-grid-binning.cjs +252 -0
  483. package/dist/gpu-core/gpu-grid-binning.d.ts +51 -0
  484. package/dist/gpu-core/gpu-grid-binning.d.ts.map +1 -0
  485. package/dist/gpu-core/gpu-grid-binning.js +257 -0
  486. package/dist/gpu-core/gpu-grid-binning.js.map +1 -0
  487. package/dist/gpu-core/gpu-grid-index-internals.cjs +249 -0
  488. package/dist/gpu-core/gpu-grid-index-internals.d.ts +11 -0
  489. package/dist/gpu-core/gpu-grid-index-internals.d.ts.map +1 -0
  490. package/dist/gpu-core/gpu-grid-index-internals.js +231 -0
  491. package/dist/gpu-core/gpu-grid-index-internals.js.map +1 -0
  492. package/dist/gpu-core/gpu-grid-index-query.cjs +381 -0
  493. package/dist/gpu-core/gpu-grid-index-query.d.ts +55 -0
  494. package/dist/gpu-core/gpu-grid-index-query.d.ts.map +1 -0
  495. package/dist/gpu-core/gpu-grid-index-query.js +399 -0
  496. package/dist/gpu-core/gpu-grid-index-query.js.map +1 -0
  497. package/dist/gpu-core/gpu-grid-index.cjs +135 -0
  498. package/dist/gpu-core/gpu-grid-index.d.ts +60 -0
  499. package/dist/gpu-core/gpu-grid-index.d.ts.map +1 -0
  500. package/dist/gpu-core/gpu-grid-index.js +123 -0
  501. package/dist/gpu-core/gpu-grid-index.js.map +1 -0
  502. package/dist/gpu-core/gpu-group-aggregation.cjs +540 -0
  503. package/dist/gpu-core/gpu-group-aggregation.d.ts +71 -0
  504. package/dist/gpu-core/gpu-group-aggregation.d.ts.map +1 -0
  505. package/dist/gpu-core/gpu-group-aggregation.js +578 -0
  506. package/dist/gpu-core/gpu-group-aggregation.js.map +1 -0
  507. package/dist/gpu-core/gpu-hash-index.cjs +634 -0
  508. package/dist/gpu-core/gpu-hash-index.d.ts +108 -0
  509. package/dist/gpu-core/gpu-hash-index.d.ts.map +1 -0
  510. package/dist/gpu-core/gpu-hash-index.js +618 -0
  511. package/dist/gpu-core/gpu-hash-index.js.map +1 -0
  512. package/dist/gpu-core/gpu-hash-join.cjs +439 -0
  513. package/dist/gpu-core/gpu-hash-join.d.ts +64 -0
  514. package/dist/gpu-core/gpu-hash-join.d.ts.map +1 -0
  515. package/dist/gpu-core/gpu-hash-join.js +429 -0
  516. package/dist/gpu-core/gpu-hash-join.js.map +1 -0
  517. package/dist/gpu-core/gpu-hierarchy-layout.cjs +257 -0
  518. package/dist/gpu-core/gpu-hierarchy-layout.d.ts +58 -0
  519. package/dist/gpu-core/gpu-hierarchy-layout.d.ts.map +1 -0
  520. package/dist/gpu-core/gpu-hierarchy-layout.js +246 -0
  521. package/dist/gpu-core/gpu-hierarchy-layout.js.map +1 -0
  522. package/dist/gpu-core/gpu-histogram.cjs +599 -0
  523. package/dist/gpu-core/gpu-histogram.d.ts +76 -0
  524. package/dist/gpu-core/gpu-histogram.d.ts.map +1 -0
  525. package/dist/gpu-core/gpu-histogram.js +655 -0
  526. package/dist/gpu-core/gpu-histogram.js.map +1 -0
  527. package/dist/gpu-core/gpu-incremental-execution.cjs +167 -0
  528. package/dist/gpu-core/gpu-incremental-execution.d.ts +67 -0
  529. package/dist/gpu-core/gpu-incremental-execution.d.ts.map +1 -0
  530. package/dist/gpu-core/gpu-incremental-execution.js +167 -0
  531. package/dist/gpu-core/gpu-incremental-execution.js.map +1 -0
  532. package/dist/gpu-core/gpu-index-picking-target.cjs +369 -0
  533. package/dist/gpu-core/gpu-index-picking-target.d.ts +113 -0
  534. package/dist/gpu-core/gpu-index-picking-target.d.ts.map +1 -0
  535. package/dist/gpu-core/gpu-index-picking-target.js +363 -0
  536. package/dist/gpu-core/gpu-index-picking-target.js.map +1 -0
  537. package/dist/gpu-core/gpu-indexed-range-compaction.cjs +868 -0
  538. package/dist/gpu-core/gpu-indexed-range-compaction.d.ts +136 -0
  539. package/dist/gpu-core/gpu-indexed-range-compaction.d.ts.map +1 -0
  540. package/dist/gpu-core/gpu-indexed-range-compaction.js +836 -0
  541. package/dist/gpu-core/gpu-indexed-range-compaction.js.map +1 -0
  542. package/dist/gpu-core/gpu-jacobi-preconditioner.cjs +108 -0
  543. package/dist/gpu-core/gpu-jacobi-preconditioner.d.ts +18 -0
  544. package/dist/gpu-core/gpu-jacobi-preconditioner.d.ts.map +1 -0
  545. package/dist/gpu-core/gpu-jacobi-preconditioner.js +92 -0
  546. package/dist/gpu-core/gpu-jacobi-preconditioner.js.map +1 -0
  547. package/dist/gpu-core/gpu-lz-byte-batch-decompressor.cjs +258 -0
  548. package/dist/gpu-core/gpu-lz-byte-batch-decompressor.d.ts +59 -0
  549. package/dist/gpu-core/gpu-lz-byte-batch-decompressor.d.ts.map +1 -0
  550. package/dist/gpu-core/gpu-lz-byte-batch-decompressor.js +250 -0
  551. package/dist/gpu-core/gpu-lz-byte-batch-decompressor.js.map +1 -0
  552. package/dist/gpu-core/gpu-lz-byte-decompressor.cjs +310 -0
  553. package/dist/gpu-core/gpu-lz-byte-decompressor.d.ts +55 -0
  554. package/dist/gpu-core/gpu-lz-byte-decompressor.d.ts.map +1 -0
  555. package/dist/gpu-core/gpu-lz-byte-decompressor.js +308 -0
  556. package/dist/gpu-core/gpu-lz-byte-decompressor.js.map +1 -0
  557. package/dist/gpu-core/gpu-mask.cjs +198 -0
  558. package/dist/gpu-core/gpu-mask.d.ts +43 -0
  559. package/dist/gpu-core/gpu-mask.d.ts.map +1 -0
  560. package/dist/gpu-core/gpu-mask.js +183 -0
  561. package/dist/gpu-core/gpu-mask.js.map +1 -0
  562. package/dist/gpu-core/gpu-matmul.cjs +137 -0
  563. package/dist/gpu-core/gpu-matmul.d.ts +28 -0
  564. package/dist/gpu-core/gpu-matmul.d.ts.map +1 -0
  565. package/dist/gpu-core/gpu-matmul.js +116 -0
  566. package/dist/gpu-core/gpu-matmul.js.map +1 -0
  567. package/dist/gpu-core/gpu-matvec.cjs +112 -0
  568. package/dist/gpu-core/gpu-matvec.d.ts +26 -0
  569. package/dist/gpu-core/gpu-matvec.d.ts.map +1 -0
  570. package/dist/gpu-core/gpu-matvec.js +91 -0
  571. package/dist/gpu-core/gpu-matvec.js.map +1 -0
  572. package/dist/gpu-core/gpu-operation.cjs +73 -0
  573. package/dist/gpu-core/gpu-operation.d.ts +58 -0
  574. package/dist/gpu-core/gpu-operation.d.ts.map +1 -0
  575. package/dist/gpu-core/gpu-operation.js +48 -0
  576. package/dist/gpu-core/gpu-operation.js.map +1 -0
  577. package/dist/gpu-core/gpu-pcg.cjs +256 -0
  578. package/dist/gpu-core/gpu-pcg.d.ts +37 -0
  579. package/dist/gpu-core/gpu-pcg.d.ts.map +1 -0
  580. package/dist/gpu-core/gpu-pcg.js +238 -0
  581. package/dist/gpu-core/gpu-pcg.js.map +1 -0
  582. package/dist/gpu-core/gpu-planning-heap.cjs +66 -0
  583. package/dist/gpu-core/gpu-planning-heap.d.ts +10 -0
  584. package/dist/gpu-core/gpu-planning-heap.d.ts.map +1 -0
  585. package/dist/gpu-core/gpu-planning-heap.js +46 -0
  586. package/dist/gpu-core/gpu-planning-heap.js.map +1 -0
  587. package/dist/gpu-core/gpu-point-spatial-filter.cjs +303 -0
  588. package/dist/gpu-core/gpu-point-spatial-filter.d.ts +52 -0
  589. package/dist/gpu-core/gpu-point-spatial-filter.d.ts.map +1 -0
  590. package/dist/gpu-core/gpu-point-spatial-filter.js +311 -0
  591. package/dist/gpu-core/gpu-point-spatial-filter.js.map +1 -0
  592. package/dist/gpu-core/gpu-predicate-conjunction.cjs +79 -0
  593. package/dist/gpu-core/gpu-predicate-conjunction.d.ts +19 -0
  594. package/dist/gpu-core/gpu-predicate-conjunction.d.ts.map +1 -0
  595. package/dist/gpu-core/gpu-predicate-conjunction.js +57 -0
  596. package/dist/gpu-core/gpu-predicate-conjunction.js.map +1 -0
  597. package/dist/gpu-core/gpu-readback-ring.cjs +213 -0
  598. package/dist/gpu-core/gpu-readback-ring.d.ts +84 -0
  599. package/dist/gpu-core/gpu-readback-ring.d.ts.map +1 -0
  600. package/dist/gpu-core/gpu-readback-ring.js +210 -0
  601. package/dist/gpu-core/gpu-readback-ring.js.map +1 -0
  602. package/dist/gpu-core/gpu-reduction-strategy.cjs +88 -0
  603. package/dist/gpu-core/gpu-reduction-strategy.d.ts +12 -0
  604. package/dist/gpu-core/gpu-reduction-strategy.d.ts.map +1 -0
  605. package/dist/gpu-core/gpu-reduction-strategy.js +65 -0
  606. package/dist/gpu-core/gpu-reduction-strategy.js.map +1 -0
  607. package/dist/gpu-core/gpu-reduction-substrate.cjs +189 -0
  608. package/dist/gpu-core/gpu-reduction-substrate.d.ts +15 -0
  609. package/dist/gpu-core/gpu-reduction-substrate.d.ts.map +1 -0
  610. package/dist/gpu-core/gpu-reduction-substrate.js +175 -0
  611. package/dist/gpu-core/gpu-reduction-substrate.js.map +1 -0
  612. package/dist/gpu-core/gpu-reduction.cjs +486 -0
  613. package/dist/gpu-core/gpu-reduction.d.ts +77 -0
  614. package/dist/gpu-core/gpu-reduction.d.ts.map +1 -0
  615. package/dist/gpu-core/gpu-reduction.js +526 -0
  616. package/dist/gpu-core/gpu-reduction.js.map +1 -0
  617. package/dist/gpu-core/gpu-resource-preview.cjs +83 -0
  618. package/dist/gpu-core/gpu-resource-preview.d.ts +12 -0
  619. package/dist/gpu-core/gpu-resource-preview.d.ts.map +1 -0
  620. package/dist/gpu-core/gpu-resource-preview.js +67 -0
  621. package/dist/gpu-core/gpu-resource-preview.js.map +1 -0
  622. package/dist/gpu-core/gpu-run-length-encode.cjs +187 -0
  623. package/dist/gpu-core/gpu-run-length-encode.d.ts +27 -0
  624. package/dist/gpu-core/gpu-run-length-encode.d.ts.map +1 -0
  625. package/dist/gpu-core/gpu-run-length-encode.js +171 -0
  626. package/dist/gpu-core/gpu-run-length-encode.js.map +1 -0
  627. package/dist/gpu-core/gpu-scalar-dispatch-gate.cjs +126 -0
  628. package/dist/gpu-core/gpu-scalar-dispatch-gate.d.ts +25 -0
  629. package/dist/gpu-core/gpu-scalar-dispatch-gate.d.ts.map +1 -0
  630. package/dist/gpu-core/gpu-scalar-dispatch-gate.js +106 -0
  631. package/dist/gpu-core/gpu-scalar-dispatch-gate.js.map +1 -0
  632. package/dist/gpu-core/gpu-scalar-literal.cjs +84 -0
  633. package/dist/gpu-core/gpu-scalar-literal.d.ts +20 -0
  634. package/dist/gpu-core/gpu-scalar-literal.d.ts.map +1 -0
  635. package/dist/gpu-core/gpu-scalar-literal.js +67 -0
  636. package/dist/gpu-core/gpu-scalar-literal.js.map +1 -0
  637. package/dist/gpu-core/gpu-scalar-operation.cjs +152 -0
  638. package/dist/gpu-core/gpu-scalar-operation.d.ts +24 -0
  639. package/dist/gpu-core/gpu-scalar-operation.d.ts.map +1 -0
  640. package/dist/gpu-core/gpu-scalar-operation.js +131 -0
  641. package/dist/gpu-core/gpu-scalar-operation.js.map +1 -0
  642. package/dist/gpu-core/gpu-scalar.cjs +102 -0
  643. package/dist/gpu-core/gpu-scalar.d.ts +33 -0
  644. package/dist/gpu-core/gpu-scalar.d.ts.map +1 -0
  645. package/dist/gpu-core/gpu-scalar.js +79 -0
  646. package/dist/gpu-core/gpu-scalar.js.map +1 -0
  647. package/dist/gpu-core/gpu-scan.cjs +630 -0
  648. package/dist/gpu-core/gpu-scan.d.ts +65 -0
  649. package/dist/gpu-core/gpu-scan.d.ts.map +1 -0
  650. package/dist/gpu-core/gpu-scan.js +692 -0
  651. package/dist/gpu-core/gpu-scan.js.map +1 -0
  652. package/dist/gpu-core/gpu-scatter.cjs +132 -0
  653. package/dist/gpu-core/gpu-scatter.d.ts +39 -0
  654. package/dist/gpu-core/gpu-scatter.d.ts.map +1 -0
  655. package/dist/gpu-core/gpu-scatter.js +125 -0
  656. package/dist/gpu-core/gpu-scatter.js.map +1 -0
  657. package/dist/gpu-core/gpu-scene-draw-generation.cjs +484 -0
  658. package/dist/gpu-core/gpu-scene-draw-generation.d.ts +52 -0
  659. package/dist/gpu-core/gpu-scene-draw-generation.d.ts.map +1 -0
  660. package/dist/gpu-core/gpu-scene-draw-generation.js +494 -0
  661. package/dist/gpu-core/gpu-scene-draw-generation.js.map +1 -0
  662. package/dist/gpu-core/gpu-scene-resource-groups.cjs +322 -0
  663. package/dist/gpu-core/gpu-scene-resource-groups.d.ts +66 -0
  664. package/dist/gpu-core/gpu-scene-resource-groups.d.ts.map +1 -0
  665. package/dist/gpu-core/gpu-scene-resource-groups.js +330 -0
  666. package/dist/gpu-core/gpu-scene-resource-groups.js.map +1 -0
  667. package/dist/gpu-core/gpu-scene.cjs +499 -0
  668. package/dist/gpu-core/gpu-scene.d.ts +172 -0
  669. package/dist/gpu-core/gpu-scene.d.ts.map +1 -0
  670. package/dist/gpu-core/gpu-scene.js +494 -0
  671. package/dist/gpu-core/gpu-scene.js.map +1 -0
  672. package/dist/gpu-core/gpu-segment-offsets.cjs +269 -0
  673. package/dist/gpu-core/gpu-segment-offsets.d.ts +34 -0
  674. package/dist/gpu-core/gpu-segment-offsets.d.ts.map +1 -0
  675. package/dist/gpu-core/gpu-segment-offsets.js +254 -0
  676. package/dist/gpu-core/gpu-segment-offsets.js.map +1 -0
  677. package/dist/gpu-core/gpu-segmented-bvh.cjs +391 -0
  678. package/dist/gpu-core/gpu-segmented-bvh.d.ts +84 -0
  679. package/dist/gpu-core/gpu-segmented-bvh.d.ts.map +1 -0
  680. package/dist/gpu-core/gpu-segmented-bvh.js +392 -0
  681. package/dist/gpu-core/gpu-segmented-bvh.js.map +1 -0
  682. package/dist/gpu-core/gpu-segmented-layout.cjs +322 -0
  683. package/dist/gpu-core/gpu-segmented-layout.d.ts +53 -0
  684. package/dist/gpu-core/gpu-segmented-layout.d.ts.map +1 -0
  685. package/dist/gpu-core/gpu-segmented-layout.js +321 -0
  686. package/dist/gpu-core/gpu-segmented-layout.js.map +1 -0
  687. package/dist/gpu-core/gpu-segmented-reduction.cjs +149 -0
  688. package/dist/gpu-core/gpu-segmented-reduction.d.ts +23 -0
  689. package/dist/gpu-core/gpu-segmented-reduction.d.ts.map +1 -0
  690. package/dist/gpu-core/gpu-segmented-reduction.js +151 -0
  691. package/dist/gpu-core/gpu-segmented-reduction.js.map +1 -0
  692. package/dist/gpu-core/gpu-segmented-scan.cjs +112 -0
  693. package/dist/gpu-core/gpu-segmented-scan.d.ts +24 -0
  694. package/dist/gpu-core/gpu-segmented-scan.d.ts.map +1 -0
  695. package/dist/gpu-core/gpu-segmented-scan.js +92 -0
  696. package/dist/gpu-core/gpu-segmented-scan.js.map +1 -0
  697. package/dist/gpu-core/gpu-segmented-sort.cjs +381 -0
  698. package/dist/gpu-core/gpu-segmented-sort.d.ts +70 -0
  699. package/dist/gpu-core/gpu-segmented-sort.d.ts.map +1 -0
  700. package/dist/gpu-core/gpu-segmented-sort.js +375 -0
  701. package/dist/gpu-core/gpu-segmented-sort.js.map +1 -0
  702. package/dist/gpu-core/gpu-semantic-scalar-operation.cjs +94 -0
  703. package/dist/gpu-core/gpu-semantic-scalar-operation.d.ts +35 -0
  704. package/dist/gpu-core/gpu-semantic-scalar-operation.d.ts.map +1 -0
  705. package/dist/gpu-core/gpu-semantic-scalar-operation.js +70 -0
  706. package/dist/gpu-core/gpu-semantic-scalar-operation.js.map +1 -0
  707. package/dist/gpu-core/gpu-semantic-spmv.cjs +71 -0
  708. package/dist/gpu-core/gpu-semantic-spmv.d.ts +45 -0
  709. package/dist/gpu-core/gpu-semantic-spmv.d.ts.map +1 -0
  710. package/dist/gpu-core/gpu-semantic-spmv.js +49 -0
  711. package/dist/gpu-core/gpu-semantic-spmv.js.map +1 -0
  712. package/dist/gpu-core/gpu-semantic-state-operation.cjs +39 -0
  713. package/dist/gpu-core/gpu-semantic-state-operation.d.ts +18 -0
  714. package/dist/gpu-core/gpu-semantic-state-operation.d.ts.map +1 -0
  715. package/dist/gpu-core/gpu-semantic-state-operation.js +18 -0
  716. package/dist/gpu-core/gpu-semantic-state-operation.js.map +1 -0
  717. package/dist/gpu-core/gpu-semantic-vector-operation.cjs +55 -0
  718. package/dist/gpu-core/gpu-semantic-vector-operation.d.ts +41 -0
  719. package/dist/gpu-core/gpu-semantic-vector-operation.d.ts.map +1 -0
  720. package/dist/gpu-core/gpu-semantic-vector-operation.js +33 -0
  721. package/dist/gpu-core/gpu-semantic-vector-operation.js.map +1 -0
  722. package/dist/gpu-core/gpu-sort-chunks.cjs +135 -0
  723. package/dist/gpu-core/gpu-sort-chunks.d.ts +6 -0
  724. package/dist/gpu-core/gpu-sort-chunks.d.ts.map +1 -0
  725. package/dist/gpu-core/gpu-sort-chunks.js +105 -0
  726. package/dist/gpu-core/gpu-sort-chunks.js.map +1 -0
  727. package/dist/gpu-core/gpu-sort.cjs +741 -0
  728. package/dist/gpu-core/gpu-sort.d.ts +70 -0
  729. package/dist/gpu-core/gpu-sort.d.ts.map +1 -0
  730. package/dist/gpu-core/gpu-sort.js +727 -0
  731. package/dist/gpu-core/gpu-sort.js.map +1 -0
  732. package/dist/gpu-core/gpu-spatial-query-benchmark.cjs +183 -0
  733. package/dist/gpu-core/gpu-spatial-query-benchmark.d.ts +82 -0
  734. package/dist/gpu-core/gpu-spatial-query-benchmark.d.ts.map +1 -0
  735. package/dist/gpu-core/gpu-spatial-query-benchmark.js +178 -0
  736. package/dist/gpu-core/gpu-spatial-query-benchmark.js.map +1 -0
  737. package/dist/gpu-core/gpu-spatial-utils.cjs +79 -0
  738. package/dist/gpu-core/gpu-spatial-utils.d.ts +14 -0
  739. package/dist/gpu-core/gpu-spatial-utils.d.ts.map +1 -0
  740. package/dist/gpu-core/gpu-spatial-utils.js +58 -0
  741. package/dist/gpu-core/gpu-spatial-utils.js.map +1 -0
  742. package/dist/gpu-core/gpu-spmv-strategy.cjs +87 -0
  743. package/dist/gpu-core/gpu-spmv-strategy.d.ts +22 -0
  744. package/dist/gpu-core/gpu-spmv-strategy.d.ts.map +1 -0
  745. package/dist/gpu-core/gpu-spmv-strategy.js +65 -0
  746. package/dist/gpu-core/gpu-spmv-strategy.js.map +1 -0
  747. package/dist/gpu-core/gpu-strategy.cjs +62 -0
  748. package/dist/gpu-core/gpu-strategy.d.ts +43 -0
  749. package/dist/gpu-core/gpu-strategy.d.ts.map +1 -0
  750. package/dist/gpu-core/gpu-strategy.js +43 -0
  751. package/dist/gpu-core/gpu-strategy.js.map +1 -0
  752. package/dist/gpu-core/gpu-subgroup-utils.cjs +84 -0
  753. package/dist/gpu-core/gpu-subgroup-utils.d.ts +24 -0
  754. package/dist/gpu-core/gpu-subgroup-utils.d.ts.map +1 -0
  755. package/dist/gpu-core/gpu-subgroup-utils.js +66 -0
  756. package/dist/gpu-core/gpu-subgroup-utils.js.map +1 -0
  757. package/dist/gpu-core/gpu-text-selection.cjs +282 -0
  758. package/dist/gpu-core/gpu-text-selection.d.ts +40 -0
  759. package/dist/gpu-core/gpu-text-selection.d.ts.map +1 -0
  760. package/dist/gpu-core/gpu-text-selection.js +264 -0
  761. package/dist/gpu-core/gpu-text-selection.js.map +1 -0
  762. package/dist/gpu-core/gpu-texture-history.cjs +92 -0
  763. package/dist/gpu-core/gpu-texture-history.d.ts +39 -0
  764. package/dist/gpu-core/gpu-texture-history.d.ts.map +1 -0
  765. package/dist/gpu-core/gpu-texture-history.js +79 -0
  766. package/dist/gpu-core/gpu-texture-history.js.map +1 -0
  767. package/dist/gpu-core/gpu-transient-lifetime-planner.cjs +83 -0
  768. package/dist/gpu-core/gpu-transient-lifetime-planner.d.ts +32 -0
  769. package/dist/gpu-core/gpu-transient-lifetime-planner.d.ts.map +1 -0
  770. package/dist/gpu-core/gpu-transient-lifetime-planner.js +72 -0
  771. package/dist/gpu-core/gpu-transient-lifetime-planner.js.map +1 -0
  772. package/dist/gpu-core/gpu-transpose-benchmark.cjs +229 -0
  773. package/dist/gpu-core/gpu-transpose-benchmark.d.ts +37 -0
  774. package/dist/gpu-core/gpu-transpose-benchmark.d.ts.map +1 -0
  775. package/dist/gpu-core/gpu-transpose-benchmark.js +226 -0
  776. package/dist/gpu-core/gpu-transpose-benchmark.js.map +1 -0
  777. package/dist/gpu-core/gpu-transpose.cjs +313 -0
  778. package/dist/gpu-core/gpu-transpose.d.ts +67 -0
  779. package/dist/gpu-core/gpu-transpose.d.ts.map +1 -0
  780. package/dist/gpu-core/gpu-transpose.js +302 -0
  781. package/dist/gpu-core/gpu-transpose.js.map +1 -0
  782. package/dist/gpu-core/gpu-uint32-gather.cjs +42 -0
  783. package/dist/gpu-core/gpu-uint32-gather.d.ts +13 -0
  784. package/dist/gpu-core/gpu-uint32-gather.d.ts.map +1 -0
  785. package/dist/gpu-core/gpu-uint32-gather.js +23 -0
  786. package/dist/gpu-core/gpu-uint32-gather.js.map +1 -0
  787. package/dist/gpu-core/gpu-uint64-scan.cjs +190 -0
  788. package/dist/gpu-core/gpu-uint64-scan.d.ts +19 -0
  789. package/dist/gpu-core/gpu-uint64-scan.d.ts.map +1 -0
  790. package/dist/gpu-core/gpu-uint64-scan.js +177 -0
  791. package/dist/gpu-core/gpu-uint64-scan.js.map +1 -0
  792. package/dist/gpu-core/gpu-value-arena-inspector.cjs +53 -0
  793. package/dist/gpu-core/gpu-value-arena-inspector.d.ts +22 -0
  794. package/dist/gpu-core/gpu-value-arena-inspector.d.ts.map +1 -0
  795. package/dist/gpu-core/gpu-value-arena-inspector.js +31 -0
  796. package/dist/gpu-core/gpu-value-arena-inspector.js.map +1 -0
  797. package/dist/gpu-core/gpu-value-arena.cjs +113 -0
  798. package/dist/gpu-core/gpu-value-arena.d.ts +30 -0
  799. package/dist/gpu-core/gpu-value-arena.d.ts.map +1 -0
  800. package/dist/gpu-core/gpu-value-arena.js +90 -0
  801. package/dist/gpu-core/gpu-value-arena.js.map +1 -0
  802. package/dist/gpu-core/gpu-virtual-geometry-selection.cjs +498 -0
  803. package/dist/gpu-core/gpu-virtual-geometry-selection.d.ts +96 -0
  804. package/dist/gpu-core/gpu-virtual-geometry-selection.d.ts.map +1 -0
  805. package/dist/gpu-core/gpu-virtual-geometry-selection.js +496 -0
  806. package/dist/gpu-core/gpu-virtual-geometry-selection.js.map +1 -0
  807. package/dist/gpu-core/gpu-visibility-workflow.cjs +227 -0
  808. package/dist/gpu-core/gpu-visibility-workflow.d.ts +62 -0
  809. package/dist/gpu-core/gpu-visibility-workflow.d.ts.map +1 -0
  810. package/dist/gpu-core/gpu-visibility-workflow.js +220 -0
  811. package/dist/gpu-core/gpu-visibility-workflow.js.map +1 -0
  812. package/dist/gpu-core/gpu-workgroup-reduction-benchmark.cjs +279 -0
  813. package/dist/gpu-core/gpu-workgroup-reduction-benchmark.d.ts +39 -0
  814. package/dist/gpu-core/gpu-workgroup-reduction-benchmark.d.ts.map +1 -0
  815. package/dist/gpu-core/gpu-workgroup-reduction-benchmark.js +264 -0
  816. package/dist/gpu-core/gpu-workgroup-reduction-benchmark.js.map +1 -0
  817. package/dist/gpu-core/gpu-workgroup-scan-benchmark.cjs +304 -0
  818. package/dist/gpu-core/gpu-workgroup-scan-benchmark.d.ts +54 -0
  819. package/dist/gpu-core/gpu-workgroup-scan-benchmark.d.ts.map +1 -0
  820. package/dist/gpu-core/gpu-workgroup-scan-benchmark.js +293 -0
  821. package/dist/gpu-core/gpu-workgroup-scan-benchmark.js.map +1 -0
  822. package/dist/gpu-core/graph-data-view-utils.cjs +165 -0
  823. package/dist/gpu-core/graph-data-view-utils.d.ts +49 -0
  824. package/dist/gpu-core/graph-data-view-utils.d.ts.map +1 -0
  825. package/dist/gpu-core/graph-data-view-utils.js +158 -0
  826. package/dist/gpu-core/graph-data-view-utils.js.map +1 -0
  827. package/dist/gpu-core/graph-vector-view-utils.cjs +71 -0
  828. package/dist/gpu-core/graph-vector-view-utils.d.ts +10 -0
  829. package/dist/gpu-core/graph-vector-view-utils.d.ts.map +1 -0
  830. package/dist/gpu-core/graph-vector-view-utils.js +53 -0
  831. package/dist/gpu-core/graph-vector-view-utils.js.map +1 -0
  832. package/dist/gpu-core/index.cjs +455 -0
  833. package/dist/gpu-core/index.cjs.map +6 -0
  834. package/dist/gpu-core/index.d.ts +165 -0
  835. package/dist/gpu-core/index.d.ts.map +1 -0
  836. package/dist/gpu-core/index.js +89 -0
  837. package/dist/gpu-core/index.js.map +1 -0
  838. package/dist/gpu-core/utils/bound-kernel.cjs +37 -0
  839. package/dist/gpu-core/utils/bound-kernel.d.ts +13 -0
  840. package/dist/gpu-core/utils/bound-kernel.d.ts.map +1 -0
  841. package/dist/gpu-core/utils/bound-kernel.js +13 -0
  842. package/dist/gpu-core/utils/bound-kernel.js.map +1 -0
  843. package/dist/gpu-crossfilter/gpu-crossfilter.cjs +372 -0
  844. package/dist/gpu-crossfilter/gpu-crossfilter.d.ts +152 -0
  845. package/dist/gpu-crossfilter/gpu-crossfilter.d.ts.map +1 -0
  846. package/dist/gpu-crossfilter/gpu-crossfilter.js +370 -0
  847. package/dist/gpu-crossfilter/gpu-crossfilter.js.map +1 -0
  848. package/dist/gpu-crossfilter/gpu-selection.cjs +342 -0
  849. package/dist/gpu-crossfilter/gpu-selection.d.ts +69 -0
  850. package/dist/gpu-crossfilter/gpu-selection.d.ts.map +1 -0
  851. package/dist/gpu-crossfilter/gpu-selection.js +352 -0
  852. package/dist/gpu-crossfilter/gpu-selection.js.map +1 -0
  853. package/dist/gpu-crossfilter/index.cjs +30 -0
  854. package/dist/gpu-crossfilter/index.cjs.map +6 -0
  855. package/dist/gpu-crossfilter/index.d.ts +5 -0
  856. package/dist/gpu-crossfilter/index.d.ts.map +1 -0
  857. package/dist/gpu-crossfilter/index.js +7 -0
  858. package/dist/gpu-crossfilter/index.js.map +1 -0
  859. package/dist/gpu-dataframe/gpu-analytics-compiler-utils.cjs +242 -0
  860. package/dist/gpu-dataframe/gpu-analytics-compiler-utils.d.ts +37 -0
  861. package/dist/gpu-dataframe/gpu-analytics-compiler-utils.d.ts.map +1 -0
  862. package/dist/gpu-dataframe/gpu-analytics-compiler-utils.js +225 -0
  863. package/dist/gpu-dataframe/gpu-analytics-compiler-utils.js.map +1 -0
  864. package/dist/gpu-dataframe/gpu-data-frame-query.cjs +238 -0
  865. package/dist/gpu-dataframe/gpu-data-frame-query.d.ts +83 -0
  866. package/dist/gpu-dataframe/gpu-data-frame-query.d.ts.map +1 -0
  867. package/dist/gpu-dataframe/gpu-data-frame-query.js +236 -0
  868. package/dist/gpu-dataframe/gpu-data-frame-query.js.map +1 -0
  869. package/dist/gpu-dataframe/gpu-data-frame.cjs +372 -0
  870. package/dist/gpu-dataframe/gpu-data-frame.d.ts +122 -0
  871. package/dist/gpu-dataframe/gpu-data-frame.d.ts.map +1 -0
  872. package/dist/gpu-dataframe/gpu-data-frame.js +373 -0
  873. package/dist/gpu-dataframe/gpu-data-frame.js.map +1 -0
  874. package/dist/gpu-dataframe/gpu-expression-shader.cjs +394 -0
  875. package/dist/gpu-dataframe/gpu-expression-shader.d.ts +46 -0
  876. package/dist/gpu-dataframe/gpu-expression-shader.d.ts.map +1 -0
  877. package/dist/gpu-dataframe/gpu-expression-shader.js +399 -0
  878. package/dist/gpu-dataframe/gpu-expression-shader.js.map +1 -0
  879. package/dist/gpu-dataframe/gpu-expression.cjs +198 -0
  880. package/dist/gpu-dataframe/gpu-expression.d.ts +88 -0
  881. package/dist/gpu-dataframe/gpu-expression.d.ts.map +1 -0
  882. package/dist/gpu-dataframe/gpu-expression.js +179 -0
  883. package/dist/gpu-dataframe/gpu-expression.js.map +1 -0
  884. package/dist/gpu-dataframe/gpu-global-aggregation-compiler.cjs +311 -0
  885. package/dist/gpu-dataframe/gpu-global-aggregation-compiler.d.ts +13 -0
  886. package/dist/gpu-dataframe/gpu-global-aggregation-compiler.d.ts.map +1 -0
  887. package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js +290 -0
  888. package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js.map +1 -0
  889. package/dist/gpu-dataframe/gpu-global-aggregation-query.cjs +93 -0
  890. package/dist/gpu-dataframe/gpu-global-aggregation-query.d.ts +58 -0
  891. package/dist/gpu-dataframe/gpu-global-aggregation-query.d.ts.map +1 -0
  892. package/dist/gpu-dataframe/gpu-global-aggregation-query.js +75 -0
  893. package/dist/gpu-dataframe/gpu-global-aggregation-query.js.map +1 -0
  894. package/dist/gpu-dataframe/gpu-global-sort-compiler.cjs +415 -0
  895. package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts +21 -0
  896. package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts.map +1 -0
  897. package/dist/gpu-dataframe/gpu-global-sort-compiler.js +409 -0
  898. package/dist/gpu-dataframe/gpu-global-sort-compiler.js.map +1 -0
  899. package/dist/gpu-dataframe/gpu-group-aggregation-compiler.cjs +374 -0
  900. package/dist/gpu-dataframe/gpu-group-aggregation-compiler.d.ts +17 -0
  901. package/dist/gpu-dataframe/gpu-group-aggregation-compiler.d.ts.map +1 -0
  902. package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js +365 -0
  903. package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js.map +1 -0
  904. package/dist/gpu-dataframe/gpu-group-by-query.cjs +141 -0
  905. package/dist/gpu-dataframe/gpu-group-by-query.d.ts +74 -0
  906. package/dist/gpu-dataframe/gpu-group-by-query.d.ts.map +1 -0
  907. package/dist/gpu-dataframe/gpu-group-by-query.js +130 -0
  908. package/dist/gpu-dataframe/gpu-group-by-query.js.map +1 -0
  909. package/dist/gpu-dataframe/gpu-histogram-compiler.cjs +132 -0
  910. package/dist/gpu-dataframe/gpu-histogram-compiler.d.ts +26 -0
  911. package/dist/gpu-dataframe/gpu-histogram-compiler.d.ts.map +1 -0
  912. package/dist/gpu-dataframe/gpu-histogram-compiler.js +113 -0
  913. package/dist/gpu-dataframe/gpu-histogram-compiler.js.map +1 -0
  914. package/dist/gpu-dataframe/gpu-histogram-query.cjs +114 -0
  915. package/dist/gpu-dataframe/gpu-histogram-query.d.ts +34 -0
  916. package/dist/gpu-dataframe/gpu-histogram-query.d.ts.map +1 -0
  917. package/dist/gpu-dataframe/gpu-histogram-query.js +103 -0
  918. package/dist/gpu-dataframe/gpu-histogram-query.js.map +1 -0
  919. package/dist/gpu-dataframe/gpu-join-compiler.cjs +682 -0
  920. package/dist/gpu-dataframe/gpu-join-compiler.d.ts +71 -0
  921. package/dist/gpu-dataframe/gpu-join-compiler.d.ts.map +1 -0
  922. package/dist/gpu-dataframe/gpu-join-compiler.js +678 -0
  923. package/dist/gpu-dataframe/gpu-join-compiler.js.map +1 -0
  924. package/dist/gpu-dataframe/gpu-join-query.cjs +161 -0
  925. package/dist/gpu-dataframe/gpu-join-query.d.ts +70 -0
  926. package/dist/gpu-dataframe/gpu-join-query.d.ts.map +1 -0
  927. package/dist/gpu-dataframe/gpu-join-query.js +153 -0
  928. package/dist/gpu-dataframe/gpu-join-query.js.map +1 -0
  929. package/dist/gpu-dataframe/gpu-query-compiler.cjs +530 -0
  930. package/dist/gpu-dataframe/gpu-query-compiler.d.ts +81 -0
  931. package/dist/gpu-dataframe/gpu-query-compiler.d.ts.map +1 -0
  932. package/dist/gpu-dataframe/gpu-query-compiler.js +541 -0
  933. package/dist/gpu-dataframe/gpu-query-compiler.js.map +1 -0
  934. package/dist/gpu-dataframe/gpu-sort-compiler.cjs +348 -0
  935. package/dist/gpu-dataframe/gpu-sort-compiler.d.ts +27 -0
  936. package/dist/gpu-dataframe/gpu-sort-compiler.d.ts.map +1 -0
  937. package/dist/gpu-dataframe/gpu-sort-compiler.js +347 -0
  938. package/dist/gpu-dataframe/gpu-sort-compiler.js.map +1 -0
  939. package/dist/gpu-dataframe/gpu-sort-query.cjs +105 -0
  940. package/dist/gpu-dataframe/gpu-sort-query.d.ts +60 -0
  941. package/dist/gpu-dataframe/gpu-sort-query.d.ts.map +1 -0
  942. package/dist/gpu-dataframe/gpu-sort-query.js +97 -0
  943. package/dist/gpu-dataframe/gpu-sort-query.js.map +1 -0
  944. package/dist/gpu-dataframe/index.cjs +89 -0
  945. package/dist/gpu-dataframe/index.cjs.map +6 -0
  946. package/dist/gpu-dataframe/index.d.ts +25 -0
  947. package/dist/gpu-dataframe/index.d.ts.map +1 -0
  948. package/dist/gpu-dataframe/index.js +20 -0
  949. package/dist/gpu-dataframe/index.js.map +1 -0
  950. package/dist/gpu-dggs/benchmarks.cjs +27 -0
  951. package/dist/gpu-dggs/benchmarks.cjs.map +6 -0
  952. package/dist/gpu-dggs/benchmarks.d.ts +3 -0
  953. package/dist/gpu-dggs/benchmarks.d.ts.map +1 -0
  954. package/dist/gpu-dggs/benchmarks.js +5 -0
  955. package/dist/gpu-dggs/benchmarks.js.map +1 -0
  956. package/dist/gpu-dggs/gpu-dggs-cell-projection-benchmark.cjs +229 -0
  957. package/dist/gpu-dggs/gpu-dggs-cell-projection-benchmark.d.ts +47 -0
  958. package/dist/gpu-dggs/gpu-dggs-cell-projection-benchmark.d.ts.map +1 -0
  959. package/dist/gpu-dggs/gpu-dggs-cell-projection-benchmark.js +229 -0
  960. package/dist/gpu-dggs/gpu-dggs-cell-projection-benchmark.js.map +1 -0
  961. package/dist/gpu-dggs/gpu-dggs-cell-projection.cjs +174 -0
  962. package/dist/gpu-dggs/gpu-dggs-cell-projection.d.ts +35 -0
  963. package/dist/gpu-dggs/gpu-dggs-cell-projection.d.ts.map +1 -0
  964. package/dist/gpu-dggs/gpu-dggs-cell-projection.js +166 -0
  965. package/dist/gpu-dggs/gpu-dggs-cell-projection.js.map +1 -0
  966. package/dist/gpu-dggs/index.cjs +27 -0
  967. package/dist/gpu-dggs/index.cjs.map +6 -0
  968. package/dist/gpu-dggs/index.d.ts +3 -0
  969. package/dist/gpu-dggs/index.d.ts.map +1 -0
  970. package/dist/gpu-dggs/index.js +5 -0
  971. package/dist/gpu-dggs/index.js.map +1 -0
  972. package/dist/gpu-effects/fft-bloom-shaders.cjs +327 -0
  973. package/dist/gpu-effects/fft-bloom-shaders.d.ts +10 -0
  974. package/dist/gpu-effects/fft-bloom-shaders.d.ts.map +1 -0
  975. package/dist/gpu-effects/fft-bloom-shaders.js +284 -0
  976. package/dist/gpu-effects/fft-bloom-shaders.js.map +1 -0
  977. package/dist/gpu-effects/fft-bloom.cjs +590 -0
  978. package/dist/gpu-effects/fft-bloom.d.ts +149 -0
  979. package/dist/gpu-effects/fft-bloom.d.ts.map +1 -0
  980. package/dist/gpu-effects/fft-bloom.js +593 -0
  981. package/dist/gpu-effects/fft-bloom.js.map +1 -0
  982. package/dist/gpu-effects/index.cjs +35 -0
  983. package/dist/gpu-effects/index.cjs.map +6 -0
  984. package/dist/gpu-effects/index.d.ts +3 -0
  985. package/dist/gpu-effects/index.d.ts.map +1 -0
  986. package/dist/gpu-effects/index.js +5 -0
  987. package/dist/gpu-effects/index.js.map +1 -0
  988. package/dist/gpu-geometry/gpu-mesh-normals.cjs +81 -0
  989. package/dist/gpu-geometry/gpu-mesh-normals.d.ts +34 -0
  990. package/dist/gpu-geometry/gpu-mesh-normals.d.ts.map +1 -0
  991. package/dist/gpu-geometry/gpu-mesh-normals.js +61 -0
  992. package/dist/gpu-geometry/gpu-mesh-normals.js.map +1 -0
  993. package/dist/gpu-geometry/gpu-mesh-smoothing.cjs +61 -0
  994. package/dist/gpu-geometry/gpu-mesh-smoothing.d.ts +21 -0
  995. package/dist/gpu-geometry/gpu-mesh-smoothing.d.ts.map +1 -0
  996. package/dist/gpu-geometry/gpu-mesh-smoothing.js +43 -0
  997. package/dist/gpu-geometry/gpu-mesh-smoothing.js.map +1 -0
  998. package/dist/gpu-geometry/index.cjs +32 -0
  999. package/dist/gpu-geometry/index.cjs.map +6 -0
  1000. package/dist/gpu-geometry/index.d.ts +5 -0
  1001. package/dist/gpu-geometry/index.d.ts.map +1 -0
  1002. package/dist/gpu-geometry/index.js +6 -0
  1003. package/dist/gpu-geometry/index.js.map +1 -0
  1004. package/dist/gpu-graph/index.cjs +73 -0
  1005. package/dist/gpu-graph/index.cjs.map +6 -0
  1006. package/dist/gpu-graph/index.d.ts +15 -0
  1007. package/dist/gpu-graph/index.d.ts.map +1 -0
  1008. package/dist/gpu-graph/index.js +12 -0
  1009. package/dist/gpu-graph/index.js.map +1 -0
  1010. package/dist/gpu-graph-algorithms/benchmarks.cjs +30 -0
  1011. package/dist/gpu-graph-algorithms/benchmarks.cjs.map +6 -0
  1012. package/dist/gpu-graph-algorithms/benchmarks.d.ts +4 -0
  1013. package/dist/gpu-graph-algorithms/benchmarks.d.ts.map +1 -0
  1014. package/dist/gpu-graph-algorithms/benchmarks.js +7 -0
  1015. package/dist/gpu-graph-algorithms/benchmarks.js.map +1 -0
  1016. package/dist/gpu-graph-algorithms/gpu-graph-benchmark-data.cjs +628 -0
  1017. package/dist/gpu-graph-algorithms/gpu-graph-benchmark-data.d.ts +131 -0
  1018. package/dist/gpu-graph-algorithms/gpu-graph-benchmark-data.d.ts.map +1 -0
  1019. package/dist/gpu-graph-algorithms/gpu-graph-benchmark-data.js +639 -0
  1020. package/dist/gpu-graph-algorithms/gpu-graph-benchmark-data.js.map +1 -0
  1021. package/dist/gpu-graph-algorithms/gpu-graph-benchmark.cjs +550 -0
  1022. package/dist/gpu-graph-algorithms/gpu-graph-benchmark.d.ts +12 -0
  1023. package/dist/gpu-graph-algorithms/gpu-graph-benchmark.d.ts.map +1 -0
  1024. package/dist/gpu-graph-algorithms/gpu-graph-benchmark.js +585 -0
  1025. package/dist/gpu-graph-algorithms/gpu-graph-benchmark.js.map +1 -0
  1026. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.cjs +289 -0
  1027. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.d.ts +8 -0
  1028. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.d.ts.map +1 -0
  1029. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.js +300 -0
  1030. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.js.map +1 -0
  1031. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search.cjs +169 -0
  1032. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search.d.ts +63 -0
  1033. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search.d.ts.map +1 -0
  1034. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search.js +183 -0
  1035. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search.js.map +1 -0
  1036. package/dist/gpu-graph-algorithms/gpu-graph-connected-components-internals.cjs +276 -0
  1037. package/dist/gpu-graph-algorithms/gpu-graph-connected-components-internals.d.ts +8 -0
  1038. package/dist/gpu-graph-algorithms/gpu-graph-connected-components-internals.d.ts.map +1 -0
  1039. package/dist/gpu-graph-algorithms/gpu-graph-connected-components-internals.js +271 -0
  1040. package/dist/gpu-graph-algorithms/gpu-graph-connected-components-internals.js.map +1 -0
  1041. package/dist/gpu-graph-algorithms/gpu-graph-connected-components.cjs +117 -0
  1042. package/dist/gpu-graph-algorithms/gpu-graph-connected-components.d.ts +41 -0
  1043. package/dist/gpu-graph-algorithms/gpu-graph-connected-components.d.ts.map +1 -0
  1044. package/dist/gpu-graph-algorithms/gpu-graph-connected-components.js +124 -0
  1045. package/dist/gpu-graph-algorithms/gpu-graph-connected-components.js.map +1 -0
  1046. package/dist/gpu-graph-algorithms/gpu-graph-core-number-internals.cjs +415 -0
  1047. package/dist/gpu-graph-algorithms/gpu-graph-core-number-internals.d.ts +8 -0
  1048. package/dist/gpu-graph-algorithms/gpu-graph-core-number-internals.d.ts.map +1 -0
  1049. package/dist/gpu-graph-algorithms/gpu-graph-core-number-internals.js +412 -0
  1050. package/dist/gpu-graph-algorithms/gpu-graph-core-number-internals.js.map +1 -0
  1051. package/dist/gpu-graph-algorithms/gpu-graph-core-number.cjs +124 -0
  1052. package/dist/gpu-graph-algorithms/gpu-graph-core-number.d.ts +49 -0
  1053. package/dist/gpu-graph-algorithms/gpu-graph-core-number.d.ts.map +1 -0
  1054. package/dist/gpu-graph-algorithms/gpu-graph-core-number.js +136 -0
  1055. package/dist/gpu-graph-algorithms/gpu-graph-core-number.js.map +1 -0
  1056. package/dist/gpu-graph-algorithms/gpu-graph-degree-internals.cjs +102 -0
  1057. package/dist/gpu-graph-algorithms/gpu-graph-degree-internals.d.ts +8 -0
  1058. package/dist/gpu-graph-algorithms/gpu-graph-degree-internals.d.ts.map +1 -0
  1059. package/dist/gpu-graph-algorithms/gpu-graph-degree-internals.js +81 -0
  1060. package/dist/gpu-graph-algorithms/gpu-graph-degree-internals.js.map +1 -0
  1061. package/dist/gpu-graph-algorithms/gpu-graph-degree.cjs +100 -0
  1062. package/dist/gpu-graph-algorithms/gpu-graph-degree.d.ts +38 -0
  1063. package/dist/gpu-graph-algorithms/gpu-graph-degree.d.ts.map +1 -0
  1064. package/dist/gpu-graph-algorithms/gpu-graph-degree.js +104 -0
  1065. package/dist/gpu-graph-algorithms/gpu-graph-degree.js.map +1 -0
  1066. package/dist/gpu-graph-algorithms/gpu-graph-force-layout-internals.cjs +391 -0
  1067. package/dist/gpu-graph-algorithms/gpu-graph-force-layout-internals.d.ts +8 -0
  1068. package/dist/gpu-graph-algorithms/gpu-graph-force-layout-internals.d.ts.map +1 -0
  1069. package/dist/gpu-graph-algorithms/gpu-graph-force-layout-internals.js +396 -0
  1070. package/dist/gpu-graph-algorithms/gpu-graph-force-layout-internals.js.map +1 -0
  1071. package/dist/gpu-graph-algorithms/gpu-graph-force-layout.cjs +186 -0
  1072. package/dist/gpu-graph-algorithms/gpu-graph-force-layout.d.ts +80 -0
  1073. package/dist/gpu-graph-algorithms/gpu-graph-force-layout.d.ts.map +1 -0
  1074. package/dist/gpu-graph-algorithms/gpu-graph-force-layout.js +198 -0
  1075. package/dist/gpu-graph-algorithms/gpu-graph-force-layout.js.map +1 -0
  1076. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation-internals.cjs +344 -0
  1077. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation-internals.d.ts +8 -0
  1078. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation-internals.d.ts.map +1 -0
  1079. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation-internals.js +357 -0
  1080. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation-internals.js.map +1 -0
  1081. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation.cjs +120 -0
  1082. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation.d.ts +46 -0
  1083. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation.d.ts.map +1 -0
  1084. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation.js +132 -0
  1085. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation.js.map +1 -0
  1086. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.cjs +243 -0
  1087. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.d.ts +8 -0
  1088. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.d.ts.map +1 -0
  1089. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.js +244 -0
  1090. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.js.map +1 -0
  1091. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.cjs +111 -0
  1092. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.d.ts +47 -0
  1093. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.d.ts.map +1 -0
  1094. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.js +126 -0
  1095. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.js.map +1 -0
  1096. package/dist/gpu-graph-algorithms/gpu-graph-modularity-internals.cjs +387 -0
  1097. package/dist/gpu-graph-algorithms/gpu-graph-modularity-internals.d.ts +8 -0
  1098. package/dist/gpu-graph-algorithms/gpu-graph-modularity-internals.d.ts.map +1 -0
  1099. package/dist/gpu-graph-algorithms/gpu-graph-modularity-internals.js +387 -0
  1100. package/dist/gpu-graph-algorithms/gpu-graph-modularity-internals.js.map +1 -0
  1101. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.cjs +818 -0
  1102. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.d.ts +8 -0
  1103. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.d.ts.map +1 -0
  1104. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.js +824 -0
  1105. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.js.map +1 -0
  1106. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization.cjs +148 -0
  1107. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization.d.ts +72 -0
  1108. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization.d.ts.map +1 -0
  1109. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization.js +171 -0
  1110. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization.js.map +1 -0
  1111. package/dist/gpu-graph-algorithms/gpu-graph-modularity.cjs +109 -0
  1112. package/dist/gpu-graph-algorithms/gpu-graph-modularity.d.ts +55 -0
  1113. package/dist/gpu-graph-algorithms/gpu-graph-modularity.d.ts.map +1 -0
  1114. package/dist/gpu-graph-algorithms/gpu-graph-modularity.js +124 -0
  1115. package/dist/gpu-graph-algorithms/gpu-graph-modularity.js.map +1 -0
  1116. package/dist/gpu-graph-algorithms/gpu-graph-page-rank-internals.cjs +437 -0
  1117. package/dist/gpu-graph-algorithms/gpu-graph-page-rank-internals.d.ts +8 -0
  1118. package/dist/gpu-graph-algorithms/gpu-graph-page-rank-internals.d.ts.map +1 -0
  1119. package/dist/gpu-graph-algorithms/gpu-graph-page-rank-internals.js +457 -0
  1120. package/dist/gpu-graph-algorithms/gpu-graph-page-rank-internals.js.map +1 -0
  1121. package/dist/gpu-graph-algorithms/gpu-graph-page-rank.cjs +127 -0
  1122. package/dist/gpu-graph-algorithms/gpu-graph-page-rank.d.ts +45 -0
  1123. package/dist/gpu-graph-algorithms/gpu-graph-page-rank.d.ts.map +1 -0
  1124. package/dist/gpu-graph-algorithms/gpu-graph-page-rank.js +134 -0
  1125. package/dist/gpu-graph-algorithms/gpu-graph-page-rank.js.map +1 -0
  1126. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.cjs +542 -0
  1127. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.d.ts +8 -0
  1128. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.d.ts.map +1 -0
  1129. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.js +545 -0
  1130. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.js.map +1 -0
  1131. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.cjs +141 -0
  1132. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.d.ts +59 -0
  1133. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.d.ts.map +1 -0
  1134. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.js +155 -0
  1135. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.js.map +1 -0
  1136. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.cjs +593 -0
  1137. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.d.ts +8 -0
  1138. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.d.ts.map +1 -0
  1139. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js +594 -0
  1140. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js.map +1 -0
  1141. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout.cjs +161 -0
  1142. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout.d.ts +71 -0
  1143. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout.d.ts.map +1 -0
  1144. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout.js +179 -0
  1145. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout.js.map +1 -0
  1146. package/dist/gpu-graph-algorithms/gpu-graph-topology-internals.cjs +512 -0
  1147. package/dist/gpu-graph-algorithms/gpu-graph-topology-internals.d.ts +8 -0
  1148. package/dist/gpu-graph-algorithms/gpu-graph-topology-internals.d.ts.map +1 -0
  1149. package/dist/gpu-graph-algorithms/gpu-graph-topology-internals.js +516 -0
  1150. package/dist/gpu-graph-algorithms/gpu-graph-topology-internals.js.map +1 -0
  1151. package/dist/gpu-graph-algorithms/gpu-graph-topology.cjs +149 -0
  1152. package/dist/gpu-graph-algorithms/gpu-graph-topology.d.ts +55 -0
  1153. package/dist/gpu-graph-algorithms/gpu-graph-topology.d.ts.map +1 -0
  1154. package/dist/gpu-graph-algorithms/gpu-graph-topology.js +160 -0
  1155. package/dist/gpu-graph-algorithms/gpu-graph-topology.js.map +1 -0
  1156. package/dist/gpu-graph-algorithms/gpu-graph.cjs +128 -0
  1157. package/dist/gpu-graph-algorithms/gpu-graph.d.ts +69 -0
  1158. package/dist/gpu-graph-algorithms/gpu-graph.d.ts.map +1 -0
  1159. package/dist/gpu-graph-algorithms/gpu-graph.js +132 -0
  1160. package/dist/gpu-graph-algorithms/gpu-graph.js.map +1 -0
  1161. package/dist/gpu-graph-algorithms/index.cjs +66 -0
  1162. package/dist/gpu-graph-algorithms/index.cjs.map +6 -0
  1163. package/dist/gpu-graph-algorithms/index.d.ts +29 -0
  1164. package/dist/gpu-graph-algorithms/index.d.ts.map +1 -0
  1165. package/dist/gpu-graph-algorithms/index.js +19 -0
  1166. package/dist/gpu-graph-algorithms/index.js.map +1 -0
  1167. package/dist/gpu-h3/gpu-h3-cell-projection.cjs +32 -0
  1168. package/dist/gpu-h3/gpu-h3-cell-projection.d.ts +14 -0
  1169. package/dist/gpu-h3/gpu-h3-cell-projection.d.ts.map +1 -0
  1170. package/dist/gpu-h3/gpu-h3-cell-projection.js +17 -0
  1171. package/dist/gpu-h3/gpu-h3-cell-projection.js.map +1 -0
  1172. package/dist/gpu-h3/index.cjs +27 -0
  1173. package/dist/gpu-h3/index.cjs.map +6 -0
  1174. package/dist/gpu-h3/index.d.ts +4 -0
  1175. package/dist/gpu-h3/index.d.ts.map +1 -0
  1176. package/dist/gpu-h3/index.js +5 -0
  1177. package/dist/gpu-h3/index.js.map +1 -0
  1178. package/dist/gpu-parse/compression/gpu-lz4-raw-decompressor.cjs +59 -0
  1179. package/dist/gpu-parse/compression/gpu-lz4-raw-decompressor.d.ts +23 -0
  1180. package/dist/gpu-parse/compression/gpu-lz4-raw-decompressor.d.ts.map +1 -0
  1181. package/dist/gpu-parse/compression/gpu-lz4-raw-decompressor.js +34 -0
  1182. package/dist/gpu-parse/compression/gpu-lz4-raw-decompressor.js.map +1 -0
  1183. package/dist/gpu-parse/compression/gpu-snappy-decompressor.cjs +50 -0
  1184. package/dist/gpu-parse/compression/gpu-snappy-decompressor.d.ts +19 -0
  1185. package/dist/gpu-parse/compression/gpu-snappy-decompressor.d.ts.map +1 -0
  1186. package/dist/gpu-parse/compression/gpu-snappy-decompressor.js +27 -0
  1187. package/dist/gpu-parse/compression/gpu-snappy-decompressor.js.map +1 -0
  1188. package/dist/gpu-parse/compression/lz4-raw-plan.cjs +100 -0
  1189. package/dist/gpu-parse/compression/lz4-raw-plan.d.ts +16 -0
  1190. package/dist/gpu-parse/compression/lz4-raw-plan.d.ts.map +1 -0
  1191. package/dist/gpu-parse/compression/lz4-raw-plan.js +77 -0
  1192. package/dist/gpu-parse/compression/lz4-raw-plan.js.map +1 -0
  1193. package/dist/gpu-parse/compression/snappy-plan.cjs +142 -0
  1194. package/dist/gpu-parse/compression/snappy-plan.d.ts +16 -0
  1195. package/dist/gpu-parse/compression/snappy-plan.d.ts.map +1 -0
  1196. package/dist/gpu-parse/compression/snappy-plan.js +119 -0
  1197. package/dist/gpu-parse/compression/snappy-plan.js.map +1 -0
  1198. package/dist/gpu-parse/index.cjs +188 -0
  1199. package/dist/gpu-parse/index.cjs.map +6 -0
  1200. package/dist/gpu-parse/index.d.ts +33 -0
  1201. package/dist/gpu-parse/index.d.ts.map +1 -0
  1202. package/dist/gpu-parse/index.js +36 -0
  1203. package/dist/gpu-parse/index.js.map +1 -0
  1204. package/dist/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.cjs +161 -0
  1205. package/dist/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.d.ts +22 -0
  1206. package/dist/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.d.ts.map +1 -0
  1207. package/dist/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.js +139 -0
  1208. package/dist/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.js.map +1 -0
  1209. package/dist/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.cjs +69 -0
  1210. package/dist/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.d.ts +21 -0
  1211. package/dist/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.d.ts.map +1 -0
  1212. package/dist/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.js +49 -0
  1213. package/dist/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.js.map +1 -0
  1214. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.cjs +204 -0
  1215. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.d.ts +53 -0
  1216. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.d.ts.map +1 -0
  1217. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.js +195 -0
  1218. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.js.map +1 -0
  1219. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.cjs +190 -0
  1220. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.d.ts +47 -0
  1221. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.d.ts.map +1 -0
  1222. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.js +174 -0
  1223. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.js.map +1 -0
  1224. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.cjs +55 -0
  1225. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.d.ts +19 -0
  1226. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.d.ts.map +1 -0
  1227. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.js +34 -0
  1228. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.js.map +1 -0
  1229. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.cjs +54 -0
  1230. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.d.ts +21 -0
  1231. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.d.ts.map +1 -0
  1232. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.js +33 -0
  1233. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.js.map +1 -0
  1234. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.cjs +225 -0
  1235. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.d.ts +23 -0
  1236. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.d.ts.map +1 -0
  1237. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.js +210 -0
  1238. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.js.map +1 -0
  1239. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.cjs +227 -0
  1240. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.d.ts +27 -0
  1241. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.d.ts.map +1 -0
  1242. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.js +218 -0
  1243. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.js.map +1 -0
  1244. package/dist/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.cjs +356 -0
  1245. package/dist/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.d.ts +32 -0
  1246. package/dist/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.d.ts.map +1 -0
  1247. package/dist/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.js +337 -0
  1248. package/dist/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.js.map +1 -0
  1249. package/dist/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.cjs +54 -0
  1250. package/dist/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.d.ts +20 -0
  1251. package/dist/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.d.ts.map +1 -0
  1252. package/dist/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.js +33 -0
  1253. package/dist/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.js.map +1 -0
  1254. package/dist/gpu-parse/parquet/gpu-parquet-dictionary-decoder.cjs +203 -0
  1255. package/dist/gpu-parse/parquet/gpu-parquet-dictionary-decoder.d.ts +33 -0
  1256. package/dist/gpu-parse/parquet/gpu-parquet-dictionary-decoder.d.ts.map +1 -0
  1257. package/dist/gpu-parse/parquet/gpu-parquet-dictionary-decoder.js +183 -0
  1258. package/dist/gpu-parse/parquet/gpu-parquet-dictionary-decoder.js.map +1 -0
  1259. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.cjs +276 -0
  1260. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.d.ts +147 -0
  1261. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.d.ts.map +1 -0
  1262. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.js +291 -0
  1263. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.js.map +1 -0
  1264. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch.cjs +472 -0
  1265. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch.d.ts +51 -0
  1266. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch.d.ts.map +1 -0
  1267. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch.js +479 -0
  1268. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch.js.map +1 -0
  1269. package/dist/gpu-parse/parquet/gpu-parquet-level-layout.cjs +191 -0
  1270. package/dist/gpu-parse/parquet/gpu-parquet-level-layout.d.ts +47 -0
  1271. package/dist/gpu-parse/parquet/gpu-parquet-level-layout.d.ts.map +1 -0
  1272. package/dist/gpu-parse/parquet/gpu-parquet-level-layout.js +179 -0
  1273. package/dist/gpu-parse/parquet/gpu-parquet-level-layout.js.map +1 -0
  1274. package/dist/gpu-parse/parquet/gpu-parquet-nested-column-layout.cjs +279 -0
  1275. package/dist/gpu-parse/parquet/gpu-parquet-nested-column-layout.d.ts +68 -0
  1276. package/dist/gpu-parse/parquet/gpu-parquet-nested-column-layout.d.ts.map +1 -0
  1277. package/dist/gpu-parse/parquet/gpu-parquet-nested-column-layout.js +278 -0
  1278. package/dist/gpu-parse/parquet/gpu-parquet-nested-column-layout.js.map +1 -0
  1279. package/dist/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.cjs +146 -0
  1280. package/dist/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.d.ts +19 -0
  1281. package/dist/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.d.ts.map +1 -0
  1282. package/dist/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.js +125 -0
  1283. package/dist/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.js.map +1 -0
  1284. package/dist/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.cjs +47 -0
  1285. package/dist/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.d.ts +19 -0
  1286. package/dist/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.d.ts.map +1 -0
  1287. package/dist/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.js +26 -0
  1288. package/dist/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.js.map +1 -0
  1289. package/dist/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.cjs +238 -0
  1290. package/dist/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.d.ts +34 -0
  1291. package/dist/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.d.ts.map +1 -0
  1292. package/dist/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.js +220 -0
  1293. package/dist/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.js.map +1 -0
  1294. package/dist/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.cjs +59 -0
  1295. package/dist/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.d.ts +22 -0
  1296. package/dist/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.d.ts.map +1 -0
  1297. package/dist/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.js +38 -0
  1298. package/dist/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.js.map +1 -0
  1299. package/dist/gpu-parse/parquet/parquet-column-decode-plan.cjs +76 -0
  1300. package/dist/gpu-parse/parquet/parquet-column-decode-plan.d.ts +34 -0
  1301. package/dist/gpu-parse/parquet/parquet-column-decode-plan.d.ts.map +1 -0
  1302. package/dist/gpu-parse/parquet/parquet-column-decode-plan.js +59 -0
  1303. package/dist/gpu-parse/parquet/parquet-column-decode-plan.js.map +1 -0
  1304. package/dist/gpu-parse/parquet/parquet-delta-binary-packed-int64.cjs +137 -0
  1305. package/dist/gpu-parse/parquet/parquet-delta-binary-packed-int64.d.ts +16 -0
  1306. package/dist/gpu-parse/parquet/parquet-delta-binary-packed-int64.d.ts.map +1 -0
  1307. package/dist/gpu-parse/parquet/parquet-delta-binary-packed-int64.js +114 -0
  1308. package/dist/gpu-parse/parquet/parquet-delta-binary-packed-int64.js.map +1 -0
  1309. package/dist/gpu-parse/parquet/parquet-delta-binary-packed.cjs +128 -0
  1310. package/dist/gpu-parse/parquet/parquet-delta-binary-packed.d.ts +15 -0
  1311. package/dist/gpu-parse/parquet/parquet-delta-binary-packed.d.ts.map +1 -0
  1312. package/dist/gpu-parse/parquet/parquet-delta-binary-packed.js +105 -0
  1313. package/dist/gpu-parse/parquet/parquet-delta-binary-packed.js.map +1 -0
  1314. package/dist/gpu-parse/parquet/parquet-delta-byte-array.cjs +56 -0
  1315. package/dist/gpu-parse/parquet/parquet-delta-byte-array.d.ts +11 -0
  1316. package/dist/gpu-parse/parquet/parquet-delta-byte-array.d.ts.map +1 -0
  1317. package/dist/gpu-parse/parquet/parquet-delta-byte-array.js +35 -0
  1318. package/dist/gpu-parse/parquet/parquet-delta-byte-array.js.map +1 -0
  1319. package/dist/gpu-parse/parquet/parquet-delta-length-byte-array.cjs +35 -0
  1320. package/dist/gpu-parse/parquet/parquet-delta-length-byte-array.d.ts +10 -0
  1321. package/dist/gpu-parse/parquet/parquet-delta-length-byte-array.d.ts.map +1 -0
  1322. package/dist/gpu-parse/parquet/parquet-delta-length-byte-array.js +14 -0
  1323. package/dist/gpu-parse/parquet/parquet-delta-length-byte-array.js.map +1 -0
  1324. package/dist/gpu-parse/parquet/parquet-encoded-page-batch.cjs +690 -0
  1325. package/dist/gpu-parse/parquet/parquet-encoded-page-batch.d.ts +248 -0
  1326. package/dist/gpu-parse/parquet/parquet-encoded-page-batch.d.ts.map +1 -0
  1327. package/dist/gpu-parse/parquet/parquet-encoded-page-batch.js +690 -0
  1328. package/dist/gpu-parse/parquet/parquet-encoded-page-batch.js.map +1 -0
  1329. package/dist/gpu-parse/parquet/parquet-plain-byte-array.cjs +65 -0
  1330. package/dist/gpu-parse/parquet/parquet-plain-byte-array.d.ts +12 -0
  1331. package/dist/gpu-parse/parquet/parquet-plain-byte-array.d.ts.map +1 -0
  1332. package/dist/gpu-parse/parquet/parquet-plain-byte-array.js +48 -0
  1333. package/dist/gpu-parse/parquet/parquet-plain-byte-array.js.map +1 -0
  1334. package/dist/gpu-parse/parquet/parquet-rle-bit-packed.cjs +87 -0
  1335. package/dist/gpu-parse/parquet/parquet-rle-bit-packed.d.ts +18 -0
  1336. package/dist/gpu-parse/parquet/parquet-rle-bit-packed.d.ts.map +1 -0
  1337. package/dist/gpu-parse/parquet/parquet-rle-bit-packed.js +71 -0
  1338. package/dist/gpu-parse/parquet/parquet-rle-bit-packed.js.map +1 -0
  1339. package/dist/gpu-parse/parquet/parquet-rle-framing.cjs +81 -0
  1340. package/dist/gpu-parse/parquet/parquet-rle-framing.d.ts +20 -0
  1341. package/dist/gpu-parse/parquet/parquet-rle-framing.d.ts.map +1 -0
  1342. package/dist/gpu-parse/parquet/parquet-rle-framing.js +62 -0
  1343. package/dist/gpu-parse/parquet/parquet-rle-framing.js.map +1 -0
  1344. package/dist/gpu-physics/gpu-physics-batch.cjs +287 -0
  1345. package/dist/gpu-physics/gpu-physics-batch.d.ts +89 -0
  1346. package/dist/gpu-physics/gpu-physics-batch.d.ts.map +1 -0
  1347. package/dist/gpu-physics/gpu-physics-batch.js +279 -0
  1348. package/dist/gpu-physics/gpu-physics-batch.js.map +1 -0
  1349. package/dist/gpu-physics/gpu-physics-ensemble.cjs +164 -0
  1350. package/dist/gpu-physics/gpu-physics-ensemble.d.ts +72 -0
  1351. package/dist/gpu-physics/gpu-physics-ensemble.d.ts.map +1 -0
  1352. package/dist/gpu-physics/gpu-physics-ensemble.js +164 -0
  1353. package/dist/gpu-physics/gpu-physics-ensemble.js.map +1 -0
  1354. package/dist/gpu-physics/gpu-rigid-body-world.cjs +1953 -0
  1355. package/dist/gpu-physics/gpu-rigid-body-world.d.ts +305 -0
  1356. package/dist/gpu-physics/gpu-rigid-body-world.d.ts.map +1 -0
  1357. package/dist/gpu-physics/gpu-rigid-body-world.js +2311 -0
  1358. package/dist/gpu-physics/gpu-rigid-body-world.js.map +1 -0
  1359. package/dist/gpu-physics/gpu-sphere-world.cjs +809 -0
  1360. package/dist/gpu-physics/gpu-sphere-world.d.ts +176 -0
  1361. package/dist/gpu-physics/gpu-sphere-world.d.ts.map +1 -0
  1362. package/dist/gpu-physics/gpu-sphere-world.js +845 -0
  1363. package/dist/gpu-physics/gpu-sphere-world.js.map +1 -0
  1364. package/dist/gpu-physics/index.cjs +93 -0
  1365. package/dist/gpu-physics/index.cjs.map +6 -0
  1366. package/dist/gpu-physics/index.d.ts +28 -0
  1367. package/dist/gpu-physics/index.d.ts.map +1 -0
  1368. package/dist/gpu-physics/index.js +21 -0
  1369. package/dist/gpu-physics/index.js.map +1 -0
  1370. package/dist/gpu-physics/joint-types.cjs +15 -0
  1371. package/dist/gpu-physics/joint-types.d.ts +19 -0
  1372. package/dist/gpu-physics/joint-types.d.ts.map +1 -0
  1373. package/dist/gpu-physics/joint-types.js +5 -0
  1374. package/dist/gpu-physics/joint-types.js.map +1 -0
  1375. package/dist/gpu-physics/rigid-body-bounds-shaders.cjs +79 -0
  1376. package/dist/gpu-physics/rigid-body-bounds-shaders.d.ts +3 -0
  1377. package/dist/gpu-physics/rigid-body-bounds-shaders.d.ts.map +1 -0
  1378. package/dist/gpu-physics/rigid-body-bounds-shaders.js +49 -0
  1379. package/dist/gpu-physics/rigid-body-bounds-shaders.js.map +1 -0
  1380. package/dist/gpu-physics/rigid-body-broad-phase.cjs +315 -0
  1381. package/dist/gpu-physics/rigid-body-broad-phase.d.ts +45 -0
  1382. package/dist/gpu-physics/rigid-body-broad-phase.d.ts.map +1 -0
  1383. package/dist/gpu-physics/rigid-body-broad-phase.js +333 -0
  1384. package/dist/gpu-physics/rigid-body-broad-phase.js.map +1 -0
  1385. package/dist/gpu-physics/rigid-body-cache-shaders.cjs +118 -0
  1386. package/dist/gpu-physics/rigid-body-cache-shaders.d.ts +7 -0
  1387. package/dist/gpu-physics/rigid-body-cache-shaders.d.ts.map +1 -0
  1388. package/dist/gpu-physics/rigid-body-cache-shaders.js +94 -0
  1389. package/dist/gpu-physics/rigid-body-cache-shaders.js.map +1 -0
  1390. package/dist/gpu-physics/rigid-body-capacity.cjs +102 -0
  1391. package/dist/gpu-physics/rigid-body-capacity.d.ts +27 -0
  1392. package/dist/gpu-physics/rigid-body-capacity.d.ts.map +1 -0
  1393. package/dist/gpu-physics/rigid-body-capacity.js +93 -0
  1394. package/dist/gpu-physics/rigid-body-capacity.js.map +1 -0
  1395. package/dist/gpu-physics/rigid-body-contact-features.cjs +83 -0
  1396. package/dist/gpu-physics/rigid-body-contact-features.d.ts +7 -0
  1397. package/dist/gpu-physics/rigid-body-contact-features.d.ts.map +1 -0
  1398. package/dist/gpu-physics/rigid-body-contact-features.js +65 -0
  1399. package/dist/gpu-physics/rigid-body-contact-features.js.map +1 -0
  1400. package/dist/gpu-physics/rigid-body-continuous.cjs +314 -0
  1401. package/dist/gpu-physics/rigid-body-continuous.d.ts +27 -0
  1402. package/dist/gpu-physics/rigid-body-continuous.d.ts.map +1 -0
  1403. package/dist/gpu-physics/rigid-body-continuous.js +311 -0
  1404. package/dist/gpu-physics/rigid-body-continuous.js.map +1 -0
  1405. package/dist/gpu-physics/rigid-body-convex-continuous-shader.cjs +550 -0
  1406. package/dist/gpu-physics/rigid-body-convex-continuous-shader.d.ts +3 -0
  1407. package/dist/gpu-physics/rigid-body-convex-continuous-shader.d.ts.map +1 -0
  1408. package/dist/gpu-physics/rigid-body-convex-continuous-shader.js +528 -0
  1409. package/dist/gpu-physics/rigid-body-convex-continuous-shader.js.map +1 -0
  1410. package/dist/gpu-physics/rigid-body-convex-shaders.cjs +242 -0
  1411. package/dist/gpu-physics/rigid-body-convex-shaders.d.ts +2 -0
  1412. package/dist/gpu-physics/rigid-body-convex-shaders.d.ts.map +1 -0
  1413. package/dist/gpu-physics/rigid-body-convex-shaders.js +217 -0
  1414. package/dist/gpu-physics/rigid-body-convex-shaders.js.map +1 -0
  1415. package/dist/gpu-physics/rigid-body-diagnostics.cjs +123 -0
  1416. package/dist/gpu-physics/rigid-body-diagnostics.d.ts +50 -0
  1417. package/dist/gpu-physics/rigid-body-diagnostics.d.ts.map +1 -0
  1418. package/dist/gpu-physics/rigid-body-diagnostics.js +98 -0
  1419. package/dist/gpu-physics/rigid-body-diagnostics.js.map +1 -0
  1420. package/dist/gpu-physics/rigid-body-ensemble-layout.cjs +55 -0
  1421. package/dist/gpu-physics/rigid-body-ensemble-layout.d.ts +17 -0
  1422. package/dist/gpu-physics/rigid-body-ensemble-layout.d.ts.map +1 -0
  1423. package/dist/gpu-physics/rigid-body-ensemble-layout.js +34 -0
  1424. package/dist/gpu-physics/rigid-body-ensemble-layout.js.map +1 -0
  1425. package/dist/gpu-physics/rigid-body-ensemble-reset.cjs +158 -0
  1426. package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts +8 -0
  1427. package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts.map +1 -0
  1428. package/dist/gpu-physics/rigid-body-ensemble-reset.js +135 -0
  1429. package/dist/gpu-physics/rigid-body-ensemble-reset.js.map +1 -0
  1430. package/dist/gpu-physics/rigid-body-ensemble-shaders.cjs +145 -0
  1431. package/dist/gpu-physics/rigid-body-ensemble-shaders.d.ts +20 -0
  1432. package/dist/gpu-physics/rigid-body-ensemble-shaders.d.ts.map +1 -0
  1433. package/dist/gpu-physics/rigid-body-ensemble-shaders.js +121 -0
  1434. package/dist/gpu-physics/rigid-body-ensemble-shaders.js.map +1 -0
  1435. package/dist/gpu-physics/rigid-body-ensemble-transaction.cjs +175 -0
  1436. package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts +19 -0
  1437. package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts.map +1 -0
  1438. package/dist/gpu-physics/rigid-body-ensemble-transaction.js +156 -0
  1439. package/dist/gpu-physics/rigid-body-ensemble-transaction.js.map +1 -0
  1440. package/dist/gpu-physics/rigid-body-events.cjs +93 -0
  1441. package/dist/gpu-physics/rigid-body-events.d.ts +22 -0
  1442. package/dist/gpu-physics/rigid-body-events.d.ts.map +1 -0
  1443. package/dist/gpu-physics/rigid-body-events.js +67 -0
  1444. package/dist/gpu-physics/rigid-body-events.js.map +1 -0
  1445. package/dist/gpu-physics/rigid-body-general-joints.cjs +142 -0
  1446. package/dist/gpu-physics/rigid-body-general-joints.d.ts +8 -0
  1447. package/dist/gpu-physics/rigid-body-general-joints.d.ts.map +1 -0
  1448. package/dist/gpu-physics/rigid-body-general-joints.js +120 -0
  1449. package/dist/gpu-physics/rigid-body-general-joints.js.map +1 -0
  1450. package/dist/gpu-physics/rigid-body-geometry.cjs +87 -0
  1451. package/dist/gpu-physics/rigid-body-geometry.d.ts +11 -0
  1452. package/dist/gpu-physics/rigid-body-geometry.d.ts.map +1 -0
  1453. package/dist/gpu-physics/rigid-body-geometry.js +68 -0
  1454. package/dist/gpu-physics/rigid-body-geometry.js.map +1 -0
  1455. package/dist/gpu-physics/rigid-body-joints.cjs +205 -0
  1456. package/dist/gpu-physics/rigid-body-joints.d.ts +50 -0
  1457. package/dist/gpu-physics/rigid-body-joints.d.ts.map +1 -0
  1458. package/dist/gpu-physics/rigid-body-joints.js +190 -0
  1459. package/dist/gpu-physics/rigid-body-joints.js.map +1 -0
  1460. package/dist/gpu-physics/rigid-body-journal.cjs +101 -0
  1461. package/dist/gpu-physics/rigid-body-journal.d.ts +62 -0
  1462. package/dist/gpu-physics/rigid-body-journal.d.ts.map +1 -0
  1463. package/dist/gpu-physics/rigid-body-journal.js +78 -0
  1464. package/dist/gpu-physics/rigid-body-journal.js.map +1 -0
  1465. package/dist/gpu-physics/rigid-body-mesh-query-shaders.cjs +122 -0
  1466. package/dist/gpu-physics/rigid-body-mesh-query-shaders.d.ts +3 -0
  1467. package/dist/gpu-physics/rigid-body-mesh-query-shaders.d.ts.map +1 -0
  1468. package/dist/gpu-physics/rigid-body-mesh-query-shaders.js +98 -0
  1469. package/dist/gpu-physics/rigid-body-mesh-query-shaders.js.map +1 -0
  1470. package/dist/gpu-physics/rigid-body-mesh.cjs +253 -0
  1471. package/dist/gpu-physics/rigid-body-mesh.d.ts +19 -0
  1472. package/dist/gpu-physics/rigid-body-mesh.d.ts.map +1 -0
  1473. package/dist/gpu-physics/rigid-body-mesh.js +254 -0
  1474. package/dist/gpu-physics/rigid-body-mesh.js.map +1 -0
  1475. package/dist/gpu-physics/rigid-body-orientation.cjs +53 -0
  1476. package/dist/gpu-physics/rigid-body-orientation.d.ts +3 -0
  1477. package/dist/gpu-physics/rigid-body-orientation.d.ts.map +1 -0
  1478. package/dist/gpu-physics/rigid-body-orientation.js +34 -0
  1479. package/dist/gpu-physics/rigid-body-orientation.js.map +1 -0
  1480. package/dist/gpu-physics/rigid-body-origin.cjs +85 -0
  1481. package/dist/gpu-physics/rigid-body-origin.d.ts +4 -0
  1482. package/dist/gpu-physics/rigid-body-origin.d.ts.map +1 -0
  1483. package/dist/gpu-physics/rigid-body-origin.js +63 -0
  1484. package/dist/gpu-physics/rigid-body-origin.js.map +1 -0
  1485. package/dist/gpu-physics/rigid-body-parallel-shaders.cjs +245 -0
  1486. package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts +3 -0
  1487. package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts.map +1 -0
  1488. package/dist/gpu-physics/rigid-body-parallel-shaders.js +223 -0
  1489. package/dist/gpu-physics/rigid-body-parallel-shaders.js.map +1 -0
  1490. package/dist/gpu-physics/rigid-body-properties.cjs +106 -0
  1491. package/dist/gpu-physics/rigid-body-properties.d.ts +84 -0
  1492. package/dist/gpu-physics/rigid-body-properties.d.ts.map +1 -0
  1493. package/dist/gpu-physics/rigid-body-properties.js +89 -0
  1494. package/dist/gpu-physics/rigid-body-properties.js.map +1 -0
  1495. package/dist/gpu-physics/rigid-body-publication.cjs +117 -0
  1496. package/dist/gpu-physics/rigid-body-publication.d.ts +21 -0
  1497. package/dist/gpu-physics/rigid-body-publication.d.ts.map +1 -0
  1498. package/dist/gpu-physics/rigid-body-publication.js +98 -0
  1499. package/dist/gpu-physics/rigid-body-publication.js.map +1 -0
  1500. package/dist/gpu-physics/rigid-body-queries.cjs +84 -0
  1501. package/dist/gpu-physics/rigid-body-queries.d.ts +34 -0
  1502. package/dist/gpu-physics/rigid-body-queries.d.ts.map +1 -0
  1503. package/dist/gpu-physics/rigid-body-queries.js +59 -0
  1504. package/dist/gpu-physics/rigid-body-queries.js.map +1 -0
  1505. package/dist/gpu-physics/rigid-body-query-geometry.cjs +285 -0
  1506. package/dist/gpu-physics/rigid-body-query-geometry.d.ts +3 -0
  1507. package/dist/gpu-physics/rigid-body-query-geometry.d.ts.map +1 -0
  1508. package/dist/gpu-physics/rigid-body-query-geometry.js +261 -0
  1509. package/dist/gpu-physics/rigid-body-query-geometry.js.map +1 -0
  1510. package/dist/gpu-physics/rigid-body-recovery.cjs +207 -0
  1511. package/dist/gpu-physics/rigid-body-recovery.d.ts +55 -0
  1512. package/dist/gpu-physics/rigid-body-recovery.d.ts.map +1 -0
  1513. package/dist/gpu-physics/rigid-body-recovery.js +211 -0
  1514. package/dist/gpu-physics/rigid-body-recovery.js.map +1 -0
  1515. package/dist/gpu-physics/rigid-body-shaders.cjs +469 -0
  1516. package/dist/gpu-physics/rigid-body-shaders.d.ts +3 -0
  1517. package/dist/gpu-physics/rigid-body-shaders.d.ts.map +1 -0
  1518. package/dist/gpu-physics/rigid-body-shaders.js +451 -0
  1519. package/dist/gpu-physics/rigid-body-shaders.js.map +1 -0
  1520. package/dist/gpu-physics/rigid-body-shape-properties.cjs +92 -0
  1521. package/dist/gpu-physics/rigid-body-shape-properties.d.ts +9 -0
  1522. package/dist/gpu-physics/rigid-body-shape-properties.d.ts.map +1 -0
  1523. package/dist/gpu-physics/rigid-body-shape-properties.js +82 -0
  1524. package/dist/gpu-physics/rigid-body-shape-properties.js.map +1 -0
  1525. package/dist/gpu-physics/rigid-body-support-shaders.cjs +66 -0
  1526. package/dist/gpu-physics/rigid-body-support-shaders.d.ts +3 -0
  1527. package/dist/gpu-physics/rigid-body-support-shaders.d.ts.map +1 -0
  1528. package/dist/gpu-physics/rigid-body-support-shaders.js +42 -0
  1529. package/dist/gpu-physics/rigid-body-support-shaders.js.map +1 -0
  1530. package/dist/gpu-physics/rigid-body-transaction.cjs +187 -0
  1531. package/dist/gpu-physics/rigid-body-transaction.d.ts +19 -0
  1532. package/dist/gpu-physics/rigid-body-transaction.d.ts.map +1 -0
  1533. package/dist/gpu-physics/rigid-body-transaction.js +162 -0
  1534. package/dist/gpu-physics/rigid-body-transaction.js.map +1 -0
  1535. package/dist/gpu-physics/rigid-body-triggers.cjs +239 -0
  1536. package/dist/gpu-physics/rigid-body-triggers.d.ts +58 -0
  1537. package/dist/gpu-physics/rigid-body-triggers.d.ts.map +1 -0
  1538. package/dist/gpu-physics/rigid-body-triggers.js +229 -0
  1539. package/dist/gpu-physics/rigid-body-triggers.js.map +1 -0
  1540. package/dist/gpu-physics/scale-shape.cjs +65 -0
  1541. package/dist/gpu-physics/scale-shape.d.ts +4 -0
  1542. package/dist/gpu-physics/scale-shape.d.ts.map +1 -0
  1543. package/dist/gpu-physics/scale-shape.js +44 -0
  1544. package/dist/gpu-physics/scale-shape.js.map +1 -0
  1545. package/dist/gpu-physics/sphere-calibration.cjs +109 -0
  1546. package/dist/gpu-physics/sphere-calibration.d.ts +60 -0
  1547. package/dist/gpu-physics/sphere-calibration.d.ts.map +1 -0
  1548. package/dist/gpu-physics/sphere-calibration.js +98 -0
  1549. package/dist/gpu-physics/sphere-calibration.js.map +1 -0
  1550. package/dist/gpu-physics/sphere-events.cjs +57 -0
  1551. package/dist/gpu-physics/sphere-events.d.ts +29 -0
  1552. package/dist/gpu-physics/sphere-events.d.ts.map +1 -0
  1553. package/dist/gpu-physics/sphere-events.js +36 -0
  1554. package/dist/gpu-physics/sphere-events.js.map +1 -0
  1555. package/dist/gpu-physics/sphere-persistent-contacts.cjs +249 -0
  1556. package/dist/gpu-physics/sphere-persistent-contacts.d.ts +9 -0
  1557. package/dist/gpu-physics/sphere-persistent-contacts.d.ts.map +1 -0
  1558. package/dist/gpu-physics/sphere-persistent-contacts.js +211 -0
  1559. package/dist/gpu-physics/sphere-persistent-contacts.js.map +1 -0
  1560. package/dist/gpu-physics/sphere-shapes.cjs +69 -0
  1561. package/dist/gpu-physics/sphere-shapes.d.ts +18 -0
  1562. package/dist/gpu-physics/sphere-shapes.d.ts.map +1 -0
  1563. package/dist/gpu-physics/sphere-shapes.js +49 -0
  1564. package/dist/gpu-physics/sphere-shapes.js.map +1 -0
  1565. package/dist/gpu-physics/sphere-world-events.cjs +190 -0
  1566. package/dist/gpu-physics/sphere-world-events.d.ts +5 -0
  1567. package/dist/gpu-physics/sphere-world-events.d.ts.map +1 -0
  1568. package/dist/gpu-physics/sphere-world-events.js +163 -0
  1569. package/dist/gpu-physics/sphere-world-events.js.map +1 -0
  1570. package/dist/gpu-physics/sphere-world-shaders.cjs +418 -0
  1571. package/dist/gpu-physics/sphere-world-shaders.d.ts +10 -0
  1572. package/dist/gpu-physics/sphere-world-shaders.d.ts.map +1 -0
  1573. package/dist/gpu-physics/sphere-world-shaders.js +369 -0
  1574. package/dist/gpu-physics/sphere-world-shaders.js.map +1 -0
  1575. package/dist/gpu-pointcloud/gpu-pointcloud-octree.cjs +231 -0
  1576. package/dist/gpu-pointcloud/gpu-pointcloud-octree.d.ts +38 -0
  1577. package/dist/gpu-pointcloud/gpu-pointcloud-octree.d.ts.map +1 -0
  1578. package/dist/gpu-pointcloud/gpu-pointcloud-octree.js +220 -0
  1579. package/dist/gpu-pointcloud/gpu-pointcloud-octree.js.map +1 -0
  1580. package/dist/gpu-pointcloud/gpu-pointcloud-radius-filter.cjs +63 -0
  1581. package/dist/gpu-pointcloud/gpu-pointcloud-radius-filter.d.ts +20 -0
  1582. package/dist/gpu-pointcloud/gpu-pointcloud-radius-filter.d.ts.map +1 -0
  1583. package/dist/gpu-pointcloud/gpu-pointcloud-radius-filter.js +46 -0
  1584. package/dist/gpu-pointcloud/gpu-pointcloud-radius-filter.js.map +1 -0
  1585. package/dist/gpu-pointcloud/gpu-pointcloud-voxel-downsample.cjs +80 -0
  1586. package/dist/gpu-pointcloud/gpu-pointcloud-voxel-downsample.d.ts +22 -0
  1587. package/dist/gpu-pointcloud/gpu-pointcloud-voxel-downsample.d.ts.map +1 -0
  1588. package/dist/gpu-pointcloud/gpu-pointcloud-voxel-downsample.js +63 -0
  1589. package/dist/gpu-pointcloud/gpu-pointcloud-voxel-downsample.js.map +1 -0
  1590. package/dist/gpu-pointcloud/index.cjs +35 -0
  1591. package/dist/gpu-pointcloud/index.cjs.map +6 -0
  1592. package/dist/gpu-pointcloud/index.d.ts +7 -0
  1593. package/dist/gpu-pointcloud/index.d.ts.map +1 -0
  1594. package/dist/gpu-pointcloud/index.js +7 -0
  1595. package/dist/gpu-pointcloud/index.js.map +1 -0
  1596. package/dist/gpu-project/benchmarks.cjs +42 -0
  1597. package/dist/gpu-project/benchmarks.cjs.map +6 -0
  1598. package/dist/gpu-project/benchmarks.d.ts +13 -0
  1599. package/dist/gpu-project/benchmarks.d.ts.map +1 -0
  1600. package/dist/gpu-project/benchmarks.js +11 -0
  1601. package/dist/gpu-project/benchmarks.js.map +1 -0
  1602. package/dist/gpu-project/crs.cjs +195 -0
  1603. package/dist/gpu-project/crs.cjs.map +6 -0
  1604. package/dist/gpu-project/crs.d.ts +37 -0
  1605. package/dist/gpu-project/crs.d.ts.map +1 -0
  1606. package/dist/gpu-project/crs.js +177 -0
  1607. package/dist/gpu-project/crs.js.map +1 -0
  1608. package/dist/gpu-project/gpu-projection-benchmark.cjs +240 -0
  1609. package/dist/gpu-project/gpu-projection-benchmark.d.ts +49 -0
  1610. package/dist/gpu-project/gpu-projection-benchmark.d.ts.map +1 -0
  1611. package/dist/gpu-project/gpu-projection-benchmark.js +253 -0
  1612. package/dist/gpu-project/gpu-projection-benchmark.js.map +1 -0
  1613. package/dist/gpu-project/gpu-projection-program.cjs +163 -0
  1614. package/dist/gpu-project/gpu-projection-program.d.ts +29 -0
  1615. package/dist/gpu-project/gpu-projection-program.d.ts.map +1 -0
  1616. package/dist/gpu-project/gpu-projection-program.js +141 -0
  1617. package/dist/gpu-project/gpu-projection-program.js.map +1 -0
  1618. package/dist/gpu-project/gpu-projection-table.cjs +152 -0
  1619. package/dist/gpu-project/gpu-projection-table.d.ts +38 -0
  1620. package/dist/gpu-project/gpu-projection-table.d.ts.map +1 -0
  1621. package/dist/gpu-project/gpu-projection-table.js +158 -0
  1622. package/dist/gpu-project/gpu-projection-table.js.map +1 -0
  1623. package/dist/gpu-project/gpu-projection.cjs +257 -0
  1624. package/dist/gpu-project/gpu-projection.d.ts +87 -0
  1625. package/dist/gpu-project/gpu-projection.d.ts.map +1 -0
  1626. package/dist/gpu-project/gpu-projection.js +259 -0
  1627. package/dist/gpu-project/gpu-projection.js.map +1 -0
  1628. package/dist/gpu-project/index.cjs +81 -0
  1629. package/dist/gpu-project/index.cjs.map +6 -0
  1630. package/dist/gpu-project/index.d.ts +24 -0
  1631. package/dist/gpu-project/index.d.ts.map +1 -0
  1632. package/dist/gpu-project/index.js +16 -0
  1633. package/dist/gpu-project/index.js.map +1 -0
  1634. package/dist/gpu-project/projection-benchmark.cjs +146 -0
  1635. package/dist/gpu-project/projection-benchmark.d.ts +60 -0
  1636. package/dist/gpu-project/projection-benchmark.d.ts.map +1 -0
  1637. package/dist/gpu-project/projection-benchmark.js +130 -0
  1638. package/dist/gpu-project/projection-benchmark.js.map +1 -0
  1639. package/dist/gpu-project/projection-conic.cjs +204 -0
  1640. package/dist/gpu-project/projection-conic.d.ts +38 -0
  1641. package/dist/gpu-project/projection-conic.d.ts.map +1 -0
  1642. package/dist/gpu-project/projection-conic.js +237 -0
  1643. package/dist/gpu-project/projection-conic.js.map +1 -0
  1644. package/dist/gpu-project/projection-crs-benchmark.cjs +116 -0
  1645. package/dist/gpu-project/projection-crs-benchmark.d.ts +14 -0
  1646. package/dist/gpu-project/projection-crs-benchmark.d.ts.map +1 -0
  1647. package/dist/gpu-project/projection-crs-benchmark.js +115 -0
  1648. package/dist/gpu-project/projection-crs-benchmark.js.map +1 -0
  1649. package/dist/gpu-project/projection-crs-identifiers.cjs +34 -0
  1650. package/dist/gpu-project/projection-crs-identifiers.d.ts +12 -0
  1651. package/dist/gpu-project/projection-crs-identifiers.d.ts.map +1 -0
  1652. package/dist/gpu-project/projection-crs-identifiers.js +18 -0
  1653. package/dist/gpu-project/projection-crs-identifiers.js.map +1 -0
  1654. package/dist/gpu-project/projection-crs-input.cjs +161 -0
  1655. package/dist/gpu-project/projection-crs-input.d.ts +16 -0
  1656. package/dist/gpu-project/projection-crs-input.d.ts.map +1 -0
  1657. package/dist/gpu-project/projection-crs-input.js +154 -0
  1658. package/dist/gpu-project/projection-crs-input.js.map +1 -0
  1659. package/dist/gpu-project/projection-crs-lowering.cjs +391 -0
  1660. package/dist/gpu-project/projection-crs-lowering.d.ts +20 -0
  1661. package/dist/gpu-project/projection-crs-lowering.d.ts.map +1 -0
  1662. package/dist/gpu-project/projection-crs-lowering.js +459 -0
  1663. package/dist/gpu-project/projection-crs-lowering.js.map +1 -0
  1664. package/dist/gpu-project/projection-crs-provider.cjs +98 -0
  1665. package/dist/gpu-project/projection-crs-provider.d.ts +9 -0
  1666. package/dist/gpu-project/projection-crs-provider.d.ts.map +1 -0
  1667. package/dist/gpu-project/projection-crs-provider.js +92 -0
  1668. package/dist/gpu-project/projection-crs-provider.js.map +1 -0
  1669. package/dist/gpu-project/projection-engine.cjs +84 -0
  1670. package/dist/gpu-project/projection-engine.d.ts +31 -0
  1671. package/dist/gpu-project/projection-engine.d.ts.map +1 -0
  1672. package/dist/gpu-project/projection-engine.js +69 -0
  1673. package/dist/gpu-project/projection-engine.js.map +1 -0
  1674. package/dist/gpu-project/projection-execution.cjs +95 -0
  1675. package/dist/gpu-project/projection-execution.d.ts +37 -0
  1676. package/dist/gpu-project/projection-execution.d.ts.map +1 -0
  1677. package/dist/gpu-project/projection-execution.js +98 -0
  1678. package/dist/gpu-project/projection-execution.js.map +1 -0
  1679. package/dist/gpu-project/projection-longitude-wrap.cjs +82 -0
  1680. package/dist/gpu-project/projection-longitude-wrap.d.ts +20 -0
  1681. package/dist/gpu-project/projection-longitude-wrap.d.ts.map +1 -0
  1682. package/dist/gpu-project/projection-longitude-wrap.js +64 -0
  1683. package/dist/gpu-project/projection-longitude-wrap.js.map +1 -0
  1684. package/dist/gpu-project/projection-metadata.cjs +123 -0
  1685. package/dist/gpu-project/projection-metadata.d.ts +57 -0
  1686. package/dist/gpu-project/projection-metadata.d.ts.map +1 -0
  1687. package/dist/gpu-project/projection-metadata.js +130 -0
  1688. package/dist/gpu-project/projection-metadata.js.map +1 -0
  1689. package/dist/gpu-project/projection-partition.cjs +168 -0
  1690. package/dist/gpu-project/projection-partition.d.ts +50 -0
  1691. package/dist/gpu-project/projection-partition.d.ts.map +1 -0
  1692. package/dist/gpu-project/projection-partition.js +183 -0
  1693. package/dist/gpu-project/projection-partition.js.map +1 -0
  1694. package/dist/gpu-project/projection-pipeline.cjs +273 -0
  1695. package/dist/gpu-project/projection-pipeline.d.ts +11 -0
  1696. package/dist/gpu-project/projection-pipeline.d.ts.map +1 -0
  1697. package/dist/gpu-project/projection-pipeline.js +304 -0
  1698. package/dist/gpu-project/projection-pipeline.js.map +1 -0
  1699. package/dist/gpu-project/projection-plan.cjs +561 -0
  1700. package/dist/gpu-project/projection-plan.d.ts +40 -0
  1701. package/dist/gpu-project/projection-plan.d.ts.map +1 -0
  1702. package/dist/gpu-project/projection-plan.js +612 -0
  1703. package/dist/gpu-project/projection-plan.js.map +1 -0
  1704. package/dist/gpu-project/projection-planning.cjs +122 -0
  1705. package/dist/gpu-project/projection-planning.d.ts +64 -0
  1706. package/dist/gpu-project/projection-planning.d.ts.map +1 -0
  1707. package/dist/gpu-project/projection-planning.js +105 -0
  1708. package/dist/gpu-project/projection-planning.js.map +1 -0
  1709. package/dist/gpu-project/projection-program-benchmark.cjs +342 -0
  1710. package/dist/gpu-project/projection-program-benchmark.d.ts +117 -0
  1711. package/dist/gpu-project/projection-program-benchmark.d.ts.map +1 -0
  1712. package/dist/gpu-project/projection-program-benchmark.js +359 -0
  1713. package/dist/gpu-project/projection-program-benchmark.js.map +1 -0
  1714. package/dist/gpu-project/projection-program-cpu-benchmark.cjs +125 -0
  1715. package/dist/gpu-project/projection-program-cpu-benchmark.d.ts +53 -0
  1716. package/dist/gpu-project/projection-program-cpu-benchmark.d.ts.map +1 -0
  1717. package/dist/gpu-project/projection-program-cpu-benchmark.js +114 -0
  1718. package/dist/gpu-project/projection-program-cpu-benchmark.js.map +1 -0
  1719. package/dist/gpu-project/projection-program.cjs +335 -0
  1720. package/dist/gpu-project/projection-program.d.ts +81 -0
  1721. package/dist/gpu-project/projection-program.d.ts.map +1 -0
  1722. package/dist/gpu-project/projection-program.js +352 -0
  1723. package/dist/gpu-project/projection-program.js.map +1 -0
  1724. package/dist/gpu-project/projection-routing-benchmark.cjs +189 -0
  1725. package/dist/gpu-project/projection-routing-benchmark.d.ts +36 -0
  1726. package/dist/gpu-project/projection-routing-benchmark.d.ts.map +1 -0
  1727. package/dist/gpu-project/projection-routing-benchmark.js +183 -0
  1728. package/dist/gpu-project/projection-routing-benchmark.js.map +1 -0
  1729. package/dist/gpu-project/projection-routing.cjs +78 -0
  1730. package/dist/gpu-project/projection-routing.d.ts +20 -0
  1731. package/dist/gpu-project/projection-routing.d.ts.map +1 -0
  1732. package/dist/gpu-project/projection-routing.js +61 -0
  1733. package/dist/gpu-project/projection-routing.js.map +1 -0
  1734. package/dist/gpu-project/projection-shader.cjs +434 -0
  1735. package/dist/gpu-project/projection-shader.d.ts +27 -0
  1736. package/dist/gpu-project/projection-shader.d.ts.map +1 -0
  1737. package/dist/gpu-project/projection-shader.js +455 -0
  1738. package/dist/gpu-project/projection-shader.js.map +1 -0
  1739. package/dist/gpu-project/projection-table-benchmark.cjs +283 -0
  1740. package/dist/gpu-project/projection-table-benchmark.d.ts +72 -0
  1741. package/dist/gpu-project/projection-table-benchmark.d.ts.map +1 -0
  1742. package/dist/gpu-project/projection-table-benchmark.js +291 -0
  1743. package/dist/gpu-project/projection-table-benchmark.js.map +1 -0
  1744. package/dist/gpu-project/projection-table-transform.cjs +103 -0
  1745. package/dist/gpu-project/projection-table-transform.d.ts +50 -0
  1746. package/dist/gpu-project/projection-table-transform.d.ts.map +1 -0
  1747. package/dist/gpu-project/projection-table-transform.js +97 -0
  1748. package/dist/gpu-project/projection-table-transform.js.map +1 -0
  1749. package/dist/gpu-project/projection-transverse-mercator.cjs +222 -0
  1750. package/dist/gpu-project/projection-transverse-mercator.d.ts +23 -0
  1751. package/dist/gpu-project/projection-transverse-mercator.d.ts.map +1 -0
  1752. package/dist/gpu-project/projection-transverse-mercator.js +223 -0
  1753. package/dist/gpu-project/projection-transverse-mercator.js.map +1 -0
  1754. package/dist/gpu-project/projection-web-mercator.cjs +63 -0
  1755. package/dist/gpu-project/projection-web-mercator.d.ts +18 -0
  1756. package/dist/gpu-project/projection-web-mercator.d.ts.map +1 -0
  1757. package/dist/gpu-project/projection-web-mercator.js +52 -0
  1758. package/dist/gpu-project/projection-web-mercator.js.map +1 -0
  1759. package/dist/gpu-project/types.cjs +15 -0
  1760. package/dist/gpu-project/types.d.ts +93 -0
  1761. package/dist/gpu-project/types.d.ts.map +1 -0
  1762. package/dist/gpu-project/types.js +6 -0
  1763. package/dist/gpu-project/types.js.map +1 -0
  1764. package/dist/gpu-project/web-mercator.cjs +58 -0
  1765. package/dist/gpu-project/web-mercator.d.ts +13 -0
  1766. package/dist/gpu-project/web-mercator.d.ts.map +1 -0
  1767. package/dist/gpu-project/web-mercator.js +42 -0
  1768. package/dist/gpu-project/web-mercator.js.map +1 -0
  1769. package/dist/gpu-raster/gpu-raster-band-math.cjs +280 -0
  1770. package/dist/gpu-raster/gpu-raster-band-math.d.ts +44 -0
  1771. package/dist/gpu-raster/gpu-raster-band-math.d.ts.map +1 -0
  1772. package/dist/gpu-raster/gpu-raster-band-math.js +277 -0
  1773. package/dist/gpu-raster/gpu-raster-band-math.js.map +1 -0
  1774. package/dist/gpu-raster/gpu-raster-buffer-to-texture.cjs +212 -0
  1775. package/dist/gpu-raster/gpu-raster-buffer-to-texture.d.ts +35 -0
  1776. package/dist/gpu-raster/gpu-raster-buffer-to-texture.d.ts.map +1 -0
  1777. package/dist/gpu-raster/gpu-raster-buffer-to-texture.js +210 -0
  1778. package/dist/gpu-raster/gpu-raster-buffer-to-texture.js.map +1 -0
  1779. package/dist/gpu-raster/gpu-raster-connected-components.cjs +420 -0
  1780. package/dist/gpu-raster/gpu-raster-connected-components.d.ts +55 -0
  1781. package/dist/gpu-raster/gpu-raster-connected-components.d.ts.map +1 -0
  1782. package/dist/gpu-raster/gpu-raster-connected-components.js +412 -0
  1783. package/dist/gpu-raster/gpu-raster-connected-components.js.map +1 -0
  1784. package/dist/gpu-raster/gpu-raster-contours.cjs +604 -0
  1785. package/dist/gpu-raster/gpu-raster-contours.d.ts +95 -0
  1786. package/dist/gpu-raster/gpu-raster-contours.d.ts.map +1 -0
  1787. package/dist/gpu-raster/gpu-raster-contours.js +618 -0
  1788. package/dist/gpu-raster/gpu-raster-contours.js.map +1 -0
  1789. package/dist/gpu-raster/gpu-raster-contrast.cjs +411 -0
  1790. package/dist/gpu-raster/gpu-raster-contrast.d.ts +55 -0
  1791. package/dist/gpu-raster/gpu-raster-contrast.d.ts.map +1 -0
  1792. package/dist/gpu-raster/gpu-raster-contrast.js +418 -0
  1793. package/dist/gpu-raster/gpu-raster-contrast.js.map +1 -0
  1794. package/dist/gpu-raster/gpu-raster-convolution.cjs +182 -0
  1795. package/dist/gpu-raster/gpu-raster-convolution.d.ts +61 -0
  1796. package/dist/gpu-raster/gpu-raster-convolution.d.ts.map +1 -0
  1797. package/dist/gpu-raster/gpu-raster-convolution.js +175 -0
  1798. package/dist/gpu-raster/gpu-raster-convolution.js.map +1 -0
  1799. package/dist/gpu-raster/gpu-raster-cross-tile-components.cjs +1020 -0
  1800. package/dist/gpu-raster/gpu-raster-cross-tile-components.d.ts +85 -0
  1801. package/dist/gpu-raster/gpu-raster-cross-tile-components.d.ts.map +1 -0
  1802. package/dist/gpu-raster/gpu-raster-cross-tile-components.js +1002 -0
  1803. package/dist/gpu-raster/gpu-raster-cross-tile-components.js.map +1 -0
  1804. package/dist/gpu-raster/gpu-raster-dense-components.cjs +311 -0
  1805. package/dist/gpu-raster/gpu-raster-dense-components.d.ts +56 -0
  1806. package/dist/gpu-raster/gpu-raster-dense-components.d.ts.map +1 -0
  1807. package/dist/gpu-raster/gpu-raster-dense-components.js +297 -0
  1808. package/dist/gpu-raster/gpu-raster-dense-components.js.map +1 -0
  1809. package/dist/gpu-raster/gpu-raster-edges.cjs +297 -0
  1810. package/dist/gpu-raster/gpu-raster-edges.d.ts +88 -0
  1811. package/dist/gpu-raster/gpu-raster-edges.d.ts.map +1 -0
  1812. package/dist/gpu-raster/gpu-raster-edges.js +284 -0
  1813. package/dist/gpu-raster/gpu-raster-edges.js.map +1 -0
  1814. package/dist/gpu-raster/gpu-raster-global-statistics.cjs +510 -0
  1815. package/dist/gpu-raster/gpu-raster-global-statistics.d.ts +90 -0
  1816. package/dist/gpu-raster/gpu-raster-global-statistics.d.ts.map +1 -0
  1817. package/dist/gpu-raster/gpu-raster-global-statistics.js +484 -0
  1818. package/dist/gpu-raster/gpu-raster-global-statistics.js.map +1 -0
  1819. package/dist/gpu-raster/gpu-raster-histogram.cjs +212 -0
  1820. package/dist/gpu-raster/gpu-raster-histogram.d.ts +38 -0
  1821. package/dist/gpu-raster/gpu-raster-histogram.d.ts.map +1 -0
  1822. package/dist/gpu-raster/gpu-raster-histogram.js +212 -0
  1823. package/dist/gpu-raster/gpu-raster-histogram.js.map +1 -0
  1824. package/dist/gpu-raster/gpu-raster-morphology.cjs +487 -0
  1825. package/dist/gpu-raster/gpu-raster-morphology.d.ts +122 -0
  1826. package/dist/gpu-raster/gpu-raster-morphology.d.ts.map +1 -0
  1827. package/dist/gpu-raster/gpu-raster-morphology.js +478 -0
  1828. package/dist/gpu-raster/gpu-raster-morphology.js.map +1 -0
  1829. package/dist/gpu-raster/gpu-raster-ndvi.cjs +66 -0
  1830. package/dist/gpu-raster/gpu-raster-ndvi.d.ts +40 -0
  1831. package/dist/gpu-raster/gpu-raster-ndvi.d.ts.map +1 -0
  1832. package/dist/gpu-raster/gpu-raster-ndvi.js +50 -0
  1833. package/dist/gpu-raster/gpu-raster-ndvi.js.map +1 -0
  1834. package/dist/gpu-raster/gpu-raster-neighborhood.cjs +330 -0
  1835. package/dist/gpu-raster/gpu-raster-neighborhood.d.ts +62 -0
  1836. package/dist/gpu-raster/gpu-raster-neighborhood.d.ts.map +1 -0
  1837. package/dist/gpu-raster/gpu-raster-neighborhood.js +322 -0
  1838. package/dist/gpu-raster/gpu-raster-neighborhood.js.map +1 -0
  1839. package/dist/gpu-raster/gpu-raster-overview.cjs +488 -0
  1840. package/dist/gpu-raster/gpu-raster-overview.d.ts +115 -0
  1841. package/dist/gpu-raster/gpu-raster-overview.d.ts.map +1 -0
  1842. package/dist/gpu-raster/gpu-raster-overview.js +515 -0
  1843. package/dist/gpu-raster/gpu-raster-overview.js.map +1 -0
  1844. package/dist/gpu-raster/gpu-raster-region-measurements.cjs +464 -0
  1845. package/dist/gpu-raster/gpu-raster-region-measurements.d.ts +88 -0
  1846. package/dist/gpu-raster/gpu-raster-region-measurements.d.ts.map +1 -0
  1847. package/dist/gpu-raster/gpu-raster-region-measurements.js +450 -0
  1848. package/dist/gpu-raster/gpu-raster-region-measurements.js.map +1 -0
  1849. package/dist/gpu-raster/gpu-raster-statistics.cjs +262 -0
  1850. package/dist/gpu-raster/gpu-raster-statistics.d.ts +42 -0
  1851. package/dist/gpu-raster/gpu-raster-statistics.d.ts.map +1 -0
  1852. package/dist/gpu-raster/gpu-raster-statistics.js +246 -0
  1853. package/dist/gpu-raster/gpu-raster-statistics.js.map +1 -0
  1854. package/dist/gpu-raster/gpu-raster-texture-to-buffer.cjs +182 -0
  1855. package/dist/gpu-raster/gpu-raster-texture-to-buffer.d.ts +33 -0
  1856. package/dist/gpu-raster/gpu-raster-texture-to-buffer.d.ts.map +1 -0
  1857. package/dist/gpu-raster/gpu-raster-texture-to-buffer.js +176 -0
  1858. package/dist/gpu-raster/gpu-raster-texture-to-buffer.js.map +1 -0
  1859. package/dist/gpu-raster/gpu-raster-threshold.cjs +383 -0
  1860. package/dist/gpu-raster/gpu-raster-threshold.d.ts +72 -0
  1861. package/dist/gpu-raster/gpu-raster-threshold.d.ts.map +1 -0
  1862. package/dist/gpu-raster/gpu-raster-threshold.js +402 -0
  1863. package/dist/gpu-raster/gpu-raster-threshold.js.map +1 -0
  1864. package/dist/gpu-raster/gpu-raster-tile-cache.cjs +622 -0
  1865. package/dist/gpu-raster/gpu-raster-tile-cache.d.ts +151 -0
  1866. package/dist/gpu-raster/gpu-raster-tile-cache.d.ts.map +1 -0
  1867. package/dist/gpu-raster/gpu-raster-tile-cache.js +635 -0
  1868. package/dist/gpu-raster/gpu-raster-tile-cache.js.map +1 -0
  1869. package/dist/gpu-raster/gpu-raster-tile-halo.cjs +440 -0
  1870. package/dist/gpu-raster/gpu-raster-tile-halo.d.ts +121 -0
  1871. package/dist/gpu-raster/gpu-raster-tile-halo.d.ts.map +1 -0
  1872. package/dist/gpu-raster/gpu-raster-tile-halo.js +454 -0
  1873. package/dist/gpu-raster/gpu-raster-tile-halo.js.map +1 -0
  1874. package/dist/gpu-raster/gpu-raster-tile-source.cjs +387 -0
  1875. package/dist/gpu-raster/gpu-raster-tile-source.d.ts +99 -0
  1876. package/dist/gpu-raster/gpu-raster-tile-source.d.ts.map +1 -0
  1877. package/dist/gpu-raster/gpu-raster-tile-source.js +414 -0
  1878. package/dist/gpu-raster/gpu-raster-tile-source.js.map +1 -0
  1879. package/dist/gpu-raster/gpu-raster.cjs +97 -0
  1880. package/dist/gpu-raster/gpu-raster.d.ts +34 -0
  1881. package/dist/gpu-raster/gpu-raster.d.ts.map +1 -0
  1882. package/dist/gpu-raster/gpu-raster.js +86 -0
  1883. package/dist/gpu-raster/gpu-raster.js.map +1 -0
  1884. package/dist/gpu-raster/index.cjs +144 -0
  1885. package/dist/gpu-raster/index.cjs.map +6 -0
  1886. package/dist/gpu-raster/index.d.ts +50 -0
  1887. package/dist/gpu-raster/index.d.ts.map +1 -0
  1888. package/dist/gpu-raster/index.js +28 -0
  1889. package/dist/gpu-raster/index.js.map +1 -0
  1890. package/dist/gpu-raster/raster-device-limits.cjs +112 -0
  1891. package/dist/gpu-raster/raster-device-limits.d.ts +82 -0
  1892. package/dist/gpu-raster/raster-device-limits.d.ts.map +1 -0
  1893. package/dist/gpu-raster/raster-device-limits.js +106 -0
  1894. package/dist/gpu-raster/raster-device-limits.js.map +1 -0
  1895. package/dist/gpu-raster/raster-utils.cjs +253 -0
  1896. package/dist/gpu-raster/raster-utils.d.ts +37 -0
  1897. package/dist/gpu-raster/raster-utils.d.ts.map +1 -0
  1898. package/dist/gpu-raster/raster-utils.js +227 -0
  1899. package/dist/gpu-raster/raster-utils.js.map +1 -0
  1900. package/dist/gpu-raster/types.cjs +15 -0
  1901. package/dist/gpu-raster/types.d.ts +71 -0
  1902. package/dist/gpu-raster/types.d.ts.map +1 -0
  1903. package/dist/gpu-raster/types.js +5 -0
  1904. package/dist/gpu-raster/types.js.map +1 -0
  1905. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.cjs +178 -0
  1906. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts +25 -0
  1907. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts.map +1 -0
  1908. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js +182 -0
  1909. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js.map +1 -0
  1910. package/dist/gpu-simple-graph/gpu-simple-graph-operation.cjs +58 -0
  1911. package/dist/gpu-simple-graph/gpu-simple-graph-operation.d.ts +18 -0
  1912. package/dist/gpu-simple-graph/gpu-simple-graph-operation.d.ts.map +1 -0
  1913. package/dist/gpu-simple-graph/gpu-simple-graph-operation.js +36 -0
  1914. package/dist/gpu-simple-graph/gpu-simple-graph-operation.js.map +1 -0
  1915. package/dist/gpu-simple-graph/gpu-simple-graph-transfer.cjs +133 -0
  1916. package/dist/gpu-simple-graph/gpu-simple-graph-transfer.d.ts +40 -0
  1917. package/dist/gpu-simple-graph/gpu-simple-graph-transfer.d.ts.map +1 -0
  1918. package/dist/gpu-simple-graph/gpu-simple-graph-transfer.js +113 -0
  1919. package/dist/gpu-simple-graph/gpu-simple-graph-transfer.js.map +1 -0
  1920. package/dist/gpu-simple-graph/gpu-simple-graph-value.cjs +142 -0
  1921. package/dist/gpu-simple-graph/gpu-simple-graph-value.d.ts +87 -0
  1922. package/dist/gpu-simple-graph/gpu-simple-graph-value.d.ts.map +1 -0
  1923. package/dist/gpu-simple-graph/gpu-simple-graph-value.js +118 -0
  1924. package/dist/gpu-simple-graph/gpu-simple-graph-value.js.map +1 -0
  1925. package/dist/gpu-simple-graph/gpu-simple-graph.cjs +268 -0
  1926. package/dist/gpu-simple-graph/gpu-simple-graph.d.ts +80 -0
  1927. package/dist/gpu-simple-graph/gpu-simple-graph.d.ts.map +1 -0
  1928. package/dist/gpu-simple-graph/gpu-simple-graph.js +281 -0
  1929. package/dist/gpu-simple-graph/gpu-simple-graph.js.map +1 -0
  1930. package/dist/gpu-simple-graph/index.cjs +44 -0
  1931. package/dist/gpu-simple-graph/index.cjs.map +6 -0
  1932. package/dist/gpu-simple-graph/index.d.ts +9 -0
  1933. package/dist/gpu-simple-graph/index.d.ts.map +1 -0
  1934. package/dist/gpu-simple-graph/index.js +8 -0
  1935. package/dist/gpu-simple-graph/index.js.map +1 -0
  1936. package/dist/gpu-simulation/index.cjs +46 -0
  1937. package/dist/gpu-simulation/index.cjs.map +6 -0
  1938. package/dist/gpu-simulation/index.d.ts +5 -0
  1939. package/dist/gpu-simulation/index.d.ts.map +1 -0
  1940. package/dist/gpu-simulation/index.js +6 -0
  1941. package/dist/gpu-simulation/index.js.map +1 -0
  1942. package/dist/gpu-simulation/spectral-ocean-initial-spectrum.cjs +71 -0
  1943. package/dist/gpu-simulation/spectral-ocean-initial-spectrum.d.ts +12 -0
  1944. package/dist/gpu-simulation/spectral-ocean-initial-spectrum.d.ts.map +1 -0
  1945. package/dist/gpu-simulation/spectral-ocean-initial-spectrum.js +55 -0
  1946. package/dist/gpu-simulation/spectral-ocean-initial-spectrum.js.map +1 -0
  1947. package/dist/gpu-simulation/spectral-ocean-simulation-shaders.cjs +208 -0
  1948. package/dist/gpu-simulation/spectral-ocean-simulation-shaders.d.ts +9 -0
  1949. package/dist/gpu-simulation/spectral-ocean-simulation-shaders.d.ts.map +1 -0
  1950. package/dist/gpu-simulation/spectral-ocean-simulation-shaders.js +178 -0
  1951. package/dist/gpu-simulation/spectral-ocean-simulation-shaders.js.map +1 -0
  1952. package/dist/gpu-simulation/spectral-ocean-simulation.cjs +501 -0
  1953. package/dist/gpu-simulation/spectral-ocean-simulation.d.ts +120 -0
  1954. package/dist/gpu-simulation/spectral-ocean-simulation.d.ts.map +1 -0
  1955. package/dist/gpu-simulation/spectral-ocean-simulation.js +490 -0
  1956. package/dist/gpu-simulation/spectral-ocean-simulation.js.map +1 -0
  1957. package/dist/gpu-simulation/volumetric-fire-simulation-shaders.cjs +997 -0
  1958. package/dist/gpu-simulation/volumetric-fire-simulation-shaders.d.ts +46 -0
  1959. package/dist/gpu-simulation/volumetric-fire-simulation-shaders.d.ts.map +1 -0
  1960. package/dist/gpu-simulation/volumetric-fire-simulation-shaders.js +941 -0
  1961. package/dist/gpu-simulation/volumetric-fire-simulation-shaders.js.map +1 -0
  1962. package/dist/gpu-simulation/volumetric-fire-simulation.cjs +513 -0
  1963. package/dist/gpu-simulation/volumetric-fire-simulation.d.ts +121 -0
  1964. package/dist/gpu-simulation/volumetric-fire-simulation.d.ts.map +1 -0
  1965. package/dist/gpu-simulation/volumetric-fire-simulation.js +510 -0
  1966. package/dist/gpu-simulation/volumetric-fire-simulation.js.map +1 -0
  1967. package/dist/gpu-sql/index.cjs +29 -0
  1968. package/dist/gpu-sql/index.cjs.map +6 -0
  1969. package/dist/gpu-sql/index.d.ts +3 -0
  1970. package/dist/gpu-sql/index.d.ts.map +1 -0
  1971. package/dist/gpu-sql/index.js +5 -0
  1972. package/dist/gpu-sql/index.js.map +1 -0
  1973. package/dist/gpu-sql/lu-sql.cjs +499 -0
  1974. package/dist/gpu-sql/lu-sql.d.ts +36 -0
  1975. package/dist/gpu-sql/lu-sql.d.ts.map +1 -0
  1976. package/dist/gpu-sql/lu-sql.js +497 -0
  1977. package/dist/gpu-sql/lu-sql.js.map +1 -0
  1978. package/dist/gpu-tables/engine/gpu-input-schema.cjs +58 -0
  1979. package/dist/gpu-tables/engine/gpu-input-schema.d.ts +52 -0
  1980. package/dist/gpu-tables/engine/gpu-input-schema.d.ts.map +1 -0
  1981. package/dist/gpu-tables/engine/gpu-input-schema.js +43 -0
  1982. package/dist/gpu-tables/engine/gpu-input-schema.js.map +1 -0
  1983. package/dist/gpu-tables/engine/gpu-renderable.cjs +43 -0
  1984. package/dist/gpu-tables/engine/gpu-renderable.d.ts +16 -0
  1985. package/dist/gpu-tables/engine/gpu-renderable.d.ts.map +1 -0
  1986. package/dist/gpu-tables/engine/gpu-renderable.js +22 -0
  1987. package/dist/gpu-tables/engine/gpu-renderable.js.map +1 -0
  1988. package/dist/gpu-tables/engine/gpu-scene-adapters.cjs +220 -0
  1989. package/dist/gpu-tables/engine/gpu-scene-adapters.d.ts +80 -0
  1990. package/dist/gpu-tables/engine/gpu-scene-adapters.d.ts.map +1 -0
  1991. package/dist/gpu-tables/engine/gpu-scene-adapters.js +214 -0
  1992. package/dist/gpu-tables/engine/gpu-scene-adapters.js.map +1 -0
  1993. package/dist/gpu-tables/engine/gpu-table-computation.cjs +168 -0
  1994. package/dist/gpu-tables/engine/gpu-table-computation.d.ts +45 -0
  1995. package/dist/gpu-tables/engine/gpu-table-computation.d.ts.map +1 -0
  1996. package/dist/gpu-tables/engine/gpu-table-computation.js +158 -0
  1997. package/dist/gpu-tables/engine/gpu-table-computation.js.map +1 -0
  1998. package/dist/gpu-tables/engine/gpu-table-shader-bindings.cjs +374 -0
  1999. package/dist/gpu-tables/engine/gpu-table-shader-bindings.d.ts +47 -0
  2000. package/dist/gpu-tables/engine/gpu-table-shader-bindings.d.ts.map +1 -0
  2001. package/dist/gpu-tables/engine/gpu-table-shader-bindings.js +382 -0
  2002. package/dist/gpu-tables/engine/gpu-table-shader-bindings.js.map +1 -0
  2003. package/dist/gpu-tables/index.cjs +64 -0
  2004. package/dist/gpu-tables/index.cjs.map +6 -0
  2005. package/dist/gpu-tables/index.d.ts +11 -0
  2006. package/dist/gpu-tables/index.d.ts.map +1 -0
  2007. package/dist/gpu-tables/index.js +14 -0
  2008. package/dist/gpu-tables/index.js.map +1 -0
  2009. package/dist/gpu-tables/table/gpu-record-batch.cjs +140 -0
  2010. package/dist/gpu-tables/table/gpu-record-batch.d.ts +57 -0
  2011. package/dist/gpu-tables/table/gpu-record-batch.d.ts.map +1 -0
  2012. package/dist/gpu-tables/table/gpu-record-batch.js +122 -0
  2013. package/dist/gpu-tables/table/gpu-record-batch.js.map +1 -0
  2014. package/dist/gpu-tables/table/gpu-schema.cjs +32 -0
  2015. package/dist/gpu-tables/table/gpu-schema.d.ts +46 -0
  2016. package/dist/gpu-tables/table/gpu-schema.d.ts.map +1 -0
  2017. package/dist/gpu-tables/table/gpu-schema.js +10 -0
  2018. package/dist/gpu-tables/table/gpu-schema.js.map +1 -0
  2019. package/dist/gpu-tables/table/gpu-table.cjs +689 -0
  2020. package/dist/gpu-tables/table/gpu-table.d.ts +108 -0
  2021. package/dist/gpu-tables/table/gpu-table.d.ts.map +1 -0
  2022. package/dist/gpu-tables/table/gpu-table.js +712 -0
  2023. package/dist/gpu-tables/table/gpu-table.js.map +1 -0
  2024. package/dist/gpu-tables/utils/generated-buffer-batches.cjs +92 -0
  2025. package/dist/gpu-tables/utils/generated-buffer-batches.d.ts +39 -0
  2026. package/dist/gpu-tables/utils/generated-buffer-batches.d.ts.map +1 -0
  2027. package/dist/gpu-tables/utils/generated-buffer-batches.js +77 -0
  2028. package/dist/gpu-tables/utils/generated-buffer-batches.js.map +1 -0
  2029. package/dist/gpu-tables/utils/gpu-table-buffer-planner.cjs +322 -0
  2030. package/dist/gpu-tables/utils/gpu-table-buffer-planner.d.ts +208 -0
  2031. package/dist/gpu-tables/utils/gpu-table-buffer-planner.d.ts.map +1 -0
  2032. package/dist/gpu-tables/utils/gpu-table-buffer-planner.js +441 -0
  2033. package/dist/gpu-tables/utils/gpu-table-buffer-planner.js.map +1 -0
  2034. package/dist/gpu-timeseries/gpu-time-series-envelope.cjs +163 -0
  2035. package/dist/gpu-timeseries/gpu-time-series-envelope.d.ts +30 -0
  2036. package/dist/gpu-timeseries/gpu-time-series-envelope.d.ts.map +1 -0
  2037. package/dist/gpu-timeseries/gpu-time-series-envelope.js +152 -0
  2038. package/dist/gpu-timeseries/gpu-time-series-envelope.js.map +1 -0
  2039. package/dist/gpu-timeseries/gpu-time-series.cjs +60 -0
  2040. package/dist/gpu-timeseries/gpu-time-series.d.ts +23 -0
  2041. package/dist/gpu-timeseries/gpu-time-series.d.ts.map +1 -0
  2042. package/dist/gpu-timeseries/gpu-time-series.js +40 -0
  2043. package/dist/gpu-timeseries/gpu-time-series.js.map +1 -0
  2044. package/dist/gpu-timeseries/index.cjs +30 -0
  2045. package/dist/gpu-timeseries/index.cjs.map +6 -0
  2046. package/dist/gpu-timeseries/index.d.ts +5 -0
  2047. package/dist/gpu-timeseries/index.d.ts.map +1 -0
  2048. package/dist/gpu-timeseries/index.js +6 -0
  2049. package/dist/gpu-timeseries/index.js.map +1 -0
  2050. package/dist/gpu-trace/gpu-trace-aggregation.cjs +104 -0
  2051. package/dist/gpu-trace/gpu-trace-aggregation.d.ts +64 -0
  2052. package/dist/gpu-trace/gpu-trace-aggregation.d.ts.map +1 -0
  2053. package/dist/gpu-trace/gpu-trace-aggregation.js +91 -0
  2054. package/dist/gpu-trace/gpu-trace-aggregation.js.map +1 -0
  2055. package/dist/gpu-trace/gpu-trace-analytics-output.cjs +133 -0
  2056. package/dist/gpu-trace/gpu-trace-analytics-output.d.ts +51 -0
  2057. package/dist/gpu-trace/gpu-trace-analytics-output.d.ts.map +1 -0
  2058. package/dist/gpu-trace/gpu-trace-analytics-output.js +120 -0
  2059. package/dist/gpu-trace/gpu-trace-analytics-output.js.map +1 -0
  2060. package/dist/gpu-trace/gpu-trace-anomaly-scoring.cjs +474 -0
  2061. package/dist/gpu-trace/gpu-trace-anomaly-scoring.d.ts +68 -0
  2062. package/dist/gpu-trace/gpu-trace-anomaly-scoring.d.ts.map +1 -0
  2063. package/dist/gpu-trace/gpu-trace-anomaly-scoring.js +453 -0
  2064. package/dist/gpu-trace/gpu-trace-anomaly-scoring.js.map +1 -0
  2065. package/dist/gpu-trace/gpu-trace-comparison.cjs +474 -0
  2066. package/dist/gpu-trace/gpu-trace-comparison.d.ts +69 -0
  2067. package/dist/gpu-trace/gpu-trace-comparison.d.ts.map +1 -0
  2068. package/dist/gpu-trace/gpu-trace-comparison.js +440 -0
  2069. package/dist/gpu-trace/gpu-trace-comparison.js.map +1 -0
  2070. package/dist/gpu-trace/gpu-trace-critical-path.cjs +626 -0
  2071. package/dist/gpu-trace/gpu-trace-critical-path.d.ts +61 -0
  2072. package/dist/gpu-trace/gpu-trace-critical-path.d.ts.map +1 -0
  2073. package/dist/gpu-trace/gpu-trace-critical-path.js +596 -0
  2074. package/dist/gpu-trace/gpu-trace-critical-path.js.map +1 -0
  2075. package/dist/gpu-trace/gpu-trace-interaction.cjs +434 -0
  2076. package/dist/gpu-trace/gpu-trace-interaction.d.ts +194 -0
  2077. package/dist/gpu-trace/gpu-trace-interaction.d.ts.map +1 -0
  2078. package/dist/gpu-trace/gpu-trace-interaction.js +454 -0
  2079. package/dist/gpu-trace/gpu-trace-interaction.js.map +1 -0
  2080. package/dist/gpu-trace/gpu-trace-lane-index-builder.cjs +524 -0
  2081. package/dist/gpu-trace/gpu-trace-lane-index-builder.d.ts +66 -0
  2082. package/dist/gpu-trace/gpu-trace-lane-index-builder.d.ts.map +1 -0
  2083. package/dist/gpu-trace/gpu-trace-lane-index-builder.js +496 -0
  2084. package/dist/gpu-trace/gpu-trace-lane-index-builder.js.map +1 -0
  2085. package/dist/gpu-trace/gpu-trace-mipmap-boundaries.cjs +325 -0
  2086. package/dist/gpu-trace/gpu-trace-mipmap-boundaries.d.ts +61 -0
  2087. package/dist/gpu-trace/gpu-trace-mipmap-boundaries.d.ts.map +1 -0
  2088. package/dist/gpu-trace/gpu-trace-mipmap-boundaries.js +312 -0
  2089. package/dist/gpu-trace/gpu-trace-mipmap-boundaries.js.map +1 -0
  2090. package/dist/gpu-trace/gpu-trace-picking.cjs +63 -0
  2091. package/dist/gpu-trace/gpu-trace-picking.d.ts +30 -0
  2092. package/dist/gpu-trace/gpu-trace-picking.d.ts.map +1 -0
  2093. package/dist/gpu-trace/gpu-trace-picking.js +68 -0
  2094. package/dist/gpu-trace/gpu-trace-picking.js.map +1 -0
  2095. package/dist/gpu-trace/gpu-trace-pixel-mipmap.cjs +787 -0
  2096. package/dist/gpu-trace/gpu-trace-pixel-mipmap.d.ts +67 -0
  2097. package/dist/gpu-trace/gpu-trace-pixel-mipmap.d.ts.map +1 -0
  2098. package/dist/gpu-trace/gpu-trace-pixel-mipmap.js +802 -0
  2099. package/dist/gpu-trace/gpu-trace-pixel-mipmap.js.map +1 -0
  2100. package/dist/gpu-trace/gpu-trace-range-maximum-index.cjs +342 -0
  2101. package/dist/gpu-trace/gpu-trace-range-maximum-index.d.ts +50 -0
  2102. package/dist/gpu-trace/gpu-trace-range-maximum-index.d.ts.map +1 -0
  2103. package/dist/gpu-trace/gpu-trace-range-maximum-index.js +334 -0
  2104. package/dist/gpu-trace/gpu-trace-range-maximum-index.js.map +1 -0
  2105. package/dist/gpu-trace/gpu-trace-scene.cjs +320 -0
  2106. package/dist/gpu-trace/gpu-trace-scene.d.ts +233 -0
  2107. package/dist/gpu-trace/gpu-trace-scene.d.ts.map +1 -0
  2108. package/dist/gpu-trace/gpu-trace-scene.js +366 -0
  2109. package/dist/gpu-trace/gpu-trace-scene.js.map +1 -0
  2110. package/dist/gpu-trace/gpu-trace-temporal-index-builder.cjs +287 -0
  2111. package/dist/gpu-trace/gpu-trace-temporal-index-builder.d.ts +59 -0
  2112. package/dist/gpu-trace/gpu-trace-temporal-index-builder.d.ts.map +1 -0
  2113. package/dist/gpu-trace/gpu-trace-temporal-index-builder.js +281 -0
  2114. package/dist/gpu-trace/gpu-trace-temporal-index-builder.js.map +1 -0
  2115. package/dist/gpu-trace/gpu-trace-temporal-index.cjs +692 -0
  2116. package/dist/gpu-trace/gpu-trace-temporal-index.d.ts +97 -0
  2117. package/dist/gpu-trace/gpu-trace-temporal-index.d.ts.map +1 -0
  2118. package/dist/gpu-trace/gpu-trace-temporal-index.js +687 -0
  2119. package/dist/gpu-trace/gpu-trace-temporal-index.js.map +1 -0
  2120. package/dist/gpu-trace/gpu-trace-time-buckets.cjs +435 -0
  2121. package/dist/gpu-trace/gpu-trace-time-buckets.d.ts +67 -0
  2122. package/dist/gpu-trace/gpu-trace-time-buckets.d.ts.map +1 -0
  2123. package/dist/gpu-trace/gpu-trace-time-buckets.js +466 -0
  2124. package/dist/gpu-trace/gpu-trace-time-buckets.js.map +1 -0
  2125. package/dist/gpu-trace/index.cjs +111 -0
  2126. package/dist/gpu-trace/index.cjs.map +6 -0
  2127. package/dist/gpu-trace/index.d.ts +30 -0
  2128. package/dist/gpu-trace/index.d.ts.map +1 -0
  2129. package/dist/gpu-trace/index.js +19 -0
  2130. package/dist/gpu-trace/index.js.map +1 -0
  2131. package/dist/gpu-vector-search/embedding-matrix.cjs +192 -0
  2132. package/dist/gpu-vector-search/embedding-matrix.d.ts +72 -0
  2133. package/dist/gpu-vector-search/embedding-matrix.d.ts.map +1 -0
  2134. package/dist/gpu-vector-search/embedding-matrix.js +213 -0
  2135. package/dist/gpu-vector-search/embedding-matrix.js.map +1 -0
  2136. package/dist/gpu-vector-search/gpu-clustering-utils.cjs +218 -0
  2137. package/dist/gpu-vector-search/gpu-clustering-utils.d.ts +42 -0
  2138. package/dist/gpu-vector-search/gpu-clustering-utils.d.ts.map +1 -0
  2139. package/dist/gpu-vector-search/gpu-clustering-utils.js +211 -0
  2140. package/dist/gpu-vector-search/gpu-clustering-utils.js.map +1 -0
  2141. package/dist/gpu-vector-search/gpu-ivf-flat-index.cjs +1095 -0
  2142. package/dist/gpu-vector-search/gpu-ivf-flat-index.d.ts +95 -0
  2143. package/dist/gpu-vector-search/gpu-ivf-flat-index.d.ts.map +1 -0
  2144. package/dist/gpu-vector-search/gpu-ivf-flat-index.js +1159 -0
  2145. package/dist/gpu-vector-search/gpu-ivf-flat-index.js.map +1 -0
  2146. package/dist/gpu-vector-search/gpu-k-means.cjs +599 -0
  2147. package/dist/gpu-vector-search/gpu-k-means.d.ts +55 -0
  2148. package/dist/gpu-vector-search/gpu-k-means.d.ts.map +1 -0
  2149. package/dist/gpu-vector-search/gpu-k-means.js +601 -0
  2150. package/dist/gpu-vector-search/gpu-k-means.js.map +1 -0
  2151. package/dist/gpu-vector-search/gpu-similarity-search.cjs +781 -0
  2152. package/dist/gpu-vector-search/gpu-similarity-search.d.ts +54 -0
  2153. package/dist/gpu-vector-search/gpu-similarity-search.d.ts.map +1 -0
  2154. package/dist/gpu-vector-search/gpu-similarity-search.js +785 -0
  2155. package/dist/gpu-vector-search/gpu-similarity-search.js.map +1 -0
  2156. package/dist/gpu-vector-search/index.cjs +38 -0
  2157. package/dist/gpu-vector-search/index.cjs.map +6 -0
  2158. package/dist/gpu-vector-search/index.d.ts +8 -0
  2159. package/dist/gpu-vector-search/index.d.ts.map +1 -0
  2160. package/dist/gpu-vector-search/index.js +9 -0
  2161. package/dist/gpu-vector-search/index.js.map +1 -0
  2162. package/dist/gpu-vector-search/types.cjs +15 -0
  2163. package/dist/gpu-vector-search/types.d.ts +63 -0
  2164. package/dist/gpu-vector-search/types.d.ts.map +1 -0
  2165. package/dist/gpu-vector-search/types.js +6 -0
  2166. package/dist/gpu-vector-search/types.js.map +1 -0
  2167. package/dist/index.cjs +75 -0
  2168. package/dist/index.cjs.map +6 -0
  2169. package/dist/index.d.ts +5 -0
  2170. package/dist/index.d.ts.map +1 -0
  2171. package/dist/index.js +8 -0
  2172. package/dist/index.js.map +1 -0
  2173. package/dist/lucim/gpu-volume-connected-components.cjs +443 -0
  2174. package/dist/lucim/gpu-volume-connected-components.d.ts +55 -0
  2175. package/dist/lucim/gpu-volume-connected-components.d.ts.map +1 -0
  2176. package/dist/lucim/gpu-volume-connected-components.js +429 -0
  2177. package/dist/lucim/gpu-volume-connected-components.js.map +1 -0
  2178. package/dist/lucim/gpu-volume-morphology.cjs +503 -0
  2179. package/dist/lucim/gpu-volume-morphology.d.ts +121 -0
  2180. package/dist/lucim/gpu-volume-morphology.d.ts.map +1 -0
  2181. package/dist/lucim/gpu-volume-morphology.js +492 -0
  2182. package/dist/lucim/gpu-volume-morphology.js.map +1 -0
  2183. package/dist/lucim/gpu-volume-region-measurements.cjs +307 -0
  2184. package/dist/lucim/gpu-volume-region-measurements.d.ts +49 -0
  2185. package/dist/lucim/gpu-volume-region-measurements.d.ts.map +1 -0
  2186. package/dist/lucim/gpu-volume-region-measurements.js +286 -0
  2187. package/dist/lucim/gpu-volume-region-measurements.js.map +1 -0
  2188. package/dist/lucim/gpu-volume-threshold.cjs +218 -0
  2189. package/dist/lucim/gpu-volume-threshold.d.ts +45 -0
  2190. package/dist/lucim/gpu-volume-threshold.d.ts.map +1 -0
  2191. package/dist/lucim/gpu-volume-threshold.js +221 -0
  2192. package/dist/lucim/gpu-volume-threshold.js.map +1 -0
  2193. package/dist/lucim/gpu-volume.cjs +95 -0
  2194. package/dist/lucim/gpu-volume.d.ts +34 -0
  2195. package/dist/lucim/gpu-volume.d.ts.map +1 -0
  2196. package/dist/lucim/gpu-volume.js +96 -0
  2197. package/dist/lucim/gpu-volume.js.map +1 -0
  2198. package/dist/lucim/index.cjs +47 -0
  2199. package/dist/lucim/index.cjs.map +6 -0
  2200. package/dist/lucim/index.d.ts +12 -0
  2201. package/dist/lucim/index.d.ts.map +1 -0
  2202. package/dist/lucim/index.js +9 -0
  2203. package/dist/lucim/index.js.map +1 -0
  2204. package/dist/lucim/types.cjs +15 -0
  2205. package/dist/lucim/types.d.ts +35 -0
  2206. package/dist/lucim/types.d.ts.map +1 -0
  2207. package/dist/lucim/types.js +5 -0
  2208. package/dist/lucim/types.js.map +1 -0
  2209. package/dist/lucim/volume-utils.cjs +193 -0
  2210. package/dist/lucim/volume-utils.d.ts +30 -0
  2211. package/dist/lucim/volume-utils.d.ts.map +1 -0
  2212. package/dist/lucim/volume-utils.js +167 -0
  2213. package/dist/lucim/volume-utils.js.map +1 -0
  2214. package/dist/utils/assemble-compute-kernel.cjs +46 -0
  2215. package/dist/utils/assemble-compute-kernel.d.ts +11 -0
  2216. package/dist/utils/assemble-compute-kernel.d.ts.map +1 -0
  2217. package/dist/utils/assemble-compute-kernel.js +24 -0
  2218. package/dist/utils/assemble-compute-kernel.js.map +1 -0
  2219. package/dist/utils/gpu-spatial-operation.cjs +87 -0
  2220. package/dist/utils/gpu-spatial-operation.d.ts +13 -0
  2221. package/dist/utils/gpu-spatial-operation.d.ts.map +1 -0
  2222. package/dist/utils/gpu-spatial-operation.js +81 -0
  2223. package/dist/utils/gpu-spatial-operation.js.map +1 -0
  2224. package/package.json +222 -4
  2225. package/src/arrow/dggs/dggs-gpu-polygons.ts +820 -0
  2226. package/src/arrow/geoarrow/arrow-geoarrow-adapter.ts +519 -0
  2227. package/src/arrow/geoarrow/arrow-geoarrow-conversion.ts +415 -0
  2228. package/src/arrow/geoarrow/arrow-polygon-tessellation.ts +369 -0
  2229. package/src/arrow/gpu/arrow-gpu-analytics-adapters.ts +474 -0
  2230. package/src/arrow/gpu/arrow-gpu-analytics-readback.ts +294 -0
  2231. package/src/arrow/gpu/arrow-gpu-table-adapters.ts +378 -0
  2232. package/src/arrow/gpu/arrow-gpu-table-conversion.ts +324 -0
  2233. package/src/arrow/gpu/arrow-input-schema.ts +98 -0
  2234. package/src/arrow/index.ts +79 -0
  2235. package/src/arrow/internal.ts +23 -0
  2236. package/src/experimental/index.ts +6 -0
  2237. package/src/experimental/models/index.ts +31 -0
  2238. package/src/experimental/models/path/gpu/gpu-path-expansion.ts +321 -0
  2239. package/src/experimental/models/path/gpu/path-storage-gpu-inputs.ts +246 -0
  2240. package/src/experimental/models/polygon/polygon-gpu-inputs.ts +102 -0
  2241. package/src/experimental/simulation/PARCELS-LICENSE.txt +19 -0
  2242. package/src/experimental/simulation/README.md +99 -0
  2243. package/src/experimental/simulation/SCIENTIFIC-FLOW.md +120 -0
  2244. package/src/experimental/simulation/flow-field-atlas.ts +85 -0
  2245. package/src/experimental/simulation/flow-particle-field.ts +45 -0
  2246. package/src/experimental/simulation/flow-particle-shaders.ts +160 -0
  2247. package/src/experimental/simulation/flow-particle-simulation.ts +259 -0
  2248. package/src/experimental/simulation/index.ts +50 -0
  2249. package/src/experimental/simulation/mls-mpm-fluid-simulation-shaders.ts +365 -0
  2250. package/src/experimental/simulation/mls-mpm-fluid-simulation.ts +1077 -0
  2251. package/src/experimental/simulation/scientific-flow-compute.ts +289 -0
  2252. package/src/experimental/simulation/scientific-flow-field.ts +121 -0
  2253. package/src/experimental/simulation/scientific-flow-graph.ts +202 -0
  2254. package/src/experimental/simulation/scientific-flow-rk45-shaders.ts +137 -0
  2255. package/src/experimental/simulation/scientific-flow-sampling-shaders.ts +44 -0
  2256. package/src/experimental/simulation/scientific-flow-tracer.ts +482 -0
  2257. package/src/geospatial/geospatial-utils.ts +590 -0
  2258. package/src/geospatial/gpu-haversine-distance.ts +203 -0
  2259. package/src/geospatial/gpu-pairwise-point-distance.ts +140 -0
  2260. package/src/geospatial/gpu-pairwise-point-in-polygon.ts +499 -0
  2261. package/src/geospatial/gpu-pairwise-point-linestring-nearest.ts +788 -0
  2262. package/src/geospatial/gpu-pairwise-point-segment-distance.ts +254 -0
  2263. package/src/geospatial/gpu-point-spatial-query.ts +1046 -0
  2264. package/src/geospatial/gpu-sinusoidal-projection.ts +141 -0
  2265. package/src/geospatial/gpu-spatial-query-types.ts +28 -0
  2266. package/src/geospatial/index.ts +52 -0
  2267. package/src/geospatial/types.ts +29 -0
  2268. package/src/gpu-a5/gpu-a5-cell-projection.ts +18 -0
  2269. package/src/gpu-a5/index.ts +10 -0
  2270. package/src/gpu-core/dispatch-command-buffer.ts +155 -0
  2271. package/src/gpu-core/draw-command-buffer.ts +281 -0
  2272. package/src/gpu-core/gpu-adaptive-spmv.ts +359 -0
  2273. package/src/gpu-core/gpu-ancestor-projection.ts +374 -0
  2274. package/src/gpu-core/gpu-batch-hash-index.ts +229 -0
  2275. package/src/gpu-core/gpu-batch-hash-join.ts +290 -0
  2276. package/src/gpu-core/gpu-batch-sort.ts +161 -0
  2277. package/src/gpu-core/gpu-bvh-query.ts +580 -0
  2278. package/src/gpu-core/gpu-bvh.ts +666 -0
  2279. package/src/gpu-core/gpu-byte-range-gather.ts +323 -0
  2280. package/src/gpu-core/gpu-chunk-utils.ts +202 -0
  2281. package/src/gpu-core/gpu-chunked-indexed-scatter.ts +685 -0
  2282. package/src/gpu-core/gpu-command-dispatch-metadata.ts +45 -0
  2283. package/src/gpu-core/gpu-command-graph-autotuner.ts +417 -0
  2284. package/src/gpu-core/gpu-command-graph-budget-controller.ts +229 -0
  2285. package/src/gpu-core/gpu-command-graph-compiler.ts +992 -0
  2286. package/src/gpu-core/gpu-command-graph-inspector.ts +596 -0
  2287. package/src/gpu-core/gpu-command-graph-lowering-scope.ts +91 -0
  2288. package/src/gpu-core/gpu-command-graph-types.ts +873 -0
  2289. package/src/gpu-core/gpu-command-graph.ts +2526 -0
  2290. package/src/gpu-core/gpu-command-node.ts +78 -0
  2291. package/src/gpu-core/gpu-compaction.ts +431 -0
  2292. package/src/gpu-core/gpu-conjugate-gradient-program.ts +201 -0
  2293. package/src/gpu-core/gpu-control-flow-operation.ts +75 -0
  2294. package/src/gpu-core/gpu-convolution-benchmark.ts +448 -0
  2295. package/src/gpu-core/gpu-convolution.ts +1141 -0
  2296. package/src/gpu-core/gpu-coo-to-csr.ts +136 -0
  2297. package/src/gpu-core/gpu-dense-utils.ts +204 -0
  2298. package/src/gpu-core/gpu-dispatch-utils.ts +65 -0
  2299. package/src/gpu-core/gpu-dot-product-scalar.ts +89 -0
  2300. package/src/gpu-core/gpu-elementwise-scalar.ts +176 -0
  2301. package/src/gpu-core/gpu-elementwise.ts +309 -0
  2302. package/src/gpu-core/gpu-fft-utils.ts +69 -0
  2303. package/src/gpu-core/gpu-fft1d-benchmark.ts +269 -0
  2304. package/src/gpu-core/gpu-fft1d.ts +673 -0
  2305. package/src/gpu-core/gpu-fft2d-shaders.ts +87 -0
  2306. package/src/gpu-core/gpu-fft2d.ts +507 -0
  2307. package/src/gpu-core/gpu-finite-difference-2d.ts +282 -0
  2308. package/src/gpu-core/gpu-finite-difference-3d.ts +284 -0
  2309. package/src/gpu-core/gpu-finite-difference-utils.ts +341 -0
  2310. package/src/gpu-core/gpu-flag-offsets.ts +195 -0
  2311. package/src/gpu-core/gpu-galloping-search-chunks.ts +200 -0
  2312. package/src/gpu-core/gpu-galloping-search.ts +507 -0
  2313. package/src/gpu-core/gpu-gather.ts +307 -0
  2314. package/src/gpu-core/gpu-graph-compiler.ts +548 -0
  2315. package/src/gpu-core/gpu-graph-inspector.ts +43 -0
  2316. package/src/gpu-core/gpu-graph-lowering.ts +68 -0
  2317. package/src/gpu-core/gpu-graph-traversal.ts +912 -0
  2318. package/src/gpu-core/gpu-graph-validation.ts +66 -0
  2319. package/src/gpu-core/gpu-graph-value.ts +111 -0
  2320. package/src/gpu-core/gpu-graph.ts +115 -0
  2321. package/src/gpu-core/gpu-grid-aggregation.ts +574 -0
  2322. package/src/gpu-core/gpu-grid-binning.ts +365 -0
  2323. package/src/gpu-core/gpu-grid-index-internals.ts +305 -0
  2324. package/src/gpu-core/gpu-grid-index-query.ts +534 -0
  2325. package/src/gpu-core/gpu-grid-index.ts +208 -0
  2326. package/src/gpu-core/gpu-group-aggregation.ts +794 -0
  2327. package/src/gpu-core/gpu-hash-index.ts +828 -0
  2328. package/src/gpu-core/gpu-hash-join.ts +579 -0
  2329. package/src/gpu-core/gpu-hierarchy-layout.ts +330 -0
  2330. package/src/gpu-core/gpu-histogram.ts +855 -0
  2331. package/src/gpu-core/gpu-incremental-execution.ts +218 -0
  2332. package/src/gpu-core/gpu-index-picking-target.ts +452 -0
  2333. package/src/gpu-core/gpu-indexed-range-compaction.ts +1163 -0
  2334. package/src/gpu-core/gpu-jacobi-preconditioner.ts +120 -0
  2335. package/src/gpu-core/gpu-lz-byte-batch-decompressor.ts +308 -0
  2336. package/src/gpu-core/gpu-lz-byte-decompressor.ts +386 -0
  2337. package/src/gpu-core/gpu-mask.ts +266 -0
  2338. package/src/gpu-core/gpu-matmul.ts +178 -0
  2339. package/src/gpu-core/gpu-matvec.ts +134 -0
  2340. package/src/gpu-core/gpu-operation.ts +120 -0
  2341. package/src/gpu-core/gpu-pcg.ts +330 -0
  2342. package/src/gpu-core/gpu-planning-heap.ts +47 -0
  2343. package/src/gpu-core/gpu-point-spatial-filter.ts +420 -0
  2344. package/src/gpu-core/gpu-predicate-conjunction.ts +71 -0
  2345. package/src/gpu-core/gpu-readback-ring.ts +261 -0
  2346. package/src/gpu-core/gpu-reduction-strategy.ts +84 -0
  2347. package/src/gpu-core/gpu-reduction-substrate.ts +227 -0
  2348. package/src/gpu-core/gpu-reduction.ts +758 -0
  2349. package/src/gpu-core/gpu-resource-preview.ts +80 -0
  2350. package/src/gpu-core/gpu-run-length-encode.ts +211 -0
  2351. package/src/gpu-core/gpu-scalar-dispatch-gate.ts +125 -0
  2352. package/src/gpu-core/gpu-scalar-literal.ts +76 -0
  2353. package/src/gpu-core/gpu-scalar-operation.ts +169 -0
  2354. package/src/gpu-core/gpu-scalar.ts +108 -0
  2355. package/src/gpu-core/gpu-scan.ts +955 -0
  2356. package/src/gpu-core/gpu-scatter.ts +193 -0
  2357. package/src/gpu-core/gpu-scene-draw-generation.ts +640 -0
  2358. package/src/gpu-core/gpu-scene-resource-groups.ts +445 -0
  2359. package/src/gpu-core/gpu-scene.ts +710 -0
  2360. package/src/gpu-core/gpu-segment-offsets.ts +352 -0
  2361. package/src/gpu-core/gpu-segmented-bvh.ts +544 -0
  2362. package/src/gpu-core/gpu-segmented-layout.ts +468 -0
  2363. package/src/gpu-core/gpu-segmented-reduction.ts +187 -0
  2364. package/src/gpu-core/gpu-segmented-scan.ts +123 -0
  2365. package/src/gpu-core/gpu-segmented-sort.ts +508 -0
  2366. package/src/gpu-core/gpu-semantic-scalar-operation.ts +100 -0
  2367. package/src/gpu-core/gpu-semantic-spmv.ts +69 -0
  2368. package/src/gpu-core/gpu-semantic-state-operation.ts +20 -0
  2369. package/src/gpu-core/gpu-semantic-vector-operation.ts +48 -0
  2370. package/src/gpu-core/gpu-sort-chunks.ts +124 -0
  2371. package/src/gpu-core/gpu-sort.ts +1002 -0
  2372. package/src/gpu-core/gpu-spatial-query-benchmark.ts +310 -0
  2373. package/src/gpu-core/gpu-spatial-utils.ts +83 -0
  2374. package/src/gpu-core/gpu-spmv-strategy.ts +95 -0
  2375. package/src/gpu-core/gpu-strategy.ts +75 -0
  2376. package/src/gpu-core/gpu-subgroup-utils.ts +82 -0
  2377. package/src/gpu-core/gpu-text-selection.ts +336 -0
  2378. package/src/gpu-core/gpu-texture-history.ts +100 -0
  2379. package/src/gpu-core/gpu-transient-lifetime-planner.ts +95 -0
  2380. package/src/gpu-core/gpu-transpose-benchmark.ts +343 -0
  2381. package/src/gpu-core/gpu-transpose.ts +426 -0
  2382. package/src/gpu-core/gpu-uint32-gather.ts +35 -0
  2383. package/src/gpu-core/gpu-uint64-scan.ts +239 -0
  2384. package/src/gpu-core/gpu-value-arena-inspector.ts +53 -0
  2385. package/src/gpu-core/gpu-value-arena.ts +114 -0
  2386. package/src/gpu-core/gpu-virtual-geometry-selection.ts +677 -0
  2387. package/src/gpu-core/gpu-visibility-workflow.ts +354 -0
  2388. package/src/gpu-core/gpu-workgroup-reduction-benchmark.ts +363 -0
  2389. package/src/gpu-core/gpu-workgroup-scan-benchmark.ts +407 -0
  2390. package/src/gpu-core/graph-data-view-utils.ts +218 -0
  2391. package/src/gpu-core/graph-vector-view-utils.ts +69 -0
  2392. package/src/gpu-core/index.ts +655 -0
  2393. package/src/gpu-core/utils/bound-kernel.ts +23 -0
  2394. package/src/gpu-crossfilter/README.md +146 -0
  2395. package/src/gpu-crossfilter/gpu-crossfilter.ts +568 -0
  2396. package/src/gpu-crossfilter/gpu-selection.ts +470 -0
  2397. package/src/gpu-crossfilter/index.ts +25 -0
  2398. package/src/gpu-dataframe/gpu-analytics-compiler-utils.ts +321 -0
  2399. package/src/gpu-dataframe/gpu-data-frame-query.ts +461 -0
  2400. package/src/gpu-dataframe/gpu-data-frame.ts +663 -0
  2401. package/src/gpu-dataframe/gpu-expression-shader.ts +530 -0
  2402. package/src/gpu-dataframe/gpu-expression.ts +309 -0
  2403. package/src/gpu-dataframe/gpu-global-aggregation-compiler.ts +436 -0
  2404. package/src/gpu-dataframe/gpu-global-aggregation-query.ts +182 -0
  2405. package/src/gpu-dataframe/gpu-global-sort-compiler.ts +564 -0
  2406. package/src/gpu-dataframe/gpu-group-aggregation-compiler.ts +527 -0
  2407. package/src/gpu-dataframe/gpu-group-by-query.ts +267 -0
  2408. package/src/gpu-dataframe/gpu-histogram-compiler.ts +194 -0
  2409. package/src/gpu-dataframe/gpu-histogram-query.ts +151 -0
  2410. package/src/gpu-dataframe/gpu-join-compiler.ts +964 -0
  2411. package/src/gpu-dataframe/gpu-join-query.ts +312 -0
  2412. package/src/gpu-dataframe/gpu-query-compiler.ts +826 -0
  2413. package/src/gpu-dataframe/gpu-sort-compiler.ts +471 -0
  2414. package/src/gpu-dataframe/gpu-sort-query.ts +183 -0
  2415. package/src/gpu-dataframe/index.ts +65 -0
  2416. package/src/gpu-dggs/benchmarks.ts +10 -0
  2417. package/src/gpu-dggs/gpu-dggs-cell-projection-benchmark.ts +378 -0
  2418. package/src/gpu-dggs/gpu-dggs-cell-projection.ts +233 -0
  2419. package/src/gpu-dggs/index.ts +12 -0
  2420. package/src/gpu-effects/fft-bloom-shaders.ts +290 -0
  2421. package/src/gpu-effects/fft-bloom.ts +905 -0
  2422. package/src/gpu-effects/index.ts +21 -0
  2423. package/src/gpu-geometry/gpu-mesh-normals.ts +80 -0
  2424. package/src/gpu-geometry/gpu-mesh-smoothing.ts +58 -0
  2425. package/src/gpu-geometry/index.ts +8 -0
  2426. package/src/gpu-graph/index.ts +53 -0
  2427. package/src/gpu-graph-algorithms/README.md +158 -0
  2428. package/src/gpu-graph-algorithms/benchmarks.ts +16 -0
  2429. package/src/gpu-graph-algorithms/gpu-graph-benchmark-data.ts +944 -0
  2430. package/src/gpu-graph-algorithms/gpu-graph-benchmark.ts +850 -0
  2431. package/src/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.ts +418 -0
  2432. package/src/gpu-graph-algorithms/gpu-graph-breadth-first-search.ts +256 -0
  2433. package/src/gpu-graph-algorithms/gpu-graph-connected-components-internals.ts +370 -0
  2434. package/src/gpu-graph-algorithms/gpu-graph-connected-components.ts +165 -0
  2435. package/src/gpu-graph-algorithms/gpu-graph-core-number-internals.ts +543 -0
  2436. package/src/gpu-graph-algorithms/gpu-graph-core-number.ts +180 -0
  2437. package/src/gpu-graph-algorithms/gpu-graph-degree-internals.ts +120 -0
  2438. package/src/gpu-graph-algorithms/gpu-graph-degree.ts +147 -0
  2439. package/src/gpu-graph-algorithms/gpu-graph-force-layout-internals.ts +516 -0
  2440. package/src/gpu-graph-algorithms/gpu-graph-force-layout.ts +267 -0
  2441. package/src/gpu-graph-algorithms/gpu-graph-label-propagation-internals.ts +467 -0
  2442. package/src/gpu-graph-algorithms/gpu-graph-label-propagation.ts +174 -0
  2443. package/src/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.ts +319 -0
  2444. package/src/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.ts +180 -0
  2445. package/src/gpu-graph-algorithms/gpu-graph-modularity-internals.ts +534 -0
  2446. package/src/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.ts +1054 -0
  2447. package/src/gpu-graph-algorithms/gpu-graph-modularity-optimization.ts +238 -0
  2448. package/src/gpu-graph-algorithms/gpu-graph-modularity.ts +181 -0
  2449. package/src/gpu-graph-algorithms/gpu-graph-page-rank-internals.ts +619 -0
  2450. package/src/gpu-graph-algorithms/gpu-graph-page-rank.ts +178 -0
  2451. package/src/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.ts +723 -0
  2452. package/src/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.ts +234 -0
  2453. package/src/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.ts +738 -0
  2454. package/src/gpu-graph-algorithms/gpu-graph-spatial-force-layout.ts +246 -0
  2455. package/src/gpu-graph-algorithms/gpu-graph-topology-internals.ts +727 -0
  2456. package/src/gpu-graph-algorithms/gpu-graph-topology.ts +229 -0
  2457. package/src/gpu-graph-algorithms/gpu-graph.ts +229 -0
  2458. package/src/gpu-graph-algorithms/index.ts +50 -0
  2459. package/src/gpu-h3/gpu-h3-cell-projection.ts +24 -0
  2460. package/src/gpu-h3/index.ts +10 -0
  2461. package/src/gpu-parse/README.md +38 -0
  2462. package/src/gpu-parse/compression/gpu-lz4-raw-decompressor.ts +66 -0
  2463. package/src/gpu-parse/compression/gpu-snappy-decompressor.ts +48 -0
  2464. package/src/gpu-parse/compression/lz4-raw-plan.ts +99 -0
  2465. package/src/gpu-parse/compression/snappy-plan.ts +162 -0
  2466. package/src/gpu-parse/index.ts +196 -0
  2467. package/src/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.ts +182 -0
  2468. package/src/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.ts +87 -0
  2469. package/src/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.ts +252 -0
  2470. package/src/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.ts +243 -0
  2471. package/src/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.ts +55 -0
  2472. package/src/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.ts +61 -0
  2473. package/src/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.ts +262 -0
  2474. package/src/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.ts +281 -0
  2475. package/src/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.ts +443 -0
  2476. package/src/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.ts +50 -0
  2477. package/src/gpu-parse/parquet/gpu-parquet-dictionary-decoder.ts +256 -0
  2478. package/src/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.ts +406 -0
  2479. package/src/gpu-parse/parquet/gpu-parquet-encoded-page-batch.ts +709 -0
  2480. package/src/gpu-parse/parquet/gpu-parquet-level-layout.ts +268 -0
  2481. package/src/gpu-parse/parquet/gpu-parquet-nested-column-layout.ts +441 -0
  2482. package/src/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.ts +170 -0
  2483. package/src/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.ts +42 -0
  2484. package/src/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.ts +279 -0
  2485. package/src/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.ts +60 -0
  2486. package/src/gpu-parse/parquet/parquet-column-decode-plan.ts +101 -0
  2487. package/src/gpu-parse/parquet/parquet-delta-binary-packed-int64.ts +149 -0
  2488. package/src/gpu-parse/parquet/parquet-delta-binary-packed.ts +132 -0
  2489. package/src/gpu-parse/parquet/parquet-delta-byte-array.ts +59 -0
  2490. package/src/gpu-parse/parquet/parquet-delta-length-byte-array.ts +27 -0
  2491. package/src/gpu-parse/parquet/parquet-encoded-page-batch.ts +1320 -0
  2492. package/src/gpu-parse/parquet/parquet-plain-byte-array.ts +64 -0
  2493. package/src/gpu-parse/parquet/parquet-rle-bit-packed.ts +93 -0
  2494. package/src/gpu-parse/parquet/parquet-rle-framing.ts +112 -0
  2495. package/src/gpu-physics/README.md +42 -0
  2496. package/src/gpu-physics/gpu-physics-batch.ts +351 -0
  2497. package/src/gpu-physics/gpu-physics-ensemble.ts +208 -0
  2498. package/src/gpu-physics/gpu-rigid-body-world.ts +3040 -0
  2499. package/src/gpu-physics/gpu-sphere-world.ts +1255 -0
  2500. package/src/gpu-physics/index.ts +118 -0
  2501. package/src/gpu-physics/joint-types.ts +22 -0
  2502. package/src/gpu-physics/rigid-body-bounds-shaders.ts +50 -0
  2503. package/src/gpu-physics/rigid-body-broad-phase.ts +428 -0
  2504. package/src/gpu-physics/rigid-body-cache-shaders.ts +108 -0
  2505. package/src/gpu-physics/rigid-body-capacity.ts +125 -0
  2506. package/src/gpu-physics/rigid-body-contact-features.ts +72 -0
  2507. package/src/gpu-physics/rigid-body-continuous.ts +410 -0
  2508. package/src/gpu-physics/rigid-body-convex-continuous-shader.ts +535 -0
  2509. package/src/gpu-physics/rigid-body-convex-shaders.ts +218 -0
  2510. package/src/gpu-physics/rigid-body-diagnostics.ts +155 -0
  2511. package/src/gpu-physics/rigid-body-ensemble-layout.ts +38 -0
  2512. package/src/gpu-physics/rigid-body-ensemble-reset.ts +141 -0
  2513. package/src/gpu-physics/rigid-body-ensemble-shaders.ts +157 -0
  2514. package/src/gpu-physics/rigid-body-ensemble-transaction.ts +220 -0
  2515. package/src/gpu-physics/rigid-body-events.ts +94 -0
  2516. package/src/gpu-physics/rigid-body-general-joints.ts +132 -0
  2517. package/src/gpu-physics/rigid-body-geometry.ts +79 -0
  2518. package/src/gpu-physics/rigid-body-joints.ts +285 -0
  2519. package/src/gpu-physics/rigid-body-journal.ts +131 -0
  2520. package/src/gpu-physics/rigid-body-mesh-query-shaders.ts +98 -0
  2521. package/src/gpu-physics/rigid-body-mesh.ts +296 -0
  2522. package/src/gpu-physics/rigid-body-orientation.ts +39 -0
  2523. package/src/gpu-physics/rigid-body-origin.ts +74 -0
  2524. package/src/gpu-physics/rigid-body-parallel-shaders.ts +225 -0
  2525. package/src/gpu-physics/rigid-body-properties.ts +163 -0
  2526. package/src/gpu-physics/rigid-body-publication.ts +134 -0
  2527. package/src/gpu-physics/rigid-body-queries.ts +90 -0
  2528. package/src/gpu-physics/rigid-body-query-geometry.ts +261 -0
  2529. package/src/gpu-physics/rigid-body-recovery.ts +257 -0
  2530. package/src/gpu-physics/rigid-body-shaders.ts +481 -0
  2531. package/src/gpu-physics/rigid-body-shape-properties.ts +105 -0
  2532. package/src/gpu-physics/rigid-body-support-shaders.ts +42 -0
  2533. package/src/gpu-physics/rigid-body-transaction.ts +197 -0
  2534. package/src/gpu-physics/rigid-body-triggers.ts +333 -0
  2535. package/src/gpu-physics/scale-shape.ts +50 -0
  2536. package/src/gpu-physics/sphere-calibration.ts +188 -0
  2537. package/src/gpu-physics/sphere-events.ts +64 -0
  2538. package/src/gpu-physics/sphere-persistent-contacts.ts +221 -0
  2539. package/src/gpu-physics/sphere-shapes.ts +65 -0
  2540. package/src/gpu-physics/sphere-world-events.ts +168 -0
  2541. package/src/gpu-physics/sphere-world-shaders.ts +385 -0
  2542. package/src/gpu-pointcloud/gpu-pointcloud-octree.ts +356 -0
  2543. package/src/gpu-pointcloud/gpu-pointcloud-radius-filter.ts +62 -0
  2544. package/src/gpu-pointcloud/gpu-pointcloud-voxel-downsample.ts +83 -0
  2545. package/src/gpu-pointcloud/index.ts +10 -0
  2546. package/src/gpu-project/README.md +479 -0
  2547. package/src/gpu-project/benchmarks.ts +44 -0
  2548. package/src/gpu-project/crs.ts +282 -0
  2549. package/src/gpu-project/gpu-projection-benchmark.ts +404 -0
  2550. package/src/gpu-project/gpu-projection-program.ts +193 -0
  2551. package/src/gpu-project/gpu-projection-table.ts +197 -0
  2552. package/src/gpu-project/gpu-projection.ts +380 -0
  2553. package/src/gpu-project/index.ts +86 -0
  2554. package/src/gpu-project/projection-benchmark.ts +243 -0
  2555. package/src/gpu-project/projection-conic.ts +308 -0
  2556. package/src/gpu-project/projection-crs-benchmark.ts +127 -0
  2557. package/src/gpu-project/projection-crs-identifiers.ts +23 -0
  2558. package/src/gpu-project/projection-crs-input.ts +221 -0
  2559. package/src/gpu-project/projection-crs-lowering.ts +606 -0
  2560. package/src/gpu-project/projection-crs-provider.ts +125 -0
  2561. package/src/gpu-project/projection-engine.ts +113 -0
  2562. package/src/gpu-project/projection-execution.ts +143 -0
  2563. package/src/gpu-project/projection-longitude-wrap.ts +88 -0
  2564. package/src/gpu-project/projection-metadata.ts +190 -0
  2565. package/src/gpu-project/projection-partition.ts +259 -0
  2566. package/src/gpu-project/projection-pipeline.ts +429 -0
  2567. package/src/gpu-project/projection-plan.ts +985 -0
  2568. package/src/gpu-project/projection-planning.ts +221 -0
  2569. package/src/gpu-project/projection-program-benchmark.ts +582 -0
  2570. package/src/gpu-project/projection-program-cpu-benchmark.ts +179 -0
  2571. package/src/gpu-project/projection-program.ts +473 -0
  2572. package/src/gpu-project/projection-routing-benchmark.ts +249 -0
  2573. package/src/gpu-project/projection-routing.ts +82 -0
  2574. package/src/gpu-project/projection-shader.ts +499 -0
  2575. package/src/gpu-project/projection-table-benchmark.ts +407 -0
  2576. package/src/gpu-project/projection-table-transform.ts +134 -0
  2577. package/src/gpu-project/projection-transverse-mercator.ts +267 -0
  2578. package/src/gpu-project/projection-web-mercator.ts +74 -0
  2579. package/src/gpu-project/types.ts +107 -0
  2580. package/src/gpu-project/web-mercator.ts +49 -0
  2581. package/src/gpu-raster/gpu-raster-band-math.ts +342 -0
  2582. package/src/gpu-raster/gpu-raster-buffer-to-texture.ts +284 -0
  2583. package/src/gpu-raster/gpu-raster-connected-components.ts +552 -0
  2584. package/src/gpu-raster/gpu-raster-contours.ts +799 -0
  2585. package/src/gpu-raster/gpu-raster-contrast.ts +519 -0
  2586. package/src/gpu-raster/gpu-raster-convolution.ts +236 -0
  2587. package/src/gpu-raster/gpu-raster-cross-tile-components.ts +1443 -0
  2588. package/src/gpu-raster/gpu-raster-dense-components.ts +405 -0
  2589. package/src/gpu-raster/gpu-raster-edges.ts +386 -0
  2590. package/src/gpu-raster/gpu-raster-global-statistics.ts +651 -0
  2591. package/src/gpu-raster/gpu-raster-histogram.ts +292 -0
  2592. package/src/gpu-raster/gpu-raster-morphology.ts +650 -0
  2593. package/src/gpu-raster/gpu-raster-ndvi.ts +73 -0
  2594. package/src/gpu-raster/gpu-raster-neighborhood.ts +395 -0
  2595. package/src/gpu-raster/gpu-raster-overview.ts +674 -0
  2596. package/src/gpu-raster/gpu-raster-region-measurements.ts +653 -0
  2597. package/src/gpu-raster/gpu-raster-statistics.ts +321 -0
  2598. package/src/gpu-raster/gpu-raster-texture-to-buffer.ts +232 -0
  2599. package/src/gpu-raster/gpu-raster-threshold.ts +500 -0
  2600. package/src/gpu-raster/gpu-raster-tile-cache.ts +780 -0
  2601. package/src/gpu-raster/gpu-raster-tile-halo.ts +644 -0
  2602. package/src/gpu-raster/gpu-raster-tile-source.ts +612 -0
  2603. package/src/gpu-raster/gpu-raster.ts +115 -0
  2604. package/src/gpu-raster/index.ts +222 -0
  2605. package/src/gpu-raster/raster-device-limits.ts +215 -0
  2606. package/src/gpu-raster/raster-utils.ts +302 -0
  2607. package/src/gpu-raster/types.ts +91 -0
  2608. package/src/gpu-simple-graph/README.md +116 -0
  2609. package/src/gpu-simple-graph/gpu-simple-graph-lowering.ts +226 -0
  2610. package/src/gpu-simple-graph/gpu-simple-graph-operation.ts +47 -0
  2611. package/src/gpu-simple-graph/gpu-simple-graph-transfer.ts +134 -0
  2612. package/src/gpu-simple-graph/gpu-simple-graph-value.ts +186 -0
  2613. package/src/gpu-simple-graph/gpu-simple-graph.ts +364 -0
  2614. package/src/gpu-simple-graph/index.ts +26 -0
  2615. package/src/gpu-simulation/index.ts +31 -0
  2616. package/src/gpu-simulation/spectral-ocean-initial-spectrum.ts +79 -0
  2617. package/src/gpu-simulation/spectral-ocean-simulation-shaders.ts +182 -0
  2618. package/src/gpu-simulation/spectral-ocean-simulation.ts +722 -0
  2619. package/src/gpu-simulation/volumetric-fire-simulation-shaders.ts +961 -0
  2620. package/src/gpu-simulation/volumetric-fire-simulation.ts +816 -0
  2621. package/src/gpu-sql/index.ts +6 -0
  2622. package/src/gpu-sql/lu-sql.ts +599 -0
  2623. package/src/gpu-tables/engine/gpu-input-schema.ts +107 -0
  2624. package/src/gpu-tables/engine/gpu-renderable.ts +33 -0
  2625. package/src/gpu-tables/engine/gpu-scene-adapters.ts +322 -0
  2626. package/src/gpu-tables/engine/gpu-table-computation.ts +236 -0
  2627. package/src/gpu-tables/engine/gpu-table-shader-bindings.ts +562 -0
  2628. package/src/gpu-tables/index.ts +83 -0
  2629. package/src/gpu-tables/table/gpu-record-batch.ts +206 -0
  2630. package/src/gpu-tables/table/gpu-schema.ts +61 -0
  2631. package/src/gpu-tables/table/gpu-table.ts +1013 -0
  2632. package/src/gpu-tables/utils/generated-buffer-batches.ts +165 -0
  2633. package/src/gpu-tables/utils/gpu-table-buffer-planner.ts +754 -0
  2634. package/src/gpu-timeseries/gpu-time-series-envelope.ts +194 -0
  2635. package/src/gpu-timeseries/gpu-time-series.ts +62 -0
  2636. package/src/gpu-timeseries/index.ts +8 -0
  2637. package/src/gpu-trace/README.md +187 -0
  2638. package/src/gpu-trace/gpu-trace-aggregation.ts +163 -0
  2639. package/src/gpu-trace/gpu-trace-analytics-output.ts +176 -0
  2640. package/src/gpu-trace/gpu-trace-anomaly-scoring.ts +634 -0
  2641. package/src/gpu-trace/gpu-trace-comparison.ts +566 -0
  2642. package/src/gpu-trace/gpu-trace-critical-path.ts +780 -0
  2643. package/src/gpu-trace/gpu-trace-interaction.ts +597 -0
  2644. package/src/gpu-trace/gpu-trace-lane-index-builder.ts +672 -0
  2645. package/src/gpu-trace/gpu-trace-mipmap-boundaries.ts +419 -0
  2646. package/src/gpu-trace/gpu-trace-picking.ts +70 -0
  2647. package/src/gpu-trace/gpu-trace-pixel-mipmap.ts +956 -0
  2648. package/src/gpu-trace/gpu-trace-range-maximum-index.ts +424 -0
  2649. package/src/gpu-trace/gpu-trace-scene.ts +581 -0
  2650. package/src/gpu-trace/gpu-trace-temporal-index-builder.ts +384 -0
  2651. package/src/gpu-trace/gpu-trace-temporal-index.ts +934 -0
  2652. package/src/gpu-trace/gpu-trace-time-buckets.ts +609 -0
  2653. package/src/gpu-trace/index.ts +149 -0
  2654. package/src/gpu-vector-search/embedding-matrix.ts +381 -0
  2655. package/src/gpu-vector-search/gpu-clustering-utils.ts +329 -0
  2656. package/src/gpu-vector-search/gpu-ivf-flat-index.ts +1528 -0
  2657. package/src/gpu-vector-search/gpu-k-means.ts +799 -0
  2658. package/src/gpu-vector-search/gpu-similarity-search.ts +1148 -0
  2659. package/src/gpu-vector-search/index.ts +27 -0
  2660. package/src/gpu-vector-search/types.ts +72 -0
  2661. package/src/index.ts +8 -0
  2662. package/src/lucim/gpu-volume-connected-components.ts +580 -0
  2663. package/src/lucim/gpu-volume-morphology.ts +651 -0
  2664. package/src/lucim/gpu-volume-region-measurements.ts +398 -0
  2665. package/src/lucim/gpu-volume-threshold.ts +288 -0
  2666. package/src/lucim/gpu-volume.ts +126 -0
  2667. package/src/lucim/index.ts +50 -0
  2668. package/src/lucim/types.ts +44 -0
  2669. package/src/lucim/volume-utils.ts +216 -0
  2670. package/src/utils/assemble-compute-kernel.ts +34 -0
  2671. package/src/utils/gpu-spatial-operation.ts +109 -0
@@ -0,0 +1,2311 @@
1
+ // luma.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
4
+ import { createBoundKernel, createBoundKernelAsync } from "../gpu-core/utils/bound-kernel.js";
5
+ import { Buffer } from '@luma.gl/core';
6
+ import { shiftRigidBodyBuffers } from "./rigid-body-origin.js";
7
+ import { getRigidBodyShapeProperties } from "./rigid-body-shape-properties.js";
8
+ import { addEnsembleStatus, readOnlyEnsembleShader } from "./rigid-body-ensemble-shaders.js";
9
+ import { makeEnsembleReset } from "./rigid-body-ensemble-reset.js";
10
+ import { packRigidBodyShapes } from "./rigid-body-geometry.js";
11
+ import { getCompoundBodyInertia, normalizeRigidBodyRotation, rotateRigidBodyVector } from "./rigid-body-properties.js";
12
+ import { addGPUCommandNodes } from "../gpu-core/gpu-command-node.js";
13
+ import { GPURigidBodyBroadPhase, decodeRigidBodyBroadPhaseDiagnostics } from "./rigid-body-broad-phase.js";
14
+ import { addRigidBodyDiagnostics, decodeRigidBodySimulationDiagnostics } from "./rigid-body-diagnostics.js";
15
+ import { getRigidBodyStorageLayout } from "./rigid-body-capacity.js";
16
+ import { RIGID_BODY_QUERY_GEOMETRY_SHADER } from "./rigid-body-query-geometry.js";
17
+ import { addRigidBodyContinuous } from "./rigid-body-continuous.js";
18
+ import { addRigidBodyTriggers, makeRigidBodyTriggerLayout, decodeRigidBodyTriggerEvents } from "./rigid-body-triggers.js";
19
+ import { getEnsembleContactLayout } from "./rigid-body-ensemble-layout.js";
20
+ import { addEnsembleCheckpoint } from "./rigid-body-ensemble-transaction.js";
21
+ import { addRigidBodyCheckpoint } from "./rigid-body-transaction.js";
22
+ import { getRigidBodyJointShader, packRigidBodyJointState, RIGID_BODY_JOINT_STATE_BYTES, validateRigidBodyJoints } from "./rigid-body-joints.js";
23
+ import { addRigidBodyPosePublication } from "./rigid-body-publication.js";
24
+ import { getRigidBodyShader } from "./rigid-body-shaders.js";
25
+ import { decodeRigidBodyContactEvents, getRigidBodyEventShader } from "./rigid-body-events.js";
26
+ import { RIGID_BODY_QUERY_SHADER } from "./rigid-body-queries.js";
27
+ export class GPURigidBodyWorld {
28
+ worldOrigin = [0, 0, 0];
29
+ id;
30
+ count;
31
+ timeStep;
32
+ colliderCount;
33
+ colliderStorageCount;
34
+ broadPhase;
35
+ solver;
36
+ maximumPairs;
37
+ /** Borrowed by renderers; updated after each accepted or rolled-back step. */
38
+ poseMatrices = null;
39
+ poseBounds = null;
40
+ encodePosePublication;
41
+ positions = null;
42
+ orientations = null;
43
+ velocities = null;
44
+ angularVelocities = null;
45
+ sleepStates = null;
46
+ /** World-owned GPU event ring; present only when eventCapacity is positive. */
47
+ contactEvents = null;
48
+ triggerEvents = null;
49
+ triggerCursor = 0;
50
+ triggerRead = null;
51
+ eventCursor = 0;
52
+ eventRead = null;
53
+ queryComputation = null;
54
+ queryReduction = null;
55
+ querySettings = null;
56
+ querySelection = null;
57
+ queryOutput = null;
58
+ queryPending = false;
59
+ targets = null;
60
+ simulationStatistics = null;
61
+ colliders;
62
+ props;
63
+ ownedBuffers = [];
64
+ ensembleBuffer = null;
65
+ ensembleResetOrigin;
66
+ ensembleReset;
67
+ initialEnsembleBodies;
68
+ manifolds = null;
69
+ meshTasks = null;
70
+ parallelState = null;
71
+ parallelDispatch = null;
72
+ device = null;
73
+ control = null;
74
+ invalidation = null;
75
+ controlSettings = null;
76
+ destroyed = false;
77
+ colliderShapeScales = new Map();
78
+ gpuCheckpoints = new Set();
79
+ broadPhaseCounters = null;
80
+ constructor(props) {
81
+ for (const damping of [props.linearDamping ?? 0, props.angularDamping ?? 0]) {
82
+ if (!Number.isFinite(damping) || damping < 0)
83
+ throw new Error('Invalid damping');
84
+ }
85
+ if (props.publicationBounds &&
86
+ (props.publicationBounds.length !== props.bodies.length ||
87
+ props.publicationBounds.some(bounds => bounds.some(vector => vector.length !== 3 || !vector.every(value => Number.isFinite(Math.fround(value)))) || bounds[0].some((value, axis) => value > bounds[1][axis]))))
88
+ throw new Error('Invalid publication bounds');
89
+ this.id = props.id ?? 'gpu-rigid-body-world';
90
+ this.count = props.bodies.length;
91
+ this.solver = props.solver ?? 'ordered';
92
+ if (!['ordered', 'parallel'].includes(this.solver))
93
+ throw new Error('Invalid rigid-body solver');
94
+ validateRigidBodyJoints(props.joints ?? [], props.bodies, this.solver);
95
+ const colliderCount = props.bodies.reduce((sum, body) => sum + (body.colliders?.length ?? 1), 0);
96
+ this.broadPhase =
97
+ props.broadPhase ??
98
+ (Math.max(this.count, colliderCount) > 128 ? 'hierarchical-grid' : 'all-pairs');
99
+ this.timeStep = props.timeStep ?? 1 / 120;
100
+ const iterations = props.iterations ?? 16;
101
+ if ([
102
+ props.warmStartFactor ?? 1,
103
+ props.penetrationRecoveryFraction ?? 0.15,
104
+ props.parallelRelaxation ?? 1
105
+ ].some(value => !Number.isFinite(value) || value < 0 || value > 1) ||
106
+ props.parallelRelaxation === 0 ||
107
+ !Number.isFinite(props.maximumRecoverySpeed ?? 2) ||
108
+ (props.maximumRecoverySpeed ?? 2) < 0)
109
+ throw new Error('Invalid rigid-body stability settings');
110
+ if (props.failurePolicy && !['report', 'rollback'].includes(props.failurePolicy))
111
+ throw new Error('Invalid failure policy');
112
+ const eventCapacity = props.eventCapacity ?? 0;
113
+ if (!Number.isInteger(eventCapacity) ||
114
+ eventCapacity < 0 ||
115
+ eventCapacity > 65536 ||
116
+ !Number.isFinite(props.impactImpulseThreshold ?? 1) ||
117
+ (props.impactImpulseThreshold ?? 1) < 0)
118
+ throw new Error('Invalid contact event settings');
119
+ const maximumMeshTraversalTests = props.maximumMeshTraversalTestsPerPair ?? 65536;
120
+ if (!Number.isInteger(maximumMeshTraversalTests) ||
121
+ maximumMeshTraversalTests < 1 ||
122
+ maximumMeshTraversalTests > 1048576)
123
+ throw new Error('Invalid mesh traversal budget');
124
+ const maximumCandidateTests = props.maximumCandidateTestsPerCollider ?? 4096;
125
+ if (!Number.isInteger(maximumCandidateTests) ||
126
+ maximumCandidateTests < 1 ||
127
+ maximumCandidateTests > 65535)
128
+ throw new Error('Invalid rigid-body traversal budget');
129
+ if (this.count < 1 ||
130
+ this.count > (this.broadPhase === 'all-pairs' ? 128 : 65535) ||
131
+ !(this.timeStep > 0) ||
132
+ !Number.isFinite(this.timeStep) ||
133
+ !Number.isInteger(iterations) ||
134
+ iterations < 1 ||
135
+ iterations > 64)
136
+ throw new Error('Invalid rigid-body capacity or timestep');
137
+ const colliders = [];
138
+ for (const [bodyIndex, body] of props.bodies.entries()) {
139
+ if (!Number.isFinite(body.mass ?? 1) || (body.mass ?? 1) < 0)
140
+ throw new Error('Invalid rigid body mass');
141
+ if (body.shape ? body.colliders !== undefined : body.colliders === undefined)
142
+ throw new Error('Supply shape or colliders');
143
+ const shapes = body.colliders ?? (body.shape ? [{ shape: body.shape }] : []);
144
+ for (const collider of shapes) {
145
+ const properties = getRigidBodyShapeProperties(collider.shape);
146
+ if (!Number.isFinite(properties.volume) ||
147
+ !properties.center.every(Number.isFinite) ||
148
+ !properties.tensor.every(Number.isFinite))
149
+ throw new Error('Invalid shape properties');
150
+ if ((collider.shape.type === 'convex-hull' || collider.shape.type === 'triangle-mesh') &&
151
+ body.mode !== 'static' &&
152
+ body.mass !== 0 &&
153
+ (!(properties.volume > 0) ||
154
+ ((collider.shape.type === 'convex-hull' || collider.shape.type === 'triangle-mesh') &&
155
+ !collider.shape.geometry.closed)))
156
+ throw new Error('Dynamic meshes require closed positive-volume geometry');
157
+ normalizeRigidBodyRotation(collider.orientation);
158
+ if (!(collider.position ?? []).every(Number.isFinite))
159
+ throw new Error('Invalid collider position');
160
+ const material = collider.material;
161
+ if ([
162
+ material?.staticFriction ?? 0.6,
163
+ material?.dynamicFriction ?? 0.6,
164
+ material?.restitution ?? 0.1
165
+ ].some(value => !Number.isFinite(value) || value < 0) ||
166
+ (material?.restitution ?? 0.1) > 1)
167
+ throw new Error('Invalid collider material');
168
+ colliders.push({ ...collider, body: bodyIndex });
169
+ }
170
+ normalizeRigidBodyRotation(body.orientation);
171
+ normalizeRigidBodyRotation(body.inertiaOrientation);
172
+ if (body.inertiaOrientation && !body.inertiaDiagonal)
173
+ throw new Error('Inertia orientation requires diagonal');
174
+ if (!(body.centerOfMass ?? []).every(Number.isFinite) ||
175
+ (body.inertiaDiagonal ?? []).some(value => !Number.isFinite(value) || value < 0) ||
176
+ !Number.isFinite(body.gravityFactor ?? 1))
177
+ throw new Error('Invalid mass properties');
178
+ if (![
179
+ ...body.position,
180
+ ...(body.velocity ?? []),
181
+ ...(body.angularVelocity ?? []),
182
+ ...(body.orientation ?? [])
183
+ ].every(Number.isFinite) ||
184
+ !Number.isFinite(body.friction ?? 0.6) ||
185
+ (body.friction ?? 0.6) < 0 ||
186
+ !Number.isFinite(body.restitution ?? 0.1) ||
187
+ (body.restitution ?? 0.1) < 0 ||
188
+ (body.restitution ?? 0.1) > 1)
189
+ throw new Error('Invalid rigid body');
190
+ }
191
+ if (!(props.gravity ?? [0, 0, -9.81]).every(Number.isFinite) ||
192
+ [
193
+ props.contactSlop ?? 0.002,
194
+ props.contactMatchDistance ?? 0.05,
195
+ props.restitutionThreshold ?? 0.5,
196
+ props.sleepAfter ?? 0.5,
197
+ props.sleepLinearSpeed ?? 0.04,
198
+ props.sleepAngularSpeed ?? 0.04
199
+ ].some(value => !Number.isFinite(value) || value < 0))
200
+ throw new Error('Invalid rigid-body settings');
201
+ if (colliders.length > (this.broadPhase === 'all-pairs' ? 128 : 65535))
202
+ throw new Error('Rigid-body collider capacity exceeded');
203
+ for (const collider of colliders)
204
+ if (collider.excludedColliders?.some(index => !Number.isInteger(index) || index < 0 || index >= colliders.length))
205
+ throw new Error('Invalid collider filter');
206
+ if (props.collisionPartitionSize !== undefined &&
207
+ (!Number.isSafeInteger(props.collisionPartitionSize) ||
208
+ props.collisionPartitionSize < 1 ||
209
+ !colliders.length ||
210
+ colliders.length % props.collisionPartitionSize !== 0 ||
211
+ Boolean(props.joints?.length || props.continuous || props.triggers?.length)))
212
+ throw new Error('Invalid collision partitions');
213
+ if (props.ensembleBodiesPerInstance !== undefined &&
214
+ (!Number.isSafeInteger(props.ensembleBodiesPerInstance) ||
215
+ props.ensembleBodiesPerInstance < 1 ||
216
+ this.count % props.ensembleBodiesPerInstance !== 0 ||
217
+ !props.collisionPartitionSize ||
218
+ this.count / props.ensembleBodiesPerInstance !==
219
+ colliders.length / props.collisionPartitionSize ||
220
+ this.solver !== 'parallel' ||
221
+ this.broadPhase !== 'hierarchical-grid'))
222
+ throw new Error('Invalid ensemble scheduling layout');
223
+ this.colliderCount = colliders.length;
224
+ this.colliderStorageCount = Math.max(1, colliders.length);
225
+ // WGSL fixed arrays require a positive size. A lone private collider cannot
226
+ // collide with itself and lets geometry-free bodies share the normal kernels.
227
+ if (!colliders.length)
228
+ colliders.push({ body: 0, shape: { type: 'box', halfExtents: [0, 0, 0] } });
229
+ this.maximumPairs =
230
+ this.broadPhase === 'all-pairs'
231
+ ? this.colliderStorageCount * this.colliderStorageCount
232
+ : (props.maximumPairs ??
233
+ 2 ** Math.ceil(Math.log2(Math.max(64, this.colliderStorageCount * 16))));
234
+ if (!['all-pairs', 'hierarchical-grid'].includes(this.broadPhase) ||
235
+ !Number.isSafeInteger(this.maximumPairs) ||
236
+ this.maximumPairs < 1 ||
237
+ this.maximumPairs > 0x40000000 ||
238
+ (this.broadPhase === 'hierarchical-grid' &&
239
+ (this.maximumPairs & (this.maximumPairs - 1)) !== 0))
240
+ throw new Error('Invalid rigid-body pair capacity');
241
+ if (props.continuous) {
242
+ if (props.failurePolicy !== 'rollback' ||
243
+ !Number.isInteger(props.continuous.maximumImpacts ?? 4) ||
244
+ (props.continuous.maximumImpacts ?? 4) < 1 ||
245
+ (props.continuous.maximumImpacts ?? 4) > 16 ||
246
+ !['sphere-static', 'convex'].includes(props.continuous.mode ?? 'sphere-static') ||
247
+ !Number.isSafeInteger(props.continuous.maximumCandidates ?? this.maximumPairs) ||
248
+ (props.continuous.maximumCandidates ?? this.maximumPairs) < 1 ||
249
+ (props.continuous.maximumCandidates ?? this.maximumPairs) > 0x40000000 ||
250
+ (props.continuous.mode === 'convex' &&
251
+ (Boolean(props.joints?.length) ||
252
+ colliders.some(collider => ['plane', 'triangle-mesh'].includes(collider.shape.type)))))
253
+ throw new Error('Invalid continuous settings');
254
+ for (const index of props.continuous.bodies) {
255
+ const body = props.bodies[index];
256
+ const bodyColliders = colliders.filter(collider => collider.body === index);
257
+ if (!Number.isInteger(index) ||
258
+ !body ||
259
+ (body.mode ?? ((body.mass ?? 1) === 0 ? 'static' : 'dynamic')) !== 'dynamic' ||
260
+ body.mass === 0 ||
261
+ bodyColliders.length !== 1 ||
262
+ bodyColliders[0].isTrigger ||
263
+ (props.continuous.mode !== 'convex' && bodyColliders[0].shape.type !== 'sphere') ||
264
+ (props.continuous.mode !== 'convex' &&
265
+ (bodyColliders[0].position ?? [0, 0, 0]).some((value, axis) => value !== (body.centerOfMass ?? [0, 0, 0])[axis])))
266
+ throw new Error('Invalid continuous body geometry');
267
+ }
268
+ }
269
+ if (props.triggers?.length) {
270
+ if (props.failurePolicy !== 'rollback' ||
271
+ !Number.isInteger(props.triggerEventCapacity ?? 256) ||
272
+ (props.triggerEventCapacity ?? 256) < 1 ||
273
+ (props.triggerEventCapacity ?? 256) > 65536)
274
+ throw new Error('Invalid trigger settings');
275
+ makeRigidBodyTriggerLayout(props.triggers, colliders);
276
+ }
277
+ // Clone together so collider edits preserve geometry identity in captured body definitions.
278
+ const definitions = structuredClone({ colliders, props });
279
+ this.colliders = definitions.colliders;
280
+ this.props = definitions.props;
281
+ if (props.ensembleBodiesPerInstance)
282
+ this.initialEnsembleBodies = this.props.bodies.slice(0, props.ensembleBodiesPerInstance);
283
+ }
284
+ getStorageLayout() {
285
+ const packed = packRigidBodyShapes(this.colliders);
286
+ const sparse = this.broadPhase === 'hierarchical-grid';
287
+ const extended = this.colliders.some(collider => (collider.shape.type !== 'sphere' && collider.shape.type !== 'box') ||
288
+ (collider.isTrigger && collider.shape.type !== 'sphere'));
289
+ const parallel = this.solver === 'parallel';
290
+ const storage = {
291
+ packed,
292
+ sparse,
293
+ extended,
294
+ parallel,
295
+ ...getRigidBodyStorageLayout(this.count, this.colliderStorageCount, this.maximumPairs, packed.geometry.length, sparse, extended, parallel, this.props.eventCapacity ?? 0, this.props.enableQueries ?? false, this.props.failurePolicy === 'rollback', Boolean(this.props.continuous), this.props.joints?.length ?? 0, this.props.ensembleBodiesPerInstance ? this.count / this.props.ensembleBodiesPerInstance : 0)
296
+ };
297
+ if (this.props.continuous?.mode === 'convex') {
298
+ storage.buffers = storage.buffers.filter(buffer => buffer.name !== 'continuous-previous');
299
+ storage.buffers.push({ name: 'continuous-dispatch', byteLength: 16, uniform: false });
300
+ storage.buffers.push({
301
+ name: 'continuous-work',
302
+ byteLength: 64 +
303
+ 2 ** Math.ceil(Math.log2(Math.max(1, this.colliders.length))) * 32 +
304
+ this.count * 64 +
305
+ (this.props.continuous.maximumCandidates ?? this.maximumPairs) * 48,
306
+ uniform: false
307
+ });
308
+ }
309
+ if (this.props.publicationBounds || this.props.publishPoses)
310
+ storage.buffers.push({ name: 'pose-metadata', byteLength: this.count * 48, uniform: false }, { name: 'pose-matrices', byteLength: this.count * 64, uniform: false }, { name: 'pose-bounds', byteLength: this.count * 32, uniform: false });
311
+ const triggerLayout = this.props.triggers?.length
312
+ ? makeRigidBodyTriggerLayout(this.props.triggers, this.colliders)
313
+ : undefined;
314
+ if (triggerLayout)
315
+ storage.buffers.push({ name: 'trigger-previous', byteLength: this.colliderStorageCount * 16, uniform: false }, { name: 'trigger-groups', byteLength: triggerLayout.groups.byteLength, uniform: false }, { name: 'trigger-pairs', byteLength: triggerLayout.pairs.byteLength, uniform: false }, {
316
+ name: 'trigger-samples',
317
+ byteLength: Math.max(1, triggerLayout.count) * 16,
318
+ uniform: false
319
+ }, {
320
+ name: 'trigger-history',
321
+ byteLength: Math.max(1, triggerLayout.count) * 16,
322
+ uniform: false
323
+ }, {
324
+ name: 'trigger-events',
325
+ byteLength: 16 + (this.props.triggerEventCapacity ?? 256) * 32,
326
+ uniform: false
327
+ });
328
+ if (this.props.ensembleBodiesPerInstance)
329
+ storage.buffers.push({
330
+ name: 'ensemble',
331
+ byteLength: (16 + (9 * this.count) / this.props.ensembleBodiesPerInstance) * 4,
332
+ uniform: false
333
+ });
334
+ if (this.props.ensembleBodiesPerInstance)
335
+ storage.buffers.push({
336
+ name: 'ensemble-buckets',
337
+ byteLength: (2 ** Math.ceil(Math.log2(Math.max(1, this.colliderStorageCount * 2))) +
338
+ this.colliderStorageCount +
339
+ 2) *
340
+ 4,
341
+ uniform: false
342
+ });
343
+ return { ...storage, triggerLayout };
344
+ }
345
+ initializeEnsembleReset() {
346
+ if (!this.device || !this.ensembleBuffer || this.destroyed)
347
+ throw new Error('World has no ensemble scheduler');
348
+ this.ensembleResetOrigin ??= this.origin;
349
+ this.ensembleReset ??= makeEnsembleReset(this.device, this.id, this.ownedBuffers, this.count, this.props.ensembleBodiesPerInstance, this.props.collisionPartitionSize, this.maximumPairs);
350
+ return this.ensembleReset.byteLength;
351
+ }
352
+ resetEnsembleInstance(instance) {
353
+ this.assertEnsembleInstance(instance);
354
+ if (!this.ensembleReset)
355
+ throw new Error('Ensemble reset image unavailable');
356
+ const bodyStart = instance * this.props.ensembleBodiesPerInstance;
357
+ const colliderStart = instance * this.props.collisionPartitionSize;
358
+ let colliderIndex = colliderStart;
359
+ const restored = this.initialEnsembleBodies.map(body => {
360
+ if (body.shape) {
361
+ const current = this.colliders[colliderIndex++].shape;
362
+ return {
363
+ ...body,
364
+ shape: body.shape.type === 'convex-hull' || body.shape.type === 'triangle-mesh'
365
+ ? current
366
+ : body.shape
367
+ };
368
+ }
369
+ return {
370
+ ...body,
371
+ colliders: body.colliders.map(collider => {
372
+ const current = this.colliders[colliderIndex++].shape;
373
+ return {
374
+ ...collider,
375
+ shape: collider.shape.type === 'convex-hull' || collider.shape.type === 'triangle-mesh'
376
+ ? current
377
+ : collider.shape,
378
+ excludedColliders: collider.excludedColliders?.map(index => index + colliderStart)
379
+ };
380
+ })
381
+ };
382
+ });
383
+ const definitions = [...this.props.bodies];
384
+ definitions.splice(bodyStart, restored.length, ...restored);
385
+ this.props.bodies = definitions;
386
+ for (let collider = colliderStart; collider < colliderStart + this.props.collisionPartitionSize; collider++)
387
+ this.colliderShapeScales.delete(collider);
388
+ this.restoreColliderDefinitions();
389
+ this.ensembleReset.reset(instance, this.origin.map((value, axis) => value - this.ensembleResetOrigin[axis]));
390
+ this.ensembleBuffer.write(new Uint32Array([0, 0, 0, 0, 1, 1]), (16 + instance * 8 + 1) * 4);
391
+ if (this.encodePosePublication) {
392
+ const encoder = this.device.createCommandEncoder();
393
+ this.encodePosePublication(encoder);
394
+ this.device.submit(encoder.finish());
395
+ }
396
+ }
397
+ wakeEnsembleInstance(instance) {
398
+ this.assertEnsembleInstance(instance);
399
+ this.ensembleBuffer.write(new Uint32Array([1]), (16 + instance * 8 + 6) * 4);
400
+ this.sleepStates.write(new Uint32Array(this.props.ensembleBodiesPerInstance * 4), instance * this.props.ensembleBodiesPerInstance * 16);
401
+ }
402
+ setEnsembleActive(instance, active) {
403
+ this.assertEnsembleInstance(instance);
404
+ this.ensembleBuffer.write(new Uint32Array([active ? 1 : 0]), (16 + instance * 8) * 4);
405
+ }
406
+ async readEnsembleState() {
407
+ if (!this.ensembleBuffer || this.destroyed)
408
+ throw new Error('World has no ensemble scheduler');
409
+ return new Uint32Array((await this.ensembleBuffer.readAsync()).buffer);
410
+ }
411
+ /** Read explicit last-step work counters; never called by encode(). */
412
+ async readEnsembleWork() {
413
+ if (!this.ensembleBuffer || !this.targets || this.destroyed)
414
+ throw new Error('World has no ensemble scheduler');
415
+ const bucketState = this.ownedBuffers.find(buffer => buffer.id === `${this.id}-ensemble-buckets`);
416
+ const bucketCount = 2 ** Math.ceil(Math.log2(Math.max(1, this.colliderStorageCount * 2)));
417
+ const [scheduler, counters, buckets] = await Promise.all([
418
+ this.ensembleBuffer.readAsync(0, 4),
419
+ this.targets.readAsync(this.count * 32 + 20, 12),
420
+ bucketState.readAsync(bucketCount * 4, 4)
421
+ ]);
422
+ const activeInstances = new Uint32Array(scheduler.buffer)[0];
423
+ const [journaledContacts, visitedContacts, claimedContacts] = new Uint32Array(counters.buffer);
424
+ const activeBodies = activeInstances * this.props.ensembleBodiesPerInstance;
425
+ return {
426
+ activeInstances,
427
+ activeBodies,
428
+ touchedBuckets: new Uint32Array(buckets.buffer)[0],
429
+ visitedContacts,
430
+ claimedContacts,
431
+ journaledContacts,
432
+ bodySnapshotBytes: activeBodies * 80,
433
+ contactSnapshotBytes: journaledContacts * 416,
434
+ allocatorSnapshotBytes: (8 + activeInstances * 2 + journaledContacts * 3) * 4,
435
+ residentInstances: this.count / this.props.ensembleBodiesPerInstance,
436
+ residentBodies: this.count,
437
+ contactCapacity: this.maximumPairs
438
+ };
439
+ }
440
+ assertEnsembleInstance(instance) {
441
+ if (!this.ensembleBuffer ||
442
+ this.destroyed ||
443
+ !Number.isSafeInteger(instance) ||
444
+ instance < 0 ||
445
+ instance >= this.count / this.props.ensembleBodiesPerInstance)
446
+ throw new Error('Invalid ensemble instance');
447
+ }
448
+ /** Allocation preflight without GPU allocation. Graph scratch and driver overhead are separate. */
449
+ getCapacityInfo() {
450
+ const { buffers } = this.getStorageLayout();
451
+ return {
452
+ bodyCount: this.count,
453
+ colliderCount: this.colliderCount,
454
+ maximumPairs: this.maximumPairs,
455
+ pairWorkgroups: Math.ceil(this.maximumPairs / 64),
456
+ buffers,
457
+ ownedBufferBytes: buffers.reduce((total, buffer) => total + buffer.byteLength, 0)
458
+ };
459
+ }
460
+ addToGraph(graph) {
461
+ if (this.device || this.destroyed)
462
+ throw new Error('Rigid-body world already attached or destroyed');
463
+ const { packed, sparse, extended, parallel, geometryOffset, pairOffset, diagnosticOffset, metadataLength, parallelByteLength, triggerLayout, buffers: allocationPlan } = this.getStorageLayout();
464
+ if (Math.ceil(this.maximumPairs / 64) > graph.device.limits.maxComputeWorkgroupsPerDimension)
465
+ throw new Error('Rigid-body pair dispatch exceeds device limits');
466
+ if (this.props.continuous?.mode === 'convex' &&
467
+ Math.max(Math.ceil((this.props.continuous.maximumCandidates ?? this.maximumPairs) / 64), Math.ceil(2 ** Math.ceil(Math.log2(Math.max(1, this.colliders.length))) / 64)) > graph.device.limits.maxComputeWorkgroupsPerDimension)
468
+ throw new Error('Continuous candidate dispatch exceeds device limits');
469
+ for (const buffer of allocationPlan) {
470
+ const bindingLimit = buffer.uniform
471
+ ? graph.device.limits.maxUniformBufferBindingSize
472
+ : graph.device.limits.maxStorageBufferBindingSize;
473
+ if (buffer.byteLength > Math.min(graph.device.limits.maxBufferSize, bindingLimit))
474
+ throw new Error(`Rigid-body ${buffer.name} storage exceeds device limits`);
475
+ }
476
+ this.device = graph.device;
477
+ const allocate = (name, data, uniform = false) => {
478
+ const buffer = graph.device.createBuffer({
479
+ id: `${this.id}-${name}`,
480
+ ...(typeof data === 'number' ? { byteLength: data } : { data }),
481
+ usage: (uniform ? Buffer.UNIFORM : Buffer.STORAGE) |
482
+ Buffer.COPY_DST |
483
+ Buffer.COPY_SRC |
484
+ (['targets', 'parallel-dispatch', 'continuous-dispatch', 'ensemble'].includes(name)
485
+ ? Buffer.INDIRECT
486
+ : 0)
487
+ });
488
+ this.ownedBuffers.push(buffer);
489
+ return buffer;
490
+ };
491
+ const positions = new Float32Array(this.count * 4);
492
+ const orientations = new Float32Array(this.count * 4);
493
+ const velocities = new Float32Array(this.count * 4);
494
+ const angular = new Float32Array(this.count * 4);
495
+ const sparseLayout = sparse
496
+ ? {
497
+ maximumPairs: this.maximumPairs,
498
+ pairOffset: pairOffset - geometryOffset,
499
+ diagnosticOffset: diagnosticOffset - geometryOffset
500
+ }
501
+ : undefined;
502
+ const metadata = new Float32Array(metadataLength);
503
+ metadata.set(packed.geometry, geometryOffset);
504
+ const bodyColliders = Array.from({ length: this.count }, () => []);
505
+ if (this.colliderCount)
506
+ for (const collider of this.colliders)
507
+ bodyColliders[collider.body].push(collider);
508
+ for (const [index, body] of this.props.bodies.entries()) {
509
+ const mass = body.mass ?? 1;
510
+ const mode = body.mode ?? (mass === 0 ? 'static' : 'dynamic');
511
+ const center = body.centerOfMass ?? [0, 0, 0];
512
+ const quaternion = normalizeRigidBodyRotation(body.orientation);
513
+ const offset = rotateRigidBodyVector(quaternion, center);
514
+ positions.set([
515
+ ...body.position.map((value, axis) => value + offset[axis]),
516
+ body.shape?.type === 'sphere' ? body.shape.radius : 0
517
+ ], index * 4);
518
+ orientations.set(quaternion, index * 4);
519
+ velocities.set([
520
+ ...(mode === 'static' ? [0, 0, 0] : (body.velocity ?? [0, 0, 0])),
521
+ mode === 'dynamic' && mass ? 1 / mass : 0
522
+ ], index * 4);
523
+ angular.set(mode === 'static' ? [0, 0, 0] : (body.angularVelocity ?? [0, 0, 0]), index * 4);
524
+ const compound = getCompoundBodyInertia(mass, bodyColliders[index], center);
525
+ const inertia = body.inertiaDiagonal ?? compound.diagonal;
526
+ const inertiaRotation = normalizeRigidBodyRotation(body.inertiaOrientation ?? (body.inertiaDiagonal ? undefined : compound.orientation));
527
+ metadata.set([
528
+ ...inertia.map(value => (mode === 'dynamic' && value ? 1 / value : 0)),
529
+ center[0],
530
+ ...inertiaRotation,
531
+ mode === 'static' ? 0 : mode === 'dynamic' ? 1 : 2,
532
+ body.gravityFactor ?? 1,
533
+ center[1],
534
+ center[2]
535
+ ], index * 12);
536
+ }
537
+ const policies = [
538
+ 'average',
539
+ 'minimum',
540
+ 'maximum',
541
+ 'multiply'
542
+ ];
543
+ for (const [index, collider] of this.colliders.entries()) {
544
+ const body = this.props.bodies[collider.body];
545
+ const material = collider.material;
546
+ const center = body.centerOfMass ?? [0, 0, 0];
547
+ const offset = (collider.position ?? [0, 0, 0]).map((value, axis) => value - center[axis]);
548
+ const shape = packed.shapes[index];
549
+ metadata.set([
550
+ ...shape.dimensions,
551
+ ...offset,
552
+ collider.body,
553
+ ...normalizeRigidBodyRotation(collider.orientation),
554
+ material?.restitution ?? body.restitution ?? 0.1,
555
+ material?.staticFriction ?? body.friction ?? 0.6,
556
+ material?.dynamicFriction ?? body.friction ?? 0.6,
557
+ collider.isTrigger ? 1 : 0,
558
+ material?.restitutionCombine ? policies.indexOf(material.restitutionCombine) : 4,
559
+ material?.frictionCombine ? policies.indexOf(material.frictionCombine) : 4,
560
+ ...shape.policies,
561
+ ...shape.padding
562
+ ], this.count * 12 + index * 24);
563
+ }
564
+ const exclusionOffset = this.count * 12 + this.colliderStorageCount * 24;
565
+ for (const [index, filter] of packed.filters.entries())
566
+ metadata.set(filter, exclusionOffset + index * 2);
567
+ this.positions = allocate('positions', positions);
568
+ this.orientations = allocate('orientations', orientations);
569
+ this.velocities = allocate('velocities', velocities);
570
+ this.angularVelocities = allocate('angular-velocities', angular);
571
+ this.sleepStates = allocate('sleep', this.count * 16);
572
+ this.targets = allocate('targets', this.props.ensembleBodiesPerInstance
573
+ ? getEnsembleContactLayout(this.count, this.count / this.props.ensembleBodiesPerInstance, this.maximumPairs).byteLength
574
+ : Math.ceil((this.count * 32 + (sparse ? 32 + this.maximumPairs * 8 : 16)) / 16) * 16 +
575
+ (this.props.joints?.length ?? 0) * RIGID_BODY_JOINT_STATE_BYTES);
576
+ for (const [index, joint] of (this.props.joints ?? []).entries()) {
577
+ this.targets.write(packRigidBodyJointState(joint), this.getJointStateOffset() + index * RIGID_BODY_JOINT_STATE_BYTES);
578
+ }
579
+ // Four 96-byte contacts followed by a 32-byte aligned manifold header.
580
+ this.manifolds = allocate('manifolds', this.maximumPairs * 416);
581
+ if (extended)
582
+ this.meshTasks = allocate('mesh-tasks', 16 + 65536 * 48);
583
+ const bodies = allocate('bodies', metadata);
584
+ if (sparse)
585
+ this.broadPhaseCounters = { buffer: bodies, byteOffset: diagnosticOffset * 4 };
586
+ const settings = allocate('settings', new Float32Array([
587
+ ...(this.props.gravity ?? [0, 0, -9.81]),
588
+ this.timeStep,
589
+ this.props.contactSlop ?? 0.002,
590
+ 0,
591
+ this.props.restitutionThreshold ?? 0.5,
592
+ this.props.contactMatchDistance ?? 0.05,
593
+ this.props.sleepAfter ?? 0.5,
594
+ this.props.sleepLinearSpeed ?? 0.04,
595
+ this.props.sleepAngularSpeed ?? 0.04,
596
+ 0,
597
+ this.props.warmStartFactor ?? 1,
598
+ this.props.penetrationRecoveryFraction ?? 0.15,
599
+ this.props.maximumRecoverySpeed ?? 2,
600
+ this.props.parallelRelaxation ?? 1
601
+ ]), true);
602
+ if (parallel) {
603
+ this.parallelState = allocate('parallel-state', parallelByteLength);
604
+ this.parallelDispatch = allocate('parallel-dispatch', 48);
605
+ }
606
+ if (this.props.ensembleBodiesPerInstance) {
607
+ const instances = this.count / this.props.ensembleBodiesPerInstance;
608
+ const state = new Uint32Array(16 + instances * 9);
609
+ for (let instance = 0; instance < instances; instance++) {
610
+ state[16 + instance * 8] = 1;
611
+ state[16 + instance * 8 + 5] = 1;
612
+ }
613
+ this.ensembleBuffer = allocate('ensemble', state);
614
+ }
615
+ const buffers = {
616
+ settings,
617
+ positions: this.positions,
618
+ orientations: this.orientations,
619
+ velocities: this.velocities,
620
+ angularVelocities: this.angularVelocities,
621
+ bodies,
622
+ manifolds: this.manifolds,
623
+ sleepStates: this.sleepStates,
624
+ targets: this.targets,
625
+ ...(this.meshTasks ? { meshTasks: this.meshTasks } : {}),
626
+ ...(this.parallelState
627
+ ? { parallelState: this.parallelState, parallelDispatch: this.parallelDispatch }
628
+ : {}),
629
+ ...(sparse
630
+ ? {
631
+ minima: allocate('minima', this.colliderStorageCount * 12),
632
+ maxima: allocate('maxima', this.colliderStorageCount * 12)
633
+ }
634
+ : {})
635
+ };
636
+ const scheduledBuffers = {
637
+ ...buffers,
638
+ ...(this.ensembleBuffer ? { ensemble: this.ensembleBuffer } : {})
639
+ };
640
+ const bindings = Object.entries(scheduledBuffers).map(([name, buffer], location) => ({
641
+ name,
642
+ buffer,
643
+ location: name === 'ensemble'
644
+ ? 28
645
+ : name === 'parallelDispatch'
646
+ ? 27
647
+ : name === 'parallelState'
648
+ ? 26
649
+ : name === 'minima'
650
+ ? 24
651
+ : name === 'maxima'
652
+ ? 25
653
+ : location >= 8
654
+ ? location + 1
655
+ : location,
656
+ resource: graph.importBuffer({
657
+ id: `${this.id}-${name}`,
658
+ byteLength: buffer.byteLength,
659
+ usage: location === 0
660
+ ? Buffer.UNIFORM
661
+ : Buffer.STORAGE |
662
+ Buffer.COPY_SRC |
663
+ (['targets', 'parallelDispatch', 'ensemble'].includes(name) ? Buffer.INDIRECT : 0)
664
+ }, buffer)
665
+ }));
666
+ const shaderLayout = {
667
+ attributes: [],
668
+ bindings: bindings.map(({ name, location }) => {
669
+ const base = { name, location, group: 0 };
670
+ return location === 0
671
+ ? { ...base, type: 'uniform' }
672
+ : { ...base, type: name === 'bodies' ? 'read-only-storage' : 'storage' };
673
+ })
674
+ };
675
+ const objectAttributes = sparse
676
+ ? allocate('object-attributes', Uint32Array.from(this.colliders, collider => {
677
+ const body = this.props.bodies[collider.body];
678
+ const mode = body.mode ?? ((body.mass ?? 1) === 0 ? 'static' : 'dynamic');
679
+ return collider.body | (mode === 'dynamic' ? 0x10000 : 0);
680
+ }))
681
+ : null;
682
+ const objectAttributeView = objectAttributes
683
+ ? graph.createDataView(graph.importBuffer({
684
+ id: `${this.id}-object-attributes`,
685
+ byteLength: objectAttributes.byteLength,
686
+ usage: Buffer.STORAGE
687
+ }, objectAttributes), { format: 'uint32', length: this.colliderStorageCount })
688
+ : undefined;
689
+ const source = getRigidBodyShader(this.count, this.props.iterations ?? 16, this.colliderStorageCount, extended, sparseLayout, parallel, this.props.maximumMeshTraversalTestsPerPair ?? 65536, getRigidBodyJointShader(this.props.joints ?? [], this.props.bodies), Boolean(this.props.joints?.length), this.props.linearDamping ?? 0, this.props.angularDamping ?? 0, this.props.joints?.length ?? 0, this.props.compactContacts ?? true, this.props.collisionPartitionSize, this.props.ensembleBodiesPerInstance);
690
+ const parallelBindings = {
691
+ parallelReset: ['parallelState'],
692
+ parallelResetCounters: ['parallelState'],
693
+ parallelActiveBodies: ['bodies', 'sleepStates', 'parallelState'],
694
+ parallelPrepareSleep: ['parallelState'],
695
+ parallelCompact: ['manifolds', 'parallelState', ...(this.ensembleBuffer ? ['targets'] : [])],
696
+ parallelDispatchCount: ['parallelState', 'parallelDispatch'],
697
+ parallelActive: ['bodies', 'sleepStates', 'manifolds', 'parallelState'],
698
+ parallelActiveCount: ['parallelState', 'parallelDispatch'],
699
+ parallelLink: ['velocities', 'angularVelocities', 'bodies', 'manifolds', 'parallelState'],
700
+ parallelUnion: ['bodies', 'manifolds', 'parallelState'],
701
+ parallelCompress: ['sleepStates', 'parallelState'],
702
+ parallelWakeRoots: ['bodies', 'sleepStates', 'parallelState'],
703
+ parallelWakeBodies: ['bodies', 'sleepStates', 'parallelState'],
704
+ parallelWarm: [
705
+ 'positions',
706
+ 'orientations',
707
+ 'velocities',
708
+ 'bodies',
709
+ 'manifolds',
710
+ 'sleepStates',
711
+ 'parallelState'
712
+ ],
713
+ parallelPairs: [
714
+ 'settings',
715
+ 'positions',
716
+ 'orientations',
717
+ 'velocities',
718
+ 'angularVelocities',
719
+ 'bodies',
720
+ 'manifolds',
721
+ 'sleepStates',
722
+ 'parallelState'
723
+ ],
724
+ parallelGather: ['velocities', 'angularVelocities', 'bodies', 'sleepStates', 'parallelState'],
725
+ parallelAdvance: [
726
+ 'settings',
727
+ 'positions',
728
+ 'orientations',
729
+ 'velocities',
730
+ 'angularVelocities',
731
+ 'bodies',
732
+ 'sleepStates',
733
+ 'targets',
734
+ ...(this.ensembleBuffer ? [] : ['parallelState'])
735
+ ],
736
+ parallelMarkSleep: ['settings', 'bodies', 'sleepStates', 'parallelState'],
737
+ parallelSleep: ['velocities', 'angularVelocities', 'bodies', 'sleepStates', 'parallelState']
738
+ };
739
+ parallelBindings['parallelSolve'] = parallelBindings['parallelPairs'];
740
+ this.simulationStatistics = allocate('simulation-statistics', 64);
741
+ const statisticsResource = graph.importBuffer({ id: `${this.id}-statistics`, byteLength: 64, usage: Buffer.STORAGE }, this.simulationStatistics);
742
+ const checkpointStates = [
743
+ 'positions',
744
+ 'orientations',
745
+ 'velocities',
746
+ 'angularVelocities',
747
+ 'sleepStates',
748
+ 'targets'
749
+ ].map(name => {
750
+ const binding = bindings.find(binding => binding.name === name);
751
+ return { buffer: binding.buffer, resource: binding.resource };
752
+ });
753
+ const restoreCheckpoint = this.props.failurePolicy === 'rollback'
754
+ ? this.ensembleBuffer
755
+ ? addEnsembleCheckpoint(graph, this.id, checkpointStates, { buffer: this.simulationStatistics, resource: statisticsResource }, bindings.find(binding => binding.name === 'ensemble'), bindings.find(binding => binding.name === 'manifolds'), this.props.ensembleBodiesPerInstance, this.maximumPairs, allocate)
756
+ : addRigidBodyCheckpoint(graph, this.id, [
757
+ 'positions',
758
+ 'orientations',
759
+ 'velocities',
760
+ 'angularVelocities',
761
+ 'sleepStates',
762
+ 'targets',
763
+ ...(this.ensembleBuffer ? [] : ['manifolds'])
764
+ ].map(name => {
765
+ const binding = bindings.find(binding => binding.name === name);
766
+ return { buffer: binding.buffer, resource: binding.resource };
767
+ }), { buffer: this.simulationStatistics, resource: statisticsResource }, allocate)
768
+ : undefined;
769
+ const continuousSelection = new Uint32Array(this.count);
770
+ for (const body of this.props.continuous?.bodies ?? [])
771
+ continuousSelection[body] = this.colliders.findIndex(collider => collider.body === body) + 1;
772
+ const continuous = this.props.continuous
773
+ ? addRigidBodyContinuous(graph, this.id, source, this.count, continuousSelection, this.props.continuous.maximumImpacts ?? 4, bindings, allocate, Boolean(this.props.joints?.length), this.props.continuous.mode === 'convex'
774
+ ? (this.props.continuous.maximumCandidates ?? this.maximumPairs)
775
+ : 0, this.colliderStorageCount, extended, this.colliders.some(collider => collider.shape.type === 'convex-hull'))
776
+ : undefined;
777
+ const triggers = triggerLayout
778
+ ? addRigidBodyTriggers(graph, this.id, source, this.colliderStorageCount, triggerLayout, this.props.triggerEventCapacity ?? 256, bindings, {
779
+ name: 'triggerStatistics',
780
+ buffer: this.simulationStatistics,
781
+ resource: statisticsResource,
782
+ location: 18
783
+ }, allocate, Boolean(this.props.joints?.length), extended)
784
+ : undefined;
785
+ this.triggerEvents = triggers?.events ?? null;
786
+ const passDescriptions = {
787
+ integrate: 'Apply gravity and advance body velocities and predicted poses for this timestep.',
788
+ prepare: 'Reset broad-phase counters before generating potential collider pairs.',
789
+ bounds: 'Compute world-space collider bounds for broad-phase collision detection.',
790
+ collide: 'Find overlapping collider pairs and generate contact manifolds.',
791
+ meshCollide: 'Generate contacts against triangle meshes and heightfields.',
792
+ meshCollect: 'Collect mesh contacts for the parallel constraint solver.',
793
+ solve: 'Resolve contact and joint constraints, including friction and restitution.',
794
+ finish: 'Publish solved body poses and update sleeping state.',
795
+ parallelReset: 'Initialize body ownership for parallel contact islands.',
796
+ parallelCompact: 'Compact live contact manifolds into a reusable GPU work queue.',
797
+ parallelDispatchCount: 'Build indirect workgroup counts from the compact contact queue.',
798
+ parallelLink: 'Link bodies connected by active contacts or joints.',
799
+ parallelUnion: 'Merge connected bodies into constraint islands.',
800
+ parallelCompress: 'Compress island links to their root body.',
801
+ parallelWakeRoots: 'Mark islands that must wake for active constraints.',
802
+ parallelWakeBodies: 'Wake bodies belonging to active constraint islands.',
803
+ parallelActive: 'Compact awake bodies and contacts after connected islands wake.',
804
+ parallelActiveCount: 'Build indirect dispatches for awake solver work.',
805
+ parallelAdvance: 'Advance body poses using the solved velocities.',
806
+ parallelMarkSleep: 'Identify islands whose bodies are quiet enough to sleep.',
807
+ parallelSleep: 'Put quiet constraint islands to sleep.'
808
+ };
809
+ for (const entryPoint of [
810
+ ...(this.ensembleBuffer
811
+ ? ['ensembleClear', 'ensembleMark', 'ensembleCompact', 'ensembleDispatch']
812
+ : []),
813
+ 'integrate',
814
+ ...(sparse ? [...(this.ensembleBuffer ? ['prepareStart'] : []), 'prepare', 'bounds'] : []),
815
+ 'collide',
816
+ ...(extended ? ['meshCollide'] : []),
817
+ ...(parallel
818
+ ? [
819
+ ...(extended ? ['meshCollect'] : []),
820
+ ...(this.ensembleBuffer && this.props.compactContacts !== false
821
+ ? ['parallelResetCounters']
822
+ : []),
823
+ 'parallelReset',
824
+ ...(this.props.compactContacts !== false
825
+ ? ['parallelCompact', 'parallelDispatchCount']
826
+ : []),
827
+ 'parallelLink',
828
+ 'parallelUnion',
829
+ 'parallelCompress',
830
+ 'parallelWakeRoots',
831
+ 'parallelWakeBodies',
832
+ ...(this.props.compactContacts !== false
833
+ ? [
834
+ ...(this.ensembleBuffer ? ['parallelActiveBodies'] : []),
835
+ 'parallelActive',
836
+ 'parallelActiveCount'
837
+ ]
838
+ : []),
839
+ 'parallelSolve',
840
+ 'parallelAdvance',
841
+ ...(this.ensembleBuffer ? ['parallelPrepareSleep'] : []),
842
+ 'parallelMarkSleep',
843
+ 'parallelSleep'
844
+ ]
845
+ : [...(extended && this.props.joints?.length ? ['meshCollect'] : []), 'solve', 'finish'])
846
+ ]) {
847
+ if (entryPoint === 'integrate')
848
+ restoreCheckpoint?.save?.();
849
+ if (sparse && entryPoint === 'collide') {
850
+ const bodyBinding = bindings.find(binding => binding.name === 'bodies');
851
+ const minimumBinding = bindings.find(binding => binding.name === 'minima');
852
+ const maximumBinding = bindings.find(binding => binding.name === 'maxima');
853
+ const bucketState = this.ensembleBuffer
854
+ ? allocate('ensemble-buckets', (2 ** Math.ceil(Math.log2(Math.max(1, this.colliderStorageCount * 2))) +
855
+ this.colliderStorageCount +
856
+ 2) *
857
+ 4)
858
+ : undefined;
859
+ const broadPhase = new GPURigidBodyBroadPhase({
860
+ ...(bucketState
861
+ ? {
862
+ bucketState: graph.createDataView(graph.importBuffer({ id: bucketState.id, byteLength: bucketState.byteLength, usage: Buffer.STORAGE }, bucketState), { format: 'uint32', length: bucketState.byteLength / 4 })
863
+ }
864
+ : {}),
865
+ id: `${this.id}-broad-phase`,
866
+ objectMetadata: objectAttributeView,
867
+ partitionSize: this.props.collisionPartitionSize,
868
+ ...(this.ensembleBuffer
869
+ ? {
870
+ activeInstances: graph.createDataView(bindings.find(binding => binding.name === 'ensemble').resource, { format: 'uint32', length: this.ensembleBuffer.byteLength / 4 })
871
+ }
872
+ : {}),
873
+ maximumCandidateTestsPerQuery: this.props.maximumCandidateTestsPerCollider,
874
+ minima: graph.createDataView(minimumBinding.resource, {
875
+ format: 'float32x3',
876
+ length: this.colliderStorageCount
877
+ }),
878
+ maxima: graph.createDataView(maximumBinding.resource, {
879
+ format: 'float32x3',
880
+ length: this.colliderStorageCount
881
+ }),
882
+ pairs: graph.createDataView(bodyBinding.resource, {
883
+ format: 'uint32x2',
884
+ length: this.maximumPairs,
885
+ byteOffset: pairOffset * 4
886
+ }),
887
+ diagnostics: graph.createDataView(bodyBinding.resource, {
888
+ format: 'uint32',
889
+ length: 8,
890
+ byteOffset: diagnosticOffset * 4
891
+ })
892
+ });
893
+ addGPUCommandNodes(graph, broadPhase.getCommandNodes(graph));
894
+ }
895
+ const unusedCore = entryPoint.startsWith('parallel')
896
+ ? bindings
897
+ .filter(binding => !parallelBindings[entryPoint].includes(binding.name))
898
+ .map(binding => binding.name)
899
+ : entryPoint === 'meshCollect'
900
+ ? ['sleepStates', ...(this.ensembleBuffer ? [] : ['targets']), 'parallelState']
901
+ : ['prepare', 'prepareStart'].includes(entryPoint)
902
+ ? bindings
903
+ .filter(binding => !(entryPoint === 'prepareStart' ? ['targets'] : ['targets', 'manifolds']).includes(binding.name))
904
+ .map(binding => binding.name)
905
+ : entryPoint === 'bounds'
906
+ ? bindings
907
+ .filter(binding => ![
908
+ 'settings',
909
+ 'positions',
910
+ 'orientations',
911
+ 'bodies',
912
+ 'minima',
913
+ 'maxima'
914
+ ].includes(binding.name))
915
+ .map(binding => binding.name)
916
+ : entryPoint === 'meshCollide'
917
+ ? ['velocities', 'angularVelocities', 'manifolds', 'sleepStates', 'targets']
918
+ : entryPoint === 'integrate'
919
+ ? ['manifolds', ...(this.ensembleBuffer ? ['meshTasks'] : [])]
920
+ : entryPoint === 'collide'
921
+ ? [
922
+ 'sleepStates',
923
+ ...(extended || sparse || this.props.joints?.length ? [] : ['targets'])
924
+ ]
925
+ : entryPoint === 'finish'
926
+ ? ['manifolds', 'meshTasks']
927
+ : this.props.joints?.length
928
+ ? []
929
+ : ['targets'];
930
+ const unused = [
931
+ ...unusedCore,
932
+ ...(entryPoint === 'solve' && this.props.joints?.length ? ['meshTasks'] : []),
933
+ ...(entryPoint.startsWith('parallel') ? [] : ['parallelState', 'parallelDispatch']),
934
+ ...(entryPoint === 'bounds' ? [] : ['minima', 'maxima'])
935
+ ];
936
+ const usesScheduler = [
937
+ 'integrate',
938
+ 'bounds',
939
+ 'prepare',
940
+ 'parallelReset',
941
+ 'parallelPrepareSleep',
942
+ 'parallelActiveBodies',
943
+ 'parallelCompact',
944
+ 'parallelActive',
945
+ 'parallelLink',
946
+ 'parallelUnion',
947
+ 'parallelCompress',
948
+ 'parallelWakeRoots',
949
+ 'parallelWakeBodies',
950
+ 'parallelAdvance',
951
+ 'parallelMarkSleep',
952
+ 'parallelSleep'
953
+ ].includes(entryPoint);
954
+ const selectBinding = (name) => entryPoint.startsWith('ensemble')
955
+ ? name === 'ensemble' ||
956
+ (entryPoint === 'ensembleClear' && extended && ['meshTasks', 'targets'].includes(name))
957
+ : name === 'ensemble'
958
+ ? usesScheduler
959
+ : !unused.includes(name);
960
+ const activeBindings = bindings.filter(binding => selectBinding(binding.name));
961
+ const activeLayout = {
962
+ attributes: [],
963
+ bindings: shaderLayout
964
+ .bindings.filter(binding => selectBinding(binding.name))
965
+ .map(binding => binding.name === 'ensemble' && !entryPoint.startsWith('ensemble')
966
+ ? { ...binding, type: 'read-only-storage' }
967
+ : binding)
968
+ };
969
+ const indirectPairs = parallel &&
970
+ this.props.compactContacts !== false &&
971
+ [
972
+ 'parallelSolve',
973
+ 'parallelLink',
974
+ 'parallelUnion',
975
+ ...(this.ensembleBuffer ? ['parallelActive'] : [])
976
+ ].includes(entryPoint);
977
+ const dispatchBinding = bindings.find(binding => binding.name === 'parallelDispatch');
978
+ const schedulerBinding = bindings.find(binding => binding.name === 'ensemble');
979
+ const scheduledDispatch = Boolean(this.ensembleBuffer &&
980
+ [
981
+ 'integrate',
982
+ 'bounds',
983
+ 'parallelAdvance',
984
+ 'parallelCompress',
985
+ 'parallelWakeRoots',
986
+ 'parallelWakeBodies',
987
+ 'parallelPrepareSleep',
988
+ 'parallelMarkSleep',
989
+ 'parallelSleep',
990
+ 'parallelActiveBodies',
991
+ ...(this.props.compactContacts !== false ? ['parallelReset'] : [])
992
+ ].includes(entryPoint));
993
+ const indirectResources = scheduledDispatch
994
+ ? [{ buffer: schedulerBinding.resource, usage: 'indirect' }]
995
+ : indirectPairs
996
+ ? [{ buffer: dispatchBinding.resource, usage: 'indirect' }]
997
+ : [];
998
+ if (entryPoint === 'parallelSolve') {
999
+ const stages = ['parallelWarm', 'parallelPairs', 'parallelGather'];
1000
+ const properties = stages.map(stage => ({
1001
+ id: `${this.id}-${stage}`,
1002
+ source,
1003
+ entryPoint: stage,
1004
+ shaderLayout: {
1005
+ attributes: [],
1006
+ bindings: activeLayout.bindings.filter(binding => parallelBindings[stage].includes(binding.name))
1007
+ }
1008
+ }));
1009
+ const executable = (computations) => ({
1010
+ encode: ({ computePass, getBuffer }) => {
1011
+ const resolved = {};
1012
+ for (const binding of activeBindings)
1013
+ resolved[binding.name] = getBuffer(binding.resource);
1014
+ for (const [index, computation] of computations.entries())
1015
+ Object.assign(computation.bindings, Object.fromEntries(Object.entries(resolved).filter(([name]) => parallelBindings[stages[index]].includes(name))));
1016
+ const dispatchPairs = (computation) => {
1017
+ if (indirectPairs)
1018
+ computation.kernel.dispatchIndirect(computePass, {
1019
+ bindings: computation.bindings,
1020
+ indirectBuffer: getBuffer(dispatchBinding.resource),
1021
+ indirectOffset: 16
1022
+ });
1023
+ else
1024
+ computation.kernel.dispatch(computePass, {
1025
+ bindings: computation.bindings,
1026
+ x: Math.ceil(this.maximumPairs / 64)
1027
+ });
1028
+ };
1029
+ const dispatchBodies = (computation) => {
1030
+ if (indirectPairs)
1031
+ computation.kernel.dispatchIndirect(computePass, {
1032
+ bindings: computation.bindings,
1033
+ indirectBuffer: getBuffer(dispatchBinding.resource),
1034
+ indirectOffset: 32
1035
+ });
1036
+ else
1037
+ computation.kernel.dispatch(computePass, {
1038
+ bindings: computation.bindings,
1039
+ x: Math.ceil(this.count / 64)
1040
+ });
1041
+ };
1042
+ dispatchPairs(computations[0]);
1043
+ dispatchBodies(computations[2]);
1044
+ for (let iteration = 0; iteration < (this.props.iterations ?? 16); iteration++) {
1045
+ dispatchPairs(computations[1]);
1046
+ dispatchBodies(computations[2]);
1047
+ }
1048
+ },
1049
+ destroy: () => {
1050
+ for (const computation of computations)
1051
+ computation.kernel.destroy();
1052
+ }
1053
+ });
1054
+ // Iterations share one semantic graph node; dispatch boundaries synchronize pair and body owners.
1055
+ graph.addComputePass({
1056
+ id: `${this.id}-solve`,
1057
+ workload: { commandCount: 2 + 2 * (this.props.iterations ?? 16) },
1058
+ description: passDescriptions['solve'],
1059
+ resources: [
1060
+ ...indirectResources,
1061
+ ...activeBindings.map(binding => ({
1062
+ buffer: binding.resource,
1063
+ usage: binding.name === 'settings'
1064
+ ? 'uniform'
1065
+ : binding.name === 'bodies'
1066
+ ? 'storage-read'
1067
+ : 'storage-read-write'
1068
+ }))
1069
+ ],
1070
+ compile: ({ device }) => executable(properties.map(properties => createBoundKernel(device, properties))),
1071
+ compileAsync: async ({ device }) => executable(await Promise.all(properties.map(properties => createBoundKernelAsync(device, properties))))
1072
+ });
1073
+ continue;
1074
+ }
1075
+ const createExecutable = (computation) => ({
1076
+ encode: ({ computePass, getBuffer }) => {
1077
+ const resolved = {};
1078
+ for (const binding of activeBindings)
1079
+ resolved[binding.name] = getBuffer(binding.resource);
1080
+ Object.assign(computation.bindings, resolved);
1081
+ if (scheduledDispatch) {
1082
+ computation.kernel.dispatchIndirect(computePass, {
1083
+ bindings: computation.bindings,
1084
+ indirectBuffer: getBuffer(schedulerBinding.resource),
1085
+ indirectOffset: entryPoint === 'bounds' ? 32 : 16
1086
+ });
1087
+ }
1088
+ else if (indirectPairs) {
1089
+ computation.kernel.dispatchIndirect(computePass, {
1090
+ bindings: computation.bindings,
1091
+ indirectBuffer: getBuffer(dispatchBinding.resource),
1092
+ indirectOffset: 0
1093
+ });
1094
+ }
1095
+ else if (entryPoint === 'meshCollide') {
1096
+ const targetBinding = bindings.find(binding => binding.name === 'targets');
1097
+ computation.kernel.dispatchIndirect(computePass, {
1098
+ bindings: computation.bindings,
1099
+ indirectBuffer: getBuffer(targetBinding.resource),
1100
+ indirectOffset: this.count * 32
1101
+ });
1102
+ }
1103
+ else {
1104
+ computation.kernel.dispatch(computePass, {
1105
+ bindings: computation.bindings,
1106
+ x: entryPoint === 'ensembleDispatch'
1107
+ ? 1
1108
+ : entryPoint.startsWith('ensemble')
1109
+ ? Math.ceil(this.count / this.props.ensembleBodiesPerInstance / 64)
1110
+ : this.ensembleBuffer && ['prepare', 'parallelCompact'].includes(entryPoint)
1111
+ ? Math.ceil(this.count / this.props.ensembleBodiesPerInstance / 64)
1112
+ : ['parallelLink', 'parallelUnion', 'parallelCompact'].includes(entryPoint)
1113
+ ? Math.ceil(this.maximumPairs / 64)
1114
+ : entryPoint === 'parallelActive'
1115
+ ? Math.ceil(Math.max(this.maximumPairs, this.count) / 64)
1116
+ : [
1117
+ 'parallelDispatchCount',
1118
+ 'parallelActiveCount',
1119
+ 'parallelResetCounters'
1120
+ ].includes(entryPoint)
1121
+ ? 1
1122
+ : entryPoint.startsWith('parallel')
1123
+ ? Math.ceil(this.count / 64)
1124
+ : entryPoint === 'collide'
1125
+ ? Math.ceil(this.maximumPairs / 64)
1126
+ : entryPoint === 'bounds'
1127
+ ? Math.ceil(this.colliderStorageCount / 64)
1128
+ : entryPoint === 'integrate'
1129
+ ? Math.ceil(this.count / 64)
1130
+ : 1
1131
+ });
1132
+ }
1133
+ },
1134
+ destroy: () => computation.kernel.destroy()
1135
+ });
1136
+ const computationProps = {
1137
+ id: `${this.id}-${entryPoint}`,
1138
+ source: entryPoint.startsWith('ensemble') ? source : readOnlyEnsembleShader(source),
1139
+ entryPoint,
1140
+ shaderLayout: activeLayout
1141
+ };
1142
+ graph.addComputePass({
1143
+ id: computationProps.id,
1144
+ workload: { commandCount: 1 },
1145
+ description: passDescriptions[entryPoint],
1146
+ resources: [
1147
+ ...indirectResources,
1148
+ ...activeBindings.map(binding => ({
1149
+ buffer: binding.resource,
1150
+ usage: binding.location === 0
1151
+ ? 'uniform'
1152
+ : binding.name === 'bodies' ||
1153
+ (binding.name === 'ensemble' && !entryPoint.startsWith('ensemble'))
1154
+ ? 'storage-read'
1155
+ : 'storage-read-write'
1156
+ })),
1157
+ ...(entryPoint === 'meshCollide'
1158
+ ? [
1159
+ {
1160
+ buffer: bindings.find(binding => binding.name === 'targets').resource,
1161
+ usage: 'indirect'
1162
+ }
1163
+ ]
1164
+ : [])
1165
+ ],
1166
+ compile: ({ device }) => createExecutable(createBoundKernel(device, computationProps)),
1167
+ compileAsync: async ({ device }) => createExecutable(await createBoundKernelAsync(device, computationProps))
1168
+ });
1169
+ }
1170
+ continuous?.finish();
1171
+ triggers?.sample();
1172
+ restoreCheckpoint?.validate();
1173
+ const diagnosticBinding = (name) => {
1174
+ const binding = bindings.find(binding => binding.name === name);
1175
+ return { buffer: binding.buffer, resource: binding.resource };
1176
+ };
1177
+ addRigidBodyDiagnostics(graph, `${this.id}-diagnostics`, this.simulationStatistics, {
1178
+ statisticsResource,
1179
+ ...(restoreCheckpoint ? { validity: restoreCheckpoint.validity } : {}),
1180
+ ...(triggers ? { triggers: triggers.samples } : {}),
1181
+ ...(continuous ? { continuous: { ...continuous.status, count: this.count } } : {}),
1182
+ ...(sparse
1183
+ ? {
1184
+ broadPhase: { ...diagnosticBinding('bodies'), wordOffset: diagnosticOffset },
1185
+ targets: { ...diagnosticBinding('targets'), wordOffset: this.count * 8 + 4 }
1186
+ }
1187
+ : {}),
1188
+ ...(extended ? { meshTasks: diagnosticBinding('meshTasks') } : {}),
1189
+ ...(parallel ? { parallelState: diagnosticBinding('parallelState') } : {})
1190
+ });
1191
+ restoreCheckpoint?.restore();
1192
+ if (this.ensembleBuffer)
1193
+ addEnsembleStatus(graph, this.id, this.count / this.props.ensembleBodiesPerInstance, this.props.ensembleBodiesPerInstance, diagnosticBinding('bodies'), diagnosticBinding('sleepStates'), diagnosticBinding('ensemble'), { buffer: this.simulationStatistics, resource: statisticsResource });
1194
+ triggers?.publish();
1195
+ if (this.props.publicationBounds || this.props.publishPoses) {
1196
+ const publication = addRigidBodyPosePublication(graph, this.id, this.props.bodies, this.props.publicationBounds ??
1197
+ this.props.bodies.map(() => [
1198
+ [0, 0, 0],
1199
+ [0, 0, 0]
1200
+ ]), diagnosticBinding('positions'), diagnosticBinding('orientations'), allocate);
1201
+ this.encodePosePublication = publication.encode;
1202
+ this.poseMatrices = publication.matrices;
1203
+ this.poseBounds = this.props.publicationBounds ? publication.bounds : null;
1204
+ }
1205
+ if (this.props.eventCapacity) {
1206
+ const contactHistory = allocate('contact-history', this.maximumPairs * 16);
1207
+ this.contactEvents = allocate('contact-events', 16 + this.props.eventCapacity * 64);
1208
+ const eventBindings = [
1209
+ ...bindings.filter(binding => ['bodies', 'manifolds', 'ensemble'].includes(binding.name)),
1210
+ ...(this.props.failurePolicy === 'rollback'
1211
+ ? [
1212
+ {
1213
+ name: 'eventStatistics',
1214
+ buffer: this.simulationStatistics,
1215
+ resource: statisticsResource,
1216
+ location: 14
1217
+ }
1218
+ ]
1219
+ : []),
1220
+ ...[
1221
+ { name: 'contactHistory', buffer: contactHistory, location: 12 },
1222
+ { name: 'contactEvents', buffer: this.contactEvents, location: 13 }
1223
+ ].map(binding => ({
1224
+ ...binding,
1225
+ resource: graph.importBuffer({
1226
+ id: `${this.id}-${binding.name}`,
1227
+ byteLength: binding.buffer.byteLength,
1228
+ usage: Buffer.STORAGE
1229
+ }, binding.buffer)
1230
+ }))
1231
+ ];
1232
+ const properties = {
1233
+ id: `${this.id}-contact-events`,
1234
+ source: source +
1235
+ getRigidBodyEventShader(this.props.eventCapacity, this.props.impactImpulseThreshold ?? 1, this.props.failurePolicy === 'rollback'),
1236
+ entryPoint: 'recordContacts',
1237
+ shaderLayout: {
1238
+ bindings: eventBindings.map(({ name, location }) => ({
1239
+ name,
1240
+ location,
1241
+ group: 0,
1242
+ type: ['bodies', 'eventStatistics'].includes(name)
1243
+ ? 'read-only-storage'
1244
+ : 'storage'
1245
+ }))
1246
+ }
1247
+ };
1248
+ const executable = (computation) => ({
1249
+ encode: ({ computePass, getBuffer }) => {
1250
+ Object.assign(computation.bindings, Object.fromEntries(eventBindings.map(binding => [binding.name, getBuffer(binding.resource)])));
1251
+ computation.kernel.dispatch(computePass, { bindings: computation.bindings, x: 1 });
1252
+ },
1253
+ destroy: () => computation.kernel.destroy()
1254
+ });
1255
+ graph.addComputePass({
1256
+ id: properties.id,
1257
+ description: 'Compare contact history and publish contact begin, persist, and end events.',
1258
+ resources: eventBindings.map(binding => ({
1259
+ buffer: binding.resource,
1260
+ usage: ['bodies', 'eventStatistics'].includes(binding.name)
1261
+ ? 'storage-read'
1262
+ : 'storage-read-write'
1263
+ })),
1264
+ compile: () => executable(createBoundKernel(graph.device, properties)),
1265
+ compileAsync: async () => executable(await createBoundKernelAsync(graph.device, properties))
1266
+ });
1267
+ }
1268
+ if (this.props.enableQueries) {
1269
+ this.querySettings = allocate('query-settings', 48, true);
1270
+ this.querySelection = allocate('query-selection', Math.max(4, this.colliderStorageCount * 4));
1271
+ this.queryOutput = allocate('query-output', 16 + Math.max(1, this.colliderStorageCount) * 48);
1272
+ const queryProperties = {
1273
+ id: `${this.id}-queries`,
1274
+ source: source + RIGID_BODY_QUERY_GEOMETRY_SHADER + RIGID_BODY_QUERY_SHADER,
1275
+ entryPoint: 'queryColliders',
1276
+ shaderLayout: {
1277
+ bindings: [
1278
+ ...shaderLayout.bindings.filter(binding => ['positions', 'orientations', 'bodies'].includes(binding.name)),
1279
+ { name: 'query', group: 0, location: 12, type: 'uniform' },
1280
+ { name: 'querySelection', group: 0, location: 13, type: 'read-only-storage' },
1281
+ { name: 'queryOutput', group: 0, location: 14, type: 'storage' }
1282
+ ]
1283
+ },
1284
+ bindings: {
1285
+ positions: this.positions,
1286
+ orientations: this.orientations,
1287
+ bodies,
1288
+ query: this.querySettings,
1289
+ querySelection: this.querySelection,
1290
+ queryOutput: this.queryOutput
1291
+ }
1292
+ };
1293
+ this.queryComputation = createBoundKernel(graph.device, queryProperties);
1294
+ this.queryReduction = createBoundKernel(graph.device, {
1295
+ ...queryProperties,
1296
+ entryPoint: 'reduceQueries',
1297
+ shaderLayout: {
1298
+ bindings: queryProperties.shaderLayout.bindings.filter(binding => ['query', 'querySelection', 'queryOutput'].includes(binding.name))
1299
+ },
1300
+ bindings: {
1301
+ query: this.querySettings,
1302
+ querySelection: this.querySelection,
1303
+ queryOutput: this.queryOutput
1304
+ }
1305
+ });
1306
+ }
1307
+ this.controlSettings = allocate('control-settings', 64, true);
1308
+ const controlProperties = {
1309
+ id: `${this.id}-impulse`,
1310
+ source: source +
1311
+ /* wgsl */ `
1312
+ struct Command { impulse: vec4f, point: vec4f, orientation: vec4f, bodyIndex: vec4u }
1313
+ @group(0) @binding(8) var<uniform> command: Command;
1314
+ @compute @workgroup_size(1) fn control() {
1315
+ if(command.bodyIndex.y==0u) {applyImpulse(command.bodyIndex.x,command.point.xyz,command.impulse.xyz);}
1316
+ else if(command.bodyIndex.y==6u){
1317
+ let body=command.bodyIndex.x;let shift=rotate(orientations[body],command.impulse.xyz);
1318
+ positions[body]=vec4f(positions[body].xyz+shift,positions[body].w);
1319
+ var linear=velocities[body].xyz+cross(angularVelocities[body].xyz,shift);
1320
+ var angular=angularVelocities[body].xyz;
1321
+ if(command.point.w>0.0){linear=command.point.xyz;}
1322
+ if(command.orientation.w>0.0){angular=command.orientation.xyz;}
1323
+ if(bodies.bodies[body].motion.x==0.0){linear=vec3f(0);angular=vec3f(0);}
1324
+ velocities[body]=vec4f(linear,command.impulse.w);angularVelocities[body]=vec4f(angular,0);
1325
+ if(command.bodyIndex.z!=0u){targets.entries[body].position.w=0.0;}
1326
+ }
1327
+ else if(command.bodyIndex.y==5u){let body=command.bodyIndex.x;if(dynamic(body)){angularVelocities[body]=vec4f(angularVelocities[body].xyz+inverseInertia(body,command.impulse.xyz),0);}}
1328
+ else if(command.bodyIndex.y==2u) {applyImpulse(command.bodyIndex.x,positions[command.bodyIndex.x].xyz,command.impulse.xyz);}
1329
+ ${this.props.joints?.length ? 'else if(command.bodyIndex.y==3u){targets.joints[command.bodyIndex.x].control.x=command.impulse.x;}' : ''}
1330
+ else {targets.entries[command.bodyIndex.x].position=vec4f(command.point.xyz,1);targets.entries[command.bodyIndex.x].orientation=command.orientation;}
1331
+ }
1332
+ @compute @workgroup_size(64) fn invalidate(@builtin(global_invocation_id) invocation:vec3u) {
1333
+ let index=invocation.x+invocation.y*4194240u;
1334
+ if(index<BODY_COUNT){sleepStates[index]=vec4f(0);}
1335
+ if(index<PAIR_CAPACITY){manifolds[index].count=0u;}
1336
+ ${this.props.joints?.length ? `if(index<${this.props.joints.length}u){for(var row=0u;row<8u;row++){targets.joints[index].impulses[row]=0.0;}}` : ''}
1337
+ }`,
1338
+ entryPoint: 'control',
1339
+ shaderLayout: {
1340
+ bindings: [
1341
+ ...shaderLayout.bindings.filter(binding => ![
1342
+ 'settings',
1343
+ 'meshTasks',
1344
+ 'parallelState',
1345
+ 'parallelDispatch',
1346
+ 'minima',
1347
+ 'maxima'
1348
+ ].includes(binding.name)),
1349
+ { name: 'command', group: 0, location: 8, type: 'uniform' }
1350
+ ]
1351
+ },
1352
+ bindings: {
1353
+ ...Object.fromEntries(Object.entries(buffers).filter(([name]) => ![
1354
+ 'settings',
1355
+ 'meshTasks',
1356
+ 'parallelState',
1357
+ 'parallelDispatch',
1358
+ 'minima',
1359
+ 'maxima'
1360
+ ].includes(name))),
1361
+ command: this.controlSettings
1362
+ }
1363
+ };
1364
+ this.control = createBoundKernel(graph.device, {
1365
+ ...controlProperties,
1366
+ shaderLayout: {
1367
+ bindings: controlProperties.shaderLayout.bindings.filter(binding => !['sleepStates', 'manifolds'].includes(binding.name))
1368
+ },
1369
+ bindings: Object.fromEntries(Object.entries(controlProperties.bindings).filter(([name]) => !['sleepStates', 'manifolds'].includes(name)))
1370
+ });
1371
+ const invalidationBindings = [
1372
+ 'sleepStates',
1373
+ 'manifolds',
1374
+ ...(this.props.joints?.length ? ['targets'] : [])
1375
+ ];
1376
+ this.invalidation = createBoundKernel(graph.device, {
1377
+ ...controlProperties,
1378
+ id: `${this.id}-invalidate`,
1379
+ entryPoint: 'invalidate',
1380
+ shaderLayout: {
1381
+ bindings: controlProperties.shaderLayout.bindings.filter(binding => invalidationBindings.includes(binding.name))
1382
+ },
1383
+ bindings: Object.fromEntries(Object.entries(controlProperties.bindings).filter(([name]) => invalidationBindings.includes(name)))
1384
+ });
1385
+ }
1386
+ invalidateState(pass) {
1387
+ // Controls may wake any island; reclassify enabled instances on the next GPU step.
1388
+ this.ensembleBuffer?.write(new Uint32Array([1]), 4);
1389
+ const workgroups = Math.ceil(Math.max(this.count, this.maximumPairs, this.props.joints?.length ?? 0) / 64);
1390
+ this.invalidation.kernel.dispatch(pass, {
1391
+ bindings: this.invalidation.bindings,
1392
+ x: Math.min(65535, workgroups),
1393
+ y: Math.ceil(workgroups / 65535)
1394
+ });
1395
+ }
1396
+ /** Double-precision global origin. GPU poses, controls, queries and event points are local. */
1397
+ get origin() {
1398
+ return [...this.worldOrigin];
1399
+ }
1400
+ /** Rebase between submissions, preserving velocities, contact impulses and sleeping state. */
1401
+ shiftOrigin(shift) {
1402
+ if (!this.device || this.destroyed || this.queryPending || this.eventRead || this.triggerRead)
1403
+ throw new Error('Origin shifting requires an idle attached world');
1404
+ // Exact float32 shifts keep the CPU origin and GPU subtraction consistent.
1405
+ if (shift.length !== 3 ||
1406
+ shift.some(value => !Number.isFinite(value) || Math.fround(value) !== value))
1407
+ throw new Error('Origin shift must be an exactly representable float32 vector');
1408
+ if (shift.every(value => value === 0))
1409
+ return;
1410
+ shiftRigidBodyBuffers(this.device, this.id, this.ownedBuffers, this.count, this.colliderStorageCount, this.maximumPairs, this.props.eventCapacity ?? 0, shift);
1411
+ this.worldOrigin = this.worldOrigin.map((value, axis) => value + shift[axis]);
1412
+ this.publishPoses();
1413
+ }
1414
+ /** Inspect the declared motion mode without exposing mutable world configuration. */
1415
+ getBodyMode(body) {
1416
+ const definition = this.props.bodies[body];
1417
+ return definition
1418
+ ? (definition.mode ?? ((definition.mass ?? 1) === 0 ? 'static' : 'dynamic'))
1419
+ : undefined;
1420
+ }
1421
+ /** Submit an impulse at a world-space point, or the current GPU center of mass when omitted. */
1422
+ applyImpulse(body, impulse, point) {
1423
+ if (!this.control ||
1424
+ !this.device ||
1425
+ !this.controlSettings ||
1426
+ this.destroyed ||
1427
+ !Number.isInteger(body) ||
1428
+ body < 0 ||
1429
+ body >= this.count ||
1430
+ ![...impulse, ...(point ?? [])].every(Number.isFinite))
1431
+ throw new Error('Invalid rigid-body impulse');
1432
+ const data = new ArrayBuffer(64);
1433
+ new Float32Array(data).set([...impulse, 0, ...(point ?? [0, 0, 0]), 0]);
1434
+ new Uint32Array(data)[12] = body;
1435
+ new Uint32Array(data)[13] = point ? 0 : 2;
1436
+ this.controlSettings.write(new Uint8Array(data));
1437
+ const encoder = this.device.createCommandEncoder();
1438
+ const pass = encoder.beginComputePass();
1439
+ this.control.kernel.dispatch(pass, { bindings: this.control.bindings, x: 1 });
1440
+ this.invalidateState(pass);
1441
+ pass.end();
1442
+ this.device.submit(encoder.finish());
1443
+ }
1444
+ /** Read configured motion properties; use readState() for simulated pose and velocity. */
1445
+ getBodyParameters(body, { deriveInertia = true } = {}) {
1446
+ const definition = this.props.bodies[body];
1447
+ if (!definition || this.destroyed)
1448
+ throw new Error('Invalid body');
1449
+ const { mode, mass, centerOfMass, inertiaDiagonal, inertiaOrientation, velocity, angularVelocity, gravityFactor } = definition;
1450
+ const compound = getCompoundBodyInertia(mass ?? 1, this.colliders.filter(collider => collider.body === body), centerOfMass ?? [0, 0, 0]);
1451
+ return structuredClone({
1452
+ mode: mode ?? ((mass ?? 1) === 0 ? 'static' : 'dynamic'),
1453
+ mass: mass ?? 1,
1454
+ centerOfMass: centerOfMass ?? [0, 0, 0],
1455
+ inertiaDiagonal: inertiaDiagonal ?? (deriveInertia ? compound.diagonal : undefined),
1456
+ inertiaOrientation: inertiaOrientation ??
1457
+ (deriveInertia ? (inertiaDiagonal ? [0, 0, 0, 1] : compound.orientation) : undefined),
1458
+ velocity: velocity ?? [0, 0, 0],
1459
+ angularVelocity: angularVelocity ?? [0, 0, 0],
1460
+ gravityFactor: gravityFactor ?? 1
1461
+ });
1462
+ }
1463
+ /** Refresh render outputs without integrating or solving a simulation step. */
1464
+ publishPoses() {
1465
+ if (!this.device || this.destroyed)
1466
+ throw new Error('Unavailable physics world');
1467
+ if (!this.encodePosePublication)
1468
+ return;
1469
+ const encoder = this.device.createCommandEncoder();
1470
+ this.encodePosePublication(encoder);
1471
+ this.device.submit(encoder.finish());
1472
+ }
1473
+ /** Update visual bounds independently of collision geometry, before the next submission. */
1474
+ setPublicationBounds(bounds) {
1475
+ if (!this.poseBounds ||
1476
+ bounds.length !== this.count ||
1477
+ bounds.some(bound => bound.length !== 2 ||
1478
+ bound.some(vector => vector.length !== 3 || !vector.every(value => Number.isFinite(Math.fround(value)))) ||
1479
+ bound[0].some((value, axis) => value > bound[1][axis])))
1480
+ throw new Error('Invalid publication bounds');
1481
+ const metadata = this.ownedBuffers.find(buffer => buffer.id === `${this.id}-pose-metadata`);
1482
+ const data = new Float32Array(this.count * 12);
1483
+ for (const [index, body] of this.props.bodies.entries())
1484
+ data.set([...(body.centerOfMass ?? [0, 0, 0]), 0, ...bounds[index][0], 0, ...bounds[index][1], 0], index * 12);
1485
+ metadata.write(data);
1486
+ this.props.publicationBounds = structuredClone(bounds);
1487
+ }
1488
+ /** Applied scale relative to the initially cooked analytic shape. */
1489
+ getColliderShapeScale(colliderIndex) {
1490
+ this.getColliderShape(colliderIndex);
1491
+ return [...(this.colliderShapeScales.get(colliderIndex) ?? [1, 1, 1])];
1492
+ }
1493
+ /** Return a detached copy of the configured collision geometry. */
1494
+ getColliderShape(colliderIndex) {
1495
+ const collider = this.colliders[colliderIndex];
1496
+ if (!Number.isInteger(colliderIndex) || !collider || this.destroyed)
1497
+ throw new Error('Invalid collider');
1498
+ return structuredClone(collider.shape);
1499
+ }
1500
+ /** Edit analytic dimensions without recompiling or reading body state back to the CPU.
1501
+ * All edits are validated before publication. Shape kinds and mesh topology require rebuild().
1502
+ * Explicit mass/COM/inertia and authored visual bounds remain caller-owned.
1503
+ */
1504
+ setColliderShapes(edits) {
1505
+ if (!this.device || this.destroyed)
1506
+ throw new Error('World is not attached');
1507
+ const indices = new Set();
1508
+ const shapes = edits.map(edit => {
1509
+ const previous = this.getColliderShape(edit.collider);
1510
+ const shape = structuredClone(edit.shape);
1511
+ if (edit.shapeScale &&
1512
+ (edit.shapeScale.length !== 3 ||
1513
+ edit.shapeScale.some(value => !Number.isFinite(value) || value <= 0)))
1514
+ throw new Error('Invalid collider shape scale');
1515
+ if (indices.has(edit.collider) ||
1516
+ previous.type !== shape.type ||
1517
+ shape.type === 'convex-hull' ||
1518
+ shape.type === 'triangle-mesh')
1519
+ throw new Error('Shape edit requires a topology rebuild');
1520
+ indices.add(edit.collider);
1521
+ const properties = getRigidBodyShapeProperties(shape);
1522
+ const packed = packRigidBodyShapes([{ shape }]).shapes[0];
1523
+ if (![
1524
+ ...packed.dimensions,
1525
+ properties.volume,
1526
+ ...properties.tensor,
1527
+ ...properties.center
1528
+ ].every(value => Number.isFinite(Math.fround(value))))
1529
+ throw new Error('Shape exceeds float32 range');
1530
+ return {
1531
+ collider: edit.collider,
1532
+ shape,
1533
+ dimensions: packed.dimensions,
1534
+ shapeScale: edit.shapeScale
1535
+ };
1536
+ });
1537
+ const metadata = this.ownedBuffers.find(buffer => buffer.id === `${this.id}-bodies`);
1538
+ if (!metadata)
1539
+ throw new Error('World is not attached');
1540
+ for (const edit of shapes) {
1541
+ metadata.write(new Float32Array(edit.dimensions), this.count * 48 + edit.collider * 96);
1542
+ this.colliders[edit.collider].shape = edit.shape;
1543
+ if (edit.shapeScale)
1544
+ this.colliderShapeScales.set(edit.collider, [...edit.shapeScale]);
1545
+ }
1546
+ for (const body of new Set(shapes.map(edit => this.colliders[edit.collider].body))) {
1547
+ this.updateColliderDefinitions(body);
1548
+ // Recalculate derived inertia while preserving simulated velocities and the node origin.
1549
+ this.setBodyParameters(body, {});
1550
+ }
1551
+ }
1552
+ /** Change an existing collider material between submissions, invalidating cached friction. */
1553
+ setColliderMaterial(colliderIndex, material) {
1554
+ const collider = this.colliders[colliderIndex];
1555
+ if (!this.device || this.destroyed || !Number.isInteger(colliderIndex) || !collider)
1556
+ throw new Error('Invalid collider');
1557
+ const policies = [
1558
+ 'average',
1559
+ 'minimum',
1560
+ 'maximum',
1561
+ 'multiply'
1562
+ ];
1563
+ if ([
1564
+ material.staticFriction ?? 0.6,
1565
+ material.dynamicFriction ?? 0.6,
1566
+ material.restitution ?? 0.1
1567
+ ].some(value => !Number.isFinite(Math.fround(value)) || value < 0) ||
1568
+ (material.restitution ?? 0.1) > 1 ||
1569
+ [material.frictionCombine, material.restitutionCombine].some(value => value !== undefined && !policies.includes(value)))
1570
+ throw new Error('Invalid collider material');
1571
+ const body = this.props.bodies[collider.body];
1572
+ const metadata = this.ownedBuffers.find(buffer => buffer.id === `${this.id}-bodies`);
1573
+ if (!metadata)
1574
+ throw new Error('World is not attached');
1575
+ metadata.write(new Float32Array([
1576
+ material.restitution ?? body.restitution ?? 0.1,
1577
+ material.staticFriction ?? body.friction ?? 0.6,
1578
+ material.dynamicFriction ?? body.friction ?? 0.6
1579
+ ]), this.count * 48 + colliderIndex * 96 + 48);
1580
+ metadata.write(new Float32Array([
1581
+ material.restitutionCombine ? policies.indexOf(material.restitutionCombine) : 4,
1582
+ material.frictionCombine ? policies.indexOf(material.frictionCombine) : 4
1583
+ ]), this.count * 48 + colliderIndex * 96 + 64);
1584
+ collider.material = structuredClone(material);
1585
+ this.updateColliderDefinitions(collider.body);
1586
+ this.wake();
1587
+ }
1588
+ /** Teleport a collider in its body-node frame, preserving the body pose and explicit COM. */
1589
+ setColliderTransform(colliderIndex, position, orientation) {
1590
+ const collider = this.colliders[colliderIndex];
1591
+ if (this.destroyed ||
1592
+ !this.device ||
1593
+ !collider ||
1594
+ !position.every(value => Number.isFinite(Math.fround(value))))
1595
+ throw new Error('Invalid collider transform');
1596
+ const rotation = normalizeRigidBodyRotation(orientation);
1597
+ const center = this.props.bodies[collider.body].centerOfMass ?? [0, 0, 0];
1598
+ if (this.props.continuous?.mode !== 'convex' &&
1599
+ this.props.continuous?.bodies.includes(collider.body) &&
1600
+ position.some((value, axis) => value !== center[axis]))
1601
+ throw new Error('Collider transform exceeds continuous envelope');
1602
+ const metadata = this.ownedBuffers.find(buffer => buffer.id === `${this.id}-bodies`);
1603
+ if (!metadata)
1604
+ throw new Error('World is not attached');
1605
+ metadata.write(new Float32Array([
1606
+ ...position.map((value, axis) => value - center[axis]),
1607
+ collider.body,
1608
+ ...rotation
1609
+ ]), this.count * 48 + colliderIndex * 96 + 16);
1610
+ collider.position = [...position];
1611
+ collider.orientation = rotation;
1612
+ this.updateColliderDefinitions(collider.body);
1613
+ this.setBodyParameters(collider.body, {});
1614
+ }
1615
+ updateColliderDefinitions(bodyIndex) {
1616
+ const { shape, colliders, ...properties } = this.props.bodies[bodyIndex];
1617
+ const updated = this.colliders
1618
+ .filter(candidate => candidate.body === bodyIndex)
1619
+ .map(({ body, ...candidate }) => candidate);
1620
+ const bodies = [...this.props.bodies];
1621
+ bodies[bodyIndex] = { ...properties, colliders: updated };
1622
+ this.props.bodies = bodies;
1623
+ }
1624
+ getColliderMaterial(collider) {
1625
+ const definition = this.colliders[collider];
1626
+ if (!definition || this.destroyed)
1627
+ throw new Error('Invalid collider');
1628
+ return structuredClone(definition.material ?? {});
1629
+ }
1630
+ restoreColliderDefinitions() {
1631
+ // Body definitions are already world-owned. Keep their shared geometry identities.
1632
+ const definitions = this.props.bodies.flatMap(body => body.colliders ?? (body.shape ? [{ shape: body.shape }] : []));
1633
+ for (const [index, definition] of definitions.entries()) {
1634
+ const collider = this.colliders[index];
1635
+ collider.shape = definition.shape;
1636
+ collider.material = definition.material;
1637
+ collider.position = definition.position;
1638
+ collider.orientation = definition.orientation;
1639
+ }
1640
+ }
1641
+ /** Update motion properties between submissions; preserve the node pose when its COM changes. */
1642
+ setBodyParameters(bodyIndex, parameters) {
1643
+ if (!this.device ||
1644
+ !this.control ||
1645
+ !this.controlSettings ||
1646
+ this.destroyed ||
1647
+ !Number.isInteger(bodyIndex) ||
1648
+ !this.props.bodies[bodyIndex])
1649
+ throw new Error('Invalid body mutation');
1650
+ const previous = this.props.bodies[bodyIndex];
1651
+ const next = { ...previous, ...structuredClone(parameters) };
1652
+ const mass = next.mass ?? 1;
1653
+ const mode = next.mode ?? (mass === 0 ? 'static' : 'dynamic');
1654
+ const center = next.centerOfMass ?? [0, 0, 0];
1655
+ const oldCenter = previous.centerOfMass ?? [0, 0, 0];
1656
+ if (!['static', 'dynamic', 'kinematic'].includes(mode) ||
1657
+ !Number.isFinite(Math.fround(mass)) ||
1658
+ mass < 0 ||
1659
+ ![
1660
+ ...center,
1661
+ ...(next.velocity ?? []),
1662
+ ...(next.angularVelocity ?? []),
1663
+ next.gravityFactor ?? 1
1664
+ ].every(value => Number.isFinite(Math.fround(value))) ||
1665
+ (next.inertiaDiagonal ?? []).some(value => !Number.isFinite(Math.fround(value)) || value < 0) ||
1666
+ (next.inertiaOrientation && !next.inertiaDiagonal))
1667
+ throw new Error('Invalid motion properties');
1668
+ const colliders = this.colliders.filter(collider => collider.body === bodyIndex);
1669
+ for (const collider of colliders)
1670
+ if ((collider.shape.type === 'convex-hull' || collider.shape.type === 'triangle-mesh') &&
1671
+ mode !== 'static' &&
1672
+ mass > 0 &&
1673
+ (!collider.shape.geometry.closed ||
1674
+ !(getRigidBodyShapeProperties(collider.shape).volume > 0)))
1675
+ throw new Error('Dynamic meshes require closed positive-volume geometry');
1676
+ if (this.props.continuous?.bodies.includes(bodyIndex) &&
1677
+ (mode !== 'dynamic' ||
1678
+ mass === 0 ||
1679
+ (this.props.continuous.mode !== 'convex' &&
1680
+ (colliders[0].position ?? [0, 0, 0]).some((value, axis) => value !== center[axis]))))
1681
+ throw new Error('Mutation exceeds the continuous body envelope');
1682
+ const compound = getCompoundBodyInertia(mass, colliders, center);
1683
+ const inertia = next.inertiaDiagonal ?? compound.diagonal;
1684
+ const rotation = normalizeRigidBodyRotation(next.inertiaOrientation ?? (next.inertiaDiagonal ? undefined : compound.orientation));
1685
+ const metadata = this.ownedBuffers.find(buffer => buffer.id === `${this.id}-bodies`);
1686
+ metadata.write(new Float32Array([
1687
+ ...inertia.map(value => (mode === 'dynamic' && value ? 1 / value : 0)),
1688
+ center[0],
1689
+ ...rotation,
1690
+ mode === 'static' ? 0 : mode === 'dynamic' ? 1 : 2,
1691
+ next.gravityFactor ?? 1,
1692
+ center[1],
1693
+ center[2]
1694
+ ]), bodyIndex * 48);
1695
+ const attributes = this.ownedBuffers.find(buffer => buffer.id === `${this.id}-object-attributes`);
1696
+ for (const [index, collider] of this.colliders.entries())
1697
+ if (collider.body === bodyIndex) {
1698
+ metadata.write(new Float32Array((collider.position ?? [0, 0, 0]).map((value, axis) => value - center[axis])), this.count * 48 + index * 96 + 16);
1699
+ attributes?.write(new Uint32Array([bodyIndex | (mode === 'dynamic' ? 0x10000 : 0)]), index * 4);
1700
+ }
1701
+ this.ownedBuffers
1702
+ .find(buffer => buffer.id === `${this.id}-pose-metadata`)
1703
+ ?.write(new Float32Array(center), bodyIndex * 48);
1704
+ const data = new ArrayBuffer(64);
1705
+ new Float32Array(data).set([
1706
+ ...center.map((value, axis) => value - oldCenter[axis]),
1707
+ mode === 'dynamic' && mass ? 1 / mass : 0,
1708
+ ...(parameters.velocity ?? [0, 0, 0]),
1709
+ parameters.velocity ? 1 : 0,
1710
+ ...(parameters.angularVelocity ?? [0, 0, 0]),
1711
+ parameters.angularVelocity ? 1 : 0
1712
+ ]);
1713
+ new Uint32Array(data).set([bodyIndex, 6, mode !== this.getBodyMode(bodyIndex) ? 1 : 0], 12);
1714
+ this.controlSettings.write(new Uint8Array(data));
1715
+ const encoder = this.device.createCommandEncoder();
1716
+ const pass = encoder.beginComputePass();
1717
+ this.control.kernel.dispatch(pass, { bindings: this.control.bindings, x: 1 });
1718
+ this.invalidateState(pass);
1719
+ pass.end();
1720
+ this.device.submit(encoder.finish());
1721
+ const bodies = [...this.props.bodies];
1722
+ bodies[bodyIndex] = next;
1723
+ this.props.bodies = bodies;
1724
+ }
1725
+ /** Apply a world-space angular impulse at the current GPU pose. */
1726
+ applyAngularImpulse(body, impulse) {
1727
+ if (!this.control ||
1728
+ !this.device ||
1729
+ !this.controlSettings ||
1730
+ this.destroyed ||
1731
+ !Number.isInteger(body) ||
1732
+ body < 0 ||
1733
+ body >= this.count ||
1734
+ !impulse.every(Number.isFinite))
1735
+ throw new Error('Invalid angular impulse');
1736
+ const data = new ArrayBuffer(64);
1737
+ new Float32Array(data).set(impulse);
1738
+ new Uint32Array(data)[12] = body;
1739
+ new Uint32Array(data)[13] = 5;
1740
+ this.controlSettings.write(new Uint8Array(data));
1741
+ const encoder = this.device.createCommandEncoder();
1742
+ const pass = encoder.beginComputePass();
1743
+ this.control.kernel.dispatch(pass, { bindings: this.control.bindings, x: 1 });
1744
+ this.invalidateState(pass);
1745
+ pass.end();
1746
+ this.device.submit(encoder.finish());
1747
+ }
1748
+ /** Set a world-space node target for a kinematic body, held until replaced. */
1749
+ setKinematicTarget(body, position, orientation) {
1750
+ if (!this.control ||
1751
+ !this.controlSettings ||
1752
+ !this.device ||
1753
+ this.destroyed ||
1754
+ !Number.isInteger(body) ||
1755
+ this.props.bodies[body]?.mode !== 'kinematic' ||
1756
+ !position.every(Number.isFinite))
1757
+ throw new Error('Invalid kinematic target');
1758
+ const rotation = normalizeRigidBodyRotation(orientation);
1759
+ const offset = rotateRigidBodyVector(rotation, this.props.bodies[body].centerOfMass ?? [0, 0, 0]);
1760
+ const data = new ArrayBuffer(64);
1761
+ new Float32Array(data).set([...position.map((value, axis) => value + offset[axis]), 0], 4);
1762
+ new Float32Array(data).set(rotation, 8);
1763
+ new Uint32Array(data).set([body, 1], 12);
1764
+ this.controlSettings.write(new Uint8Array(data));
1765
+ const encoder = this.device.createCommandEncoder();
1766
+ const pass = encoder.beginComputePass();
1767
+ this.control.kernel.dispatch(pass, { bindings: this.control.bindings, x: 1 });
1768
+ this.invalidateState(pass);
1769
+ pass.end();
1770
+ this.device.submit(encoder.finish());
1771
+ }
1772
+ getJointStateOffset() {
1773
+ return (Math.ceil((this.count * 32 +
1774
+ (this.broadPhase === 'hierarchical-grid' ? 32 + this.maximumPairs * 8 : 16)) /
1775
+ 16) * 16);
1776
+ }
1777
+ getJointParameters(index) {
1778
+ const joint = this.props.joints?.[index];
1779
+ if (!joint || this.destroyed)
1780
+ throw new Error('Invalid joint');
1781
+ return structuredClone(joint);
1782
+ }
1783
+ /** Update an existing constraint's response without recompiling or changing attachment topology. */
1784
+ setJointParameters(index, parameters) {
1785
+ this.setJointParameterEdits([{ index, parameters }]);
1786
+ }
1787
+ /** Validate every shared-resource edit before submitting any control writes. */
1788
+ setJointParameterEdits(edits) {
1789
+ for (const { index, parameters } of edits)
1790
+ this.validateJointParameters(index, parameters);
1791
+ for (const { index, parameters } of edits)
1792
+ this.writeJointParameters(index, parameters);
1793
+ }
1794
+ validateJointParameters(index, parameters) {
1795
+ const previous = this.props.joints?.[index];
1796
+ if (!previous ||
1797
+ !this.targets ||
1798
+ this.destroyed ||
1799
+ previous.type !== parameters.type ||
1800
+ previous.first !== parameters.first ||
1801
+ previous.second !== parameters.second ||
1802
+ JSON.stringify(previous.firstFrame) !== JSON.stringify(parameters.firstFrame) ||
1803
+ JSON.stringify(previous.secondFrame) !== JSON.stringify(parameters.secondFrame))
1804
+ throw new Error('Joint topology must remain unchanged');
1805
+ validateRigidBodyJoints([parameters], this.props.bodies, this.solver);
1806
+ }
1807
+ writeJointParameters(index, parameters) {
1808
+ const joints = [...this.props.joints];
1809
+ joints[index] = structuredClone(parameters);
1810
+ this.props.joints = joints;
1811
+ this.targets.write(packRigidBodyJointState(parameters), this.getJointStateOffset() + index * RIGID_BODY_JOINT_STATE_BYTES);
1812
+ this.setJointEnabled(index, parameters.enabled !== false);
1813
+ }
1814
+ /** Enable a predeclared joint between submissions; wakes bodies and clears cached impulses. */
1815
+ setJointEnabled(joint, enabled) {
1816
+ if (!this.control ||
1817
+ !this.controlSettings ||
1818
+ !this.device ||
1819
+ this.destroyed ||
1820
+ !Number.isInteger(joint) ||
1821
+ !this.props.joints?.[joint])
1822
+ throw new Error('Invalid joint');
1823
+ const data = new ArrayBuffer(64);
1824
+ new Float32Array(data)[0] = enabled ? 1 : 0;
1825
+ new Uint32Array(data).set([joint, 3], 12);
1826
+ this.controlSettings.write(new Uint8Array(data));
1827
+ const encoder = this.device.createCommandEncoder();
1828
+ const pass = encoder.beginComputePass();
1829
+ this.control.kernel.dispatch(pass, { bindings: this.control.bindings, x: 1 });
1830
+ this.invalidateState(pass);
1831
+ pass.end();
1832
+ this.device.submit(encoder.finish());
1833
+ const joints = [...this.props.joints];
1834
+ joints[joint] = { ...joints[joint], enabled };
1835
+ this.props.joints = joints;
1836
+ }
1837
+ /** Clear persistence and sleeping after direct state writes between submissions. */
1838
+ wake() {
1839
+ if (this.destroyed || !this.device || !this.invalidation)
1840
+ return;
1841
+ const encoder = this.device.createCommandEncoder();
1842
+ const pass = encoder.beginComputePass();
1843
+ this.invalidateState(pass);
1844
+ pass.end();
1845
+ this.device.submit(encoder.finish());
1846
+ }
1847
+ /** Optional asynchronous event readback. Concurrent readers share one snapshot/cursor. */
1848
+ readContactEvents() {
1849
+ if (!this.contactEvents || this.destroyed)
1850
+ return Promise.reject(new Error('Contact events are not enabled'));
1851
+ if (!this.eventRead)
1852
+ this.eventRead = this.contactEvents
1853
+ .readAsync()
1854
+ .then(bytes => {
1855
+ const batch = decodeRigidBodyContactEvents(new Uint32Array(bytes.buffer, bytes.byteOffset, bytes.byteLength / 4), this.eventCursor);
1856
+ this.eventCursor = batch.sequence;
1857
+ return batch;
1858
+ })
1859
+ .finally(() => {
1860
+ this.eventRead = null;
1861
+ });
1862
+ return this.eventRead;
1863
+ }
1864
+ /** Nearest exact sphere/OBB hit. Origins inside a shape return distance zero and a zero normal. */
1865
+ raycast(query) {
1866
+ return this.runQuery(query);
1867
+ }
1868
+ /** Exact sphere overlap against selected sphere/OBB colliders, in collider-index order. */
1869
+ overlapSphere(query) {
1870
+ return this.runQuery(query);
1871
+ }
1872
+ async runQuery(query) {
1873
+ if (!this.device ||
1874
+ !this.queryComputation ||
1875
+ !this.querySettings ||
1876
+ !this.querySelection ||
1877
+ !this.queryOutput ||
1878
+ this.destroyed ||
1879
+ this.queryPending)
1880
+ throw new Error('Queries are disabled or busy');
1881
+ const ray = 'origin' in query;
1882
+ const cast = ray && 'radius' in query;
1883
+ const origin = ray ? query.origin : query.center;
1884
+ const direction = ray ? query.direction : [0, 0, 0];
1885
+ const length = Math.hypot(...direction);
1886
+ const maximumHits = ray ? 1 : (query.maximumHits ?? this.colliderCount);
1887
+ if ((cast && (!Number.isFinite(query.radius) || query.radius < 0)) ||
1888
+ origin.length !== 3 ||
1889
+ !origin.every(value => Number.isFinite(Math.fround(value))) ||
1890
+ direction.length !== 3 ||
1891
+ !direction.every(Number.isFinite) ||
1892
+ (ray
1893
+ ? !Number.isFinite(length) ||
1894
+ length === 0 ||
1895
+ !Number.isFinite(query.maximumDistance) ||
1896
+ query.maximumDistance < 0
1897
+ : !Number.isFinite(query.radius) || query.radius < 0) ||
1898
+ !Number.isInteger(maximumHits) ||
1899
+ maximumHits < 0 ||
1900
+ maximumHits > Math.max(1, this.colliderCount) ||
1901
+ (query.excludeBody !== undefined &&
1902
+ (!Number.isInteger(query.excludeBody) ||
1903
+ query.excludeBody < 0 ||
1904
+ query.excludeBody >= this.count)))
1905
+ throw new Error('Invalid collision query');
1906
+ const selected = query.colliderIndices ?? Array.from({ length: this.colliderCount }, (_, index) => index);
1907
+ const selection = new Uint32Array(this.colliderStorageCount);
1908
+ for (const index of selected) {
1909
+ if (!Number.isInteger(index) || index < 0 || index >= this.colliderCount)
1910
+ throw new Error('Invalid query collider');
1911
+ const collider = this.colliders[index];
1912
+ if (collider.body === query.excludeBody)
1913
+ continue;
1914
+ selection[index] = 1;
1915
+ }
1916
+ this.queryPending = true;
1917
+ try {
1918
+ const data = new ArrayBuffer(48);
1919
+ new Float32Array(data).set([
1920
+ ...origin,
1921
+ ray ? (cast ? query.radius : 0) : query.radius,
1922
+ ...direction.map(value => (ray ? value / length : 0)),
1923
+ ray ? query.maximumDistance : 1e30
1924
+ ]);
1925
+ new Uint32Array(data).set([ray ? (cast ? 2 : 0) : 1, maximumHits, 0, 0], 8);
1926
+ this.querySettings.write(new Uint8Array(data));
1927
+ this.querySelection.write(selection);
1928
+ const encoder = this.device.createCommandEncoder();
1929
+ const pass = encoder.beginComputePass();
1930
+ this.queryComputation.kernel.dispatch(pass, {
1931
+ bindings: this.queryComputation.bindings,
1932
+ x: Math.ceil(this.colliderStorageCount / 64)
1933
+ });
1934
+ this.queryReduction.kernel.dispatch(pass, { bindings: this.queryReduction.bindings, x: 1 });
1935
+ pass.end();
1936
+ this.device.submit(encoder.finish());
1937
+ const bytes = await this.queryOutput.readAsync(0, 16 + maximumHits * 48);
1938
+ const words = new Uint32Array(bytes.buffer, bytes.byteOffset, bytes.byteLength / 4);
1939
+ const floats = new Float32Array(bytes.buffer, bytes.byteOffset, bytes.byteLength / 4);
1940
+ const hits = Array.from({ length: words[0] }, (_, index) => {
1941
+ const offset = 4 + index * 12;
1942
+ return {
1943
+ body: words[offset],
1944
+ collider: words[offset + 1],
1945
+ point: [floats[offset + 4], floats[offset + 5], floats[offset + 6]],
1946
+ distance: floats[offset + 7],
1947
+ normal: [floats[offset + 8], floats[offset + 9], floats[offset + 10]]
1948
+ };
1949
+ });
1950
+ return {
1951
+ hits,
1952
+ totalHits: words[1],
1953
+ truncated: !ray && words[1] > words[0],
1954
+ complete: words[2] === 0
1955
+ };
1956
+ }
1957
+ finally {
1958
+ this.queryPending = false;
1959
+ }
1960
+ }
1961
+ /** Cast a sphere against selected collision surfaces using bounded conservative advancement. */
1962
+ castSphere(query) {
1963
+ return this.runQuery(query);
1964
+ }
1965
+ async readState() {
1966
+ if (!this.positions ||
1967
+ !this.orientations ||
1968
+ !this.velocities ||
1969
+ !this.angularVelocities ||
1970
+ !this.sleepStates ||
1971
+ this.destroyed)
1972
+ throw new Error('Rigid-body world is not active');
1973
+ const arrays = await Promise.all([
1974
+ this.positions,
1975
+ this.orientations,
1976
+ this.velocities,
1977
+ this.angularVelocities,
1978
+ this.sleepStates
1979
+ ].map(async (buffer) => new Float32Array((await buffer.readAsync()).buffer)));
1980
+ return Array.from({ length: this.count }, (_, index) => {
1981
+ const offset = index * 4;
1982
+ return {
1983
+ position: [arrays[0][offset], arrays[0][offset + 1], arrays[0][offset + 2]],
1984
+ orientation: [
1985
+ arrays[1][offset],
1986
+ arrays[1][offset + 1],
1987
+ arrays[1][offset + 2],
1988
+ arrays[1][offset + 3]
1989
+ ],
1990
+ velocity: [arrays[2][offset], arrays[2][offset + 1], arrays[2][offset + 2]],
1991
+ angularVelocity: [arrays[3][offset], arrays[3][offset + 1], arrays[3][offset + 2]],
1992
+ sleeping: arrays[4][offset + 1] > 0.5
1993
+ };
1994
+ });
1995
+ }
1996
+ /** Read step-ordered trigger transitions without losing intermediate enter/exit changes. */
1997
+ readTriggerEvents() {
1998
+ if (!this.triggerEvents || this.destroyed)
1999
+ throw new Error('Triggers are disabled');
2000
+ if (this.triggerRead)
2001
+ return this.triggerRead;
2002
+ this.triggerRead = this.triggerEvents
2003
+ .readAsync()
2004
+ .then(bytes => {
2005
+ const batch = decodeRigidBodyTriggerEvents(new Uint32Array(bytes.buffer, bytes.byteOffset, bytes.byteLength / 4), this.triggerCursor);
2006
+ this.triggerCursor = batch.sequence;
2007
+ return batch;
2008
+ })
2009
+ .finally(() => {
2010
+ this.triggerRead = null;
2011
+ });
2012
+ return this.triggerRead;
2013
+ }
2014
+ getSnapshotBuffers(includeRollbackScratch = true) {
2015
+ return this.ownedBuffers.filter(buffer => includeRollbackScratch || !buffer.id.startsWith(`${this.id}-checkpoint-`));
2016
+ }
2017
+ /** Reusable same-world GPU checkpoint; copies state without CPU pose or buffer readback. */
2018
+ createGPUCheckpoint(options = {}) {
2019
+ if (!this.device || this.destroyed)
2020
+ throw new Error('Checkpoint requires an attached world');
2021
+ const device = this.device;
2022
+ // Rollback scratch is overwritten at the start of every step, before it can be restored.
2023
+ const checkpointBuffers = this.getSnapshotBuffers(options.includeRollbackScratch);
2024
+ const snapshots = [];
2025
+ let released = false;
2026
+ let saved = false;
2027
+ let origin = [...this.worldOrigin];
2028
+ let joints = structuredClone(this.props.joints);
2029
+ let bodyDefinitions = structuredClone(this.props.bodies);
2030
+ let contactCursor = 0;
2031
+ let triggerCursor = 0;
2032
+ try {
2033
+ for (const buffer of checkpointBuffers)
2034
+ snapshots.push(device.createBuffer({
2035
+ id: `${buffer.id}-recovery`,
2036
+ byteLength: buffer.byteLength,
2037
+ usage: Buffer.COPY_SRC | Buffer.COPY_DST
2038
+ }));
2039
+ }
2040
+ catch (error) {
2041
+ for (const buffer of snapshots)
2042
+ buffer.destroy();
2043
+ throw error;
2044
+ }
2045
+ const copy = (restore) => {
2046
+ if (released || this.destroyed || this.queryPending || this.eventRead || this.triggerRead)
2047
+ throw new Error('Checkpoint requires an idle live world');
2048
+ const encoder = device.createCommandEncoder();
2049
+ for (const [index, buffer] of checkpointBuffers.entries())
2050
+ encoder.copyBufferToBuffer({
2051
+ sourceBuffer: restore ? snapshots[index] : buffer,
2052
+ destinationBuffer: restore ? buffer : snapshots[index],
2053
+ size: buffer.byteLength
2054
+ });
2055
+ device.submit(encoder.finish());
2056
+ };
2057
+ let shapeScales = structuredClone(this.colliderShapeScales);
2058
+ let publicationBounds = structuredClone(this.props.publicationBounds);
2059
+ const checkpoint = {
2060
+ byteLength: snapshots.reduce((sum, buffer) => sum + buffer.byteLength, 0),
2061
+ save: () => {
2062
+ copy(false);
2063
+ origin = [...this.worldOrigin];
2064
+ joints = structuredClone(this.props.joints);
2065
+ bodyDefinitions = structuredClone(this.props.bodies);
2066
+ shapeScales = structuredClone(this.colliderShapeScales);
2067
+ publicationBounds = structuredClone(this.props.publicationBounds);
2068
+ contactCursor = this.eventCursor;
2069
+ triggerCursor = this.triggerCursor;
2070
+ saved = true;
2071
+ },
2072
+ restore: () => {
2073
+ if (!saved)
2074
+ throw new Error('Checkpoint has not been saved');
2075
+ copy(true);
2076
+ this.worldOrigin = [...origin];
2077
+ this.props.joints = structuredClone(joints);
2078
+ this.props.bodies = structuredClone(bodyDefinitions);
2079
+ this.restoreColliderDefinitions();
2080
+ this.colliderShapeScales = structuredClone(shapeScales);
2081
+ this.props.publicationBounds = structuredClone(publicationBounds);
2082
+ this.eventCursor = contactCursor;
2083
+ this.triggerCursor = triggerCursor;
2084
+ },
2085
+ destroy: () => {
2086
+ if (released)
2087
+ return;
2088
+ released = true;
2089
+ for (const buffer of snapshots)
2090
+ buffer.destroy();
2091
+ this.gpuCheckpoints.delete(checkpoint);
2092
+ }
2093
+ };
2094
+ this.gpuCheckpoints.add(checkpoint);
2095
+ return checkpoint;
2096
+ }
2097
+ /** Stop graph submissions and controls first; includes diagnostics, caches and event history. */
2098
+ async captureState(options = {}) {
2099
+ if (!this.device || this.destroyed || this.queryPending || this.eventRead || this.triggerRead)
2100
+ throw new Error('Capture requires an idle attached world');
2101
+ return {
2102
+ version: 1,
2103
+ origin: [...this.worldOrigin],
2104
+ includeRollbackScratch: options.includeRollbackScratch !== false,
2105
+ props: structuredClone(this.props),
2106
+ colliderShapeScales: structuredClone([...this.colliderShapeScales]),
2107
+ contactCursor: this.eventCursor,
2108
+ triggerCursor: this.triggerCursor,
2109
+ buffers: await Promise.all(this.getSnapshotBuffers(options.includeRollbackScratch).map(async (buffer) => ({
2110
+ name: buffer.id.slice(this.id.length + 1),
2111
+ data: new Uint8Array(await buffer.readAsync())
2112
+ })))
2113
+ };
2114
+ }
2115
+ /** Restore between submissions on the same configuration and implementation; no implicit wake. */
2116
+ restoreState(capture) {
2117
+ const checkpointBuffers = this.getSnapshotBuffers(capture.includeRollbackScratch);
2118
+ if (!this.device ||
2119
+ this.destroyed ||
2120
+ this.queryPending ||
2121
+ this.eventRead ||
2122
+ this.triggerRead ||
2123
+ capture.version !== 1 ||
2124
+ (capture.origin !== undefined &&
2125
+ (capture.origin.length !== 3 || !capture.origin.every(Number.isFinite))) ||
2126
+ capture.buffers.length !== checkpointBuffers.length ||
2127
+ serializeCaptureProps(capture.props) !== serializeCaptureProps(this.props) ||
2128
+ ![capture.contactCursor, capture.triggerCursor].every(value => Number.isInteger(value) && value >= 0 && value <= 0xffffffff))
2129
+ throw new Error('Incompatible rigid-body capture');
2130
+ const shapeScales = new Map(capture.colliderShapeScales ?? []);
2131
+ for (const [index, scale] of shapeScales) {
2132
+ this.getColliderShape(index);
2133
+ if (scale.length !== 3 || scale.some(value => !Number.isFinite(value) || value <= 0))
2134
+ throw new Error('Invalid captured collider scale');
2135
+ }
2136
+ // Validate every allocation before writing any state. Captures are trusted debug artifacts.
2137
+ for (const [index, buffer] of checkpointBuffers.entries()) {
2138
+ const saved = capture.buffers[index];
2139
+ if (saved.name !== buffer.id.slice(this.id.length + 1) ||
2140
+ !(saved.data instanceof Uint8Array) ||
2141
+ saved.data.byteLength !== buffer.byteLength)
2142
+ throw new Error('Incompatible rigid-body capture storage');
2143
+ }
2144
+ for (const [index, buffer] of checkpointBuffers.entries())
2145
+ buffer.write(capture.buffers[index].data);
2146
+ this.props.joints = structuredClone(capture.props.joints);
2147
+ this.props.bodies = structuredClone(capture.props.bodies);
2148
+ this.props.publicationBounds = structuredClone(capture.props.publicationBounds);
2149
+ this.restoreColliderDefinitions();
2150
+ this.colliderShapeScales = structuredClone(shapeScales);
2151
+ this.worldOrigin = [...(capture.origin ?? [0, 0, 0])];
2152
+ this.eventCursor = capture.contactCursor;
2153
+ this.triggerCursor = capture.triggerCursor;
2154
+ }
2155
+ /** Stop submissions first. Reconstruct with these accepted poses and larger budgets after rollback. */
2156
+ async getRecoveryProps(overrides = {}) {
2157
+ if (this.props.failurePolicy !== 'rollback')
2158
+ throw new Error('Recovery requires rollback');
2159
+ if (this.props.bodies.some(body => body.mode === 'kinematic'))
2160
+ throw new Error('Kinematic recovery requires explicit target replay');
2161
+ const states = await this.readState();
2162
+ return {
2163
+ ...structuredClone(this.props),
2164
+ ...overrides,
2165
+ bodies: this.props.bodies.map((body, index) => {
2166
+ const state = states[index];
2167
+ const offset = rotateRigidBodyVector(state.orientation, body.centerOfMass ?? [0, 0, 0]);
2168
+ return {
2169
+ ...structuredClone(body),
2170
+ position: state.position.map((value, axis) => value - offset[axis]),
2171
+ orientation: state.orientation,
2172
+ velocity: state.velocity,
2173
+ angularVelocity: state.angularVelocity
2174
+ };
2175
+ })
2176
+ };
2177
+ }
2178
+ /** Optional bounded readback of the last convex CCD attempt; never needed for execution. */
2179
+ async readContinuousWork() {
2180
+ if (this.props.continuous?.mode !== 'convex')
2181
+ return null;
2182
+ const buffer = this.ownedBuffers.find(buffer => buffer.id === `${this.id}-continuous-status`);
2183
+ if (!buffer)
2184
+ return null;
2185
+ const bytes = await buffer.readAsync(0, 16);
2186
+ const values = new Uint32Array(bytes.buffer, bytes.byteOffset, 4);
2187
+ const work = this.ownedBuffers.find(buffer => buffer.id === `${this.id}-continuous-work`);
2188
+ const statistics = await work.readAsync(16, 16);
2189
+ const spatial = new Uint32Array(statistics.buffer, statistics.byteOffset, 4);
2190
+ return {
2191
+ peakSpatialTests: spatial[1],
2192
+ rounds: spatial[2],
2193
+ candidateCapacity: this.props.continuous.maximumCandidates ?? this.maximumPairs,
2194
+ peakCandidates: values[3],
2195
+ peakCandidateWorkgroups: Math.ceil(Math.min(values[3], this.props.continuous.maximumCandidates ?? this.maximumPairs) / 64),
2196
+ impacts: values[2],
2197
+ incomplete: values[0] !== 0
2198
+ };
2199
+ }
2200
+ /** Optional diagnostic readback of the last parallel queue; never required for execution. */
2201
+ async readSolverWork() {
2202
+ if (!this.parallelState || this.destroyed)
2203
+ return null;
2204
+ const bytes = await this.parallelState.readAsync(0, 16);
2205
+ const counters = new Uint32Array(bytes.buffer, bytes.byteOffset, 4);
2206
+ const compacted = this.props.compactContacts !== false;
2207
+ return {
2208
+ compacted,
2209
+ activeContacts: compacted ? counters[1] : null,
2210
+ awakeBodies: compacted ? counters[2] : null,
2211
+ awakeContacts: compacted ? counters[3] : null,
2212
+ bodyWorkgroups: Math.ceil((compacted ? counters[2] : this.count) / 64),
2213
+ pairCapacity: this.maximumPairs,
2214
+ pairWorkgroups: Math.ceil((compacted ? counters[3] : this.maximumPairs) / 64)
2215
+ };
2216
+ }
2217
+ /** Lifetime counters, including failures in steps between diagnostic snapshots. */
2218
+ async readSimulationDiagnostics() {
2219
+ if (!this.simulationStatistics || this.destroyed)
2220
+ throw new Error('Rigid-body world is not active');
2221
+ return decodeRigidBodySimulationDiagnostics(new Uint32Array((await this.simulationStatistics.readAsync()).buffer));
2222
+ }
2223
+ /** Optional diagnostics readback; never required to advance simulation. */
2224
+ async readCollisionDiagnostics() {
2225
+ if (!this.manifolds || this.destroyed)
2226
+ throw new Error('Rigid-body world is not active');
2227
+ const tasks = this.meshTasks
2228
+ ? new Uint32Array((await this.meshTasks.readAsync(0, 16)).buffer)
2229
+ : new Uint32Array(4);
2230
+ const broadPhase = this.broadPhaseCounters
2231
+ ? decodeRigidBodyBroadPhaseDiagnostics(new Uint32Array((await this.broadPhaseCounters.buffer.readAsync(this.broadPhaseCounters.byteOffset, 32))
2232
+ .buffer))
2233
+ : undefined;
2234
+ const droppedManifolds = this.broadPhase === 'hierarchical-grid'
2235
+ ? new Uint32Array((await this.targets.readAsync(this.count * 32 + 16, 4)).buffer)[0]
2236
+ : 0;
2237
+ return {
2238
+ unresolvedQueries: tasks[2],
2239
+ triangleQueries: tasks[0],
2240
+ droppedTriangleQueries: tasks[1],
2241
+ incompleteMeshQueries: tasks[3],
2242
+ droppedManifolds,
2243
+ incompleteIslandUnions: this.parallelState
2244
+ ? new Uint32Array((await this.parallelState.readAsync(0, 4)).buffer)[0]
2245
+ : 0,
2246
+ broadPhase
2247
+ };
2248
+ }
2249
+ /** Destroy the compiled graph and finish readbacks before destroying its world. */
2250
+ destroy() {
2251
+ if (this.destroyed)
2252
+ return;
2253
+ this.ensembleReset?.destroy();
2254
+ for (const checkpoint of this.gpuCheckpoints)
2255
+ checkpoint.destroy();
2256
+ this.destroyed = true;
2257
+ this.control?.kernel.destroy();
2258
+ this.invalidation?.kernel.destroy();
2259
+ this.queryComputation?.kernel.destroy();
2260
+ this.queryReduction?.kernel.destroy();
2261
+ for (const buffer of this.ownedBuffers)
2262
+ buffer.destroy();
2263
+ this.ownedBuffers.length = 0;
2264
+ }
2265
+ }
2266
+ /** Canonicalize object keys, preserving array order and ignoring the world's debug label. */
2267
+ function serializeCaptureProps(props) {
2268
+ return JSON.stringify({
2269
+ ...props,
2270
+ id: undefined,
2271
+ publicationBounds: props.publicationBounds
2272
+ ? props.publicationBounds.map(() => true)
2273
+ : undefined,
2274
+ bodies: props.bodies.map(body => ({
2275
+ ...body,
2276
+ shape: undefined,
2277
+ colliders: (body.colliders ?? [{ shape: body.shape }]).map(collider => ({
2278
+ ...collider,
2279
+ shape: collider.shape?.type === 'convex-hull' || collider.shape?.type === 'triangle-mesh'
2280
+ ? collider.shape
2281
+ : { type: collider.shape?.type },
2282
+ material: undefined,
2283
+ position: undefined,
2284
+ orientation: undefined
2285
+ })),
2286
+ mode: undefined,
2287
+ mass: undefined,
2288
+ centerOfMass: undefined,
2289
+ inertiaDiagonal: undefined,
2290
+ inertiaOrientation: undefined,
2291
+ velocity: undefined,
2292
+ angularVelocity: undefined,
2293
+ gravityFactor: undefined
2294
+ })),
2295
+ joints: props.joints?.map(joint => ({
2296
+ type: joint.type,
2297
+ first: joint.first,
2298
+ second: joint.second,
2299
+ firstFrame: joint.firstFrame,
2300
+ secondFrame: joint.secondFrame
2301
+ }))
2302
+ }, (_key, value) => {
2303
+ if (!value || typeof value !== 'object' || Array.isArray(value))
2304
+ return value;
2305
+ const record = value;
2306
+ return Object.fromEntries(Object.keys(record)
2307
+ .sort()
2308
+ .map(key => [key, record[key]]));
2309
+ });
2310
+ }
2311
+ //# sourceMappingURL=gpu-rigid-body-world.js.map