@luma.gl/engine 10.0.0-alpha.6 → 10.0.0-alpha.7

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 (208) hide show
  1. package/README.md +2 -2
  2. package/dist/arrow/arrow-geometry.cjs +1 -1
  3. package/dist/arrow/arrow-geometry.js +1 -1
  4. package/dist/arrow/arrow-picking.cjs +1 -1
  5. package/dist/arrow/arrow-picking.d.ts +1 -1
  6. package/dist/arrow/arrow-picking.js +1 -1
  7. package/dist/arrow/renderers/path/conversion/arrow-path-gpu-vectors.cjs +5 -5
  8. package/dist/arrow/renderers/path/conversion/arrow-path-gpu-vectors.d.ts +2 -2
  9. package/dist/arrow/renderers/path/conversion/arrow-path-gpu-vectors.js +5 -5
  10. package/dist/arrow/renderers/path/conversion/arrow-path-storage-gpu-vectors.cjs +3 -3
  11. package/dist/arrow/renderers/path/conversion/arrow-path-storage-gpu-vectors.js +3 -3
  12. package/dist/arrow/renderers/path/source/arrow-path-source-mapping.cjs +1 -1
  13. package/dist/arrow/renderers/path/source/arrow-path-source-mapping.js +1 -1
  14. package/dist/arrow/renderers/path/transforms/close-arrow-paths.cjs +5 -5
  15. package/dist/arrow/renderers/path/transforms/close-arrow-paths.d.ts +1 -1
  16. package/dist/arrow/renderers/path/transforms/close-arrow-paths.js +5 -5
  17. package/dist/arrow/renderers/path/transforms/gpu-path-float64-deltas.cjs +3 -3
  18. package/dist/arrow/renderers/path/transforms/gpu-path-float64-deltas.d.ts +1 -1
  19. package/dist/arrow/renderers/path/transforms/gpu-path-float64-deltas.js +3 -3
  20. package/dist/arrow/renderers/path/transforms/path-view-origins.cjs +1 -1
  21. package/dist/arrow/renderers/path/transforms/path-view-origins.d.ts +1 -1
  22. package/dist/arrow/renderers/path/transforms/path-view-origins.js +1 -1
  23. package/dist/arrow/renderers/polygon/conversion/arrow-polygon-gpu-vectors.cjs +1 -1
  24. package/dist/arrow/renderers/polygon/conversion/arrow-polygon-gpu-vectors.d.ts +1 -1
  25. package/dist/arrow/renderers/polygon/conversion/arrow-polygon-gpu-vectors.js +1 -1
  26. package/dist/arrow/renderers/polygon/renderers/arrow-polygon-renderer.cjs +4 -4
  27. package/dist/arrow/renderers/polygon/renderers/arrow-polygon-renderer.js +4 -4
  28. package/dist/arrow/renderers/polygon/source/arrow-polygon-source-mapping.cjs +1 -1
  29. package/dist/arrow/renderers/polygon/source/arrow-polygon-source-mapping.js +1 -1
  30. package/dist/arrow/renderers/splats/conversion/make-gpu-splat-data-from-arrow.cjs +1 -1
  31. package/dist/arrow/renderers/splats/conversion/make-gpu-splat-data-from-arrow.js +1 -1
  32. package/dist/arrow/renderers/text/conversion/convert-arrow-text-to-attribute.cjs +1 -1
  33. package/dist/arrow/renderers/text/conversion/convert-arrow-text-to-attribute.d.ts +1 -1
  34. package/dist/arrow/renderers/text/conversion/convert-arrow-text-to-attribute.js +1 -1
  35. package/dist/arrow/renderers/text/conversion/convert-arrow-text-vectors.cjs +5 -5
  36. package/dist/arrow/renderers/text/conversion/convert-arrow-text-vectors.d.ts +1 -1
  37. package/dist/arrow/renderers/text/conversion/convert-arrow-text-vectors.js +5 -5
  38. package/dist/arrow/renderers/text/conversion/make-gpu-text-data-from-arrow.cjs +1 -1
  39. package/dist/arrow/renderers/text/conversion/make-gpu-text-data-from-arrow.js +1 -1
  40. package/dist/arrow/renderers/text/renderers/arrow-text-picking.cjs +1 -1
  41. package/dist/arrow/renderers/text/renderers/arrow-text-picking.js +1 -1
  42. package/dist/arrow/renderers/text/renderers/arrow-text-renderer.cjs +5 -5
  43. package/dist/arrow/renderers/text/renderers/arrow-text-renderer.js +5 -5
  44. package/dist/arrow/renderers/text/source/arrow-text-source-mapping.cjs +1 -1
  45. package/dist/arrow/renderers/text/source/arrow-text-source-mapping.js +1 -1
  46. package/dist/compute/computation.cjs +2 -2
  47. package/dist/compute/computation.d.ts +1 -1
  48. package/dist/compute/computation.d.ts.map +1 -1
  49. package/dist/compute/computation.js +2 -2
  50. package/dist/compute/computation.js.map +1 -1
  51. package/dist/compute/texture-transform.d.ts +2 -2
  52. package/dist/compute/texture-transform.d.ts.map +1 -1
  53. package/dist/compute/texture-transform.js.map +1 -1
  54. package/dist/dist.dev.js +395 -322
  55. package/dist/dist.min.js +68 -63
  56. package/dist/experimental/materials/emissive-material.cjs +1 -1
  57. package/dist/experimental/materials/emissive-material.d.ts +1 -1
  58. package/dist/experimental/materials/emissive-material.d.ts.map +1 -1
  59. package/dist/experimental/materials/emissive-material.js +1 -1
  60. package/dist/experimental/materials/emissive-material.js.map +1 -1
  61. package/dist/experimental/materials/glass-material.cjs +1 -1
  62. package/dist/experimental/materials/glass-material.d.ts +1 -1
  63. package/dist/experimental/materials/glass-material.d.ts.map +1 -1
  64. package/dist/experimental/materials/glass-material.js +1 -1
  65. package/dist/experimental/materials/glass-material.js.map +1 -1
  66. package/dist/experimental/materials/glass-transmission.cjs +1 -1
  67. package/dist/experimental/materials/glass-transmission.d.ts +1 -1
  68. package/dist/experimental/materials/glass-transmission.d.ts.map +1 -1
  69. package/dist/experimental/materials/glass-transmission.js +1 -1
  70. package/dist/experimental/materials/glass-transmission.js.map +1 -1
  71. package/dist/experimental/materials/index.cjs.map +1 -1
  72. package/dist/experimental/materials/optical-caustics.cjs +1 -1
  73. package/dist/experimental/materials/optical-caustics.d.ts +1 -1
  74. package/dist/experimental/materials/optical-caustics.d.ts.map +1 -1
  75. package/dist/experimental/materials/optical-caustics.js +1 -1
  76. package/dist/experimental/materials/optical-caustics.js.map +1 -1
  77. package/dist/experimental/materials/optical-point-lights.cjs +1 -1
  78. package/dist/experimental/materials/optical-point-lights.d.ts +1 -1
  79. package/dist/experimental/materials/optical-point-lights.d.ts.map +1 -1
  80. package/dist/experimental/materials/optical-point-lights.js +1 -1
  81. package/dist/experimental/materials/optical-point-lights.js.map +1 -1
  82. package/dist/experimental/materials/reflective-material.cjs +1 -1
  83. package/dist/experimental/materials/reflective-material.d.ts +1 -1
  84. package/dist/experimental/materials/reflective-material.d.ts.map +1 -1
  85. package/dist/experimental/materials/reflective-material.js +1 -1
  86. package/dist/experimental/materials/reflective-material.js.map +1 -1
  87. package/dist/geometry/gpu-geometry.cjs +1 -1
  88. package/dist/geometry/gpu-geometry.d.ts.map +1 -1
  89. package/dist/geometry/gpu-geometry.js +1 -1
  90. package/dist/geometry/gpu-geometry.js.map +1 -1
  91. package/dist/gltf/gltf/gltf-lod.cjs +21 -6
  92. package/dist/gltf/gltf/gltf-lod.d.ts.map +1 -1
  93. package/dist/gltf/gltf/gltf-lod.js +20 -4
  94. package/dist/gltf/gltf/gltf-lod.js.map +1 -1
  95. package/dist/gltf/index.cjs.map +1 -1
  96. package/dist/gltf/types/gltf-json-schema.d.ts +37 -37
  97. package/dist/gltf/types/gltf-json-schema.d.ts.map +1 -1
  98. package/dist/gltf/types/gltf-postprocessed-schema.d.ts +28 -28
  99. package/dist/gltf/types/gltf-postprocessed-schema.d.ts.map +1 -1
  100. package/dist/graph/models/index.cjs.map +1 -1
  101. package/dist/graph/models/path/path-attribute-model.cjs +2 -2
  102. package/dist/graph/models/path/path-attribute-model.d.ts +2 -2
  103. package/dist/graph/models/path/path-attribute-model.js +2 -2
  104. package/dist/graph/models/path/path-storage-model.cjs +1 -1
  105. package/dist/graph/models/path/path-storage-model.d.ts +1 -1
  106. package/dist/graph/models/path/path-storage-model.js +1 -1
  107. package/dist/graph/models/path/path-trips-storage-model.d.ts +2 -2
  108. package/dist/graph/models/polygon/polygon-attribute-model.cjs +2 -2
  109. package/dist/graph/models/polygon/polygon-attribute-model.js +2 -2
  110. package/dist/graph/models/polygon/polygon-storage-model.cjs +2 -2
  111. package/dist/graph/models/polygon/polygon-storage-model.js +2 -2
  112. package/dist/graph/tables/gpu-table-model.cjs +1 -1
  113. package/dist/graph/tables/gpu-table-model.js +1 -1
  114. package/dist/graph/tables/gpu-table-transform.cjs +2 -2
  115. package/dist/graph/tables/gpu-table-transform.d.ts +1 -1
  116. package/dist/graph/tables/gpu-table-transform.js +2 -2
  117. package/dist/graph/tables/index.cjs.map +1 -1
  118. package/dist/index.cjs.map +1 -1
  119. package/dist/model/gpu-vector-model.cjs +104 -79
  120. package/dist/model/gpu-vector-model.d.ts +1 -1
  121. package/dist/model/gpu-vector-model.d.ts.map +1 -1
  122. package/dist/model/gpu-vector-model.js +129 -98
  123. package/dist/model/gpu-vector-model.js.map +1 -1
  124. package/dist/splats/splat-data.cjs +1 -1
  125. package/dist/splats/splat-data.d.ts +1 -1
  126. package/dist/splats/splat-data.js +1 -1
  127. package/dist/splats/splat-renderer.cjs +1 -1
  128. package/dist/splats/splat-renderer.js +1 -1
  129. package/dist/text/experimental.cjs +151 -3
  130. package/dist/text/experimental.d.ts +1 -1
  131. package/dist/text/experimental.d.ts.map +1 -1
  132. package/dist/text/experimental.js +1 -1
  133. package/dist/text/experimental.js.map +1 -1
  134. package/dist/text/index.cjs +41 -3
  135. package/dist/text/index.d.ts +1 -1
  136. package/dist/text/index.d.ts.map +1 -1
  137. package/dist/text/index.js +1 -1
  138. package/dist/text/index.js.map +1 -1
  139. package/dist/text/text-2d/experimental.cjs +128 -18
  140. package/dist/text/text-2d/experimental.d.ts +8 -8
  141. package/dist/text/text-2d/experimental.d.ts.map +1 -1
  142. package/dist/text/text-2d/experimental.js +7 -8
  143. package/dist/text/text-2d/experimental.js.map +1 -1
  144. package/dist/text/text-2d/model-utils/text-model-props.d.ts +1 -1
  145. package/dist/text/text-2d/models/text-attribute-model.cjs +1 -1
  146. package/dist/text/text-2d/models/text-attribute-model.js +1 -1
  147. package/dist/utils/deep-equal.cjs +3 -1
  148. package/dist/utils/deep-equal.d.ts +1 -1
  149. package/dist/utils/deep-equal.d.ts.map +1 -1
  150. package/dist/utils/deep-equal.js +3 -1
  151. package/dist/utils/deep-equal.js.map +1 -1
  152. package/dist/utils/get-platform-info.cjs +9 -3
  153. package/dist/utils/get-platform-info.d.ts +1 -1
  154. package/dist/utils/get-platform-info.d.ts.map +1 -1
  155. package/dist/utils/get-platform-info.js +1 -1
  156. package/dist/utils/get-platform-info.js.map +1 -1
  157. package/package.json +6 -7
  158. package/src/arrow/arrow-geometry.ts +1 -1
  159. package/src/arrow/arrow-picking.ts +2 -2
  160. package/src/arrow/renderers/path/conversion/arrow-path-gpu-vectors.ts +9 -9
  161. package/src/arrow/renderers/path/conversion/arrow-path-storage-gpu-vectors.ts +4 -4
  162. package/src/arrow/renderers/path/source/arrow-path-source-mapping.ts +1 -1
  163. package/src/arrow/renderers/path/transforms/close-arrow-paths.ts +5 -5
  164. package/src/arrow/renderers/path/transforms/gpu-path-float64-deltas.ts +3 -3
  165. package/src/arrow/renderers/path/transforms/path-view-origins.ts +2 -2
  166. package/src/arrow/renderers/polygon/conversion/arrow-polygon-gpu-vectors.ts +1 -1
  167. package/src/arrow/renderers/polygon/renderers/arrow-polygon-renderer.ts +4 -4
  168. package/src/arrow/renderers/polygon/source/arrow-polygon-source-mapping.ts +1 -1
  169. package/src/arrow/renderers/splats/conversion/make-gpu-splat-data-from-arrow.ts +1 -1
  170. package/src/arrow/renderers/text/conversion/convert-arrow-text-to-attribute.ts +2 -2
  171. package/src/arrow/renderers/text/conversion/convert-arrow-text-to-storage.ts +1 -1
  172. package/src/arrow/renderers/text/conversion/convert-arrow-text-vectors.ts +6 -6
  173. package/src/arrow/renderers/text/conversion/make-gpu-text-data-from-arrow.ts +1 -1
  174. package/src/arrow/renderers/text/renderers/arrow-text-picking.ts +1 -1
  175. package/src/arrow/renderers/text/renderers/arrow-text-renderer.ts +5 -5
  176. package/src/arrow/renderers/text/source/arrow-text-source-mapping.ts +1 -1
  177. package/src/compute/computation.ts +5 -3
  178. package/src/compute/texture-transform.ts +2 -2
  179. package/src/experimental/materials/emissive-material.ts +1 -1
  180. package/src/experimental/materials/glass-material.ts +1 -1
  181. package/src/experimental/materials/glass-transmission.ts +1 -1
  182. package/src/experimental/materials/optical-caustics.ts +1 -1
  183. package/src/experimental/materials/optical-point-lights.ts +1 -1
  184. package/src/experimental/materials/reflective-material.ts +1 -1
  185. package/src/experimental/textures/rgba-decoder.ts +1 -1
  186. package/src/geometry/gpu-geometry.ts +1 -4
  187. package/src/gltf/gltf/gltf-lod.ts +22 -4
  188. package/src/gltf/physics/README.md +1 -1
  189. package/src/gltf/types/gltf-json-schema.ts +37 -37
  190. package/src/gltf/types/gltf-postprocessed-schema.ts +28 -28
  191. package/src/graph/models/path/path-attribute-model.ts +3 -3
  192. package/src/graph/models/path/path-storage-model.ts +2 -2
  193. package/src/graph/models/path/path-trips-storage-model.ts +2 -2
  194. package/src/graph/models/polygon/polygon-attribute-model.ts +2 -2
  195. package/src/graph/models/polygon/polygon-storage-model.ts +2 -2
  196. package/src/graph/tables/gpu-table-model.ts +1 -1
  197. package/src/graph/tables/gpu-table-transform.ts +3 -3
  198. package/src/model/gpu-vector-model.ts +147 -120
  199. package/src/splats/splat-data.ts +1 -1
  200. package/src/splats/splat-renderer.ts +1 -1
  201. package/src/text/README.md +1 -1
  202. package/src/text/experimental.ts +122 -1
  203. package/src/text/index.ts +40 -1
  204. package/src/text/text-2d/experimental.ts +104 -8
  205. package/src/text/text-2d/model-utils/text-model-props.ts +1 -1
  206. package/src/text/text-2d/models/text-attribute-model.ts +1 -1
  207. package/src/utils/deep-equal.ts +4 -2
  208. package/src/utils/get-platform-info.ts +1 -1
@@ -30,7 +30,7 @@ export type AccessorSparseIndices = {
30
30
  */
31
31
  componentType: 5121 | 5123 | 5125 | number;
32
32
  extensions?: any;
33
- extras?: any;
33
+ extras?: unknown;
34
34
  // [k: string]: any;
35
35
  };
36
36
 
@@ -50,7 +50,7 @@ export type AccessorSparseValues = {
50
50
  */
51
51
  byteOffset?: number;
52
52
  extensions?: any;
53
- extras?: any;
53
+ extras?: unknown;
54
54
  // [k: string]: any;
55
55
  };
56
56
 
@@ -74,7 +74,7 @@ export type AccessorSparse = {
74
74
  */
75
75
  values: AccessorSparseValues;
76
76
  extensions?: any;
77
- extras?: any;
77
+ extras?: unknown;
78
78
  // [k: string]: any;
79
79
  };
80
80
 
@@ -140,7 +140,7 @@ export type GLTFAccessorPostprocessed = {
140
140
  sparse?: AccessorSparse;
141
141
  name?: any;
142
142
  extensions?: any;
143
- extras?: any;
143
+ extras?: unknown;
144
144
  // [k: string]: any;
145
145
  };
146
146
 
@@ -160,7 +160,7 @@ export type AnimationChannelTarget = {
160
160
  */
161
161
  path: 'translation' | 'rotation' | 'scale' | 'weights' | string;
162
162
  extensions?: any;
163
- extras?: any;
163
+ extras?: unknown;
164
164
  // [k: string]: any;
165
165
  };
166
166
 
@@ -180,7 +180,7 @@ export type AnimationChannel = {
180
180
  */
181
181
  target: AnimationChannelTarget;
182
182
  extensions?: any;
183
- extras?: any;
183
+ extras?: unknown;
184
184
  // [k: string]: any;
185
185
  };
186
186
 
@@ -204,7 +204,7 @@ export type AnimationSampler = {
204
204
  */
205
205
  output: GlTfId;
206
206
  extensions?: any;
207
- extras?: any;
207
+ extras?: unknown;
208
208
  // [k: string]: any;
209
209
  };
210
210
 
@@ -221,7 +221,7 @@ export type GLTFAnimationPostprocessed = {
221
221
  samplers: AnimationSampler[];
222
222
  name?: any;
223
223
  extensions?: any;
224
- extras?: any;
224
+ extras?: unknown;
225
225
  // [k: string]: any;
226
226
  };
227
227
 
@@ -252,7 +252,7 @@ export type Asset = {
252
252
  */
253
253
  thumbnail?: GLTFImagePostprocessed;
254
254
  extensions?: any;
255
- extras?: any;
255
+ extras?: unknown;
256
256
  // [k: string]: any;
257
257
  };
258
258
 
@@ -274,7 +274,7 @@ export type GLTFBufferPostprocessed = {
274
274
  chunk?: number;
275
275
  name?: any;
276
276
  extensions?: any;
277
- extras?: any;
277
+ extras?: unknown;
278
278
  // [k: string]: any;
279
279
  };
280
280
 
@@ -308,7 +308,7 @@ export type GLTFBufferViewPostprocessed = {
308
308
  target?: 34962 | 34963 | number;
309
309
  name?: any;
310
310
  extensions?: any;
311
- extras?: any;
311
+ extras?: unknown;
312
312
  // [k: string]: any;
313
313
  };
314
314
 
@@ -336,7 +336,7 @@ export type CameraOrthographic = {
336
336
  */
337
337
  znear: number;
338
338
  extensions?: any;
339
- extras?: any;
339
+ extras?: unknown;
340
340
  // [k: string]: any;
341
341
  };
342
342
 
@@ -364,7 +364,7 @@ export type CameraPerspective = {
364
364
  */
365
365
  znear: number;
366
366
  extensions?: any;
367
- extras?: any;
367
+ extras?: unknown;
368
368
  // [k: string]: any;
369
369
  };
370
370
 
@@ -387,7 +387,7 @@ export type GLTFCameraPostprocessed = {
387
387
  type: 'perspective' | 'orthographic' | string;
388
388
  name?: any;
389
389
  extensions?: any;
390
- extras?: any;
390
+ extras?: unknown;
391
391
  // [k: string]: any;
392
392
  };
393
393
 
@@ -419,7 +419,7 @@ export type GLTFImagePostprocessed = {
419
419
  bufferView?: GLTFBufferViewPostprocessed;
420
420
  name?: any;
421
421
  extensions?: any;
422
- extras?: any;
422
+ extras?: unknown;
423
423
  // [k: string]: any;
424
424
  };
425
425
 
@@ -440,7 +440,7 @@ export type GLTFTextureInfoPostprocessed = {
440
440
  */
441
441
  texCoord?: number;
442
442
  extensions?: any;
443
- extras?: any;
443
+ extras?: unknown;
444
444
  // [k: string]: any;
445
445
  };
446
446
 
@@ -472,7 +472,7 @@ export type MaterialPbrMetallicRoughnessPostprocessed = {
472
472
  */
473
473
  metallicRoughnessTexture?: GLTFTextureInfoPostprocessed;
474
474
  extensions?: any;
475
- extras?: any;
475
+ extras?: unknown;
476
476
  // [k: string]: any;
477
477
  };
478
478
 
@@ -488,7 +488,7 @@ export type MaterialNormalTextureInfoPostprocessed = {
488
488
  */
489
489
  scale?: number;
490
490
  extensions?: any;
491
- extras?: any;
491
+ extras?: unknown;
492
492
  // [k: string]: any;
493
493
  };
494
494
 
@@ -504,7 +504,7 @@ export type MaterialOcclusionTextureInfoPostprocessed = {
504
504
  */
505
505
  strength?: number;
506
506
  extensions?: any;
507
- extras?: any;
507
+ extras?: unknown;
508
508
  // [k: string]: any;
509
509
  };
510
510
 
@@ -517,7 +517,7 @@ export type GLTFMaterialPostprocessed = {
517
517
  // GLTF attributes (possibly overridden)
518
518
  name?: any;
519
519
  extensions?: any;
520
- extras?: any;
520
+ extras?: unknown;
521
521
  /**
522
522
  * A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology. When not specified, all the default values of `pbrMetallicRoughness` apply.
523
523
  */
@@ -581,7 +581,7 @@ export type GLTFMeshPrimitivePostprocessed = {
581
581
  [k: string]: GlTfId;
582
582
  }[];
583
583
  extensions?: any;
584
- extras?: any;
584
+ extras?: unknown;
585
585
  /** Loader-derived primitive-restart topology. */
586
586
  primitiveRestart?: import('./gltf-types').GLTFPrimitiveRestartData;
587
587
  // [k: string]: any;
@@ -602,7 +602,7 @@ export type GLTFMeshPostprocessed = {
602
602
  weights?: number[];
603
603
  name?: any;
604
604
  extensions?: any;
605
- extras?: any;
605
+ extras?: unknown;
606
606
  // [k: string]: any;
607
607
  };
608
608
 
@@ -653,7 +653,7 @@ export type GLTFNodePostprocessed = {
653
653
  weights?: number[];
654
654
  name?: any;
655
655
  extensions?: any;
656
- extras?: any;
656
+ extras?: unknown;
657
657
  // [k: string]: any;
658
658
  };
659
659
 
@@ -676,7 +676,7 @@ export type GLTFSamplerPostprocessed = {
676
676
  wrapT?: 33071 | 33648 | 10497 | number;
677
677
  name?: any;
678
678
  extensions?: any;
679
- extras?: any;
679
+ extras?: unknown;
680
680
  // [k: string]: any;
681
681
  };
682
682
 
@@ -691,7 +691,7 @@ export type GLTFScenePostprocessed = {
691
691
  nodes?: GLTFNodePostprocessed[];
692
692
  name?: any;
693
693
  extensions?: any;
694
- extras?: any;
694
+ extras?: unknown;
695
695
  // [k: string]: any;
696
696
  };
697
697
 
@@ -716,7 +716,7 @@ export type GLTFSkinPostprocessed = {
716
716
  joints: GlTfId[];
717
717
  name?: any;
718
718
  extensions?: any;
719
- extras?: any;
719
+ extras?: unknown;
720
720
  // [k: string]: any;
721
721
  };
722
722
 
@@ -737,7 +737,7 @@ export type GLTFTexturePostprocessed = {
737
737
  source?: GLTFImagePostprocessed;
738
738
  name?: any;
739
739
  extensions?: any;
740
- extras?: any;
740
+ extras?: unknown;
741
741
  // [k: string]: any;
742
742
  };
743
743
 
@@ -783,6 +783,6 @@ export type GLTFPostprocessed = {
783
783
  /** An array of textures. */
784
784
  textures: GLTFTexturePostprocessed[];
785
785
  extensions?: Record<string, Record<string, any>>;
786
- extras?: any;
786
+ extras?: unknown;
787
787
  // [k: string]: any;
788
788
  };
@@ -11,9 +11,9 @@ import {
11
11
  } from '@luma.gl/core';
12
12
  import {GPUTableModel, type GPUTableModelProps} from '@luma.gl/engine/tables';
13
13
  import type {GPUTable} from '@luma.gl/graph/gpu-tables';
14
- import type {GPUVector} from '@luma.gl/gpgpu/gpu-data';
15
- import {getGPUDataBuffersForLayout, getGPUDataByteOffsetsForLayout} from '@luma.gl/gpgpu/gpu-data';
16
- import {isVertexListGPUVectorFormat, type VertexList} from '@luma.gl/gpgpu/gpu-data';
14
+ import type {GPUVector} from '@luma.gl/graph/gpu-data';
15
+ import {getGPUDataBuffersForLayout, getGPUDataByteOffsetsForLayout} from '@luma.gl/graph/gpu-data';
16
+ import {isVertexListGPUVectorFormat, type VertexList} from '@luma.gl/graph/gpu-data';
17
17
  import type {GeneratedBufferBatch} from '@luma.gl/graph/gpu-tables';
18
18
  import {type GPUInputSchema, validateGPUInputVectors} from '@luma.gl/graph/gpu-tables';
19
19
 
@@ -14,8 +14,8 @@ import {
14
14
  } from '@luma.gl/core';
15
15
  import {DynamicBuffer} from '@luma.gl/core/dynamic';
16
16
  import {Model, type ModelProps} from '../../../index';
17
- import {GPUVector} from '@luma.gl/gpgpu/gpu-data';
18
- import {type GPUVectorFormat} from '@luma.gl/gpgpu/gpu-data';
17
+ import {GPUVector} from '@luma.gl/graph/gpu-data';
18
+ import {type GPUVectorFormat} from '@luma.gl/graph/gpu-data';
19
19
  import {planGeneratedBufferBatches} from '@luma.gl/graph/gpu-tables';
20
20
  import {
21
21
  createGpuPathExpansionInput,
@@ -4,8 +4,8 @@
4
4
 
5
5
  import {Buffer, type Device} from '@luma.gl/core';
6
6
  import {DynamicBuffer} from '@luma.gl/core/dynamic';
7
- import type {GPUVector} from '@luma.gl/gpgpu/gpu-data';
8
- import type {VertexList} from '@luma.gl/gpgpu/gpu-data';
7
+ import type {GPUVector} from '@luma.gl/graph/gpu-data';
8
+ import type {VertexList} from '@luma.gl/graph/gpu-data';
9
9
  import {
10
10
  PathStorageModel,
11
11
  type PathStorageInputProps,
@@ -6,10 +6,10 @@ import type {BufferLayout, Device} from '@luma.gl/core';
6
6
  import {getIndexPickingModule, indexPicking, supportsIndexPicking} from '../../../index';
7
7
  import {GPUTableModel, type GPUTableModelProps} from '@luma.gl/engine/tables';
8
8
  import {GPURecordBatch} from '@luma.gl/graph/gpu-tables';
9
- import {GPUConstant} from '@luma.gl/gpgpu/gpu-data';
9
+ import {GPUConstant} from '@luma.gl/graph/gpu-data';
10
10
  import type {GPUTypeMap} from '@luma.gl/graph/gpu-tables';
11
11
  import {GPUTable} from '@luma.gl/graph/gpu-tables';
12
- import {getGPUVectorData} from '@luma.gl/gpgpu/gpu-data';
12
+ import {getGPUVectorData} from '@luma.gl/graph/gpu-data';
13
13
  import {
14
14
  assertPolygonGPUVectorInputs,
15
15
  POLYGON_GPU_INPUT_SCHEMA,
@@ -6,10 +6,10 @@ import {type Device} from '@luma.gl/core';
6
6
  import {getIndexPickingModule, indexPicking, supportsIndexPicking} from '../../../index';
7
7
  import {GPUTableModel, type GPUTableModelProps} from '@luma.gl/engine/tables';
8
8
  import {GPURecordBatch} from '@luma.gl/graph/gpu-tables';
9
- import {GPUConstant} from '@luma.gl/gpgpu/gpu-data';
9
+ import {GPUConstant} from '@luma.gl/graph/gpu-data';
10
10
  import type {GPUTypeMap} from '@luma.gl/graph/gpu-tables';
11
11
  import {GPUTable} from '@luma.gl/graph/gpu-tables';
12
- import {getGPUVectorData} from '@luma.gl/gpgpu/gpu-data';
12
+ import {getGPUVectorData} from '@luma.gl/graph/gpu-data';
13
13
  import {
14
14
  assertPolygonGPUVectorInputs,
15
15
  POLYGON_GPU_INPUT_SCHEMA,
@@ -20,7 +20,7 @@ import {GPUTableShaderBindings} from '@luma.gl/graph/gpu-tables';
20
20
  import type {GPURecordBatch} from '@luma.gl/graph/gpu-tables';
21
21
  import {GPU_TABLE_INDEX_COLUMN_NAME} from '@luma.gl/graph/gpu-tables';
22
22
  import {GPUTable} from '@luma.gl/graph/gpu-tables';
23
- import {getGPUDataBuffersForLayout, getGPUDataByteOffsetsForLayout} from '@luma.gl/gpgpu/gpu-data';
23
+ import {getGPUDataBuffersForLayout, getGPUDataByteOffsetsForLayout} from '@luma.gl/graph/gpu-data';
24
24
 
25
25
  /** Controls which Model draw count mirrors the current GPU table row count. */
26
26
  export type GPUTableModelCount = 'instance' | 'vertex' | 'none';
@@ -5,10 +5,10 @@
5
5
  import {Buffer, type BufferLayout, Device, type RenderPassProps} from '@luma.gl/core';
6
6
  import {BufferTransform, type BufferTransformProps} from '../../compute/buffer-transform';
7
7
  import {DynamicBuffer} from '@luma.gl/core/dynamic';
8
- import type {GPUData} from '@luma.gl/gpgpu/gpu-data';
9
- import {GPUVector} from '@luma.gl/gpgpu/gpu-data';
8
+ import type {GPUData} from '@luma.gl/graph/gpu-data';
9
+ import {GPUVector} from '@luma.gl/graph/gpu-data';
10
10
  import {GPURecordBatch, GPUTable} from '@luma.gl/graph/gpu-tables';
11
- import {getGPUDataBuffersForLayout} from '@luma.gl/gpgpu/gpu-data';
11
+ import {getGPUDataBuffersForLayout} from '@luma.gl/graph/gpu-data';
12
12
 
13
13
  type TableTransformBufferMap = NonNullable<Parameters<BufferTransform['run']>[0]>['outputBuffers'];
14
14
  type TableTransformRunOptions = Parameters<BufferTransform['run']>[0];
@@ -282,7 +282,7 @@ export class GPUVectorModel {
282
282
  /** Factory used to create shaders */
283
283
  readonly shaderFactory: ShaderFactory;
284
284
  /** User-supplied per-model data */
285
- userData: {[key: string]: any} = {};
285
+ userData: {[key: string]: unknown} = {};
286
286
 
287
287
  // Fixed properties (change can trigger pipeline rebuild)
288
288
 
@@ -422,119 +422,130 @@ export class GPUVectorModel {
422
422
  this.explicitBufferLayout = this.bufferLayout;
423
423
  this.geometryVectorBindings = new GPUVectorBindings(device, `${this.id}-geometry`);
424
424
  this.attributeVectorBindings = new GPUVectorBindings(device, `${this.id}-attributes`);
425
- this._initializeProps(props);
425
+ try {
426
+ this._initializeProps(props);
426
427
 
427
- const platformInfo = getPlatformInfo(device);
428
- const resolvedPlugins = resolveShaderPlugins(this.props.plugins, platformInfo.shaderLanguage);
428
+ const platformInfo = getPlatformInfo(device);
429
+ const resolvedPlugins = resolveShaderPlugins(this.props.plugins, platformInfo.shaderLanguage);
429
430
 
430
- // Setup shader module inputs
431
- const shaderInputModules = mergeShaderPluginModules(
432
- this.props.modules,
433
- resolvedPlugins.modules
434
- );
435
- const moduleMap = Object.fromEntries(shaderInputModules.map(module => [module.name, module]));
431
+ // Setup shader module inputs
432
+ const shaderInputModules = mergeShaderPluginModules(
433
+ this.props.modules,
434
+ resolvedPlugins.modules
435
+ );
436
+ const moduleMap = Object.fromEntries(shaderInputModules.map(module => [module.name, module]));
436
437
 
437
- const shaderInputs =
438
- props.shaderInputs ||
439
- new ShaderInputs(moduleMap, {disableWarnings: this.props.disableWarnings});
440
- if (props.shaderInputs && resolvedPlugins.modules.length > 0) {
441
- shaderInputs.addModules(resolvedPlugins.modules);
442
- }
443
- // @ts-ignore
444
- this.setShaderInputs(shaderInputs);
438
+ const shaderInputs =
439
+ props.shaderInputs ||
440
+ new ShaderInputs(moduleMap, {disableWarnings: this.props.disableWarnings});
441
+ if (props.shaderInputs && resolvedPlugins.modules.length > 0) {
442
+ shaderInputs.addModules(resolvedPlugins.modules);
443
+ }
444
+ // @ts-ignore
445
+ this.setShaderInputs(shaderInputs);
445
446
 
446
- // Setup shader assembler
447
- const modules = mergeShaderModules(this.props.modules, shaderInputs.getModules());
448
- const defines = {...resolvedPlugins.defines, ...this.props.defines};
447
+ // Setup shader assembler
448
+ const modules = mergeShaderModules(this.props.modules, shaderInputs.getModules());
449
+ const defines = {...resolvedPlugins.defines, ...this.props.defines};
449
450
 
450
- if (this.device.type === 'webgl') {
451
- this.props._uniformBlockLayouts = getShaderModuleUniformBlockLayouts(modules);
452
- }
451
+ if (this.device.type === 'webgl') {
452
+ this.props._uniformBlockLayouts = getShaderModuleUniformBlockLayouts(modules);
453
+ }
453
454
 
454
- this.props.shaderLayout =
455
- mergeShaderModuleBindingsIntoLayout(this.props.shaderLayout, modules) || null;
456
-
457
- const isWebGPU = this.device.type === 'webgpu';
458
-
459
- // WebGPU
460
- // TODO - hack to support unified WGSL shader
461
- // TODO - this is wrong, compile a single shader
462
- if (isWebGPU && this.props.source) {
463
- // WGSL
464
- const shaderAssembler = this.props.shaderAssembler;
465
- // WGSL sources require an assembler with WGSL-specific hooks and binding state.
466
- assert(isShaderAssemblerForLanguage(shaderAssembler, 'wgsl'));
467
- const {
468
- source,
469
- getUniforms,
470
- bindingTable,
471
- entryPoints = {},
472
- shaderLayout: assembledShaderLayout
473
- } = shaderAssembler.assembleWGSLShader({
474
- platformInfo,
475
- ...this.props,
476
- modules,
477
- defines,
478
- pluginInjections: resolvedPlugins.injections,
479
- pluginVertexInputs: resolvedPlugins.vertexInputs,
480
- pluginVaryings: resolvedPlugins.varyings
481
- });
482
- this.source = source;
483
- this.props.vertexEntryPoint = entryPoints.vertex || this.props.vertexEntryPoint;
484
- this.props.fragmentEntryPoint = entryPoints.fragment || this.props.fragmentEntryPoint;
485
- // @ts-expect-error
486
- this._getModuleUniforms = getUniforms;
487
- this._bindingTable = bindingTable;
488
- // Infer the layout after modules have been added so their bindings are included.
489
- const scannedOrReflectedShaderLayout =
490
- assembledShaderLayout ??
491
- (device as Device & {getShaderLayout?: (source: string) => any}).getShaderLayout?.(
492
- this.source
493
- );
494
- const inferredShaderLayout = normalizeShaderPluginAttributeNames(
495
- scannedOrReflectedShaderLayout,
496
- resolvedPlugins.vertexInputs
497
- );
498
- const shaderLayout = mergeInferredShaderLayout(
499
- this.props.shaderLayout,
500
- inferredShaderLayout,
501
- Object.keys(resolvedPlugins.vertexInputs)
502
- );
503
455
  this.props.shaderLayout =
504
- mergeShaderModuleBindingsIntoLayout(shaderLayout || null, modules) || null;
505
- } else {
506
- // GLSL
507
- const shaderAssembler = this.props.shaderAssembler;
508
- // GLSL shader pairs require an assembler with GLSL-specific hooks.
509
- assert(isShaderAssemblerForLanguage(shaderAssembler, 'glsl'));
510
- const {vs, fs, getUniforms} = shaderAssembler.assembleGLSLShaderPair({
511
- platformInfo,
512
- ...this.props,
513
- modules,
514
- defines,
515
- pluginInjections: resolvedPlugins.injections,
516
- pluginVertexInputs: resolvedPlugins.vertexInputs,
517
- pluginVaryings: resolvedPlugins.varyings
518
- });
519
-
520
- this.vs = vs;
521
- this.fs = fs;
522
- // @ts-expect-error
523
- this._getModuleUniforms = getUniforms;
524
- this._bindingTable = [];
525
- }
456
+ mergeShaderModuleBindingsIntoLayout(this.props.shaderLayout, modules) || null;
457
+
458
+ const isWebGPU = this.device.type === 'webgpu';
459
+
460
+ // WebGPU
461
+ // TODO - hack to support unified WGSL shader
462
+ // TODO - this is wrong, compile a single shader
463
+ if (isWebGPU && this.props.source) {
464
+ // WGSL
465
+ const shaderAssembler = this.props.shaderAssembler;
466
+ // WGSL sources require an assembler with WGSL-specific hooks and binding state.
467
+ assert(isShaderAssemblerForLanguage(shaderAssembler, 'wgsl'));
468
+ const {
469
+ source,
470
+ getUniforms,
471
+ bindingTable,
472
+ entryPoints = {},
473
+ shaderLayout: assembledShaderLayout
474
+ } = shaderAssembler.assembleWGSLShader({
475
+ platformInfo,
476
+ ...this.props,
477
+ modules,
478
+ defines,
479
+ pluginInjections: resolvedPlugins.injections,
480
+ pluginVertexInputs: resolvedPlugins.vertexInputs,
481
+ pluginInterStageVariables: resolvedPlugins.interStageVariables
482
+ });
483
+ this.source = source;
484
+ this.props.vertexEntryPoint = entryPoints.vertex || this.props.vertexEntryPoint;
485
+ this.props.fragmentEntryPoint = entryPoints.fragment || this.props.fragmentEntryPoint;
486
+ // @ts-expect-error
487
+ this._getModuleUniforms = getUniforms;
488
+ this._bindingTable = bindingTable;
489
+ // Infer the layout after modules have been added so their bindings are included.
490
+ const scannedOrReflectedShaderLayout =
491
+ assembledShaderLayout ??
492
+ (device as Device & {getShaderLayout?: (source: string) => any}).getShaderLayout?.(
493
+ this.source
494
+ );
495
+ const inferredShaderLayout = normalizeShaderPluginAttributeNames(
496
+ scannedOrReflectedShaderLayout,
497
+ resolvedPlugins.vertexInputs
498
+ );
499
+ const shaderLayout = mergeInferredShaderLayout(
500
+ this.props.shaderLayout,
501
+ inferredShaderLayout,
502
+ Object.keys(resolvedPlugins.vertexInputs)
503
+ );
504
+ this.props.shaderLayout =
505
+ mergeShaderModuleBindingsIntoLayout(shaderLayout || null, modules) || null;
506
+ } else {
507
+ // GLSL
508
+ const shaderAssembler = this.props.shaderAssembler;
509
+ // GLSL shader pairs require an assembler with GLSL-specific hooks.
510
+ assert(isShaderAssemblerForLanguage(shaderAssembler, 'glsl'));
511
+ const {vs, fs, getUniforms} = shaderAssembler.assembleGLSLShaderPair({
512
+ platformInfo,
513
+ ...this.props,
514
+ modules,
515
+ defines,
516
+ pluginInjections: resolvedPlugins.injections,
517
+ pluginVertexInputs: resolvedPlugins.vertexInputs,
518
+ pluginInterStageVariables: resolvedPlugins.interStageVariables
519
+ });
520
+
521
+ this.vs = vs;
522
+ this.fs = fs;
523
+ // @ts-expect-error
524
+ this._getModuleUniforms = getUniforms;
525
+ this._bindingTable = [];
526
+ }
526
527
 
527
- this.pipelineFactory =
528
- props.pipelineFactory || PipelineFactory.getDefaultPipelineFactory(this.device);
529
- this.shaderFactory = props.shaderFactory || ShaderFactory.getDefaultShaderFactory(this.device);
528
+ this.pipelineFactory =
529
+ props.pipelineFactory || PipelineFactory.getDefaultPipelineFactory(this.device);
530
+ this.shaderFactory =
531
+ props.shaderFactory || ShaderFactory.getDefaultShaderFactory(this.device);
530
532
 
531
- const asyncCompilation = PipelineFactory.getAsyncCompilation(this.device);
532
- if (asyncCompilation) {
533
- this._pipelineInitialization = this._initializePipelineAsync(props);
534
- asyncCompilation.push(this._pipelineInitialization);
535
- } else {
536
- this.pipeline = this._updatePipeline();
537
- this._initializePipelineResources(props);
533
+ const asyncCompilation = PipelineFactory.getAsyncCompilation(this.device);
534
+ if (asyncCompilation) {
535
+ this._pipelineInitialization = this._initializePipelineAsync(props);
536
+ asyncCompilation.push(this._pipelineInitialization);
537
+ } else {
538
+ this.pipeline = this._updatePipeline();
539
+ this._initializePipelineResources(props);
540
+ }
541
+ } catch (error) {
542
+ // Failed construction never returns a model for the caller to destroy.
543
+ // Subclass fields may not exist yet, so bypass virtual teardown.
544
+ try {
545
+ GPUVectorModel.prototype.destroy.call(this);
546
+ } finally {
547
+ throw error;
548
+ }
538
549
  }
539
550
  }
540
551
 
@@ -595,9 +606,10 @@ export class GPUVectorModel {
595
606
  this.shaderFactory.release(this.pipeline.fs);
596
607
  }
597
608
  }
609
+ this.vertexArray?.destroy();
598
610
  this.geometryVectorBindings.destroy();
599
611
  this.attributeVectorBindings.destroy();
600
- this._uniformStore.destroy();
612
+ this._uniformStore?.destroy();
601
613
  this._destroyed = true;
602
614
  }
603
615
  }
@@ -1124,10 +1136,12 @@ export class GPUVectorModel {
1124
1136
 
1125
1137
  // vertex array needs to be updated if we update buffer layout,
1126
1138
  // but not if we update parameters
1139
+ const previousVertexArray = this.vertexArray;
1127
1140
  this.vertexArray = this.device.createVertexArray({
1128
1141
  shaderLayout: this.pipeline.shaderLayout,
1129
1142
  bufferLayout: this.pipeline.bufferLayout
1130
1143
  });
1144
+ previousVertexArray.destroy();
1131
1145
  this._dynamicAttributeBufferSources = {};
1132
1146
  this.applyVectorAttributes();
1133
1147
  if (this.indexBuffer) this.vertexArray.setIndexBuffer(this.indexBuffer);
@@ -1467,7 +1481,13 @@ export class GPUVectorModel {
1467
1481
  _updatePipeline(): RenderPipeline {
1468
1482
  const update = this._preparePipelineUpdate();
1469
1483
  if (update) {
1470
- this.pipeline = this.pipelineFactory.createRenderPipeline(update.props);
1484
+ try {
1485
+ this.pipeline = this.pipelineFactory.createRenderPipeline(update.props);
1486
+ } catch (error) {
1487
+ this._releasePipelineShaders(update.vertexShader, update.fragmentShader);
1488
+ this._pipelineNeedsUpdate = 'pipeline creation failed';
1489
+ throw error;
1490
+ }
1471
1491
  this._finishPipelineUpdate(update);
1472
1492
  }
1473
1493
  return this.pipeline;
@@ -1507,22 +1527,29 @@ export class GPUVectorModel {
1507
1527
  }
1508
1528
  this._pipelineNeedsUpdate = false;
1509
1529
 
1510
- const vertexShader = this.shaderFactory.createShader({
1511
- id: `${this.id}-vertex`,
1512
- stage: 'vertex',
1513
- source: this.source || this.vs,
1514
- debugShaders: this.props.debugShaders
1515
- });
1530
+ let vertexShader: Shader | null = null;
1516
1531
  let fragmentShader: Shader | null = null;
1517
- if (this.source) {
1518
- fragmentShader = vertexShader;
1519
- } else if (this.fs) {
1520
- fragmentShader = this.shaderFactory.createShader({
1521
- id: `${this.id}-fragment`,
1522
- stage: 'fragment',
1523
- source: this.fs,
1532
+ try {
1533
+ vertexShader = this.shaderFactory.createShader({
1534
+ id: `${this.id}-vertex`,
1535
+ stage: 'vertex',
1536
+ source: this.source || this.vs,
1524
1537
  debugShaders: this.props.debugShaders
1525
1538
  });
1539
+ if (this.source) {
1540
+ fragmentShader = vertexShader;
1541
+ } else if (this.fs) {
1542
+ fragmentShader = this.shaderFactory.createShader({
1543
+ id: `${this.id}-fragment`,
1544
+ stage: 'fragment',
1545
+ source: this.fs,
1546
+ debugShaders: this.props.debugShaders
1547
+ });
1548
+ }
1549
+ } catch (error) {
1550
+ this._releasePipelineShaders(vertexShader, fragmentShader);
1551
+ this._pipelineNeedsUpdate = 'shader creation failed';
1552
+ throw error;
1526
1553
  }
1527
1554
  return {
1528
1555
  props: {
@@ -3,7 +3,7 @@
3
3
  // SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
4
4
 
5
5
  import {Buffer, type Device} from '@luma.gl/core';
6
- import {GPUVector} from '@luma.gl/gpgpu/gpu-data';
6
+ import {GPUVector} from '@luma.gl/graph/gpu-data';
7
7
  import {GPUTable, type GPURecordBatchSourceInfo} from '@luma.gl/graph/gpu-tables';
8
8
  import {
9
9
  getSplatSphericalHarmonicCoefficientCount,