@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,1953 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var gpu_rigid_body_world_exports = {};
19
+ __export(gpu_rigid_body_world_exports, {
20
+ GPURigidBodyWorld: () => GPURigidBodyWorld
21
+ });
22
+ module.exports = __toCommonJS(gpu_rigid_body_world_exports);
23
+ var import_bound_kernel = require("../gpu-core/utils/bound-kernel.cjs");
24
+ var import_core = require("@luma.gl/core");
25
+ var import_rigid_body_origin = require("./rigid-body-origin.cjs");
26
+ var import_rigid_body_shape_properties = require("./rigid-body-shape-properties.cjs");
27
+ var import_rigid_body_ensemble_shaders = require("./rigid-body-ensemble-shaders.cjs");
28
+ var import_rigid_body_ensemble_reset = require("./rigid-body-ensemble-reset.cjs");
29
+ var import_rigid_body_geometry = require("./rigid-body-geometry.cjs");
30
+ var import_rigid_body_properties = require("./rigid-body-properties.cjs");
31
+ var import_gpu_command_node = require("../gpu-core/gpu-command-node.cjs");
32
+ var import_rigid_body_broad_phase = require("./rigid-body-broad-phase.cjs");
33
+ var import_rigid_body_diagnostics = require("./rigid-body-diagnostics.cjs");
34
+ var import_rigid_body_capacity = require("./rigid-body-capacity.cjs");
35
+ var import_rigid_body_query_geometry = require("./rigid-body-query-geometry.cjs");
36
+ var import_rigid_body_continuous = require("./rigid-body-continuous.cjs");
37
+ var import_rigid_body_triggers = require("./rigid-body-triggers.cjs");
38
+ var import_rigid_body_ensemble_layout = require("./rigid-body-ensemble-layout.cjs");
39
+ var import_rigid_body_ensemble_transaction = require("./rigid-body-ensemble-transaction.cjs");
40
+ var import_rigid_body_transaction = require("./rigid-body-transaction.cjs");
41
+ var import_rigid_body_joints = require("./rigid-body-joints.cjs");
42
+ var import_rigid_body_publication = require("./rigid-body-publication.cjs");
43
+ var import_rigid_body_shaders = require("./rigid-body-shaders.cjs");
44
+ var import_rigid_body_events = require("./rigid-body-events.cjs");
45
+ var import_rigid_body_queries = require("./rigid-body-queries.cjs");
46
+ class GPURigidBodyWorld {
47
+ worldOrigin = [0, 0, 0];
48
+ id;
49
+ count;
50
+ timeStep;
51
+ colliderCount;
52
+ colliderStorageCount;
53
+ broadPhase;
54
+ solver;
55
+ maximumPairs;
56
+ /** Borrowed by renderers; updated after each accepted or rolled-back step. */
57
+ poseMatrices = null;
58
+ poseBounds = null;
59
+ encodePosePublication;
60
+ positions = null;
61
+ orientations = null;
62
+ velocities = null;
63
+ angularVelocities = null;
64
+ sleepStates = null;
65
+ /** World-owned GPU event ring; present only when eventCapacity is positive. */
66
+ contactEvents = null;
67
+ triggerEvents = null;
68
+ triggerCursor = 0;
69
+ triggerRead = null;
70
+ eventCursor = 0;
71
+ eventRead = null;
72
+ queryComputation = null;
73
+ queryReduction = null;
74
+ querySettings = null;
75
+ querySelection = null;
76
+ queryOutput = null;
77
+ queryPending = false;
78
+ targets = null;
79
+ simulationStatistics = null;
80
+ colliders;
81
+ props;
82
+ ownedBuffers = [];
83
+ ensembleBuffer = null;
84
+ ensembleResetOrigin;
85
+ ensembleReset;
86
+ initialEnsembleBodies;
87
+ manifolds = null;
88
+ meshTasks = null;
89
+ parallelState = null;
90
+ parallelDispatch = null;
91
+ device = null;
92
+ control = null;
93
+ invalidation = null;
94
+ controlSettings = null;
95
+ destroyed = false;
96
+ colliderShapeScales = /* @__PURE__ */ new Map();
97
+ gpuCheckpoints = /* @__PURE__ */ new Set();
98
+ broadPhaseCounters = null;
99
+ constructor(props) {
100
+ var _a, _b, _c, _d, _e;
101
+ for (const damping of [props.linearDamping ?? 0, props.angularDamping ?? 0]) {
102
+ if (!Number.isFinite(damping) || damping < 0)
103
+ throw new Error("Invalid damping");
104
+ }
105
+ if (props.publicationBounds && (props.publicationBounds.length !== props.bodies.length || props.publicationBounds.some((bounds) => bounds.some((vector) => vector.length !== 3 || !vector.every((value) => Number.isFinite(Math.fround(value)))) || bounds[0].some((value, axis) => value > bounds[1][axis]))))
106
+ throw new Error("Invalid publication bounds");
107
+ this.id = props.id ?? "gpu-rigid-body-world";
108
+ this.count = props.bodies.length;
109
+ this.solver = props.solver ?? "ordered";
110
+ if (!["ordered", "parallel"].includes(this.solver))
111
+ throw new Error("Invalid rigid-body solver");
112
+ (0, import_rigid_body_joints.validateRigidBodyJoints)(props.joints ?? [], props.bodies, this.solver);
113
+ const colliderCount = props.bodies.reduce((sum, body) => {
114
+ var _a2;
115
+ return sum + (((_a2 = body.colliders) == null ? void 0 : _a2.length) ?? 1);
116
+ }, 0);
117
+ this.broadPhase = props.broadPhase ?? (Math.max(this.count, colliderCount) > 128 ? "hierarchical-grid" : "all-pairs");
118
+ this.timeStep = props.timeStep ?? 1 / 120;
119
+ const iterations = props.iterations ?? 16;
120
+ if ([
121
+ props.warmStartFactor ?? 1,
122
+ props.penetrationRecoveryFraction ?? 0.15,
123
+ props.parallelRelaxation ?? 1
124
+ ].some((value) => !Number.isFinite(value) || value < 0 || value > 1) || props.parallelRelaxation === 0 || !Number.isFinite(props.maximumRecoverySpeed ?? 2) || (props.maximumRecoverySpeed ?? 2) < 0)
125
+ throw new Error("Invalid rigid-body stability settings");
126
+ if (props.failurePolicy && !["report", "rollback"].includes(props.failurePolicy))
127
+ throw new Error("Invalid failure policy");
128
+ const eventCapacity = props.eventCapacity ?? 0;
129
+ if (!Number.isInteger(eventCapacity) || eventCapacity < 0 || eventCapacity > 65536 || !Number.isFinite(props.impactImpulseThreshold ?? 1) || (props.impactImpulseThreshold ?? 1) < 0)
130
+ throw new Error("Invalid contact event settings");
131
+ const maximumMeshTraversalTests = props.maximumMeshTraversalTestsPerPair ?? 65536;
132
+ if (!Number.isInteger(maximumMeshTraversalTests) || maximumMeshTraversalTests < 1 || maximumMeshTraversalTests > 1048576)
133
+ throw new Error("Invalid mesh traversal budget");
134
+ const maximumCandidateTests = props.maximumCandidateTestsPerCollider ?? 4096;
135
+ if (!Number.isInteger(maximumCandidateTests) || maximumCandidateTests < 1 || maximumCandidateTests > 65535)
136
+ throw new Error("Invalid rigid-body traversal budget");
137
+ if (this.count < 1 || this.count > (this.broadPhase === "all-pairs" ? 128 : 65535) || !(this.timeStep > 0) || !Number.isFinite(this.timeStep) || !Number.isInteger(iterations) || iterations < 1 || iterations > 64)
138
+ throw new Error("Invalid rigid-body capacity or timestep");
139
+ const colliders = [];
140
+ for (const [bodyIndex, body] of props.bodies.entries()) {
141
+ if (!Number.isFinite(body.mass ?? 1) || (body.mass ?? 1) < 0)
142
+ throw new Error("Invalid rigid body mass");
143
+ if (body.shape ? body.colliders !== void 0 : body.colliders === void 0)
144
+ throw new Error("Supply shape or colliders");
145
+ const shapes = body.colliders ?? (body.shape ? [{ shape: body.shape }] : []);
146
+ for (const collider of shapes) {
147
+ const properties = (0, import_rigid_body_shape_properties.getRigidBodyShapeProperties)(collider.shape);
148
+ if (!Number.isFinite(properties.volume) || !properties.center.every(Number.isFinite) || !properties.tensor.every(Number.isFinite))
149
+ throw new Error("Invalid shape properties");
150
+ if ((collider.shape.type === "convex-hull" || collider.shape.type === "triangle-mesh") && body.mode !== "static" && body.mass !== 0 && (!(properties.volume > 0) || (collider.shape.type === "convex-hull" || collider.shape.type === "triangle-mesh") && !collider.shape.geometry.closed))
151
+ throw new Error("Dynamic meshes require closed positive-volume geometry");
152
+ (0, import_rigid_body_properties.normalizeRigidBodyRotation)(collider.orientation);
153
+ if (!(collider.position ?? []).every(Number.isFinite))
154
+ throw new Error("Invalid collider position");
155
+ const material = collider.material;
156
+ if ([
157
+ (material == null ? void 0 : material.staticFriction) ?? 0.6,
158
+ (material == null ? void 0 : material.dynamicFriction) ?? 0.6,
159
+ (material == null ? void 0 : material.restitution) ?? 0.1
160
+ ].some((value) => !Number.isFinite(value) || value < 0) || ((material == null ? void 0 : material.restitution) ?? 0.1) > 1)
161
+ throw new Error("Invalid collider material");
162
+ colliders.push({ ...collider, body: bodyIndex });
163
+ }
164
+ (0, import_rigid_body_properties.normalizeRigidBodyRotation)(body.orientation);
165
+ (0, import_rigid_body_properties.normalizeRigidBodyRotation)(body.inertiaOrientation);
166
+ if (body.inertiaOrientation && !body.inertiaDiagonal)
167
+ throw new Error("Inertia orientation requires diagonal");
168
+ if (!(body.centerOfMass ?? []).every(Number.isFinite) || (body.inertiaDiagonal ?? []).some((value) => !Number.isFinite(value) || value < 0) || !Number.isFinite(body.gravityFactor ?? 1))
169
+ throw new Error("Invalid mass properties");
170
+ if (![
171
+ ...body.position,
172
+ ...body.velocity ?? [],
173
+ ...body.angularVelocity ?? [],
174
+ ...body.orientation ?? []
175
+ ].every(Number.isFinite) || !Number.isFinite(body.friction ?? 0.6) || (body.friction ?? 0.6) < 0 || !Number.isFinite(body.restitution ?? 0.1) || (body.restitution ?? 0.1) < 0 || (body.restitution ?? 0.1) > 1)
176
+ throw new Error("Invalid rigid body");
177
+ }
178
+ if (!(props.gravity ?? [0, 0, -9.81]).every(Number.isFinite) || [
179
+ props.contactSlop ?? 2e-3,
180
+ props.contactMatchDistance ?? 0.05,
181
+ props.restitutionThreshold ?? 0.5,
182
+ props.sleepAfter ?? 0.5,
183
+ props.sleepLinearSpeed ?? 0.04,
184
+ props.sleepAngularSpeed ?? 0.04
185
+ ].some((value) => !Number.isFinite(value) || value < 0))
186
+ throw new Error("Invalid rigid-body settings");
187
+ if (colliders.length > (this.broadPhase === "all-pairs" ? 128 : 65535))
188
+ throw new Error("Rigid-body collider capacity exceeded");
189
+ for (const collider of colliders)
190
+ if ((_a = collider.excludedColliders) == null ? void 0 : _a.some((index) => !Number.isInteger(index) || index < 0 || index >= colliders.length))
191
+ throw new Error("Invalid collider filter");
192
+ if (props.collisionPartitionSize !== void 0 && (!Number.isSafeInteger(props.collisionPartitionSize) || props.collisionPartitionSize < 1 || !colliders.length || colliders.length % props.collisionPartitionSize !== 0 || Boolean(((_b = props.joints) == null ? void 0 : _b.length) || props.continuous || ((_c = props.triggers) == null ? void 0 : _c.length))))
193
+ throw new Error("Invalid collision partitions");
194
+ if (props.ensembleBodiesPerInstance !== void 0 && (!Number.isSafeInteger(props.ensembleBodiesPerInstance) || props.ensembleBodiesPerInstance < 1 || this.count % props.ensembleBodiesPerInstance !== 0 || !props.collisionPartitionSize || this.count / props.ensembleBodiesPerInstance !== colliders.length / props.collisionPartitionSize || this.solver !== "parallel" || this.broadPhase !== "hierarchical-grid"))
195
+ throw new Error("Invalid ensemble scheduling layout");
196
+ this.colliderCount = colliders.length;
197
+ this.colliderStorageCount = Math.max(1, colliders.length);
198
+ if (!colliders.length)
199
+ colliders.push({ body: 0, shape: { type: "box", halfExtents: [0, 0, 0] } });
200
+ this.maximumPairs = this.broadPhase === "all-pairs" ? this.colliderStorageCount * this.colliderStorageCount : props.maximumPairs ?? 2 ** Math.ceil(Math.log2(Math.max(64, this.colliderStorageCount * 16)));
201
+ if (!["all-pairs", "hierarchical-grid"].includes(this.broadPhase) || !Number.isSafeInteger(this.maximumPairs) || this.maximumPairs < 1 || this.maximumPairs > 1073741824 || this.broadPhase === "hierarchical-grid" && (this.maximumPairs & this.maximumPairs - 1) !== 0)
202
+ throw new Error("Invalid rigid-body pair capacity");
203
+ if (props.continuous) {
204
+ if (props.failurePolicy !== "rollback" || !Number.isInteger(props.continuous.maximumImpacts ?? 4) || (props.continuous.maximumImpacts ?? 4) < 1 || (props.continuous.maximumImpacts ?? 4) > 16 || !["sphere-static", "convex"].includes(props.continuous.mode ?? "sphere-static") || !Number.isSafeInteger(props.continuous.maximumCandidates ?? this.maximumPairs) || (props.continuous.maximumCandidates ?? this.maximumPairs) < 1 || (props.continuous.maximumCandidates ?? this.maximumPairs) > 1073741824 || props.continuous.mode === "convex" && (Boolean((_d = props.joints) == null ? void 0 : _d.length) || colliders.some((collider) => ["plane", "triangle-mesh"].includes(collider.shape.type))))
205
+ throw new Error("Invalid continuous settings");
206
+ for (const index of props.continuous.bodies) {
207
+ const body = props.bodies[index];
208
+ const bodyColliders = colliders.filter((collider) => collider.body === index);
209
+ if (!Number.isInteger(index) || !body || (body.mode ?? ((body.mass ?? 1) === 0 ? "static" : "dynamic")) !== "dynamic" || body.mass === 0 || bodyColliders.length !== 1 || bodyColliders[0].isTrigger || props.continuous.mode !== "convex" && bodyColliders[0].shape.type !== "sphere" || props.continuous.mode !== "convex" && (bodyColliders[0].position ?? [0, 0, 0]).some((value, axis) => value !== (body.centerOfMass ?? [0, 0, 0])[axis]))
210
+ throw new Error("Invalid continuous body geometry");
211
+ }
212
+ }
213
+ if ((_e = props.triggers) == null ? void 0 : _e.length) {
214
+ if (props.failurePolicy !== "rollback" || !Number.isInteger(props.triggerEventCapacity ?? 256) || (props.triggerEventCapacity ?? 256) < 1 || (props.triggerEventCapacity ?? 256) > 65536)
215
+ throw new Error("Invalid trigger settings");
216
+ (0, import_rigid_body_triggers.makeRigidBodyTriggerLayout)(props.triggers, colliders);
217
+ }
218
+ const definitions = structuredClone({ colliders, props });
219
+ this.colliders = definitions.colliders;
220
+ this.props = definitions.props;
221
+ if (props.ensembleBodiesPerInstance)
222
+ this.initialEnsembleBodies = this.props.bodies.slice(0, props.ensembleBodiesPerInstance);
223
+ }
224
+ getStorageLayout() {
225
+ var _a, _b, _c;
226
+ const packed = (0, import_rigid_body_geometry.packRigidBodyShapes)(this.colliders);
227
+ const sparse = this.broadPhase === "hierarchical-grid";
228
+ const extended = this.colliders.some((collider) => collider.shape.type !== "sphere" && collider.shape.type !== "box" || collider.isTrigger && collider.shape.type !== "sphere");
229
+ const parallel = this.solver === "parallel";
230
+ const storage = {
231
+ packed,
232
+ sparse,
233
+ extended,
234
+ parallel,
235
+ ...(0, import_rigid_body_capacity.getRigidBodyStorageLayout)(this.count, this.colliderStorageCount, this.maximumPairs, packed.geometry.length, sparse, extended, parallel, this.props.eventCapacity ?? 0, this.props.enableQueries ?? false, this.props.failurePolicy === "rollback", Boolean(this.props.continuous), ((_a = this.props.joints) == null ? void 0 : _a.length) ?? 0, this.props.ensembleBodiesPerInstance ? this.count / this.props.ensembleBodiesPerInstance : 0)
236
+ };
237
+ if (((_b = this.props.continuous) == null ? void 0 : _b.mode) === "convex") {
238
+ storage.buffers = storage.buffers.filter((buffer) => buffer.name !== "continuous-previous");
239
+ storage.buffers.push({ name: "continuous-dispatch", byteLength: 16, uniform: false });
240
+ storage.buffers.push({
241
+ name: "continuous-work",
242
+ byteLength: 64 + 2 ** Math.ceil(Math.log2(Math.max(1, this.colliders.length))) * 32 + this.count * 64 + (this.props.continuous.maximumCandidates ?? this.maximumPairs) * 48,
243
+ uniform: false
244
+ });
245
+ }
246
+ if (this.props.publicationBounds || this.props.publishPoses)
247
+ storage.buffers.push({ name: "pose-metadata", byteLength: this.count * 48, uniform: false }, { name: "pose-matrices", byteLength: this.count * 64, uniform: false }, { name: "pose-bounds", byteLength: this.count * 32, uniform: false });
248
+ const triggerLayout = ((_c = this.props.triggers) == null ? void 0 : _c.length) ? (0, import_rigid_body_triggers.makeRigidBodyTriggerLayout)(this.props.triggers, this.colliders) : void 0;
249
+ if (triggerLayout)
250
+ storage.buffers.push({ name: "trigger-previous", byteLength: this.colliderStorageCount * 16, uniform: false }, { name: "trigger-groups", byteLength: triggerLayout.groups.byteLength, uniform: false }, { name: "trigger-pairs", byteLength: triggerLayout.pairs.byteLength, uniform: false }, {
251
+ name: "trigger-samples",
252
+ byteLength: Math.max(1, triggerLayout.count) * 16,
253
+ uniform: false
254
+ }, {
255
+ name: "trigger-history",
256
+ byteLength: Math.max(1, triggerLayout.count) * 16,
257
+ uniform: false
258
+ }, {
259
+ name: "trigger-events",
260
+ byteLength: 16 + (this.props.triggerEventCapacity ?? 256) * 32,
261
+ uniform: false
262
+ });
263
+ if (this.props.ensembleBodiesPerInstance)
264
+ storage.buffers.push({
265
+ name: "ensemble",
266
+ byteLength: (16 + 9 * this.count / this.props.ensembleBodiesPerInstance) * 4,
267
+ uniform: false
268
+ });
269
+ if (this.props.ensembleBodiesPerInstance)
270
+ storage.buffers.push({
271
+ name: "ensemble-buckets",
272
+ byteLength: (2 ** Math.ceil(Math.log2(Math.max(1, this.colliderStorageCount * 2))) + this.colliderStorageCount + 2) * 4,
273
+ uniform: false
274
+ });
275
+ return { ...storage, triggerLayout };
276
+ }
277
+ initializeEnsembleReset() {
278
+ if (!this.device || !this.ensembleBuffer || this.destroyed)
279
+ throw new Error("World has no ensemble scheduler");
280
+ this.ensembleResetOrigin ??= this.origin;
281
+ this.ensembleReset ??= (0, import_rigid_body_ensemble_reset.makeEnsembleReset)(this.device, this.id, this.ownedBuffers, this.count, this.props.ensembleBodiesPerInstance, this.props.collisionPartitionSize, this.maximumPairs);
282
+ return this.ensembleReset.byteLength;
283
+ }
284
+ resetEnsembleInstance(instance) {
285
+ this.assertEnsembleInstance(instance);
286
+ if (!this.ensembleReset)
287
+ throw new Error("Ensemble reset image unavailable");
288
+ const bodyStart = instance * this.props.ensembleBodiesPerInstance;
289
+ const colliderStart = instance * this.props.collisionPartitionSize;
290
+ let colliderIndex = colliderStart;
291
+ const restored = this.initialEnsembleBodies.map((body) => {
292
+ if (body.shape) {
293
+ const current = this.colliders[colliderIndex++].shape;
294
+ return {
295
+ ...body,
296
+ shape: body.shape.type === "convex-hull" || body.shape.type === "triangle-mesh" ? current : body.shape
297
+ };
298
+ }
299
+ return {
300
+ ...body,
301
+ colliders: body.colliders.map((collider) => {
302
+ var _a;
303
+ const current = this.colliders[colliderIndex++].shape;
304
+ return {
305
+ ...collider,
306
+ shape: collider.shape.type === "convex-hull" || collider.shape.type === "triangle-mesh" ? current : collider.shape,
307
+ excludedColliders: (_a = collider.excludedColliders) == null ? void 0 : _a.map((index) => index + colliderStart)
308
+ };
309
+ })
310
+ };
311
+ });
312
+ const definitions = [...this.props.bodies];
313
+ definitions.splice(bodyStart, restored.length, ...restored);
314
+ this.props.bodies = definitions;
315
+ for (let collider = colliderStart; collider < colliderStart + this.props.collisionPartitionSize; collider++)
316
+ this.colliderShapeScales.delete(collider);
317
+ this.restoreColliderDefinitions();
318
+ this.ensembleReset.reset(instance, this.origin.map((value, axis) => value - this.ensembleResetOrigin[axis]));
319
+ this.ensembleBuffer.write(new Uint32Array([0, 0, 0, 0, 1, 1]), (16 + instance * 8 + 1) * 4);
320
+ if (this.encodePosePublication) {
321
+ const encoder = this.device.createCommandEncoder();
322
+ this.encodePosePublication(encoder);
323
+ this.device.submit(encoder.finish());
324
+ }
325
+ }
326
+ wakeEnsembleInstance(instance) {
327
+ this.assertEnsembleInstance(instance);
328
+ this.ensembleBuffer.write(new Uint32Array([1]), (16 + instance * 8 + 6) * 4);
329
+ this.sleepStates.write(new Uint32Array(this.props.ensembleBodiesPerInstance * 4), instance * this.props.ensembleBodiesPerInstance * 16);
330
+ }
331
+ setEnsembleActive(instance, active) {
332
+ this.assertEnsembleInstance(instance);
333
+ this.ensembleBuffer.write(new Uint32Array([active ? 1 : 0]), (16 + instance * 8) * 4);
334
+ }
335
+ async readEnsembleState() {
336
+ if (!this.ensembleBuffer || this.destroyed)
337
+ throw new Error("World has no ensemble scheduler");
338
+ return new Uint32Array((await this.ensembleBuffer.readAsync()).buffer);
339
+ }
340
+ /** Read explicit last-step work counters; never called by encode(). */
341
+ async readEnsembleWork() {
342
+ if (!this.ensembleBuffer || !this.targets || this.destroyed)
343
+ throw new Error("World has no ensemble scheduler");
344
+ const bucketState = this.ownedBuffers.find((buffer) => buffer.id === `${this.id}-ensemble-buckets`);
345
+ const bucketCount = 2 ** Math.ceil(Math.log2(Math.max(1, this.colliderStorageCount * 2)));
346
+ const [scheduler, counters, buckets] = await Promise.all([
347
+ this.ensembleBuffer.readAsync(0, 4),
348
+ this.targets.readAsync(this.count * 32 + 20, 12),
349
+ bucketState.readAsync(bucketCount * 4, 4)
350
+ ]);
351
+ const activeInstances = new Uint32Array(scheduler.buffer)[0];
352
+ const [journaledContacts, visitedContacts, claimedContacts] = new Uint32Array(counters.buffer);
353
+ const activeBodies = activeInstances * this.props.ensembleBodiesPerInstance;
354
+ return {
355
+ activeInstances,
356
+ activeBodies,
357
+ touchedBuckets: new Uint32Array(buckets.buffer)[0],
358
+ visitedContacts,
359
+ claimedContacts,
360
+ journaledContacts,
361
+ bodySnapshotBytes: activeBodies * 80,
362
+ contactSnapshotBytes: journaledContacts * 416,
363
+ allocatorSnapshotBytes: (8 + activeInstances * 2 + journaledContacts * 3) * 4,
364
+ residentInstances: this.count / this.props.ensembleBodiesPerInstance,
365
+ residentBodies: this.count,
366
+ contactCapacity: this.maximumPairs
367
+ };
368
+ }
369
+ assertEnsembleInstance(instance) {
370
+ if (!this.ensembleBuffer || this.destroyed || !Number.isSafeInteger(instance) || instance < 0 || instance >= this.count / this.props.ensembleBodiesPerInstance)
371
+ throw new Error("Invalid ensemble instance");
372
+ }
373
+ /** Allocation preflight without GPU allocation. Graph scratch and driver overhead are separate. */
374
+ getCapacityInfo() {
375
+ const { buffers } = this.getStorageLayout();
376
+ return {
377
+ bodyCount: this.count,
378
+ colliderCount: this.colliderCount,
379
+ maximumPairs: this.maximumPairs,
380
+ pairWorkgroups: Math.ceil(this.maximumPairs / 64),
381
+ buffers,
382
+ ownedBufferBytes: buffers.reduce((total, buffer) => total + buffer.byteLength, 0)
383
+ };
384
+ }
385
+ addToGraph(graph) {
386
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
387
+ if (this.device || this.destroyed)
388
+ throw new Error("Rigid-body world already attached or destroyed");
389
+ const { packed, sparse, extended, parallel, geometryOffset, pairOffset, diagnosticOffset, metadataLength, parallelByteLength, triggerLayout, buffers: allocationPlan } = this.getStorageLayout();
390
+ if (Math.ceil(this.maximumPairs / 64) > graph.device.limits.maxComputeWorkgroupsPerDimension)
391
+ throw new Error("Rigid-body pair dispatch exceeds device limits");
392
+ if (((_a = this.props.continuous) == null ? void 0 : _a.mode) === "convex" && Math.max(Math.ceil((this.props.continuous.maximumCandidates ?? this.maximumPairs) / 64), Math.ceil(2 ** Math.ceil(Math.log2(Math.max(1, this.colliders.length))) / 64)) > graph.device.limits.maxComputeWorkgroupsPerDimension)
393
+ throw new Error("Continuous candidate dispatch exceeds device limits");
394
+ for (const buffer of allocationPlan) {
395
+ const bindingLimit = buffer.uniform ? graph.device.limits.maxUniformBufferBindingSize : graph.device.limits.maxStorageBufferBindingSize;
396
+ if (buffer.byteLength > Math.min(graph.device.limits.maxBufferSize, bindingLimit))
397
+ throw new Error(`Rigid-body ${buffer.name} storage exceeds device limits`);
398
+ }
399
+ this.device = graph.device;
400
+ const allocate = (name, data, uniform = false) => {
401
+ const buffer = graph.device.createBuffer({
402
+ id: `${this.id}-${name}`,
403
+ ...typeof data === "number" ? { byteLength: data } : { data },
404
+ usage: (uniform ? import_core.Buffer.UNIFORM : import_core.Buffer.STORAGE) | import_core.Buffer.COPY_DST | import_core.Buffer.COPY_SRC | (["targets", "parallel-dispatch", "continuous-dispatch", "ensemble"].includes(name) ? import_core.Buffer.INDIRECT : 0)
405
+ });
406
+ this.ownedBuffers.push(buffer);
407
+ return buffer;
408
+ };
409
+ const positions = new Float32Array(this.count * 4);
410
+ const orientations = new Float32Array(this.count * 4);
411
+ const velocities = new Float32Array(this.count * 4);
412
+ const angular = new Float32Array(this.count * 4);
413
+ const sparseLayout = sparse ? {
414
+ maximumPairs: this.maximumPairs,
415
+ pairOffset: pairOffset - geometryOffset,
416
+ diagnosticOffset: diagnosticOffset - geometryOffset
417
+ } : void 0;
418
+ const metadata = new Float32Array(metadataLength);
419
+ metadata.set(packed.geometry, geometryOffset);
420
+ const bodyColliders = Array.from({ length: this.count }, () => []);
421
+ if (this.colliderCount)
422
+ for (const collider of this.colliders)
423
+ bodyColliders[collider.body].push(collider);
424
+ for (const [index, body] of this.props.bodies.entries()) {
425
+ const mass = body.mass ?? 1;
426
+ const mode = body.mode ?? (mass === 0 ? "static" : "dynamic");
427
+ const center = body.centerOfMass ?? [0, 0, 0];
428
+ const quaternion = (0, import_rigid_body_properties.normalizeRigidBodyRotation)(body.orientation);
429
+ const offset = (0, import_rigid_body_properties.rotateRigidBodyVector)(quaternion, center);
430
+ positions.set([
431
+ ...body.position.map((value, axis) => value + offset[axis]),
432
+ ((_b = body.shape) == null ? void 0 : _b.type) === "sphere" ? body.shape.radius : 0
433
+ ], index * 4);
434
+ orientations.set(quaternion, index * 4);
435
+ velocities.set([
436
+ ...mode === "static" ? [0, 0, 0] : body.velocity ?? [0, 0, 0],
437
+ mode === "dynamic" && mass ? 1 / mass : 0
438
+ ], index * 4);
439
+ angular.set(mode === "static" ? [0, 0, 0] : body.angularVelocity ?? [0, 0, 0], index * 4);
440
+ const compound = (0, import_rigid_body_properties.getCompoundBodyInertia)(mass, bodyColliders[index], center);
441
+ const inertia = body.inertiaDiagonal ?? compound.diagonal;
442
+ const inertiaRotation = (0, import_rigid_body_properties.normalizeRigidBodyRotation)(body.inertiaOrientation ?? (body.inertiaDiagonal ? void 0 : compound.orientation));
443
+ metadata.set([
444
+ ...inertia.map((value) => mode === "dynamic" && value ? 1 / value : 0),
445
+ center[0],
446
+ ...inertiaRotation,
447
+ mode === "static" ? 0 : mode === "dynamic" ? 1 : 2,
448
+ body.gravityFactor ?? 1,
449
+ center[1],
450
+ center[2]
451
+ ], index * 12);
452
+ }
453
+ const policies = [
454
+ "average",
455
+ "minimum",
456
+ "maximum",
457
+ "multiply"
458
+ ];
459
+ for (const [index, collider] of this.colliders.entries()) {
460
+ const body = this.props.bodies[collider.body];
461
+ const material = collider.material;
462
+ const center = body.centerOfMass ?? [0, 0, 0];
463
+ const offset = (collider.position ?? [0, 0, 0]).map((value, axis) => value - center[axis]);
464
+ const shape = packed.shapes[index];
465
+ metadata.set([
466
+ ...shape.dimensions,
467
+ ...offset,
468
+ collider.body,
469
+ ...(0, import_rigid_body_properties.normalizeRigidBodyRotation)(collider.orientation),
470
+ (material == null ? void 0 : material.restitution) ?? body.restitution ?? 0.1,
471
+ (material == null ? void 0 : material.staticFriction) ?? body.friction ?? 0.6,
472
+ (material == null ? void 0 : material.dynamicFriction) ?? body.friction ?? 0.6,
473
+ collider.isTrigger ? 1 : 0,
474
+ (material == null ? void 0 : material.restitutionCombine) ? policies.indexOf(material.restitutionCombine) : 4,
475
+ (material == null ? void 0 : material.frictionCombine) ? policies.indexOf(material.frictionCombine) : 4,
476
+ ...shape.policies,
477
+ ...shape.padding
478
+ ], this.count * 12 + index * 24);
479
+ }
480
+ const exclusionOffset = this.count * 12 + this.colliderStorageCount * 24;
481
+ for (const [index, filter] of packed.filters.entries())
482
+ metadata.set(filter, exclusionOffset + index * 2);
483
+ this.positions = allocate("positions", positions);
484
+ this.orientations = allocate("orientations", orientations);
485
+ this.velocities = allocate("velocities", velocities);
486
+ this.angularVelocities = allocate("angular-velocities", angular);
487
+ this.sleepStates = allocate("sleep", this.count * 16);
488
+ this.targets = allocate("targets", this.props.ensembleBodiesPerInstance ? (0, import_rigid_body_ensemble_layout.getEnsembleContactLayout)(this.count, this.count / this.props.ensembleBodiesPerInstance, this.maximumPairs).byteLength : Math.ceil((this.count * 32 + (sparse ? 32 + this.maximumPairs * 8 : 16)) / 16) * 16 + (((_c = this.props.joints) == null ? void 0 : _c.length) ?? 0) * import_rigid_body_joints.RIGID_BODY_JOINT_STATE_BYTES);
489
+ for (const [index, joint] of (this.props.joints ?? []).entries()) {
490
+ this.targets.write((0, import_rigid_body_joints.packRigidBodyJointState)(joint), this.getJointStateOffset() + index * import_rigid_body_joints.RIGID_BODY_JOINT_STATE_BYTES);
491
+ }
492
+ this.manifolds = allocate("manifolds", this.maximumPairs * 416);
493
+ if (extended)
494
+ this.meshTasks = allocate("mesh-tasks", 16 + 65536 * 48);
495
+ const bodies = allocate("bodies", metadata);
496
+ if (sparse)
497
+ this.broadPhaseCounters = { buffer: bodies, byteOffset: diagnosticOffset * 4 };
498
+ const settings = allocate("settings", new Float32Array([
499
+ ...this.props.gravity ?? [0, 0, -9.81],
500
+ this.timeStep,
501
+ this.props.contactSlop ?? 2e-3,
502
+ 0,
503
+ this.props.restitutionThreshold ?? 0.5,
504
+ this.props.contactMatchDistance ?? 0.05,
505
+ this.props.sleepAfter ?? 0.5,
506
+ this.props.sleepLinearSpeed ?? 0.04,
507
+ this.props.sleepAngularSpeed ?? 0.04,
508
+ 0,
509
+ this.props.warmStartFactor ?? 1,
510
+ this.props.penetrationRecoveryFraction ?? 0.15,
511
+ this.props.maximumRecoverySpeed ?? 2,
512
+ this.props.parallelRelaxation ?? 1
513
+ ]), true);
514
+ if (parallel) {
515
+ this.parallelState = allocate("parallel-state", parallelByteLength);
516
+ this.parallelDispatch = allocate("parallel-dispatch", 48);
517
+ }
518
+ if (this.props.ensembleBodiesPerInstance) {
519
+ const instances = this.count / this.props.ensembleBodiesPerInstance;
520
+ const state = new Uint32Array(16 + instances * 9);
521
+ for (let instance = 0; instance < instances; instance++) {
522
+ state[16 + instance * 8] = 1;
523
+ state[16 + instance * 8 + 5] = 1;
524
+ }
525
+ this.ensembleBuffer = allocate("ensemble", state);
526
+ }
527
+ const buffers = {
528
+ settings,
529
+ positions: this.positions,
530
+ orientations: this.orientations,
531
+ velocities: this.velocities,
532
+ angularVelocities: this.angularVelocities,
533
+ bodies,
534
+ manifolds: this.manifolds,
535
+ sleepStates: this.sleepStates,
536
+ targets: this.targets,
537
+ ...this.meshTasks ? { meshTasks: this.meshTasks } : {},
538
+ ...this.parallelState ? { parallelState: this.parallelState, parallelDispatch: this.parallelDispatch } : {},
539
+ ...sparse ? {
540
+ minima: allocate("minima", this.colliderStorageCount * 12),
541
+ maxima: allocate("maxima", this.colliderStorageCount * 12)
542
+ } : {}
543
+ };
544
+ const scheduledBuffers = {
545
+ ...buffers,
546
+ ...this.ensembleBuffer ? { ensemble: this.ensembleBuffer } : {}
547
+ };
548
+ const bindings = Object.entries(scheduledBuffers).map(([name, buffer], location) => ({
549
+ name,
550
+ buffer,
551
+ location: name === "ensemble" ? 28 : name === "parallelDispatch" ? 27 : name === "parallelState" ? 26 : name === "minima" ? 24 : name === "maxima" ? 25 : location >= 8 ? location + 1 : location,
552
+ resource: graph.importBuffer({
553
+ id: `${this.id}-${name}`,
554
+ byteLength: buffer.byteLength,
555
+ usage: location === 0 ? import_core.Buffer.UNIFORM : import_core.Buffer.STORAGE | import_core.Buffer.COPY_SRC | (["targets", "parallelDispatch", "ensemble"].includes(name) ? import_core.Buffer.INDIRECT : 0)
556
+ }, buffer)
557
+ }));
558
+ const shaderLayout = {
559
+ attributes: [],
560
+ bindings: bindings.map(({ name, location }) => {
561
+ const base = { name, location, group: 0 };
562
+ return location === 0 ? { ...base, type: "uniform" } : { ...base, type: name === "bodies" ? "read-only-storage" : "storage" };
563
+ })
564
+ };
565
+ const objectAttributes = sparse ? allocate("object-attributes", Uint32Array.from(this.colliders, (collider) => {
566
+ const body = this.props.bodies[collider.body];
567
+ const mode = body.mode ?? ((body.mass ?? 1) === 0 ? "static" : "dynamic");
568
+ return collider.body | (mode === "dynamic" ? 65536 : 0);
569
+ })) : null;
570
+ const objectAttributeView = objectAttributes ? graph.createDataView(graph.importBuffer({
571
+ id: `${this.id}-object-attributes`,
572
+ byteLength: objectAttributes.byteLength,
573
+ usage: import_core.Buffer.STORAGE
574
+ }, objectAttributes), { format: "uint32", length: this.colliderStorageCount }) : void 0;
575
+ const source = (0, import_rigid_body_shaders.getRigidBodyShader)(this.count, this.props.iterations ?? 16, this.colliderStorageCount, extended, sparseLayout, parallel, this.props.maximumMeshTraversalTestsPerPair ?? 65536, (0, import_rigid_body_joints.getRigidBodyJointShader)(this.props.joints ?? [], this.props.bodies), Boolean((_d = this.props.joints) == null ? void 0 : _d.length), this.props.linearDamping ?? 0, this.props.angularDamping ?? 0, ((_e = this.props.joints) == null ? void 0 : _e.length) ?? 0, this.props.compactContacts ?? true, this.props.collisionPartitionSize, this.props.ensembleBodiesPerInstance);
576
+ const parallelBindings = {
577
+ parallelReset: ["parallelState"],
578
+ parallelResetCounters: ["parallelState"],
579
+ parallelActiveBodies: ["bodies", "sleepStates", "parallelState"],
580
+ parallelPrepareSleep: ["parallelState"],
581
+ parallelCompact: ["manifolds", "parallelState", ...this.ensembleBuffer ? ["targets"] : []],
582
+ parallelDispatchCount: ["parallelState", "parallelDispatch"],
583
+ parallelActive: ["bodies", "sleepStates", "manifolds", "parallelState"],
584
+ parallelActiveCount: ["parallelState", "parallelDispatch"],
585
+ parallelLink: ["velocities", "angularVelocities", "bodies", "manifolds", "parallelState"],
586
+ parallelUnion: ["bodies", "manifolds", "parallelState"],
587
+ parallelCompress: ["sleepStates", "parallelState"],
588
+ parallelWakeRoots: ["bodies", "sleepStates", "parallelState"],
589
+ parallelWakeBodies: ["bodies", "sleepStates", "parallelState"],
590
+ parallelWarm: [
591
+ "positions",
592
+ "orientations",
593
+ "velocities",
594
+ "bodies",
595
+ "manifolds",
596
+ "sleepStates",
597
+ "parallelState"
598
+ ],
599
+ parallelPairs: [
600
+ "settings",
601
+ "positions",
602
+ "orientations",
603
+ "velocities",
604
+ "angularVelocities",
605
+ "bodies",
606
+ "manifolds",
607
+ "sleepStates",
608
+ "parallelState"
609
+ ],
610
+ parallelGather: ["velocities", "angularVelocities", "bodies", "sleepStates", "parallelState"],
611
+ parallelAdvance: [
612
+ "settings",
613
+ "positions",
614
+ "orientations",
615
+ "velocities",
616
+ "angularVelocities",
617
+ "bodies",
618
+ "sleepStates",
619
+ "targets",
620
+ ...this.ensembleBuffer ? [] : ["parallelState"]
621
+ ],
622
+ parallelMarkSleep: ["settings", "bodies", "sleepStates", "parallelState"],
623
+ parallelSleep: ["velocities", "angularVelocities", "bodies", "sleepStates", "parallelState"]
624
+ };
625
+ parallelBindings["parallelSolve"] = parallelBindings["parallelPairs"];
626
+ this.simulationStatistics = allocate("simulation-statistics", 64);
627
+ const statisticsResource = graph.importBuffer({ id: `${this.id}-statistics`, byteLength: 64, usage: import_core.Buffer.STORAGE }, this.simulationStatistics);
628
+ const checkpointStates = [
629
+ "positions",
630
+ "orientations",
631
+ "velocities",
632
+ "angularVelocities",
633
+ "sleepStates",
634
+ "targets"
635
+ ].map((name) => {
636
+ const binding = bindings.find((binding2) => binding2.name === name);
637
+ return { buffer: binding.buffer, resource: binding.resource };
638
+ });
639
+ const restoreCheckpoint = this.props.failurePolicy === "rollback" ? this.ensembleBuffer ? (0, import_rigid_body_ensemble_transaction.addEnsembleCheckpoint)(graph, this.id, checkpointStates, { buffer: this.simulationStatistics, resource: statisticsResource }, bindings.find((binding) => binding.name === "ensemble"), bindings.find((binding) => binding.name === "manifolds"), this.props.ensembleBodiesPerInstance, this.maximumPairs, allocate) : (0, import_rigid_body_transaction.addRigidBodyCheckpoint)(graph, this.id, [
640
+ "positions",
641
+ "orientations",
642
+ "velocities",
643
+ "angularVelocities",
644
+ "sleepStates",
645
+ "targets",
646
+ ...this.ensembleBuffer ? [] : ["manifolds"]
647
+ ].map((name) => {
648
+ const binding = bindings.find((binding2) => binding2.name === name);
649
+ return { buffer: binding.buffer, resource: binding.resource };
650
+ }), { buffer: this.simulationStatistics, resource: statisticsResource }, allocate) : void 0;
651
+ const continuousSelection = new Uint32Array(this.count);
652
+ for (const body of ((_f = this.props.continuous) == null ? void 0 : _f.bodies) ?? [])
653
+ continuousSelection[body] = this.colliders.findIndex((collider) => collider.body === body) + 1;
654
+ const continuous = this.props.continuous ? (0, import_rigid_body_continuous.addRigidBodyContinuous)(graph, this.id, source, this.count, continuousSelection, this.props.continuous.maximumImpacts ?? 4, bindings, allocate, Boolean((_g = this.props.joints) == null ? void 0 : _g.length), this.props.continuous.mode === "convex" ? this.props.continuous.maximumCandidates ?? this.maximumPairs : 0, this.colliderStorageCount, extended, this.colliders.some((collider) => collider.shape.type === "convex-hull")) : void 0;
655
+ const triggers = triggerLayout ? (0, import_rigid_body_triggers.addRigidBodyTriggers)(graph, this.id, source, this.colliderStorageCount, triggerLayout, this.props.triggerEventCapacity ?? 256, bindings, {
656
+ name: "triggerStatistics",
657
+ buffer: this.simulationStatistics,
658
+ resource: statisticsResource,
659
+ location: 18
660
+ }, allocate, Boolean((_h = this.props.joints) == null ? void 0 : _h.length), extended) : void 0;
661
+ this.triggerEvents = (triggers == null ? void 0 : triggers.events) ?? null;
662
+ const passDescriptions = {
663
+ integrate: "Apply gravity and advance body velocities and predicted poses for this timestep.",
664
+ prepare: "Reset broad-phase counters before generating potential collider pairs.",
665
+ bounds: "Compute world-space collider bounds for broad-phase collision detection.",
666
+ collide: "Find overlapping collider pairs and generate contact manifolds.",
667
+ meshCollide: "Generate contacts against triangle meshes and heightfields.",
668
+ meshCollect: "Collect mesh contacts for the parallel constraint solver.",
669
+ solve: "Resolve contact and joint constraints, including friction and restitution.",
670
+ finish: "Publish solved body poses and update sleeping state.",
671
+ parallelReset: "Initialize body ownership for parallel contact islands.",
672
+ parallelCompact: "Compact live contact manifolds into a reusable GPU work queue.",
673
+ parallelDispatchCount: "Build indirect workgroup counts from the compact contact queue.",
674
+ parallelLink: "Link bodies connected by active contacts or joints.",
675
+ parallelUnion: "Merge connected bodies into constraint islands.",
676
+ parallelCompress: "Compress island links to their root body.",
677
+ parallelWakeRoots: "Mark islands that must wake for active constraints.",
678
+ parallelWakeBodies: "Wake bodies belonging to active constraint islands.",
679
+ parallelActive: "Compact awake bodies and contacts after connected islands wake.",
680
+ parallelActiveCount: "Build indirect dispatches for awake solver work.",
681
+ parallelAdvance: "Advance body poses using the solved velocities.",
682
+ parallelMarkSleep: "Identify islands whose bodies are quiet enough to sleep.",
683
+ parallelSleep: "Put quiet constraint islands to sleep."
684
+ };
685
+ for (const entryPoint of [
686
+ ...this.ensembleBuffer ? ["ensembleClear", "ensembleMark", "ensembleCompact", "ensembleDispatch"] : [],
687
+ "integrate",
688
+ ...sparse ? [...this.ensembleBuffer ? ["prepareStart"] : [], "prepare", "bounds"] : [],
689
+ "collide",
690
+ ...extended ? ["meshCollide"] : [],
691
+ ...parallel ? [
692
+ ...extended ? ["meshCollect"] : [],
693
+ ...this.ensembleBuffer && this.props.compactContacts !== false ? ["parallelResetCounters"] : [],
694
+ "parallelReset",
695
+ ...this.props.compactContacts !== false ? ["parallelCompact", "parallelDispatchCount"] : [],
696
+ "parallelLink",
697
+ "parallelUnion",
698
+ "parallelCompress",
699
+ "parallelWakeRoots",
700
+ "parallelWakeBodies",
701
+ ...this.props.compactContacts !== false ? [
702
+ ...this.ensembleBuffer ? ["parallelActiveBodies"] : [],
703
+ "parallelActive",
704
+ "parallelActiveCount"
705
+ ] : [],
706
+ "parallelSolve",
707
+ "parallelAdvance",
708
+ ...this.ensembleBuffer ? ["parallelPrepareSleep"] : [],
709
+ "parallelMarkSleep",
710
+ "parallelSleep"
711
+ ] : [...extended && ((_i = this.props.joints) == null ? void 0 : _i.length) ? ["meshCollect"] : [], "solve", "finish"]
712
+ ]) {
713
+ if (entryPoint === "integrate")
714
+ (_j = restoreCheckpoint == null ? void 0 : restoreCheckpoint.save) == null ? void 0 : _j.call(restoreCheckpoint);
715
+ if (sparse && entryPoint === "collide") {
716
+ const bodyBinding = bindings.find((binding) => binding.name === "bodies");
717
+ const minimumBinding = bindings.find((binding) => binding.name === "minima");
718
+ const maximumBinding = bindings.find((binding) => binding.name === "maxima");
719
+ const bucketState = this.ensembleBuffer ? allocate("ensemble-buckets", (2 ** Math.ceil(Math.log2(Math.max(1, this.colliderStorageCount * 2))) + this.colliderStorageCount + 2) * 4) : void 0;
720
+ const broadPhase = new import_rigid_body_broad_phase.GPURigidBodyBroadPhase({
721
+ ...bucketState ? {
722
+ bucketState: graph.createDataView(graph.importBuffer({ id: bucketState.id, byteLength: bucketState.byteLength, usage: import_core.Buffer.STORAGE }, bucketState), { format: "uint32", length: bucketState.byteLength / 4 })
723
+ } : {},
724
+ id: `${this.id}-broad-phase`,
725
+ objectMetadata: objectAttributeView,
726
+ partitionSize: this.props.collisionPartitionSize,
727
+ ...this.ensembleBuffer ? {
728
+ activeInstances: graph.createDataView(bindings.find((binding) => binding.name === "ensemble").resource, { format: "uint32", length: this.ensembleBuffer.byteLength / 4 })
729
+ } : {},
730
+ maximumCandidateTestsPerQuery: this.props.maximumCandidateTestsPerCollider,
731
+ minima: graph.createDataView(minimumBinding.resource, {
732
+ format: "float32x3",
733
+ length: this.colliderStorageCount
734
+ }),
735
+ maxima: graph.createDataView(maximumBinding.resource, {
736
+ format: "float32x3",
737
+ length: this.colliderStorageCount
738
+ }),
739
+ pairs: graph.createDataView(bodyBinding.resource, {
740
+ format: "uint32x2",
741
+ length: this.maximumPairs,
742
+ byteOffset: pairOffset * 4
743
+ }),
744
+ diagnostics: graph.createDataView(bodyBinding.resource, {
745
+ format: "uint32",
746
+ length: 8,
747
+ byteOffset: diagnosticOffset * 4
748
+ })
749
+ });
750
+ (0, import_gpu_command_node.addGPUCommandNodes)(graph, broadPhase.getCommandNodes(graph));
751
+ }
752
+ const unusedCore = entryPoint.startsWith("parallel") ? bindings.filter((binding) => !parallelBindings[entryPoint].includes(binding.name)).map((binding) => binding.name) : entryPoint === "meshCollect" ? ["sleepStates", ...this.ensembleBuffer ? [] : ["targets"], "parallelState"] : ["prepare", "prepareStart"].includes(entryPoint) ? bindings.filter((binding) => !(entryPoint === "prepareStart" ? ["targets"] : ["targets", "manifolds"]).includes(binding.name)).map((binding) => binding.name) : entryPoint === "bounds" ? bindings.filter((binding) => ![
753
+ "settings",
754
+ "positions",
755
+ "orientations",
756
+ "bodies",
757
+ "minima",
758
+ "maxima"
759
+ ].includes(binding.name)).map((binding) => binding.name) : entryPoint === "meshCollide" ? ["velocities", "angularVelocities", "manifolds", "sleepStates", "targets"] : entryPoint === "integrate" ? ["manifolds", ...this.ensembleBuffer ? ["meshTasks"] : []] : entryPoint === "collide" ? [
760
+ "sleepStates",
761
+ ...extended || sparse || ((_k = this.props.joints) == null ? void 0 : _k.length) ? [] : ["targets"]
762
+ ] : entryPoint === "finish" ? ["manifolds", "meshTasks"] : ((_l = this.props.joints) == null ? void 0 : _l.length) ? [] : ["targets"];
763
+ const unused = [
764
+ ...unusedCore,
765
+ ...entryPoint === "solve" && ((_m = this.props.joints) == null ? void 0 : _m.length) ? ["meshTasks"] : [],
766
+ ...entryPoint.startsWith("parallel") ? [] : ["parallelState", "parallelDispatch"],
767
+ ...entryPoint === "bounds" ? [] : ["minima", "maxima"]
768
+ ];
769
+ const usesScheduler = [
770
+ "integrate",
771
+ "bounds",
772
+ "prepare",
773
+ "parallelReset",
774
+ "parallelPrepareSleep",
775
+ "parallelActiveBodies",
776
+ "parallelCompact",
777
+ "parallelActive",
778
+ "parallelLink",
779
+ "parallelUnion",
780
+ "parallelCompress",
781
+ "parallelWakeRoots",
782
+ "parallelWakeBodies",
783
+ "parallelAdvance",
784
+ "parallelMarkSleep",
785
+ "parallelSleep"
786
+ ].includes(entryPoint);
787
+ const selectBinding = (name) => entryPoint.startsWith("ensemble") ? name === "ensemble" || entryPoint === "ensembleClear" && extended && ["meshTasks", "targets"].includes(name) : name === "ensemble" ? usesScheduler : !unused.includes(name);
788
+ const activeBindings = bindings.filter((binding) => selectBinding(binding.name));
789
+ const activeLayout = {
790
+ attributes: [],
791
+ bindings: shaderLayout.bindings.filter((binding) => selectBinding(binding.name)).map((binding) => binding.name === "ensemble" && !entryPoint.startsWith("ensemble") ? { ...binding, type: "read-only-storage" } : binding)
792
+ };
793
+ const indirectPairs = parallel && this.props.compactContacts !== false && [
794
+ "parallelSolve",
795
+ "parallelLink",
796
+ "parallelUnion",
797
+ ...this.ensembleBuffer ? ["parallelActive"] : []
798
+ ].includes(entryPoint);
799
+ const dispatchBinding = bindings.find((binding) => binding.name === "parallelDispatch");
800
+ const schedulerBinding = bindings.find((binding) => binding.name === "ensemble");
801
+ const scheduledDispatch = Boolean(this.ensembleBuffer && [
802
+ "integrate",
803
+ "bounds",
804
+ "parallelAdvance",
805
+ "parallelCompress",
806
+ "parallelWakeRoots",
807
+ "parallelWakeBodies",
808
+ "parallelPrepareSleep",
809
+ "parallelMarkSleep",
810
+ "parallelSleep",
811
+ "parallelActiveBodies",
812
+ ...this.props.compactContacts !== false ? ["parallelReset"] : []
813
+ ].includes(entryPoint));
814
+ const indirectResources = scheduledDispatch ? [{ buffer: schedulerBinding.resource, usage: "indirect" }] : indirectPairs ? [{ buffer: dispatchBinding.resource, usage: "indirect" }] : [];
815
+ if (entryPoint === "parallelSolve") {
816
+ const stages = ["parallelWarm", "parallelPairs", "parallelGather"];
817
+ const properties = stages.map((stage) => ({
818
+ id: `${this.id}-${stage}`,
819
+ source,
820
+ entryPoint: stage,
821
+ shaderLayout: {
822
+ attributes: [],
823
+ bindings: activeLayout.bindings.filter((binding) => parallelBindings[stage].includes(binding.name))
824
+ }
825
+ }));
826
+ const executable = (computations) => ({
827
+ encode: ({ computePass, getBuffer }) => {
828
+ const resolved = {};
829
+ for (const binding of activeBindings)
830
+ resolved[binding.name] = getBuffer(binding.resource);
831
+ for (const [index, computation] of computations.entries())
832
+ Object.assign(computation.bindings, Object.fromEntries(Object.entries(resolved).filter(([name]) => parallelBindings[stages[index]].includes(name))));
833
+ const dispatchPairs = (computation) => {
834
+ if (indirectPairs)
835
+ computation.kernel.dispatchIndirect(computePass, {
836
+ bindings: computation.bindings,
837
+ indirectBuffer: getBuffer(dispatchBinding.resource),
838
+ indirectOffset: 16
839
+ });
840
+ else
841
+ computation.kernel.dispatch(computePass, {
842
+ bindings: computation.bindings,
843
+ x: Math.ceil(this.maximumPairs / 64)
844
+ });
845
+ };
846
+ const dispatchBodies = (computation) => {
847
+ if (indirectPairs)
848
+ computation.kernel.dispatchIndirect(computePass, {
849
+ bindings: computation.bindings,
850
+ indirectBuffer: getBuffer(dispatchBinding.resource),
851
+ indirectOffset: 32
852
+ });
853
+ else
854
+ computation.kernel.dispatch(computePass, {
855
+ bindings: computation.bindings,
856
+ x: Math.ceil(this.count / 64)
857
+ });
858
+ };
859
+ dispatchPairs(computations[0]);
860
+ dispatchBodies(computations[2]);
861
+ for (let iteration = 0; iteration < (this.props.iterations ?? 16); iteration++) {
862
+ dispatchPairs(computations[1]);
863
+ dispatchBodies(computations[2]);
864
+ }
865
+ },
866
+ destroy: () => {
867
+ for (const computation of computations)
868
+ computation.kernel.destroy();
869
+ }
870
+ });
871
+ graph.addComputePass({
872
+ id: `${this.id}-solve`,
873
+ workload: { commandCount: 2 + 2 * (this.props.iterations ?? 16) },
874
+ description: passDescriptions["solve"],
875
+ resources: [
876
+ ...indirectResources,
877
+ ...activeBindings.map((binding) => ({
878
+ buffer: binding.resource,
879
+ usage: binding.name === "settings" ? "uniform" : binding.name === "bodies" ? "storage-read" : "storage-read-write"
880
+ }))
881
+ ],
882
+ compile: ({ device }) => executable(properties.map((properties2) => (0, import_bound_kernel.createBoundKernel)(device, properties2))),
883
+ compileAsync: async ({ device }) => executable(await Promise.all(properties.map((properties2) => (0, import_bound_kernel.createBoundKernelAsync)(device, properties2))))
884
+ });
885
+ continue;
886
+ }
887
+ const createExecutable = (computation) => ({
888
+ encode: ({ computePass, getBuffer }) => {
889
+ const resolved = {};
890
+ for (const binding of activeBindings)
891
+ resolved[binding.name] = getBuffer(binding.resource);
892
+ Object.assign(computation.bindings, resolved);
893
+ if (scheduledDispatch) {
894
+ computation.kernel.dispatchIndirect(computePass, {
895
+ bindings: computation.bindings,
896
+ indirectBuffer: getBuffer(schedulerBinding.resource),
897
+ indirectOffset: entryPoint === "bounds" ? 32 : 16
898
+ });
899
+ } else if (indirectPairs) {
900
+ computation.kernel.dispatchIndirect(computePass, {
901
+ bindings: computation.bindings,
902
+ indirectBuffer: getBuffer(dispatchBinding.resource),
903
+ indirectOffset: 0
904
+ });
905
+ } else if (entryPoint === "meshCollide") {
906
+ const targetBinding = bindings.find((binding) => binding.name === "targets");
907
+ computation.kernel.dispatchIndirect(computePass, {
908
+ bindings: computation.bindings,
909
+ indirectBuffer: getBuffer(targetBinding.resource),
910
+ indirectOffset: this.count * 32
911
+ });
912
+ } else {
913
+ computation.kernel.dispatch(computePass, {
914
+ bindings: computation.bindings,
915
+ x: entryPoint === "ensembleDispatch" ? 1 : entryPoint.startsWith("ensemble") ? Math.ceil(this.count / this.props.ensembleBodiesPerInstance / 64) : this.ensembleBuffer && ["prepare", "parallelCompact"].includes(entryPoint) ? Math.ceil(this.count / this.props.ensembleBodiesPerInstance / 64) : ["parallelLink", "parallelUnion", "parallelCompact"].includes(entryPoint) ? Math.ceil(this.maximumPairs / 64) : entryPoint === "parallelActive" ? Math.ceil(Math.max(this.maximumPairs, this.count) / 64) : [
916
+ "parallelDispatchCount",
917
+ "parallelActiveCount",
918
+ "parallelResetCounters"
919
+ ].includes(entryPoint) ? 1 : entryPoint.startsWith("parallel") ? Math.ceil(this.count / 64) : entryPoint === "collide" ? Math.ceil(this.maximumPairs / 64) : entryPoint === "bounds" ? Math.ceil(this.colliderStorageCount / 64) : entryPoint === "integrate" ? Math.ceil(this.count / 64) : 1
920
+ });
921
+ }
922
+ },
923
+ destroy: () => computation.kernel.destroy()
924
+ });
925
+ const computationProps = {
926
+ id: `${this.id}-${entryPoint}`,
927
+ source: entryPoint.startsWith("ensemble") ? source : (0, import_rigid_body_ensemble_shaders.readOnlyEnsembleShader)(source),
928
+ entryPoint,
929
+ shaderLayout: activeLayout
930
+ };
931
+ graph.addComputePass({
932
+ id: computationProps.id,
933
+ workload: { commandCount: 1 },
934
+ description: passDescriptions[entryPoint],
935
+ resources: [
936
+ ...indirectResources,
937
+ ...activeBindings.map((binding) => ({
938
+ buffer: binding.resource,
939
+ usage: binding.location === 0 ? "uniform" : binding.name === "bodies" || binding.name === "ensemble" && !entryPoint.startsWith("ensemble") ? "storage-read" : "storage-read-write"
940
+ })),
941
+ ...entryPoint === "meshCollide" ? [
942
+ {
943
+ buffer: bindings.find((binding) => binding.name === "targets").resource,
944
+ usage: "indirect"
945
+ }
946
+ ] : []
947
+ ],
948
+ compile: ({ device }) => createExecutable((0, import_bound_kernel.createBoundKernel)(device, computationProps)),
949
+ compileAsync: async ({ device }) => createExecutable(await (0, import_bound_kernel.createBoundKernelAsync)(device, computationProps))
950
+ });
951
+ }
952
+ continuous == null ? void 0 : continuous.finish();
953
+ triggers == null ? void 0 : triggers.sample();
954
+ restoreCheckpoint == null ? void 0 : restoreCheckpoint.validate();
955
+ const diagnosticBinding = (name) => {
956
+ const binding = bindings.find((binding2) => binding2.name === name);
957
+ return { buffer: binding.buffer, resource: binding.resource };
958
+ };
959
+ (0, import_rigid_body_diagnostics.addRigidBodyDiagnostics)(graph, `${this.id}-diagnostics`, this.simulationStatistics, {
960
+ statisticsResource,
961
+ ...restoreCheckpoint ? { validity: restoreCheckpoint.validity } : {},
962
+ ...triggers ? { triggers: triggers.samples } : {},
963
+ ...continuous ? { continuous: { ...continuous.status, count: this.count } } : {},
964
+ ...sparse ? {
965
+ broadPhase: { ...diagnosticBinding("bodies"), wordOffset: diagnosticOffset },
966
+ targets: { ...diagnosticBinding("targets"), wordOffset: this.count * 8 + 4 }
967
+ } : {},
968
+ ...extended ? { meshTasks: diagnosticBinding("meshTasks") } : {},
969
+ ...parallel ? { parallelState: diagnosticBinding("parallelState") } : {}
970
+ });
971
+ restoreCheckpoint == null ? void 0 : restoreCheckpoint.restore();
972
+ if (this.ensembleBuffer)
973
+ (0, import_rigid_body_ensemble_shaders.addEnsembleStatus)(graph, this.id, this.count / this.props.ensembleBodiesPerInstance, this.props.ensembleBodiesPerInstance, diagnosticBinding("bodies"), diagnosticBinding("sleepStates"), diagnosticBinding("ensemble"), { buffer: this.simulationStatistics, resource: statisticsResource });
974
+ triggers == null ? void 0 : triggers.publish();
975
+ if (this.props.publicationBounds || this.props.publishPoses) {
976
+ const publication = (0, import_rigid_body_publication.addRigidBodyPosePublication)(graph, this.id, this.props.bodies, this.props.publicationBounds ?? this.props.bodies.map(() => [
977
+ [0, 0, 0],
978
+ [0, 0, 0]
979
+ ]), diagnosticBinding("positions"), diagnosticBinding("orientations"), allocate);
980
+ this.encodePosePublication = publication.encode;
981
+ this.poseMatrices = publication.matrices;
982
+ this.poseBounds = this.props.publicationBounds ? publication.bounds : null;
983
+ }
984
+ if (this.props.eventCapacity) {
985
+ const contactHistory = allocate("contact-history", this.maximumPairs * 16);
986
+ this.contactEvents = allocate("contact-events", 16 + this.props.eventCapacity * 64);
987
+ const eventBindings = [
988
+ ...bindings.filter((binding) => ["bodies", "manifolds", "ensemble"].includes(binding.name)),
989
+ ...this.props.failurePolicy === "rollback" ? [
990
+ {
991
+ name: "eventStatistics",
992
+ buffer: this.simulationStatistics,
993
+ resource: statisticsResource,
994
+ location: 14
995
+ }
996
+ ] : [],
997
+ ...[
998
+ { name: "contactHistory", buffer: contactHistory, location: 12 },
999
+ { name: "contactEvents", buffer: this.contactEvents, location: 13 }
1000
+ ].map((binding) => ({
1001
+ ...binding,
1002
+ resource: graph.importBuffer({
1003
+ id: `${this.id}-${binding.name}`,
1004
+ byteLength: binding.buffer.byteLength,
1005
+ usage: import_core.Buffer.STORAGE
1006
+ }, binding.buffer)
1007
+ }))
1008
+ ];
1009
+ const properties = {
1010
+ id: `${this.id}-contact-events`,
1011
+ source: source + (0, import_rigid_body_events.getRigidBodyEventShader)(this.props.eventCapacity, this.props.impactImpulseThreshold ?? 1, this.props.failurePolicy === "rollback"),
1012
+ entryPoint: "recordContacts",
1013
+ shaderLayout: {
1014
+ bindings: eventBindings.map(({ name, location }) => ({
1015
+ name,
1016
+ location,
1017
+ group: 0,
1018
+ type: ["bodies", "eventStatistics"].includes(name) ? "read-only-storage" : "storage"
1019
+ }))
1020
+ }
1021
+ };
1022
+ const executable = (computation) => ({
1023
+ encode: ({ computePass, getBuffer }) => {
1024
+ Object.assign(computation.bindings, Object.fromEntries(eventBindings.map((binding) => [binding.name, getBuffer(binding.resource)])));
1025
+ computation.kernel.dispatch(computePass, { bindings: computation.bindings, x: 1 });
1026
+ },
1027
+ destroy: () => computation.kernel.destroy()
1028
+ });
1029
+ graph.addComputePass({
1030
+ id: properties.id,
1031
+ description: "Compare contact history and publish contact begin, persist, and end events.",
1032
+ resources: eventBindings.map((binding) => ({
1033
+ buffer: binding.resource,
1034
+ usage: ["bodies", "eventStatistics"].includes(binding.name) ? "storage-read" : "storage-read-write"
1035
+ })),
1036
+ compile: () => executable((0, import_bound_kernel.createBoundKernel)(graph.device, properties)),
1037
+ compileAsync: async () => executable(await (0, import_bound_kernel.createBoundKernelAsync)(graph.device, properties))
1038
+ });
1039
+ }
1040
+ if (this.props.enableQueries) {
1041
+ this.querySettings = allocate("query-settings", 48, true);
1042
+ this.querySelection = allocate("query-selection", Math.max(4, this.colliderStorageCount * 4));
1043
+ this.queryOutput = allocate("query-output", 16 + Math.max(1, this.colliderStorageCount) * 48);
1044
+ const queryProperties = {
1045
+ id: `${this.id}-queries`,
1046
+ source: source + import_rigid_body_query_geometry.RIGID_BODY_QUERY_GEOMETRY_SHADER + import_rigid_body_queries.RIGID_BODY_QUERY_SHADER,
1047
+ entryPoint: "queryColliders",
1048
+ shaderLayout: {
1049
+ bindings: [
1050
+ ...shaderLayout.bindings.filter((binding) => ["positions", "orientations", "bodies"].includes(binding.name)),
1051
+ { name: "query", group: 0, location: 12, type: "uniform" },
1052
+ { name: "querySelection", group: 0, location: 13, type: "read-only-storage" },
1053
+ { name: "queryOutput", group: 0, location: 14, type: "storage" }
1054
+ ]
1055
+ },
1056
+ bindings: {
1057
+ positions: this.positions,
1058
+ orientations: this.orientations,
1059
+ bodies,
1060
+ query: this.querySettings,
1061
+ querySelection: this.querySelection,
1062
+ queryOutput: this.queryOutput
1063
+ }
1064
+ };
1065
+ this.queryComputation = (0, import_bound_kernel.createBoundKernel)(graph.device, queryProperties);
1066
+ this.queryReduction = (0, import_bound_kernel.createBoundKernel)(graph.device, {
1067
+ ...queryProperties,
1068
+ entryPoint: "reduceQueries",
1069
+ shaderLayout: {
1070
+ bindings: queryProperties.shaderLayout.bindings.filter((binding) => ["query", "querySelection", "queryOutput"].includes(binding.name))
1071
+ },
1072
+ bindings: {
1073
+ query: this.querySettings,
1074
+ querySelection: this.querySelection,
1075
+ queryOutput: this.queryOutput
1076
+ }
1077
+ });
1078
+ }
1079
+ this.controlSettings = allocate("control-settings", 64, true);
1080
+ const controlProperties = {
1081
+ id: `${this.id}-impulse`,
1082
+ source: source + /* wgsl */
1083
+ `
1084
+ struct Command { impulse: vec4f, point: vec4f, orientation: vec4f, bodyIndex: vec4u }
1085
+ @group(0) @binding(8) var<uniform> command: Command;
1086
+ @compute @workgroup_size(1) fn control() {
1087
+ if(command.bodyIndex.y==0u) {applyImpulse(command.bodyIndex.x,command.point.xyz,command.impulse.xyz);}
1088
+ else if(command.bodyIndex.y==6u){
1089
+ let body=command.bodyIndex.x;let shift=rotate(orientations[body],command.impulse.xyz);
1090
+ positions[body]=vec4f(positions[body].xyz+shift,positions[body].w);
1091
+ var linear=velocities[body].xyz+cross(angularVelocities[body].xyz,shift);
1092
+ var angular=angularVelocities[body].xyz;
1093
+ if(command.point.w>0.0){linear=command.point.xyz;}
1094
+ if(command.orientation.w>0.0){angular=command.orientation.xyz;}
1095
+ if(bodies.bodies[body].motion.x==0.0){linear=vec3f(0);angular=vec3f(0);}
1096
+ velocities[body]=vec4f(linear,command.impulse.w);angularVelocities[body]=vec4f(angular,0);
1097
+ if(command.bodyIndex.z!=0u){targets.entries[body].position.w=0.0;}
1098
+ }
1099
+ 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);}}
1100
+ else if(command.bodyIndex.y==2u) {applyImpulse(command.bodyIndex.x,positions[command.bodyIndex.x].xyz,command.impulse.xyz);}
1101
+ ${((_n = this.props.joints) == null ? void 0 : _n.length) ? "else if(command.bodyIndex.y==3u){targets.joints[command.bodyIndex.x].control.x=command.impulse.x;}" : ""}
1102
+ else {targets.entries[command.bodyIndex.x].position=vec4f(command.point.xyz,1);targets.entries[command.bodyIndex.x].orientation=command.orientation;}
1103
+ }
1104
+ @compute @workgroup_size(64) fn invalidate(@builtin(global_invocation_id) invocation:vec3u) {
1105
+ let index=invocation.x+invocation.y*4194240u;
1106
+ if(index<BODY_COUNT){sleepStates[index]=vec4f(0);}
1107
+ if(index<PAIR_CAPACITY){manifolds[index].count=0u;}
1108
+ ${((_o = this.props.joints) == null ? void 0 : _o.length) ? `if(index<${this.props.joints.length}u){for(var row=0u;row<8u;row++){targets.joints[index].impulses[row]=0.0;}}` : ""}
1109
+ }`,
1110
+ entryPoint: "control",
1111
+ shaderLayout: {
1112
+ bindings: [
1113
+ ...shaderLayout.bindings.filter((binding) => ![
1114
+ "settings",
1115
+ "meshTasks",
1116
+ "parallelState",
1117
+ "parallelDispatch",
1118
+ "minima",
1119
+ "maxima"
1120
+ ].includes(binding.name)),
1121
+ { name: "command", group: 0, location: 8, type: "uniform" }
1122
+ ]
1123
+ },
1124
+ bindings: {
1125
+ ...Object.fromEntries(Object.entries(buffers).filter(([name]) => ![
1126
+ "settings",
1127
+ "meshTasks",
1128
+ "parallelState",
1129
+ "parallelDispatch",
1130
+ "minima",
1131
+ "maxima"
1132
+ ].includes(name))),
1133
+ command: this.controlSettings
1134
+ }
1135
+ };
1136
+ this.control = (0, import_bound_kernel.createBoundKernel)(graph.device, {
1137
+ ...controlProperties,
1138
+ shaderLayout: {
1139
+ bindings: controlProperties.shaderLayout.bindings.filter((binding) => !["sleepStates", "manifolds"].includes(binding.name))
1140
+ },
1141
+ bindings: Object.fromEntries(Object.entries(controlProperties.bindings).filter(([name]) => !["sleepStates", "manifolds"].includes(name)))
1142
+ });
1143
+ const invalidationBindings = [
1144
+ "sleepStates",
1145
+ "manifolds",
1146
+ ...((_p = this.props.joints) == null ? void 0 : _p.length) ? ["targets"] : []
1147
+ ];
1148
+ this.invalidation = (0, import_bound_kernel.createBoundKernel)(graph.device, {
1149
+ ...controlProperties,
1150
+ id: `${this.id}-invalidate`,
1151
+ entryPoint: "invalidate",
1152
+ shaderLayout: {
1153
+ bindings: controlProperties.shaderLayout.bindings.filter((binding) => invalidationBindings.includes(binding.name))
1154
+ },
1155
+ bindings: Object.fromEntries(Object.entries(controlProperties.bindings).filter(([name]) => invalidationBindings.includes(name)))
1156
+ });
1157
+ }
1158
+ invalidateState(pass) {
1159
+ var _a, _b;
1160
+ (_a = this.ensembleBuffer) == null ? void 0 : _a.write(new Uint32Array([1]), 4);
1161
+ const workgroups = Math.ceil(Math.max(this.count, this.maximumPairs, ((_b = this.props.joints) == null ? void 0 : _b.length) ?? 0) / 64);
1162
+ this.invalidation.kernel.dispatch(pass, {
1163
+ bindings: this.invalidation.bindings,
1164
+ x: Math.min(65535, workgroups),
1165
+ y: Math.ceil(workgroups / 65535)
1166
+ });
1167
+ }
1168
+ /** Double-precision global origin. GPU poses, controls, queries and event points are local. */
1169
+ get origin() {
1170
+ return [...this.worldOrigin];
1171
+ }
1172
+ /** Rebase between submissions, preserving velocities, contact impulses and sleeping state. */
1173
+ shiftOrigin(shift) {
1174
+ if (!this.device || this.destroyed || this.queryPending || this.eventRead || this.triggerRead)
1175
+ throw new Error("Origin shifting requires an idle attached world");
1176
+ if (shift.length !== 3 || shift.some((value) => !Number.isFinite(value) || Math.fround(value) !== value))
1177
+ throw new Error("Origin shift must be an exactly representable float32 vector");
1178
+ if (shift.every((value) => value === 0))
1179
+ return;
1180
+ (0, import_rigid_body_origin.shiftRigidBodyBuffers)(this.device, this.id, this.ownedBuffers, this.count, this.colliderStorageCount, this.maximumPairs, this.props.eventCapacity ?? 0, shift);
1181
+ this.worldOrigin = this.worldOrigin.map((value, axis) => value + shift[axis]);
1182
+ this.publishPoses();
1183
+ }
1184
+ /** Inspect the declared motion mode without exposing mutable world configuration. */
1185
+ getBodyMode(body) {
1186
+ const definition = this.props.bodies[body];
1187
+ return definition ? definition.mode ?? ((definition.mass ?? 1) === 0 ? "static" : "dynamic") : void 0;
1188
+ }
1189
+ /** Submit an impulse at a world-space point, or the current GPU center of mass when omitted. */
1190
+ applyImpulse(body, impulse, point) {
1191
+ if (!this.control || !this.device || !this.controlSettings || this.destroyed || !Number.isInteger(body) || body < 0 || body >= this.count || ![...impulse, ...point ?? []].every(Number.isFinite))
1192
+ throw new Error("Invalid rigid-body impulse");
1193
+ const data = new ArrayBuffer(64);
1194
+ new Float32Array(data).set([...impulse, 0, ...point ?? [0, 0, 0], 0]);
1195
+ new Uint32Array(data)[12] = body;
1196
+ new Uint32Array(data)[13] = point ? 0 : 2;
1197
+ this.controlSettings.write(new Uint8Array(data));
1198
+ const encoder = this.device.createCommandEncoder();
1199
+ const pass = encoder.beginComputePass();
1200
+ this.control.kernel.dispatch(pass, { bindings: this.control.bindings, x: 1 });
1201
+ this.invalidateState(pass);
1202
+ pass.end();
1203
+ this.device.submit(encoder.finish());
1204
+ }
1205
+ /** Read configured motion properties; use readState() for simulated pose and velocity. */
1206
+ getBodyParameters(body, { deriveInertia = true } = {}) {
1207
+ const definition = this.props.bodies[body];
1208
+ if (!definition || this.destroyed)
1209
+ throw new Error("Invalid body");
1210
+ const { mode, mass, centerOfMass, inertiaDiagonal, inertiaOrientation, velocity, angularVelocity, gravityFactor } = definition;
1211
+ const compound = (0, import_rigid_body_properties.getCompoundBodyInertia)(mass ?? 1, this.colliders.filter((collider) => collider.body === body), centerOfMass ?? [0, 0, 0]);
1212
+ return structuredClone({
1213
+ mode: mode ?? ((mass ?? 1) === 0 ? "static" : "dynamic"),
1214
+ mass: mass ?? 1,
1215
+ centerOfMass: centerOfMass ?? [0, 0, 0],
1216
+ inertiaDiagonal: inertiaDiagonal ?? (deriveInertia ? compound.diagonal : void 0),
1217
+ inertiaOrientation: inertiaOrientation ?? (deriveInertia ? inertiaDiagonal ? [0, 0, 0, 1] : compound.orientation : void 0),
1218
+ velocity: velocity ?? [0, 0, 0],
1219
+ angularVelocity: angularVelocity ?? [0, 0, 0],
1220
+ gravityFactor: gravityFactor ?? 1
1221
+ });
1222
+ }
1223
+ /** Refresh render outputs without integrating or solving a simulation step. */
1224
+ publishPoses() {
1225
+ if (!this.device || this.destroyed)
1226
+ throw new Error("Unavailable physics world");
1227
+ if (!this.encodePosePublication)
1228
+ return;
1229
+ const encoder = this.device.createCommandEncoder();
1230
+ this.encodePosePublication(encoder);
1231
+ this.device.submit(encoder.finish());
1232
+ }
1233
+ /** Update visual bounds independently of collision geometry, before the next submission. */
1234
+ setPublicationBounds(bounds) {
1235
+ if (!this.poseBounds || bounds.length !== this.count || bounds.some((bound) => bound.length !== 2 || bound.some((vector) => vector.length !== 3 || !vector.every((value) => Number.isFinite(Math.fround(value)))) || bound[0].some((value, axis) => value > bound[1][axis])))
1236
+ throw new Error("Invalid publication bounds");
1237
+ const metadata = this.ownedBuffers.find((buffer) => buffer.id === `${this.id}-pose-metadata`);
1238
+ const data = new Float32Array(this.count * 12);
1239
+ for (const [index, body] of this.props.bodies.entries())
1240
+ data.set([...body.centerOfMass ?? [0, 0, 0], 0, ...bounds[index][0], 0, ...bounds[index][1], 0], index * 12);
1241
+ metadata.write(data);
1242
+ this.props.publicationBounds = structuredClone(bounds);
1243
+ }
1244
+ /** Applied scale relative to the initially cooked analytic shape. */
1245
+ getColliderShapeScale(colliderIndex) {
1246
+ this.getColliderShape(colliderIndex);
1247
+ return [...this.colliderShapeScales.get(colliderIndex) ?? [1, 1, 1]];
1248
+ }
1249
+ /** Return a detached copy of the configured collision geometry. */
1250
+ getColliderShape(colliderIndex) {
1251
+ const collider = this.colliders[colliderIndex];
1252
+ if (!Number.isInteger(colliderIndex) || !collider || this.destroyed)
1253
+ throw new Error("Invalid collider");
1254
+ return structuredClone(collider.shape);
1255
+ }
1256
+ /** Edit analytic dimensions without recompiling or reading body state back to the CPU.
1257
+ * All edits are validated before publication. Shape kinds and mesh topology require rebuild().
1258
+ * Explicit mass/COM/inertia and authored visual bounds remain caller-owned.
1259
+ */
1260
+ setColliderShapes(edits) {
1261
+ if (!this.device || this.destroyed)
1262
+ throw new Error("World is not attached");
1263
+ const indices = /* @__PURE__ */ new Set();
1264
+ const shapes = edits.map((edit) => {
1265
+ const previous = this.getColliderShape(edit.collider);
1266
+ const shape = structuredClone(edit.shape);
1267
+ if (edit.shapeScale && (edit.shapeScale.length !== 3 || edit.shapeScale.some((value) => !Number.isFinite(value) || value <= 0)))
1268
+ throw new Error("Invalid collider shape scale");
1269
+ if (indices.has(edit.collider) || previous.type !== shape.type || shape.type === "convex-hull" || shape.type === "triangle-mesh")
1270
+ throw new Error("Shape edit requires a topology rebuild");
1271
+ indices.add(edit.collider);
1272
+ const properties = (0, import_rigid_body_shape_properties.getRigidBodyShapeProperties)(shape);
1273
+ const packed = (0, import_rigid_body_geometry.packRigidBodyShapes)([{ shape }]).shapes[0];
1274
+ if (![
1275
+ ...packed.dimensions,
1276
+ properties.volume,
1277
+ ...properties.tensor,
1278
+ ...properties.center
1279
+ ].every((value) => Number.isFinite(Math.fround(value))))
1280
+ throw new Error("Shape exceeds float32 range");
1281
+ return {
1282
+ collider: edit.collider,
1283
+ shape,
1284
+ dimensions: packed.dimensions,
1285
+ shapeScale: edit.shapeScale
1286
+ };
1287
+ });
1288
+ const metadata = this.ownedBuffers.find((buffer) => buffer.id === `${this.id}-bodies`);
1289
+ if (!metadata)
1290
+ throw new Error("World is not attached");
1291
+ for (const edit of shapes) {
1292
+ metadata.write(new Float32Array(edit.dimensions), this.count * 48 + edit.collider * 96);
1293
+ this.colliders[edit.collider].shape = edit.shape;
1294
+ if (edit.shapeScale)
1295
+ this.colliderShapeScales.set(edit.collider, [...edit.shapeScale]);
1296
+ }
1297
+ for (const body of new Set(shapes.map((edit) => this.colliders[edit.collider].body))) {
1298
+ this.updateColliderDefinitions(body);
1299
+ this.setBodyParameters(body, {});
1300
+ }
1301
+ }
1302
+ /** Change an existing collider material between submissions, invalidating cached friction. */
1303
+ setColliderMaterial(colliderIndex, material) {
1304
+ const collider = this.colliders[colliderIndex];
1305
+ if (!this.device || this.destroyed || !Number.isInteger(colliderIndex) || !collider)
1306
+ throw new Error("Invalid collider");
1307
+ const policies = [
1308
+ "average",
1309
+ "minimum",
1310
+ "maximum",
1311
+ "multiply"
1312
+ ];
1313
+ if ([
1314
+ material.staticFriction ?? 0.6,
1315
+ material.dynamicFriction ?? 0.6,
1316
+ material.restitution ?? 0.1
1317
+ ].some((value) => !Number.isFinite(Math.fround(value)) || value < 0) || (material.restitution ?? 0.1) > 1 || [material.frictionCombine, material.restitutionCombine].some((value) => value !== void 0 && !policies.includes(value)))
1318
+ throw new Error("Invalid collider material");
1319
+ const body = this.props.bodies[collider.body];
1320
+ const metadata = this.ownedBuffers.find((buffer) => buffer.id === `${this.id}-bodies`);
1321
+ if (!metadata)
1322
+ throw new Error("World is not attached");
1323
+ metadata.write(new Float32Array([
1324
+ material.restitution ?? body.restitution ?? 0.1,
1325
+ material.staticFriction ?? body.friction ?? 0.6,
1326
+ material.dynamicFriction ?? body.friction ?? 0.6
1327
+ ]), this.count * 48 + colliderIndex * 96 + 48);
1328
+ metadata.write(new Float32Array([
1329
+ material.restitutionCombine ? policies.indexOf(material.restitutionCombine) : 4,
1330
+ material.frictionCombine ? policies.indexOf(material.frictionCombine) : 4
1331
+ ]), this.count * 48 + colliderIndex * 96 + 64);
1332
+ collider.material = structuredClone(material);
1333
+ this.updateColliderDefinitions(collider.body);
1334
+ this.wake();
1335
+ }
1336
+ /** Teleport a collider in its body-node frame, preserving the body pose and explicit COM. */
1337
+ setColliderTransform(colliderIndex, position, orientation) {
1338
+ var _a, _b;
1339
+ const collider = this.colliders[colliderIndex];
1340
+ if (this.destroyed || !this.device || !collider || !position.every((value) => Number.isFinite(Math.fround(value))))
1341
+ throw new Error("Invalid collider transform");
1342
+ const rotation = (0, import_rigid_body_properties.normalizeRigidBodyRotation)(orientation);
1343
+ const center = this.props.bodies[collider.body].centerOfMass ?? [0, 0, 0];
1344
+ if (((_a = this.props.continuous) == null ? void 0 : _a.mode) !== "convex" && ((_b = this.props.continuous) == null ? void 0 : _b.bodies.includes(collider.body)) && position.some((value, axis) => value !== center[axis]))
1345
+ throw new Error("Collider transform exceeds continuous envelope");
1346
+ const metadata = this.ownedBuffers.find((buffer) => buffer.id === `${this.id}-bodies`);
1347
+ if (!metadata)
1348
+ throw new Error("World is not attached");
1349
+ metadata.write(new Float32Array([
1350
+ ...position.map((value, axis) => value - center[axis]),
1351
+ collider.body,
1352
+ ...rotation
1353
+ ]), this.count * 48 + colliderIndex * 96 + 16);
1354
+ collider.position = [...position];
1355
+ collider.orientation = rotation;
1356
+ this.updateColliderDefinitions(collider.body);
1357
+ this.setBodyParameters(collider.body, {});
1358
+ }
1359
+ updateColliderDefinitions(bodyIndex) {
1360
+ const { shape, colliders, ...properties } = this.props.bodies[bodyIndex];
1361
+ const updated = this.colliders.filter((candidate) => candidate.body === bodyIndex).map(({ body, ...candidate }) => candidate);
1362
+ const bodies = [...this.props.bodies];
1363
+ bodies[bodyIndex] = { ...properties, colliders: updated };
1364
+ this.props.bodies = bodies;
1365
+ }
1366
+ getColliderMaterial(collider) {
1367
+ const definition = this.colliders[collider];
1368
+ if (!definition || this.destroyed)
1369
+ throw new Error("Invalid collider");
1370
+ return structuredClone(definition.material ?? {});
1371
+ }
1372
+ restoreColliderDefinitions() {
1373
+ const definitions = this.props.bodies.flatMap((body) => body.colliders ?? (body.shape ? [{ shape: body.shape }] : []));
1374
+ for (const [index, definition] of definitions.entries()) {
1375
+ const collider = this.colliders[index];
1376
+ collider.shape = definition.shape;
1377
+ collider.material = definition.material;
1378
+ collider.position = definition.position;
1379
+ collider.orientation = definition.orientation;
1380
+ }
1381
+ }
1382
+ /** Update motion properties between submissions; preserve the node pose when its COM changes. */
1383
+ setBodyParameters(bodyIndex, parameters) {
1384
+ var _a, _b;
1385
+ if (!this.device || !this.control || !this.controlSettings || this.destroyed || !Number.isInteger(bodyIndex) || !this.props.bodies[bodyIndex])
1386
+ throw new Error("Invalid body mutation");
1387
+ const previous = this.props.bodies[bodyIndex];
1388
+ const next = { ...previous, ...structuredClone(parameters) };
1389
+ const mass = next.mass ?? 1;
1390
+ const mode = next.mode ?? (mass === 0 ? "static" : "dynamic");
1391
+ const center = next.centerOfMass ?? [0, 0, 0];
1392
+ const oldCenter = previous.centerOfMass ?? [0, 0, 0];
1393
+ if (!["static", "dynamic", "kinematic"].includes(mode) || !Number.isFinite(Math.fround(mass)) || mass < 0 || ![
1394
+ ...center,
1395
+ ...next.velocity ?? [],
1396
+ ...next.angularVelocity ?? [],
1397
+ next.gravityFactor ?? 1
1398
+ ].every((value) => Number.isFinite(Math.fround(value))) || (next.inertiaDiagonal ?? []).some((value) => !Number.isFinite(Math.fround(value)) || value < 0) || next.inertiaOrientation && !next.inertiaDiagonal)
1399
+ throw new Error("Invalid motion properties");
1400
+ const colliders = this.colliders.filter((collider) => collider.body === bodyIndex);
1401
+ for (const collider of colliders)
1402
+ if ((collider.shape.type === "convex-hull" || collider.shape.type === "triangle-mesh") && mode !== "static" && mass > 0 && (!collider.shape.geometry.closed || !((0, import_rigid_body_shape_properties.getRigidBodyShapeProperties)(collider.shape).volume > 0)))
1403
+ throw new Error("Dynamic meshes require closed positive-volume geometry");
1404
+ if (((_a = this.props.continuous) == null ? void 0 : _a.bodies.includes(bodyIndex)) && (mode !== "dynamic" || mass === 0 || this.props.continuous.mode !== "convex" && (colliders[0].position ?? [0, 0, 0]).some((value, axis) => value !== center[axis])))
1405
+ throw new Error("Mutation exceeds the continuous body envelope");
1406
+ const compound = (0, import_rigid_body_properties.getCompoundBodyInertia)(mass, colliders, center);
1407
+ const inertia = next.inertiaDiagonal ?? compound.diagonal;
1408
+ const rotation = (0, import_rigid_body_properties.normalizeRigidBodyRotation)(next.inertiaOrientation ?? (next.inertiaDiagonal ? void 0 : compound.orientation));
1409
+ const metadata = this.ownedBuffers.find((buffer) => buffer.id === `${this.id}-bodies`);
1410
+ metadata.write(new Float32Array([
1411
+ ...inertia.map((value) => mode === "dynamic" && value ? 1 / value : 0),
1412
+ center[0],
1413
+ ...rotation,
1414
+ mode === "static" ? 0 : mode === "dynamic" ? 1 : 2,
1415
+ next.gravityFactor ?? 1,
1416
+ center[1],
1417
+ center[2]
1418
+ ]), bodyIndex * 48);
1419
+ const attributes = this.ownedBuffers.find((buffer) => buffer.id === `${this.id}-object-attributes`);
1420
+ for (const [index, collider] of this.colliders.entries())
1421
+ if (collider.body === bodyIndex) {
1422
+ metadata.write(new Float32Array((collider.position ?? [0, 0, 0]).map((value, axis) => value - center[axis])), this.count * 48 + index * 96 + 16);
1423
+ attributes == null ? void 0 : attributes.write(new Uint32Array([bodyIndex | (mode === "dynamic" ? 65536 : 0)]), index * 4);
1424
+ }
1425
+ (_b = this.ownedBuffers.find((buffer) => buffer.id === `${this.id}-pose-metadata`)) == null ? void 0 : _b.write(new Float32Array(center), bodyIndex * 48);
1426
+ const data = new ArrayBuffer(64);
1427
+ new Float32Array(data).set([
1428
+ ...center.map((value, axis) => value - oldCenter[axis]),
1429
+ mode === "dynamic" && mass ? 1 / mass : 0,
1430
+ ...parameters.velocity ?? [0, 0, 0],
1431
+ parameters.velocity ? 1 : 0,
1432
+ ...parameters.angularVelocity ?? [0, 0, 0],
1433
+ parameters.angularVelocity ? 1 : 0
1434
+ ]);
1435
+ new Uint32Array(data).set([bodyIndex, 6, mode !== this.getBodyMode(bodyIndex) ? 1 : 0], 12);
1436
+ this.controlSettings.write(new Uint8Array(data));
1437
+ const encoder = this.device.createCommandEncoder();
1438
+ const pass = encoder.beginComputePass();
1439
+ this.control.kernel.dispatch(pass, { bindings: this.control.bindings, x: 1 });
1440
+ this.invalidateState(pass);
1441
+ pass.end();
1442
+ this.device.submit(encoder.finish());
1443
+ const bodies = [...this.props.bodies];
1444
+ bodies[bodyIndex] = next;
1445
+ this.props.bodies = bodies;
1446
+ }
1447
+ /** Apply a world-space angular impulse at the current GPU pose. */
1448
+ applyAngularImpulse(body, impulse) {
1449
+ if (!this.control || !this.device || !this.controlSettings || this.destroyed || !Number.isInteger(body) || body < 0 || body >= this.count || !impulse.every(Number.isFinite))
1450
+ throw new Error("Invalid angular impulse");
1451
+ const data = new ArrayBuffer(64);
1452
+ new Float32Array(data).set(impulse);
1453
+ new Uint32Array(data)[12] = body;
1454
+ new Uint32Array(data)[13] = 5;
1455
+ this.controlSettings.write(new Uint8Array(data));
1456
+ const encoder = this.device.createCommandEncoder();
1457
+ const pass = encoder.beginComputePass();
1458
+ this.control.kernel.dispatch(pass, { bindings: this.control.bindings, x: 1 });
1459
+ this.invalidateState(pass);
1460
+ pass.end();
1461
+ this.device.submit(encoder.finish());
1462
+ }
1463
+ /** Set a world-space node target for a kinematic body, held until replaced. */
1464
+ setKinematicTarget(body, position, orientation) {
1465
+ var _a;
1466
+ if (!this.control || !this.controlSettings || !this.device || this.destroyed || !Number.isInteger(body) || ((_a = this.props.bodies[body]) == null ? void 0 : _a.mode) !== "kinematic" || !position.every(Number.isFinite))
1467
+ throw new Error("Invalid kinematic target");
1468
+ const rotation = (0, import_rigid_body_properties.normalizeRigidBodyRotation)(orientation);
1469
+ const offset = (0, import_rigid_body_properties.rotateRigidBodyVector)(rotation, this.props.bodies[body].centerOfMass ?? [0, 0, 0]);
1470
+ const data = new ArrayBuffer(64);
1471
+ new Float32Array(data).set([...position.map((value, axis) => value + offset[axis]), 0], 4);
1472
+ new Float32Array(data).set(rotation, 8);
1473
+ new Uint32Array(data).set([body, 1], 12);
1474
+ this.controlSettings.write(new Uint8Array(data));
1475
+ const encoder = this.device.createCommandEncoder();
1476
+ const pass = encoder.beginComputePass();
1477
+ this.control.kernel.dispatch(pass, { bindings: this.control.bindings, x: 1 });
1478
+ this.invalidateState(pass);
1479
+ pass.end();
1480
+ this.device.submit(encoder.finish());
1481
+ }
1482
+ getJointStateOffset() {
1483
+ return Math.ceil((this.count * 32 + (this.broadPhase === "hierarchical-grid" ? 32 + this.maximumPairs * 8 : 16)) / 16) * 16;
1484
+ }
1485
+ getJointParameters(index) {
1486
+ var _a;
1487
+ const joint = (_a = this.props.joints) == null ? void 0 : _a[index];
1488
+ if (!joint || this.destroyed)
1489
+ throw new Error("Invalid joint");
1490
+ return structuredClone(joint);
1491
+ }
1492
+ /** Update an existing constraint's response without recompiling or changing attachment topology. */
1493
+ setJointParameters(index, parameters) {
1494
+ this.setJointParameterEdits([{ index, parameters }]);
1495
+ }
1496
+ /** Validate every shared-resource edit before submitting any control writes. */
1497
+ setJointParameterEdits(edits) {
1498
+ for (const { index, parameters } of edits)
1499
+ this.validateJointParameters(index, parameters);
1500
+ for (const { index, parameters } of edits)
1501
+ this.writeJointParameters(index, parameters);
1502
+ }
1503
+ validateJointParameters(index, parameters) {
1504
+ var _a;
1505
+ const previous = (_a = this.props.joints) == null ? void 0 : _a[index];
1506
+ if (!previous || !this.targets || this.destroyed || previous.type !== parameters.type || previous.first !== parameters.first || previous.second !== parameters.second || JSON.stringify(previous.firstFrame) !== JSON.stringify(parameters.firstFrame) || JSON.stringify(previous.secondFrame) !== JSON.stringify(parameters.secondFrame))
1507
+ throw new Error("Joint topology must remain unchanged");
1508
+ (0, import_rigid_body_joints.validateRigidBodyJoints)([parameters], this.props.bodies, this.solver);
1509
+ }
1510
+ writeJointParameters(index, parameters) {
1511
+ const joints = [...this.props.joints];
1512
+ joints[index] = structuredClone(parameters);
1513
+ this.props.joints = joints;
1514
+ this.targets.write((0, import_rigid_body_joints.packRigidBodyJointState)(parameters), this.getJointStateOffset() + index * import_rigid_body_joints.RIGID_BODY_JOINT_STATE_BYTES);
1515
+ this.setJointEnabled(index, parameters.enabled !== false);
1516
+ }
1517
+ /** Enable a predeclared joint between submissions; wakes bodies and clears cached impulses. */
1518
+ setJointEnabled(joint, enabled) {
1519
+ var _a;
1520
+ if (!this.control || !this.controlSettings || !this.device || this.destroyed || !Number.isInteger(joint) || !((_a = this.props.joints) == null ? void 0 : _a[joint]))
1521
+ throw new Error("Invalid joint");
1522
+ const data = new ArrayBuffer(64);
1523
+ new Float32Array(data)[0] = enabled ? 1 : 0;
1524
+ new Uint32Array(data).set([joint, 3], 12);
1525
+ this.controlSettings.write(new Uint8Array(data));
1526
+ const encoder = this.device.createCommandEncoder();
1527
+ const pass = encoder.beginComputePass();
1528
+ this.control.kernel.dispatch(pass, { bindings: this.control.bindings, x: 1 });
1529
+ this.invalidateState(pass);
1530
+ pass.end();
1531
+ this.device.submit(encoder.finish());
1532
+ const joints = [...this.props.joints];
1533
+ joints[joint] = { ...joints[joint], enabled };
1534
+ this.props.joints = joints;
1535
+ }
1536
+ /** Clear persistence and sleeping after direct state writes between submissions. */
1537
+ wake() {
1538
+ if (this.destroyed || !this.device || !this.invalidation)
1539
+ return;
1540
+ const encoder = this.device.createCommandEncoder();
1541
+ const pass = encoder.beginComputePass();
1542
+ this.invalidateState(pass);
1543
+ pass.end();
1544
+ this.device.submit(encoder.finish());
1545
+ }
1546
+ /** Optional asynchronous event readback. Concurrent readers share one snapshot/cursor. */
1547
+ readContactEvents() {
1548
+ if (!this.contactEvents || this.destroyed)
1549
+ return Promise.reject(new Error("Contact events are not enabled"));
1550
+ if (!this.eventRead)
1551
+ this.eventRead = this.contactEvents.readAsync().then((bytes) => {
1552
+ const batch = (0, import_rigid_body_events.decodeRigidBodyContactEvents)(new Uint32Array(bytes.buffer, bytes.byteOffset, bytes.byteLength / 4), this.eventCursor);
1553
+ this.eventCursor = batch.sequence;
1554
+ return batch;
1555
+ }).finally(() => {
1556
+ this.eventRead = null;
1557
+ });
1558
+ return this.eventRead;
1559
+ }
1560
+ /** Nearest exact sphere/OBB hit. Origins inside a shape return distance zero and a zero normal. */
1561
+ raycast(query) {
1562
+ return this.runQuery(query);
1563
+ }
1564
+ /** Exact sphere overlap against selected sphere/OBB colliders, in collider-index order. */
1565
+ overlapSphere(query) {
1566
+ return this.runQuery(query);
1567
+ }
1568
+ async runQuery(query) {
1569
+ if (!this.device || !this.queryComputation || !this.querySettings || !this.querySelection || !this.queryOutput || this.destroyed || this.queryPending)
1570
+ throw new Error("Queries are disabled or busy");
1571
+ const ray = "origin" in query;
1572
+ const cast = ray && "radius" in query;
1573
+ const origin = ray ? query.origin : query.center;
1574
+ const direction = ray ? query.direction : [0, 0, 0];
1575
+ const length = Math.hypot(...direction);
1576
+ const maximumHits = ray ? 1 : query.maximumHits ?? this.colliderCount;
1577
+ if (cast && (!Number.isFinite(query.radius) || query.radius < 0) || origin.length !== 3 || !origin.every((value) => Number.isFinite(Math.fround(value))) || direction.length !== 3 || !direction.every(Number.isFinite) || (ray ? !Number.isFinite(length) || length === 0 || !Number.isFinite(query.maximumDistance) || query.maximumDistance < 0 : !Number.isFinite(query.radius) || query.radius < 0) || !Number.isInteger(maximumHits) || maximumHits < 0 || maximumHits > Math.max(1, this.colliderCount) || query.excludeBody !== void 0 && (!Number.isInteger(query.excludeBody) || query.excludeBody < 0 || query.excludeBody >= this.count))
1578
+ throw new Error("Invalid collision query");
1579
+ const selected = query.colliderIndices ?? Array.from({ length: this.colliderCount }, (_, index) => index);
1580
+ const selection = new Uint32Array(this.colliderStorageCount);
1581
+ for (const index of selected) {
1582
+ if (!Number.isInteger(index) || index < 0 || index >= this.colliderCount)
1583
+ throw new Error("Invalid query collider");
1584
+ const collider = this.colliders[index];
1585
+ if (collider.body === query.excludeBody)
1586
+ continue;
1587
+ selection[index] = 1;
1588
+ }
1589
+ this.queryPending = true;
1590
+ try {
1591
+ const data = new ArrayBuffer(48);
1592
+ new Float32Array(data).set([
1593
+ ...origin,
1594
+ ray ? cast ? query.radius : 0 : query.radius,
1595
+ ...direction.map((value) => ray ? value / length : 0),
1596
+ ray ? query.maximumDistance : 1e30
1597
+ ]);
1598
+ new Uint32Array(data).set([ray ? cast ? 2 : 0 : 1, maximumHits, 0, 0], 8);
1599
+ this.querySettings.write(new Uint8Array(data));
1600
+ this.querySelection.write(selection);
1601
+ const encoder = this.device.createCommandEncoder();
1602
+ const pass = encoder.beginComputePass();
1603
+ this.queryComputation.kernel.dispatch(pass, {
1604
+ bindings: this.queryComputation.bindings,
1605
+ x: Math.ceil(this.colliderStorageCount / 64)
1606
+ });
1607
+ this.queryReduction.kernel.dispatch(pass, { bindings: this.queryReduction.bindings, x: 1 });
1608
+ pass.end();
1609
+ this.device.submit(encoder.finish());
1610
+ const bytes = await this.queryOutput.readAsync(0, 16 + maximumHits * 48);
1611
+ const words = new Uint32Array(bytes.buffer, bytes.byteOffset, bytes.byteLength / 4);
1612
+ const floats = new Float32Array(bytes.buffer, bytes.byteOffset, bytes.byteLength / 4);
1613
+ const hits = Array.from({ length: words[0] }, (_, index) => {
1614
+ const offset = 4 + index * 12;
1615
+ return {
1616
+ body: words[offset],
1617
+ collider: words[offset + 1],
1618
+ point: [floats[offset + 4], floats[offset + 5], floats[offset + 6]],
1619
+ distance: floats[offset + 7],
1620
+ normal: [floats[offset + 8], floats[offset + 9], floats[offset + 10]]
1621
+ };
1622
+ });
1623
+ return {
1624
+ hits,
1625
+ totalHits: words[1],
1626
+ truncated: !ray && words[1] > words[0],
1627
+ complete: words[2] === 0
1628
+ };
1629
+ } finally {
1630
+ this.queryPending = false;
1631
+ }
1632
+ }
1633
+ /** Cast a sphere against selected collision surfaces using bounded conservative advancement. */
1634
+ castSphere(query) {
1635
+ return this.runQuery(query);
1636
+ }
1637
+ async readState() {
1638
+ if (!this.positions || !this.orientations || !this.velocities || !this.angularVelocities || !this.sleepStates || this.destroyed)
1639
+ throw new Error("Rigid-body world is not active");
1640
+ const arrays = await Promise.all([
1641
+ this.positions,
1642
+ this.orientations,
1643
+ this.velocities,
1644
+ this.angularVelocities,
1645
+ this.sleepStates
1646
+ ].map(async (buffer) => new Float32Array((await buffer.readAsync()).buffer)));
1647
+ return Array.from({ length: this.count }, (_, index) => {
1648
+ const offset = index * 4;
1649
+ return {
1650
+ position: [arrays[0][offset], arrays[0][offset + 1], arrays[0][offset + 2]],
1651
+ orientation: [
1652
+ arrays[1][offset],
1653
+ arrays[1][offset + 1],
1654
+ arrays[1][offset + 2],
1655
+ arrays[1][offset + 3]
1656
+ ],
1657
+ velocity: [arrays[2][offset], arrays[2][offset + 1], arrays[2][offset + 2]],
1658
+ angularVelocity: [arrays[3][offset], arrays[3][offset + 1], arrays[3][offset + 2]],
1659
+ sleeping: arrays[4][offset + 1] > 0.5
1660
+ };
1661
+ });
1662
+ }
1663
+ /** Read step-ordered trigger transitions without losing intermediate enter/exit changes. */
1664
+ readTriggerEvents() {
1665
+ if (!this.triggerEvents || this.destroyed)
1666
+ throw new Error("Triggers are disabled");
1667
+ if (this.triggerRead)
1668
+ return this.triggerRead;
1669
+ this.triggerRead = this.triggerEvents.readAsync().then((bytes) => {
1670
+ const batch = (0, import_rigid_body_triggers.decodeRigidBodyTriggerEvents)(new Uint32Array(bytes.buffer, bytes.byteOffset, bytes.byteLength / 4), this.triggerCursor);
1671
+ this.triggerCursor = batch.sequence;
1672
+ return batch;
1673
+ }).finally(() => {
1674
+ this.triggerRead = null;
1675
+ });
1676
+ return this.triggerRead;
1677
+ }
1678
+ getSnapshotBuffers(includeRollbackScratch = true) {
1679
+ return this.ownedBuffers.filter((buffer) => includeRollbackScratch || !buffer.id.startsWith(`${this.id}-checkpoint-`));
1680
+ }
1681
+ /** Reusable same-world GPU checkpoint; copies state without CPU pose or buffer readback. */
1682
+ createGPUCheckpoint(options = {}) {
1683
+ if (!this.device || this.destroyed)
1684
+ throw new Error("Checkpoint requires an attached world");
1685
+ const device = this.device;
1686
+ const checkpointBuffers = this.getSnapshotBuffers(options.includeRollbackScratch);
1687
+ const snapshots = [];
1688
+ let released = false;
1689
+ let saved = false;
1690
+ let origin = [...this.worldOrigin];
1691
+ let joints = structuredClone(this.props.joints);
1692
+ let bodyDefinitions = structuredClone(this.props.bodies);
1693
+ let contactCursor = 0;
1694
+ let triggerCursor = 0;
1695
+ try {
1696
+ for (const buffer of checkpointBuffers)
1697
+ snapshots.push(device.createBuffer({
1698
+ id: `${buffer.id}-recovery`,
1699
+ byteLength: buffer.byteLength,
1700
+ usage: import_core.Buffer.COPY_SRC | import_core.Buffer.COPY_DST
1701
+ }));
1702
+ } catch (error) {
1703
+ for (const buffer of snapshots)
1704
+ buffer.destroy();
1705
+ throw error;
1706
+ }
1707
+ const copy = (restore) => {
1708
+ if (released || this.destroyed || this.queryPending || this.eventRead || this.triggerRead)
1709
+ throw new Error("Checkpoint requires an idle live world");
1710
+ const encoder = device.createCommandEncoder();
1711
+ for (const [index, buffer] of checkpointBuffers.entries())
1712
+ encoder.copyBufferToBuffer({
1713
+ sourceBuffer: restore ? snapshots[index] : buffer,
1714
+ destinationBuffer: restore ? buffer : snapshots[index],
1715
+ size: buffer.byteLength
1716
+ });
1717
+ device.submit(encoder.finish());
1718
+ };
1719
+ let shapeScales = structuredClone(this.colliderShapeScales);
1720
+ let publicationBounds = structuredClone(this.props.publicationBounds);
1721
+ const checkpoint = {
1722
+ byteLength: snapshots.reduce((sum, buffer) => sum + buffer.byteLength, 0),
1723
+ save: () => {
1724
+ copy(false);
1725
+ origin = [...this.worldOrigin];
1726
+ joints = structuredClone(this.props.joints);
1727
+ bodyDefinitions = structuredClone(this.props.bodies);
1728
+ shapeScales = structuredClone(this.colliderShapeScales);
1729
+ publicationBounds = structuredClone(this.props.publicationBounds);
1730
+ contactCursor = this.eventCursor;
1731
+ triggerCursor = this.triggerCursor;
1732
+ saved = true;
1733
+ },
1734
+ restore: () => {
1735
+ if (!saved)
1736
+ throw new Error("Checkpoint has not been saved");
1737
+ copy(true);
1738
+ this.worldOrigin = [...origin];
1739
+ this.props.joints = structuredClone(joints);
1740
+ this.props.bodies = structuredClone(bodyDefinitions);
1741
+ this.restoreColliderDefinitions();
1742
+ this.colliderShapeScales = structuredClone(shapeScales);
1743
+ this.props.publicationBounds = structuredClone(publicationBounds);
1744
+ this.eventCursor = contactCursor;
1745
+ this.triggerCursor = triggerCursor;
1746
+ },
1747
+ destroy: () => {
1748
+ if (released)
1749
+ return;
1750
+ released = true;
1751
+ for (const buffer of snapshots)
1752
+ buffer.destroy();
1753
+ this.gpuCheckpoints.delete(checkpoint);
1754
+ }
1755
+ };
1756
+ this.gpuCheckpoints.add(checkpoint);
1757
+ return checkpoint;
1758
+ }
1759
+ /** Stop graph submissions and controls first; includes diagnostics, caches and event history. */
1760
+ async captureState(options = {}) {
1761
+ if (!this.device || this.destroyed || this.queryPending || this.eventRead || this.triggerRead)
1762
+ throw new Error("Capture requires an idle attached world");
1763
+ return {
1764
+ version: 1,
1765
+ origin: [...this.worldOrigin],
1766
+ includeRollbackScratch: options.includeRollbackScratch !== false,
1767
+ props: structuredClone(this.props),
1768
+ colliderShapeScales: structuredClone([...this.colliderShapeScales]),
1769
+ contactCursor: this.eventCursor,
1770
+ triggerCursor: this.triggerCursor,
1771
+ buffers: await Promise.all(this.getSnapshotBuffers(options.includeRollbackScratch).map(async (buffer) => ({
1772
+ name: buffer.id.slice(this.id.length + 1),
1773
+ data: new Uint8Array(await buffer.readAsync())
1774
+ })))
1775
+ };
1776
+ }
1777
+ /** Restore between submissions on the same configuration and implementation; no implicit wake. */
1778
+ restoreState(capture) {
1779
+ const checkpointBuffers = this.getSnapshotBuffers(capture.includeRollbackScratch);
1780
+ if (!this.device || this.destroyed || this.queryPending || this.eventRead || this.triggerRead || capture.version !== 1 || capture.origin !== void 0 && (capture.origin.length !== 3 || !capture.origin.every(Number.isFinite)) || capture.buffers.length !== checkpointBuffers.length || serializeCaptureProps(capture.props) !== serializeCaptureProps(this.props) || ![capture.contactCursor, capture.triggerCursor].every((value) => Number.isInteger(value) && value >= 0 && value <= 4294967295))
1781
+ throw new Error("Incompatible rigid-body capture");
1782
+ const shapeScales = new Map(capture.colliderShapeScales ?? []);
1783
+ for (const [index, scale] of shapeScales) {
1784
+ this.getColliderShape(index);
1785
+ if (scale.length !== 3 || scale.some((value) => !Number.isFinite(value) || value <= 0))
1786
+ throw new Error("Invalid captured collider scale");
1787
+ }
1788
+ for (const [index, buffer] of checkpointBuffers.entries()) {
1789
+ const saved = capture.buffers[index];
1790
+ if (saved.name !== buffer.id.slice(this.id.length + 1) || !(saved.data instanceof Uint8Array) || saved.data.byteLength !== buffer.byteLength)
1791
+ throw new Error("Incompatible rigid-body capture storage");
1792
+ }
1793
+ for (const [index, buffer] of checkpointBuffers.entries())
1794
+ buffer.write(capture.buffers[index].data);
1795
+ this.props.joints = structuredClone(capture.props.joints);
1796
+ this.props.bodies = structuredClone(capture.props.bodies);
1797
+ this.props.publicationBounds = structuredClone(capture.props.publicationBounds);
1798
+ this.restoreColliderDefinitions();
1799
+ this.colliderShapeScales = structuredClone(shapeScales);
1800
+ this.worldOrigin = [...capture.origin ?? [0, 0, 0]];
1801
+ this.eventCursor = capture.contactCursor;
1802
+ this.triggerCursor = capture.triggerCursor;
1803
+ }
1804
+ /** Stop submissions first. Reconstruct with these accepted poses and larger budgets after rollback. */
1805
+ async getRecoveryProps(overrides = {}) {
1806
+ if (this.props.failurePolicy !== "rollback")
1807
+ throw new Error("Recovery requires rollback");
1808
+ if (this.props.bodies.some((body) => body.mode === "kinematic"))
1809
+ throw new Error("Kinematic recovery requires explicit target replay");
1810
+ const states = await this.readState();
1811
+ return {
1812
+ ...structuredClone(this.props),
1813
+ ...overrides,
1814
+ bodies: this.props.bodies.map((body, index) => {
1815
+ const state = states[index];
1816
+ const offset = (0, import_rigid_body_properties.rotateRigidBodyVector)(state.orientation, body.centerOfMass ?? [0, 0, 0]);
1817
+ return {
1818
+ ...structuredClone(body),
1819
+ position: state.position.map((value, axis) => value - offset[axis]),
1820
+ orientation: state.orientation,
1821
+ velocity: state.velocity,
1822
+ angularVelocity: state.angularVelocity
1823
+ };
1824
+ })
1825
+ };
1826
+ }
1827
+ /** Optional bounded readback of the last convex CCD attempt; never needed for execution. */
1828
+ async readContinuousWork() {
1829
+ var _a;
1830
+ if (((_a = this.props.continuous) == null ? void 0 : _a.mode) !== "convex")
1831
+ return null;
1832
+ const buffer = this.ownedBuffers.find((buffer2) => buffer2.id === `${this.id}-continuous-status`);
1833
+ if (!buffer)
1834
+ return null;
1835
+ const bytes = await buffer.readAsync(0, 16);
1836
+ const values = new Uint32Array(bytes.buffer, bytes.byteOffset, 4);
1837
+ const work = this.ownedBuffers.find((buffer2) => buffer2.id === `${this.id}-continuous-work`);
1838
+ const statistics = await work.readAsync(16, 16);
1839
+ const spatial = new Uint32Array(statistics.buffer, statistics.byteOffset, 4);
1840
+ return {
1841
+ peakSpatialTests: spatial[1],
1842
+ rounds: spatial[2],
1843
+ candidateCapacity: this.props.continuous.maximumCandidates ?? this.maximumPairs,
1844
+ peakCandidates: values[3],
1845
+ peakCandidateWorkgroups: Math.ceil(Math.min(values[3], this.props.continuous.maximumCandidates ?? this.maximumPairs) / 64),
1846
+ impacts: values[2],
1847
+ incomplete: values[0] !== 0
1848
+ };
1849
+ }
1850
+ /** Optional diagnostic readback of the last parallel queue; never required for execution. */
1851
+ async readSolverWork() {
1852
+ if (!this.parallelState || this.destroyed)
1853
+ return null;
1854
+ const bytes = await this.parallelState.readAsync(0, 16);
1855
+ const counters = new Uint32Array(bytes.buffer, bytes.byteOffset, 4);
1856
+ const compacted = this.props.compactContacts !== false;
1857
+ return {
1858
+ compacted,
1859
+ activeContacts: compacted ? counters[1] : null,
1860
+ awakeBodies: compacted ? counters[2] : null,
1861
+ awakeContacts: compacted ? counters[3] : null,
1862
+ bodyWorkgroups: Math.ceil((compacted ? counters[2] : this.count) / 64),
1863
+ pairCapacity: this.maximumPairs,
1864
+ pairWorkgroups: Math.ceil((compacted ? counters[3] : this.maximumPairs) / 64)
1865
+ };
1866
+ }
1867
+ /** Lifetime counters, including failures in steps between diagnostic snapshots. */
1868
+ async readSimulationDiagnostics() {
1869
+ if (!this.simulationStatistics || this.destroyed)
1870
+ throw new Error("Rigid-body world is not active");
1871
+ return (0, import_rigid_body_diagnostics.decodeRigidBodySimulationDiagnostics)(new Uint32Array((await this.simulationStatistics.readAsync()).buffer));
1872
+ }
1873
+ /** Optional diagnostics readback; never required to advance simulation. */
1874
+ async readCollisionDiagnostics() {
1875
+ if (!this.manifolds || this.destroyed)
1876
+ throw new Error("Rigid-body world is not active");
1877
+ const tasks = this.meshTasks ? new Uint32Array((await this.meshTasks.readAsync(0, 16)).buffer) : new Uint32Array(4);
1878
+ const broadPhase = this.broadPhaseCounters ? (0, import_rigid_body_broad_phase.decodeRigidBodyBroadPhaseDiagnostics)(new Uint32Array((await this.broadPhaseCounters.buffer.readAsync(this.broadPhaseCounters.byteOffset, 32)).buffer)) : void 0;
1879
+ const droppedManifolds = this.broadPhase === "hierarchical-grid" ? new Uint32Array((await this.targets.readAsync(this.count * 32 + 16, 4)).buffer)[0] : 0;
1880
+ return {
1881
+ unresolvedQueries: tasks[2],
1882
+ triangleQueries: tasks[0],
1883
+ droppedTriangleQueries: tasks[1],
1884
+ incompleteMeshQueries: tasks[3],
1885
+ droppedManifolds,
1886
+ incompleteIslandUnions: this.parallelState ? new Uint32Array((await this.parallelState.readAsync(0, 4)).buffer)[0] : 0,
1887
+ broadPhase
1888
+ };
1889
+ }
1890
+ /** Destroy the compiled graph and finish readbacks before destroying its world. */
1891
+ destroy() {
1892
+ var _a, _b, _c, _d, _e;
1893
+ if (this.destroyed)
1894
+ return;
1895
+ (_a = this.ensembleReset) == null ? void 0 : _a.destroy();
1896
+ for (const checkpoint of this.gpuCheckpoints)
1897
+ checkpoint.destroy();
1898
+ this.destroyed = true;
1899
+ (_b = this.control) == null ? void 0 : _b.kernel.destroy();
1900
+ (_c = this.invalidation) == null ? void 0 : _c.kernel.destroy();
1901
+ (_d = this.queryComputation) == null ? void 0 : _d.kernel.destroy();
1902
+ (_e = this.queryReduction) == null ? void 0 : _e.kernel.destroy();
1903
+ for (const buffer of this.ownedBuffers)
1904
+ buffer.destroy();
1905
+ this.ownedBuffers.length = 0;
1906
+ }
1907
+ }
1908
+ function serializeCaptureProps(props) {
1909
+ var _a;
1910
+ return JSON.stringify({
1911
+ ...props,
1912
+ id: void 0,
1913
+ publicationBounds: props.publicationBounds ? props.publicationBounds.map(() => true) : void 0,
1914
+ bodies: props.bodies.map((body) => ({
1915
+ ...body,
1916
+ shape: void 0,
1917
+ colliders: (body.colliders ?? [{ shape: body.shape }]).map((collider) => {
1918
+ var _a2, _b, _c;
1919
+ return {
1920
+ ...collider,
1921
+ shape: ((_a2 = collider.shape) == null ? void 0 : _a2.type) === "convex-hull" || ((_b = collider.shape) == null ? void 0 : _b.type) === "triangle-mesh" ? collider.shape : { type: (_c = collider.shape) == null ? void 0 : _c.type },
1922
+ material: void 0,
1923
+ position: void 0,
1924
+ orientation: void 0
1925
+ };
1926
+ }),
1927
+ mode: void 0,
1928
+ mass: void 0,
1929
+ centerOfMass: void 0,
1930
+ inertiaDiagonal: void 0,
1931
+ inertiaOrientation: void 0,
1932
+ velocity: void 0,
1933
+ angularVelocity: void 0,
1934
+ gravityFactor: void 0
1935
+ })),
1936
+ joints: (_a = props.joints) == null ? void 0 : _a.map((joint) => ({
1937
+ type: joint.type,
1938
+ first: joint.first,
1939
+ second: joint.second,
1940
+ firstFrame: joint.firstFrame,
1941
+ secondFrame: joint.secondFrame
1942
+ }))
1943
+ }, (_key, value) => {
1944
+ if (!value || typeof value !== "object" || Array.isArray(value))
1945
+ return value;
1946
+ const record = value;
1947
+ return Object.fromEntries(Object.keys(record).sort().map((key) => [key, record[key]]));
1948
+ });
1949
+ }
1950
+ // Annotate the CommonJS export names for ESM import in node:
1951
+ 0 && (module.exports = {
1952
+ GPURigidBodyWorld
1953
+ });