@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.
- package/LICENSE +202 -0
- package/README.md +165 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/__tests__/active-camera.unit.test.d.ts +2 -0
- package/dist/__tests__/active-camera.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-add.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-add.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-asset-union.test-d.d.ts +2 -0
- package/dist/__tests__/animation-graph-asset-union.test-d.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-blend.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-blend.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-build.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-build.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-clip-missing.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-clip-missing.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-clip.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-clip.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-collect-roundtrip.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-collect-roundtrip.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-default-path.integration.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-default-path.integration.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-describe.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-describe.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-errors.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-errors.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-nesting.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-nesting.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-orthogonal-weight.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-orthogonal-weight.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-serialize.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-serialize.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-slot-fill.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-slot-fill.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-nslot.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-nslot.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-slot-length-guard.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-slot-length-guard.unit.test.d.ts.map +1 -0
- package/dist/__tests__/append-injection.test.d.ts +2 -0
- package/dist/__tests__/append-injection.test.d.ts.map +1 -0
- package/dist/__tests__/asi-world-baseline-export.unit.test.d.ts +2 -0
- package/dist/__tests__/asi-world-baseline-export.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asi-world-ci-config.unit.test.d.ts +2 -0
- package/dist/__tests__/asi-world-ci-config.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asi-world-smoke.unit.test.d.ts +2 -0
- package/dist/__tests__/asi-world-smoke.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asset-brand-and-name-retirement.test.d.ts +2 -0
- package/dist/__tests__/asset-brand-and-name-retirement.test.d.ts.map +1 -0
- package/dist/__tests__/asset-error-exhaustive.test-d.d.ts +11 -0
- package/dist/__tests__/asset-error-exhaustive.test-d.d.ts.map +1 -0
- package/dist/__tests__/asset-registry-guid-reverse.test.d.ts +2 -0
- package/dist/__tests__/asset-registry-guid-reverse.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry-hdr-equirect.test.d.ts +2 -0
- package/dist/__tests__/asset-registry-hdr-equirect.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry-mesh-pack-payload.dawn.test.d.ts +2 -0
- package/dist/__tests__/asset-registry-mesh-pack-payload.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry-mounts.test.d.ts +2 -0
- package/dist/__tests__/asset-registry-mounts.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry-scene.test-d.d.ts +2 -0
- package/dist/__tests__/asset-registry-scene.test-d.d.ts.map +1 -0
- package/dist/__tests__/asset-registry.browser.test.d.ts +2 -0
- package/dist/__tests__/asset-registry.browser.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry.dawn.test.d.ts +2 -0
- package/dist/__tests__/asset-registry.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry.listCatalog.test.d.ts +2 -0
- package/dist/__tests__/asset-registry.listCatalog.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry.mesh-bin.test.d.ts +2 -0
- package/dist/__tests__/asset-registry.mesh-bin.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry.pack-cache.test.d.ts +2 -0
- package/dist/__tests__/asset-registry.pack-cache.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry.raw-container-failfast.test.d.ts +2 -0
- package/dist/__tests__/asset-registry.raw-container-failfast.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry.recursive.spec.d.ts +2 -0
- package/dist/__tests__/asset-registry.recursive.spec.d.ts.map +1 -0
- package/dist/__tests__/asset-registry.unit.test.d.ts +2 -0
- package/dist/__tests__/asset-registry.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asset.unit.test.d.ts +2 -0
- package/dist/__tests__/asset.unit.test.d.ts.map +1 -0
- package/dist/__tests__/audio-load-by-guid.unit.test.d.ts +2 -0
- package/dist/__tests__/audio-load-by-guid.unit.test.d.ts.map +1 -0
- package/dist/__tests__/backend-selection.integration.test.d.ts +2 -0
- package/dist/__tests__/backend-selection.integration.test.d.ts.map +1 -0
- package/dist/__tests__/basis-catalog-dispatch.integration.test.d.ts +2 -0
- package/dist/__tests__/basis-catalog-dispatch.integration.test.d.ts.map +1 -0
- package/dist/__tests__/bind-group-cache-keying.test.d.ts +2 -0
- package/dist/__tests__/bind-group-cache-keying.test.d.ts.map +1 -0
- package/dist/__tests__/block-upload-math.unit.test.d.ts +2 -0
- package/dist/__tests__/block-upload-math.unit.test.d.ts.map +1 -0
- package/dist/__tests__/builtin-asset-registry.unit.test.d.ts +2 -0
- package/dist/__tests__/builtin-asset-registry.unit.test.d.ts.map +1 -0
- package/dist/__tests__/builtin-shader-register-e2e.test.d.ts +2 -0
- package/dist/__tests__/builtin-shader-register-e2e.test.d.ts.map +1 -0
- package/dist/__tests__/cache-false-eviction.test.d.ts +2 -0
- package/dist/__tests__/cache-false-eviction.test.d.ts.map +1 -0
- package/dist/__tests__/cache-isolation-matrix.test.d.ts +2 -0
- package/dist/__tests__/cache-isolation-matrix.test.d.ts.map +1 -0
- package/dist/__tests__/camera-clear-snapshot-equivalence.unit.test.d.ts +2 -0
- package/dist/__tests__/camera-clear-snapshot-equivalence.unit.test.d.ts.map +1 -0
- package/dist/__tests__/clamp-to-last.e2e.browser.test.d.ts +2 -0
- package/dist/__tests__/clamp-to-last.e2e.browser.test.d.ts.map +1 -0
- package/dist/__tests__/clamp-to-last.e2e.dawn.test.d.ts +2 -0
- package/dist/__tests__/clamp-to-last.e2e.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/collect-scene-asset.test.d.ts +2 -0
- package/dist/__tests__/collect-scene-asset.test.d.ts.map +1 -0
- package/dist/__tests__/collect-scene-mount-collapse.test.d.ts +2 -0
- package/dist/__tests__/collect-scene-mount-collapse.test.d.ts.map +1 -0
- package/dist/__tests__/collect-subtree.unit.test.d.ts +2 -0
- package/dist/__tests__/collect-subtree.unit.test.d.ts.map +1 -0
- package/dist/__tests__/collect-transient-children-absent.test.d.ts +2 -0
- package/dist/__tests__/collect-transient-children-absent.test.d.ts.map +1 -0
- package/dist/__tests__/collect-transient-roundtrip.test.d.ts +2 -0
- package/dist/__tests__/collect-transient-roundtrip.test.d.ts.map +1 -0
- package/dist/__tests__/collect-transient-skip.test.d.ts +2 -0
- package/dist/__tests__/collect-transient-skip.test.d.ts.map +1 -0
- package/dist/__tests__/components.test-d.d.ts +2 -0
- package/dist/__tests__/components.test-d.d.ts.map +1 -0
- package/dist/__tests__/components.unit.test.d.ts +2 -0
- package/dist/__tests__/components.unit.test.d.ts.map +1 -0
- package/dist/__tests__/composite-skybox-cross-world.browser.test.d.ts +2 -0
- package/dist/__tests__/composite-skybox-cross-world.browser.test.d.ts.map +1 -0
- package/dist/__tests__/compressed-texture-physical-extent.integration.test.d.ts +2 -0
- package/dist/__tests__/compressed-texture-physical-extent.integration.test.d.ts.map +1 -0
- package/dist/__tests__/create-renderer-assembly.integration.test.d.ts +2 -0
- package/dist/__tests__/create-renderer-assembly.integration.test.d.ts.map +1 -0
- package/dist/__tests__/createRenderer-dispose.test.d.ts +2 -0
- package/dist/__tests__/createRenderer-dispose.test.d.ts.map +1 -0
- package/dist/__tests__/createRenderer-requiredFeatures.unit.test.d.ts +2 -0
- package/dist/__tests__/createRenderer-requiredFeatures.unit.test.d.ts.map +1 -0
- package/dist/__tests__/createRenderer.browser-no-webgpu.test.d.ts +2 -0
- package/dist/__tests__/createRenderer.browser-no-webgpu.test.d.ts.map +1 -0
- package/dist/__tests__/createRenderer.unit.test.d.ts +2 -0
- package/dist/__tests__/createRenderer.unit.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/hello-sprite-nineslice-section.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/hello-sprite-nineslice-section.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/ibl-compose.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/ibl-compose.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/ibl-modules-compose.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/ibl-modules-compose.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/ibl-precompute-readback.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/ibl-precompute-readback.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/instances-per-instance-pbr.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/instances-per-instance-pbr.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/instances-shadow.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/instances-shadow.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/instances-uniform-fallback.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/instances-uniform-fallback.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/material-alpha.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/material-alpha.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/material-cooked-fixture.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/material-cooked-fixture.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/mesh-ssbo-normal-matrix.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/mesh-ssbo-normal-matrix.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/mesh-update-dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/mesh-update-dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/mipmap-srgb-linear.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/mipmap-srgb-linear.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/per-entity-material-texture-isolation.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/per-entity-material-texture-isolation.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/sprite-nineslice-mesh-bind.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/sprite-nineslice-mesh-bind.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/tonemap.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/tonemap.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/upload-texture.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/upload-texture.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/user-handle-mesh-render.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/user-handle-mesh-render.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/user-mesh-upload.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/user-mesh-upload.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/zero-manifest-mesh-fail.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/zero-manifest-mesh-fail.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/zero-manifest-ready.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/zero-manifest-ready.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/demo-sortscope-migration.unit.test.d.ts +2 -0
- package/dist/__tests__/demo-sortscope-migration.unit.test.d.ts.map +1 -0
- package/dist/__tests__/derive-bgl-integration.test.d.ts +2 -0
- package/dist/__tests__/derive-bgl-integration.test.d.ts.map +1 -0
- package/dist/__tests__/derive-render-data-skin.unit.test.d.ts +2 -0
- package/dist/__tests__/derive-render-data-skin.unit.test.d.ts.map +1 -0
- package/dist/__tests__/draw-published.d.ts +5 -0
- package/dist/__tests__/draw-published.d.ts.map +1 -0
- package/dist/__tests__/dynamic-texture-store.unit.test.d.ts +2 -0
- package/dist/__tests__/dynamic-texture-store.unit.test.d.ts.map +1 -0
- package/dist/__tests__/environment-error-exhaustive.test-d.d.ts +8 -0
- package/dist/__tests__/environment-error-exhaustive.test-d.d.ts.map +1 -0
- package/dist/__tests__/equirect-bc6h.integration.test.d.ts +2 -0
- package/dist/__tests__/equirect-bc6h.integration.test.d.ts.map +1 -0
- package/dist/__tests__/error-exhaustive.test.d.ts +2 -0
- package/dist/__tests__/error-exhaustive.test.d.ts.map +1 -0
- package/dist/__tests__/errors.unit.test.d.ts +2 -0
- package/dist/__tests__/errors.unit.test.d.ts.map +1 -0
- package/dist/__tests__/extract-frames-graceful-degradation.test.d.ts +2 -0
- package/dist/__tests__/extract-frames-graceful-degradation.test.d.ts.map +1 -0
- package/dist/__tests__/extract-frames-merge.test.d.ts +2 -0
- package/dist/__tests__/extract-frames-merge.test.d.ts.map +1 -0
- package/dist/__tests__/extract-frames-reset.test.d.ts +2 -0
- package/dist/__tests__/extract-frames-reset.test.d.ts.map +1 -0
- package/dist/__tests__/extract-record-no-hardcoded-texture-fields.test.d.ts +2 -0
- package/dist/__tests__/extract-record-no-hardcoded-texture-fields.test.d.ts.map +1 -0
- package/dist/__tests__/extract-skin-mismatch.unit.test.d.ts +2 -0
- package/dist/__tests__/extract-skin-mismatch.unit.test.d.ts.map +1 -0
- package/dist/__tests__/fetch-binary-decompress.test.d.ts +2 -0
- package/dist/__tests__/fetch-binary-decompress.test.d.ts.map +1 -0
- package/dist/__tests__/four-path-compression.integration.test.d.ts +2 -0
- package/dist/__tests__/four-path-compression.integration.test.d.ts.map +1 -0
- package/dist/__tests__/frame-targets-shadow-regression.unit.test.d.ts +2 -0
- package/dist/__tests__/frame-targets-shadow-regression.unit.test.d.ts.map +1 -0
- package/dist/__tests__/fullscreen-feature-host.dawn.test.d.ts +2 -0
- package/dist/__tests__/fullscreen-feature-host.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/fullscreen-post-bgl-depth.test.d.ts +2 -0
- package/dist/__tests__/fullscreen-post-bgl-depth.test.d.ts.map +1 -0
- package/dist/__tests__/fullscreen-post-depth-params-arity.test.d.ts +2 -0
- package/dist/__tests__/fullscreen-post-depth-params-arity.test.d.ts.map +1 -0
- package/dist/__tests__/fullscreen-post-process-pass.dawn.test.d.ts +2 -0
- package/dist/__tests__/fullscreen-post-process-pass.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/fullscreen-post-process-pass.unit.test.d.ts +2 -0
- package/dist/__tests__/fullscreen-post-process-pass.unit.test.d.ts.map +1 -0
- package/dist/__tests__/fxaa-pixel-diff.dawn.test.d.ts +2 -0
- package/dist/__tests__/fxaa-pixel-diff.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/fxaa-validation-and-resize.dawn.test.d.ts +2 -0
- package/dist/__tests__/fxaa-validation-and-resize.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/fxaa-zero-overhead.dawn.test.d.ts +2 -0
- package/dist/__tests__/fxaa-zero-overhead.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/geometry.unit.test.d.ts +2 -0
- package/dist/__tests__/geometry.unit.test.d.ts.map +1 -0
- package/dist/__tests__/glyph-tilemap-worldid.test.d.ts +2 -0
- package/dist/__tests__/glyph-tilemap-worldid.test.d.ts.map +1 -0
- package/dist/__tests__/gpu-resource-cow-survivor.test.d.ts +2 -0
- package/dist/__tests__/gpu-resource-cow-survivor.test.d.ts.map +1 -0
- package/dist/__tests__/guid-for-asset.unit.test.d.ts +2 -0
- package/dist/__tests__/guid-for-asset.unit.test.d.ts.map +1 -0
- package/dist/__tests__/handle-migration.test.d.ts +2 -0
- package/dist/__tests__/handle-migration.test.d.ts.map +1 -0
- package/dist/__tests__/hello-tilemap-smoke-upgrade.unit.test.d.ts +2 -0
- package/dist/__tests__/hello-tilemap-smoke-upgrade.unit.test.d.ts.map +1 -0
- package/dist/__tests__/helpers/mock-shader-registry.d.ts +11 -0
- package/dist/__tests__/helpers/mock-shader-registry.d.ts.map +1 -0
- package/dist/__tests__/helpers/register-runtime-components.d.ts +4 -0
- package/dist/__tests__/helpers/register-runtime-components.d.ts.map +1 -0
- package/dist/__tests__/helpers/register-scene-components.d.ts +4 -0
- package/dist/__tests__/helpers/register-scene-components.d.ts.map +1 -0
- package/dist/__tests__/helpers/tilemap-assets.d.ts +6 -0
- package/dist/__tests__/helpers/tilemap-assets.d.ts.map +1 -0
- package/dist/__tests__/host-custom-kind-contract.test-d.d.ts +2 -0
- package/dist/__tests__/host-custom-kind-contract.test-d.d.ts.map +1 -0
- package/dist/__tests__/host-custom-kind-contract.test.d.ts +2 -0
- package/dist/__tests__/host-custom-kind-contract.test.d.ts.map +1 -0
- package/dist/__tests__/inspect-name.test.d.ts +2 -0
- package/dist/__tests__/inspect-name.test.d.ts.map +1 -0
- package/dist/__tests__/instances.test-d.d.ts +2 -0
- package/dist/__tests__/instances.test-d.d.ts.map +1 -0
- package/dist/__tests__/instantiate-mount-deferred-wiring.test.d.ts +2 -0
- package/dist/__tests__/instantiate-mount-deferred-wiring.test.d.ts.map +1 -0
- package/dist/__tests__/light-attenuation-formula.test.d.ts +2 -0
- package/dist/__tests__/light-attenuation-formula.test.d.ts.map +1 -0
- package/dist/__tests__/light-casters-9-light.browser.test.d.ts +2 -0
- package/dist/__tests__/light-casters-9-light.browser.test.d.ts.map +1 -0
- package/dist/__tests__/light-gpu-byte-neutral.unit.test.d.ts +2 -0
- package/dist/__tests__/light-gpu-byte-neutral.unit.test.d.ts.map +1 -0
- package/dist/__tests__/light-snapshot.test-d.d.ts +2 -0
- package/dist/__tests__/light-snapshot.test-d.d.ts.map +1 -0
- package/dist/__tests__/lights-vec-negative.unit.test.d.ts +2 -0
- package/dist/__tests__/lights-vec-negative.unit.test.d.ts.map +1 -0
- package/dist/__tests__/lights.unit.test.d.ts +2 -0
- package/dist/__tests__/lights.unit.test.d.ts.map +1 -0
- package/dist/__tests__/loadbyguid-payload.unit.test.d.ts +2 -0
- package/dist/__tests__/loadbyguid-payload.unit.test.d.ts.map +1 -0
- package/dist/__tests__/loadbyguid-texture-intern.unit.test.d.ts +2 -0
- package/dist/__tests__/loadbyguid-texture-intern.unit.test.d.ts.map +1 -0
- package/dist/__tests__/loader-extract-graceful.test.d.ts +2 -0
- package/dist/__tests__/loader-extract-graceful.test.d.ts.map +1 -0
- package/dist/__tests__/loader-name-survival.test.d.ts +2 -0
- package/dist/__tests__/loader-name-survival.test.d.ts.map +1 -0
- package/dist/__tests__/m3-vec-negative.unit.test.d.ts +2 -0
- package/dist/__tests__/m3-vec-negative.unit.test.d.ts.map +1 -0
- package/dist/__tests__/m5-browser-dawn-sweep.integration.test.d.ts +2 -0
- package/dist/__tests__/m5-browser-dawn-sweep.integration.test.d.ts.map +1 -0
- package/dist/__tests__/material-texture-uv-scale.unit.test.d.ts +2 -0
- package/dist/__tests__/material-texture-uv-scale.unit.test.d.ts.map +1 -0
- package/dist/__tests__/materials.unit.test.d.ts +2 -0
- package/dist/__tests__/materials.unit.test.d.ts.map +1 -0
- package/dist/__tests__/mesh-bin-contract.test.d.ts +2 -0
- package/dist/__tests__/mesh-bin-contract.test.d.ts.map +1 -0
- package/dist/__tests__/mesh-bin-skin-roundtrip.unit.test.d.ts +2 -0
- package/dist/__tests__/mesh-bin-skin-roundtrip.unit.test.d.ts.map +1 -0
- package/dist/__tests__/mesh-bin.test.d.ts +2 -0
- package/dist/__tests__/mesh-bin.test.d.ts.map +1 -0
- package/dist/__tests__/mesh-loader-skin-contract.unit.test.d.ts +2 -0
- package/dist/__tests__/mesh-loader-skin-contract.unit.test.d.ts.map +1 -0
- package/dist/__tests__/mesh-ssbo-grow.unit.test.d.ts +2 -0
- package/dist/__tests__/mesh-ssbo-grow.unit.test.d.ts.map +1 -0
- package/dist/__tests__/mip-gate.unit.test.d.ts +2 -0
- package/dist/__tests__/mip-gate.unit.test.d.ts.map +1 -0
- package/dist/__tests__/msaa-sprite-pixel-diff.dawn.test.d.ts +2 -0
- package/dist/__tests__/msaa-sprite-pixel-diff.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/multi-uv-8set.e2e.dawn.test.d.ts +2 -0
- package/dist/__tests__/multi-uv-8set.e2e.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/name.unit.test.d.ts +2 -0
- package/dist/__tests__/name.unit.test.d.ts.map +1 -0
- package/dist/__tests__/new-kind-refs-contract.test.d.ts +2 -0
- package/dist/__tests__/new-kind-refs-contract.test.d.ts.map +1 -0
- package/dist/__tests__/package-promotion.test.d.ts +2 -0
- package/dist/__tests__/package-promotion.test.d.ts.map +1 -0
- package/dist/__tests__/package-rename.test.d.ts +2 -0
- package/dist/__tests__/package-rename.test.d.ts.map +1 -0
- package/dist/__tests__/pass-selector.unit.test.d.ts +2 -0
- package/dist/__tests__/pass-selector.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pbr-pipeline.unit.test.d.ts +2 -0
- package/dist/__tests__/pbr-pipeline.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline-builder-msaa.unit.test.d.ts +2 -0
- package/dist/__tests__/pipeline-builder-msaa.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline-cache-keying.unit.test.d.ts +2 -0
- package/dist/__tests__/pipeline-cache-keying.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline-spec.test.d.ts +2 -0
- package/dist/__tests__/pipeline-spec.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline.unit.test.d.ts +2 -0
- package/dist/__tests__/pipeline.unit.test.d.ts.map +1 -0
- package/dist/__tests__/point-light-shadow.browser.test.d.ts +2 -0
- package/dist/__tests__/point-light-shadow.browser.test.d.ts.map +1 -0
- package/dist/__tests__/point-light-shadow.dawn.test.d.ts +2 -0
- package/dist/__tests__/point-light-shadow.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/point-light-shadow.unit.test.d.ts +2 -0
- package/dist/__tests__/point-light-shadow.unit.test.d.ts.map +1 -0
- package/dist/__tests__/post-process-error-codes.unit.test.d.ts +2 -0
- package/dist/__tests__/post-process-error-codes.unit.test.d.ts.map +1 -0
- package/dist/__tests__/post-process-params-component.unit.test.d.ts +2 -0
- package/dist/__tests__/post-process-params-component.unit.test.d.ts.map +1 -0
- package/dist/__tests__/post-process-params-extract.unit.test.d.ts +2 -0
- package/dist/__tests__/post-process-params-extract.unit.test.d.ts.map +1 -0
- package/dist/__tests__/postprocess-camera-consistency.test.d.ts +2 -0
- package/dist/__tests__/postprocess-camera-consistency.test.d.ts.map +1 -0
- package/dist/__tests__/profiler-assembly.integration.test.d.ts +2 -0
- package/dist/__tests__/profiler-assembly.integration.test.d.ts.map +1 -0
- package/dist/__tests__/propagate-transforms.dawn.test.d.ts +2 -0
- package/dist/__tests__/propagate-transforms.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/record-worldid-isolation.test.d.ts +2 -0
- package/dist/__tests__/record-worldid-isolation.test.d.ts.map +1 -0
- package/dist/__tests__/recover-error-exhaustive.test-d.d.ts +11 -0
- package/dist/__tests__/recover-error-exhaustive.test-d.d.ts.map +1 -0
- package/dist/__tests__/render-error-exhaustive.test-d.d.ts +11 -0
- package/dist/__tests__/render-error-exhaustive.test-d.d.ts.map +1 -0
- package/dist/__tests__/render-feature-assembly.test-d.d.ts +2 -0
- package/dist/__tests__/render-feature-assembly.test-d.d.ts.map +1 -0
- package/dist/__tests__/render-feature-prepared-graphics-docs.unit.test.d.ts +2 -0
- package/dist/__tests__/render-feature-prepared-graphics-docs.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-prepared-graphics.browser.test.d.ts +2 -0
- package/dist/__tests__/render-feature-prepared-graphics.browser.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-prepared-graphics.dawn.test.d.ts +2 -0
- package/dist/__tests__/render-feature-prepared-graphics.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-prepared-graphics.fixture.d.ts +10 -0
- package/dist/__tests__/render-feature-prepared-graphics.fixture.d.ts.map +1 -0
- package/dist/__tests__/render-feature-prepared-graphics.integration.test.d.ts +2 -0
- package/dist/__tests__/render-feature-prepared-graphics.integration.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-prepared-graphics.regression.integration.test.d.ts +2 -0
- package/dist/__tests__/render-feature-prepared-graphics.regression.integration.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-recover.integration.test.d.ts +2 -0
- package/dist/__tests__/render-feature-recover.integration.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-runtime-surface.test-d.d.ts +2 -0
- package/dist/__tests__/render-feature-runtime-surface.test-d.d.ts.map +1 -0
- package/dist/__tests__/render-schema-consumer.integration.test.d.ts +2 -0
- package/dist/__tests__/render-schema-consumer.integration.test.d.ts.map +1 -0
- package/dist/__tests__/render-schema-owner-boundary.unit.test.d.ts +2 -0
- package/dist/__tests__/render-schema-owner-boundary.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-cross-world-overlay-queue.test.d.ts +2 -0
- package/dist/__tests__/render-system-cross-world-overlay-queue.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-extract-dispatch-ordering.test.d.ts +2 -0
- package/dist/__tests__/render-system-extract-dispatch-ordering.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-extract.test.d.ts +2 -0
- package/dist/__tests__/render-system-extract.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-extract.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-extract.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-bucket.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-bucket.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-fallback.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-fallback.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-material.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-material.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-metrics.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-metrics.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-modegate.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-modegate.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-scene-instances.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-scene-instances.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold.dawn.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-mega.test.d.ts +2 -0
- package/dist/__tests__/render-system-mega.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-owner-split-contract.test.d.ts +2 -0
- package/dist/__tests__/render-system-owner-split-contract.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-record-multi-material-textureview.test.d.ts +2 -0
- package/dist/__tests__/render-system-record-multi-material-textureview.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-record-per-submesh-transparency.test.d.ts +2 -0
- package/dist/__tests__/render-system-record-per-submesh-transparency.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-record.test.d.ts +2 -0
- package/dist/__tests__/render-system-record.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-record.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-record.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-skin-bg.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-skin-bg.unit.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-consumer.test-d.d.ts +2 -0
- package/dist/__tests__/renderer-consumer.test-d.d.ts.map +1 -0
- package/dist/__tests__/renderer-health.unit.test.d.ts +2 -0
- package/dist/__tests__/renderer-health.unit.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-lifecycle.integration.test.d.ts +2 -0
- package/dist/__tests__/renderer-lifecycle.integration.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-recover.unit.test.d.ts +2 -0
- package/dist/__tests__/renderer-recover.unit.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-result.test-d.d.ts +2 -0
- package/dist/__tests__/renderer-result.test-d.d.ts.map +1 -0
- package/dist/__tests__/renderer-surface.unit.test.d.ts +2 -0
- package/dist/__tests__/renderer-surface.unit.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-test-utils.d.ts +10 -0
- package/dist/__tests__/renderer-test-utils.d.ts.map +1 -0
- package/dist/__tests__/renderer.test-d.d.ts +2 -0
- package/dist/__tests__/renderer.test-d.d.ts.map +1 -0
- package/dist/__tests__/resolve-asset-handle-err.test.d.ts +2 -0
- package/dist/__tests__/resolve-asset-handle-err.test.d.ts.map +1 -0
- package/dist/__tests__/resolve-asset-handle.unit.test.d.ts +2 -0
- package/dist/__tests__/resolve-asset-handle.unit.test.d.ts.map +1 -0
- package/dist/__tests__/resolve-depth-only-view.test.d.ts +2 -0
- package/dist/__tests__/resolve-depth-only-view.test.d.ts.map +1 -0
- package/dist/__tests__/resolveName-fallback.test.d.ts +2 -0
- package/dist/__tests__/resolveName-fallback.test.d.ts.map +1 -0
- package/dist/__tests__/resolveName-null-package.test.d.ts +2 -0
- package/dist/__tests__/resolveName-null-package.test.d.ts.map +1 -0
- package/dist/__tests__/resolveName-unified-entry.test.d.ts +2 -0
- package/dist/__tests__/resolveName-unified-entry.test.d.ts.map +1 -0
- package/dist/__tests__/resolveName.test.d.ts +2 -0
- package/dist/__tests__/resolveName.test.d.ts.map +1 -0
- package/dist/__tests__/rhi-null-command-flow.unit.test.d.ts +2 -0
- package/dist/__tests__/rhi-null-command-flow.unit.test.d.ts.map +1 -0
- package/dist/__tests__/rhi-null-noop-behavior.unit.test.d.ts +2 -0
- package/dist/__tests__/rhi-null-noop-behavior.unit.test.d.ts.map +1 -0
- package/dist/__tests__/rhi-null-renderer-lifecycle.unit.test.d.ts +2 -0
- package/dist/__tests__/rhi-null-renderer-lifecycle.unit.test.d.ts.map +1 -0
- package/dist/__tests__/roots-to-scene-asset.test.d.ts +2 -0
- package/dist/__tests__/roots-to-scene-asset.test.d.ts.map +1 -0
- package/dist/__tests__/roundtrip-primitive.test.d.ts +2 -0
- package/dist/__tests__/roundtrip-primitive.test.d.ts.map +1 -0
- package/dist/__tests__/runtime-authority-scan.unit.test.d.ts +2 -0
- package/dist/__tests__/runtime-authority-scan.unit.test.d.ts.map +1 -0
- package/dist/__tests__/runtime-domain-residue.unit.test.d.ts +2 -0
- package/dist/__tests__/runtime-domain-residue.unit.test.d.ts.map +1 -0
- package/dist/__tests__/scene-bare-guid-refs-instantiate.test.d.ts +2 -0
- package/dist/__tests__/scene-bare-guid-refs-instantiate.test.d.ts.map +1 -0
- package/dist/__tests__/scene-equirect-roundtrip.test.d.ts +2 -0
- package/dist/__tests__/scene-equirect-roundtrip.test.d.ts.map +1 -0
- package/dist/__tests__/scene-instance-authoring.integration.test.d.ts +2 -0
- package/dist/__tests__/scene-instance-authoring.integration.test.d.ts.map +1 -0
- package/dist/__tests__/scene-instance-bridge.integration.test.d.ts +2 -0
- package/dist/__tests__/scene-instance-bridge.integration.test.d.ts.map +1 -0
- package/dist/__tests__/scene-instance-component.test.d.ts +2 -0
- package/dist/__tests__/scene-instance-component.test.d.ts.map +1 -0
- package/dist/__tests__/scene-instantiate-cycle-runtime.test.d.ts +2 -0
- package/dist/__tests__/scene-instantiate-cycle-runtime.test.d.ts.map +1 -0
- package/dist/__tests__/scene-mount-fixed-point.test.d.ts +2 -0
- package/dist/__tests__/scene-mount-fixed-point.test.d.ts.map +1 -0
- package/dist/__tests__/scene-mount-roundtrip.test.d.ts +2 -0
- package/dist/__tests__/scene-mount-roundtrip.test.d.ts.map +1 -0
- package/dist/__tests__/scene-mount-wrapper-roundtrip.test.d.ts +2 -0
- package/dist/__tests__/scene-mount-wrapper-roundtrip.test.d.ts.map +1 -0
- package/dist/__tests__/scene-sugar-instantiate.test.d.ts +2 -0
- package/dist/__tests__/scene-sugar-instantiate.test.d.ts.map +1 -0
- package/dist/__tests__/serialize-mounts-roundtrip.test.d.ts +2 -0
- package/dist/__tests__/serialize-mounts-roundtrip.test.d.ts.map +1 -0
- package/dist/__tests__/serialize-scene-asset.test.d.ts +2 -0
- package/dist/__tests__/serialize-scene-asset.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-caster-empty-schema.test.d.ts +2 -0
- package/dist/__tests__/shadow-caster-empty-schema.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-atlas.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-atlas.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-blend.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-blend.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-cascade-loadop.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-cascade-loadop.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-component.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-component.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-extract.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-extract.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-orthoz.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-orthoz.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-runtime-vary.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-runtime-vary.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-shader.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-shader.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-tile-consistency.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-tile-consistency.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-ubo.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-ubo.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-ubo.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-ubo.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-viewport.browser.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-viewport.browser.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-fields-observable.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-fields-observable.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-m1.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-m1.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-mesh-ssbo-order.test.d.ts +2 -0
- package/dist/__tests__/shadow-mesh-ssbo-order.test.d.ts.map +1 -0
- package/dist/__tests__/skin-error-exhaustive.test-d.d.ts +11 -0
- package/dist/__tests__/skin-error-exhaustive.test-d.d.ts.map +1 -0
- package/dist/__tests__/skin-errors.unit.test.d.ts +2 -0
- package/dist/__tests__/skin-errors.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skin-extract-getarrayview-count.unit.test.d.ts +2 -0
- package/dist/__tests__/skin-extract-getarrayview-count.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skin-parented-double-transform.test.d.ts +14 -0
- package/dist/__tests__/skin-parented-double-transform.test.d.ts.map +1 -0
- package/dist/__tests__/skylight-lazy-projection.test.d.ts +2 -0
- package/dist/__tests__/skylight-lazy-projection.test.d.ts.map +1 -0
- package/dist/__tests__/sparse-tag-scene-roundtrip.test.d.ts +2 -0
- package/dist/__tests__/sparse-tag-scene-roundtrip.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-cullmode-flip.dawn.test.d.ts +2 -0
- package/dist/__tests__/sprite-cullmode-flip.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-lit-bgl-byte-identical.test.d.ts +2 -0
- package/dist/__tests__/sprite-lit-bgl-byte-identical.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-lit-extract-branch.test.d.ts +2 -0
- package/dist/__tests__/sprite-lit-extract-branch.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-lit-pipeline-cache-key.test.d.ts +2 -0
- package/dist/__tests__/sprite-lit-pipeline-cache-key.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-param-values.test-d.d.ts +2 -0
- package/dist/__tests__/sprite-param-values.test-d.d.ts.map +1 -0
- package/dist/__tests__/ssao-bgl.test.d.ts +2 -0
- package/dist/__tests__/ssao-bgl.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-buffers.test.d.ts +2 -0
- package/dist/__tests__/ssao-buffers.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-data.test.d.ts +2 -0
- package/dist/__tests__/ssao-data.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-errors.test.d.ts +2 -0
- package/dist/__tests__/ssao-errors.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-manifest.test.d.ts +2 -0
- package/dist/__tests__/ssao-manifest.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-passes.test.d.ts +2 -0
- package/dist/__tests__/ssao-passes.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-pipelines.test.d.ts +2 -0
- package/dist/__tests__/ssao-pipelines.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-uniform-layout.test.d.ts +2 -0
- package/dist/__tests__/ssao-uniform-layout.test.d.ts.map +1 -0
- package/dist/__tests__/static-rig.integration.test.d.ts +2 -0
- package/dist/__tests__/static-rig.integration.test.d.ts.map +1 -0
- package/dist/__tests__/stencil-outline-pixel.dawn.test.d.ts +2 -0
- package/dist/__tests__/stencil-outline-pixel.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/swap-chain-format.unit.test.d.ts +2 -0
- package/dist/__tests__/swap-chain-format.unit.test.d.ts.map +1 -0
- package/dist/__tests__/systems.unit.test.d.ts +2 -0
- package/dist/__tests__/systems.unit.test.d.ts.map +1 -0
- package/dist/__tests__/template-game-default-api-contract.test.d.ts +2 -0
- package/dist/__tests__/template-game-default-api-contract.test.d.ts.map +1 -0
- package/dist/__tests__/text.unit.test.d.ts +2 -0
- package/dist/__tests__/text.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-childed-despawn.test.d.ts +2 -0
- package/dist/__tests__/tilemap-childed-despawn.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-extract.overhang-bounds.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-extract.overhang-bounds.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-extract.propagate-order.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-extract.propagate-order.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-extract.terrain-rewrite.unit.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-extract.terrain-rewrite.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-extract.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-extract.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-extract.unit.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-extract.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-y-sort-bench.unit.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-y-sort-bench.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-dirty-rebuild.test.d.ts +2 -0
- package/dist/__tests__/tilemap-dirty-rebuild.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-material-cache.test.d.ts +2 -0
- package/dist/__tests__/tilemap-material-cache.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-multi-atlas.test.d.ts +2 -0
- package/dist/__tests__/tilemap-multi-atlas.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-owner-boundary.unit.test.d.ts +2 -0
- package/dist/__tests__/tilemap-owner-boundary.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-region-pack.test.d.ts +2 -0
- package/dist/__tests__/tilemap-region-pack.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-spawn-flip-pivot.test.d.ts +2 -0
- package/dist/__tests__/tilemap-spawn-flip-pivot.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-uv-inset.test.d.ts +2 -0
- package/dist/__tests__/tilemap-uv-inset.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-validate.test.d.ts +2 -0
- package/dist/__tests__/tilemap-validate.test.d.ts.map +1 -0
- package/dist/__tests__/tileset-asset-validate.test.d.ts +2 -0
- package/dist/__tests__/tileset-asset-validate.test.d.ts.map +1 -0
- package/dist/__tests__/transcode-fallback.unit.test.d.ts +2 -0
- package/dist/__tests__/transcode-fallback.unit.test.d.ts.map +1 -0
- package/dist/__tests__/transform-hierarchy-pixel-diff.dawn.test.d.ts +2 -0
- package/dist/__tests__/transform-hierarchy-pixel-diff.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/transient-fields-collect.test.d.ts +2 -0
- package/dist/__tests__/transient-fields-collect.test.d.ts.map +1 -0
- package/dist/__tests__/transient-runtime-behavior.test.d.ts +2 -0
- package/dist/__tests__/transient-runtime-behavior.test.d.ts.map +1 -0
- package/dist/__tests__/transitional-authoring.integration.test.d.ts +2 -0
- package/dist/__tests__/transitional-authoring.integration.test.d.ts.map +1 -0
- package/dist/__tests__/transparent-sort-tilemap-sprite-interleave.test.d.ts +2 -0
- package/dist/__tests__/transparent-sort-tilemap-sprite-interleave.test.d.ts.map +1 -0
- package/dist/__tests__/variant-selection.unit.test.d.ts +2 -0
- package/dist/__tests__/variant-selection.unit.test.d.ts.map +1 -0
- package/dist/__tests__/vertex-attribute-layout.test.d.ts +2 -0
- package/dist/__tests__/vertex-attribute-layout.test.d.ts.map +1 -0
- package/dist/__tests__/video-extract-bindgroup.dawn.test.d.ts +2 -0
- package/dist/__tests__/video-extract-bindgroup.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/video-loader-consumption.test.d.ts +2 -0
- package/dist/__tests__/video-loader-consumption.test.d.ts.map +1 -0
- package/dist/__tests__/video-loader-smoke.dawn.test.d.ts +2 -0
- package/dist/__tests__/video-loader-smoke.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/view-ubo-layout.browser.test.d.ts +2 -0
- package/dist/__tests__/view-ubo-layout.browser.test.d.ts.map +1 -0
- package/dist/__tests__/world-entity-key.test.d.ts +2 -0
- package/dist/__tests__/world-entity-key.test.d.ts.map +1 -0
- package/dist/__tests__/world-scene-despawn.test.d.ts +2 -0
- package/dist/__tests__/world-scene-despawn.test.d.ts.map +1 -0
- package/dist/__tests__/world-scene-instantiate.test.d.ts +2 -0
- package/dist/__tests__/world-scene-instantiate.test.d.ts.map +1 -0
- package/dist/__tests__/world-scene-nested.test.d.ts +2 -0
- package/dist/__tests__/world-scene-nested.test.d.ts.map +1 -0
- package/dist/__tests__/world-scene-override.test.d.ts +2 -0
- package/dist/__tests__/world-scene-override.test.d.ts.map +1 -0
- package/dist/__tests__/zero-compression-zero-load.integration.test.d.ts +2 -0
- package/dist/__tests__/zero-compression-zero-load.integration.test.d.ts.map +1 -0
- package/dist/asset-contributions.d.ts +3 -0
- package/dist/asset-contributions.d.ts.map +1 -0
- package/dist/backend-selection.d.ts +13 -0
- package/dist/backend-selection.d.ts.map +1 -0
- package/dist/collect-scene-asset.d.ts +19 -0
- package/dist/collect-scene-asset.d.ts.map +1 -0
- package/dist/components/__tests__/camera.test-d.d.ts +2 -0
- package/dist/components/__tests__/camera.test-d.d.ts.map +1 -0
- package/dist/components/__tests__/camera.test.d.ts +2 -0
- package/dist/components/__tests__/camera.test.d.ts.map +1 -0
- package/dist/components/__tests__/child-of.test.d.ts +2 -0
- package/dist/components/__tests__/child-of.test.d.ts.map +1 -0
- package/dist/components/__tests__/sprite-animation.test-d.d.ts +2 -0
- package/dist/components/__tests__/sprite-animation.test-d.d.ts.map +1 -0
- package/dist/components/__tests__/sprite-instances.unit.test.d.ts +2 -0
- package/dist/components/__tests__/sprite-instances.unit.test.d.ts.map +1 -0
- package/dist/components/__tests__/sprite-region-override.test-d.d.ts +2 -0
- package/dist/components/__tests__/sprite-region-override.test-d.d.ts.map +1 -0
- package/dist/components/__tests__/tile-layer.test-d.d.ts +2 -0
- package/dist/components/__tests__/tile-layer.test-d.d.ts.map +1 -0
- package/dist/components/__tests__/tile-layer.unit.test.d.ts +2 -0
- package/dist/components/__tests__/tile-layer.unit.test.d.ts.map +1 -0
- package/dist/components/__tests__/tilemap.test-d.d.ts +2 -0
- package/dist/components/__tests__/tilemap.test-d.d.ts.map +1 -0
- package/dist/components/__tests__/transform-vec-schema.test.d.ts +2 -0
- package/dist/components/__tests__/transform-vec-schema.test.d.ts.map +1 -0
- package/dist/create-renderer-env-classify.d.ts +21 -0
- package/dist/create-renderer-env-classify.d.ts.map +1 -0
- package/dist/createRenderer.d.ts +15 -0
- package/dist/createRenderer.d.ts.map +1 -0
- package/dist/dev-import-transport.d.ts +24 -0
- package/dist/dev-import-transport.d.ts.map +1 -0
- package/dist/errors/environment.d.ts +2 -0
- package/dist/errors/environment.d.ts.map +1 -0
- package/dist/index.d.ts +218 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +813 -0
- package/dist/index.mjs.map +1 -0
- package/dist/renderer-host.d.ts +9 -0
- package/dist/renderer-host.d.ts.map +1 -0
- package/dist/renderer-host.mjs +62 -0
- package/dist/renderer-host.mjs.map +1 -0
- package/dist/scene-instances/__tests__/post-spawn-resolve-joints.unit.test.d.ts +2 -0
- package/dist/scene-instances/__tests__/post-spawn-resolve-joints.unit.test.d.ts.map +1 -0
- package/dist/scene-instances/index.d.ts +2 -0
- package/dist/scene-instances/index.d.ts.map +1 -0
- package/dist/scene-utils/mount-override-fold.d.ts +15 -0
- package/dist/scene-utils/mount-override-fold.d.ts.map +1 -0
- package/dist/sprite-param-values.d.ts +62 -0
- package/dist/sprite-param-values.d.ts.map +1 -0
- package/dist/systems/__tests__/_xorshift.d.ts +28 -0
- package/dist/systems/__tests__/_xorshift.d.ts.map +1 -0
- package/dist/systems/__tests__/argsort-in-place.test.d.ts +2 -0
- package/dist/systems/__tests__/argsort-in-place.test.d.ts.map +1 -0
- package/dist/systems/__tests__/transparent-sort.bench.d.ts +2 -0
- package/dist/systems/__tests__/transparent-sort.bench.d.ts.map +1 -0
- package/dist/systems/sprite-animation-tick.d.ts +50 -0
- package/dist/systems/sprite-animation-tick.d.ts.map +1 -0
- package/dist/systems/tonemap.d.ts +27 -0
- package/dist/systems/tonemap.d.ts.map +1 -0
- package/dist/systems/transparent-sort.d.ts +50 -0
- package/dist/systems/transparent-sort.d.ts.map +1 -0
- package/dist/tilemap-register-validate.d.ts +21 -0
- package/dist/tilemap-register-validate.d.ts.map +1 -0
- package/package.json +101 -0
- package/src/__tests__/active-camera.unit.test.ts +203 -0
- package/src/__tests__/animation-graph-add.unit.test.ts +67 -0
- package/src/__tests__/animation-graph-asset-union.test-d.ts +83 -0
- package/src/__tests__/animation-graph-blend.unit.test.ts +66 -0
- package/src/__tests__/animation-graph-build.unit.test.ts +100 -0
- package/src/__tests__/animation-graph-clip-missing.unit.test.ts +62 -0
- package/src/__tests__/animation-graph-clip.unit.test.ts +77 -0
- package/src/__tests__/animation-graph-collect-roundtrip.test.ts +213 -0
- package/src/__tests__/animation-graph-default-path.integration.test.ts +65 -0
- package/src/__tests__/animation-graph-describe.unit.test.ts +68 -0
- package/src/__tests__/animation-graph-errors.unit.test.ts +75 -0
- package/src/__tests__/animation-graph-nesting.unit.test.ts +84 -0
- package/src/__tests__/animation-graph-orthogonal-weight.unit.test.ts +98 -0
- package/src/__tests__/animation-graph-serialize.unit.test.ts +171 -0
- package/src/__tests__/animation-graph-slot-fill.unit.test.ts +95 -0
- package/src/__tests__/animation-nslot.unit.test.ts +63 -0
- package/src/__tests__/animation-slot-length-guard.unit.test.ts +81 -0
- package/src/__tests__/append-injection.test.ts +105 -0
- package/src/__tests__/asi-world-baseline-export.unit.test.ts +173 -0
- package/src/__tests__/asi-world-ci-config.unit.test.ts +186 -0
- package/src/__tests__/asi-world-smoke.unit.test.ts +192 -0
- package/src/__tests__/asset-brand-and-name-retirement.test.ts +102 -0
- package/src/__tests__/asset-error-exhaustive.test-d.ts +62 -0
- package/src/__tests__/asset-registry-guid-reverse.test.ts +608 -0
- package/src/__tests__/asset-registry-hdr-equirect.test.ts +78 -0
- package/src/__tests__/asset-registry-mesh-pack-payload.dawn.test.ts +232 -0
- package/src/__tests__/asset-registry-mounts.test.ts +806 -0
- package/src/__tests__/asset-registry-scene.test-d.ts +49 -0
- package/src/__tests__/asset-registry.browser.test.ts +81 -0
- package/src/__tests__/asset-registry.dawn.test.ts +94 -0
- package/src/__tests__/asset-registry.listCatalog.test.ts +170 -0
- package/src/__tests__/asset-registry.mesh-bin.test.ts +316 -0
- package/src/__tests__/asset-registry.pack-cache.test.ts +969 -0
- package/src/__tests__/asset-registry.raw-container-failfast.test.ts +225 -0
- package/src/__tests__/asset-registry.recursive.spec.ts +1397 -0
- package/src/__tests__/asset-registry.unit.test.ts +1030 -0
- package/src/__tests__/asset.unit.test.ts +7107 -0
- package/src/__tests__/audio-load-by-guid.unit.test.ts +126 -0
- package/src/__tests__/backend-selection.integration.test.ts +11 -0
- package/src/__tests__/basis-catalog-dispatch.integration.test.ts +320 -0
- package/src/__tests__/bind-group-cache-keying.test.ts +295 -0
- package/src/__tests__/block-upload-math.unit.test.ts +192 -0
- package/src/__tests__/builtin-asset-registry.unit.test.ts +112 -0
- package/src/__tests__/builtin-shader-register-e2e.test.ts +151 -0
- package/src/__tests__/cache-false-eviction.test.ts +127 -0
- package/src/__tests__/cache-isolation-matrix.test.ts +183 -0
- package/src/__tests__/camera-clear-snapshot-equivalence.unit.test.ts +75 -0
- package/src/__tests__/clamp-to-last.e2e.browser.test.ts +193 -0
- package/src/__tests__/clamp-to-last.e2e.dawn.test.ts +325 -0
- package/src/__tests__/collect-scene-asset.test.ts +873 -0
- package/src/__tests__/collect-scene-mount-collapse.test.ts +391 -0
- package/src/__tests__/collect-subtree.unit.test.ts +75 -0
- package/src/__tests__/collect-transient-children-absent.test.ts +168 -0
- package/src/__tests__/collect-transient-roundtrip.test.ts +269 -0
- package/src/__tests__/collect-transient-skip.test.ts +176 -0
- package/src/__tests__/components.test-d.ts +231 -0
- package/src/__tests__/components.unit.test.ts +2666 -0
- package/src/__tests__/composite-skybox-cross-world.browser.test.ts +410 -0
- package/src/__tests__/compressed-texture-physical-extent.integration.test.ts +139 -0
- package/src/__tests__/create-renderer-assembly.integration.test.ts +55 -0
- package/src/__tests__/createRenderer-dispose.test.ts +49 -0
- package/src/__tests__/createRenderer-requiredFeatures.unit.test.ts +134 -0
- package/src/__tests__/createRenderer.browser-no-webgpu.test.ts +54 -0
- package/src/__tests__/createRenderer.unit.test.ts +231 -0
- package/src/__tests__/dawn/hello-sprite-nineslice-section.dawn.test.ts +357 -0
- package/src/__tests__/dawn/ibl-compose.dawn.test.ts +151 -0
- package/src/__tests__/dawn/ibl-modules-compose.dawn.test.ts +223 -0
- package/src/__tests__/dawn/ibl-precompute-readback.dawn.test.ts +250 -0
- package/src/__tests__/dawn/instances-per-instance-pbr.dawn.test.ts +631 -0
- package/src/__tests__/dawn/instances-shadow.dawn.test.ts +454 -0
- package/src/__tests__/dawn/instances-uniform-fallback.dawn.test.ts +312 -0
- package/src/__tests__/dawn/material-alpha.dawn.test.ts +296 -0
- package/src/__tests__/dawn/material-cooked-fixture.dawn.test.ts +79 -0
- package/src/__tests__/dawn/mesh-ssbo-normal-matrix.dawn.test.ts +106 -0
- package/src/__tests__/dawn/mesh-update-dawn.test.ts +250 -0
- package/src/__tests__/dawn/mipmap-srgb-linear.dawn.test.ts +124 -0
- package/src/__tests__/dawn/per-entity-material-texture-isolation.dawn.test.ts +555 -0
- package/src/__tests__/dawn/sprite-nineslice-mesh-bind.dawn.test.ts +235 -0
- package/src/__tests__/dawn/tonemap.dawn.test.ts +107 -0
- package/src/__tests__/dawn/upload-texture.dawn.test.ts +198 -0
- package/src/__tests__/dawn/user-handle-mesh-render.dawn.test.ts +289 -0
- package/src/__tests__/dawn/user-mesh-upload.dawn.test.ts +209 -0
- package/src/__tests__/dawn/zero-manifest-mesh-fail.dawn.test.ts +119 -0
- package/src/__tests__/dawn/zero-manifest-ready.dawn.test.ts +98 -0
- package/src/__tests__/demo-sortscope-migration.unit.test.ts +115 -0
- package/src/__tests__/derive-bgl-integration.test.ts +388 -0
- package/src/__tests__/derive-render-data-skin.unit.test.ts +90 -0
- package/src/__tests__/draw-published.ts +17 -0
- package/src/__tests__/dynamic-texture-store.unit.test.ts +190 -0
- package/src/__tests__/environment-error-exhaustive.test-d.ts +28 -0
- package/src/__tests__/equirect-bc6h.integration.test.ts +158 -0
- package/src/__tests__/error-exhaustive.test.ts +220 -0
- package/src/__tests__/errors.unit.test.ts +1227 -0
- package/src/__tests__/extract-frames-graceful-degradation.test.ts +294 -0
- package/src/__tests__/extract-frames-merge.test.ts +656 -0
- package/src/__tests__/extract-frames-reset.test.ts +158 -0
- package/src/__tests__/extract-record-no-hardcoded-texture-fields.test.ts +81 -0
- package/src/__tests__/extract-skin-mismatch.unit.test.ts +322 -0
- package/src/__tests__/fetch-binary-decompress.test.ts +356 -0
- package/src/__tests__/four-path-compression.integration.test.ts +395 -0
- package/src/__tests__/frame-targets-shadow-regression.unit.test.ts +28 -0
- package/src/__tests__/fullscreen-feature-host.dawn.test.ts +80 -0
- package/src/__tests__/fullscreen-post-bgl-depth.test.ts +133 -0
- package/src/__tests__/fullscreen-post-depth-params-arity.test.ts +84 -0
- package/src/__tests__/fullscreen-post-process-pass.dawn.test.ts +336 -0
- package/src/__tests__/fullscreen-post-process-pass.unit.test.ts +109 -0
- package/src/__tests__/fxaa-pixel-diff.dawn.test.ts +303 -0
- package/src/__tests__/fxaa-validation-and-resize.dawn.test.ts +369 -0
- package/src/__tests__/fxaa-zero-overhead.dawn.test.ts +258 -0
- package/src/__tests__/geometry.unit.test.ts +2631 -0
- package/src/__tests__/glyph-tilemap-worldid.test.ts +146 -0
- package/src/__tests__/gpu-resource-cow-survivor.test.ts +390 -0
- package/src/__tests__/guid-for-asset.unit.test.ts +102 -0
- package/src/__tests__/handle-migration.test.ts +136 -0
- package/src/__tests__/hello-tilemap-smoke-upgrade.unit.test.ts +147 -0
- package/src/__tests__/helpers/mock-shader-registry.ts +139 -0
- package/src/__tests__/helpers/register-runtime-components.ts +71 -0
- package/src/__tests__/helpers/register-scene-components.ts +10 -0
- package/src/__tests__/helpers/tilemap-assets.ts +29 -0
- package/src/__tests__/host-custom-kind-contract.test-d.ts +47 -0
- package/src/__tests__/host-custom-kind-contract.test.ts +578 -0
- package/src/__tests__/inspect-name.test.ts +139 -0
- package/src/__tests__/instances.test-d.ts +61 -0
- package/src/__tests__/instantiate-mount-deferred-wiring.test.ts +112 -0
- package/src/__tests__/light-attenuation-formula.test.ts +171 -0
- package/src/__tests__/light-casters-9-light.browser.test.ts +877 -0
- package/src/__tests__/light-gpu-byte-neutral.unit.test.ts +160 -0
- package/src/__tests__/light-snapshot.test-d.ts +84 -0
- package/src/__tests__/lights-vec-negative.unit.test.ts +52 -0
- package/src/__tests__/lights.unit.test.ts +2456 -0
- package/src/__tests__/loadbyguid-payload.unit.test.ts +117 -0
- package/src/__tests__/loadbyguid-texture-intern.unit.test.ts +213 -0
- package/src/__tests__/loader-extract-graceful.test.ts +146 -0
- package/src/__tests__/loader-name-survival.test.ts +213 -0
- package/src/__tests__/m3-vec-negative.unit.test.ts +46 -0
- package/src/__tests__/m5-browser-dawn-sweep.integration.test.ts +8 -0
- package/src/__tests__/material-texture-uv-scale.unit.test.ts +119 -0
- package/src/__tests__/materials.unit.test.ts +254 -0
- package/src/__tests__/mesh-bin-contract.test.ts +28 -0
- package/src/__tests__/mesh-bin-skin-roundtrip.unit.test.ts +149 -0
- package/src/__tests__/mesh-bin.test.ts +38 -0
- package/src/__tests__/mesh-loader-skin-contract.unit.test.ts +120 -0
- package/src/__tests__/mesh-ssbo-grow.unit.test.ts +244 -0
- package/src/__tests__/mip-gate.unit.test.ts +79 -0
- package/src/__tests__/msaa-sprite-pixel-diff.dawn.test.ts +367 -0
- package/src/__tests__/multi-uv-8set.e2e.dawn.test.ts +296 -0
- package/src/__tests__/name.unit.test.ts +123 -0
- package/src/__tests__/new-kind-refs-contract.test.ts +132 -0
- package/src/__tests__/node-shims.d.ts +31 -0
- package/src/__tests__/package-promotion.test.ts +88 -0
- package/src/__tests__/package-rename.test.ts +103 -0
- package/src/__tests__/pass-selector.unit.test.ts +102 -0
- package/src/__tests__/pbr-pipeline.unit.test.ts +200 -0
- package/src/__tests__/pipeline-builder-msaa.unit.test.ts +221 -0
- package/src/__tests__/pipeline-cache-keying.unit.test.ts +313 -0
- package/src/__tests__/pipeline-spec.test.ts +900 -0
- package/src/__tests__/pipeline.unit.test.ts +5435 -0
- package/src/__tests__/point-light-shadow.browser.test.ts +278 -0
- package/src/__tests__/point-light-shadow.dawn.test.ts +813 -0
- package/src/__tests__/point-light-shadow.unit.test.ts +675 -0
- package/src/__tests__/post-process-error-codes.unit.test.ts +161 -0
- package/src/__tests__/post-process-params-component.unit.test.ts +153 -0
- package/src/__tests__/post-process-params-extract.unit.test.ts +97 -0
- package/src/__tests__/postprocess-camera-consistency.test.ts +375 -0
- package/src/__tests__/profiler-assembly.integration.test.ts +74 -0
- package/src/__tests__/propagate-transforms.dawn.test.ts +254 -0
- package/src/__tests__/record-worldid-isolation.test.ts +225 -0
- package/src/__tests__/recover-error-exhaustive.test-d.ts +35 -0
- package/src/__tests__/render-error-exhaustive.test-d.ts +291 -0
- package/src/__tests__/render-feature-assembly.test-d.ts +39 -0
- package/src/__tests__/render-feature-prepared-graphics-docs.unit.test.ts +126 -0
- package/src/__tests__/render-feature-prepared-graphics.browser.test.ts +88 -0
- package/src/__tests__/render-feature-prepared-graphics.dawn.test.ts +115 -0
- package/src/__tests__/render-feature-prepared-graphics.fixture.ts +104 -0
- package/src/__tests__/render-feature-prepared-graphics.integration.test.ts +56 -0
- package/src/__tests__/render-feature-prepared-graphics.regression.integration.test.ts +104 -0
- package/src/__tests__/render-feature-recover.integration.test.ts +102 -0
- package/src/__tests__/render-feature-runtime-surface.test-d.ts +42 -0
- package/src/__tests__/render-schema-consumer.integration.test.ts +32 -0
- package/src/__tests__/render-schema-owner-boundary.unit.test.ts +22 -0
- package/src/__tests__/render-system-cross-world-overlay-queue.test.ts +172 -0
- package/src/__tests__/render-system-extract-dispatch-ordering.test.ts +307 -0
- package/src/__tests__/render-system-extract.test.ts +1384 -0
- package/src/__tests__/render-system-extract.unit.test.ts +360 -0
- package/src/__tests__/render-system-fold-bucket.unit.test.ts +286 -0
- package/src/__tests__/render-system-fold-fallback.unit.test.ts +151 -0
- package/src/__tests__/render-system-fold-material.unit.test.ts +143 -0
- package/src/__tests__/render-system-fold-metrics.unit.test.ts +170 -0
- package/src/__tests__/render-system-fold-modegate.unit.test.ts +166 -0
- package/src/__tests__/render-system-fold-scene-instances.unit.test.ts +51 -0
- package/src/__tests__/render-system-fold.dawn.test.ts +308 -0
- package/src/__tests__/render-system-mega.test.ts +1680 -0
- package/src/__tests__/render-system-owner-split-contract.test.ts +178 -0
- package/src/__tests__/render-system-record-multi-material-textureview.test.ts +698 -0
- package/src/__tests__/render-system-record-per-submesh-transparency.test.ts +458 -0
- package/src/__tests__/render-system-record.test.ts +1668 -0
- package/src/__tests__/render-system-record.unit.test.ts +269 -0
- package/src/__tests__/render-system-skin-bg.unit.test.ts +143 -0
- package/src/__tests__/renderer-consumer.test-d.ts +18 -0
- package/src/__tests__/renderer-health.unit.test.ts +45 -0
- package/src/__tests__/renderer-lifecycle.integration.test.ts +42 -0
- package/src/__tests__/renderer-recover.unit.test.ts +55 -0
- package/src/__tests__/renderer-result.test-d.ts +36 -0
- package/src/__tests__/renderer-surface.unit.test.ts +414 -0
- package/src/__tests__/renderer-test-utils.ts +56 -0
- package/src/__tests__/renderer.test-d.ts +61 -0
- package/src/__tests__/resolve-asset-handle-err.test.ts +111 -0
- package/src/__tests__/resolve-asset-handle.unit.test.ts +64 -0
- package/src/__tests__/resolve-depth-only-view.test.ts +173 -0
- package/src/__tests__/resolveName-fallback.test.ts +64 -0
- package/src/__tests__/resolveName-null-package.test.ts +38 -0
- package/src/__tests__/resolveName-unified-entry.test.ts +65 -0
- package/src/__tests__/resolveName.test.ts +64 -0
- package/src/__tests__/rhi-null-command-flow.unit.test.ts +69 -0
- package/src/__tests__/rhi-null-noop-behavior.unit.test.ts +196 -0
- package/src/__tests__/rhi-null-renderer-lifecycle.unit.test.ts +54 -0
- package/src/__tests__/roots-to-scene-asset.test.ts +711 -0
- package/src/__tests__/roundtrip-primitive.test.ts +351 -0
- package/src/__tests__/runtime-authority-scan.unit.test.ts +19 -0
- package/src/__tests__/runtime-domain-residue.unit.test.ts +13 -0
- package/src/__tests__/scene-bare-guid-refs-instantiate.test.ts +123 -0
- package/src/__tests__/scene-equirect-roundtrip.test.ts +120 -0
- package/src/__tests__/scene-instance-authoring.integration.test.ts +8 -0
- package/src/__tests__/scene-instance-bridge.integration.test.ts +8 -0
- package/src/__tests__/scene-instance-component.test.ts +45 -0
- package/src/__tests__/scene-instantiate-cycle-runtime.test.ts +66 -0
- package/src/__tests__/scene-mount-fixed-point.test.ts +257 -0
- package/src/__tests__/scene-mount-roundtrip.test.ts +987 -0
- package/src/__tests__/scene-mount-wrapper-roundtrip.test.ts +202 -0
- package/src/__tests__/scene-sugar-instantiate.test.ts +324 -0
- package/src/__tests__/serialize-mounts-roundtrip.test.ts +533 -0
- package/src/__tests__/serialize-scene-asset.test.ts +533 -0
- package/src/__tests__/shadow-caster-empty-schema.test.ts +83 -0
- package/src/__tests__/shadow-csm-atlas.test.ts +178 -0
- package/src/__tests__/shadow-csm-blend.dawn.test.ts +230 -0
- package/src/__tests__/shadow-csm-cascade-loadop.test.ts +354 -0
- package/src/__tests__/shadow-csm-component.test.ts +284 -0
- package/src/__tests__/shadow-csm-extract.test.ts +236 -0
- package/src/__tests__/shadow-csm-orthoz.test.ts +137 -0
- package/src/__tests__/shadow-csm-runtime-vary.dawn.test.ts +203 -0
- package/src/__tests__/shadow-csm-shader.dawn.test.ts +358 -0
- package/src/__tests__/shadow-csm-tile-consistency.test.ts +425 -0
- package/src/__tests__/shadow-csm-ubo.dawn.test.ts +252 -0
- package/src/__tests__/shadow-csm-ubo.test.ts +278 -0
- package/src/__tests__/shadow-csm-viewport.browser.test.ts +85 -0
- package/src/__tests__/shadow-fields-observable.dawn.test.ts +626 -0
- package/src/__tests__/shadow-m1.dawn.test.ts +104 -0
- package/src/__tests__/shadow-mesh-ssbo-order.test.ts +48 -0
- package/src/__tests__/skin-error-exhaustive.test-d.ts +74 -0
- package/src/__tests__/skin-errors.unit.test.ts +10 -0
- package/src/__tests__/skin-extract-getarrayview-count.unit.test.ts +25 -0
- package/src/__tests__/skin-parented-double-transform.test.ts +268 -0
- package/src/__tests__/skylight-lazy-projection.test.ts +380 -0
- package/src/__tests__/sparse-tag-scene-roundtrip.test.ts +43 -0
- package/src/__tests__/sprite-cullmode-flip.dawn.test.ts +453 -0
- package/src/__tests__/sprite-lit-bgl-byte-identical.test.ts +142 -0
- package/src/__tests__/sprite-lit-extract-branch.test.ts +117 -0
- package/src/__tests__/sprite-lit-pipeline-cache-key.test.ts +123 -0
- package/src/__tests__/sprite-param-values.test-d.ts +104 -0
- package/src/__tests__/ssao-bgl.test.ts +354 -0
- package/src/__tests__/ssao-buffers.test.ts +211 -0
- package/src/__tests__/ssao-data.test.ts +121 -0
- package/src/__tests__/ssao-errors.test.ts +162 -0
- package/src/__tests__/ssao-manifest.test.ts +109 -0
- package/src/__tests__/ssao-passes.test.ts +905 -0
- package/src/__tests__/ssao-pipelines.test.ts +275 -0
- package/src/__tests__/ssao-uniform-layout.test.ts +180 -0
- package/src/__tests__/static-rig.integration.test.ts +9 -0
- package/src/__tests__/stencil-outline-pixel.dawn.test.ts +303 -0
- package/src/__tests__/swap-chain-format.unit.test.ts +115 -0
- package/src/__tests__/systems.unit.test.ts +9167 -0
- package/src/__tests__/template-game-default-api-contract.test.ts +362 -0
- package/src/__tests__/text.unit.test.ts +489 -0
- package/src/__tests__/tilemap-childed-despawn.test.ts +462 -0
- package/src/__tests__/tilemap-chunk-extract.overhang-bounds.test.ts +310 -0
- package/src/__tests__/tilemap-chunk-extract.propagate-order.test.ts +81 -0
- package/src/__tests__/tilemap-chunk-extract.terrain-rewrite.unit.test.ts +424 -0
- package/src/__tests__/tilemap-chunk-extract.test.ts +232 -0
- package/src/__tests__/tilemap-chunk-extract.unit.test.ts +383 -0
- package/src/__tests__/tilemap-chunk-y-sort-bench.unit.test.ts +109 -0
- package/src/__tests__/tilemap-dirty-rebuild.test.ts +296 -0
- package/src/__tests__/tilemap-material-cache.test.ts +132 -0
- package/src/__tests__/tilemap-multi-atlas.test.ts +217 -0
- package/src/__tests__/tilemap-owner-boundary.unit.test.ts +66 -0
- package/src/__tests__/tilemap-region-pack.test.ts +149 -0
- package/src/__tests__/tilemap-spawn-flip-pivot.test.ts +270 -0
- package/src/__tests__/tilemap-uv-inset.test.ts +201 -0
- package/src/__tests__/tilemap-validate.test.ts +201 -0
- package/src/__tests__/tileset-asset-validate.test.ts +638 -0
- package/src/__tests__/transcode-fallback.unit.test.ts +207 -0
- package/src/__tests__/transform-hierarchy-pixel-diff.dawn.test.ts +282 -0
- package/src/__tests__/transient-fields-collect.test.ts +210 -0
- package/src/__tests__/transient-runtime-behavior.test.ts +227 -0
- package/src/__tests__/transitional-authoring.integration.test.ts +7 -0
- package/src/__tests__/transparent-sort-tilemap-sprite-interleave.test.ts +227 -0
- package/src/__tests__/variant-selection.unit.test.ts +21 -0
- package/src/__tests__/vertex-attribute-layout.test.ts +324 -0
- package/src/__tests__/video-extract-bindgroup.dawn.test.ts +403 -0
- package/src/__tests__/video-loader-consumption.test.ts +86 -0
- package/src/__tests__/video-loader-smoke.dawn.test.ts +60 -0
- package/src/__tests__/view-ubo-layout.browser.test.ts +161 -0
- package/src/__tests__/world-entity-key.test.ts +92 -0
- package/src/__tests__/world-scene-despawn.test.ts +132 -0
- package/src/__tests__/world-scene-instantiate.test.ts +194 -0
- package/src/__tests__/world-scene-nested.test.ts +230 -0
- package/src/__tests__/world-scene-override.test.ts +199 -0
- package/src/__tests__/zero-compression-zero-load.integration.test.ts +107 -0
- package/src/asset-contributions.ts +48 -0
- package/src/backend-selection.ts +69 -0
- package/src/collect-scene-asset.ts +701 -0
- package/src/components/__tests__/camera.test-d.ts +57 -0
- package/src/components/__tests__/camera.test.ts +95 -0
- package/src/components/__tests__/child-of.test.ts +35 -0
- package/src/components/__tests__/sprite-animation.test-d.ts +160 -0
- package/src/components/__tests__/sprite-instances.unit.test.ts +108 -0
- package/src/components/__tests__/sprite-region-override.test-d.ts +101 -0
- package/src/components/__tests__/tile-layer.test-d.ts +33 -0
- package/src/components/__tests__/tile-layer.unit.test.ts +125 -0
- package/src/components/__tests__/tilemap.test-d.ts +35 -0
- package/src/components/__tests__/transform-vec-schema.test.ts +121 -0
- package/src/create-renderer-env-classify.ts +110 -0
- package/src/createRenderer.ts +49 -0
- package/src/dev-import-transport.ts +97 -0
- package/src/errors/environment.ts +6 -0
- package/src/index.ts +380 -0
- package/src/renderer-host.ts +33 -0
- package/src/scene-instances/__tests__/post-spawn-resolve-joints.unit.test.ts +183 -0
- package/src/scene-instances/index.ts +4 -0
- package/src/scene-utils/mount-override-fold.ts +213 -0
- package/src/sprite-param-values.ts +61 -0
- package/src/systems/__tests__/_xorshift.ts +83 -0
- package/src/systems/__tests__/argsort-in-place.test.ts +155 -0
- package/src/systems/__tests__/transparent-sort.bench.ts +218 -0
- package/src/systems/sprite-animation-tick.ts +302 -0
- package/src/systems/tonemap.ts +68 -0
- package/src/systems/transparent-sort.ts +434 -0
- package/src/tilemap-register-validate.ts +100 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// feat-20260713-animation-state-machine-plugin M2 / w9 — legal graph build +
|
|
2
|
+
// shared handle multi-entity rc (AC-02).
|
|
3
|
+
//
|
|
4
|
+
// AC-02: a legal Clip/Blend/Add/nested graph constructs without error via
|
|
5
|
+
// defineAnimationGraph; the resulting POD is minted into a GUID-addressable
|
|
6
|
+
// shared<AnimationGraph> handle; two entities share the SAME handle and the
|
|
7
|
+
// SharedRefStore refcount retains/releases correctly as entities spawn/despawn
|
|
8
|
+
// (multi-entity sharing). The evaluation system is NOT landed in M2 — this test
|
|
9
|
+
// only exercises the data model + carrier (plan-strategy §7 M2 boundary).
|
|
10
|
+
//
|
|
11
|
+
// TDD red anchor: before w13 (types POD) + w14 (builder), the imports below do
|
|
12
|
+
// not resolve and defineAnimationGraph does not exist — the file fails to
|
|
13
|
+
// compile. After w13/w14 the legal graph constructs and the rc assertions pass.
|
|
14
|
+
|
|
15
|
+
import { defineAnimationGraph } from '@forgeax/engine-animation';
|
|
16
|
+
import { defineComponent, World } from '@forgeax/engine-ecs';
|
|
17
|
+
import type { AnimationClip } from '@forgeax/engine-types';
|
|
18
|
+
import { describe, expect, it } from 'vitest';
|
|
19
|
+
|
|
20
|
+
// A test-only component carrying a single shared<AnimationGraph> handle. M2 does
|
|
21
|
+
// NOT extend AnimationPlayer with a graph field (that is M3 / w24), so this
|
|
22
|
+
// minimal holder is the authentic ECS path for exercising the write-barrier
|
|
23
|
+
// retain/release across multiple entities without touching the M2-frozen
|
|
24
|
+
// AnimationPlayer schema.
|
|
25
|
+
const GraphHolder = defineComponent('AnimationGraphHolderW9', {
|
|
26
|
+
graph: 'shared<AnimationGraph>',
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
function clipGuid(id: number) {
|
|
30
|
+
return `test/animation-clip-${id}`;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
describe('AnimationGraph — legal build + multi-entity rc (M2 / w9)', () => {
|
|
34
|
+
it('constructs a nested Clip/Blend/Add graph without error', () => {
|
|
35
|
+
const walk = clipGuid(1);
|
|
36
|
+
const run = clipGuid(2);
|
|
37
|
+
const survey = clipGuid(3);
|
|
38
|
+
const overlay = clipGuid(4);
|
|
39
|
+
|
|
40
|
+
const result = defineAnimationGraph((b) => {
|
|
41
|
+
const walkNode = b.clip(walk);
|
|
42
|
+
const runNode = b.clip(run);
|
|
43
|
+
const surveyNode = b.clip(survey);
|
|
44
|
+
const loco = b.blend([walkNode, runNode]);
|
|
45
|
+
const base = b.blend([surveyNode, loco]);
|
|
46
|
+
const overlayNode = b.clip(overlay, 0.3);
|
|
47
|
+
return b.add(base, [overlayNode]);
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
expect(result.ok).toBe(true);
|
|
51
|
+
if (!result.ok) return;
|
|
52
|
+
const graph = result.value;
|
|
53
|
+
expect(graph.kind).toBe('animation-graph');
|
|
54
|
+
// 4 clip nodes + 2 blend nodes + 1 add node = 7 nodes; root is the add.
|
|
55
|
+
expect(graph.nodes.length).toBe(7);
|
|
56
|
+
expect(graph.nodes[graph.root]?.type).toBe('add');
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it('mints a GUID-addressable shared handle with rc=1 (alloc grant)', () => {
|
|
60
|
+
const world = new World();
|
|
61
|
+
const result = defineAnimationGraph((b) => b.clip(clipGuid(1)));
|
|
62
|
+
expect(result.ok).toBe(true);
|
|
63
|
+
if (!result.ok) return;
|
|
64
|
+
|
|
65
|
+
const handle = world.allocSharedRef('AnimationGraph', result.value);
|
|
66
|
+
expect(handle).toBeGreaterThan(0);
|
|
67
|
+
expect(world.sharedRefs.refcount(handle)).toBe(1);
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it('shares one handle across two entities; rc tracks retain/release', () => {
|
|
71
|
+
const world = new World();
|
|
72
|
+
const clipMap = new Map<number, AnimationClip>();
|
|
73
|
+
clipMap.set(1, { kind: 'animation-clip', duration: 10, channels: [] });
|
|
74
|
+
|
|
75
|
+
const result = defineAnimationGraph((b) => {
|
|
76
|
+
const a = b.clip(clipGuid(1));
|
|
77
|
+
const c = b.clip(clipGuid(1));
|
|
78
|
+
return b.blend([a, c]);
|
|
79
|
+
});
|
|
80
|
+
expect(result.ok).toBe(true);
|
|
81
|
+
if (!result.ok) return;
|
|
82
|
+
|
|
83
|
+
const handle = world.allocSharedRef('AnimationGraph', result.value);
|
|
84
|
+
// alloc grant = 1.
|
|
85
|
+
expect(world.sharedRefs.refcount(handle)).toBe(1);
|
|
86
|
+
|
|
87
|
+
// Two entities hold the SAME handle — each spawn retains via the write
|
|
88
|
+
// barrier, so rc climbs to 3 (1 grant + 2 holders).
|
|
89
|
+
const e0 = world.spawn({ component: GraphHolder, data: { graph: handle } }).unwrap();
|
|
90
|
+
const e1 = world.spawn({ component: GraphHolder, data: { graph: handle } }).unwrap();
|
|
91
|
+
expect(world.sharedRefs.refcount(handle)).toBe(3);
|
|
92
|
+
|
|
93
|
+
// Despawning one holder releases exactly one ref (independent per entity).
|
|
94
|
+
world.despawn(e0).unwrap();
|
|
95
|
+
expect(world.sharedRefs.refcount(handle)).toBe(2);
|
|
96
|
+
|
|
97
|
+
world.despawn(e1).unwrap();
|
|
98
|
+
expect(world.sharedRefs.refcount(handle)).toBe(1);
|
|
99
|
+
});
|
|
100
|
+
});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// feat-20260713-animation-state-machine-plugin M3 / w22 — clip-missing
|
|
2
|
+
// structured error (AC-11).
|
|
3
|
+
//
|
|
4
|
+
// AC-11 (clip-missing branch): when a graph node references a shared<AnimationClip>
|
|
5
|
+
// whose handle does not resolve (never registered, or rc released), evaluation
|
|
6
|
+
// fails with a structured `animation-graph-clip-missing` error carrying a
|
|
7
|
+
// machine-readable `.code` / `.hint` — and it must NOT leave a dirty pose (the
|
|
8
|
+
// derived slot columns stay untouched). AI users self-repair by property access,
|
|
9
|
+
// not string parsing (charter P3).
|
|
10
|
+
//
|
|
11
|
+
// TDD red anchor: before w24 + w25 the file fails to compile; after them a
|
|
12
|
+
// dangling clip handle throws the structured error before any slot is written.
|
|
13
|
+
|
|
14
|
+
import {
|
|
15
|
+
AnimationPlayer,
|
|
16
|
+
defineAnimationGraph,
|
|
17
|
+
evaluateAnimationGraph,
|
|
18
|
+
} from '@forgeax/engine-animation';
|
|
19
|
+
import type { EntityHandle } from '@forgeax/engine-ecs';
|
|
20
|
+
import { World } from '@forgeax/engine-ecs';
|
|
21
|
+
import { describe, expect, it } from 'vitest';
|
|
22
|
+
|
|
23
|
+
interface StructuredError {
|
|
24
|
+
code?: unknown;
|
|
25
|
+
hint?: unknown;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
describe('evaluateAnimationGraph — clip-missing structured error (M3 / w22)', () => {
|
|
29
|
+
it('throws animation-asset-not-found and writes no dirty pose', () => {
|
|
30
|
+
const world = new World();
|
|
31
|
+
|
|
32
|
+
// A durable clip GUID that was never loaded. Construction only validates
|
|
33
|
+
// topology, so a single-clip graph with a dangling GUID is a
|
|
34
|
+
// well-formed DAG that fails at evaluation, not at build.
|
|
35
|
+
const danglingClip = 'test/dangling-animation-clip';
|
|
36
|
+
const built = defineAnimationGraph((b) => b.clip(danglingClip));
|
|
37
|
+
expect(built.ok).toBe(true);
|
|
38
|
+
if (!built.ok) return;
|
|
39
|
+
const graphH = world.allocSharedRef('AnimationGraph', built.value);
|
|
40
|
+
|
|
41
|
+
const e = world
|
|
42
|
+
.spawn({ component: AnimationPlayer, data: { graph: graphH } })
|
|
43
|
+
.unwrap() as EntityHandle;
|
|
44
|
+
|
|
45
|
+
let caught: StructuredError | undefined;
|
|
46
|
+
try {
|
|
47
|
+
evaluateAnimationGraph(world, 0);
|
|
48
|
+
} catch (err) {
|
|
49
|
+
caught = err as StructuredError;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
expect(caught).toBeDefined();
|
|
53
|
+
expect(caught?.code).toBe('animation-asset-not-found');
|
|
54
|
+
expect(typeof caught?.hint).toBe('string');
|
|
55
|
+
expect((caught?.hint as string).length).toBeGreaterThan(0);
|
|
56
|
+
|
|
57
|
+
// No dirty pose: eval resolves every clip BEFORE writing, so the derived
|
|
58
|
+
// slot columns were never touched (still empty from the spawn default).
|
|
59
|
+
const ap = world.get(e, AnimationPlayer).unwrap() as unknown as { weights: Float32Array };
|
|
60
|
+
expect(ap.weights.length).toBe(0);
|
|
61
|
+
});
|
|
62
|
+
});
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// feat-20260713-animation-state-machine-plugin M3 / w16 — Clip node sampling
|
|
2
|
+
// (AC-03).
|
|
3
|
+
//
|
|
4
|
+
// AC-03: a single-Clip graph samples its shared<AnimationClip> at the node's
|
|
5
|
+
// seek-time and evaluation outputs ONE slot carrying that clip at full effective
|
|
6
|
+
// weight (runtime weight x static weight = 1 x 1 = 1). evaluateAnimationGraph
|
|
7
|
+
// fills the AnimationPlayer's derived N-slot columns; the slot fill (clip handle
|
|
8
|
+
// + effective weight + resolved time) is the machine-checkable evidence of the
|
|
9
|
+
// Clip node semantics (downstream advanceAnimationPlayer does the actual pose
|
|
10
|
+
// blend, covered by animation-nslot.unit.test.ts).
|
|
11
|
+
//
|
|
12
|
+
// TDD red anchor: before w24 (AnimationPlayer.graph field) + w25
|
|
13
|
+
// (evaluateAnimationGraph), the imports below do not resolve and the file fails
|
|
14
|
+
// to compile. After w24/w25 the single-clip graph fills one slot at weight 1.
|
|
15
|
+
|
|
16
|
+
import {
|
|
17
|
+
AnimationPlayer,
|
|
18
|
+
defineAnimationGraph,
|
|
19
|
+
evaluateAnimationGraph,
|
|
20
|
+
} from '@forgeax/engine-animation';
|
|
21
|
+
import type { EntityHandle } from '@forgeax/engine-ecs';
|
|
22
|
+
import { World } from '@forgeax/engine-ecs';
|
|
23
|
+
import type { AnimationClip } from '@forgeax/engine-types';
|
|
24
|
+
import { describe, expect, it } from 'vitest';
|
|
25
|
+
|
|
26
|
+
function registerClip(world: World, duration: number) {
|
|
27
|
+
const clip: AnimationClip = { kind: 'animation-clip', duration, channels: [] };
|
|
28
|
+
return world.allocSharedRef('AnimationClip', clip);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const lookupClip = (_guid: string): AnimationClip => ({
|
|
32
|
+
kind: 'animation-clip',
|
|
33
|
+
duration: 10,
|
|
34
|
+
channels: [],
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
interface Slots {
|
|
38
|
+
clips: Uint32Array;
|
|
39
|
+
times: Float32Array;
|
|
40
|
+
weights: Float32Array;
|
|
41
|
+
speeds: Float32Array;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function readSlots(world: World, e: EntityHandle): Slots {
|
|
45
|
+
return world.get(e, AnimationPlayer).unwrap() as unknown as Slots;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
describe('evaluateAnimationGraph — Clip node sampling (M3 / w16)', () => {
|
|
49
|
+
it('fills one slot at full effective weight for a single-Clip graph', () => {
|
|
50
|
+
const world = new World();
|
|
51
|
+
registerClip(world, 10);
|
|
52
|
+
|
|
53
|
+
const built = defineAnimationGraph((b) => b.clip('test/animation-clip-single'));
|
|
54
|
+
expect(built.ok).toBe(true);
|
|
55
|
+
if (!built.ok) return;
|
|
56
|
+
const graphH = world.allocSharedRef('AnimationGraph', built.value);
|
|
57
|
+
|
|
58
|
+
const e = world
|
|
59
|
+
.spawn({ component: AnimationPlayer, data: { graph: graphH } })
|
|
60
|
+
.unwrap() as EntityHandle;
|
|
61
|
+
|
|
62
|
+
evaluateAnimationGraph(world, 0, lookupClip);
|
|
63
|
+
|
|
64
|
+
const ap = readSlots(world, e);
|
|
65
|
+
// Exactly one clip node -> one derived slot.
|
|
66
|
+
expect(ap.clips.length).toBe(1);
|
|
67
|
+
expect(ap.weights.length).toBe(1);
|
|
68
|
+
expect(ap.times.length).toBe(1);
|
|
69
|
+
expect(ap.speeds.length).toBe(1);
|
|
70
|
+
// The slot carries the clip handle at full effective weight (1 x 1 = 1).
|
|
71
|
+
expect(ap.clips[0]).toBeGreaterThan(0);
|
|
72
|
+
expect(ap.weights[0]).toBeCloseTo(1, 5);
|
|
73
|
+
// Derived path writes speeds[]=0 so advance does not re-advance the time
|
|
74
|
+
// (D-7: eval owns the seek-time, advance must not double-drive it).
|
|
75
|
+
expect(ap.speeds[0]).toBe(0);
|
|
76
|
+
});
|
|
77
|
+
});
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
// feat-20260713-animation-state-machine-plugin M4 / w28 -- graph-holding entity
|
|
2
|
+
// scene collect round-trip (AC-14 part b).
|
|
3
|
+
//
|
|
4
|
+
// AC-14 (part b) metric: an entity carrying a `shared<AnimationGraph>` handle is
|
|
5
|
+
// collected through scene collect; the graph handle resolves to a persistable
|
|
6
|
+
// GUID reference (schema-driven, plan D-4: `classifyFieldSchema` sees the
|
|
7
|
+
// `shared<AnimationGraph>` scalar and routes it through `_guidForAsset` with ZERO
|
|
8
|
+
// special-case in collect-scene-asset.ts, w31 verifies this); a `graph == 0`
|
|
9
|
+
// (no-graph) entity is skipped by the existing 0-sentinel path (lossless); and a
|
|
10
|
+
// graph reloaded from its serialized pack payload evaluates to the SAME derived
|
|
11
|
+
// N-slot weights as the original (round-trip lossless).
|
|
12
|
+
//
|
|
13
|
+
// TDD red anchor: serializeAnimationGraph (w29) + animationGraphLoader (w30) do
|
|
14
|
+
// not resolve until those tasks land; the eval-consistency case then goes green.
|
|
15
|
+
// The collect->GUID cases exercise the already-present schema-driven path (w31 is
|
|
16
|
+
// a verify-only landing that this test is the witness for).
|
|
17
|
+
|
|
18
|
+
import {
|
|
19
|
+
AnimationPlayer,
|
|
20
|
+
defineAnimationGraph,
|
|
21
|
+
evaluateAnimationGraph,
|
|
22
|
+
serializeAnimationGraph,
|
|
23
|
+
} from '@forgeax/engine-animation';
|
|
24
|
+
import { AssetRegistry, animationGraphLoader } from '@forgeax/engine-assets-runtime';
|
|
25
|
+
import { World } from '@forgeax/engine-ecs';
|
|
26
|
+
import { AssetGuid } from '@forgeax/engine-pack/guid';
|
|
27
|
+
import type { AnimationClip, AnimationGraph, Handle, LoadContext } from '@forgeax/engine-types';
|
|
28
|
+
import { describe, expect, it } from 'vitest';
|
|
29
|
+
import { rootsToSceneAsset } from '../collect-scene-asset';
|
|
30
|
+
import { makeMockShaderRegistry } from './helpers/mock-shader-registry';
|
|
31
|
+
|
|
32
|
+
function makeRegistry(): AssetRegistry {
|
|
33
|
+
return new AssetRegistry(makeMockShaderRegistry());
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function makeWorld(): World {
|
|
37
|
+
const world = new World();
|
|
38
|
+
world.components.register(AnimationPlayer).unwrap();
|
|
39
|
+
return world;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const stubCtx = {} as LoadContext;
|
|
43
|
+
|
|
44
|
+
// Register a clip in the registry catalog + world shared-ref store under the same
|
|
45
|
+
// payload identity, returning both its handle and its GUID string.
|
|
46
|
+
function registerClip(
|
|
47
|
+
world: World,
|
|
48
|
+
reg: AssetRegistry,
|
|
49
|
+
guidStr: string,
|
|
50
|
+
duration: number,
|
|
51
|
+
): { handle: Handle<'AnimationClip', 'shared'>; guid: string; asset: AnimationClip } {
|
|
52
|
+
const parsed = AssetGuid.parse(guidStr);
|
|
53
|
+
if (!parsed.ok) throw new Error(`bad test GUID ${guidStr}`);
|
|
54
|
+
const clip: AnimationClip = { kind: 'animation-clip', duration, channels: [] };
|
|
55
|
+
reg.catalog(parsed.value, clip);
|
|
56
|
+
const handle = world.allocSharedRef('AnimationClip', clip) as Handle<'AnimationClip', 'shared'>;
|
|
57
|
+
return { handle, guid: AssetGuid.format(parsed.value), asset: clip };
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Register a graph POD in both stores; returns its handle + GUID string.
|
|
61
|
+
function registerGraph(
|
|
62
|
+
world: World,
|
|
63
|
+
reg: AssetRegistry,
|
|
64
|
+
guidStr: string,
|
|
65
|
+
graph: AnimationGraph,
|
|
66
|
+
): { handle: Handle<'AnimationGraph', 'shared'>; guid: string } {
|
|
67
|
+
const parsed = AssetGuid.parse(guidStr);
|
|
68
|
+
if (!parsed.ok) throw new Error(`bad test GUID ${guidStr}`);
|
|
69
|
+
reg.catalog(parsed.value, graph);
|
|
70
|
+
const handle = world.allocSharedRef('AnimationGraph', graph) as Handle<
|
|
71
|
+
'AnimationGraph',
|
|
72
|
+
'shared'
|
|
73
|
+
>;
|
|
74
|
+
return { handle, guid: AssetGuid.format(parsed.value) };
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function apOf(scene: { entities: readonly unknown[] }): Record<string, unknown> | undefined {
|
|
78
|
+
for (const e of scene.entities) {
|
|
79
|
+
const comps = (e as { components: Record<string, Record<string, unknown>> }).components;
|
|
80
|
+
if (comps.AnimationPlayer !== undefined) return comps.AnimationPlayer;
|
|
81
|
+
}
|
|
82
|
+
return undefined;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const G_WALK = 'b1000000-0000-4000-8000-000000000001';
|
|
86
|
+
const G_RUN = 'b1000000-0000-4000-8000-000000000002';
|
|
87
|
+
const G_SURVEY = 'b1000000-0000-4000-8000-000000000003';
|
|
88
|
+
const G_GRAPH = 'b1000000-0000-4000-8000-0000000000aa';
|
|
89
|
+
const G_GRAPH2 = 'b1000000-0000-4000-8000-0000000000bb';
|
|
90
|
+
|
|
91
|
+
// Build the standard test graph: Add(base=Blend(walk, run), additive=[survey@0.3]).
|
|
92
|
+
function buildStandardGraph(walk: string, run: string, survey: string): AnimationGraph {
|
|
93
|
+
const built = defineAnimationGraph((b) => {
|
|
94
|
+
const w = b.clip(walk);
|
|
95
|
+
const r = b.clip(run);
|
|
96
|
+
const loco = b.blend([w, r]);
|
|
97
|
+
const overlay = b.clip(survey, 0.3);
|
|
98
|
+
return b.add(loco, [overlay]);
|
|
99
|
+
});
|
|
100
|
+
if (!built.ok) throw new Error('graph build failed');
|
|
101
|
+
return built.value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
describe('AnimationGraph collect round-trip (M4 / w28, AC-14 part b)', () => {
|
|
105
|
+
it('collects a graph-holding entity with graph resolved to its GUID (schema-driven, zero special-case)', () => {
|
|
106
|
+
const world = makeWorld();
|
|
107
|
+
const reg = makeRegistry();
|
|
108
|
+
const walk = registerClip(world, reg, G_WALK, 10);
|
|
109
|
+
const run = registerClip(world, reg, G_RUN, 20);
|
|
110
|
+
const survey = registerClip(world, reg, G_SURVEY, 30);
|
|
111
|
+
const graph = buildStandardGraph(walk.guid, run.guid, survey.guid);
|
|
112
|
+
const g = registerGraph(world, reg, G_GRAPH, graph);
|
|
113
|
+
|
|
114
|
+
const e = world
|
|
115
|
+
.spawn({
|
|
116
|
+
component: AnimationPlayer,
|
|
117
|
+
data: { graph: g.handle, nodeWeights: [1, 1, 1, 1, 1] },
|
|
118
|
+
})
|
|
119
|
+
.unwrap();
|
|
120
|
+
|
|
121
|
+
const collected = rootsToSceneAsset(reg, world, [e]);
|
|
122
|
+
expect(collected.ok).toBe(true);
|
|
123
|
+
if (!collected.ok) return;
|
|
124
|
+
|
|
125
|
+
const ap = apOf(collected.value);
|
|
126
|
+
expect(ap).not.toBeUndefined();
|
|
127
|
+
if (ap === undefined) return;
|
|
128
|
+
// The graph scalar shared field resolves to the catalogued GUID string.
|
|
129
|
+
expect(ap.graph).toBe(g.guid);
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
it('skips a graph == 0 (no-graph) entity 0-sentinel: lossless, no graph key emitted', () => {
|
|
133
|
+
const world = makeWorld();
|
|
134
|
+
const reg = makeRegistry();
|
|
135
|
+
|
|
136
|
+
const e = world
|
|
137
|
+
.spawn({
|
|
138
|
+
component: AnimationPlayer,
|
|
139
|
+
data: { clips: [], times: [], weights: [], speeds: [] },
|
|
140
|
+
})
|
|
141
|
+
.unwrap();
|
|
142
|
+
|
|
143
|
+
const collected = rootsToSceneAsset(reg, world, [e]);
|
|
144
|
+
expect(collected.ok).toBe(true);
|
|
145
|
+
if (!collected.ok) return;
|
|
146
|
+
|
|
147
|
+
const ap = apOf(collected.value);
|
|
148
|
+
expect(ap).not.toBeUndefined();
|
|
149
|
+
if (ap === undefined) return;
|
|
150
|
+
// graph == 0 (unset) is dropped by the shared-scalar 0-sentinel skip.
|
|
151
|
+
expect('graph' in ap).toBe(false);
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
it('a graph reloaded from its serialized pack payload evaluates to identical weights', () => {
|
|
155
|
+
const world = makeWorld();
|
|
156
|
+
const reg = makeRegistry();
|
|
157
|
+
const walk = registerClip(world, reg, G_WALK, 10);
|
|
158
|
+
const run = registerClip(world, reg, G_RUN, 20);
|
|
159
|
+
const survey = registerClip(world, reg, G_SURVEY, 30);
|
|
160
|
+
const original = buildStandardGraph(walk.guid, run.guid, survey.guid);
|
|
161
|
+
const lookup = (guid: string): AnimationClip | undefined =>
|
|
162
|
+
new Map([
|
|
163
|
+
[walk.guid, walk.asset],
|
|
164
|
+
[run.guid, run.asset],
|
|
165
|
+
[survey.guid, survey.asset],
|
|
166
|
+
]).get(guid);
|
|
167
|
+
|
|
168
|
+
// Original graph -> register -> spawn -> eval one frame -> read weights.
|
|
169
|
+
const g0 = registerGraph(world, reg, G_GRAPH, original);
|
|
170
|
+
const e0 = world.spawn({ component: AnimationPlayer, data: { graph: g0.handle } }).unwrap();
|
|
171
|
+
evaluateAnimationGraph(world, 1 / 60, lookup);
|
|
172
|
+
const w0res = world.get(e0, AnimationPlayer);
|
|
173
|
+
expect(w0res.ok).toBe(true);
|
|
174
|
+
if (!w0res.ok) return;
|
|
175
|
+
const weights0 = Array.from((w0res.value as unknown as { weights: Float32Array }).weights);
|
|
176
|
+
|
|
177
|
+
// Serialize -> deserialize -> re-resolve clip GUIDs to their handles -> rebuild.
|
|
178
|
+
const clipGuidResolver = (clip: string): string | undefined => clip;
|
|
179
|
+
const out = serializeAnimationGraph(original, clipGuidResolver);
|
|
180
|
+
expect(out).not.toBeUndefined();
|
|
181
|
+
if (out === undefined) return;
|
|
182
|
+
const parsed = animationGraphLoader.load(out.payload, out.refs, stubCtx);
|
|
183
|
+
if (parsed === undefined || typeof parsed !== 'object' || 'ok' in parsed) {
|
|
184
|
+
throw new Error('animationGraphLoader returned a non-asset result');
|
|
185
|
+
}
|
|
186
|
+
const reloaded = parsed as AnimationGraph;
|
|
187
|
+
|
|
188
|
+
const rebuilt: AnimationGraph = reloaded;
|
|
189
|
+
|
|
190
|
+
const g1 = registerGraph(world, reg, G_GRAPH2, rebuilt);
|
|
191
|
+
const e1 = world.spawn({ component: AnimationPlayer, data: { graph: g1.handle } }).unwrap();
|
|
192
|
+
evaluateAnimationGraph(world, 1 / 60, lookup);
|
|
193
|
+
const w1res = world.get(e1, AnimationPlayer);
|
|
194
|
+
expect(w1res.ok).toBe(true);
|
|
195
|
+
if (!w1res.ok) return;
|
|
196
|
+
const weights1 = Array.from((w1res.value as unknown as { weights: Float32Array }).weights);
|
|
197
|
+
|
|
198
|
+
// Round-trip lossless: reloaded graph evaluates to the same derived weights.
|
|
199
|
+
expect(weights1).toHaveLength(weights0.length);
|
|
200
|
+
for (let i = 0; i < weights0.length; i++) {
|
|
201
|
+
expect(weights1[i]).toBeCloseTo(weights0[i] as number, 6);
|
|
202
|
+
}
|
|
203
|
+
// Sanity: the standard graph yields Blend(walk,run)=[0.5,0.5] + Add survey@0.3.
|
|
204
|
+
// weights[] is a Float32Array column, so 0.3 reads back as its f32 nearest
|
|
205
|
+
// (0.30000001192...) -- compare per-slot with f32-scale tolerance, not
|
|
206
|
+
// strict f64 equality.
|
|
207
|
+
const expectedWeights0 = [0.5, 0.5, 0.3];
|
|
208
|
+
expect(weights0).toHaveLength(expectedWeights0.length);
|
|
209
|
+
for (let i = 0; i < expectedWeights0.length; i++) {
|
|
210
|
+
expect(weights0[i]).toBeCloseTo(expectedWeights0[i] as number, 6);
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// feat-20260713-animation-state-machine-plugin M3 / w23 — default-path eval
|
|
2
|
+
// integration (AC-09).
|
|
3
|
+
//
|
|
4
|
+
// AC-09: DAG evaluation is wired into the DEFAULT animationPlugin (not an opt-in
|
|
5
|
+
// plugin). A host that lists the default animation capability gets automatic
|
|
6
|
+
// per-frame evaluation for free: spawn an entity carrying an AnimationGraph
|
|
7
|
+
// handle, drive a single world.update(), and read back the derived weights[] —
|
|
8
|
+
// no manual evaluateAnimationGraph() call anywhere. This mirrors the assemble
|
|
9
|
+
// form of createApp (a host-owned World running the default plugin set), the
|
|
10
|
+
// harshest headless surface of the "default plugin set" contract, matching the
|
|
11
|
+
// animationPlugin self-owns-resolver regression's approach.
|
|
12
|
+
//
|
|
13
|
+
// TDD red anchor: before w24 + w25 + w26 (plugin registers eval) the graph
|
|
14
|
+
// carrier never gets evaluated, so weights[] stays empty; after them the default
|
|
15
|
+
// plugin fills it automatically.
|
|
16
|
+
|
|
17
|
+
import { AnimationPlayer, animationPlugin, defineAnimationGraph } from '@forgeax/engine-animation';
|
|
18
|
+
import { createWorldContext, type EntityHandle, World } from '@forgeax/engine-ecs';
|
|
19
|
+
import type { AnimationClip } from '@forgeax/engine-types';
|
|
20
|
+
import { describe, expect, it } from 'vitest';
|
|
21
|
+
|
|
22
|
+
function registerClip(world: World, duration: number) {
|
|
23
|
+
const clip: AnimationClip = { kind: 'animation-clip', duration, channels: [] };
|
|
24
|
+
return world.allocSharedRef('AnimationClip', clip);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
describe('DAG eval — default animationPlugin path (M3 / w23, AC-09)', () => {
|
|
28
|
+
it('auto-evaluates a graph carrier on world.update() with no opt-in', async () => {
|
|
29
|
+
const world = new World();
|
|
30
|
+
|
|
31
|
+
// Build the DEFAULT animation capability onto a bare host World (assemble
|
|
32
|
+
// form) — this is exactly what createApp's default plugin set does for the
|
|
33
|
+
// animation subsystem.
|
|
34
|
+
// Declare a normalizing Blend(Walk@1, Run@1) graph and register it + its
|
|
35
|
+
// clips as ordinary payloads retained by the host-owned lookup.
|
|
36
|
+
const clips = new Map<string, AnimationClip>([
|
|
37
|
+
['test/animation-clip-walk', { kind: 'animation-clip', duration: 10, channels: [] }],
|
|
38
|
+
['test/animation-clip-run', { kind: 'animation-clip', duration: 10, channels: [] }],
|
|
39
|
+
]);
|
|
40
|
+
registerClip(world, 10);
|
|
41
|
+
registerClip(world, 10);
|
|
42
|
+
await createWorldContext(world, [animationPlugin((guid) => clips.get(guid))]);
|
|
43
|
+
const built = defineAnimationGraph((b) =>
|
|
44
|
+
b.blend([b.clip('test/animation-clip-walk'), b.clip('test/animation-clip-run')]),
|
|
45
|
+
);
|
|
46
|
+
expect(built.ok).toBe(true);
|
|
47
|
+
if (!built.ok) return;
|
|
48
|
+
const graphH = world.allocSharedRef('AnimationGraph', built.value);
|
|
49
|
+
|
|
50
|
+
const e = world
|
|
51
|
+
.spawn({ component: AnimationPlayer, data: { graph: graphH } })
|
|
52
|
+
.unwrap() as EntityHandle;
|
|
53
|
+
|
|
54
|
+
// Drive ONE frame through the default schedule. No manual eval call.
|
|
55
|
+
world.update();
|
|
56
|
+
expect(world.execution.health).toBe('healthy');
|
|
57
|
+
|
|
58
|
+
// The default plugin's evaluateAnimationGraph ran before advance and filled
|
|
59
|
+
// the derived weights[] with the normalized [0.5, 0.5] distribution.
|
|
60
|
+
const ap = world.get(e, AnimationPlayer).unwrap() as unknown as { weights: Float32Array };
|
|
61
|
+
expect(ap.weights.length).toBe(2);
|
|
62
|
+
expect(ap.weights[0]).toBeCloseTo(0.5, 5);
|
|
63
|
+
expect(ap.weights[1]).toBeCloseTo(0.5, 5);
|
|
64
|
+
});
|
|
65
|
+
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// feat-20260713-animation-state-machine-plugin M2 / w11 — describeAnimationGraph
|
|
2
|
+
// machine-readable introspection (AC-12).
|
|
3
|
+
//
|
|
4
|
+
// AC-12 + plan §8.4: describeAnimationGraph(g) enumerates the graph's nodes,
|
|
5
|
+
// topology (per-node children), root, and per-node static weights so an AI user
|
|
6
|
+
// discovers the graph structure WITHOUT reading implementation source (mirrors
|
|
7
|
+
// the getRegisteredComponents reflection idiom, research Finding H). The
|
|
8
|
+
// returned set must match the declared graph item-for-item.
|
|
9
|
+
//
|
|
10
|
+
// TDD red anchor: describeAnimationGraph does not exist before w15; the file
|
|
11
|
+
// fails to compile. After w15 the introspection matches the declaration.
|
|
12
|
+
|
|
13
|
+
import { defineAnimationGraph, describeAnimationGraph } from '@forgeax/engine-animation';
|
|
14
|
+
import { describe, expect, it } from 'vitest';
|
|
15
|
+
|
|
16
|
+
function clipGuid(id: number) {
|
|
17
|
+
return `test/animation-clip-${id}`;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
describe('describeAnimationGraph — introspection (M2 / w11)', () => {
|
|
21
|
+
it('enumerates nodes, root, and static weights matching the declaration', () => {
|
|
22
|
+
const result = defineAnimationGraph((b) => {
|
|
23
|
+
const walk = b.clip(clipGuid(1), 1);
|
|
24
|
+
const run = b.clip(clipGuid(2), 1);
|
|
25
|
+
const loco = b.blend([walk, run], 0.4);
|
|
26
|
+
const overlay = b.clip(clipGuid(3), 0.3);
|
|
27
|
+
return b.add(loco, [overlay], 1);
|
|
28
|
+
});
|
|
29
|
+
expect(result.ok).toBe(true);
|
|
30
|
+
if (!result.ok) return;
|
|
31
|
+
|
|
32
|
+
const desc = describeAnimationGraph(result.value);
|
|
33
|
+
|
|
34
|
+
// 3 clips + 1 blend + 1 add = 5 nodes; root is the add (index 4).
|
|
35
|
+
// Enumeration is CONSTRUCTION order (verbatim builder order), which is the
|
|
36
|
+
// same index space as the runtime AnimationPlayer.nodeWeights knobs — so an
|
|
37
|
+
// AI driving by desc.index writes the correct slot (V-1 fix: no reordering).
|
|
38
|
+
// Construction order: walk(0) run(1) loco/blend(2) overlay(3) add/root(4).
|
|
39
|
+
expect(desc.nodes.length).toBe(5);
|
|
40
|
+
expect(desc.root).toBe(4);
|
|
41
|
+
|
|
42
|
+
// Per-node type enumeration, construction order.
|
|
43
|
+
expect(desc.nodes.map((n) => n.type)).toEqual(['clip', 'clip', 'blend', 'clip', 'add']);
|
|
44
|
+
|
|
45
|
+
// Static weights read back item-for-item as declared, construction order.
|
|
46
|
+
expect(desc.staticWeights).toEqual([1, 1, 0.4, 0.3, 1]);
|
|
47
|
+
expect(desc.nodes.map((n) => n.weight)).toEqual([1, 1, 0.4, 0.3, 1]);
|
|
48
|
+
|
|
49
|
+
// desc.index equals the construction position for every node (== nodeWeights slot).
|
|
50
|
+
expect(desc.nodes.map((n) => n.index)).toEqual([0, 1, 2, 3, 4]);
|
|
51
|
+
|
|
52
|
+
// Topology: clips have no children; blend(2) lists its leaves [walk, run];
|
|
53
|
+
// add(4) lists [base=loco, ...additive=overlay].
|
|
54
|
+
expect(desc.nodes[0]?.children).toEqual([]);
|
|
55
|
+
expect(desc.nodes[2]?.children).toEqual([0, 1]);
|
|
56
|
+
expect(desc.nodes[4]?.children).toEqual([2, 3]);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it('exposes node index on each description entry', () => {
|
|
60
|
+
const result = defineAnimationGraph((b) => b.clip(clipGuid(1)));
|
|
61
|
+
expect(result.ok).toBe(true);
|
|
62
|
+
if (!result.ok) return;
|
|
63
|
+
|
|
64
|
+
const desc = describeAnimationGraph(result.value);
|
|
65
|
+
expect(desc.nodes[0]?.index).toBe(0);
|
|
66
|
+
expect(desc.root).toBe(0);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// feat-20260713-animation-state-machine-plugin M2 / w10 — illegal graph
|
|
2
|
+
// construction structured errors (AC-11 graph-structure branches).
|
|
3
|
+
//
|
|
4
|
+
// AC-11 + plan D-5: defineAnimationGraph validates topology at CONSTRUCTION time
|
|
5
|
+
// (before a GUID handle is minted) and returns Result.err with a structured
|
|
6
|
+
// `.code` / `.hint` for each illegal shape:
|
|
7
|
+
// - node reference out of range -> 'animation-graph-node-out-of-range'
|
|
8
|
+
// - cycle -> 'animation-graph-cycle'
|
|
9
|
+
// - node weight negative / NaN -> 'animation-graph-node-weight-invalid'
|
|
10
|
+
// - empty graph -> 'animation-graph-empty'
|
|
11
|
+
// AI users self-repair by property access — no string parsing (charter P3).
|
|
12
|
+
//
|
|
13
|
+
// TDD red anchor: defineAnimationGraph does not exist before w14; the file fails
|
|
14
|
+
// to compile. After w14 each illegal graph returns the matching structured code.
|
|
15
|
+
|
|
16
|
+
import { type AnimationGraphNodeRef, defineAnimationGraph } from '@forgeax/engine-animation';
|
|
17
|
+
import { describe, expect, it } from 'vitest';
|
|
18
|
+
|
|
19
|
+
function clipGuid(id: number) {
|
|
20
|
+
return `test/animation-clip-${id}`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Cast a raw index to a node ref — the illegal-graph tests deliberately forge
|
|
24
|
+
// out-of-range / self-referential refs the well-behaved builder never emits.
|
|
25
|
+
function forgeRef(index: number): AnimationGraphNodeRef {
|
|
26
|
+
return index as unknown as AnimationGraphNodeRef;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
describe('AnimationGraph — illegal construction errors (M2 / w10)', () => {
|
|
30
|
+
it('empty graph -> animation-graph-empty', () => {
|
|
31
|
+
// The builder creates zero nodes; the returned root ref points nowhere.
|
|
32
|
+
const result = defineAnimationGraph(() => forgeRef(0));
|
|
33
|
+
expect(result.ok).toBe(false);
|
|
34
|
+
if (result.ok) return;
|
|
35
|
+
expect(result.error.code).toBe('animation-graph-empty');
|
|
36
|
+
expect(typeof result.error.hint).toBe('string');
|
|
37
|
+
expect(result.error.hint.length).toBeGreaterThan(0);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
it('out-of-range child reference -> animation-graph-node-out-of-range', () => {
|
|
41
|
+
const result = defineAnimationGraph((b) => {
|
|
42
|
+
b.clip(clipGuid(1)); // node 0
|
|
43
|
+
// A blend that references index 99 (nonexistent).
|
|
44
|
+
return b.blend([forgeRef(99)]);
|
|
45
|
+
});
|
|
46
|
+
expect(result.ok).toBe(false);
|
|
47
|
+
if (result.ok) return;
|
|
48
|
+
expect(result.error.code).toBe('animation-graph-node-out-of-range');
|
|
49
|
+
expect(result.error.hint.length).toBeGreaterThan(0);
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
it('cycle -> animation-graph-cycle', () => {
|
|
53
|
+
// node 0 is a blend that references itself (index 0).
|
|
54
|
+
const result = defineAnimationGraph((b) => b.blend([forgeRef(0)]));
|
|
55
|
+
expect(result.ok).toBe(false);
|
|
56
|
+
if (result.ok) return;
|
|
57
|
+
expect(result.error.code).toBe('animation-graph-cycle');
|
|
58
|
+
expect(result.error.hint.length).toBeGreaterThan(0);
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
it('negative node weight -> animation-graph-node-weight-invalid', () => {
|
|
62
|
+
const result = defineAnimationGraph((b) => b.clip(clipGuid(1), -0.5));
|
|
63
|
+
expect(result.ok).toBe(false);
|
|
64
|
+
if (result.ok) return;
|
|
65
|
+
expect(result.error.code).toBe('animation-graph-node-weight-invalid');
|
|
66
|
+
expect(result.error.hint.length).toBeGreaterThan(0);
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it('NaN node weight -> animation-graph-node-weight-invalid', () => {
|
|
70
|
+
const result = defineAnimationGraph((b) => b.clip(clipGuid(1), Number.NaN));
|
|
71
|
+
expect(result.ok).toBe(false);
|
|
72
|
+
if (result.ok) return;
|
|
73
|
+
expect(result.error.code).toBe('animation-graph-node-weight-invalid');
|
|
74
|
+
});
|
|
75
|
+
});
|