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