@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,2526 @@
1
+ // luma.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
4
+
5
+ import {readGPUResourcePreview, type GPUResourcePreview} from './gpu-resource-preview';
6
+ import {Buffer, Texture} from '@luma.gl/core';
7
+ import type {
8
+ CommandEncoder,
9
+ ComputePass,
10
+ Device,
11
+ ExternalTexture,
12
+ Framebuffer,
13
+ QuerySet,
14
+ RenderPass,
15
+ TextureFormat,
16
+ TextureView
17
+ } from '@luma.gl/core';
18
+ import {DynamicBuffer, DynamicTexture} from '@luma.gl/core/dynamic';
19
+ import {
20
+ type GPUData,
21
+ type GPUVectorLike,
22
+ type GPUVectorFormat,
23
+ getGPUVectorFormatInfo,
24
+ isValueListGPUVectorFormat,
25
+ isVertexListGPUVectorFormat
26
+ } from '@luma.gl/gpgpu/gpu-data';
27
+ import {
28
+ compileGPUCommandGraph,
29
+ compileGPUCommandGraphAsync,
30
+ getBufferHandle,
31
+ getTextureHandle,
32
+ isGraphBufferUse,
33
+ isGraphTextureUse,
34
+ validateGraphNodeBufferBindingAliasing,
35
+ type BufferTransientAllocation,
36
+ type CompiledNode,
37
+ type GPUCommandGraphCompilation,
38
+ type TextureTransientAllocation
39
+ } from './gpu-command-graph-compiler';
40
+ import {
41
+ GraphBufferHandle,
42
+ GraphDataView,
43
+ GraphExternalTextureHandle,
44
+ GraphTextureHandle,
45
+ GraphTextureView,
46
+ GraphVectorView
47
+ } from './gpu-command-graph-types';
48
+ import {addGPUCommandNode, addGPUCommandNodes, type GPUNode} from './gpu-command-node';
49
+ import type {GPUCommandGraphAutotuner} from './gpu-command-graph-autotuner';
50
+
51
+ import type {
52
+ GPUCommandGraphComputeExecutable,
53
+ GPUCommandGraphComputeNode,
54
+ GPUCommandGraphCapabilities,
55
+ GPUCommandGraphCopyExecutable,
56
+ GPUCommandGraphCopyNode,
57
+ GPUCommandGraphEncodeContext,
58
+ GPUCommandGraphEncodeOptions,
59
+ GPUCommandGraphEncodingStats,
60
+ GPUCommandGraphNode,
61
+ GPUCommandGraphNodeEncodingStats,
62
+ GPUCommandGraphNodeTiming,
63
+ GPUCommandGraphNodePreflight,
64
+ GPUCommandGraphNodePublication,
65
+ GPUCommandGraphPreflightReport,
66
+ GPUCommandGraphRenderExecutable,
67
+ GPUCommandGraphRenderNode,
68
+ GPUCommandGraphStats,
69
+ GPUCommandGraphTimingReport,
70
+ GraphBufferDescriptor,
71
+ GraphBufferUsage,
72
+ GraphExternalTextureBinding,
73
+ GraphExternalTextureDescriptor,
74
+ GraphFrameTextureBinding,
75
+ GraphImportedBuffer,
76
+ GraphImportedTexture,
77
+ GraphRenderPassAttachments,
78
+ GraphTextureDescriptor,
79
+ GraphTextureUsage,
80
+ GraphTextureUse,
81
+ GraphTextureViewProps,
82
+ NormalizedGraphTextureDescriptor
83
+ } from './gpu-command-graph-types';
84
+
85
+ const UINT32_BYTE_LENGTH = 4;
86
+
87
+ export {
88
+ GraphBufferHandle,
89
+ GraphDataView,
90
+ GraphExternalTextureHandle,
91
+ GraphTextureHandle,
92
+ GraphTextureView,
93
+ GraphVectorView
94
+ } from './gpu-command-graph-types';
95
+ export type {
96
+ GPUCommandGraphCompileContext,
97
+ GPUCommandGraphCapabilities,
98
+ GPUCommandGraphCPUCondition,
99
+ GPUCommandGraphComputeExecutable,
100
+ GPUCommandGraphComputeNode,
101
+ GPUCommandGraphCopyExecutable,
102
+ GPUCommandGraphCopyNode,
103
+ GPUCommandGraphEncodeContext,
104
+ GPUCommandGraphEncodeOptions,
105
+ GPUCommandGraphGPUIndirectCondition,
106
+ GPUCommandGraphNode,
107
+ GPUCommandGraphNodeCondition,
108
+ GPUCommandGraphNodeConditionPreflight,
109
+ GPUCommandGraphNodeEncodingStats,
110
+ GPUCommandGraphNodePreflight,
111
+ GPUCommandGraphResourceSummary,
112
+ GPUCommandGraphNodePublication,
113
+ GPUCommandGraphNodeTiming,
114
+ GPUCommandGraphNodeType,
115
+ GPUCommandGraphNodeWorkloadEstimate,
116
+ GPUCommandGraphPreflightReport,
117
+ GPUCommandGraphRenderExecutable,
118
+ GPUCommandGraphRenderNode,
119
+ GPUCommandGraphStats,
120
+ GPUCommandGraphEncodingStats,
121
+ GPUCommandGraphTimingReport,
122
+ GraphBufferDescriptor,
123
+ GraphBufferUsage,
124
+ GraphBufferUse,
125
+ GraphExternalTextureBinding,
126
+ GraphExternalTextureDescriptor,
127
+ GraphExternalTextureUse,
128
+ GraphFrameTextureBinding,
129
+ GraphImportedBuffer,
130
+ GraphImportedTexture,
131
+ GraphRenderPassAttachments,
132
+ GraphResourceUse,
133
+ GraphTextureAspect,
134
+ GraphTextureDescriptor,
135
+ GraphTextureDimension,
136
+ GraphTextureUsage,
137
+ GraphTextureUse,
138
+ GraphTextureViewProps
139
+ } from './gpu-command-graph-types';
140
+
141
+ /** Per-submission limits for a resumable command-graph execution. */
142
+ export type GPUCommandGraphExecutionBudget = {
143
+ /** Maximum statically estimated shader invocations encoded in one step. */
144
+ maximumInvocationCount: number;
145
+ /** Optional hard cap on graph nodes encoded in one step. */
146
+ maximumNodeCount?: number;
147
+ /** Optional hard cap on commands encoded in one step. */
148
+ maximumCommandCount?: number;
149
+ /** Optional upper bound on bytes read by nodes encoded in one step. */
150
+ maximumReadByteLength?: number;
151
+ /** Optional upper bound on bytes written by nodes encoded in one step. */
152
+ maximumWriteByteLength?: number;
153
+ };
154
+
155
+ /** Scheduling urgency attached to a resumable graph invocation. */
156
+ export type GPUCommandGraphExecutionLatencyPriority = 'interactive' | 'normal' | 'background';
157
+
158
+ /** Whether intermediate coherent-result boundaries should become separate publication steps. */
159
+ export type GPUCommandGraphExecutionPublicationPolicy = 'final' | 'progressive';
160
+
161
+ /** Scheduling policy for one immutable resumable execution plan. */
162
+ export type GPUCommandGraphExecutionOptions = {
163
+ /** Urgency exposed to application schedulers and adaptive budget controllers. Default `normal`. */
164
+ latencyPriority?: GPUCommandGraphExecutionLatencyPriority;
165
+ /** Whether declared intermediate result boundaries should be surfaced. Default `final`. */
166
+ publicationPolicy?: GPUCommandGraphExecutionPublicationPolicy;
167
+ };
168
+
169
+ /** Static workload totals for one dependency-ordered execution-plan step. */
170
+ export type GPUCommandGraphExecutionPlanStep = {
171
+ /** Zero-based step index. */
172
+ stepIndex: number;
173
+ /** First scheduled node included in this step. */
174
+ firstNodeIndex: number;
175
+ /** Scheduled node index immediately after this step. */
176
+ nextNodeIndex: number;
177
+ /** Number of scheduled nodes included in this step. */
178
+ nodeCount: number;
179
+ /** Sum of direct and indirect commands annotated for this step. */
180
+ commandCount: number;
181
+ /** Sum of static shader-invocation bounds for this step. */
182
+ maximumInvocationCount: number;
183
+ /** Sum of static read-byte bounds for this step. */
184
+ readByteLength: number;
185
+ /** Sum of static write-byte bounds for this step. */
186
+ writeByteLength: number;
187
+ /** Number of conditionally executed nodes in this step. */
188
+ conditionalNodeCount: number;
189
+ /** Whether one indivisible node exceeds at least one requested budget. */
190
+ exceedsBudget: boolean;
191
+ /** Scheduling urgency inherited from the execution plan. */
192
+ latencyPriority: GPUCommandGraphExecutionLatencyPriority;
193
+ /** Coherent results that become safe after this step completes on the GPU queue. */
194
+ publications: readonly Readonly<GPUCommandGraphNodePublication>[];
195
+ /** Whether an application may publish new results after this step completes. */
196
+ publishable: boolean;
197
+ };
198
+
199
+ /** Immutable dry-run plan for one resumable graph invocation. */
200
+ export type GPUCommandGraphExecutionPlan = {
201
+ /** Total number of scheduled nodes. */
202
+ nodeCount: number;
203
+ /** Number of nodes carrying at least one workload estimate. */
204
+ annotatedNodeCount: number;
205
+ /** Number of nodes controlled by CPU or GPU state. */
206
+ conditionalNodeCount: number;
207
+ /** Number of bounded queue submissions required by the static plan. */
208
+ stepCount: number;
209
+ /** Sum of commands across the complete graph. */
210
+ commandCount: number;
211
+ /** Sum of shader-invocation upper bounds across the complete graph. */
212
+ maximumInvocationCount: number;
213
+ /** Sum of read-byte upper bounds across the complete graph. */
214
+ readByteLength: number;
215
+ /** Sum of write-byte upper bounds across the complete graph. */
216
+ writeByteLength: number;
217
+ /** Number of indivisible steps exceeding at least one requested budget. */
218
+ oversizedStepCount: number;
219
+ /** Scheduling urgency attached to every step. */
220
+ latencyPriority: GPUCommandGraphExecutionLatencyPriority;
221
+ /** Intermediate-result publication policy used to create this plan. */
222
+ publicationPolicy: GPUCommandGraphExecutionPublicationPolicy;
223
+ /** Number of declared coherent results surfaced by planned steps. */
224
+ publicationCount: number;
225
+ /** Dependency-ordered submission steps. */
226
+ steps: readonly Readonly<GPUCommandGraphExecutionPlanStep>[];
227
+ };
228
+
229
+ /** Result of encoding one bounded step of a resumable command-graph execution. */
230
+ export type GPUCommandGraphExecutionStep = GPUCommandGraphExecutionPlanStep & {
231
+ /** Encoding statistics for the nodes recorded by this step. */
232
+ encoding: GPUCommandGraphEncoding;
233
+ /** Fraction of scheduled nodes encoded so far. */
234
+ progress: number;
235
+ /** Whether every graph node has now been encoded exactly once. */
236
+ completed: boolean;
237
+ /** Fraction of planned submissions covered by the most recent safe publication. */
238
+ publishedProgress: number;
239
+ };
240
+
241
+ type EncodeGPUCommandGraphNodeRange<Parameters> = (
242
+ commandEncoder: CommandEncoder,
243
+ options: GPUCommandGraphEncodeOptions<Parameters>,
244
+ firstNodeIndex: number,
245
+ nextNodeIndex: number
246
+ ) => GPUCommandGraphEncoding;
247
+
248
+ /**
249
+ * Cursor over one dependency-ordered graph execution.
250
+ *
251
+ * Each call records a contiguous node range whose annotated invocation bounds fit the requested
252
+ * budget. A node remains atomic, so operations opt into finer scheduling by contributing bounded
253
+ * partition nodes. Submitting steps to the same device queue preserves graph order across frames.
254
+ */
255
+ export class GPUCommandGraphExecution<Parameters = void> {
256
+ /** Total number of scheduled graph nodes in this execution. */
257
+ readonly nodeCount: number;
258
+ /** Per-step scheduling budget. */
259
+ readonly budget: Readonly<GPUCommandGraphExecutionBudget>;
260
+ /** Immutable dry-run plan used by this execution. */
261
+ readonly plan: Readonly<GPUCommandGraphExecutionPlan>;
262
+
263
+ private readonly encodeNodeRange: EncodeGPUCommandGraphNodeRange<Parameters>;
264
+ private nextStepIndex = 0;
265
+ private currentPublishedProgress = 0;
266
+
267
+ /** @internal */
268
+ constructor(props: {
269
+ plan: GPUCommandGraphExecutionPlan;
270
+ budget: GPUCommandGraphExecutionBudget;
271
+ encodeNodeRange: EncodeGPUCommandGraphNodeRange<Parameters>;
272
+ }) {
273
+ validateGPUCommandGraphExecutionBudget(props.budget);
274
+ this.plan = props.plan;
275
+ this.nodeCount = props.plan.nodeCount;
276
+ this.budget = Object.freeze({...props.budget});
277
+ this.encodeNodeRange = props.encodeNodeRange;
278
+ }
279
+
280
+ /** Whether every scheduled node has been encoded. */
281
+ get completed(): boolean {
282
+ return this.nextStepIndex >= this.plan.stepCount;
283
+ }
284
+
285
+ /** Fraction of scheduled nodes already encoded. */
286
+ get progress(): number {
287
+ return this.plan.stepCount === 0 ? 1 : this.nextStepIndex / this.plan.stepCount;
288
+ }
289
+
290
+ /** Fraction of planned submissions whose results have reached a declared safe boundary. */
291
+ get publishedProgress(): number {
292
+ return this.currentPublishedProgress;
293
+ }
294
+
295
+ /** Records the next dependency-ordered step without finishing or submitting its encoder. */
296
+ encodeNext(
297
+ commandEncoder: CommandEncoder,
298
+ options: GPUCommandGraphEncodeOptions<Parameters>
299
+ ): GPUCommandGraphExecutionStep {
300
+ if (this.completed) {
301
+ throw new Error('GPUCommandGraph execution has already completed');
302
+ }
303
+ const plannedStep = this.plan.steps[this.nextStepIndex];
304
+ const encoding = this.encodeNodeRange(
305
+ commandEncoder,
306
+ options,
307
+ plannedStep.firstNodeIndex,
308
+ plannedStep.nextNodeIndex
309
+ );
310
+ this.nextStepIndex++;
311
+ if (plannedStep.publishable) this.currentPublishedProgress = this.progress;
312
+ return {
313
+ ...plannedStep,
314
+ encoding,
315
+ progress: this.progress,
316
+ completed: this.completed,
317
+ publishedProgress: this.publishedProgress
318
+ };
319
+ }
320
+ }
321
+
322
+ type GPUCommandGraphExecutionCost = {
323
+ nodeCount: number;
324
+ commandCount: number;
325
+ maximumInvocationCount: number;
326
+ readByteLength: number;
327
+ writeByteLength: number;
328
+ conditionalNodeCount: number;
329
+ };
330
+
331
+ /** Creates a device-independent bounded-submission plan from one compiled graph preflight. */
332
+ export function getGPUCommandGraphExecutionPlan(
333
+ preflight: Pick<GPUCommandGraphPreflightReport, 'nodes' | 'annotatedNodeCount'>,
334
+ budget: GPUCommandGraphExecutionBudget,
335
+ options: GPUCommandGraphExecutionOptions = {}
336
+ ): GPUCommandGraphExecutionPlan {
337
+ validateGPUCommandGraphExecutionBudget(budget);
338
+ const latencyPriority = options.latencyPriority ?? 'normal';
339
+ const publicationPolicy = options.publicationPolicy ?? 'final';
340
+ if (!['interactive', 'normal', 'background'].includes(latencyPriority)) {
341
+ throw new Error(`GPUCommandGraph execution latency priority "${latencyPriority}" is invalid`);
342
+ }
343
+ if (!['final', 'progressive'].includes(publicationPolicy)) {
344
+ throw new Error(
345
+ `GPUCommandGraph execution publication policy "${publicationPolicy}" is invalid`
346
+ );
347
+ }
348
+ const nodes = preflight.nodes;
349
+ const steps: Readonly<GPUCommandGraphExecutionPlanStep>[] = [];
350
+ let nextNodeIndex = 0;
351
+ while (nextNodeIndex < nodes.length) {
352
+ const firstNodeIndex = nextNodeIndex;
353
+ let cost = getEmptyGPUCommandGraphExecutionCost();
354
+ while (nextNodeIndex < nodes.length) {
355
+ const nextCost = addGPUCommandGraphExecutionCost(cost, nodes[nextNodeIndex]);
356
+ if (
357
+ nextNodeIndex > firstNodeIndex &&
358
+ exceedsGPUCommandGraphExecutionBudget(nextCost, budget)
359
+ ) {
360
+ break;
361
+ }
362
+ cost = nextCost;
363
+ nextNodeIndex++;
364
+ if (publicationPolicy === 'progressive' && nodes[nextNodeIndex - 1].publication) break;
365
+ if (reachesGPUCommandGraphExecutionBudget(cost, budget)) break;
366
+ }
367
+ const publications =
368
+ publicationPolicy === 'progressive'
369
+ ? Object.freeze(
370
+ nodes
371
+ .slice(firstNodeIndex, nextNodeIndex)
372
+ .flatMap(node => (node.publication ? [node.publication] : []))
373
+ )
374
+ : Object.freeze([] as Readonly<GPUCommandGraphNodePublication>[]);
375
+ const completed = nextNodeIndex === nodes.length;
376
+ steps.push(
377
+ Object.freeze({
378
+ stepIndex: steps.length,
379
+ firstNodeIndex,
380
+ nextNodeIndex,
381
+ ...cost,
382
+ exceedsBudget: exceedsGPUCommandGraphExecutionBudget(cost, budget),
383
+ latencyPriority,
384
+ publications,
385
+ publishable: completed || publications.length > 0
386
+ })
387
+ );
388
+ }
389
+ const totalCost = nodes.reduce(
390
+ (cost, node) => addGPUCommandGraphExecutionCost(cost, node),
391
+ getEmptyGPUCommandGraphExecutionCost()
392
+ );
393
+ return Object.freeze({
394
+ ...totalCost,
395
+ annotatedNodeCount: preflight.annotatedNodeCount,
396
+ stepCount: steps.length,
397
+ oversizedStepCount: steps.filter(step => step.exceedsBudget).length,
398
+ latencyPriority,
399
+ publicationPolicy,
400
+ publicationCount: steps.reduce((count, step) => count + step.publications.length, 0),
401
+ steps: Object.freeze(steps)
402
+ });
403
+ }
404
+
405
+ function getEmptyGPUCommandGraphExecutionCost(): GPUCommandGraphExecutionCost {
406
+ return {
407
+ nodeCount: 0,
408
+ commandCount: 0,
409
+ maximumInvocationCount: 0,
410
+ readByteLength: 0,
411
+ writeByteLength: 0,
412
+ conditionalNodeCount: 0
413
+ };
414
+ }
415
+
416
+ function addGPUCommandGraphExecutionCost(
417
+ cost: GPUCommandGraphExecutionCost,
418
+ node: GPUCommandGraphNodePreflight
419
+ ): GPUCommandGraphExecutionCost {
420
+ return {
421
+ nodeCount: cost.nodeCount + 1,
422
+ commandCount: cost.commandCount + node.commandCount,
423
+ maximumInvocationCount: cost.maximumInvocationCount + node.maximumInvocationCount,
424
+ readByteLength: cost.readByteLength + node.readByteLength,
425
+ writeByteLength: cost.writeByteLength + node.writeByteLength,
426
+ conditionalNodeCount: cost.conditionalNodeCount + (node.condition ? 1 : 0)
427
+ };
428
+ }
429
+
430
+ function exceedsGPUCommandGraphExecutionBudget(
431
+ cost: GPUCommandGraphExecutionCost,
432
+ budget: GPUCommandGraphExecutionBudget
433
+ ): boolean {
434
+ return (
435
+ cost.maximumInvocationCount > budget.maximumInvocationCount ||
436
+ (budget.maximumNodeCount !== undefined && cost.nodeCount > budget.maximumNodeCount) ||
437
+ (budget.maximumCommandCount !== undefined && cost.commandCount > budget.maximumCommandCount) ||
438
+ (budget.maximumReadByteLength !== undefined &&
439
+ cost.readByteLength > budget.maximumReadByteLength) ||
440
+ (budget.maximumWriteByteLength !== undefined &&
441
+ cost.writeByteLength > budget.maximumWriteByteLength)
442
+ );
443
+ }
444
+
445
+ function reachesGPUCommandGraphExecutionBudget(
446
+ cost: GPUCommandGraphExecutionCost,
447
+ budget: GPUCommandGraphExecutionBudget
448
+ ): boolean {
449
+ return (
450
+ cost.maximumInvocationCount >= budget.maximumInvocationCount ||
451
+ (budget.maximumNodeCount !== undefined && cost.nodeCount >= budget.maximumNodeCount) ||
452
+ (budget.maximumCommandCount !== undefined && cost.commandCount >= budget.maximumCommandCount) ||
453
+ (budget.maximumReadByteLength !== undefined &&
454
+ cost.readByteLength >= budget.maximumReadByteLength) ||
455
+ (budget.maximumWriteByteLength !== undefined &&
456
+ cost.writeByteLength >= budget.maximumWriteByteLength)
457
+ );
458
+ }
459
+
460
+ function validateGPUCommandGraphExecutionBudget(budget: GPUCommandGraphExecutionBudget): void {
461
+ const limits = [
462
+ ['maximumInvocationCount', budget.maximumInvocationCount],
463
+ ['maximumNodeCount', budget.maximumNodeCount],
464
+ ['maximumCommandCount', budget.maximumCommandCount],
465
+ ['maximumReadByteLength', budget.maximumReadByteLength],
466
+ ['maximumWriteByteLength', budget.maximumWriteByteLength]
467
+ ] as const;
468
+ for (const [name, value] of limits) {
469
+ if (value !== undefined && (!Number.isSafeInteger(value) || value <= 0)) {
470
+ throw new Error(`GPUCommandGraph execution ${name} must be a positive safe integer`);
471
+ }
472
+ }
473
+ }
474
+
475
+ type CachedTextureView = {
476
+ logicalView: GraphTextureView;
477
+ texture: Texture;
478
+ view: TextureView;
479
+ frameId?: number;
480
+ };
481
+
482
+ type CachedFramebuffer = {
483
+ nodeId: string;
484
+ colorAttachments: TextureView[];
485
+ depthStencilAttachment?: TextureView;
486
+ framebuffer: Framebuffer;
487
+ };
488
+
489
+ type GPUCommandGraphNodeTimestamp = {
490
+ querySet: QuerySet;
491
+ snapshot?: ReturnType<NonNullable<CommandEncoder['captureTimestampQuerySet']>>;
492
+ beginIndex: number;
493
+ endIndex: number;
494
+ };
495
+
496
+ type EncodedGPUCommandGraphNode = {
497
+ stats: GPUCommandGraphNodeEncodingStats;
498
+ timestamp?: GPUCommandGraphNodeTimestamp;
499
+ };
500
+
501
+ type GPUIndirectConditionalComputePass = {
502
+ computePass: ComputePass;
503
+ assertDispatched: () => void;
504
+ };
505
+
506
+ /** Redirects one direct dispatch to a GPU-written indirect command without exposing a fake skip. */
507
+ function makeGPUIndirectConditionalComputePass(
508
+ computePass: ComputePass,
509
+ indirectBuffer: Buffer,
510
+ indirectByteOffset: number,
511
+ nodeId: string
512
+ ): GPUIndirectConditionalComputePass {
513
+ let dispatchCount = 0;
514
+ const conditionalPass = new Proxy(computePass, {
515
+ get(target, property) {
516
+ if (property === 'dispatch') {
517
+ return () => {
518
+ if (dispatchCount > 0) {
519
+ throw new Error(
520
+ `GPUCommandGraph GPU-conditional compute node "${nodeId}" must encode exactly one dispatch`
521
+ );
522
+ }
523
+ dispatchCount++;
524
+ target.dispatchIndirect(indirectBuffer, indirectByteOffset);
525
+ };
526
+ }
527
+ if (property === 'dispatchIndirect') {
528
+ return () => {
529
+ throw new Error(
530
+ `GPUCommandGraph GPU-conditional compute node "${nodeId}" must use dispatch(); the graph supplies its indirect command`
531
+ );
532
+ };
533
+ }
534
+ const value = Reflect.get(target, property, target);
535
+ return typeof value === 'function' ? value.bind(target) : value;
536
+ }
537
+ });
538
+ return {
539
+ computePass: conditionalPass,
540
+ assertDispatched: () => {
541
+ if (dispatchCount !== 1) {
542
+ throw new Error(
543
+ `GPUCommandGraph GPU-conditional compute node "${nodeId}" must encode exactly one dispatch`
544
+ );
545
+ }
546
+ }
547
+ };
548
+ }
549
+
550
+ /**
551
+ * Synchronous encoding statistics plus optional explicit GPU timing readback.
552
+ *
553
+ * Creating this result never maps a buffer, submits commands, or waits for the GPU. Call
554
+ * `readTimings()` and `readResource()` only after the caller submits the encoded command buffer.
555
+ * Resource reads inspect current allocations and may submit separate diagnostic copies.
556
+ */
557
+ export class GPUCommandGraphEncoding {
558
+ /** CPU encoding statistics available immediately after `encode()`. */
559
+ readonly stats: GPUCommandGraphEncodingStats;
560
+ /** Whether at least one render or compute node recorded a GPU timestamp pair. */
561
+ readonly canReadGPUTimings: boolean;
562
+
563
+ private readonly nodes: EncodedGPUCommandGraphNode[];
564
+
565
+ /** @internal */
566
+ constructor(
567
+ nodes: EncodedGPUCommandGraphNode[],
568
+ cpuEncodeTimeMilliseconds: number,
569
+ computePassCount = nodes.filter(
570
+ node => node.stats.type === 'compute' && node.stats.condition?.outcome !== 'skipped'
571
+ ).length,
572
+ cpuEncodeStartTimeMilliseconds?: number,
573
+ cpuEncodeEndTimeMilliseconds?: number,
574
+ readonly readResource?: (nodeId: string, resourceIndex: number) => Promise<GPUResourcePreview>
575
+ ) {
576
+ this.nodes = nodes;
577
+ this.canReadGPUTimings = nodes.some(node => node.timestamp !== undefined);
578
+ const executedNodes = nodes.filter(node => node.stats.condition?.outcome !== 'skipped');
579
+ const computeNodeCount = executedNodes.filter(node => node.stats.type === 'compute').length;
580
+ this.stats = {
581
+ cpuEncodeTimeMilliseconds,
582
+ cpuEncodeStartTimeMilliseconds,
583
+ cpuEncodeEndTimeMilliseconds,
584
+ nodeCount: executedNodes.length,
585
+ skippedNodeCount: nodes.length - executedNodes.length,
586
+ computePassCount,
587
+ coalescedComputeNodeCount: computeNodeCount - computePassCount,
588
+ timestampedNodeCount: nodes.filter(node => node.timestamp !== undefined).length,
589
+ nodes: nodes.map(node => node.stats)
590
+ };
591
+ }
592
+
593
+ /**
594
+ * Explicitly reads available per-pass GPU timestamp pairs after submission.
595
+ *
596
+ * Copy nodes currently report CPU encoding cost only because the portable command-encoder API
597
+ * does not expose standalone timestamp writes.
598
+ */
599
+ async readTimings(): Promise<GPUCommandGraphTimingReport> {
600
+ const nodes: GPUCommandGraphNodeTiming[] = await Promise.all(
601
+ this.nodes.map(async ({stats, timestamp}) => {
602
+ if (!timestamp) {
603
+ return {...stats};
604
+ }
605
+ const {querySet, snapshot, beginIndex, endIndex} = timestamp;
606
+ if (querySet.device.type !== 'webgpu') {
607
+ return {
608
+ ...stats,
609
+ gpuTimeMilliseconds: await querySet.readTimestampDuration(beginIndex, endIndex)
610
+ };
611
+ }
612
+ const results = await (snapshot ?? querySet).readResults({
613
+ firstQuery: beginIndex,
614
+ queryCount: endIndex - beginIndex + 1
615
+ });
616
+ const startTime = results[0];
617
+ const endTime = results[results.length - 1];
618
+ return {
619
+ ...stats,
620
+ gpuStartTimeMilliseconds: Number(startTime) / 1e6,
621
+ gpuEndTimeMilliseconds: Number(endTime) / 1e6,
622
+ gpuTimeMilliseconds: Number(endTime - startTime) / 1e6
623
+ };
624
+ })
625
+ );
626
+ const timestampedNodes = nodes.filter(node => node.gpuTimeMilliseconds !== undefined);
627
+ const spans = nodes.filter(node => node.gpuStartTimeMilliseconds !== undefined);
628
+ const correlations = this.nodes.flatMap(node =>
629
+ node.timestamp?.snapshot?.clockCorrelation ? [node.timestamp.snapshot.clockCorrelation] : []
630
+ );
631
+ const clockCorrelation = correlations.sort(
632
+ (first, second) => first.uncertaintyMilliseconds - second.uncertaintyMilliseconds
633
+ )[0];
634
+ return {
635
+ ...(clockCorrelation ? {clockCorrelation} : {}),
636
+ cpuEncodeStartTimeMilliseconds: this.stats.cpuEncodeStartTimeMilliseconds,
637
+ cpuEncodeEndTimeMilliseconds: this.stats.cpuEncodeEndTimeMilliseconds,
638
+ ...(spans.length > 0
639
+ ? {
640
+ gpuStartTimeMilliseconds: Math.min(
641
+ ...spans.map(node => node.gpuStartTimeMilliseconds!)
642
+ ),
643
+ gpuEndTimeMilliseconds: Math.max(...spans.map(node => node.gpuEndTimeMilliseconds!))
644
+ }
645
+ : {}),
646
+ cpuEncodeTimeMilliseconds: this.stats.cpuEncodeTimeMilliseconds,
647
+ ...(timestampedNodes.length > 0
648
+ ? {
649
+ gpuTimeMilliseconds: timestampedNodes.reduce(
650
+ (total, node) => total + (node.gpuTimeMilliseconds ?? 0),
651
+ 0
652
+ )
653
+ }
654
+ : {}),
655
+ nodes
656
+ };
657
+ }
658
+ }
659
+
660
+ /**
661
+ * Declarative WebGPU command graph with explicit resource access and ownership.
662
+ *
663
+ * The graph compiles resource hazards, transient lifetimes, and node resources,
664
+ * but encoding and submission remain controlled by the application.
665
+ */
666
+ export class GPUCommandGraph<Parameters = void> {
667
+ /** WebGPU device that owns compilation and transient resources. */
668
+ readonly device: Device;
669
+ /** Identifier used as a prefix for graph-owned GPU resources. */
670
+ readonly id: string;
671
+ /** Optional adapter-local equivalent-kernel selector shared by graph contributors. */
672
+ readonly autotuner?: GPUCommandGraphAutotuner;
673
+
674
+ private readonly buffers = new Map<string, GraphBufferHandle>();
675
+ private readonly textures = new Map<string, GraphTextureHandle>();
676
+ private readonly externalTextures = new Map<string, GraphExternalTextureHandle>();
677
+ private readonly importedBufferHandles = new Map<Buffer, GraphBufferHandle>();
678
+ private readonly dynamicBufferHandles = new Map<DynamicBuffer, GraphBufferHandle>();
679
+ private readonly nodes: GPUCommandGraphNode<Parameters>[] = [];
680
+ private readonly nodeIds = new Set<string>();
681
+ private compiled = false;
682
+
683
+ /**
684
+ * Creates a mutable graph definition.
685
+ *
686
+ * @param device WebGPU device used to compile and execute the graph.
687
+ * @param props Optional graph identity and generic adaptive-kernel selector.
688
+ * @throws If `device` is not a WebGPU device.
689
+ */
690
+ constructor(device: Device, props: {id?: string; autotuner?: GPUCommandGraphAutotuner} = {}) {
691
+ if (device.type !== 'webgpu') {
692
+ throw new Error('GPUCommandGraph requires a WebGPU device');
693
+ }
694
+ assertDeviceAvailable(device, 'construction');
695
+ this.device = device;
696
+ this.id = props.id ?? 'gpu-command-graph';
697
+ this.autotuner = props.autotuner;
698
+ }
699
+
700
+ /**
701
+ * Declares a caller-owned buffer that can be supplied now or for each encoding.
702
+ *
703
+ * Represent one physical buffer with one logical handle whenever a graph access may write to
704
+ * it. Distinct active imported handles may share a physical buffer only when every graph access
705
+ * is read-only because write hazards are tracked by handle identity.
706
+ *
707
+ * @param descriptor Required capacity and usage.
708
+ * @param defaultBuffer Optional default binding used when an encoding supplies no override.
709
+ * @returns An opaque logical handle used by graph nodes and data views.
710
+ */
711
+ importBuffer(
712
+ descriptor: GraphBufferDescriptor,
713
+ defaultBuffer?: GraphImportedBuffer
714
+ ): GraphBufferHandle {
715
+ this.assertMutable();
716
+ validateGraphBufferDescriptor(descriptor, this.device);
717
+ if (defaultBuffer) {
718
+ validateImportedBuffer(defaultBuffer, descriptor, this.device);
719
+ }
720
+ const handle = this.addBuffer(new GraphBufferHandle(this, descriptor, false, defaultBuffer));
721
+ if (defaultBuffer) {
722
+ const coreBuffer = getCoreBuffer(defaultBuffer);
723
+ if (!this.importedBufferHandles.has(coreBuffer)) {
724
+ this.importedBufferHandles.set(coreBuffer, handle);
725
+ }
726
+ if (defaultBuffer instanceof DynamicBuffer && !this.dynamicBufferHandles.has(defaultBuffer)) {
727
+ this.dynamicBufferHandles.set(defaultBuffer, handle);
728
+ }
729
+ }
730
+ return handle;
731
+ }
732
+
733
+ /**
734
+ * Declares one graph-owned scratch buffer.
735
+ *
736
+ * Compatible transient buffers with disjoint compiled lifetimes may share a physical allocation.
737
+ */
738
+ createTransientBuffer(descriptor: GraphBufferDescriptor): GraphBufferHandle {
739
+ this.assertMutable();
740
+ validateGraphBufferDescriptor(descriptor, this.device);
741
+ return this.addBuffer(new GraphBufferHandle(this, descriptor, true));
742
+ }
743
+
744
+ /**
745
+ * Creates one typed range over a graph buffer.
746
+ *
747
+ * The view is non-owning. Its layout is validated against the logical buffer capacity.
748
+ */
749
+ createDataView<T extends GPUVectorFormat>(
750
+ buffer: GraphBufferHandle,
751
+ props: {
752
+ format: T;
753
+ length: number;
754
+ byteOffset?: number;
755
+ byteStride?: number;
756
+ rowByteLength?: number;
757
+ }
758
+ ): GraphDataView<T> {
759
+ this.assertBuffer(buffer);
760
+ const formatInfo = getGPUVectorFormatInfo(props.format);
761
+ const byteOffset = props.byteOffset ?? 0;
762
+ const rowByteLength = props.rowByteLength ?? formatInfo.byteLength;
763
+ const byteStride = props.byteStride ?? rowByteLength;
764
+ validateGraphDataView(buffer, {
765
+ length: props.length,
766
+ byteOffset,
767
+ byteStride,
768
+ rowByteLength
769
+ });
770
+ return new GraphDataView(buffer, {
771
+ format: props.format,
772
+ length: props.length,
773
+ byteOffset,
774
+ byteStride,
775
+ rowByteLength
776
+ });
777
+ }
778
+
779
+ /**
780
+ * Imports one borrowed `GPUData` chunk and returns a typed view preserving its layout.
781
+ *
782
+ * The graph never destroys the imported buffer.
783
+ */
784
+ importGPUData<T extends GPUVectorFormat>(id: string, data: GPUData<T>): GraphDataView<T> {
785
+ return this.importGPUDataView(id, data);
786
+ }
787
+
788
+ /**
789
+ * Imports all chunks of one fixed-width `GPUVector` without packing them.
790
+ *
791
+ * Shared physical buffers map to one graph handle while each chunk retains its own offset and
792
+ * layout. Interleaved and variable-length vectors are rejected.
793
+ */
794
+ importGPUVector<T extends GPUVectorFormat>(
795
+ id: string,
796
+ vector: GPUVectorLike<T>
797
+ ): GraphVectorView<T> {
798
+ if (vector.bufferLayout) {
799
+ throw new Error(`GPUCommandGraph import "${id}" does not accept interleaved GPUVector data`);
800
+ }
801
+ const format = vector.format ?? vector.data[0]?.format;
802
+ if (!format) {
803
+ throw new Error(`GPUCommandGraph import "${id}" requires GPUVector.format`);
804
+ }
805
+ if (isVertexListGPUVectorFormat(format) || isValueListGPUVectorFormat(format)) {
806
+ throw new Error(`GPUCommandGraph import "${id}" requires a fixed-width GPUVector format`);
807
+ }
808
+ const formatInfo = getGPUVectorFormatInfo(format);
809
+ const data = vector.data.map((chunk, chunkIndex) => {
810
+ if (chunk.format !== format) {
811
+ throw new Error(`GPUCommandGraph import "${id}" requires matching GPUVector chunk formats`);
812
+ }
813
+ const chunkId = vector.data.length === 1 ? id : `${id}-chunk-${chunkIndex}`;
814
+ return this.importGPUDataView(chunkId, chunk);
815
+ });
816
+ return new GraphVectorView({
817
+ id,
818
+ name: vector.name ?? id,
819
+ format,
820
+ length: vector.length,
821
+ valueLength:
822
+ vector.valueLength ?? vector.data.reduce((sum, chunk) => sum + chunk.valueLength, 0),
823
+ stride:
824
+ vector.stride ??
825
+ vector.data[0]?.stride ??
826
+ formatInfo.components * (formatInfo.listSize ?? 1),
827
+ byteStride: vector.byteStride ?? data[0]?.byteStride ?? formatInfo.byteLength,
828
+ rowByteLength: vector.rowByteLength ?? data[0]?.rowByteLength ?? formatInfo.byteLength,
829
+ data
830
+ });
831
+ }
832
+
833
+ /**
834
+ * Declares a caller-owned fixed-size texture supplied now or while encoding.
835
+ *
836
+ * Replacements must exactly match format, dimension, extent, mip count, and sample count.
837
+ */
838
+ importTexture<Format extends TextureFormat>(
839
+ descriptor: GraphTextureDescriptor<Format>,
840
+ defaultTexture?: GraphImportedTexture
841
+ ): GraphTextureHandle<Format> {
842
+ this.assertMutable();
843
+ const normalizedDescriptor = normalizeGraphTextureDescriptor(descriptor, this.device);
844
+ if (defaultTexture) {
845
+ validateImportedTexture(defaultTexture, normalizedDescriptor, this.device);
846
+ }
847
+ return this.addTexture(
848
+ new GraphTextureHandle(this, normalizedDescriptor, false, defaultTexture)
849
+ );
850
+ }
851
+
852
+ /**
853
+ * Declares a caller-acquired texture that is valid for exactly one numbered encoding frame.
854
+ *
855
+ * Frame textures have no default and must be supplied through `encode({frameTextures})` with a
856
+ * strictly increasing frame ID. The graph borrows but never acquires, presents, or destroys them.
857
+ */
858
+ importFrameTexture<Format extends TextureFormat>(
859
+ descriptor: GraphTextureDescriptor<Format>
860
+ ): GraphTextureHandle<Format> {
861
+ this.assertMutable();
862
+ const normalizedDescriptor = normalizeGraphTextureDescriptor(descriptor, this.device);
863
+ return this.addTexture(
864
+ new GraphTextureHandle(this, normalizedDescriptor, false, undefined, true)
865
+ );
866
+ }
867
+
868
+ /**
869
+ * Declares a sampled external image that must be replaced for every numbered encoding frame.
870
+ *
871
+ * Media scheduling and acquisition remain caller-owned. The graph borrows each fresh binding
872
+ * for one encoding and never destroys it.
873
+ */
874
+ importExternalTexture(descriptor: GraphExternalTextureDescriptor): GraphExternalTextureHandle {
875
+ this.assertMutable();
876
+ validateGraphExternalTextureDescriptor(descriptor, this.device);
877
+ return this.addExternalTexture(new GraphExternalTextureHandle(this, descriptor));
878
+ }
879
+
880
+ /**
881
+ * Declares one graph-owned fixed-size transient texture.
882
+ *
883
+ * Descriptor-compatible textures with disjoint compiled lifetimes may share an allocation.
884
+ */
885
+ createTransientTexture<Format extends TextureFormat>(
886
+ descriptor: GraphTextureDescriptor<Format>
887
+ ): GraphTextureHandle<Format> {
888
+ this.assertMutable();
889
+ const normalizedDescriptor = normalizeGraphTextureDescriptor(descriptor, this.device);
890
+ return this.addTexture(new GraphTextureHandle(this, normalizedDescriptor, true));
891
+ }
892
+
893
+ /**
894
+ * Creates one logical mip, layer, and aspect range over a graph texture.
895
+ *
896
+ * The normalized range is used for texture hazard inference and concrete view creation.
897
+ */
898
+ createTextureView<Format extends TextureFormat>(
899
+ texture: GraphTextureHandle<Format>,
900
+ props: GraphTextureViewProps = {}
901
+ ): GraphTextureView<Format> {
902
+ this.assertTexture(texture);
903
+ const normalizedProps = normalizeGraphTextureView(texture, props);
904
+ return new GraphTextureView(texture, normalizedProps);
905
+ }
906
+
907
+ /** Expands groups and primitives, scheduling concrete command nodes in depth-first order. */
908
+ add(node: GPUNode<Parameters>): void {
909
+ this.assertMutable();
910
+ if ('getNodes' in node) {
911
+ for (const child of node.getNodes()) this.add(child);
912
+ } else if ('getCommandNodes' in node) {
913
+ addGPUCommandNodes(this, node.getCommandNodes(this));
914
+ } else if ('type' in node) {
915
+ addGPUCommandNode(this, node);
916
+ } else {
917
+ for (const child of node) this.add(child);
918
+ }
919
+ }
920
+
921
+ /**
922
+ * Adds a compute node.
923
+ *
924
+ * The graph opens and closes the compute pass; the compiled executable only records commands.
925
+ * Declared resource uses participate in automatic dependency inference.
926
+ */
927
+ addComputePass(node: Omit<GPUCommandGraphComputeNode<Parameters>, 'type'>): void {
928
+ this.addNode({...node, type: 'compute'});
929
+ }
930
+
931
+ /**
932
+ * Adds a render node.
933
+ *
934
+ * Graph attachments are validated, added to the node's resource uses, and resolved to a cached
935
+ * framebuffer at encode time. The graph opens and closes the render pass.
936
+ */
937
+ addRenderPass(node: Omit<GPUCommandGraphRenderNode<Parameters>, 'type'>): void {
938
+ if (node.attachments) {
939
+ this.validateRenderAttachments(node.id, node.attachments);
940
+ }
941
+ const attachmentUses: GraphTextureUse[] = node.attachments
942
+ ? [
943
+ ...node.attachments.colorAttachments.map(texture => ({
944
+ texture,
945
+ usage: 'render-attachment' as const
946
+ })),
947
+ ...(node.attachments.resolveTargets ?? [])
948
+ .filter((texture): texture is GraphTextureView => texture !== null)
949
+ .map(texture => ({texture, usage: 'render-attachment' as const})),
950
+ ...(node.attachments.depthStencilAttachment
951
+ ? [
952
+ {
953
+ texture: node.attachments.depthStencilAttachment,
954
+ usage: 'render-attachment' as const
955
+ }
956
+ ]
957
+ : [])
958
+ ]
959
+ : [];
960
+ this.addNode({
961
+ ...node,
962
+ resources: [...(node.resources ?? []), ...attachmentUses],
963
+ type: 'render'
964
+ });
965
+ }
966
+
967
+ /**
968
+ * Adds a copy or pass-independent node.
969
+ *
970
+ * Its executable records directly into the caller-owned command encoder.
971
+ */
972
+ addCopyPass(node: Omit<GPUCommandGraphCopyNode<Parameters>, 'type'>): void {
973
+ this.addNode({...node, type: 'copy'});
974
+ }
975
+
976
+ /**
977
+ * Compiles scheduling, transient allocations, and executable node resources.
978
+ *
979
+ * Compilation freezes this graph. A graph can be compiled only once.
980
+ *
981
+ * @returns An executable graph that owns compiled node state and transient allocations.
982
+ */
983
+ compile(): CompiledGPUCommandGraph<Parameters> {
984
+ this.assertMutable();
985
+ assertDeviceAvailable(this.device, 'compilation');
986
+ this.compiled = true;
987
+ return new CompiledGPUCommandGraph(
988
+ compileGPUCommandGraph({
989
+ device: this.device,
990
+ id: this.id,
991
+ buffers: this.buffers,
992
+ textures: this.textures,
993
+ externalTextures: this.externalTextures,
994
+ nodes: this.nodes
995
+ })
996
+ );
997
+ }
998
+
999
+ /**
1000
+ * Compiles graph resources with asynchronous backend pipeline creation.
1001
+ *
1002
+ * Every node's asynchronous compile callback is started before compilation waits for any one
1003
+ * node. This lets independent WebGPU pipelines compile concurrently. Nodes that do not provide
1004
+ * an asynchronous callback use their existing synchronous compile callback.
1005
+ *
1006
+ * Compilation freezes this graph immediately. A graph can be compiled only once, including when
1007
+ * asynchronous compilation rejects.
1008
+ *
1009
+ * @returns An executable graph whose pipelines are ready before the promise resolves.
1010
+ */
1011
+ async compileAsync(): Promise<CompiledGPUCommandGraph<Parameters>> {
1012
+ this.assertMutable();
1013
+ assertDeviceAvailable(this.device, 'compilation');
1014
+ this.compiled = true;
1015
+ return new CompiledGPUCommandGraph(
1016
+ await compileGPUCommandGraphAsync({
1017
+ device: this.device,
1018
+ id: this.id,
1019
+ buffers: this.buffers,
1020
+ textures: this.textures,
1021
+ externalTextures: this.externalTextures,
1022
+ nodes: this.nodes
1023
+ })
1024
+ );
1025
+ }
1026
+
1027
+ private addNode(node: GPUCommandGraphNode<Parameters>): void {
1028
+ this.assertMutable();
1029
+ if (!node.id) {
1030
+ throw new Error('GPUCommandGraph node id is required');
1031
+ }
1032
+ if (this.nodeIds.has(node.id)) {
1033
+ throw new Error(`GPUCommandGraph node id "${node.id}" is already in use`);
1034
+ }
1035
+ for (const [name, value] of Object.entries(node.workload ?? {})) {
1036
+ if (name === 'operation' || name === 'variant') {
1037
+ if (typeof value !== 'string' || !value) {
1038
+ throw new Error(`GPUCommandGraph node "${node.id}" workload ${name} must be nonempty`);
1039
+ }
1040
+ } else if (typeof value !== 'number' || !Number.isSafeInteger(value) || value < 0) {
1041
+ throw new Error(
1042
+ `GPUCommandGraph node "${node.id}" workload ${name} must be a nonnegative safe integer`
1043
+ );
1044
+ }
1045
+ }
1046
+ if (node.condition) {
1047
+ if (!node.condition.id) {
1048
+ throw new Error(`GPUCommandGraph node "${node.id}" condition id is required`);
1049
+ }
1050
+ if (node.condition.source === 'cpu') {
1051
+ if (typeof node.condition.evaluate !== 'function') {
1052
+ throw new Error(
1053
+ `GPUCommandGraph node "${node.id}" CPU condition requires an evaluate function`
1054
+ );
1055
+ }
1056
+ } else {
1057
+ const gpuCondition = node.condition;
1058
+ if (node.type !== 'compute' || gpuCondition.mode !== 'indirect') {
1059
+ throw new Error(
1060
+ `GPUCommandGraph node "${node.id}" GPU conditions require an indirect compute node`
1061
+ );
1062
+ }
1063
+ if (!gpuCondition.buffer) {
1064
+ throw new Error(
1065
+ `GPUCommandGraph node "${node.id}" GPU condition requires an indirect command buffer`
1066
+ );
1067
+ }
1068
+ this.assertBuffer(gpuCondition.buffer);
1069
+ const byteOffset = gpuCondition.byteOffset ?? 0;
1070
+ if (!Number.isSafeInteger(byteOffset) || byteOffset < 0 || byteOffset % 4 !== 0) {
1071
+ throw new Error(
1072
+ `GPUCommandGraph node "${node.id}" GPU condition byteOffset must be a nonnegative multiple of 4`
1073
+ );
1074
+ }
1075
+ if (byteOffset + 3 * UINT32_BYTE_LENGTH > gpuCondition.buffer.byteLength) {
1076
+ throw new Error(
1077
+ `GPUCommandGraph node "${node.id}" GPU condition indirect command exceeds buffer "${gpuCondition.buffer.id}"`
1078
+ );
1079
+ }
1080
+ if (
1081
+ !(node.resources ?? []).some(
1082
+ resource =>
1083
+ isGraphBufferUse(resource) &&
1084
+ getBufferHandle(resource.buffer) === gpuCondition.buffer &&
1085
+ resource.usage === 'indirect'
1086
+ )
1087
+ ) {
1088
+ node = {
1089
+ ...node,
1090
+ resources: [...(node.resources ?? []), {buffer: gpuCondition.buffer, usage: 'indirect'}]
1091
+ };
1092
+ }
1093
+ }
1094
+ }
1095
+ if (node.publication) {
1096
+ if (node.condition) {
1097
+ throw new Error(
1098
+ `GPUCommandGraph node "${node.id}" cannot combine conditional execution with a publication boundary`
1099
+ );
1100
+ }
1101
+ if (!node.publication.id) {
1102
+ throw new Error(`GPUCommandGraph node "${node.id}" publication id is required`);
1103
+ }
1104
+ if (!['partial', 'complete'].includes(node.publication.completeness)) {
1105
+ throw new Error(`GPUCommandGraph node "${node.id}" publication completeness is invalid`);
1106
+ }
1107
+ }
1108
+ for (const resource of node.resources ?? []) {
1109
+ if (isGraphBufferUse(resource)) {
1110
+ const buffer = getBufferHandle(resource.buffer);
1111
+ this.assertBuffer(buffer);
1112
+ validateBufferUseAgainstDescriptor(buffer, resource.usage);
1113
+ } else if (isGraphTextureUse(resource)) {
1114
+ const texture = getTextureHandle(resource.texture);
1115
+ this.assertTexture(texture);
1116
+ validateTextureUseAgainstDescriptor(texture, resource.usage);
1117
+ validateTextureViewForUsage(resource.texture, resource.usage);
1118
+ } else {
1119
+ this.assertExternalTexture(resource.externalTexture);
1120
+ if (resource.usage !== 'sampled') {
1121
+ throw new Error('GPUCommandGraph external textures support sampled access only');
1122
+ }
1123
+ if (node.type !== 'render') {
1124
+ throw new Error('GPUCommandGraph external textures can be sampled only by render nodes');
1125
+ }
1126
+ }
1127
+ }
1128
+ validateGraphNodeBufferBindingAliasing(node);
1129
+ this.nodeIds.add(node.id);
1130
+ this.nodes.push(node);
1131
+ }
1132
+
1133
+ private addBuffer(buffer: GraphBufferHandle): GraphBufferHandle {
1134
+ if (
1135
+ this.buffers.has(buffer.id) ||
1136
+ this.textures.has(buffer.id) ||
1137
+ this.externalTextures.has(buffer.id)
1138
+ ) {
1139
+ throw new Error(`GPUCommandGraph resource id "${buffer.id}" is already in use`);
1140
+ }
1141
+ this.buffers.set(buffer.id, buffer);
1142
+ return buffer;
1143
+ }
1144
+
1145
+ private addTexture<Format extends TextureFormat>(
1146
+ texture: GraphTextureHandle<Format>
1147
+ ): GraphTextureHandle<Format> {
1148
+ if (
1149
+ this.buffers.has(texture.id) ||
1150
+ this.textures.has(texture.id) ||
1151
+ this.externalTextures.has(texture.id)
1152
+ ) {
1153
+ throw new Error(`GPUCommandGraph resource id "${texture.id}" is already in use`);
1154
+ }
1155
+ this.textures.set(texture.id, texture);
1156
+ return texture;
1157
+ }
1158
+
1159
+ private addExternalTexture(texture: GraphExternalTextureHandle): GraphExternalTextureHandle {
1160
+ if (
1161
+ this.buffers.has(texture.id) ||
1162
+ this.textures.has(texture.id) ||
1163
+ this.externalTextures.has(texture.id)
1164
+ ) {
1165
+ throw new Error(`GPUCommandGraph resource id "${texture.id}" is already in use`);
1166
+ }
1167
+ this.externalTextures.set(texture.id, texture);
1168
+ return texture;
1169
+ }
1170
+
1171
+ private importGPUDataView<T extends GPUVectorFormat>(
1172
+ id: string,
1173
+ data: GPUData<T>
1174
+ ): GraphDataView<T> {
1175
+ if (!data.format) {
1176
+ throw new Error(`GPUCommandGraph import "${id}" requires GPUData.format`);
1177
+ }
1178
+ const coreBuffer = getCoreBuffer(data.buffer);
1179
+ const requirements = {
1180
+ byteLength: getGPUDataEndByteOffset(data),
1181
+ usage: coreBuffer.usage
1182
+ };
1183
+ let handle =
1184
+ data.buffer instanceof DynamicBuffer
1185
+ ? this.getDynamicBufferHandle(data.buffer, requirements)
1186
+ : this.getImportedBufferHandle(coreBuffer, requirements);
1187
+ if (!handle) {
1188
+ handle = this.importBuffer(
1189
+ {id, byteLength: coreBuffer.byteLength, usage: coreBuffer.usage},
1190
+ data.buffer
1191
+ );
1192
+ if (data.buffer instanceof DynamicBuffer) {
1193
+ this.dynamicBufferHandles.set(data.buffer, handle);
1194
+ } else {
1195
+ this.importedBufferHandles.set(coreBuffer, handle);
1196
+ }
1197
+ }
1198
+ return this.createDataView(handle, {
1199
+ format: data.format,
1200
+ length: data.length,
1201
+ byteOffset: data.byteOffset,
1202
+ byteStride: data.byteStride,
1203
+ rowByteLength: data.rowByteLength
1204
+ });
1205
+ }
1206
+
1207
+ private getDynamicBufferHandle(
1208
+ buffer: DynamicBuffer,
1209
+ requirements: Pick<GraphBufferDescriptor, 'byteLength' | 'usage'>
1210
+ ): GraphBufferHandle | undefined {
1211
+ const cachedHandle = this.dynamicBufferHandles.get(buffer);
1212
+ if (
1213
+ cachedHandle?.defaultBuffer === buffer &&
1214
+ doesGraphBufferHandleCoverRequirements(cachedHandle, requirements)
1215
+ ) {
1216
+ return cachedHandle;
1217
+ }
1218
+ this.dynamicBufferHandles.delete(buffer);
1219
+ for (const handle of this.buffers.values()) {
1220
+ if (
1221
+ handle.defaultBuffer === buffer &&
1222
+ doesGraphBufferHandleCoverRequirements(handle, requirements)
1223
+ ) {
1224
+ this.dynamicBufferHandles.set(buffer, handle);
1225
+ return handle;
1226
+ }
1227
+ }
1228
+ return undefined;
1229
+ }
1230
+
1231
+ private getImportedBufferHandle(
1232
+ buffer: Buffer,
1233
+ requirements: Pick<GraphBufferDescriptor, 'byteLength' | 'usage'>
1234
+ ): GraphBufferHandle | undefined {
1235
+ const cachedHandle = this.importedBufferHandles.get(buffer);
1236
+ if (
1237
+ cachedHandle?.defaultBuffer &&
1238
+ getCoreBuffer(cachedHandle.defaultBuffer) === buffer &&
1239
+ doesGraphBufferHandleCoverRequirements(cachedHandle, requirements)
1240
+ ) {
1241
+ return cachedHandle;
1242
+ }
1243
+ this.importedBufferHandles.delete(buffer);
1244
+ for (const [dynamicBuffer, handle] of this.dynamicBufferHandles) {
1245
+ if (
1246
+ dynamicBuffer.buffer === buffer &&
1247
+ doesGraphBufferHandleCoverRequirements(handle, requirements)
1248
+ ) {
1249
+ this.importedBufferHandles.set(buffer, handle);
1250
+ return handle;
1251
+ }
1252
+ }
1253
+ for (const handle of this.buffers.values()) {
1254
+ if (
1255
+ handle.defaultBuffer === buffer &&
1256
+ doesGraphBufferHandleCoverRequirements(handle, requirements)
1257
+ ) {
1258
+ this.importedBufferHandles.set(buffer, handle);
1259
+ return handle;
1260
+ }
1261
+ }
1262
+ return undefined;
1263
+ }
1264
+
1265
+ private assertBuffer(buffer: GraphBufferHandle): void {
1266
+ if (buffer.graph !== this || this.buffers.get(buffer.id) !== buffer) {
1267
+ throw new Error(`Graph buffer "${buffer.id}" does not belong to ${this.id}`);
1268
+ }
1269
+ }
1270
+
1271
+ private assertTexture(texture: GraphTextureHandle): void {
1272
+ if (texture.graph !== this || this.textures.get(texture.id) !== texture) {
1273
+ throw new Error(`Graph texture "${texture.id}" does not belong to ${this.id}`);
1274
+ }
1275
+ }
1276
+
1277
+ private assertExternalTexture(texture: GraphExternalTextureHandle): void {
1278
+ if (texture.graph !== this || this.externalTextures.get(texture.id) !== texture) {
1279
+ throw new Error(`Graph external texture "${texture.id}" does not belong to ${this.id}`);
1280
+ }
1281
+ }
1282
+
1283
+ private assertMutable(): void {
1284
+ if (this.compiled) {
1285
+ throw new Error(`GPUCommandGraph "${this.id}" has already been compiled`);
1286
+ }
1287
+ }
1288
+
1289
+ private validateRenderAttachments(id: string, attachments: GraphRenderPassAttachments): void {
1290
+ if (attachments.colorAttachments.length === 0 && !attachments.depthStencilAttachment) {
1291
+ throw new Error(`GPUCommandGraph render node "${id}" requires at least one attachment`);
1292
+ }
1293
+ const allAttachments = [
1294
+ ...attachments.colorAttachments,
1295
+ ...(attachments.depthStencilAttachment ? [attachments.depthStencilAttachment] : [])
1296
+ ];
1297
+ for (const attachment of allAttachments) {
1298
+ this.assertTexture(attachment.texture);
1299
+ if (
1300
+ attachment.dimension !== '2d' ||
1301
+ attachment.mipLevelCount !== 1 ||
1302
+ attachment.arrayLayerCount !== 1
1303
+ ) {
1304
+ throw new Error(
1305
+ `GPUCommandGraph render node "${id}" attachments must be single-mip, single-layer 2d views`
1306
+ );
1307
+ }
1308
+ }
1309
+ const [first, ...remaining] = allAttachments;
1310
+ for (const attachment of remaining) {
1311
+ if (
1312
+ attachment.width !== first.width ||
1313
+ attachment.height !== first.height ||
1314
+ attachment.texture.samples !== first.texture.samples
1315
+ ) {
1316
+ throw new Error(
1317
+ `GPUCommandGraph render node "${id}" attachments must have matching extent and samples`
1318
+ );
1319
+ }
1320
+ }
1321
+ this.validateResolveTargets(id, attachments);
1322
+ }
1323
+
1324
+ private validateResolveTargets(id: string, attachments: GraphRenderPassAttachments): void {
1325
+ const resolveTargets = attachments.resolveTargets;
1326
+ if (!resolveTargets) {
1327
+ return;
1328
+ }
1329
+ if (this.device.type !== 'webgpu') {
1330
+ throw new Error(`GPUCommandGraph render node "${id}" resolve targets require WebGPU`);
1331
+ }
1332
+ if (resolveTargets.length !== attachments.colorAttachments.length) {
1333
+ throw new Error(
1334
+ `GPUCommandGraph render node "${id}" requires one resolve entry per color attachment`
1335
+ );
1336
+ }
1337
+ for (let index = 0; index < resolveTargets.length; index++) {
1338
+ const target = resolveTargets[index];
1339
+ if (!target) {
1340
+ continue;
1341
+ }
1342
+ const source = attachments.colorAttachments[index];
1343
+ this.assertTexture(target.texture);
1344
+ if (
1345
+ source.texture.samples <= 1 ||
1346
+ target.texture.samples !== 1 ||
1347
+ source.format !== target.format ||
1348
+ source.width !== target.width ||
1349
+ source.height !== target.height
1350
+ ) {
1351
+ throw new Error(
1352
+ `GPUCommandGraph render node "${id}" resolve target ${index} must match a multisampled source and be single-sampled`
1353
+ );
1354
+ }
1355
+ if (
1356
+ target.dimension !== '2d' ||
1357
+ target.aspect !== 'all' ||
1358
+ target.mipLevelCount !== 1 ||
1359
+ target.arrayLayerCount !== 1
1360
+ ) {
1361
+ throw new Error(
1362
+ `GPUCommandGraph render node "${id}" resolve targets must be single-mip, single-layer 2d color views`
1363
+ );
1364
+ }
1365
+ }
1366
+ }
1367
+ }
1368
+
1369
+ /**
1370
+ * Executable, fixed-capacity command graph.
1371
+ *
1372
+ * The compiled graph owns transient allocations, compiled node state, and cached views and
1373
+ * framebuffers. Imported buffers and textures remain caller-owned.
1374
+ */
1375
+ export class CompiledGPUCommandGraph<Parameters = void> {
1376
+ /** WebGPU device that owns the compiled resources. */
1377
+ readonly device: Device;
1378
+ /** Identifier inherited from the graph definition. */
1379
+ readonly id: string;
1380
+ /** Scheduling and transient-allocation statistics. */
1381
+ readonly stats: GPUCommandGraphStats;
1382
+ /** Static resource and workload bounds for application-defined preflight policy. */
1383
+ readonly preflight: GPUCommandGraphPreflightReport;
1384
+ /** Adapter capabilities and limits relevant to graph execution. */
1385
+ readonly capabilities: GPUCommandGraphCapabilities;
1386
+
1387
+ private readonly buffers: Map<string, GraphBufferHandle>;
1388
+ private readonly textures: Map<string, GraphTextureHandle>;
1389
+ private readonly externalTextures: Map<string, GraphExternalTextureHandle>;
1390
+ private readonly compiledNodes: CompiledNode<Parameters>[];
1391
+ private readonly activeImportedBufferHandles = new Set<GraphBufferHandle>();
1392
+ private readonly writableImportedBufferHandles = new Set<GraphBufferHandle>();
1393
+ private readonly activeImportedTextureHandles = new Set<GraphTextureHandle>();
1394
+ private readonly writableImportedTextureHandles = new Set<GraphTextureHandle>();
1395
+ private readonly transientBuffers: Map<GraphBufferHandle, Buffer>;
1396
+ private readonly transientTextures: Map<GraphTextureHandle, Texture>;
1397
+ private readonly bufferTransientAllocations: BufferTransientAllocation[];
1398
+ private readonly textureTransientAllocations: TextureTransientAllocation[];
1399
+ private readonly cachedTextureViews: CachedTextureView[] = [];
1400
+ private readonly cachedFramebuffers: CachedFramebuffer[] = [];
1401
+ private readonly lastFrameIds = new Map<GraphTextureHandle, number>();
1402
+ private readonly lastExternalTextureFrameIds = new Map<GraphExternalTextureHandle, number>();
1403
+ private readonly consumedExternalTextures = new WeakSet<ExternalTexture>();
1404
+ private destroyed = false;
1405
+
1406
+ /** String tag used by object inspectors and developer tools. */
1407
+ get [Symbol.toStringTag](): string {
1408
+ return 'CompiledGPUCommandGraph';
1409
+ }
1410
+
1411
+ /** Compact graph summary that avoids recursively printing GPU resources. */
1412
+ toString(): string {
1413
+ const state = this.destroyed ? 'destroyed' : 'active';
1414
+ return `${this[Symbol.toStringTag]}:"${this.id}":${this.stats.nodeOrder.length} nodes:${this.stats.physicalTransientResourceBytes}B transient:${state}`;
1415
+ }
1416
+
1417
+ /** Compact serialization for assertion diffs and structured debug logs. */
1418
+ toJSON(): string {
1419
+ return this.toString();
1420
+ }
1421
+
1422
+ /** @internal */
1423
+ constructor(props: GPUCommandGraphCompilation<Parameters>) {
1424
+ this.device = props.device;
1425
+ this.id = props.id;
1426
+ this.buffers = props.buffers;
1427
+ this.textures = props.textures;
1428
+ this.externalTextures = props.externalTextures;
1429
+ this.compiledNodes = props.compiledNodes;
1430
+ for (const {node} of this.compiledNodes) {
1431
+ for (const resource of node.resources ?? []) {
1432
+ if (isGraphBufferUse(resource)) {
1433
+ const handle = getBufferHandle(resource.buffer);
1434
+ if (!handle.transient) {
1435
+ this.activeImportedBufferHandles.add(handle);
1436
+ if (
1437
+ resource.usage === 'storage-write' ||
1438
+ resource.usage === 'storage-read-write' ||
1439
+ resource.usage === 'copy-destination'
1440
+ ) {
1441
+ this.writableImportedBufferHandles.add(handle);
1442
+ }
1443
+ }
1444
+ } else if (isGraphTextureUse(resource)) {
1445
+ const handle = getTextureHandle(resource.texture);
1446
+ if (!handle.transient) {
1447
+ this.activeImportedTextureHandles.add(handle);
1448
+ if (
1449
+ resource.usage === 'storage-write' ||
1450
+ resource.usage === 'storage-read-write' ||
1451
+ resource.usage === 'render-attachment' ||
1452
+ resource.usage === 'copy-destination'
1453
+ ) {
1454
+ this.writableImportedTextureHandles.add(handle);
1455
+ }
1456
+ }
1457
+ }
1458
+ }
1459
+ }
1460
+ this.transientBuffers = props.transientBuffers;
1461
+ this.transientTextures = props.transientTextures;
1462
+ this.bufferTransientAllocations = props.bufferTransientAllocations;
1463
+ this.textureTransientAllocations = props.textureTransientAllocations;
1464
+ this.stats = props.stats;
1465
+ this.preflight = props.preflight;
1466
+ this.capabilities = getGPUCommandGraphCapabilities(this.device);
1467
+ }
1468
+
1469
+ /**
1470
+ * Records every graph node into a caller-owned command encoder.
1471
+ *
1472
+ * Imported resources are resolved from per-encoding overrides first, then from defaults supplied
1473
+ * at graph construction. Distinct active buffer or texture handles must not alias one physical
1474
+ * resource when either handle is written. This method records only; it does not finish or submit
1475
+ * the encoder.
1476
+ *
1477
+ * @param commandEncoder Encoder that receives all graph commands.
1478
+ * @param options Per-encoding parameters and optional imported-resource replacements.
1479
+ */
1480
+ encode(
1481
+ commandEncoder: CommandEncoder,
1482
+ options: GPUCommandGraphEncodeOptions<Parameters>
1483
+ ): GPUCommandGraphEncoding {
1484
+ return this.encodeNodeRange(commandEncoder, options, 0, this.compiledNodes.length);
1485
+ }
1486
+
1487
+ /**
1488
+ * Creates an immutable dry-run plan for one resumable graph invocation.
1489
+ *
1490
+ * The plan exposes submission count, static cost totals, and indivisible oversized steps before
1491
+ * any commands are encoded. Applications can therefore reject, explain, or retune expensive
1492
+ * work without first placing it on the GPU queue.
1493
+ */
1494
+ getExecutionPlan(
1495
+ budget: GPUCommandGraphExecutionBudget,
1496
+ options: GPUCommandGraphExecutionOptions = {}
1497
+ ): GPUCommandGraphExecutionPlan {
1498
+ return getGPUCommandGraphExecutionPlan(this.preflight, budget, options);
1499
+ }
1500
+
1501
+ /**
1502
+ * Creates a resumable dependency-ordered execution governed by static workload estimates.
1503
+ *
1504
+ * The graph does not own a frame loop or submit command buffers. Callers encode and submit one
1505
+ * step whenever their scheduler admits more work. Nodes without an invocation estimate are
1506
+ * treated as zero-cost, while an individual node larger than the budget is encoded alone to
1507
+ * guarantee progress.
1508
+ */
1509
+ createExecution(
1510
+ budget: GPUCommandGraphExecutionBudget,
1511
+ options: GPUCommandGraphExecutionOptions = {}
1512
+ ): GPUCommandGraphExecution<Parameters> {
1513
+ return new GPUCommandGraphExecution({
1514
+ plan: this.getExecutionPlan(budget, options),
1515
+ budget,
1516
+ encodeNodeRange: (commandEncoder, options, firstNodeIndex, nextNodeIndex) =>
1517
+ this.encodeNodeRange(commandEncoder, options, firstNodeIndex, nextNodeIndex)
1518
+ });
1519
+ }
1520
+
1521
+ private encodeNodeRange(
1522
+ commandEncoder: CommandEncoder,
1523
+ options: GPUCommandGraphEncodeOptions<Parameters>,
1524
+ firstNodeIndex: number,
1525
+ nextNodeIndex: number
1526
+ ): GPUCommandGraphEncoding {
1527
+ if (this.destroyed) {
1528
+ throw new Error(`CompiledGPUCommandGraph "${this.id}" has been destroyed`);
1529
+ }
1530
+ assertDeviceAvailable(this.device, 'encoding');
1531
+ if (commandEncoder.device !== this.device) {
1532
+ throw new Error('GPUCommandGraph command encoder must belong to the graph device');
1533
+ }
1534
+
1535
+ const encodingStartTime = getTimestampMilliseconds();
1536
+ const importedBuffers = this.resolveImportedBuffers(options.buffers ?? {});
1537
+ validateEncodingFrameId(options.frameTextures ?? {}, options.externalTextures ?? {});
1538
+ const importedTextureResult = this.resolveImportedTextures(
1539
+ options.textures ?? {},
1540
+ options.frameTextures ?? {}
1541
+ );
1542
+ const externalTextureResult = this.resolveExternalTextures(options.externalTextures ?? {});
1543
+ for (const [handle, nextFrameId] of importedTextureResult.frameIds) {
1544
+ this.lastFrameIds.set(handle, nextFrameId);
1545
+ }
1546
+ for (const [handle, nextFrameId] of externalTextureResult.frameIds) {
1547
+ this.lastExternalTextureFrameIds.set(handle, nextFrameId);
1548
+ }
1549
+ for (const texture of externalTextureResult.textures.values()) {
1550
+ this.consumedExternalTextures.add(texture);
1551
+ }
1552
+ const importedTextures = importedTextureResult.textures;
1553
+ const getBuffer = (bufferOrView: GraphBufferHandle | GraphDataView): Buffer => {
1554
+ const handle = getBufferHandle(bufferOrView);
1555
+ const buffer = handle.transient
1556
+ ? this.transientBuffers.get(handle)
1557
+ : importedBuffers.get(handle);
1558
+ if (!buffer) {
1559
+ throw new Error(`GPUCommandGraph buffer "${handle.id}" is not bound`);
1560
+ }
1561
+ return buffer;
1562
+ };
1563
+ const getTexture = (textureOrView: GraphTextureHandle | GraphTextureView): Texture => {
1564
+ const handle = getTextureHandle(textureOrView);
1565
+ const texture = handle.transient
1566
+ ? this.transientTextures.get(handle)
1567
+ : importedTextures.get(handle);
1568
+ if (!texture) {
1569
+ throw new Error(`GPUCommandGraph texture "${handle.id}" is not bound`);
1570
+ }
1571
+ return texture;
1572
+ };
1573
+ const getTextureView = (textureOrView: GraphTextureHandle | GraphTextureView): TextureView => {
1574
+ const texture = getTexture(textureOrView);
1575
+ if (textureOrView instanceof GraphTextureHandle || isDefaultGraphTextureView(textureOrView)) {
1576
+ return texture.view;
1577
+ }
1578
+ if (textureOrView.texture.frameScoped) {
1579
+ const frameId = this.lastFrameIds.get(textureOrView.texture);
1580
+ for (let index = this.cachedTextureViews.length - 1; index >= 0; index--) {
1581
+ const entry = this.cachedTextureViews[index];
1582
+ if (entry.logicalView === textureOrView && entry.frameId !== frameId) {
1583
+ this.destroyFramebuffersUsingView(entry.view);
1584
+ entry.view.destroy();
1585
+ this.cachedTextureViews.splice(index, 1);
1586
+ }
1587
+ }
1588
+ }
1589
+ const cached = this.cachedTextureViews.find(
1590
+ entry =>
1591
+ entry.logicalView === textureOrView &&
1592
+ entry.texture === texture &&
1593
+ (!textureOrView.texture.frameScoped ||
1594
+ entry.frameId === this.lastFrameIds.get(textureOrView.texture))
1595
+ );
1596
+ if (cached) {
1597
+ return cached.view;
1598
+ }
1599
+ const view = texture.createView({
1600
+ format: textureOrView.format,
1601
+ dimension: textureOrView.dimension,
1602
+ aspect: textureOrView.aspect,
1603
+ baseMipLevel: textureOrView.baseMipLevel,
1604
+ mipLevelCount: textureOrView.mipLevelCount,
1605
+ baseArrayLayer: textureOrView.baseArrayLayer,
1606
+ arrayLayerCount: textureOrView.arrayLayerCount
1607
+ });
1608
+ this.cachedTextureViews.push({
1609
+ logicalView: textureOrView,
1610
+ texture,
1611
+ view,
1612
+ ...(textureOrView.texture.frameScoped
1613
+ ? {frameId: this.lastFrameIds.get(textureOrView.texture)}
1614
+ : {})
1615
+ });
1616
+ return view;
1617
+ };
1618
+ const getExternalTexture = (handle: GraphExternalTextureHandle): ExternalTexture => {
1619
+ const texture = externalTextureResult.textures.get(handle);
1620
+ if (!texture) {
1621
+ throw new Error(`GPUCommandGraph external texture "${handle.id}" is not bound`);
1622
+ }
1623
+ return texture;
1624
+ };
1625
+
1626
+ const baseContext: GPUCommandGraphEncodeContext<Parameters> = {
1627
+ commandEncoder,
1628
+ parameters: options.parameters,
1629
+ getBuffer,
1630
+ getTexture,
1631
+ getTextureView,
1632
+ getExternalTexture
1633
+ };
1634
+
1635
+ const encodedNodes: EncodedGPUCommandGraphNode[] = [];
1636
+ let activeComputePass: ComputePass | undefined;
1637
+ let computePassCount = 0;
1638
+ let coalesceComputePasses =
1639
+ options.coalesceComputePasses !== false && commandEncoder.getTimeProfilingQuerySet() === null;
1640
+ const endActiveComputePass = (): void => {
1641
+ const computePass = activeComputePass;
1642
+ activeComputePass = undefined;
1643
+ computePass?.end();
1644
+ };
1645
+
1646
+ try {
1647
+ for (let nodeIndex = firstNodeIndex; nodeIndex < nextNodeIndex; nodeIndex++) {
1648
+ const {node, executable} = this.compiledNodes[nodeIndex];
1649
+ const nodeStartTime = getTimestampMilliseconds();
1650
+ if (node.condition?.source === 'cpu') {
1651
+ let shouldExecute = false;
1652
+ try {
1653
+ shouldExecute = node.condition.evaluate(options.parameters);
1654
+ } catch (error) {
1655
+ const message = error instanceof Error ? error.message : String(error);
1656
+ throw new Error(
1657
+ `GPUCommandGraph CPU condition "${node.condition.id}" failed for node "${node.id}": ${message}`
1658
+ );
1659
+ }
1660
+ if (!shouldExecute) {
1661
+ const nodeEndTime = getTimestampMilliseconds();
1662
+ encodedNodes.push({
1663
+ stats: {
1664
+ id: node.id,
1665
+ description: node.description,
1666
+ resources: this.preflight.nodes[nodeIndex].resources,
1667
+ operation: node.workload?.operation,
1668
+ type: node.type,
1669
+ cpuEncodeStartTimeMilliseconds: nodeStartTime,
1670
+ cpuEncodeEndTimeMilliseconds: nodeEndTime,
1671
+ cpuEncodeTimeMilliseconds: nodeEndTime - nodeStartTime,
1672
+ hasGPUTimestamps: false,
1673
+ condition: {id: node.condition.id, source: 'cpu', outcome: 'skipped'}
1674
+ }
1675
+ });
1676
+ continue;
1677
+ }
1678
+ }
1679
+ let timestamp: GPUCommandGraphNodeTimestamp | undefined;
1680
+ switch (node.type) {
1681
+ case 'compute': {
1682
+ if (!activeComputePass) {
1683
+ activeComputePass = commandEncoder.beginComputePass({id: node.id});
1684
+ computePassCount++;
1685
+ }
1686
+ const computePass = activeComputePass;
1687
+ timestamp = getPassTimestamp(computePass, commandEncoder);
1688
+ if (timestamp) {
1689
+ coalesceComputePasses = false;
1690
+ }
1691
+ computePass.pushDebugGroup(node.id);
1692
+ try {
1693
+ const gpuCondition = node.condition?.source === 'gpu' ? node.condition : undefined;
1694
+ const conditionalPass = gpuCondition
1695
+ ? makeGPUIndirectConditionalComputePass(
1696
+ computePass,
1697
+ getBuffer(gpuCondition.buffer),
1698
+ gpuCondition.byteOffset ?? 0,
1699
+ node.id
1700
+ )
1701
+ : undefined;
1702
+ (executable as GPUCommandGraphComputeExecutable<Parameters>).encode({
1703
+ ...baseContext,
1704
+ computePass: conditionalPass?.computePass ?? computePass
1705
+ });
1706
+ conditionalPass?.assertDispatched();
1707
+ } finally {
1708
+ computePass.popDebugGroup();
1709
+ }
1710
+ if (!coalesceComputePasses) {
1711
+ endActiveComputePass();
1712
+ }
1713
+ break;
1714
+ }
1715
+ case 'render': {
1716
+ endActiveComputePass();
1717
+ const renderExecutable = executable as GPUCommandGraphRenderExecutable<Parameters>;
1718
+ const renderPassProps = renderExecutable.getRenderPassProps?.(baseContext) ?? {
1719
+ id: node.id
1720
+ };
1721
+ if (node.attachments && renderPassProps.framebuffer !== undefined) {
1722
+ throw new Error(
1723
+ `GPUCommandGraph render node "${node.id}" cannot supply framebuffer with graph attachments`
1724
+ );
1725
+ }
1726
+ if (node.attachments?.resolveTargets && renderPassProps.resolveTargets !== undefined) {
1727
+ throw new Error(
1728
+ `GPUCommandGraph render node "${node.id}" cannot supply resolveTargets with graph attachments`
1729
+ );
1730
+ }
1731
+ const framebuffer = node.attachments
1732
+ ? this.getFramebuffer(node.id, node.attachments, getTextureView)
1733
+ : undefined;
1734
+ const resolveTargets = node.attachments?.resolveTargets?.map(target =>
1735
+ target ? getTextureView(target) : null
1736
+ );
1737
+ const renderPass = commandEncoder.beginRenderPass({
1738
+ ...renderPassProps,
1739
+ ...(framebuffer ? {framebuffer} : {}),
1740
+ ...(resolveTargets ? {resolveTargets} : {})
1741
+ });
1742
+ timestamp = getPassTimestamp(renderPass, commandEncoder);
1743
+ renderPass.pushDebugGroup(node.id);
1744
+ try {
1745
+ renderExecutable.encode({...baseContext, renderPass});
1746
+ } finally {
1747
+ renderPass.popDebugGroup();
1748
+ renderPass.end();
1749
+ }
1750
+ break;
1751
+ }
1752
+ case 'copy':
1753
+ endActiveComputePass();
1754
+ (executable as GPUCommandGraphCopyExecutable<Parameters>).encode(baseContext);
1755
+ break;
1756
+ }
1757
+ const nodeEndTime = getTimestampMilliseconds();
1758
+ encodedNodes.push({
1759
+ stats: {
1760
+ id: node.id,
1761
+ description: node.description,
1762
+ resources: this.preflight.nodes[nodeIndex].resources,
1763
+ operation: node.workload?.operation,
1764
+ type: node.type,
1765
+ cpuEncodeStartTimeMilliseconds: nodeStartTime,
1766
+ cpuEncodeEndTimeMilliseconds: nodeEndTime,
1767
+ cpuEncodeTimeMilliseconds: nodeEndTime - nodeStartTime,
1768
+ hasGPUTimestamps: timestamp !== undefined,
1769
+ ...(node.condition
1770
+ ? {
1771
+ condition: {
1772
+ id: node.condition.id,
1773
+ source: node.condition.source,
1774
+ outcome:
1775
+ node.condition.source === 'gpu'
1776
+ ? ('gpu-resolved' as const)
1777
+ : ('executed' as const)
1778
+ }
1779
+ }
1780
+ : {})
1781
+ },
1782
+ timestamp
1783
+ });
1784
+ }
1785
+ } finally {
1786
+ endActiveComputePass();
1787
+ }
1788
+ const encodingEndTime = getTimestampMilliseconds();
1789
+ return new GPUCommandGraphEncoding(
1790
+ encodedNodes,
1791
+ encodingEndTime - encodingStartTime,
1792
+ computePassCount,
1793
+ encodingStartTime,
1794
+ encodingEndTime,
1795
+ async (nodeId, resourceIndex) => {
1796
+ if (this.destroyed) throw new Error('Graph has been destroyed.');
1797
+ const nodeIndex = this.compiledNodes.findIndex(({node}) => node.id === nodeId);
1798
+ const use = this.compiledNodes[nodeIndex]?.node.resources?.[resourceIndex];
1799
+ const summary = this.preflight.nodes[nodeIndex]?.resources?.[resourceIndex];
1800
+ if (!use || !summary) throw new Error('Resource is unavailable.');
1801
+ if ('externalTexture' in use) throw new Error('External images cannot be read back.');
1802
+ const handle =
1803
+ 'buffer' in use ? getBufferHandle(use.buffer) : getTextureHandle(use.texture);
1804
+ if ('frameScoped' in handle && handle.frameScoped)
1805
+ throw new Error('Frame textures expire after presentation.');
1806
+ const resource = 'buffer' in use ? getBuffer(use.buffer) : getTexture(use.texture);
1807
+ // A pooled allocation may now hold a later logical resource. Never label those bytes as this resource.
1808
+ const aliases = resource instanceof Buffer ? this.transientBuffers : this.transientTextures;
1809
+ if (
1810
+ handle.transient &&
1811
+ [...aliases].some(
1812
+ ([candidate, allocation]) => candidate !== handle && allocation === resource
1813
+ )
1814
+ )
1815
+ throw new Error(
1816
+ 'Transient allocation is reused; logical contents are no longer available.'
1817
+ );
1818
+ return readGPUResourcePreview(resource, summary);
1819
+ }
1820
+ );
1821
+ }
1822
+
1823
+ /**
1824
+ * Releases compiled node state, cached views and framebuffers, and graph-owned transients.
1825
+ *
1826
+ * Imported resources are borrowed and are never destroyed. Repeated calls are safe.
1827
+ */
1828
+ destroy(): void {
1829
+ if (this.destroyed) {
1830
+ return;
1831
+ }
1832
+ for (const {executable} of this.compiledNodes) {
1833
+ executable.destroy?.();
1834
+ }
1835
+ for (const cached of this.cachedFramebuffers) {
1836
+ cached.framebuffer.destroy();
1837
+ }
1838
+ for (const cached of this.cachedTextureViews) {
1839
+ cached.view.destroy();
1840
+ }
1841
+ for (const allocation of this.bufferTransientAllocations) {
1842
+ allocation.buffer?.destroy();
1843
+ }
1844
+ for (const allocation of this.textureTransientAllocations) {
1845
+ allocation.texture?.destroy();
1846
+ }
1847
+ this.destroyed = true;
1848
+ }
1849
+
1850
+ private resolveImportedBuffers(
1851
+ overrides: Record<string, GraphImportedBuffer>
1852
+ ): Map<GraphBufferHandle, Buffer> {
1853
+ const resolved = new Map<GraphBufferHandle, Buffer>();
1854
+ const activePhysicalBuffers = new Map<object, GraphBufferHandle>();
1855
+ for (const [id, handle] of this.buffers) {
1856
+ if (handle.transient) {
1857
+ continue;
1858
+ }
1859
+ const importedBuffer = overrides[id] ?? handle.defaultBuffer;
1860
+ if (!importedBuffer) {
1861
+ throw new Error(`GPUCommandGraph imported buffer "${id}" is required`);
1862
+ }
1863
+ validateImportedBuffer(importedBuffer, handle, this.device);
1864
+ const coreBuffer = getCoreBuffer(importedBuffer);
1865
+ if (this.activeImportedBufferHandles.has(handle)) {
1866
+ const physicalHandle = coreBuffer.handle;
1867
+ const physicalBuffer =
1868
+ (typeof physicalHandle === 'object' && physicalHandle !== null) ||
1869
+ typeof physicalHandle === 'function'
1870
+ ? physicalHandle
1871
+ : coreBuffer;
1872
+ const previousHandle = activePhysicalBuffers.get(physicalBuffer);
1873
+ if (
1874
+ previousHandle &&
1875
+ (this.writableImportedBufferHandles.has(previousHandle) ||
1876
+ this.writableImportedBufferHandles.has(handle))
1877
+ ) {
1878
+ throw new Error(
1879
+ `GPUCommandGraph imported buffers "${previousHandle.id}" and "${id}" resolve to the same physical buffer`
1880
+ );
1881
+ }
1882
+ if (!previousHandle) {
1883
+ activePhysicalBuffers.set(physicalBuffer, handle);
1884
+ }
1885
+ }
1886
+ resolved.set(handle, coreBuffer);
1887
+ }
1888
+ for (const id of Object.keys(overrides)) {
1889
+ const handle = this.buffers.get(id);
1890
+ if (!handle || handle.transient) {
1891
+ throw new Error(`GPUCommandGraph has no imported buffer named "${id}"`);
1892
+ }
1893
+ }
1894
+ return resolved;
1895
+ }
1896
+
1897
+ private resolveImportedTextures(
1898
+ overrides: Record<string, GraphImportedTexture>,
1899
+ frameBindings: Record<string, GraphFrameTextureBinding>
1900
+ ): {
1901
+ textures: Map<GraphTextureHandle, Texture>;
1902
+ frameIds: Map<GraphTextureHandle, number>;
1903
+ } {
1904
+ const resolved = new Map<GraphTextureHandle, Texture>();
1905
+ const nextFrameIds = new Map<GraphTextureHandle, number>();
1906
+ for (const [id, handle] of this.textures) {
1907
+ if (handle.transient) {
1908
+ continue;
1909
+ }
1910
+ if (handle.frameScoped) {
1911
+ const binding = frameBindings[id];
1912
+ if (!binding) {
1913
+ throw new Error(`GPUCommandGraph frame texture "${id}" is required`);
1914
+ }
1915
+ const lastFrameId = this.lastFrameIds.get(handle);
1916
+ if (lastFrameId !== undefined && binding.frameId <= lastFrameId) {
1917
+ throw new Error(
1918
+ `GPUCommandGraph frame texture "${id}" frameId ${binding.frameId} is stale; expected greater than ${lastFrameId}`
1919
+ );
1920
+ }
1921
+ validateImportedTexture(binding.texture, handle, this.device);
1922
+ resolved.set(handle, getCoreTexture(binding.texture));
1923
+ nextFrameIds.set(handle, binding.frameId);
1924
+ continue;
1925
+ }
1926
+ const importedTexture = overrides[id] ?? handle.defaultTexture;
1927
+ if (!importedTexture) {
1928
+ throw new Error(`GPUCommandGraph imported texture "${id}" is required`);
1929
+ }
1930
+ validateImportedTexture(importedTexture, handle, this.device);
1931
+ resolved.set(handle, getCoreTexture(importedTexture));
1932
+ }
1933
+ for (const id of Object.keys(overrides)) {
1934
+ const handle = this.textures.get(id);
1935
+ if (!handle || handle.transient || handle.frameScoped) {
1936
+ throw new Error(`GPUCommandGraph has no imported texture named "${id}"`);
1937
+ }
1938
+ }
1939
+ for (const id of Object.keys(frameBindings)) {
1940
+ const handle = this.textures.get(id);
1941
+ if (!handle?.frameScoped) {
1942
+ throw new Error(`GPUCommandGraph has no frame texture named "${id}"`);
1943
+ }
1944
+ }
1945
+ const activePhysicalTextures = new Map<object, GraphTextureHandle>();
1946
+ for (const [handle, texture] of resolved) {
1947
+ if (!this.activeImportedTextureHandles.has(handle)) {
1948
+ continue;
1949
+ }
1950
+ const physicalHandle = texture.handle;
1951
+ const physicalTexture =
1952
+ (typeof physicalHandle === 'object' && physicalHandle !== null) ||
1953
+ typeof physicalHandle === 'function'
1954
+ ? physicalHandle
1955
+ : texture;
1956
+ const previousHandle = activePhysicalTextures.get(physicalTexture);
1957
+ if (
1958
+ previousHandle &&
1959
+ (this.writableImportedTextureHandles.has(previousHandle) ||
1960
+ this.writableImportedTextureHandles.has(handle))
1961
+ ) {
1962
+ throw new Error(
1963
+ `GPUCommandGraph imported textures "${previousHandle.id}" and "${handle.id}" resolve to the same physical texture`
1964
+ );
1965
+ }
1966
+ if (!previousHandle) {
1967
+ activePhysicalTextures.set(physicalTexture, handle);
1968
+ }
1969
+ }
1970
+ return {textures: resolved, frameIds: nextFrameIds};
1971
+ }
1972
+
1973
+ private resolveExternalTextures(bindings: Record<string, GraphExternalTextureBinding>): {
1974
+ textures: Map<GraphExternalTextureHandle, ExternalTexture>;
1975
+ frameIds: Map<GraphExternalTextureHandle, number>;
1976
+ } {
1977
+ const textures = new Map<GraphExternalTextureHandle, ExternalTexture>();
1978
+ const frameIds = new Map<GraphExternalTextureHandle, number>();
1979
+ for (const [id, handle] of this.externalTextures) {
1980
+ const binding = bindings[id];
1981
+ if (!binding) {
1982
+ throw new Error(`GPUCommandGraph external texture "${id}" is required`);
1983
+ }
1984
+ const lastFrameId = this.lastExternalTextureFrameIds.get(handle);
1985
+ if (lastFrameId !== undefined && binding.frameId <= lastFrameId) {
1986
+ throw new Error(
1987
+ `GPUCommandGraph external texture "${id}" frameId ${binding.frameId} is stale; expected greater than ${lastFrameId}`
1988
+ );
1989
+ }
1990
+ if (this.consumedExternalTextures.has(binding.texture)) {
1991
+ throw new Error(
1992
+ `GPUCommandGraph external texture "${id}" requires a fresh binding for each frame`
1993
+ );
1994
+ }
1995
+ validateImportedExternalTexture(binding.texture, handle, this.device);
1996
+ textures.set(handle, binding.texture);
1997
+ frameIds.set(handle, binding.frameId);
1998
+ }
1999
+ for (const id of Object.keys(bindings)) {
2000
+ if (!this.externalTextures.has(id)) {
2001
+ throw new Error(`GPUCommandGraph has no external texture named "${id}"`);
2002
+ }
2003
+ }
2004
+ return {textures, frameIds};
2005
+ }
2006
+
2007
+ private getFramebuffer(
2008
+ nodeId: string,
2009
+ attachments: GraphRenderPassAttachments,
2010
+ getTextureView: (texture: GraphTextureView) => TextureView
2011
+ ): Framebuffer {
2012
+ const colorAttachments = attachments.colorAttachments.map(getTextureView);
2013
+ const depthStencilAttachment = attachments.depthStencilAttachment
2014
+ ? getTextureView(attachments.depthStencilAttachment)
2015
+ : undefined;
2016
+ const cached = this.cachedFramebuffers.find(
2017
+ entry =>
2018
+ entry.nodeId === nodeId &&
2019
+ entry.depthStencilAttachment === depthStencilAttachment &&
2020
+ entry.colorAttachments.length === colorAttachments.length &&
2021
+ entry.colorAttachments.every((view, index) => view === colorAttachments[index])
2022
+ );
2023
+ if (cached) {
2024
+ return cached.framebuffer;
2025
+ }
2026
+ const firstLogicalAttachment =
2027
+ attachments.colorAttachments[0] ?? attachments.depthStencilAttachment!;
2028
+ const framebuffer = this.device.createFramebuffer({
2029
+ id: `${this.id}-${nodeId}-framebuffer-${this.cachedFramebuffers.length}`,
2030
+ width: firstLogicalAttachment.width,
2031
+ height: firstLogicalAttachment.height,
2032
+ colorAttachments,
2033
+ depthStencilAttachment: depthStencilAttachment ?? null
2034
+ });
2035
+ this.cachedFramebuffers.push({
2036
+ nodeId,
2037
+ colorAttachments,
2038
+ depthStencilAttachment,
2039
+ framebuffer
2040
+ });
2041
+ return framebuffer;
2042
+ }
2043
+
2044
+ private destroyFramebuffersUsingView(view: TextureView): void {
2045
+ for (let index = this.cachedFramebuffers.length - 1; index >= 0; index--) {
2046
+ const cached = this.cachedFramebuffers[index];
2047
+ if (
2048
+ cached.depthStencilAttachment === view ||
2049
+ cached.colorAttachments.some(attachment => attachment === view)
2050
+ ) {
2051
+ cached.framebuffer.destroy();
2052
+ this.cachedFramebuffers.splice(index, 1);
2053
+ }
2054
+ }
2055
+ }
2056
+ }
2057
+
2058
+ /** Unwraps a dynamic import to the concrete buffer used for validation and encoding. */
2059
+ function getCoreBuffer(buffer: GraphImportedBuffer): Buffer {
2060
+ return buffer instanceof DynamicBuffer ? buffer.buffer : buffer;
2061
+ }
2062
+
2063
+ /** Returns the exclusive physical byte offset required by one typed GPU data import. */
2064
+ function getGPUDataEndByteOffset(data: GPUData): number {
2065
+ const byteLength =
2066
+ data.length === 0 ? 0 : (data.length - 1) * data.byteStride + data.rowByteLength;
2067
+ return data.byteOffset + byteLength;
2068
+ }
2069
+
2070
+ /** Returns whether one canonical handle covers a typed import's capacity and usage. */
2071
+ function doesGraphBufferHandleCoverRequirements(
2072
+ handle: GraphBufferHandle,
2073
+ requirements: Pick<GraphBufferDescriptor, 'byteLength' | 'usage'>
2074
+ ): boolean {
2075
+ return (
2076
+ handle.byteLength >= requirements.byteLength &&
2077
+ (handle.usage & requirements.usage) === requirements.usage
2078
+ );
2079
+ }
2080
+
2081
+ /** Unwraps a ready dynamic import to the concrete texture used for validation and encoding. */
2082
+ function getCoreTexture(texture: GraphImportedTexture): Texture {
2083
+ if (texture instanceof DynamicTexture) {
2084
+ if (!texture.isReady) {
2085
+ throw new Error(`GPUCommandGraph dynamic texture "${texture.id}" is not ready`);
2086
+ }
2087
+ return texture.texture;
2088
+ }
2089
+ return texture;
2090
+ }
2091
+
2092
+ /** Ensures all ephemeral image imports belong to one explicit application frame. */
2093
+ function validateEncodingFrameId(
2094
+ frameTextures: Record<string, GraphFrameTextureBinding>,
2095
+ externalTextures: Record<string, GraphExternalTextureBinding>
2096
+ ): void {
2097
+ let encodingFrameId: number | undefined;
2098
+ for (const [id, binding] of [
2099
+ ...Object.entries(frameTextures),
2100
+ ...Object.entries(externalTextures)
2101
+ ]) {
2102
+ if (!Number.isSafeInteger(binding.frameId) || binding.frameId < 0) {
2103
+ throw new Error(`GPUCommandGraph frame resource "${id}" requires a valid frameId`);
2104
+ }
2105
+ if (encodingFrameId !== undefined && binding.frameId !== encodingFrameId) {
2106
+ throw new Error('GPUCommandGraph frame resources must share one frameId per encoding');
2107
+ }
2108
+ encodingFrameId = binding.frameId;
2109
+ }
2110
+ }
2111
+
2112
+ /** Returns a portable timestamp pair recorded by one render or compute pass. */
2113
+ function getPassTimestamp(
2114
+ pass: ComputePass | RenderPass,
2115
+ commandEncoder: CommandEncoder
2116
+ ): GPUCommandGraphNodeTimestamp | undefined {
2117
+ const {timestampQuerySet, beginTimestampIndex, endTimestampIndex} = pass.props;
2118
+ return timestampQuerySet &&
2119
+ Number.isSafeInteger(beginTimestampIndex) &&
2120
+ Number.isSafeInteger(endTimestampIndex) &&
2121
+ beginTimestampIndex >= 0 &&
2122
+ endTimestampIndex > beginTimestampIndex
2123
+ ? {
2124
+ querySet: timestampQuerySet,
2125
+ snapshot:
2126
+ timestampQuerySet.device.type === 'webgpu'
2127
+ ? commandEncoder.captureTimestampQuerySet?.(timestampQuerySet)
2128
+ : undefined,
2129
+ beginIndex: beginTimestampIndex,
2130
+ endIndex: endTimestampIndex
2131
+ }
2132
+ : undefined;
2133
+ }
2134
+
2135
+ /** Captures graph-relevant adapter limits without requiring backend-specific handles. */
2136
+ function getGPUCommandGraphCapabilities(device: Device): GPUCommandGraphCapabilities {
2137
+ return Object.freeze({
2138
+ timestampQueries: device.features.has('timestamp-query'),
2139
+ subgroups: device.features.has('subgroups'),
2140
+ subgroupId: device.wgslLanguageFeatures.has('subgroup_id'),
2141
+ subgroupMinSize: device.info.subgroupMinSize,
2142
+ subgroupMaxSize: device.info.subgroupMaxSize,
2143
+ softwareAdapter:
2144
+ device.info.gpu === 'software' ||
2145
+ device.info.gpuType === 'cpu' ||
2146
+ Boolean(device.info.fallback),
2147
+ maxBufferByteLength: device.limits.maxBufferSize,
2148
+ maxStorageBufferBindingByteLength: device.limits.maxStorageBufferBindingSize,
2149
+ maxComputeInvocationsPerWorkgroup: device.limits.maxComputeInvocationsPerWorkgroup,
2150
+ maxComputeWorkgroupsPerDimension: device.limits.maxComputeWorkgroupsPerDimension
2151
+ });
2152
+ }
2153
+
2154
+ /** Rejects graph work after a WebGPU device has been lost. */
2155
+ function assertDeviceAvailable(device: Device, operation: string): void {
2156
+ if (device.isLost) {
2157
+ throw new Error(`GPUCommandGraph cannot perform ${operation} after device loss`);
2158
+ }
2159
+ }
2160
+
2161
+ /** Returns a monotonic timestamp for synchronous CPU encoding diagnostics. */
2162
+ function getTimestampMilliseconds(): number {
2163
+ return globalThis.performance?.now() ?? Date.now();
2164
+ }
2165
+
2166
+ /** Validates graph identity, capacity, and usage fields for a logical buffer. */
2167
+ function validateGraphBufferDescriptor(descriptor: GraphBufferDescriptor, device: Device): void {
2168
+ if (!descriptor.id) {
2169
+ throw new Error('GPUCommandGraph buffer id is required');
2170
+ }
2171
+ if (!Number.isSafeInteger(descriptor.byteLength) || descriptor.byteLength < 0) {
2172
+ throw new Error(`GPUCommandGraph buffer "${descriptor.id}" requires a valid byteLength`);
2173
+ }
2174
+ if (descriptor.byteLength > device.limits.maxBufferSize) {
2175
+ throw new Error(`GPUCommandGraph buffer "${descriptor.id}" exceeds the device buffer limit`);
2176
+ }
2177
+ if (!Number.isSafeInteger(descriptor.usage) || descriptor.usage <= 0) {
2178
+ throw new Error(`GPUCommandGraph buffer "${descriptor.id}" requires buffer usage flags`);
2179
+ }
2180
+ }
2181
+
2182
+ /** Validates the stable metadata used to check successive external-image snapshots. */
2183
+ function validateGraphExternalTextureDescriptor(
2184
+ descriptor: GraphExternalTextureDescriptor,
2185
+ device: Device
2186
+ ): void {
2187
+ if (!descriptor.id) {
2188
+ throw new Error('GPUCommandGraph external texture id is required');
2189
+ }
2190
+ for (const [name, value] of Object.entries({
2191
+ width: descriptor.width,
2192
+ height: descriptor.height
2193
+ })) {
2194
+ if (!Number.isSafeInteger(value) || value <= 0) {
2195
+ throw new Error(
2196
+ `GPUCommandGraph external texture "${descriptor.id}" ${name} must be a positive safe integer`
2197
+ );
2198
+ }
2199
+ }
2200
+ if (
2201
+ descriptor.width > device.limits.maxTextureDimension2D ||
2202
+ descriptor.height > device.limits.maxTextureDimension2D
2203
+ ) {
2204
+ throw new Error(
2205
+ `GPUCommandGraph external texture "${descriptor.id}" exceeds device dimension limits`
2206
+ );
2207
+ }
2208
+ }
2209
+
2210
+ /** Applies texture defaults and validates limits and dimension-specific invariants. */
2211
+ function normalizeGraphTextureDescriptor<Format extends TextureFormat>(
2212
+ descriptor: GraphTextureDescriptor<Format>,
2213
+ device: Device
2214
+ ): NormalizedGraphTextureDescriptor<Format> {
2215
+ if (!descriptor.id) {
2216
+ throw new Error('GPUCommandGraph texture id is required');
2217
+ }
2218
+ const dimension = descriptor.dimension ?? '2d';
2219
+ const depth = dimension === 'cube' ? 6 : (descriptor.depth ?? 1);
2220
+ const mipLevels = descriptor.mipLevels ?? 1;
2221
+ const samples = descriptor.samples ?? 1;
2222
+ for (const [name, value] of Object.entries({
2223
+ width: descriptor.width,
2224
+ height: descriptor.height,
2225
+ depth,
2226
+ mipLevels,
2227
+ samples
2228
+ })) {
2229
+ if (!Number.isSafeInteger(value) || value <= 0) {
2230
+ throw new Error(
2231
+ `GPUCommandGraph texture "${descriptor.id}" ${name} must be a positive safe integer`
2232
+ );
2233
+ }
2234
+ }
2235
+ if (!Number.isSafeInteger(descriptor.usage) || descriptor.usage <= 0) {
2236
+ throw new Error(`GPUCommandGraph texture "${descriptor.id}" requires texture usage flags`);
2237
+ }
2238
+ if (!device.isTextureFormatSupported(descriptor.format)) {
2239
+ throw new Error(
2240
+ `GPUCommandGraph texture "${descriptor.id}" format ${descriptor.format} is unsupported`
2241
+ );
2242
+ }
2243
+ if (dimension === '1d' && (descriptor.height !== 1 || depth !== 1)) {
2244
+ throw new Error(`GPUCommandGraph 1d texture "${descriptor.id}" requires height and depth 1`);
2245
+ }
2246
+ if (dimension === 'cube' && descriptor.width !== descriptor.height) {
2247
+ throw new Error(`GPUCommandGraph cube texture "${descriptor.id}" must be square`);
2248
+ }
2249
+ if (dimension === 'cube-array' && (descriptor.width !== descriptor.height || depth % 6 !== 0)) {
2250
+ throw new Error(
2251
+ `GPUCommandGraph cube-array texture "${descriptor.id}" must be square with depth divisible by 6`
2252
+ );
2253
+ }
2254
+ if (
2255
+ mipLevels >
2256
+ device.getMipLevelCount(descriptor.width, descriptor.height, dimension === '3d' ? depth : 1)
2257
+ ) {
2258
+ throw new Error(`GPUCommandGraph texture "${descriptor.id}" declares too many mip levels`);
2259
+ }
2260
+ const maximumWidth =
2261
+ dimension === '1d'
2262
+ ? device.limits.maxTextureDimension1D
2263
+ : dimension === '3d'
2264
+ ? device.limits.maxTextureDimension3D
2265
+ : device.limits.maxTextureDimension2D;
2266
+ const maximumHeight =
2267
+ dimension === '3d' ? device.limits.maxTextureDimension3D : device.limits.maxTextureDimension2D;
2268
+ const maximumDepth =
2269
+ dimension === '3d' ? device.limits.maxTextureDimension3D : device.limits.maxTextureArrayLayers;
2270
+ if (
2271
+ descriptor.width > maximumWidth ||
2272
+ descriptor.height > maximumHeight ||
2273
+ depth > maximumDepth
2274
+ ) {
2275
+ throw new Error(`GPUCommandGraph texture "${descriptor.id}" exceeds device dimension limits`);
2276
+ }
2277
+ return {
2278
+ id: descriptor.id,
2279
+ format: descriptor.format,
2280
+ width: descriptor.width,
2281
+ height: descriptor.height,
2282
+ usage: descriptor.usage,
2283
+ dimension,
2284
+ depth,
2285
+ mipLevels,
2286
+ samples
2287
+ };
2288
+ }
2289
+
2290
+ /** Applies view defaults, validates subresource bounds, and computes the selected extent. */
2291
+ function normalizeGraphTextureView<Format extends TextureFormat>(
2292
+ texture: GraphTextureHandle<Format>,
2293
+ props: GraphTextureViewProps
2294
+ ): Required<GraphTextureViewProps> & {width: number; height: number; depth: number} {
2295
+ const dimension = props.dimension ?? texture.dimension;
2296
+ const aspect = props.aspect ?? 'all';
2297
+ const baseMipLevel = props.baseMipLevel ?? 0;
2298
+ const mipLevelCount = props.mipLevelCount ?? texture.mipLevels - baseMipLevel;
2299
+ const baseArrayLayer = props.baseArrayLayer ?? 0;
2300
+ const maximumArrayLayerCount = texture.dimension === '3d' ? 1 : texture.depth;
2301
+ const arrayLayerCount = props.arrayLayerCount ?? maximumArrayLayerCount - baseArrayLayer;
2302
+ for (const [name, value] of Object.entries({
2303
+ baseMipLevel,
2304
+ mipLevelCount,
2305
+ baseArrayLayer,
2306
+ arrayLayerCount
2307
+ })) {
2308
+ if (!Number.isSafeInteger(value) || value < 0) {
2309
+ throw new Error(`Graph texture view ${name} must be a non-negative safe integer`);
2310
+ }
2311
+ }
2312
+ if (mipLevelCount === 0 || baseMipLevel + mipLevelCount > texture.mipLevels) {
2313
+ throw new Error(`Graph texture view exceeds texture "${texture.id}" mip levels`);
2314
+ }
2315
+ if (
2316
+ arrayLayerCount === 0 ||
2317
+ baseArrayLayer + arrayLayerCount > maximumArrayLayerCount ||
2318
+ (texture.dimension === '3d' && (baseArrayLayer !== 0 || arrayLayerCount !== 1))
2319
+ ) {
2320
+ throw new Error(`Graph texture view exceeds texture "${texture.id}" array layers`);
2321
+ }
2322
+ const width = Math.max(1, texture.width >> baseMipLevel);
2323
+ const height = texture.dimension === '1d' ? 1 : Math.max(1, texture.height >> baseMipLevel);
2324
+ const depth =
2325
+ texture.dimension === '3d' ? Math.max(1, texture.depth >> baseMipLevel) : arrayLayerCount;
2326
+ return {
2327
+ dimension,
2328
+ aspect,
2329
+ baseMipLevel,
2330
+ mipLevelCount,
2331
+ baseArrayLayer,
2332
+ arrayLayerCount,
2333
+ width,
2334
+ height,
2335
+ depth
2336
+ };
2337
+ }
2338
+
2339
+ /** Validates a strided logical range against its buffer capacity. */
2340
+ function validateGraphDataView(
2341
+ buffer: GraphBufferHandle,
2342
+ props: {length: number; byteOffset: number; byteStride: number; rowByteLength: number}
2343
+ ): void {
2344
+ for (const [name, value] of Object.entries(props)) {
2345
+ if (!Number.isSafeInteger(value) || value < 0) {
2346
+ throw new Error(`Graph data view ${name} must be a non-negative safe integer`);
2347
+ }
2348
+ }
2349
+ if (props.length > 1 && props.byteStride === 0) {
2350
+ throw new Error('Graph data view byteStride must be positive for multiple rows');
2351
+ }
2352
+ if (props.rowByteLength > props.byteStride && props.length > 1) {
2353
+ throw new Error('Graph data view rowByteLength cannot exceed byteStride');
2354
+ }
2355
+ const byteLength =
2356
+ props.length === 0 ? 0 : (props.length - 1) * props.byteStride + props.rowByteLength;
2357
+ const endByteOffset = props.byteOffset + byteLength;
2358
+ if (!Number.isSafeInteger(byteLength) || !Number.isSafeInteger(endByteOffset)) {
2359
+ throw new Error('Graph data view byte range exceeds safe integer precision');
2360
+ }
2361
+ if (endByteOffset > buffer.byteLength) {
2362
+ throw new Error(`Graph data view exceeds buffer "${buffer.id}" byte length`);
2363
+ }
2364
+ }
2365
+
2366
+ /** Validates an imported buffer's device, capacity, and usage against its logical descriptor. */
2367
+ function validateImportedBuffer(
2368
+ importedBuffer: GraphImportedBuffer,
2369
+ descriptor: Pick<GraphBufferDescriptor, 'id' | 'byteLength' | 'usage'>,
2370
+ device: Device
2371
+ ): void {
2372
+ const buffer = getCoreBuffer(importedBuffer);
2373
+ if (buffer.device !== device) {
2374
+ throw new Error(`GPUCommandGraph buffer "${descriptor.id}" belongs to another device`);
2375
+ }
2376
+ if (buffer.byteLength < descriptor.byteLength) {
2377
+ throw new Error(`GPUCommandGraph buffer "${descriptor.id}" is smaller than compiled capacity`);
2378
+ }
2379
+ if ((buffer.usage & descriptor.usage) !== descriptor.usage) {
2380
+ throw new Error(`GPUCommandGraph buffer "${descriptor.id}" has incompatible usage flags`);
2381
+ }
2382
+ }
2383
+
2384
+ /** Validates an imported texture's exact shape and format plus required usage flags. */
2385
+ function validateImportedTexture(
2386
+ importedTexture: GraphImportedTexture,
2387
+ descriptor: NormalizedGraphTextureDescriptor,
2388
+ device: Device
2389
+ ): void {
2390
+ const texture = getCoreTexture(importedTexture);
2391
+ if (texture.device !== device) {
2392
+ throw new Error(`GPUCommandGraph texture "${descriptor.id}" belongs to another device`);
2393
+ }
2394
+ for (const [name, expected, actual] of [
2395
+ ['format', descriptor.format, texture.format],
2396
+ ['dimension', descriptor.dimension, texture.dimension],
2397
+ ['width', descriptor.width, texture.width],
2398
+ ['height', descriptor.height, texture.height],
2399
+ ['depth', descriptor.depth, texture.depth],
2400
+ ['mipLevels', descriptor.mipLevels, texture.mipLevels],
2401
+ ['samples', descriptor.samples, texture.samples]
2402
+ ] as const) {
2403
+ if (actual !== expected) {
2404
+ throw new Error(
2405
+ `GPUCommandGraph texture "${descriptor.id}" has incompatible ${name} (${actual} !== ${expected})`
2406
+ );
2407
+ }
2408
+ }
2409
+ if ((texture.props.usage & descriptor.usage) !== descriptor.usage) {
2410
+ throw new Error(`GPUCommandGraph texture "${descriptor.id}" has incompatible usage flags`);
2411
+ }
2412
+ }
2413
+
2414
+ /** Validates one opaque, sampled-only external-image snapshot. */
2415
+ function validateImportedExternalTexture(
2416
+ texture: ExternalTexture,
2417
+ descriptor: GraphExternalTextureHandle,
2418
+ device: Device
2419
+ ): void {
2420
+ if (texture.device !== device) {
2421
+ throw new Error(
2422
+ `GPUCommandGraph external texture "${descriptor.id}" belongs to another device`
2423
+ );
2424
+ }
2425
+ if (texture.destroyed) {
2426
+ throw new Error(`GPUCommandGraph external texture "${descriptor.id}" has been destroyed`);
2427
+ }
2428
+ if (texture.width !== descriptor.width || texture.height !== descriptor.height) {
2429
+ throw new Error(
2430
+ `GPUCommandGraph external texture "${descriptor.id}" has incompatible dimensions (${texture.width}x${texture.height} !== ${descriptor.width}x${descriptor.height})`
2431
+ );
2432
+ }
2433
+ }
2434
+
2435
+ /** Checks that a logical buffer descriptor permits a node's declared access mode. */
2436
+ function validateBufferUseAgainstDescriptor(
2437
+ buffer: GraphBufferHandle,
2438
+ usage: GraphBufferUsage
2439
+ ): void {
2440
+ const requiredUsage = getRequiredBufferUsage(usage);
2441
+ if ((buffer.usage & requiredUsage) !== requiredUsage) {
2442
+ throw new Error(
2443
+ `GPUCommandGraph buffer "${buffer.id}" does not declare usage required by ${usage}`
2444
+ );
2445
+ }
2446
+ }
2447
+
2448
+ /** Checks that a logical texture descriptor permits a node's declared access mode. */
2449
+ function validateTextureUseAgainstDescriptor(
2450
+ texture: GraphTextureHandle,
2451
+ usage: GraphTextureUsage
2452
+ ): void {
2453
+ const requiredUsage = getRequiredTextureUsage(usage);
2454
+ if ((texture.usage & requiredUsage) !== requiredUsage) {
2455
+ throw new Error(
2456
+ `GPUCommandGraph texture "${texture.id}" does not declare usage required by ${usage}`
2457
+ );
2458
+ }
2459
+ }
2460
+
2461
+ /** Validates view restrictions imposed by the declared texture access mode. */
2462
+ function validateTextureViewForUsage(
2463
+ textureOrView: GraphTextureHandle | GraphTextureView,
2464
+ usage: GraphTextureUsage
2465
+ ): void {
2466
+ if (
2467
+ textureOrView instanceof GraphTextureView &&
2468
+ usage.startsWith('storage-') &&
2469
+ textureOrView.mipLevelCount !== 1
2470
+ ) {
2471
+ throw new Error('GPUCommandGraph storage texture views must contain exactly one mip level');
2472
+ }
2473
+ }
2474
+
2475
+ /** Maps a graph access mode to its required luma.gl buffer usage flag. */
2476
+ function getRequiredBufferUsage(usage: GraphBufferUsage): number {
2477
+ switch (usage) {
2478
+ case 'storage-read':
2479
+ case 'storage-write':
2480
+ case 'storage-read-write':
2481
+ return Buffer.STORAGE;
2482
+ case 'uniform':
2483
+ return Buffer.UNIFORM;
2484
+ case 'copy-source':
2485
+ return Buffer.COPY_SRC;
2486
+ case 'copy-destination':
2487
+ return Buffer.COPY_DST;
2488
+ case 'indirect':
2489
+ return Buffer.INDIRECT;
2490
+ case 'vertex':
2491
+ return Buffer.VERTEX;
2492
+ case 'index':
2493
+ return Buffer.INDEX;
2494
+ }
2495
+ }
2496
+
2497
+ /** Maps a graph access mode to its required luma.gl texture usage flag. */
2498
+ function getRequiredTextureUsage(usage: GraphTextureUsage): number {
2499
+ switch (usage) {
2500
+ case 'sampled':
2501
+ return Texture.SAMPLE;
2502
+ case 'storage-read':
2503
+ case 'storage-write':
2504
+ case 'storage-read-write':
2505
+ return Texture.STORAGE;
2506
+ case 'render-attachment':
2507
+ return Texture.RENDER;
2508
+ case 'copy-source':
2509
+ return Texture.COPY_SRC;
2510
+ case 'copy-destination':
2511
+ return Texture.COPY_DST;
2512
+ }
2513
+ }
2514
+
2515
+ /** Returns whether a logical view is exactly the texture's default full-resource view. */
2516
+ function isDefaultGraphTextureView(view: GraphTextureView): boolean {
2517
+ const texture = view.texture;
2518
+ return (
2519
+ view.dimension === texture.dimension &&
2520
+ view.aspect === 'all' &&
2521
+ view.baseMipLevel === 0 &&
2522
+ view.mipLevelCount === texture.mipLevels &&
2523
+ view.baseArrayLayer === 0 &&
2524
+ view.arrayLayerCount === (texture.dimension === '3d' ? 1 : texture.depth)
2525
+ );
2526
+ }