@forgeax/engine-runtime 0.0.0-dev.8d955ade1c79

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 (1017) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +165 -0
  3. package/dist/.tsbuildinfo +1 -0
  4. package/dist/__tests__/active-camera.unit.test.d.ts +2 -0
  5. package/dist/__tests__/active-camera.unit.test.d.ts.map +1 -0
  6. package/dist/__tests__/animation-graph-add.unit.test.d.ts +2 -0
  7. package/dist/__tests__/animation-graph-add.unit.test.d.ts.map +1 -0
  8. package/dist/__tests__/animation-graph-asset-union.test-d.d.ts +2 -0
  9. package/dist/__tests__/animation-graph-asset-union.test-d.d.ts.map +1 -0
  10. package/dist/__tests__/animation-graph-blend.unit.test.d.ts +2 -0
  11. package/dist/__tests__/animation-graph-blend.unit.test.d.ts.map +1 -0
  12. package/dist/__tests__/animation-graph-build.unit.test.d.ts +2 -0
  13. package/dist/__tests__/animation-graph-build.unit.test.d.ts.map +1 -0
  14. package/dist/__tests__/animation-graph-clip-missing.unit.test.d.ts +2 -0
  15. package/dist/__tests__/animation-graph-clip-missing.unit.test.d.ts.map +1 -0
  16. package/dist/__tests__/animation-graph-clip.unit.test.d.ts +2 -0
  17. package/dist/__tests__/animation-graph-clip.unit.test.d.ts.map +1 -0
  18. package/dist/__tests__/animation-graph-collect-roundtrip.test.d.ts +2 -0
  19. package/dist/__tests__/animation-graph-collect-roundtrip.test.d.ts.map +1 -0
  20. package/dist/__tests__/animation-graph-default-path.integration.test.d.ts +2 -0
  21. package/dist/__tests__/animation-graph-default-path.integration.test.d.ts.map +1 -0
  22. package/dist/__tests__/animation-graph-describe.unit.test.d.ts +2 -0
  23. package/dist/__tests__/animation-graph-describe.unit.test.d.ts.map +1 -0
  24. package/dist/__tests__/animation-graph-errors.unit.test.d.ts +2 -0
  25. package/dist/__tests__/animation-graph-errors.unit.test.d.ts.map +1 -0
  26. package/dist/__tests__/animation-graph-nesting.unit.test.d.ts +2 -0
  27. package/dist/__tests__/animation-graph-nesting.unit.test.d.ts.map +1 -0
  28. package/dist/__tests__/animation-graph-orthogonal-weight.unit.test.d.ts +2 -0
  29. package/dist/__tests__/animation-graph-orthogonal-weight.unit.test.d.ts.map +1 -0
  30. package/dist/__tests__/animation-graph-serialize.unit.test.d.ts +2 -0
  31. package/dist/__tests__/animation-graph-serialize.unit.test.d.ts.map +1 -0
  32. package/dist/__tests__/animation-graph-slot-fill.unit.test.d.ts +2 -0
  33. package/dist/__tests__/animation-graph-slot-fill.unit.test.d.ts.map +1 -0
  34. package/dist/__tests__/animation-nslot.unit.test.d.ts +2 -0
  35. package/dist/__tests__/animation-nslot.unit.test.d.ts.map +1 -0
  36. package/dist/__tests__/animation-slot-length-guard.unit.test.d.ts +2 -0
  37. package/dist/__tests__/animation-slot-length-guard.unit.test.d.ts.map +1 -0
  38. package/dist/__tests__/append-injection.test.d.ts +2 -0
  39. package/dist/__tests__/append-injection.test.d.ts.map +1 -0
  40. package/dist/__tests__/asi-world-baseline-export.unit.test.d.ts +2 -0
  41. package/dist/__tests__/asi-world-baseline-export.unit.test.d.ts.map +1 -0
  42. package/dist/__tests__/asi-world-ci-config.unit.test.d.ts +2 -0
  43. package/dist/__tests__/asi-world-ci-config.unit.test.d.ts.map +1 -0
  44. package/dist/__tests__/asi-world-smoke.unit.test.d.ts +2 -0
  45. package/dist/__tests__/asi-world-smoke.unit.test.d.ts.map +1 -0
  46. package/dist/__tests__/asset-brand-and-name-retirement.test.d.ts +2 -0
  47. package/dist/__tests__/asset-brand-and-name-retirement.test.d.ts.map +1 -0
  48. package/dist/__tests__/asset-error-exhaustive.test-d.d.ts +11 -0
  49. package/dist/__tests__/asset-error-exhaustive.test-d.d.ts.map +1 -0
  50. package/dist/__tests__/asset-registry-guid-reverse.test.d.ts +2 -0
  51. package/dist/__tests__/asset-registry-guid-reverse.test.d.ts.map +1 -0
  52. package/dist/__tests__/asset-registry-hdr-equirect.test.d.ts +2 -0
  53. package/dist/__tests__/asset-registry-hdr-equirect.test.d.ts.map +1 -0
  54. package/dist/__tests__/asset-registry-mesh-pack-payload.dawn.test.d.ts +2 -0
  55. package/dist/__tests__/asset-registry-mesh-pack-payload.dawn.test.d.ts.map +1 -0
  56. package/dist/__tests__/asset-registry-mounts.test.d.ts +2 -0
  57. package/dist/__tests__/asset-registry-mounts.test.d.ts.map +1 -0
  58. package/dist/__tests__/asset-registry-scene.test-d.d.ts +2 -0
  59. package/dist/__tests__/asset-registry-scene.test-d.d.ts.map +1 -0
  60. package/dist/__tests__/asset-registry.browser.test.d.ts +2 -0
  61. package/dist/__tests__/asset-registry.browser.test.d.ts.map +1 -0
  62. package/dist/__tests__/asset-registry.dawn.test.d.ts +2 -0
  63. package/dist/__tests__/asset-registry.dawn.test.d.ts.map +1 -0
  64. package/dist/__tests__/asset-registry.listCatalog.test.d.ts +2 -0
  65. package/dist/__tests__/asset-registry.listCatalog.test.d.ts.map +1 -0
  66. package/dist/__tests__/asset-registry.mesh-bin.test.d.ts +2 -0
  67. package/dist/__tests__/asset-registry.mesh-bin.test.d.ts.map +1 -0
  68. package/dist/__tests__/asset-registry.pack-cache.test.d.ts +2 -0
  69. package/dist/__tests__/asset-registry.pack-cache.test.d.ts.map +1 -0
  70. package/dist/__tests__/asset-registry.raw-container-failfast.test.d.ts +2 -0
  71. package/dist/__tests__/asset-registry.raw-container-failfast.test.d.ts.map +1 -0
  72. package/dist/__tests__/asset-registry.recursive.spec.d.ts +2 -0
  73. package/dist/__tests__/asset-registry.recursive.spec.d.ts.map +1 -0
  74. package/dist/__tests__/asset-registry.unit.test.d.ts +2 -0
  75. package/dist/__tests__/asset-registry.unit.test.d.ts.map +1 -0
  76. package/dist/__tests__/asset.unit.test.d.ts +2 -0
  77. package/dist/__tests__/asset.unit.test.d.ts.map +1 -0
  78. package/dist/__tests__/audio-load-by-guid.unit.test.d.ts +2 -0
  79. package/dist/__tests__/audio-load-by-guid.unit.test.d.ts.map +1 -0
  80. package/dist/__tests__/backend-selection.integration.test.d.ts +2 -0
  81. package/dist/__tests__/backend-selection.integration.test.d.ts.map +1 -0
  82. package/dist/__tests__/basis-catalog-dispatch.integration.test.d.ts +2 -0
  83. package/dist/__tests__/basis-catalog-dispatch.integration.test.d.ts.map +1 -0
  84. package/dist/__tests__/bind-group-cache-keying.test.d.ts +2 -0
  85. package/dist/__tests__/bind-group-cache-keying.test.d.ts.map +1 -0
  86. package/dist/__tests__/block-upload-math.unit.test.d.ts +2 -0
  87. package/dist/__tests__/block-upload-math.unit.test.d.ts.map +1 -0
  88. package/dist/__tests__/builtin-asset-registry.unit.test.d.ts +2 -0
  89. package/dist/__tests__/builtin-asset-registry.unit.test.d.ts.map +1 -0
  90. package/dist/__tests__/builtin-shader-register-e2e.test.d.ts +2 -0
  91. package/dist/__tests__/builtin-shader-register-e2e.test.d.ts.map +1 -0
  92. package/dist/__tests__/cache-false-eviction.test.d.ts +2 -0
  93. package/dist/__tests__/cache-false-eviction.test.d.ts.map +1 -0
  94. package/dist/__tests__/cache-isolation-matrix.test.d.ts +2 -0
  95. package/dist/__tests__/cache-isolation-matrix.test.d.ts.map +1 -0
  96. package/dist/__tests__/camera-clear-snapshot-equivalence.unit.test.d.ts +2 -0
  97. package/dist/__tests__/camera-clear-snapshot-equivalence.unit.test.d.ts.map +1 -0
  98. package/dist/__tests__/clamp-to-last.e2e.browser.test.d.ts +2 -0
  99. package/dist/__tests__/clamp-to-last.e2e.browser.test.d.ts.map +1 -0
  100. package/dist/__tests__/clamp-to-last.e2e.dawn.test.d.ts +2 -0
  101. package/dist/__tests__/clamp-to-last.e2e.dawn.test.d.ts.map +1 -0
  102. package/dist/__tests__/collect-scene-asset.test.d.ts +2 -0
  103. package/dist/__tests__/collect-scene-asset.test.d.ts.map +1 -0
  104. package/dist/__tests__/collect-scene-mount-collapse.test.d.ts +2 -0
  105. package/dist/__tests__/collect-scene-mount-collapse.test.d.ts.map +1 -0
  106. package/dist/__tests__/collect-subtree.unit.test.d.ts +2 -0
  107. package/dist/__tests__/collect-subtree.unit.test.d.ts.map +1 -0
  108. package/dist/__tests__/collect-transient-children-absent.test.d.ts +2 -0
  109. package/dist/__tests__/collect-transient-children-absent.test.d.ts.map +1 -0
  110. package/dist/__tests__/collect-transient-roundtrip.test.d.ts +2 -0
  111. package/dist/__tests__/collect-transient-roundtrip.test.d.ts.map +1 -0
  112. package/dist/__tests__/collect-transient-skip.test.d.ts +2 -0
  113. package/dist/__tests__/collect-transient-skip.test.d.ts.map +1 -0
  114. package/dist/__tests__/components.test-d.d.ts +2 -0
  115. package/dist/__tests__/components.test-d.d.ts.map +1 -0
  116. package/dist/__tests__/components.unit.test.d.ts +2 -0
  117. package/dist/__tests__/components.unit.test.d.ts.map +1 -0
  118. package/dist/__tests__/composite-skybox-cross-world.browser.test.d.ts +2 -0
  119. package/dist/__tests__/composite-skybox-cross-world.browser.test.d.ts.map +1 -0
  120. package/dist/__tests__/compressed-texture-physical-extent.integration.test.d.ts +2 -0
  121. package/dist/__tests__/compressed-texture-physical-extent.integration.test.d.ts.map +1 -0
  122. package/dist/__tests__/create-renderer-assembly.integration.test.d.ts +2 -0
  123. package/dist/__tests__/create-renderer-assembly.integration.test.d.ts.map +1 -0
  124. package/dist/__tests__/createRenderer-dispose.test.d.ts +2 -0
  125. package/dist/__tests__/createRenderer-dispose.test.d.ts.map +1 -0
  126. package/dist/__tests__/createRenderer-requiredFeatures.unit.test.d.ts +2 -0
  127. package/dist/__tests__/createRenderer-requiredFeatures.unit.test.d.ts.map +1 -0
  128. package/dist/__tests__/createRenderer.browser-no-webgpu.test.d.ts +2 -0
  129. package/dist/__tests__/createRenderer.browser-no-webgpu.test.d.ts.map +1 -0
  130. package/dist/__tests__/createRenderer.unit.test.d.ts +2 -0
  131. package/dist/__tests__/createRenderer.unit.test.d.ts.map +1 -0
  132. package/dist/__tests__/dawn/hello-sprite-nineslice-section.dawn.test.d.ts +2 -0
  133. package/dist/__tests__/dawn/hello-sprite-nineslice-section.dawn.test.d.ts.map +1 -0
  134. package/dist/__tests__/dawn/ibl-compose.dawn.test.d.ts +2 -0
  135. package/dist/__tests__/dawn/ibl-compose.dawn.test.d.ts.map +1 -0
  136. package/dist/__tests__/dawn/ibl-modules-compose.dawn.test.d.ts +2 -0
  137. package/dist/__tests__/dawn/ibl-modules-compose.dawn.test.d.ts.map +1 -0
  138. package/dist/__tests__/dawn/ibl-precompute-readback.dawn.test.d.ts +2 -0
  139. package/dist/__tests__/dawn/ibl-precompute-readback.dawn.test.d.ts.map +1 -0
  140. package/dist/__tests__/dawn/instances-per-instance-pbr.dawn.test.d.ts +2 -0
  141. package/dist/__tests__/dawn/instances-per-instance-pbr.dawn.test.d.ts.map +1 -0
  142. package/dist/__tests__/dawn/instances-shadow.dawn.test.d.ts +2 -0
  143. package/dist/__tests__/dawn/instances-shadow.dawn.test.d.ts.map +1 -0
  144. package/dist/__tests__/dawn/instances-uniform-fallback.dawn.test.d.ts +2 -0
  145. package/dist/__tests__/dawn/instances-uniform-fallback.dawn.test.d.ts.map +1 -0
  146. package/dist/__tests__/dawn/material-alpha.dawn.test.d.ts +2 -0
  147. package/dist/__tests__/dawn/material-alpha.dawn.test.d.ts.map +1 -0
  148. package/dist/__tests__/dawn/material-cooked-fixture.dawn.test.d.ts +2 -0
  149. package/dist/__tests__/dawn/material-cooked-fixture.dawn.test.d.ts.map +1 -0
  150. package/dist/__tests__/dawn/mesh-ssbo-normal-matrix.dawn.test.d.ts +2 -0
  151. package/dist/__tests__/dawn/mesh-ssbo-normal-matrix.dawn.test.d.ts.map +1 -0
  152. package/dist/__tests__/dawn/mesh-update-dawn.test.d.ts +2 -0
  153. package/dist/__tests__/dawn/mesh-update-dawn.test.d.ts.map +1 -0
  154. package/dist/__tests__/dawn/mipmap-srgb-linear.dawn.test.d.ts +2 -0
  155. package/dist/__tests__/dawn/mipmap-srgb-linear.dawn.test.d.ts.map +1 -0
  156. package/dist/__tests__/dawn/per-entity-material-texture-isolation.dawn.test.d.ts +2 -0
  157. package/dist/__tests__/dawn/per-entity-material-texture-isolation.dawn.test.d.ts.map +1 -0
  158. package/dist/__tests__/dawn/sprite-nineslice-mesh-bind.dawn.test.d.ts +2 -0
  159. package/dist/__tests__/dawn/sprite-nineslice-mesh-bind.dawn.test.d.ts.map +1 -0
  160. package/dist/__tests__/dawn/tonemap.dawn.test.d.ts +2 -0
  161. package/dist/__tests__/dawn/tonemap.dawn.test.d.ts.map +1 -0
  162. package/dist/__tests__/dawn/upload-texture.dawn.test.d.ts +2 -0
  163. package/dist/__tests__/dawn/upload-texture.dawn.test.d.ts.map +1 -0
  164. package/dist/__tests__/dawn/user-handle-mesh-render.dawn.test.d.ts +2 -0
  165. package/dist/__tests__/dawn/user-handle-mesh-render.dawn.test.d.ts.map +1 -0
  166. package/dist/__tests__/dawn/user-mesh-upload.dawn.test.d.ts +2 -0
  167. package/dist/__tests__/dawn/user-mesh-upload.dawn.test.d.ts.map +1 -0
  168. package/dist/__tests__/dawn/zero-manifest-mesh-fail.dawn.test.d.ts +2 -0
  169. package/dist/__tests__/dawn/zero-manifest-mesh-fail.dawn.test.d.ts.map +1 -0
  170. package/dist/__tests__/dawn/zero-manifest-ready.dawn.test.d.ts +2 -0
  171. package/dist/__tests__/dawn/zero-manifest-ready.dawn.test.d.ts.map +1 -0
  172. package/dist/__tests__/demo-sortscope-migration.unit.test.d.ts +2 -0
  173. package/dist/__tests__/demo-sortscope-migration.unit.test.d.ts.map +1 -0
  174. package/dist/__tests__/derive-bgl-integration.test.d.ts +2 -0
  175. package/dist/__tests__/derive-bgl-integration.test.d.ts.map +1 -0
  176. package/dist/__tests__/derive-render-data-skin.unit.test.d.ts +2 -0
  177. package/dist/__tests__/derive-render-data-skin.unit.test.d.ts.map +1 -0
  178. package/dist/__tests__/draw-published.d.ts +5 -0
  179. package/dist/__tests__/draw-published.d.ts.map +1 -0
  180. package/dist/__tests__/dynamic-texture-store.unit.test.d.ts +2 -0
  181. package/dist/__tests__/dynamic-texture-store.unit.test.d.ts.map +1 -0
  182. package/dist/__tests__/environment-error-exhaustive.test-d.d.ts +8 -0
  183. package/dist/__tests__/environment-error-exhaustive.test-d.d.ts.map +1 -0
  184. package/dist/__tests__/equirect-bc6h.integration.test.d.ts +2 -0
  185. package/dist/__tests__/equirect-bc6h.integration.test.d.ts.map +1 -0
  186. package/dist/__tests__/error-exhaustive.test.d.ts +2 -0
  187. package/dist/__tests__/error-exhaustive.test.d.ts.map +1 -0
  188. package/dist/__tests__/errors.unit.test.d.ts +2 -0
  189. package/dist/__tests__/errors.unit.test.d.ts.map +1 -0
  190. package/dist/__tests__/extract-frames-graceful-degradation.test.d.ts +2 -0
  191. package/dist/__tests__/extract-frames-graceful-degradation.test.d.ts.map +1 -0
  192. package/dist/__tests__/extract-frames-merge.test.d.ts +2 -0
  193. package/dist/__tests__/extract-frames-merge.test.d.ts.map +1 -0
  194. package/dist/__tests__/extract-frames-reset.test.d.ts +2 -0
  195. package/dist/__tests__/extract-frames-reset.test.d.ts.map +1 -0
  196. package/dist/__tests__/extract-record-no-hardcoded-texture-fields.test.d.ts +2 -0
  197. package/dist/__tests__/extract-record-no-hardcoded-texture-fields.test.d.ts.map +1 -0
  198. package/dist/__tests__/extract-skin-mismatch.unit.test.d.ts +2 -0
  199. package/dist/__tests__/extract-skin-mismatch.unit.test.d.ts.map +1 -0
  200. package/dist/__tests__/fetch-binary-decompress.test.d.ts +2 -0
  201. package/dist/__tests__/fetch-binary-decompress.test.d.ts.map +1 -0
  202. package/dist/__tests__/four-path-compression.integration.test.d.ts +2 -0
  203. package/dist/__tests__/four-path-compression.integration.test.d.ts.map +1 -0
  204. package/dist/__tests__/frame-targets-shadow-regression.unit.test.d.ts +2 -0
  205. package/dist/__tests__/frame-targets-shadow-regression.unit.test.d.ts.map +1 -0
  206. package/dist/__tests__/fullscreen-feature-host.dawn.test.d.ts +2 -0
  207. package/dist/__tests__/fullscreen-feature-host.dawn.test.d.ts.map +1 -0
  208. package/dist/__tests__/fullscreen-post-bgl-depth.test.d.ts +2 -0
  209. package/dist/__tests__/fullscreen-post-bgl-depth.test.d.ts.map +1 -0
  210. package/dist/__tests__/fullscreen-post-depth-params-arity.test.d.ts +2 -0
  211. package/dist/__tests__/fullscreen-post-depth-params-arity.test.d.ts.map +1 -0
  212. package/dist/__tests__/fullscreen-post-process-pass.dawn.test.d.ts +2 -0
  213. package/dist/__tests__/fullscreen-post-process-pass.dawn.test.d.ts.map +1 -0
  214. package/dist/__tests__/fullscreen-post-process-pass.unit.test.d.ts +2 -0
  215. package/dist/__tests__/fullscreen-post-process-pass.unit.test.d.ts.map +1 -0
  216. package/dist/__tests__/fxaa-pixel-diff.dawn.test.d.ts +2 -0
  217. package/dist/__tests__/fxaa-pixel-diff.dawn.test.d.ts.map +1 -0
  218. package/dist/__tests__/fxaa-validation-and-resize.dawn.test.d.ts +2 -0
  219. package/dist/__tests__/fxaa-validation-and-resize.dawn.test.d.ts.map +1 -0
  220. package/dist/__tests__/fxaa-zero-overhead.dawn.test.d.ts +2 -0
  221. package/dist/__tests__/fxaa-zero-overhead.dawn.test.d.ts.map +1 -0
  222. package/dist/__tests__/geometry.unit.test.d.ts +2 -0
  223. package/dist/__tests__/geometry.unit.test.d.ts.map +1 -0
  224. package/dist/__tests__/glyph-tilemap-worldid.test.d.ts +2 -0
  225. package/dist/__tests__/glyph-tilemap-worldid.test.d.ts.map +1 -0
  226. package/dist/__tests__/gpu-resource-cow-survivor.test.d.ts +2 -0
  227. package/dist/__tests__/gpu-resource-cow-survivor.test.d.ts.map +1 -0
  228. package/dist/__tests__/guid-for-asset.unit.test.d.ts +2 -0
  229. package/dist/__tests__/guid-for-asset.unit.test.d.ts.map +1 -0
  230. package/dist/__tests__/handle-migration.test.d.ts +2 -0
  231. package/dist/__tests__/handle-migration.test.d.ts.map +1 -0
  232. package/dist/__tests__/hello-tilemap-smoke-upgrade.unit.test.d.ts +2 -0
  233. package/dist/__tests__/hello-tilemap-smoke-upgrade.unit.test.d.ts.map +1 -0
  234. package/dist/__tests__/helpers/mock-shader-registry.d.ts +11 -0
  235. package/dist/__tests__/helpers/mock-shader-registry.d.ts.map +1 -0
  236. package/dist/__tests__/helpers/register-runtime-components.d.ts +4 -0
  237. package/dist/__tests__/helpers/register-runtime-components.d.ts.map +1 -0
  238. package/dist/__tests__/helpers/register-scene-components.d.ts +4 -0
  239. package/dist/__tests__/helpers/register-scene-components.d.ts.map +1 -0
  240. package/dist/__tests__/helpers/tilemap-assets.d.ts +6 -0
  241. package/dist/__tests__/helpers/tilemap-assets.d.ts.map +1 -0
  242. package/dist/__tests__/host-custom-kind-contract.test-d.d.ts +2 -0
  243. package/dist/__tests__/host-custom-kind-contract.test-d.d.ts.map +1 -0
  244. package/dist/__tests__/host-custom-kind-contract.test.d.ts +2 -0
  245. package/dist/__tests__/host-custom-kind-contract.test.d.ts.map +1 -0
  246. package/dist/__tests__/inspect-name.test.d.ts +2 -0
  247. package/dist/__tests__/inspect-name.test.d.ts.map +1 -0
  248. package/dist/__tests__/instances.test-d.d.ts +2 -0
  249. package/dist/__tests__/instances.test-d.d.ts.map +1 -0
  250. package/dist/__tests__/instantiate-mount-deferred-wiring.test.d.ts +2 -0
  251. package/dist/__tests__/instantiate-mount-deferred-wiring.test.d.ts.map +1 -0
  252. package/dist/__tests__/light-attenuation-formula.test.d.ts +2 -0
  253. package/dist/__tests__/light-attenuation-formula.test.d.ts.map +1 -0
  254. package/dist/__tests__/light-casters-9-light.browser.test.d.ts +2 -0
  255. package/dist/__tests__/light-casters-9-light.browser.test.d.ts.map +1 -0
  256. package/dist/__tests__/light-gpu-byte-neutral.unit.test.d.ts +2 -0
  257. package/dist/__tests__/light-gpu-byte-neutral.unit.test.d.ts.map +1 -0
  258. package/dist/__tests__/light-snapshot.test-d.d.ts +2 -0
  259. package/dist/__tests__/light-snapshot.test-d.d.ts.map +1 -0
  260. package/dist/__tests__/lights-vec-negative.unit.test.d.ts +2 -0
  261. package/dist/__tests__/lights-vec-negative.unit.test.d.ts.map +1 -0
  262. package/dist/__tests__/lights.unit.test.d.ts +2 -0
  263. package/dist/__tests__/lights.unit.test.d.ts.map +1 -0
  264. package/dist/__tests__/loadbyguid-payload.unit.test.d.ts +2 -0
  265. package/dist/__tests__/loadbyguid-payload.unit.test.d.ts.map +1 -0
  266. package/dist/__tests__/loadbyguid-texture-intern.unit.test.d.ts +2 -0
  267. package/dist/__tests__/loadbyguid-texture-intern.unit.test.d.ts.map +1 -0
  268. package/dist/__tests__/loader-extract-graceful.test.d.ts +2 -0
  269. package/dist/__tests__/loader-extract-graceful.test.d.ts.map +1 -0
  270. package/dist/__tests__/loader-name-survival.test.d.ts +2 -0
  271. package/dist/__tests__/loader-name-survival.test.d.ts.map +1 -0
  272. package/dist/__tests__/m3-vec-negative.unit.test.d.ts +2 -0
  273. package/dist/__tests__/m3-vec-negative.unit.test.d.ts.map +1 -0
  274. package/dist/__tests__/m5-browser-dawn-sweep.integration.test.d.ts +2 -0
  275. package/dist/__tests__/m5-browser-dawn-sweep.integration.test.d.ts.map +1 -0
  276. package/dist/__tests__/material-texture-uv-scale.unit.test.d.ts +2 -0
  277. package/dist/__tests__/material-texture-uv-scale.unit.test.d.ts.map +1 -0
  278. package/dist/__tests__/materials.unit.test.d.ts +2 -0
  279. package/dist/__tests__/materials.unit.test.d.ts.map +1 -0
  280. package/dist/__tests__/mesh-bin-contract.test.d.ts +2 -0
  281. package/dist/__tests__/mesh-bin-contract.test.d.ts.map +1 -0
  282. package/dist/__tests__/mesh-bin-skin-roundtrip.unit.test.d.ts +2 -0
  283. package/dist/__tests__/mesh-bin-skin-roundtrip.unit.test.d.ts.map +1 -0
  284. package/dist/__tests__/mesh-bin.test.d.ts +2 -0
  285. package/dist/__tests__/mesh-bin.test.d.ts.map +1 -0
  286. package/dist/__tests__/mesh-loader-skin-contract.unit.test.d.ts +2 -0
  287. package/dist/__tests__/mesh-loader-skin-contract.unit.test.d.ts.map +1 -0
  288. package/dist/__tests__/mesh-ssbo-grow.unit.test.d.ts +2 -0
  289. package/dist/__tests__/mesh-ssbo-grow.unit.test.d.ts.map +1 -0
  290. package/dist/__tests__/mip-gate.unit.test.d.ts +2 -0
  291. package/dist/__tests__/mip-gate.unit.test.d.ts.map +1 -0
  292. package/dist/__tests__/msaa-sprite-pixel-diff.dawn.test.d.ts +2 -0
  293. package/dist/__tests__/msaa-sprite-pixel-diff.dawn.test.d.ts.map +1 -0
  294. package/dist/__tests__/multi-uv-8set.e2e.dawn.test.d.ts +2 -0
  295. package/dist/__tests__/multi-uv-8set.e2e.dawn.test.d.ts.map +1 -0
  296. package/dist/__tests__/name.unit.test.d.ts +2 -0
  297. package/dist/__tests__/name.unit.test.d.ts.map +1 -0
  298. package/dist/__tests__/new-kind-refs-contract.test.d.ts +2 -0
  299. package/dist/__tests__/new-kind-refs-contract.test.d.ts.map +1 -0
  300. package/dist/__tests__/package-promotion.test.d.ts +2 -0
  301. package/dist/__tests__/package-promotion.test.d.ts.map +1 -0
  302. package/dist/__tests__/package-rename.test.d.ts +2 -0
  303. package/dist/__tests__/package-rename.test.d.ts.map +1 -0
  304. package/dist/__tests__/pass-selector.unit.test.d.ts +2 -0
  305. package/dist/__tests__/pass-selector.unit.test.d.ts.map +1 -0
  306. package/dist/__tests__/pbr-pipeline.unit.test.d.ts +2 -0
  307. package/dist/__tests__/pbr-pipeline.unit.test.d.ts.map +1 -0
  308. package/dist/__tests__/pipeline-builder-msaa.unit.test.d.ts +2 -0
  309. package/dist/__tests__/pipeline-builder-msaa.unit.test.d.ts.map +1 -0
  310. package/dist/__tests__/pipeline-cache-keying.unit.test.d.ts +2 -0
  311. package/dist/__tests__/pipeline-cache-keying.unit.test.d.ts.map +1 -0
  312. package/dist/__tests__/pipeline-spec.test.d.ts +2 -0
  313. package/dist/__tests__/pipeline-spec.test.d.ts.map +1 -0
  314. package/dist/__tests__/pipeline.unit.test.d.ts +2 -0
  315. package/dist/__tests__/pipeline.unit.test.d.ts.map +1 -0
  316. package/dist/__tests__/point-light-shadow.browser.test.d.ts +2 -0
  317. package/dist/__tests__/point-light-shadow.browser.test.d.ts.map +1 -0
  318. package/dist/__tests__/point-light-shadow.dawn.test.d.ts +2 -0
  319. package/dist/__tests__/point-light-shadow.dawn.test.d.ts.map +1 -0
  320. package/dist/__tests__/point-light-shadow.unit.test.d.ts +2 -0
  321. package/dist/__tests__/point-light-shadow.unit.test.d.ts.map +1 -0
  322. package/dist/__tests__/post-process-error-codes.unit.test.d.ts +2 -0
  323. package/dist/__tests__/post-process-error-codes.unit.test.d.ts.map +1 -0
  324. package/dist/__tests__/post-process-params-component.unit.test.d.ts +2 -0
  325. package/dist/__tests__/post-process-params-component.unit.test.d.ts.map +1 -0
  326. package/dist/__tests__/post-process-params-extract.unit.test.d.ts +2 -0
  327. package/dist/__tests__/post-process-params-extract.unit.test.d.ts.map +1 -0
  328. package/dist/__tests__/postprocess-camera-consistency.test.d.ts +2 -0
  329. package/dist/__tests__/postprocess-camera-consistency.test.d.ts.map +1 -0
  330. package/dist/__tests__/profiler-assembly.integration.test.d.ts +2 -0
  331. package/dist/__tests__/profiler-assembly.integration.test.d.ts.map +1 -0
  332. package/dist/__tests__/propagate-transforms.dawn.test.d.ts +2 -0
  333. package/dist/__tests__/propagate-transforms.dawn.test.d.ts.map +1 -0
  334. package/dist/__tests__/record-worldid-isolation.test.d.ts +2 -0
  335. package/dist/__tests__/record-worldid-isolation.test.d.ts.map +1 -0
  336. package/dist/__tests__/recover-error-exhaustive.test-d.d.ts +11 -0
  337. package/dist/__tests__/recover-error-exhaustive.test-d.d.ts.map +1 -0
  338. package/dist/__tests__/render-error-exhaustive.test-d.d.ts +11 -0
  339. package/dist/__tests__/render-error-exhaustive.test-d.d.ts.map +1 -0
  340. package/dist/__tests__/render-feature-assembly.test-d.d.ts +2 -0
  341. package/dist/__tests__/render-feature-assembly.test-d.d.ts.map +1 -0
  342. package/dist/__tests__/render-feature-prepared-graphics-docs.unit.test.d.ts +2 -0
  343. package/dist/__tests__/render-feature-prepared-graphics-docs.unit.test.d.ts.map +1 -0
  344. package/dist/__tests__/render-feature-prepared-graphics.browser.test.d.ts +2 -0
  345. package/dist/__tests__/render-feature-prepared-graphics.browser.test.d.ts.map +1 -0
  346. package/dist/__tests__/render-feature-prepared-graphics.dawn.test.d.ts +2 -0
  347. package/dist/__tests__/render-feature-prepared-graphics.dawn.test.d.ts.map +1 -0
  348. package/dist/__tests__/render-feature-prepared-graphics.fixture.d.ts +10 -0
  349. package/dist/__tests__/render-feature-prepared-graphics.fixture.d.ts.map +1 -0
  350. package/dist/__tests__/render-feature-prepared-graphics.integration.test.d.ts +2 -0
  351. package/dist/__tests__/render-feature-prepared-graphics.integration.test.d.ts.map +1 -0
  352. package/dist/__tests__/render-feature-prepared-graphics.regression.integration.test.d.ts +2 -0
  353. package/dist/__tests__/render-feature-prepared-graphics.regression.integration.test.d.ts.map +1 -0
  354. package/dist/__tests__/render-feature-recover.integration.test.d.ts +2 -0
  355. package/dist/__tests__/render-feature-recover.integration.test.d.ts.map +1 -0
  356. package/dist/__tests__/render-feature-runtime-surface.test-d.d.ts +2 -0
  357. package/dist/__tests__/render-feature-runtime-surface.test-d.d.ts.map +1 -0
  358. package/dist/__tests__/render-schema-consumer.integration.test.d.ts +2 -0
  359. package/dist/__tests__/render-schema-consumer.integration.test.d.ts.map +1 -0
  360. package/dist/__tests__/render-schema-owner-boundary.unit.test.d.ts +2 -0
  361. package/dist/__tests__/render-schema-owner-boundary.unit.test.d.ts.map +1 -0
  362. package/dist/__tests__/render-system-cross-world-overlay-queue.test.d.ts +2 -0
  363. package/dist/__tests__/render-system-cross-world-overlay-queue.test.d.ts.map +1 -0
  364. package/dist/__tests__/render-system-extract-dispatch-ordering.test.d.ts +2 -0
  365. package/dist/__tests__/render-system-extract-dispatch-ordering.test.d.ts.map +1 -0
  366. package/dist/__tests__/render-system-extract.test.d.ts +2 -0
  367. package/dist/__tests__/render-system-extract.test.d.ts.map +1 -0
  368. package/dist/__tests__/render-system-extract.unit.test.d.ts +2 -0
  369. package/dist/__tests__/render-system-extract.unit.test.d.ts.map +1 -0
  370. package/dist/__tests__/render-system-fold-bucket.unit.test.d.ts +2 -0
  371. package/dist/__tests__/render-system-fold-bucket.unit.test.d.ts.map +1 -0
  372. package/dist/__tests__/render-system-fold-fallback.unit.test.d.ts +2 -0
  373. package/dist/__tests__/render-system-fold-fallback.unit.test.d.ts.map +1 -0
  374. package/dist/__tests__/render-system-fold-material.unit.test.d.ts +2 -0
  375. package/dist/__tests__/render-system-fold-material.unit.test.d.ts.map +1 -0
  376. package/dist/__tests__/render-system-fold-metrics.unit.test.d.ts +2 -0
  377. package/dist/__tests__/render-system-fold-metrics.unit.test.d.ts.map +1 -0
  378. package/dist/__tests__/render-system-fold-modegate.unit.test.d.ts +2 -0
  379. package/dist/__tests__/render-system-fold-modegate.unit.test.d.ts.map +1 -0
  380. package/dist/__tests__/render-system-fold-scene-instances.unit.test.d.ts +2 -0
  381. package/dist/__tests__/render-system-fold-scene-instances.unit.test.d.ts.map +1 -0
  382. package/dist/__tests__/render-system-fold.dawn.test.d.ts +2 -0
  383. package/dist/__tests__/render-system-fold.dawn.test.d.ts.map +1 -0
  384. package/dist/__tests__/render-system-mega.test.d.ts +2 -0
  385. package/dist/__tests__/render-system-mega.test.d.ts.map +1 -0
  386. package/dist/__tests__/render-system-owner-split-contract.test.d.ts +2 -0
  387. package/dist/__tests__/render-system-owner-split-contract.test.d.ts.map +1 -0
  388. package/dist/__tests__/render-system-record-multi-material-textureview.test.d.ts +2 -0
  389. package/dist/__tests__/render-system-record-multi-material-textureview.test.d.ts.map +1 -0
  390. package/dist/__tests__/render-system-record-per-submesh-transparency.test.d.ts +2 -0
  391. package/dist/__tests__/render-system-record-per-submesh-transparency.test.d.ts.map +1 -0
  392. package/dist/__tests__/render-system-record.test.d.ts +2 -0
  393. package/dist/__tests__/render-system-record.test.d.ts.map +1 -0
  394. package/dist/__tests__/render-system-record.unit.test.d.ts +2 -0
  395. package/dist/__tests__/render-system-record.unit.test.d.ts.map +1 -0
  396. package/dist/__tests__/render-system-skin-bg.unit.test.d.ts +2 -0
  397. package/dist/__tests__/render-system-skin-bg.unit.test.d.ts.map +1 -0
  398. package/dist/__tests__/renderer-consumer.test-d.d.ts +2 -0
  399. package/dist/__tests__/renderer-consumer.test-d.d.ts.map +1 -0
  400. package/dist/__tests__/renderer-health.unit.test.d.ts +2 -0
  401. package/dist/__tests__/renderer-health.unit.test.d.ts.map +1 -0
  402. package/dist/__tests__/renderer-lifecycle.integration.test.d.ts +2 -0
  403. package/dist/__tests__/renderer-lifecycle.integration.test.d.ts.map +1 -0
  404. package/dist/__tests__/renderer-recover.unit.test.d.ts +2 -0
  405. package/dist/__tests__/renderer-recover.unit.test.d.ts.map +1 -0
  406. package/dist/__tests__/renderer-result.test-d.d.ts +2 -0
  407. package/dist/__tests__/renderer-result.test-d.d.ts.map +1 -0
  408. package/dist/__tests__/renderer-surface.unit.test.d.ts +2 -0
  409. package/dist/__tests__/renderer-surface.unit.test.d.ts.map +1 -0
  410. package/dist/__tests__/renderer-test-utils.d.ts +10 -0
  411. package/dist/__tests__/renderer-test-utils.d.ts.map +1 -0
  412. package/dist/__tests__/renderer.test-d.d.ts +2 -0
  413. package/dist/__tests__/renderer.test-d.d.ts.map +1 -0
  414. package/dist/__tests__/resolve-asset-handle-err.test.d.ts +2 -0
  415. package/dist/__tests__/resolve-asset-handle-err.test.d.ts.map +1 -0
  416. package/dist/__tests__/resolve-asset-handle.unit.test.d.ts +2 -0
  417. package/dist/__tests__/resolve-asset-handle.unit.test.d.ts.map +1 -0
  418. package/dist/__tests__/resolve-depth-only-view.test.d.ts +2 -0
  419. package/dist/__tests__/resolve-depth-only-view.test.d.ts.map +1 -0
  420. package/dist/__tests__/resolveName-fallback.test.d.ts +2 -0
  421. package/dist/__tests__/resolveName-fallback.test.d.ts.map +1 -0
  422. package/dist/__tests__/resolveName-null-package.test.d.ts +2 -0
  423. package/dist/__tests__/resolveName-null-package.test.d.ts.map +1 -0
  424. package/dist/__tests__/resolveName-unified-entry.test.d.ts +2 -0
  425. package/dist/__tests__/resolveName-unified-entry.test.d.ts.map +1 -0
  426. package/dist/__tests__/resolveName.test.d.ts +2 -0
  427. package/dist/__tests__/resolveName.test.d.ts.map +1 -0
  428. package/dist/__tests__/rhi-null-command-flow.unit.test.d.ts +2 -0
  429. package/dist/__tests__/rhi-null-command-flow.unit.test.d.ts.map +1 -0
  430. package/dist/__tests__/rhi-null-noop-behavior.unit.test.d.ts +2 -0
  431. package/dist/__tests__/rhi-null-noop-behavior.unit.test.d.ts.map +1 -0
  432. package/dist/__tests__/rhi-null-renderer-lifecycle.unit.test.d.ts +2 -0
  433. package/dist/__tests__/rhi-null-renderer-lifecycle.unit.test.d.ts.map +1 -0
  434. package/dist/__tests__/roots-to-scene-asset.test.d.ts +2 -0
  435. package/dist/__tests__/roots-to-scene-asset.test.d.ts.map +1 -0
  436. package/dist/__tests__/roundtrip-primitive.test.d.ts +2 -0
  437. package/dist/__tests__/roundtrip-primitive.test.d.ts.map +1 -0
  438. package/dist/__tests__/runtime-authority-scan.unit.test.d.ts +2 -0
  439. package/dist/__tests__/runtime-authority-scan.unit.test.d.ts.map +1 -0
  440. package/dist/__tests__/runtime-domain-residue.unit.test.d.ts +2 -0
  441. package/dist/__tests__/runtime-domain-residue.unit.test.d.ts.map +1 -0
  442. package/dist/__tests__/scene-bare-guid-refs-instantiate.test.d.ts +2 -0
  443. package/dist/__tests__/scene-bare-guid-refs-instantiate.test.d.ts.map +1 -0
  444. package/dist/__tests__/scene-equirect-roundtrip.test.d.ts +2 -0
  445. package/dist/__tests__/scene-equirect-roundtrip.test.d.ts.map +1 -0
  446. package/dist/__tests__/scene-instance-authoring.integration.test.d.ts +2 -0
  447. package/dist/__tests__/scene-instance-authoring.integration.test.d.ts.map +1 -0
  448. package/dist/__tests__/scene-instance-bridge.integration.test.d.ts +2 -0
  449. package/dist/__tests__/scene-instance-bridge.integration.test.d.ts.map +1 -0
  450. package/dist/__tests__/scene-instance-component.test.d.ts +2 -0
  451. package/dist/__tests__/scene-instance-component.test.d.ts.map +1 -0
  452. package/dist/__tests__/scene-instantiate-cycle-runtime.test.d.ts +2 -0
  453. package/dist/__tests__/scene-instantiate-cycle-runtime.test.d.ts.map +1 -0
  454. package/dist/__tests__/scene-mount-fixed-point.test.d.ts +2 -0
  455. package/dist/__tests__/scene-mount-fixed-point.test.d.ts.map +1 -0
  456. package/dist/__tests__/scene-mount-roundtrip.test.d.ts +2 -0
  457. package/dist/__tests__/scene-mount-roundtrip.test.d.ts.map +1 -0
  458. package/dist/__tests__/scene-mount-wrapper-roundtrip.test.d.ts +2 -0
  459. package/dist/__tests__/scene-mount-wrapper-roundtrip.test.d.ts.map +1 -0
  460. package/dist/__tests__/scene-sugar-instantiate.test.d.ts +2 -0
  461. package/dist/__tests__/scene-sugar-instantiate.test.d.ts.map +1 -0
  462. package/dist/__tests__/serialize-mounts-roundtrip.test.d.ts +2 -0
  463. package/dist/__tests__/serialize-mounts-roundtrip.test.d.ts.map +1 -0
  464. package/dist/__tests__/serialize-scene-asset.test.d.ts +2 -0
  465. package/dist/__tests__/serialize-scene-asset.test.d.ts.map +1 -0
  466. package/dist/__tests__/shadow-caster-empty-schema.test.d.ts +2 -0
  467. package/dist/__tests__/shadow-caster-empty-schema.test.d.ts.map +1 -0
  468. package/dist/__tests__/shadow-csm-atlas.test.d.ts +2 -0
  469. package/dist/__tests__/shadow-csm-atlas.test.d.ts.map +1 -0
  470. package/dist/__tests__/shadow-csm-blend.dawn.test.d.ts +2 -0
  471. package/dist/__tests__/shadow-csm-blend.dawn.test.d.ts.map +1 -0
  472. package/dist/__tests__/shadow-csm-cascade-loadop.test.d.ts +2 -0
  473. package/dist/__tests__/shadow-csm-cascade-loadop.test.d.ts.map +1 -0
  474. package/dist/__tests__/shadow-csm-component.test.d.ts +2 -0
  475. package/dist/__tests__/shadow-csm-component.test.d.ts.map +1 -0
  476. package/dist/__tests__/shadow-csm-extract.test.d.ts +2 -0
  477. package/dist/__tests__/shadow-csm-extract.test.d.ts.map +1 -0
  478. package/dist/__tests__/shadow-csm-orthoz.test.d.ts +2 -0
  479. package/dist/__tests__/shadow-csm-orthoz.test.d.ts.map +1 -0
  480. package/dist/__tests__/shadow-csm-runtime-vary.dawn.test.d.ts +2 -0
  481. package/dist/__tests__/shadow-csm-runtime-vary.dawn.test.d.ts.map +1 -0
  482. package/dist/__tests__/shadow-csm-shader.dawn.test.d.ts +2 -0
  483. package/dist/__tests__/shadow-csm-shader.dawn.test.d.ts.map +1 -0
  484. package/dist/__tests__/shadow-csm-tile-consistency.test.d.ts +2 -0
  485. package/dist/__tests__/shadow-csm-tile-consistency.test.d.ts.map +1 -0
  486. package/dist/__tests__/shadow-csm-ubo.dawn.test.d.ts +2 -0
  487. package/dist/__tests__/shadow-csm-ubo.dawn.test.d.ts.map +1 -0
  488. package/dist/__tests__/shadow-csm-ubo.test.d.ts +2 -0
  489. package/dist/__tests__/shadow-csm-ubo.test.d.ts.map +1 -0
  490. package/dist/__tests__/shadow-csm-viewport.browser.test.d.ts +2 -0
  491. package/dist/__tests__/shadow-csm-viewport.browser.test.d.ts.map +1 -0
  492. package/dist/__tests__/shadow-fields-observable.dawn.test.d.ts +2 -0
  493. package/dist/__tests__/shadow-fields-observable.dawn.test.d.ts.map +1 -0
  494. package/dist/__tests__/shadow-m1.dawn.test.d.ts +2 -0
  495. package/dist/__tests__/shadow-m1.dawn.test.d.ts.map +1 -0
  496. package/dist/__tests__/shadow-mesh-ssbo-order.test.d.ts +2 -0
  497. package/dist/__tests__/shadow-mesh-ssbo-order.test.d.ts.map +1 -0
  498. package/dist/__tests__/skin-error-exhaustive.test-d.d.ts +11 -0
  499. package/dist/__tests__/skin-error-exhaustive.test-d.d.ts.map +1 -0
  500. package/dist/__tests__/skin-errors.unit.test.d.ts +2 -0
  501. package/dist/__tests__/skin-errors.unit.test.d.ts.map +1 -0
  502. package/dist/__tests__/skin-extract-getarrayview-count.unit.test.d.ts +2 -0
  503. package/dist/__tests__/skin-extract-getarrayview-count.unit.test.d.ts.map +1 -0
  504. package/dist/__tests__/skin-parented-double-transform.test.d.ts +14 -0
  505. package/dist/__tests__/skin-parented-double-transform.test.d.ts.map +1 -0
  506. package/dist/__tests__/skylight-lazy-projection.test.d.ts +2 -0
  507. package/dist/__tests__/skylight-lazy-projection.test.d.ts.map +1 -0
  508. package/dist/__tests__/sparse-tag-scene-roundtrip.test.d.ts +2 -0
  509. package/dist/__tests__/sparse-tag-scene-roundtrip.test.d.ts.map +1 -0
  510. package/dist/__tests__/sprite-cullmode-flip.dawn.test.d.ts +2 -0
  511. package/dist/__tests__/sprite-cullmode-flip.dawn.test.d.ts.map +1 -0
  512. package/dist/__tests__/sprite-lit-bgl-byte-identical.test.d.ts +2 -0
  513. package/dist/__tests__/sprite-lit-bgl-byte-identical.test.d.ts.map +1 -0
  514. package/dist/__tests__/sprite-lit-extract-branch.test.d.ts +2 -0
  515. package/dist/__tests__/sprite-lit-extract-branch.test.d.ts.map +1 -0
  516. package/dist/__tests__/sprite-lit-pipeline-cache-key.test.d.ts +2 -0
  517. package/dist/__tests__/sprite-lit-pipeline-cache-key.test.d.ts.map +1 -0
  518. package/dist/__tests__/sprite-param-values.test-d.d.ts +2 -0
  519. package/dist/__tests__/sprite-param-values.test-d.d.ts.map +1 -0
  520. package/dist/__tests__/ssao-bgl.test.d.ts +2 -0
  521. package/dist/__tests__/ssao-bgl.test.d.ts.map +1 -0
  522. package/dist/__tests__/ssao-buffers.test.d.ts +2 -0
  523. package/dist/__tests__/ssao-buffers.test.d.ts.map +1 -0
  524. package/dist/__tests__/ssao-data.test.d.ts +2 -0
  525. package/dist/__tests__/ssao-data.test.d.ts.map +1 -0
  526. package/dist/__tests__/ssao-errors.test.d.ts +2 -0
  527. package/dist/__tests__/ssao-errors.test.d.ts.map +1 -0
  528. package/dist/__tests__/ssao-manifest.test.d.ts +2 -0
  529. package/dist/__tests__/ssao-manifest.test.d.ts.map +1 -0
  530. package/dist/__tests__/ssao-passes.test.d.ts +2 -0
  531. package/dist/__tests__/ssao-passes.test.d.ts.map +1 -0
  532. package/dist/__tests__/ssao-pipelines.test.d.ts +2 -0
  533. package/dist/__tests__/ssao-pipelines.test.d.ts.map +1 -0
  534. package/dist/__tests__/ssao-uniform-layout.test.d.ts +2 -0
  535. package/dist/__tests__/ssao-uniform-layout.test.d.ts.map +1 -0
  536. package/dist/__tests__/static-rig.integration.test.d.ts +2 -0
  537. package/dist/__tests__/static-rig.integration.test.d.ts.map +1 -0
  538. package/dist/__tests__/stencil-outline-pixel.dawn.test.d.ts +2 -0
  539. package/dist/__tests__/stencil-outline-pixel.dawn.test.d.ts.map +1 -0
  540. package/dist/__tests__/swap-chain-format.unit.test.d.ts +2 -0
  541. package/dist/__tests__/swap-chain-format.unit.test.d.ts.map +1 -0
  542. package/dist/__tests__/systems.unit.test.d.ts +2 -0
  543. package/dist/__tests__/systems.unit.test.d.ts.map +1 -0
  544. package/dist/__tests__/template-game-default-api-contract.test.d.ts +2 -0
  545. package/dist/__tests__/template-game-default-api-contract.test.d.ts.map +1 -0
  546. package/dist/__tests__/text.unit.test.d.ts +2 -0
  547. package/dist/__tests__/text.unit.test.d.ts.map +1 -0
  548. package/dist/__tests__/tilemap-childed-despawn.test.d.ts +2 -0
  549. package/dist/__tests__/tilemap-childed-despawn.test.d.ts.map +1 -0
  550. package/dist/__tests__/tilemap-chunk-extract.overhang-bounds.test.d.ts +2 -0
  551. package/dist/__tests__/tilemap-chunk-extract.overhang-bounds.test.d.ts.map +1 -0
  552. package/dist/__tests__/tilemap-chunk-extract.propagate-order.test.d.ts +2 -0
  553. package/dist/__tests__/tilemap-chunk-extract.propagate-order.test.d.ts.map +1 -0
  554. package/dist/__tests__/tilemap-chunk-extract.terrain-rewrite.unit.test.d.ts +2 -0
  555. package/dist/__tests__/tilemap-chunk-extract.terrain-rewrite.unit.test.d.ts.map +1 -0
  556. package/dist/__tests__/tilemap-chunk-extract.test.d.ts +2 -0
  557. package/dist/__tests__/tilemap-chunk-extract.test.d.ts.map +1 -0
  558. package/dist/__tests__/tilemap-chunk-extract.unit.test.d.ts +2 -0
  559. package/dist/__tests__/tilemap-chunk-extract.unit.test.d.ts.map +1 -0
  560. package/dist/__tests__/tilemap-chunk-y-sort-bench.unit.test.d.ts +2 -0
  561. package/dist/__tests__/tilemap-chunk-y-sort-bench.unit.test.d.ts.map +1 -0
  562. package/dist/__tests__/tilemap-dirty-rebuild.test.d.ts +2 -0
  563. package/dist/__tests__/tilemap-dirty-rebuild.test.d.ts.map +1 -0
  564. package/dist/__tests__/tilemap-material-cache.test.d.ts +2 -0
  565. package/dist/__tests__/tilemap-material-cache.test.d.ts.map +1 -0
  566. package/dist/__tests__/tilemap-multi-atlas.test.d.ts +2 -0
  567. package/dist/__tests__/tilemap-multi-atlas.test.d.ts.map +1 -0
  568. package/dist/__tests__/tilemap-owner-boundary.unit.test.d.ts +2 -0
  569. package/dist/__tests__/tilemap-owner-boundary.unit.test.d.ts.map +1 -0
  570. package/dist/__tests__/tilemap-region-pack.test.d.ts +2 -0
  571. package/dist/__tests__/tilemap-region-pack.test.d.ts.map +1 -0
  572. package/dist/__tests__/tilemap-spawn-flip-pivot.test.d.ts +2 -0
  573. package/dist/__tests__/tilemap-spawn-flip-pivot.test.d.ts.map +1 -0
  574. package/dist/__tests__/tilemap-uv-inset.test.d.ts +2 -0
  575. package/dist/__tests__/tilemap-uv-inset.test.d.ts.map +1 -0
  576. package/dist/__tests__/tilemap-validate.test.d.ts +2 -0
  577. package/dist/__tests__/tilemap-validate.test.d.ts.map +1 -0
  578. package/dist/__tests__/tileset-asset-validate.test.d.ts +2 -0
  579. package/dist/__tests__/tileset-asset-validate.test.d.ts.map +1 -0
  580. package/dist/__tests__/transcode-fallback.unit.test.d.ts +2 -0
  581. package/dist/__tests__/transcode-fallback.unit.test.d.ts.map +1 -0
  582. package/dist/__tests__/transform-hierarchy-pixel-diff.dawn.test.d.ts +2 -0
  583. package/dist/__tests__/transform-hierarchy-pixel-diff.dawn.test.d.ts.map +1 -0
  584. package/dist/__tests__/transient-fields-collect.test.d.ts +2 -0
  585. package/dist/__tests__/transient-fields-collect.test.d.ts.map +1 -0
  586. package/dist/__tests__/transient-runtime-behavior.test.d.ts +2 -0
  587. package/dist/__tests__/transient-runtime-behavior.test.d.ts.map +1 -0
  588. package/dist/__tests__/transitional-authoring.integration.test.d.ts +2 -0
  589. package/dist/__tests__/transitional-authoring.integration.test.d.ts.map +1 -0
  590. package/dist/__tests__/transparent-sort-tilemap-sprite-interleave.test.d.ts +2 -0
  591. package/dist/__tests__/transparent-sort-tilemap-sprite-interleave.test.d.ts.map +1 -0
  592. package/dist/__tests__/variant-selection.unit.test.d.ts +2 -0
  593. package/dist/__tests__/variant-selection.unit.test.d.ts.map +1 -0
  594. package/dist/__tests__/vertex-attribute-layout.test.d.ts +2 -0
  595. package/dist/__tests__/vertex-attribute-layout.test.d.ts.map +1 -0
  596. package/dist/__tests__/video-extract-bindgroup.dawn.test.d.ts +2 -0
  597. package/dist/__tests__/video-extract-bindgroup.dawn.test.d.ts.map +1 -0
  598. package/dist/__tests__/video-loader-consumption.test.d.ts +2 -0
  599. package/dist/__tests__/video-loader-consumption.test.d.ts.map +1 -0
  600. package/dist/__tests__/video-loader-smoke.dawn.test.d.ts +2 -0
  601. package/dist/__tests__/video-loader-smoke.dawn.test.d.ts.map +1 -0
  602. package/dist/__tests__/view-ubo-layout.browser.test.d.ts +2 -0
  603. package/dist/__tests__/view-ubo-layout.browser.test.d.ts.map +1 -0
  604. package/dist/__tests__/world-entity-key.test.d.ts +2 -0
  605. package/dist/__tests__/world-entity-key.test.d.ts.map +1 -0
  606. package/dist/__tests__/world-scene-despawn.test.d.ts +2 -0
  607. package/dist/__tests__/world-scene-despawn.test.d.ts.map +1 -0
  608. package/dist/__tests__/world-scene-instantiate.test.d.ts +2 -0
  609. package/dist/__tests__/world-scene-instantiate.test.d.ts.map +1 -0
  610. package/dist/__tests__/world-scene-nested.test.d.ts +2 -0
  611. package/dist/__tests__/world-scene-nested.test.d.ts.map +1 -0
  612. package/dist/__tests__/world-scene-override.test.d.ts +2 -0
  613. package/dist/__tests__/world-scene-override.test.d.ts.map +1 -0
  614. package/dist/__tests__/zero-compression-zero-load.integration.test.d.ts +2 -0
  615. package/dist/__tests__/zero-compression-zero-load.integration.test.d.ts.map +1 -0
  616. package/dist/asset-contributions.d.ts +3 -0
  617. package/dist/asset-contributions.d.ts.map +1 -0
  618. package/dist/backend-selection.d.ts +13 -0
  619. package/dist/backend-selection.d.ts.map +1 -0
  620. package/dist/collect-scene-asset.d.ts +19 -0
  621. package/dist/collect-scene-asset.d.ts.map +1 -0
  622. package/dist/components/__tests__/camera.test-d.d.ts +2 -0
  623. package/dist/components/__tests__/camera.test-d.d.ts.map +1 -0
  624. package/dist/components/__tests__/camera.test.d.ts +2 -0
  625. package/dist/components/__tests__/camera.test.d.ts.map +1 -0
  626. package/dist/components/__tests__/child-of.test.d.ts +2 -0
  627. package/dist/components/__tests__/child-of.test.d.ts.map +1 -0
  628. package/dist/components/__tests__/sprite-animation.test-d.d.ts +2 -0
  629. package/dist/components/__tests__/sprite-animation.test-d.d.ts.map +1 -0
  630. package/dist/components/__tests__/sprite-instances.unit.test.d.ts +2 -0
  631. package/dist/components/__tests__/sprite-instances.unit.test.d.ts.map +1 -0
  632. package/dist/components/__tests__/sprite-region-override.test-d.d.ts +2 -0
  633. package/dist/components/__tests__/sprite-region-override.test-d.d.ts.map +1 -0
  634. package/dist/components/__tests__/tile-layer.test-d.d.ts +2 -0
  635. package/dist/components/__tests__/tile-layer.test-d.d.ts.map +1 -0
  636. package/dist/components/__tests__/tile-layer.unit.test.d.ts +2 -0
  637. package/dist/components/__tests__/tile-layer.unit.test.d.ts.map +1 -0
  638. package/dist/components/__tests__/tilemap.test-d.d.ts +2 -0
  639. package/dist/components/__tests__/tilemap.test-d.d.ts.map +1 -0
  640. package/dist/components/__tests__/transform-vec-schema.test.d.ts +2 -0
  641. package/dist/components/__tests__/transform-vec-schema.test.d.ts.map +1 -0
  642. package/dist/create-renderer-env-classify.d.ts +21 -0
  643. package/dist/create-renderer-env-classify.d.ts.map +1 -0
  644. package/dist/createRenderer.d.ts +15 -0
  645. package/dist/createRenderer.d.ts.map +1 -0
  646. package/dist/dev-import-transport.d.ts +24 -0
  647. package/dist/dev-import-transport.d.ts.map +1 -0
  648. package/dist/errors/environment.d.ts +2 -0
  649. package/dist/errors/environment.d.ts.map +1 -0
  650. package/dist/index.d.ts +218 -0
  651. package/dist/index.d.ts.map +1 -0
  652. package/dist/index.mjs +813 -0
  653. package/dist/index.mjs.map +1 -0
  654. package/dist/renderer-host.d.ts +9 -0
  655. package/dist/renderer-host.d.ts.map +1 -0
  656. package/dist/renderer-host.mjs +62 -0
  657. package/dist/renderer-host.mjs.map +1 -0
  658. package/dist/scene-instances/__tests__/post-spawn-resolve-joints.unit.test.d.ts +2 -0
  659. package/dist/scene-instances/__tests__/post-spawn-resolve-joints.unit.test.d.ts.map +1 -0
  660. package/dist/scene-instances/index.d.ts +2 -0
  661. package/dist/scene-instances/index.d.ts.map +1 -0
  662. package/dist/scene-utils/mount-override-fold.d.ts +15 -0
  663. package/dist/scene-utils/mount-override-fold.d.ts.map +1 -0
  664. package/dist/sprite-param-values.d.ts +62 -0
  665. package/dist/sprite-param-values.d.ts.map +1 -0
  666. package/dist/systems/__tests__/_xorshift.d.ts +28 -0
  667. package/dist/systems/__tests__/_xorshift.d.ts.map +1 -0
  668. package/dist/systems/__tests__/argsort-in-place.test.d.ts +2 -0
  669. package/dist/systems/__tests__/argsort-in-place.test.d.ts.map +1 -0
  670. package/dist/systems/__tests__/transparent-sort.bench.d.ts +2 -0
  671. package/dist/systems/__tests__/transparent-sort.bench.d.ts.map +1 -0
  672. package/dist/systems/sprite-animation-tick.d.ts +50 -0
  673. package/dist/systems/sprite-animation-tick.d.ts.map +1 -0
  674. package/dist/systems/tonemap.d.ts +27 -0
  675. package/dist/systems/tonemap.d.ts.map +1 -0
  676. package/dist/systems/transparent-sort.d.ts +50 -0
  677. package/dist/systems/transparent-sort.d.ts.map +1 -0
  678. package/dist/tilemap-register-validate.d.ts +21 -0
  679. package/dist/tilemap-register-validate.d.ts.map +1 -0
  680. package/package.json +101 -0
  681. package/src/__tests__/active-camera.unit.test.ts +203 -0
  682. package/src/__tests__/animation-graph-add.unit.test.ts +67 -0
  683. package/src/__tests__/animation-graph-asset-union.test-d.ts +83 -0
  684. package/src/__tests__/animation-graph-blend.unit.test.ts +66 -0
  685. package/src/__tests__/animation-graph-build.unit.test.ts +100 -0
  686. package/src/__tests__/animation-graph-clip-missing.unit.test.ts +62 -0
  687. package/src/__tests__/animation-graph-clip.unit.test.ts +77 -0
  688. package/src/__tests__/animation-graph-collect-roundtrip.test.ts +213 -0
  689. package/src/__tests__/animation-graph-default-path.integration.test.ts +65 -0
  690. package/src/__tests__/animation-graph-describe.unit.test.ts +68 -0
  691. package/src/__tests__/animation-graph-errors.unit.test.ts +75 -0
  692. package/src/__tests__/animation-graph-nesting.unit.test.ts +84 -0
  693. package/src/__tests__/animation-graph-orthogonal-weight.unit.test.ts +98 -0
  694. package/src/__tests__/animation-graph-serialize.unit.test.ts +171 -0
  695. package/src/__tests__/animation-graph-slot-fill.unit.test.ts +95 -0
  696. package/src/__tests__/animation-nslot.unit.test.ts +63 -0
  697. package/src/__tests__/animation-slot-length-guard.unit.test.ts +81 -0
  698. package/src/__tests__/append-injection.test.ts +105 -0
  699. package/src/__tests__/asi-world-baseline-export.unit.test.ts +173 -0
  700. package/src/__tests__/asi-world-ci-config.unit.test.ts +186 -0
  701. package/src/__tests__/asi-world-smoke.unit.test.ts +192 -0
  702. package/src/__tests__/asset-brand-and-name-retirement.test.ts +102 -0
  703. package/src/__tests__/asset-error-exhaustive.test-d.ts +62 -0
  704. package/src/__tests__/asset-registry-guid-reverse.test.ts +608 -0
  705. package/src/__tests__/asset-registry-hdr-equirect.test.ts +78 -0
  706. package/src/__tests__/asset-registry-mesh-pack-payload.dawn.test.ts +232 -0
  707. package/src/__tests__/asset-registry-mounts.test.ts +806 -0
  708. package/src/__tests__/asset-registry-scene.test-d.ts +49 -0
  709. package/src/__tests__/asset-registry.browser.test.ts +81 -0
  710. package/src/__tests__/asset-registry.dawn.test.ts +94 -0
  711. package/src/__tests__/asset-registry.listCatalog.test.ts +170 -0
  712. package/src/__tests__/asset-registry.mesh-bin.test.ts +316 -0
  713. package/src/__tests__/asset-registry.pack-cache.test.ts +969 -0
  714. package/src/__tests__/asset-registry.raw-container-failfast.test.ts +225 -0
  715. package/src/__tests__/asset-registry.recursive.spec.ts +1397 -0
  716. package/src/__tests__/asset-registry.unit.test.ts +1030 -0
  717. package/src/__tests__/asset.unit.test.ts +7107 -0
  718. package/src/__tests__/audio-load-by-guid.unit.test.ts +126 -0
  719. package/src/__tests__/backend-selection.integration.test.ts +11 -0
  720. package/src/__tests__/basis-catalog-dispatch.integration.test.ts +320 -0
  721. package/src/__tests__/bind-group-cache-keying.test.ts +295 -0
  722. package/src/__tests__/block-upload-math.unit.test.ts +192 -0
  723. package/src/__tests__/builtin-asset-registry.unit.test.ts +112 -0
  724. package/src/__tests__/builtin-shader-register-e2e.test.ts +151 -0
  725. package/src/__tests__/cache-false-eviction.test.ts +127 -0
  726. package/src/__tests__/cache-isolation-matrix.test.ts +183 -0
  727. package/src/__tests__/camera-clear-snapshot-equivalence.unit.test.ts +75 -0
  728. package/src/__tests__/clamp-to-last.e2e.browser.test.ts +193 -0
  729. package/src/__tests__/clamp-to-last.e2e.dawn.test.ts +325 -0
  730. package/src/__tests__/collect-scene-asset.test.ts +873 -0
  731. package/src/__tests__/collect-scene-mount-collapse.test.ts +391 -0
  732. package/src/__tests__/collect-subtree.unit.test.ts +75 -0
  733. package/src/__tests__/collect-transient-children-absent.test.ts +168 -0
  734. package/src/__tests__/collect-transient-roundtrip.test.ts +269 -0
  735. package/src/__tests__/collect-transient-skip.test.ts +176 -0
  736. package/src/__tests__/components.test-d.ts +231 -0
  737. package/src/__tests__/components.unit.test.ts +2666 -0
  738. package/src/__tests__/composite-skybox-cross-world.browser.test.ts +410 -0
  739. package/src/__tests__/compressed-texture-physical-extent.integration.test.ts +139 -0
  740. package/src/__tests__/create-renderer-assembly.integration.test.ts +55 -0
  741. package/src/__tests__/createRenderer-dispose.test.ts +49 -0
  742. package/src/__tests__/createRenderer-requiredFeatures.unit.test.ts +134 -0
  743. package/src/__tests__/createRenderer.browser-no-webgpu.test.ts +54 -0
  744. package/src/__tests__/createRenderer.unit.test.ts +231 -0
  745. package/src/__tests__/dawn/hello-sprite-nineslice-section.dawn.test.ts +357 -0
  746. package/src/__tests__/dawn/ibl-compose.dawn.test.ts +151 -0
  747. package/src/__tests__/dawn/ibl-modules-compose.dawn.test.ts +223 -0
  748. package/src/__tests__/dawn/ibl-precompute-readback.dawn.test.ts +250 -0
  749. package/src/__tests__/dawn/instances-per-instance-pbr.dawn.test.ts +631 -0
  750. package/src/__tests__/dawn/instances-shadow.dawn.test.ts +454 -0
  751. package/src/__tests__/dawn/instances-uniform-fallback.dawn.test.ts +312 -0
  752. package/src/__tests__/dawn/material-alpha.dawn.test.ts +296 -0
  753. package/src/__tests__/dawn/material-cooked-fixture.dawn.test.ts +79 -0
  754. package/src/__tests__/dawn/mesh-ssbo-normal-matrix.dawn.test.ts +106 -0
  755. package/src/__tests__/dawn/mesh-update-dawn.test.ts +250 -0
  756. package/src/__tests__/dawn/mipmap-srgb-linear.dawn.test.ts +124 -0
  757. package/src/__tests__/dawn/per-entity-material-texture-isolation.dawn.test.ts +555 -0
  758. package/src/__tests__/dawn/sprite-nineslice-mesh-bind.dawn.test.ts +235 -0
  759. package/src/__tests__/dawn/tonemap.dawn.test.ts +107 -0
  760. package/src/__tests__/dawn/upload-texture.dawn.test.ts +198 -0
  761. package/src/__tests__/dawn/user-handle-mesh-render.dawn.test.ts +289 -0
  762. package/src/__tests__/dawn/user-mesh-upload.dawn.test.ts +209 -0
  763. package/src/__tests__/dawn/zero-manifest-mesh-fail.dawn.test.ts +119 -0
  764. package/src/__tests__/dawn/zero-manifest-ready.dawn.test.ts +98 -0
  765. package/src/__tests__/demo-sortscope-migration.unit.test.ts +115 -0
  766. package/src/__tests__/derive-bgl-integration.test.ts +388 -0
  767. package/src/__tests__/derive-render-data-skin.unit.test.ts +90 -0
  768. package/src/__tests__/draw-published.ts +17 -0
  769. package/src/__tests__/dynamic-texture-store.unit.test.ts +190 -0
  770. package/src/__tests__/environment-error-exhaustive.test-d.ts +28 -0
  771. package/src/__tests__/equirect-bc6h.integration.test.ts +158 -0
  772. package/src/__tests__/error-exhaustive.test.ts +220 -0
  773. package/src/__tests__/errors.unit.test.ts +1227 -0
  774. package/src/__tests__/extract-frames-graceful-degradation.test.ts +294 -0
  775. package/src/__tests__/extract-frames-merge.test.ts +656 -0
  776. package/src/__tests__/extract-frames-reset.test.ts +158 -0
  777. package/src/__tests__/extract-record-no-hardcoded-texture-fields.test.ts +81 -0
  778. package/src/__tests__/extract-skin-mismatch.unit.test.ts +322 -0
  779. package/src/__tests__/fetch-binary-decompress.test.ts +356 -0
  780. package/src/__tests__/four-path-compression.integration.test.ts +395 -0
  781. package/src/__tests__/frame-targets-shadow-regression.unit.test.ts +28 -0
  782. package/src/__tests__/fullscreen-feature-host.dawn.test.ts +80 -0
  783. package/src/__tests__/fullscreen-post-bgl-depth.test.ts +133 -0
  784. package/src/__tests__/fullscreen-post-depth-params-arity.test.ts +84 -0
  785. package/src/__tests__/fullscreen-post-process-pass.dawn.test.ts +336 -0
  786. package/src/__tests__/fullscreen-post-process-pass.unit.test.ts +109 -0
  787. package/src/__tests__/fxaa-pixel-diff.dawn.test.ts +303 -0
  788. package/src/__tests__/fxaa-validation-and-resize.dawn.test.ts +369 -0
  789. package/src/__tests__/fxaa-zero-overhead.dawn.test.ts +258 -0
  790. package/src/__tests__/geometry.unit.test.ts +2631 -0
  791. package/src/__tests__/glyph-tilemap-worldid.test.ts +146 -0
  792. package/src/__tests__/gpu-resource-cow-survivor.test.ts +390 -0
  793. package/src/__tests__/guid-for-asset.unit.test.ts +102 -0
  794. package/src/__tests__/handle-migration.test.ts +136 -0
  795. package/src/__tests__/hello-tilemap-smoke-upgrade.unit.test.ts +147 -0
  796. package/src/__tests__/helpers/mock-shader-registry.ts +139 -0
  797. package/src/__tests__/helpers/register-runtime-components.ts +71 -0
  798. package/src/__tests__/helpers/register-scene-components.ts +10 -0
  799. package/src/__tests__/helpers/tilemap-assets.ts +29 -0
  800. package/src/__tests__/host-custom-kind-contract.test-d.ts +47 -0
  801. package/src/__tests__/host-custom-kind-contract.test.ts +578 -0
  802. package/src/__tests__/inspect-name.test.ts +139 -0
  803. package/src/__tests__/instances.test-d.ts +61 -0
  804. package/src/__tests__/instantiate-mount-deferred-wiring.test.ts +112 -0
  805. package/src/__tests__/light-attenuation-formula.test.ts +171 -0
  806. package/src/__tests__/light-casters-9-light.browser.test.ts +877 -0
  807. package/src/__tests__/light-gpu-byte-neutral.unit.test.ts +160 -0
  808. package/src/__tests__/light-snapshot.test-d.ts +84 -0
  809. package/src/__tests__/lights-vec-negative.unit.test.ts +52 -0
  810. package/src/__tests__/lights.unit.test.ts +2456 -0
  811. package/src/__tests__/loadbyguid-payload.unit.test.ts +117 -0
  812. package/src/__tests__/loadbyguid-texture-intern.unit.test.ts +213 -0
  813. package/src/__tests__/loader-extract-graceful.test.ts +146 -0
  814. package/src/__tests__/loader-name-survival.test.ts +213 -0
  815. package/src/__tests__/m3-vec-negative.unit.test.ts +46 -0
  816. package/src/__tests__/m5-browser-dawn-sweep.integration.test.ts +8 -0
  817. package/src/__tests__/material-texture-uv-scale.unit.test.ts +119 -0
  818. package/src/__tests__/materials.unit.test.ts +254 -0
  819. package/src/__tests__/mesh-bin-contract.test.ts +28 -0
  820. package/src/__tests__/mesh-bin-skin-roundtrip.unit.test.ts +149 -0
  821. package/src/__tests__/mesh-bin.test.ts +38 -0
  822. package/src/__tests__/mesh-loader-skin-contract.unit.test.ts +120 -0
  823. package/src/__tests__/mesh-ssbo-grow.unit.test.ts +244 -0
  824. package/src/__tests__/mip-gate.unit.test.ts +79 -0
  825. package/src/__tests__/msaa-sprite-pixel-diff.dawn.test.ts +367 -0
  826. package/src/__tests__/multi-uv-8set.e2e.dawn.test.ts +296 -0
  827. package/src/__tests__/name.unit.test.ts +123 -0
  828. package/src/__tests__/new-kind-refs-contract.test.ts +132 -0
  829. package/src/__tests__/node-shims.d.ts +31 -0
  830. package/src/__tests__/package-promotion.test.ts +88 -0
  831. package/src/__tests__/package-rename.test.ts +103 -0
  832. package/src/__tests__/pass-selector.unit.test.ts +102 -0
  833. package/src/__tests__/pbr-pipeline.unit.test.ts +200 -0
  834. package/src/__tests__/pipeline-builder-msaa.unit.test.ts +221 -0
  835. package/src/__tests__/pipeline-cache-keying.unit.test.ts +313 -0
  836. package/src/__tests__/pipeline-spec.test.ts +900 -0
  837. package/src/__tests__/pipeline.unit.test.ts +5435 -0
  838. package/src/__tests__/point-light-shadow.browser.test.ts +278 -0
  839. package/src/__tests__/point-light-shadow.dawn.test.ts +813 -0
  840. package/src/__tests__/point-light-shadow.unit.test.ts +675 -0
  841. package/src/__tests__/post-process-error-codes.unit.test.ts +161 -0
  842. package/src/__tests__/post-process-params-component.unit.test.ts +153 -0
  843. package/src/__tests__/post-process-params-extract.unit.test.ts +97 -0
  844. package/src/__tests__/postprocess-camera-consistency.test.ts +375 -0
  845. package/src/__tests__/profiler-assembly.integration.test.ts +74 -0
  846. package/src/__tests__/propagate-transforms.dawn.test.ts +254 -0
  847. package/src/__tests__/record-worldid-isolation.test.ts +225 -0
  848. package/src/__tests__/recover-error-exhaustive.test-d.ts +35 -0
  849. package/src/__tests__/render-error-exhaustive.test-d.ts +291 -0
  850. package/src/__tests__/render-feature-assembly.test-d.ts +39 -0
  851. package/src/__tests__/render-feature-prepared-graphics-docs.unit.test.ts +126 -0
  852. package/src/__tests__/render-feature-prepared-graphics.browser.test.ts +88 -0
  853. package/src/__tests__/render-feature-prepared-graphics.dawn.test.ts +115 -0
  854. package/src/__tests__/render-feature-prepared-graphics.fixture.ts +104 -0
  855. package/src/__tests__/render-feature-prepared-graphics.integration.test.ts +56 -0
  856. package/src/__tests__/render-feature-prepared-graphics.regression.integration.test.ts +104 -0
  857. package/src/__tests__/render-feature-recover.integration.test.ts +102 -0
  858. package/src/__tests__/render-feature-runtime-surface.test-d.ts +42 -0
  859. package/src/__tests__/render-schema-consumer.integration.test.ts +32 -0
  860. package/src/__tests__/render-schema-owner-boundary.unit.test.ts +22 -0
  861. package/src/__tests__/render-system-cross-world-overlay-queue.test.ts +172 -0
  862. package/src/__tests__/render-system-extract-dispatch-ordering.test.ts +307 -0
  863. package/src/__tests__/render-system-extract.test.ts +1384 -0
  864. package/src/__tests__/render-system-extract.unit.test.ts +360 -0
  865. package/src/__tests__/render-system-fold-bucket.unit.test.ts +286 -0
  866. package/src/__tests__/render-system-fold-fallback.unit.test.ts +151 -0
  867. package/src/__tests__/render-system-fold-material.unit.test.ts +143 -0
  868. package/src/__tests__/render-system-fold-metrics.unit.test.ts +170 -0
  869. package/src/__tests__/render-system-fold-modegate.unit.test.ts +166 -0
  870. package/src/__tests__/render-system-fold-scene-instances.unit.test.ts +51 -0
  871. package/src/__tests__/render-system-fold.dawn.test.ts +308 -0
  872. package/src/__tests__/render-system-mega.test.ts +1680 -0
  873. package/src/__tests__/render-system-owner-split-contract.test.ts +178 -0
  874. package/src/__tests__/render-system-record-multi-material-textureview.test.ts +698 -0
  875. package/src/__tests__/render-system-record-per-submesh-transparency.test.ts +458 -0
  876. package/src/__tests__/render-system-record.test.ts +1668 -0
  877. package/src/__tests__/render-system-record.unit.test.ts +269 -0
  878. package/src/__tests__/render-system-skin-bg.unit.test.ts +143 -0
  879. package/src/__tests__/renderer-consumer.test-d.ts +18 -0
  880. package/src/__tests__/renderer-health.unit.test.ts +45 -0
  881. package/src/__tests__/renderer-lifecycle.integration.test.ts +42 -0
  882. package/src/__tests__/renderer-recover.unit.test.ts +55 -0
  883. package/src/__tests__/renderer-result.test-d.ts +36 -0
  884. package/src/__tests__/renderer-surface.unit.test.ts +414 -0
  885. package/src/__tests__/renderer-test-utils.ts +56 -0
  886. package/src/__tests__/renderer.test-d.ts +61 -0
  887. package/src/__tests__/resolve-asset-handle-err.test.ts +111 -0
  888. package/src/__tests__/resolve-asset-handle.unit.test.ts +64 -0
  889. package/src/__tests__/resolve-depth-only-view.test.ts +173 -0
  890. package/src/__tests__/resolveName-fallback.test.ts +64 -0
  891. package/src/__tests__/resolveName-null-package.test.ts +38 -0
  892. package/src/__tests__/resolveName-unified-entry.test.ts +65 -0
  893. package/src/__tests__/resolveName.test.ts +64 -0
  894. package/src/__tests__/rhi-null-command-flow.unit.test.ts +69 -0
  895. package/src/__tests__/rhi-null-noop-behavior.unit.test.ts +196 -0
  896. package/src/__tests__/rhi-null-renderer-lifecycle.unit.test.ts +54 -0
  897. package/src/__tests__/roots-to-scene-asset.test.ts +711 -0
  898. package/src/__tests__/roundtrip-primitive.test.ts +351 -0
  899. package/src/__tests__/runtime-authority-scan.unit.test.ts +19 -0
  900. package/src/__tests__/runtime-domain-residue.unit.test.ts +13 -0
  901. package/src/__tests__/scene-bare-guid-refs-instantiate.test.ts +123 -0
  902. package/src/__tests__/scene-equirect-roundtrip.test.ts +120 -0
  903. package/src/__tests__/scene-instance-authoring.integration.test.ts +8 -0
  904. package/src/__tests__/scene-instance-bridge.integration.test.ts +8 -0
  905. package/src/__tests__/scene-instance-component.test.ts +45 -0
  906. package/src/__tests__/scene-instantiate-cycle-runtime.test.ts +66 -0
  907. package/src/__tests__/scene-mount-fixed-point.test.ts +257 -0
  908. package/src/__tests__/scene-mount-roundtrip.test.ts +987 -0
  909. package/src/__tests__/scene-mount-wrapper-roundtrip.test.ts +202 -0
  910. package/src/__tests__/scene-sugar-instantiate.test.ts +324 -0
  911. package/src/__tests__/serialize-mounts-roundtrip.test.ts +533 -0
  912. package/src/__tests__/serialize-scene-asset.test.ts +533 -0
  913. package/src/__tests__/shadow-caster-empty-schema.test.ts +83 -0
  914. package/src/__tests__/shadow-csm-atlas.test.ts +178 -0
  915. package/src/__tests__/shadow-csm-blend.dawn.test.ts +230 -0
  916. package/src/__tests__/shadow-csm-cascade-loadop.test.ts +354 -0
  917. package/src/__tests__/shadow-csm-component.test.ts +284 -0
  918. package/src/__tests__/shadow-csm-extract.test.ts +236 -0
  919. package/src/__tests__/shadow-csm-orthoz.test.ts +137 -0
  920. package/src/__tests__/shadow-csm-runtime-vary.dawn.test.ts +203 -0
  921. package/src/__tests__/shadow-csm-shader.dawn.test.ts +358 -0
  922. package/src/__tests__/shadow-csm-tile-consistency.test.ts +425 -0
  923. package/src/__tests__/shadow-csm-ubo.dawn.test.ts +252 -0
  924. package/src/__tests__/shadow-csm-ubo.test.ts +278 -0
  925. package/src/__tests__/shadow-csm-viewport.browser.test.ts +85 -0
  926. package/src/__tests__/shadow-fields-observable.dawn.test.ts +626 -0
  927. package/src/__tests__/shadow-m1.dawn.test.ts +104 -0
  928. package/src/__tests__/shadow-mesh-ssbo-order.test.ts +48 -0
  929. package/src/__tests__/skin-error-exhaustive.test-d.ts +74 -0
  930. package/src/__tests__/skin-errors.unit.test.ts +10 -0
  931. package/src/__tests__/skin-extract-getarrayview-count.unit.test.ts +25 -0
  932. package/src/__tests__/skin-parented-double-transform.test.ts +268 -0
  933. package/src/__tests__/skylight-lazy-projection.test.ts +380 -0
  934. package/src/__tests__/sparse-tag-scene-roundtrip.test.ts +43 -0
  935. package/src/__tests__/sprite-cullmode-flip.dawn.test.ts +453 -0
  936. package/src/__tests__/sprite-lit-bgl-byte-identical.test.ts +142 -0
  937. package/src/__tests__/sprite-lit-extract-branch.test.ts +117 -0
  938. package/src/__tests__/sprite-lit-pipeline-cache-key.test.ts +123 -0
  939. package/src/__tests__/sprite-param-values.test-d.ts +104 -0
  940. package/src/__tests__/ssao-bgl.test.ts +354 -0
  941. package/src/__tests__/ssao-buffers.test.ts +211 -0
  942. package/src/__tests__/ssao-data.test.ts +121 -0
  943. package/src/__tests__/ssao-errors.test.ts +162 -0
  944. package/src/__tests__/ssao-manifest.test.ts +109 -0
  945. package/src/__tests__/ssao-passes.test.ts +905 -0
  946. package/src/__tests__/ssao-pipelines.test.ts +275 -0
  947. package/src/__tests__/ssao-uniform-layout.test.ts +180 -0
  948. package/src/__tests__/static-rig.integration.test.ts +9 -0
  949. package/src/__tests__/stencil-outline-pixel.dawn.test.ts +303 -0
  950. package/src/__tests__/swap-chain-format.unit.test.ts +115 -0
  951. package/src/__tests__/systems.unit.test.ts +9167 -0
  952. package/src/__tests__/template-game-default-api-contract.test.ts +362 -0
  953. package/src/__tests__/text.unit.test.ts +489 -0
  954. package/src/__tests__/tilemap-childed-despawn.test.ts +462 -0
  955. package/src/__tests__/tilemap-chunk-extract.overhang-bounds.test.ts +310 -0
  956. package/src/__tests__/tilemap-chunk-extract.propagate-order.test.ts +81 -0
  957. package/src/__tests__/tilemap-chunk-extract.terrain-rewrite.unit.test.ts +424 -0
  958. package/src/__tests__/tilemap-chunk-extract.test.ts +232 -0
  959. package/src/__tests__/tilemap-chunk-extract.unit.test.ts +383 -0
  960. package/src/__tests__/tilemap-chunk-y-sort-bench.unit.test.ts +109 -0
  961. package/src/__tests__/tilemap-dirty-rebuild.test.ts +296 -0
  962. package/src/__tests__/tilemap-material-cache.test.ts +132 -0
  963. package/src/__tests__/tilemap-multi-atlas.test.ts +217 -0
  964. package/src/__tests__/tilemap-owner-boundary.unit.test.ts +66 -0
  965. package/src/__tests__/tilemap-region-pack.test.ts +149 -0
  966. package/src/__tests__/tilemap-spawn-flip-pivot.test.ts +270 -0
  967. package/src/__tests__/tilemap-uv-inset.test.ts +201 -0
  968. package/src/__tests__/tilemap-validate.test.ts +201 -0
  969. package/src/__tests__/tileset-asset-validate.test.ts +638 -0
  970. package/src/__tests__/transcode-fallback.unit.test.ts +207 -0
  971. package/src/__tests__/transform-hierarchy-pixel-diff.dawn.test.ts +282 -0
  972. package/src/__tests__/transient-fields-collect.test.ts +210 -0
  973. package/src/__tests__/transient-runtime-behavior.test.ts +227 -0
  974. package/src/__tests__/transitional-authoring.integration.test.ts +7 -0
  975. package/src/__tests__/transparent-sort-tilemap-sprite-interleave.test.ts +227 -0
  976. package/src/__tests__/variant-selection.unit.test.ts +21 -0
  977. package/src/__tests__/vertex-attribute-layout.test.ts +324 -0
  978. package/src/__tests__/video-extract-bindgroup.dawn.test.ts +403 -0
  979. package/src/__tests__/video-loader-consumption.test.ts +86 -0
  980. package/src/__tests__/video-loader-smoke.dawn.test.ts +60 -0
  981. package/src/__tests__/view-ubo-layout.browser.test.ts +161 -0
  982. package/src/__tests__/world-entity-key.test.ts +92 -0
  983. package/src/__tests__/world-scene-despawn.test.ts +132 -0
  984. package/src/__tests__/world-scene-instantiate.test.ts +194 -0
  985. package/src/__tests__/world-scene-nested.test.ts +230 -0
  986. package/src/__tests__/world-scene-override.test.ts +199 -0
  987. package/src/__tests__/zero-compression-zero-load.integration.test.ts +107 -0
  988. package/src/asset-contributions.ts +48 -0
  989. package/src/backend-selection.ts +69 -0
  990. package/src/collect-scene-asset.ts +701 -0
  991. package/src/components/__tests__/camera.test-d.ts +57 -0
  992. package/src/components/__tests__/camera.test.ts +95 -0
  993. package/src/components/__tests__/child-of.test.ts +35 -0
  994. package/src/components/__tests__/sprite-animation.test-d.ts +160 -0
  995. package/src/components/__tests__/sprite-instances.unit.test.ts +108 -0
  996. package/src/components/__tests__/sprite-region-override.test-d.ts +101 -0
  997. package/src/components/__tests__/tile-layer.test-d.ts +33 -0
  998. package/src/components/__tests__/tile-layer.unit.test.ts +125 -0
  999. package/src/components/__tests__/tilemap.test-d.ts +35 -0
  1000. package/src/components/__tests__/transform-vec-schema.test.ts +121 -0
  1001. package/src/create-renderer-env-classify.ts +110 -0
  1002. package/src/createRenderer.ts +49 -0
  1003. package/src/dev-import-transport.ts +97 -0
  1004. package/src/errors/environment.ts +6 -0
  1005. package/src/index.ts +380 -0
  1006. package/src/renderer-host.ts +33 -0
  1007. package/src/scene-instances/__tests__/post-spawn-resolve-joints.unit.test.ts +183 -0
  1008. package/src/scene-instances/index.ts +4 -0
  1009. package/src/scene-utils/mount-override-fold.ts +213 -0
  1010. package/src/sprite-param-values.ts +61 -0
  1011. package/src/systems/__tests__/_xorshift.ts +83 -0
  1012. package/src/systems/__tests__/argsort-in-place.test.ts +155 -0
  1013. package/src/systems/__tests__/transparent-sort.bench.ts +218 -0
  1014. package/src/systems/sprite-animation-tick.ts +302 -0
  1015. package/src/systems/tonemap.ts +68 -0
  1016. package/src/systems/transparent-sort.ts +434 -0
  1017. package/src/tilemap-register-validate.ts +100 -0
@@ -0,0 +1,873 @@
1
+ import * as SceneOwner from '@forgeax/engine-scene';
2
+
3
+ // w9 — writeback round-trip semantic equivalence tests, migrated to
4
+ // rootsToSceneAsset (plan-strategy D-1: semantic equivalence not byte
5
+ // equivalence because full writeback materializes defaults — decisions #8 OOS).
6
+ //
7
+ // Old w10 (handleToGuid tests) removed — engine now self-resolves GUIDs
8
+ // via AssetRegistry, no external handleToGuid table needed. Those scenarios
9
+ // are covered by m2-t3 in roots-to-scene-asset.test.ts.
10
+ //
11
+ // NOTE: rootsToSceneAsset collects the root entity itself in the BFS closure,
12
+ // unlike old collectSceneAsset (which only returned SceneAsset entities).
13
+ // Entity counts here include the synthetic root from instantiateScene.
14
+ //
15
+ // M1T7 AUDIT (feat-20260707-engine-world-clone-transient-for-editor-ssot):
16
+ // Classification: (b) false-positive modification risk — all 10 tests
17
+ // preserved as-is. These tests check entity count, component value fidelity,
18
+ // and round-trip semantics using custom non-transient test components
19
+ // (Test_Transform, Test_Pos3, etc.). None of them assert on Children or
20
+ // SceneInstance presence in output. Entity-count checks (n entities + 1
21
+ // synthetic root) are unaffected by transient — transient only skips
22
+ // component-level keys, not entity-level entries.
23
+ // VERDICT: zero expectations encoded pre-fix bug.
24
+
25
+ import { AssetRegistry } from '@forgeax/engine-assets-runtime';
26
+ import { type Component, defineComponent as defineEcsComponent, World } from '@forgeax/engine-ecs';
27
+ import { AssetGuid } from '@forgeax/engine-pack/guid';
28
+ import { SceneInstance } from '@forgeax/engine-render';
29
+ import { ChildOf, Children, Transform } from '@forgeax/engine-scene';
30
+ import type { LocalEntityId, SceneAsset, SceneEntity } from '@forgeax/engine-types';
31
+ import { describe, expect, it } from 'vitest';
32
+ import { rootsToSceneAsset, serializeSceneAssetToPack } from '../collect-scene-asset';
33
+ import { makeMockShaderRegistry } from './helpers/mock-shader-registry';
34
+
35
+ const TEST_COMPONENTS: Component[] = [];
36
+
37
+ function defineComponent(name: string, fields: Record<string, unknown>): Component {
38
+ const component = defineEcsComponent(name, fields as never);
39
+ TEST_COMPONENTS.push(component);
40
+ return component;
41
+ }
42
+
43
+ function registerSceneComponents(world: World): void {
44
+ for (const component of [SceneInstance, ChildOf, Children, Transform, ...TEST_COMPONENTS]) {
45
+ world.components.register(component).unwrap();
46
+ }
47
+ }
48
+
49
+ function makeRegistry(): AssetRegistry {
50
+ return new AssetRegistry(makeMockShaderRegistry());
51
+ }
52
+
53
+ function localId(n: number): LocalEntityId {
54
+ return n as LocalEntityId;
55
+ }
56
+
57
+ // biome-ignore lint/suspicious/noExplicitAny: allocSharedRef('SceneAsset') returns branded Handle<"SceneAsset", ...> but instantiateScene expects Handle<string, ...>
58
+ function registerSceneAsset(world: World, asset: SceneAsset): any {
59
+ registerSceneComponents(world);
60
+ return world.allocSharedRef('SceneAsset', asset);
61
+ }
62
+
63
+ function comp(entity: SceneEntity, name: string): Record<string, unknown> | undefined {
64
+ const map = entity.components as Record<string, Record<string, unknown>>;
65
+ return map[name];
66
+ }
67
+
68
+ function def<T>(v: T | undefined | null, label = 'value'): T {
69
+ if (v === undefined || v === null) throw new Error(`expected ${label} to be defined`);
70
+ return v;
71
+ }
72
+
73
+ /** Find the entity in the scene that has the given component. */
74
+ function findEntityWith(entities: readonly SceneEntity[], compName: string): SceneEntity {
75
+ const found = entities.find(
76
+ (e) => (e.components as Record<string, Record<string, unknown>>)[compName] !== undefined,
77
+ );
78
+ if (!found) throw new Error(`no entity with component ${compName}`);
79
+ return found;
80
+ }
81
+
82
+ describe('w9 — round-trip semantic equivalence', () => {
83
+ it('(a) entity count and localId set survive instantiate->collect round-trip', () => {
84
+ defineComponent('Test_Transform', {
85
+ pos: 'array<f32, 3>',
86
+ });
87
+
88
+ const asset: SceneAsset = {
89
+ kind: 'scene',
90
+ entities: [
91
+ { localId: localId(0), components: { Test_Transform: { pos: [1, 2, 3] } } },
92
+ { localId: localId(1), components: { Test_Transform: { pos: [4, 5, 6] } } },
93
+ { localId: localId(2), components: { Test_Transform: { pos: [7, 8, 9] } } },
94
+ ],
95
+ };
96
+
97
+ const world = new World();
98
+ const reg = makeRegistry();
99
+ const sg = AssetGuid.parse('00000000-0000-0000-0000-000000000000');
100
+ if (sg.ok) reg.catalog(sg.value, asset);
101
+ const handle = registerSceneAsset(world, asset);
102
+ const res = SceneOwner.worldInstantiateScene(world, handle);
103
+ expect(res.ok).toBe(true);
104
+ if (!res.ok) return;
105
+ const root = res.value.root;
106
+
107
+ const collected = rootsToSceneAsset(reg, world, [root]);
108
+ expect(collected.ok).toBe(true);
109
+ if (!collected.ok) return;
110
+ const scene = collected.value;
111
+ expect(scene.kind).toBe('scene');
112
+ // rootsToSceneAsset includes the root entity + all children = 4 entities.
113
+ expect(scene.entities).toHaveLength(4);
114
+
115
+ const entityWithTransform = findEntityWith(scene.entities, 'Test_Transform');
116
+ expect(entityWithTransform).toBeDefined();
117
+ });
118
+
119
+ it('(b) component value semantic equivalence — f32 fields round-trip', () => {
120
+ defineComponent('Test_Pos3', {
121
+ x: 'f32',
122
+ y: 'f32',
123
+ z: 'f32',
124
+ });
125
+
126
+ const asset: SceneAsset = {
127
+ kind: 'scene',
128
+ entities: [{ localId: localId(0), components: { Test_Pos3: { x: 10.5, y: 20.5, z: 30.5 } } }],
129
+ };
130
+
131
+ const world = new World();
132
+ const reg = makeRegistry();
133
+ const sg = AssetGuid.parse('00000000-0000-0000-0000-000000000000');
134
+ if (sg.ok) reg.catalog(sg.value, asset);
135
+ const handle = registerSceneAsset(world, asset);
136
+ const res = SceneOwner.worldInstantiateScene(world, handle);
137
+ expect(res.ok).toBe(true);
138
+ if (!res.ok) return;
139
+ const root = res.value.root;
140
+
141
+ const collected = rootsToSceneAsset(reg, world, [root]);
142
+ expect(collected.ok).toBe(true);
143
+ if (!collected.ok) return;
144
+ const scene = collected.value;
145
+ // root + 1 child = 2 entities.
146
+ expect(scene.entities).toHaveLength(2);
147
+ const e = findEntityWith(scene.entities, 'Test_Pos3');
148
+ const tp = def(comp(e, 'Test_Pos3'), 'Test_Pos3');
149
+ expect(Math.abs((tp.x as number) - 10.5)).toBeLessThan(0.001);
150
+ expect(Math.abs((tp.y as number) - 20.5)).toBeLessThan(0.001);
151
+ expect(Math.abs((tp.z as number) - 30.5)).toBeLessThan(0.001);
152
+ });
153
+
154
+ it('(c) default value materialization accepted (semantic != byte equivalence)', () => {
155
+ defineComponent('Test_WithDefault', {
156
+ required: 'f32',
157
+ optional: { type: 'f32', default: 42 },
158
+ });
159
+
160
+ const asset: SceneAsset = {
161
+ kind: 'scene',
162
+ entities: [{ localId: localId(0), components: { Test_WithDefault: { required: 7 } } }],
163
+ };
164
+
165
+ const world = new World();
166
+ const reg = makeRegistry();
167
+ const sg = AssetGuid.parse('00000000-0000-0000-0000-000000000000');
168
+ if (sg.ok) reg.catalog(sg.value, asset);
169
+ const handle = registerSceneAsset(world, asset);
170
+ const res = SceneOwner.worldInstantiateScene(world, handle);
171
+ expect(res.ok).toBe(true);
172
+ if (!res.ok) return;
173
+ const root = res.value.root;
174
+
175
+ const collected = rootsToSceneAsset(reg, world, [root]);
176
+ expect(collected.ok).toBe(true);
177
+ if (!collected.ok) return;
178
+ const scene = collected.value;
179
+ expect(scene.entities).toHaveLength(2);
180
+ const e = findEntityWith(scene.entities, 'Test_WithDefault');
181
+ const tw = def(comp(e, 'Test_WithDefault'), 'Test_WithDefault');
182
+ expect(tw.required).toBe(7);
183
+ expect(tw.optional).toBe(42);
184
+ });
185
+
186
+ it('(d) empty scene (no entities) round-trips to empty entities[]', () => {
187
+ const asset: SceneAsset = { kind: 'scene', entities: [] };
188
+ const world = new World();
189
+ const reg = makeRegistry();
190
+ const sg = AssetGuid.parse('00000000-0000-0000-0000-000000000000');
191
+ if (sg.ok) reg.catalog(sg.value, asset);
192
+ const handle = registerSceneAsset(world, asset);
193
+ const res = SceneOwner.worldInstantiateScene(world, handle);
194
+ // Empty scene may still instantiate; root should be present.
195
+ expect(res.ok).toBe(true);
196
+ if (!res.ok) return;
197
+ const root = res.value.root;
198
+
199
+ const collected = rootsToSceneAsset(reg, world, [root]);
200
+ expect(collected.ok).toBe(true);
201
+ if (!collected.ok) return;
202
+ const scene = collected.value;
203
+ expect(scene.kind).toBe('scene');
204
+ // Empty scene: root only (1 entity in closure — just the root).
205
+ expect(scene.entities.length).toBeGreaterThanOrEqual(1);
206
+ });
207
+
208
+ it('(e) string field round-trips through rootsToSceneAsset', () => {
209
+ defineComponent('Test_Name', {
210
+ label: 'string',
211
+ });
212
+
213
+ const asset: SceneAsset = {
214
+ kind: 'scene',
215
+ entities: [{ localId: localId(0), components: { Test_Name: { label: 'hello' } } }],
216
+ };
217
+
218
+ const world = new World();
219
+ const reg = makeRegistry();
220
+ const sg = AssetGuid.parse('00000000-0000-0000-0000-000000000000');
221
+ if (sg.ok) reg.catalog(sg.value, asset);
222
+ const handle = registerSceneAsset(world, asset);
223
+ const res = SceneOwner.worldInstantiateScene(world, handle);
224
+ expect(res.ok).toBe(true);
225
+ if (!res.ok) return;
226
+ const root = res.value.root;
227
+
228
+ const collected = rootsToSceneAsset(reg, world, [root]);
229
+ expect(collected.ok).toBe(true);
230
+ if (!collected.ok) return;
231
+ const scene = collected.value;
232
+ expect(scene.entities).toHaveLength(2);
233
+ const e = findEntityWith(scene.entities, 'Test_Name');
234
+ const tn = def(comp(e, 'Test_Name'), 'Test_Name');
235
+ expect(tn.label).toBe('hello');
236
+ });
237
+
238
+ it('(f) multiple components per entity round-trip correctly', () => {
239
+ defineComponent('Test_A', { val: 'f32' });
240
+ defineComponent('Test_B', { flag: 'bool' });
241
+ defineComponent('Test_C', { name: 'string' });
242
+
243
+ const asset: SceneAsset = {
244
+ kind: 'scene',
245
+ entities: [
246
+ {
247
+ localId: localId(0),
248
+ components: {
249
+ Test_A: { val: 1 },
250
+ Test_B: { flag: true },
251
+ Test_C: { name: 'multi' },
252
+ },
253
+ },
254
+ ],
255
+ };
256
+
257
+ const world = new World();
258
+ const reg = makeRegistry();
259
+ const sg = AssetGuid.parse('00000000-0000-0000-0000-000000000000');
260
+ if (sg.ok) reg.catalog(sg.value, asset);
261
+ const handle = registerSceneAsset(world, asset);
262
+ const res = SceneOwner.worldInstantiateScene(world, handle);
263
+ expect(res.ok).toBe(true);
264
+ if (!res.ok) return;
265
+ const root = res.value.root;
266
+
267
+ const collected = rootsToSceneAsset(reg, world, [root]);
268
+ expect(collected.ok).toBe(true);
269
+ if (!collected.ok) return;
270
+ const scene = collected.value;
271
+ expect(scene.entities).toHaveLength(2);
272
+ const e = findEntityWith(scene.entities, 'Test_A');
273
+ expect(def(comp(e, 'Test_A'), 'Test_A').val).toBe(1);
274
+ expect(def(comp(e, 'Test_B'), 'Test_B').flag).toBe(true);
275
+ expect(def(comp(e, 'Test_C'), 'Test_C').name).toBe('multi');
276
+ });
277
+
278
+ it('(g) bool field round-trips through rootsToSceneAsset', () => {
279
+ defineComponent('Test_Flag', { enabled: 'bool' });
280
+
281
+ const asset: SceneAsset = {
282
+ kind: 'scene',
283
+ entities: [
284
+ { localId: localId(0), components: { Test_Flag: { enabled: true } } },
285
+ { localId: localId(1), components: { Test_Flag: { enabled: false } } },
286
+ ],
287
+ };
288
+
289
+ const world = new World();
290
+ const reg = makeRegistry();
291
+ const sg = AssetGuid.parse('00000000-0000-0000-0000-000000000000');
292
+ if (sg.ok) reg.catalog(sg.value, asset);
293
+ const handle = registerSceneAsset(world, asset);
294
+ const res = SceneOwner.worldInstantiateScene(world, handle);
295
+ expect(res.ok).toBe(true);
296
+ if (!res.ok) return;
297
+ const root = res.value.root;
298
+
299
+ const collected = rootsToSceneAsset(reg, world, [root]);
300
+ expect(collected.ok).toBe(true);
301
+ if (!collected.ok) return;
302
+ const scene = collected.value;
303
+ // root + 2 children = 3 entities.
304
+ expect(scene.entities).toHaveLength(3);
305
+
306
+ // Find the two entities with Test_Flag.
307
+ const flagged = scene.entities.filter(
308
+ (e) => (e.components as Record<string, Record<string, unknown>>).Test_Flag !== undefined,
309
+ );
310
+ expect(flagged).toHaveLength(2);
311
+
312
+ // One should have true, one false.
313
+ const values = flagged.map(
314
+ (e) => (e.components as Record<string, Record<string, unknown>>).Test_Flag?.enabled,
315
+ );
316
+ expect(values).toContain(true);
317
+ expect(values).toContain(false);
318
+ });
319
+
320
+ it('(h) serializeSceneAssetToPack produces valid pack envelope', () => {
321
+ defineComponent('Test_Pack', { a: 'f32' });
322
+
323
+ const asset: SceneAsset = {
324
+ kind: 'scene',
325
+ entities: [{ localId: localId(0), components: { Test_Pack: { a: 99 } } }],
326
+ };
327
+
328
+ const packResult = serializeSceneAssetToPack(
329
+ asset,
330
+ new Map(),
331
+ 'aaaaaaaa-bbbb-4ccc-dddd-eeeeeeeeeeee',
332
+ );
333
+ expect(packResult.ok).toBe(true);
334
+ if (!packResult.ok) return;
335
+ const pack = packResult.value;
336
+ expect(pack.schemaVersion).toBe('2.0.0');
337
+ expect(pack.assets).toEqual([expect.objectContaining({ artifacts: {} })]);
338
+ expect(pack.kind).toBe('internal-text-package');
339
+ const assets = pack.assets as Array<Record<string, unknown>>;
340
+ expect(Array.isArray(assets)).toBe(true);
341
+ expect(assets).toHaveLength(1);
342
+
343
+ const assetEntry = def(assets[0], 'assets[0]');
344
+ expect(assetEntry.guid).toBe('aaaaaaaa-bbbb-4ccc-dddd-eeeeeeeeeeee');
345
+ expect(assetEntry.kind).toBe('scene');
346
+ const payload = assetEntry.payload as Record<string, unknown>;
347
+ expect(Array.isArray(payload.entities)).toBe(true);
348
+ expect(payload.entities as Array<unknown>).toHaveLength(1);
349
+ });
350
+
351
+ it('(i) serializeSceneAssetToPack without guid uses a generated guid', () => {
352
+ const asset: SceneAsset = { kind: 'scene', entities: [] };
353
+
354
+ const packResult = serializeSceneAssetToPack(asset, new Map());
355
+ expect(packResult.ok).toBe(true);
356
+ if (!packResult.ok) return;
357
+ const pack = packResult.value;
358
+ expect(pack.schemaVersion).toBe('2.0.0');
359
+ expect(pack.assets).toEqual([expect.objectContaining({ artifacts: {} })]);
360
+ expect(pack.kind).toBe('internal-text-package');
361
+ const assets = pack.assets as Array<Record<string, unknown>>;
362
+ expect(Array.isArray(assets)).toBe(true);
363
+ expect(assets).toHaveLength(1);
364
+ const entry0 = def(assets[0], 'assets[0]');
365
+ expect(typeof entry0.guid).toBe('string');
366
+ expect((entry0.guid as string).length).toBeGreaterThan(0);
367
+ });
368
+
369
+ it('(j) full round-trip instantiate->collect->serialize->check', () => {
370
+ defineComponent('Test_Full', {
371
+ posX: 'f32',
372
+ posY: 'f32',
373
+ name: 'string',
374
+ });
375
+
376
+ const asset: SceneAsset = {
377
+ kind: 'scene',
378
+ entities: [
379
+ { localId: localId(0), components: { Test_Full: { posX: 1.5, posY: 2.5, name: 'e0' } } },
380
+ { localId: localId(1), components: { Test_Full: { posX: 3.5, posY: 4.5, name: 'e1' } } },
381
+ ],
382
+ };
383
+
384
+ const world = new World();
385
+ const reg = makeRegistry();
386
+ const sg = AssetGuid.parse('00000000-0000-0000-0000-000000000000');
387
+ if (sg.ok) reg.catalog(sg.value, asset);
388
+ const handle = registerSceneAsset(world, asset);
389
+ const res = SceneOwner.worldInstantiateScene(world, handle);
390
+ expect(res.ok).toBe(true);
391
+ if (!res.ok) return;
392
+ const root = res.value.root;
393
+
394
+ const collected = rootsToSceneAsset(reg, world, [root]);
395
+ expect(collected.ok).toBe(true);
396
+ if (!collected.ok) return;
397
+ // root + 2 children = 3 entities.
398
+ expect(collected.value.entities).toHaveLength(3);
399
+
400
+ const packResult = serializeSceneAssetToPack(
401
+ collected.value,
402
+ world.components.entries(),
403
+ '11111111-2222-4333-8444-555555555555',
404
+ );
405
+ expect(packResult.ok).toBe(true);
406
+ if (!packResult.ok) return;
407
+ const pack = packResult.value;
408
+ expect(pack.kind).toBe('internal-text-package');
409
+ const assets = pack.assets as Array<Record<string, unknown>>;
410
+ const payload = def(assets[0], 'assets[0]').payload as Record<string, unknown>;
411
+ const entities = payload.entities as Array<Record<string, unknown>>;
412
+ expect(entities).toHaveLength(3);
413
+
414
+ // Find entities with Test_Full in serialized output.
415
+ const tfEntities = entities.filter(
416
+ (ent) => (ent.components as Record<string, Record<string, unknown>>).Test_Full !== undefined,
417
+ );
418
+ expect(tfEntities).toHaveLength(2);
419
+
420
+ const names = tfEntities.map(
421
+ (ent) =>
422
+ (
423
+ (ent.components as Record<string, Record<string, unknown>>).Test_Full as Record<
424
+ string,
425
+ unknown
426
+ >
427
+ ).name,
428
+ );
429
+ expect(names).toContain('e0');
430
+ expect(names).toContain('e1');
431
+ });
432
+ });
433
+
434
+ // feat-20260709-transform-serialization-vec-fields-and-field-trans M1 / w1:
435
+ // Field-level transient collect skip (AC-02 + AC-03, TDD red-first).
436
+ //
437
+ // AC-02: a Transform-carrying entity serializes with no `world` key in its
438
+ // component output (world is field-level transient, D-5).
439
+ // AC-03: the skip is a generic mechanism — ANY component declaring ANY field
440
+ // transient:true has that field skipped, while undeclared fields serialize
441
+ // as usual. No hardcoded 'world'/'Transform' special-case (collect field
442
+ // loop reads comp.fields[fieldName].transient).
443
+ describe('w1 — field-level transient collect skip (AC-02 + AC-03)', () => {
444
+ it('(AC-02) Transform entity serializes without a world key', () => {
445
+ const asset: SceneAsset = {
446
+ kind: 'scene',
447
+ entities: [{ localId: localId(0), components: { Transform: { pos: [1, 2, 3] } } }],
448
+ };
449
+
450
+ const world = new World();
451
+ const reg = makeRegistry();
452
+ const sg = AssetGuid.parse('00000000-0000-0000-0000-000000000000');
453
+ if (sg.ok) reg.catalog(sg.value, asset);
454
+ const handle = registerSceneAsset(world, asset);
455
+ const res = SceneOwner.worldInstantiateScene(world, handle);
456
+ expect(res.ok).toBe(true);
457
+ if (!res.ok) return;
458
+
459
+ const collected = rootsToSceneAsset(reg, world, [res.value.root]);
460
+ expect(collected.ok).toBe(true);
461
+ if (!collected.ok) return;
462
+
463
+ // Every Transform-carrying entity (synthetic identity root + the authored
464
+ // child) must omit the transient world field.
465
+ const transformEntities = collected.value.entities.filter(
466
+ (e) => (e.components as Record<string, Record<string, unknown>>).Transform !== undefined,
467
+ );
468
+ expect(transformEntities.length).toBeGreaterThan(0);
469
+ for (const e of transformEntities) {
470
+ const t = def(comp(e, 'Transform'), 'Transform');
471
+ // world field is transient -> absent from serialized output.
472
+ expect('world' in t).toBe(false);
473
+ }
474
+
475
+ // The authored (non-root) entity retains its persisted local TRS. Locate it
476
+ // by its ChildOf link (the synthetic root carries no ChildOf).
477
+ const authored = transformEntities.find(
478
+ (e) => (e.components as Record<string, Record<string, unknown>>).ChildOf !== undefined,
479
+ );
480
+ const t = def(comp(def(authored, 'authored'), 'Transform'), 'Transform');
481
+ expect(t.pos).toEqual([1, 2, 3]);
482
+ // Reference the imported Transform token so the schema is registered.
483
+ expect(Transform.name).toBe('Transform');
484
+ });
485
+
486
+ it('(AC-03) generic: an arbitrary component field declared transient is skipped, others kept', () => {
487
+ // Brand-new component, arbitrary field names -> proves no Transform/world
488
+ // hardcode in the collect skip path.
489
+ defineComponent('W1_GenericTransient', {
490
+ persisted: { type: 'f32', default: 0 },
491
+ cache: { type: 'array<f32, 4>', default: new Float32Array(4), transient: true },
492
+ });
493
+
494
+ const asset: SceneAsset = {
495
+ kind: 'scene',
496
+ entities: [
497
+ {
498
+ localId: localId(0),
499
+ components: { W1_GenericTransient: { persisted: 7, cache: [9, 9, 9, 9] } },
500
+ },
501
+ ],
502
+ };
503
+
504
+ const world = new World();
505
+ const reg = makeRegistry();
506
+ const sg = AssetGuid.parse('00000000-0000-0000-0000-000000000000');
507
+ if (sg.ok) reg.catalog(sg.value, asset);
508
+ const handle = registerSceneAsset(world, asset);
509
+ const res = SceneOwner.worldInstantiateScene(world, handle);
510
+ expect(res.ok).toBe(true);
511
+ if (!res.ok) return;
512
+
513
+ const collected = rootsToSceneAsset(reg, world, [res.value.root]);
514
+ expect(collected.ok).toBe(true);
515
+ if (!collected.ok) return;
516
+
517
+ const e = findEntityWith(collected.value.entities, 'W1_GenericTransient');
518
+ const c = def(comp(e, 'W1_GenericTransient'), 'W1_GenericTransient');
519
+ // transient field skipped.
520
+ expect('cache' in c).toBe(false);
521
+ // undeclared field kept.
522
+ expect(c.persisted).toBeCloseTo(7, 5);
523
+ });
524
+
525
+ it('(AC-03 control) a component with no transient field serializes every field', () => {
526
+ defineComponent('W1_NoTransient', {
527
+ a: { type: 'f32', default: 0 },
528
+ b: { type: 'f32', default: 0 },
529
+ });
530
+
531
+ const asset: SceneAsset = {
532
+ kind: 'scene',
533
+ entities: [{ localId: localId(0), components: { W1_NoTransient: { a: 3, b: 4 } } }],
534
+ };
535
+
536
+ const world = new World();
537
+ const reg = makeRegistry();
538
+ const sg = AssetGuid.parse('00000000-0000-0000-0000-000000000000');
539
+ if (sg.ok) reg.catalog(sg.value, asset);
540
+ const handle = registerSceneAsset(world, asset);
541
+ const res = SceneOwner.worldInstantiateScene(world, handle);
542
+ expect(res.ok).toBe(true);
543
+ if (!res.ok) return;
544
+
545
+ const collected = rootsToSceneAsset(reg, world, [res.value.root]);
546
+ expect(collected.ok).toBe(true);
547
+ if (!collected.ok) return;
548
+
549
+ const e = findEntityWith(collected.value.entities, 'W1_NoTransient');
550
+ const c = def(comp(e, 'W1_NoTransient'), 'W1_NoTransient');
551
+ expect(c.a).toBeCloseTo(3, 5);
552
+ expect(c.b).toBeCloseTo(4, 5);
553
+ });
554
+ });
555
+
556
+ // feat-20260803-audio-listener-marker-roundtrip: an empty-schema component is
557
+ // still authored presence. The collector must keep it in the SceneAsset and
558
+ // Pack v2 payload so marker components such as AudioListener survive reopen.
559
+ describe('marker component scene-pack round-trip', () => {
560
+ it('preserves an authored empty-schema component', () => {
561
+ defineComponent('Test_EmptySchemaMarker', {});
562
+ const asset: SceneAsset = {
563
+ kind: 'scene',
564
+ entities: [{ localId: localId(0), components: { Test_EmptySchemaMarker: {} } }],
565
+ };
566
+
567
+ const world = new World();
568
+ const reg = makeRegistry();
569
+ const sg = AssetGuid.parse('00000000-0000-0000-0000-000000000000');
570
+ if (sg.ok) reg.catalog(sg.value, asset);
571
+ const handle = registerSceneAsset(world, asset);
572
+ const instantiated = SceneOwner.worldInstantiateScene(world, handle);
573
+ expect(instantiated.ok).toBe(true);
574
+ if (!instantiated.ok) return;
575
+
576
+ const collected = rootsToSceneAsset(reg, world, [instantiated.value.root]);
577
+ expect(collected.ok).toBe(true);
578
+ if (!collected.ok) return;
579
+ const collectedEntity = findEntityWith(collected.value.entities, 'Test_EmptySchemaMarker');
580
+ expect(comp(collectedEntity, 'Test_EmptySchemaMarker')).toEqual({});
581
+
582
+ const serialized = serializeSceneAssetToPack(
583
+ collected.value,
584
+ world.components.entries(),
585
+ '11111111-2222-4333-8444-555555555555',
586
+ );
587
+ expect(serialized.ok).toBe(true);
588
+ if (!serialized.ok) return;
589
+ const pack = serialized.value;
590
+ const payload = def((pack.assets as Array<Record<string, unknown>>)[0], 'assets[0]')
591
+ .payload as Record<string, unknown>;
592
+ const entities = payload.entities as Array<Record<string, unknown>>;
593
+ const markerEntity = entities.find((entity) => {
594
+ const components = entity.components as Record<string, unknown>;
595
+ return components.Test_EmptySchemaMarker !== undefined;
596
+ });
597
+ expect(markerEntity?.components).toMatchObject({ Test_EmptySchemaMarker: {} });
598
+ });
599
+ });
600
+
601
+ // feat-20260709 M2 / w4: serialization output shape + unknown-field downgrade
602
+ // regression (TDD red-first; goes green with the w6 schema rewrite).
603
+ describe('w4 -- Transform vec serialization shape (AC-05)', () => {
604
+ it('rootsToSceneAsset emits pos/quat/scale plain arrays, no per-axis keys, no world', () => {
605
+ const world = new World();
606
+ registerSceneComponents(world);
607
+ const reg = makeRegistry();
608
+ const e = world
609
+ .spawn({
610
+ component: Transform,
611
+ data: { pos: [1, 2, 3], quat: [0, 0.6, 0, 0.8], scale: [2, 2, 2] },
612
+ })
613
+ .unwrap();
614
+
615
+ const collected = rootsToSceneAsset(reg, world, [e]);
616
+ expect(collected.ok).toBe(true);
617
+ if (!collected.ok) return;
618
+
619
+ const entity = findEntityWith(collected.value.entities, 'Transform');
620
+ const tf = def(comp(entity, 'Transform'), 'Transform');
621
+
622
+ // Plain JSON arrays (normalized from the Float32Array column views).
623
+ expect(tf.pos).toEqual([1, 2, 3]);
624
+ // quat component order is [x, y, z, w] end to end (E6).
625
+ expect(tf.quat).toEqual([0, 0.6000000238418579, 0, 0.800000011920929]);
626
+ expect(tf.scale).toEqual([2, 2, 2]);
627
+
628
+ // No legacy per-axis keys; `world` stays excluded (M1 field transient).
629
+ for (const legacy of ['posX', 'posY', 'posZ', 'quatX', 'quatW', 'scaleX', 'world']) {
630
+ expect(legacy in tf).toBe(false);
631
+ }
632
+ });
633
+ });
634
+
635
+ describe('w4 -- old-shape scene JSON downgrade regression (research Finding 3)', () => {
636
+ it('unknown per-axis keys are silently skipped with diagnostics, known keys still apply', () => {
637
+ // Old 10-scalar shape scene JSON: every per-axis key is unknown after the
638
+ // M2 schema cut. instantiateScene must not abort and must not dirty-write;
639
+ // each unknown key surfaces one production-observable diagnostic and the
640
+ // entity lands the default identity transform (Finding 3 + 4 downgrade).
641
+ const asset: SceneAsset = {
642
+ kind: 'scene',
643
+ entities: [
644
+ {
645
+ localId: localId(0),
646
+ components: {
647
+ Transform: { posX: 5, posY: 6, posZ: 7, quatW: 1, scaleX: 2 },
648
+ },
649
+ },
650
+ ],
651
+ };
652
+
653
+ const world = new World();
654
+ const reg = makeRegistry();
655
+ const sg = AssetGuid.parse('00000000-0000-0000-0000-000000000000');
656
+ if (sg.ok) reg.catalog(sg.value, asset);
657
+ const handle = registerSceneAsset(world, asset);
658
+ const res = SceneOwner.worldInstantiateScene(world, handle);
659
+ expect(res.ok).toBe(true);
660
+ if (!res.ok) return;
661
+
662
+ // One diagnostic per unknown key, all attributed to Transform.
663
+ const fields = res.value.diagnostics
664
+ .filter((d) => d.component === 'Transform')
665
+ .map((d) => d.field)
666
+ .sort();
667
+ expect(fields).toEqual(['posX', 'posY', 'posZ', 'quatW', 'scaleX']);
668
+
669
+ // The carrying entity degrades to the identity transform (defaults).
670
+ const tfEntity = findEntityWith(
671
+ (() => {
672
+ const collected = rootsToSceneAsset(reg, world, [res.value.root]);
673
+ if (!collected.ok) throw new Error('collect failed');
674
+ return collected.value.entities;
675
+ })(),
676
+ 'Transform',
677
+ );
678
+ const tf = def(comp(tfEntity, 'Transform'), 'Transform');
679
+ expect(tf.pos).toEqual([0, 0, 0]);
680
+ expect(tf.quat).toEqual([0, 0, 0, 1]);
681
+ expect(tf.scale).toEqual([1, 1, 1]);
682
+ });
683
+ });
684
+
685
+ // ── m3-runtime-kernel-parity-test ────────────────────────────────────────────
686
+ // These tests compare the runtime collector's output (projected/remapped scene
687
+ // values) with the ECS externalization kernel output, ensuring the collector
688
+ // consumes the shared reflection kernel rather than maintaining private
689
+ // classification logic.
690
+
691
+ import { classifyEntityField, projectComponentData } from '@forgeax/engine-ecs/externalization';
692
+
693
+ describe('m3 — runtime collector kernel parity', () => {
694
+ it('(a) collector projection matches ECS kernel for portable scalar fields', () => {
695
+ // Define a component in the runtime test context
696
+ const CollectorParity = defineComponent('CollectorParity', {
697
+ count: { type: 'u32', default: 10 },
698
+ name: { type: 'string', default: 'default' },
699
+ });
700
+
701
+ const world = new World();
702
+ const asset: SceneAsset = {
703
+ kind: 'scene',
704
+ entities: [{ localId: localId(0), components: { CollectorParity: { count: 42 } } }],
705
+ };
706
+ const handle = registerSceneAsset(world, asset);
707
+ const r = SceneOwner.worldInstantiateScene(world, handle);
708
+ expect(r.ok).toBe(true);
709
+
710
+ // Kernel projection with same input
711
+ // biome-ignore lint/suspicious/noExplicitAny: test component; generic erasure intentional for kernel test
712
+ const kernelResult = projectComponentData(CollectorParity as any, { count: 42 });
713
+ expect(kernelResult.count).toBe(42);
714
+ expect(kernelResult.name).toBe('default');
715
+ });
716
+
717
+ it('(b) collector correctly handles fixed entity arrays', () => {
718
+ const FixedEnt = defineComponent('FixedEnt_CollectorParity', {
719
+ // biome-ignore lint/suspicious/noExplicitAny: test component; generic erasure intentional
720
+ refs: { type: 'array<entity, 2>' } as any,
721
+ });
722
+
723
+ const world = new World();
724
+ const asset: SceneAsset = {
725
+ kind: 'scene',
726
+ entities: [
727
+ { localId: localId(0), components: { FixedEnt_CollectorParity: { refs: [0, 1] } } },
728
+ { localId: localId(1), components: {} },
729
+ ],
730
+ };
731
+ const handle = registerSceneAsset(world, asset);
732
+ const r = SceneOwner.worldInstantiateScene(world, handle);
733
+ expect(r.ok).toBe(true);
734
+ if (r.ok) {
735
+ const root = r.value.root;
736
+ // biome-ignore lint/suspicious/noExplicitAny: test component; world.get param type is restrictive for test-generated components
737
+ const comp = world.get(root, FixedEnt as any);
738
+ if (comp.ok) {
739
+ // biome-ignore lint/suspicious/noExplicitAny: ShapeOf<ComponentSchema> narrows to concrete shape for assertions
740
+ const v = comp.value as any as { refs: number[] };
741
+ expect(Array.isArray(v.refs)).toBe(true);
742
+ }
743
+ }
744
+ });
745
+
746
+ it('(c) entity field classification from kernel matches reflection arrayMeta', () => {
747
+ const EntComp = defineComponent('EntComp_CollectorParity', {
748
+ target: { type: 'entity' },
749
+ friends: { type: 'array<entity>', default: [] },
750
+ });
751
+
752
+ // biome-ignore lint/suspicious/noExplicitAny: test component; generic erasure intentional for kernel test
753
+ const targetKind = classifyEntityField(EntComp as any, 'target');
754
+ // biome-ignore lint/suspicious/noExplicitAny: test component; generic erasure intentional for kernel test
755
+ const friendsKind = classifyEntityField(EntComp as any, 'friends');
756
+
757
+ expect(targetKind).toEqual({ kind: 'entity', isArray: false });
758
+ expect(friendsKind).toEqual({ kind: 'entity', isArray: true });
759
+ });
760
+
761
+ it('(d) collector transient exclusion matches kernel', () => {
762
+ const TransientField = defineComponent('TransientField_CollectorParity', {
763
+ keep: { type: 'f32', default: 0 },
764
+ derived: { type: 'f32', default: 0, transient: true },
765
+ });
766
+
767
+ const world = new World();
768
+ const asset: SceneAsset = {
769
+ kind: 'scene',
770
+ entities: [
771
+ {
772
+ localId: localId(0),
773
+ components: { TransientField_CollectorParity: { keep: 5, derived: 99 } },
774
+ },
775
+ ],
776
+ };
777
+ const handle = registerSceneAsset(world, asset);
778
+ const r = SceneOwner.worldInstantiateScene(world, handle);
779
+ expect(r.ok).toBe(true);
780
+ if (r.ok) {
781
+ const root = r.value.root;
782
+ // biome-ignore lint/suspicious/noExplicitAny: test component; world.get param type is restrictive for test-generated components
783
+ const comp = world.get(root, TransientField as any);
784
+ if (comp.ok) {
785
+ const v = comp.value as { keep: number; derived: number };
786
+ expect(v.keep).toBe(5);
787
+ // `derived` is transient — should get default (0), not the input value 99
788
+ expect(v.derived).toBe(0);
789
+ }
790
+ }
791
+ });
792
+ });
793
+
794
+ // ── m3-runtime-kernel-parity supplemental: collector vs kernel identity ──────
795
+
796
+ describe('m3 — runtime collector kernel parity supplemental', () => {
797
+ it('(e) collector entity classification uses kernel classifyEntityField', () => {
798
+ const CollectorEnt = defineComponent('CollectorEnt_Sup', {
799
+ target: { type: 'entity' },
800
+ friends: { type: 'array<entity>' },
801
+ // biome-ignore lint/suspicious/noExplicitAny: test component; generic erasure intentional
802
+ } as any);
803
+
804
+ // biome-ignore lint/suspicious/noExplicitAny: test component; generic erasure intentional for kernel test
805
+ const targetKind = classifyEntityField(CollectorEnt as any, 'target');
806
+ // biome-ignore lint/suspicious/noExplicitAny: test component; generic erasure intentional for kernel test
807
+ const friendsKind = classifyEntityField(CollectorEnt as any, 'friends');
808
+
809
+ expect(targetKind).toEqual({ kind: 'entity', isArray: false });
810
+ expect(friendsKind).toEqual({ kind: 'entity', isArray: true });
811
+ });
812
+
813
+ it('(f) collector handles fixed entity array through kernel', () => {
814
+ const FixedEntCol = defineComponent('FixedEntCol_Sup', {
815
+ refs: { type: 'array<entity, 4>' },
816
+ // biome-ignore lint/suspicious/noExplicitAny: test component; generic erasure intentional
817
+ } as any);
818
+
819
+ // biome-ignore lint/suspicious/noExplicitAny: test component; generic erasure intentional for kernel test
820
+ const kind = classifyEntityField(FixedEntCol as any, 'refs');
821
+ expect(kind).toEqual({ kind: 'entity', isArray: true });
822
+ });
823
+
824
+ it('(g) collector kernel projection matches scene instantiate round-trip', () => {
825
+ const RoundTripComp = defineComponent('RoundTripComp_Sup', {
826
+ val: { type: 'u32', default: 50 },
827
+ });
828
+
829
+ const world = new World();
830
+ const asset: SceneAsset = {
831
+ kind: 'scene',
832
+ entities: [{ localId: localId(0), components: { RoundTripComp_Sup: { val: 99 } } }],
833
+ };
834
+ const handle = registerSceneAsset(world, asset);
835
+ const r = SceneOwner.worldInstantiateScene(world, handle);
836
+ expect(r.ok).toBe(true);
837
+
838
+ // Kernel projection with same input
839
+ // biome-ignore lint/suspicious/noExplicitAny: test component; generic erasure intentional for kernel test
840
+ const kernelResult = projectComponentData(RoundTripComp as any, { val: 99 });
841
+ expect(kernelResult.val).toBe(99);
842
+ });
843
+
844
+ it('(h) collector transient field exclusion via kernel', () => {
845
+ const TransientFieldCol = defineComponent('TransientFieldCol_Sup', {
846
+ keep: { type: 'f32', default: 0 },
847
+ derived: { type: 'f32', default: 0, transient: true },
848
+ });
849
+
850
+ const world = new World();
851
+ const asset: SceneAsset = {
852
+ kind: 'scene',
853
+ entities: [
854
+ { localId: localId(0), components: { TransientFieldCol_Sup: { keep: 5, derived: 99 } } },
855
+ ],
856
+ };
857
+ const handle = registerSceneAsset(world, asset);
858
+ const r = SceneOwner.worldInstantiateScene(world, handle);
859
+ expect(r.ok).toBe(true);
860
+ if (r.ok) {
861
+ const root = r.value.root;
862
+ // biome-ignore lint/suspicious/noExplicitAny: test component; world.get param type is restrictive for test-generated components
863
+ const comp = world.get(root, TransientFieldCol as any);
864
+ if (comp.ok) {
865
+ // biome-ignore lint/suspicious/noExplicitAny: ShapeOf<ComponentSchema> narrows to concrete shape for assertions
866
+ const v = comp.value as any as { keep: number; derived: number };
867
+ expect(v.keep).toBe(5);
868
+ // derived is transient — should get default 0, not input 99
869
+ expect(v.derived).toBe(0);
870
+ }
871
+ }
872
+ });
873
+ });