@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,117 @@
|
|
|
1
|
+
// M8 w58 (round 5 D-18): atomic read+write flip integration TDD.
|
|
2
|
+
//
|
|
3
|
+
// D-18 atomic cut: the M8 milestone flips read-side (material-walk source,
|
|
4
|
+
// loadByGuid public return) and write-side (user-tier mint) together in one
|
|
5
|
+
// breaking PR. This file asserts the three end-to-end contracts that go GREEN
|
|
6
|
+
// only after w59 (runtime atomic flip) + w60 (AssetRegistry public delete) +
|
|
7
|
+
// w61-w65 (the ~120-file sweep) co-land:
|
|
8
|
+
//
|
|
9
|
+
// (1) material-walk over world.sharedRefs payloads -- a material payload
|
|
10
|
+
// whose `parent` is a user-tier handle walks the parent chain by
|
|
11
|
+
// resolving each ancestor via world.sharedRefs.resolve (no by-handle
|
|
12
|
+
// AssetRegistry Map lookup). D-15 point 5.
|
|
13
|
+
// (2) loadByGuid(GUID) returns the asset PAYLOAD (not a Handle) -- the
|
|
14
|
+
// AssetRegistry holds no World so it cannot mint a column handle (D-17).
|
|
15
|
+
// (3) mint+resolve consistency -- world.allocSharedRef(tag, payload) lands
|
|
16
|
+
// the payload in a user-tier slot (>= BUILTIN_BASE) and
|
|
17
|
+
// world.sharedRefs.resolve(handle) === payload; AssetRegistry no longer
|
|
18
|
+
// holds a parallel handle->payload Map (w31 AC-25 gate; this file is the
|
|
19
|
+
// positive end-to-end shape).
|
|
20
|
+
//
|
|
21
|
+
// TDD: RED before the M8 impl (w59) + delete (w60) land; GREEN once they +
|
|
22
|
+
// the sweep batches co-land. M8 is the ATOMIC milestone -- this test is not
|
|
23
|
+
// green-keepable in isolation.
|
|
24
|
+
|
|
25
|
+
import { AssetRegistry, walkMaterialPassesOverSharedRefs } from '@forgeax/engine-assets-runtime';
|
|
26
|
+
import { World } from '@forgeax/engine-ecs';
|
|
27
|
+
import type { MaterialAsset, MeshAsset } from '@forgeax/engine-types';
|
|
28
|
+
import { BUILTIN_BASE } from '@forgeax/engine-types';
|
|
29
|
+
import { describe, expect, it } from 'vitest';
|
|
30
|
+
import { makeMockShaderRegistry } from './helpers/mock-shader-registry';
|
|
31
|
+
|
|
32
|
+
function mesh(): MeshAsset {
|
|
33
|
+
return {
|
|
34
|
+
kind: 'mesh',
|
|
35
|
+
vertices: new Float32Array(12 * 3),
|
|
36
|
+
indices: new Uint16Array([0, 1, 2]),
|
|
37
|
+
attributes: {},
|
|
38
|
+
materialSlots: [{ slotName: 'Default' }],
|
|
39
|
+
submeshes: [
|
|
40
|
+
{
|
|
41
|
+
indexOffset: 0,
|
|
42
|
+
indexCount: 3,
|
|
43
|
+
vertexCount: 36,
|
|
44
|
+
materialSlot: 0,
|
|
45
|
+
topology: 'triangle-list',
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
} as unknown as MeshAsset;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
describe('M8 mint+resolve consistency (AC-24 positive end-to-end)', () => {
|
|
52
|
+
it('world.allocSharedRef lands payload in a user-tier slot resolvable by world.sharedRefs', () => {
|
|
53
|
+
const world = new World();
|
|
54
|
+
const payload = mesh();
|
|
55
|
+
const handle = world.allocSharedRef<'MeshAsset', MeshAsset>('MeshAsset', payload);
|
|
56
|
+
expect(handle).toBeGreaterThanOrEqual(BUILTIN_BASE);
|
|
57
|
+
const res = world.sharedRefs.resolve<'MeshAsset', MeshAsset>(handle);
|
|
58
|
+
expect(res.ok).toBe(true);
|
|
59
|
+
if (res.ok) expect(res.value).toBe(payload);
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
describe('M8 material-walk: handle root via sharedRefs, parent chain via catalogue GUID (D-19)', () => {
|
|
64
|
+
it('resolves the parent chain by following material.parent GUID through the AssetRegistry catalogue', () => {
|
|
65
|
+
const world = new World();
|
|
66
|
+
const reg = new AssetRegistry(makeMockShaderRegistry());
|
|
67
|
+
// Parent material: catalogued by GUID, declares the base pass + a base param.
|
|
68
|
+
const parentGuidStr = '22222222-2222-5222-8222-222222222222';
|
|
69
|
+
const parentGuid = reg.parseGuid(parentGuidStr);
|
|
70
|
+
const parentPayload: MaterialAsset = {
|
|
71
|
+
kind: 'material',
|
|
72
|
+
passes: [{ name: 'forward', program: { module: 'forgeax_material::unlit' } }],
|
|
73
|
+
values: { baseColor: [0.2, 0.4, 0.6] },
|
|
74
|
+
} as unknown as MaterialAsset;
|
|
75
|
+
reg.catalog(parentGuid, parentPayload);
|
|
76
|
+
// Child material: no passes (inherits parent), parent stored as a GUID
|
|
77
|
+
// (D-19 embedded ref). The child gets a user-tier column handle.
|
|
78
|
+
const childPayload: MaterialAsset = {
|
|
79
|
+
kind: 'material',
|
|
80
|
+
values: { metallic: 1 },
|
|
81
|
+
parent: parentGuid,
|
|
82
|
+
} as unknown as MaterialAsset;
|
|
83
|
+
const childHandle = world.allocSharedRef<'MaterialAsset', MaterialAsset>(
|
|
84
|
+
'MaterialAsset',
|
|
85
|
+
childPayload,
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
const walk = walkMaterialPassesOverSharedRefs(world, childHandle, reg);
|
|
89
|
+
expect(walk.ok).toBe(true);
|
|
90
|
+
if (!walk.ok) return;
|
|
91
|
+
// Passes inherited from parent (W-5 full inheritance).
|
|
92
|
+
expect(walk.value.passes.length).toBe(1);
|
|
93
|
+
expect(walk.value.passes[0]?.program.module).toBe('forgeax_material::unlit');
|
|
94
|
+
// values shallow-merged: parent baseColor + child metallic (W-4).
|
|
95
|
+
expect(walk.value.values.metallic).toBe(1);
|
|
96
|
+
expect(walk.value.values.baseColor).toEqual([0.2, 0.4, 0.6]);
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
describe('M8 loadByGuid returns payload, not a Handle (D-17)', () => {
|
|
101
|
+
it('dev/fallback loadByGuid resolves to the registered payload object', async () => {
|
|
102
|
+
const reg = new AssetRegistry(makeMockShaderRegistry());
|
|
103
|
+
const payload = mesh();
|
|
104
|
+
// After the M8 cut AssetRegistry catalogues GUID->payload; loadByGuid
|
|
105
|
+
// returns the PAYLOAD (assignable to MeshAsset, not Handle<...>).
|
|
106
|
+
const guid = '11111111-1111-5111-8111-111111111111';
|
|
107
|
+
reg.catalog(guid, payload);
|
|
108
|
+
const res = await reg.loadByGuid<MeshAsset>(reg.parseGuid(guid));
|
|
109
|
+
expect(res.ok).toBe(true);
|
|
110
|
+
if (!res.ok) return;
|
|
111
|
+
// The returned value is the payload object itself (kind === 'mesh'),
|
|
112
|
+
// never a numeric Handle.
|
|
113
|
+
expect(typeof res.value).toBe('object');
|
|
114
|
+
expect((res.value as MeshAsset).kind).toBe('mesh');
|
|
115
|
+
expect(res.value).toBe(payload);
|
|
116
|
+
});
|
|
117
|
+
});
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
// tweak-20260627-model-loading-smoke-build-perf M4: regression test for the
|
|
2
|
+
// loadByGuid per-frame texture re-upload bug.
|
|
3
|
+
//
|
|
4
|
+
// SYMPTOM: a MaterialAsset loaded via loadByGuid keeps its texture/sampler
|
|
5
|
+
// values as embedded GUID strings (dash-form). The extract stage
|
|
6
|
+
// (render-system-extract.ts) re-resolved each GUID to a column handle EVERY
|
|
7
|
+
// frame by calling `world.allocSharedRef`, which mints a NEW monotonically-
|
|
8
|
+
// increasing slot id per call. The GPU residency cache
|
|
9
|
+
// (GpuResidencyCache.textureGpuHandles) is keyed on handleSlot(handle), so a
|
|
10
|
+
// fresh slot every frame meant the residency check ALWAYS missed -> all
|
|
11
|
+
// textures re-uploaded to the GPU every frame, GPU memory unbounded, per-frame
|
|
12
|
+
// draw time grew linearly until SIGKILL.
|
|
13
|
+
//
|
|
14
|
+
// FIX: the GUID-string -> column-handle resolution is interned per World, so a
|
|
15
|
+
// given (world, guid, brand) mints EXACTLY ONE stable handle reused across
|
|
16
|
+
// frames (architecture-principle §6 idempotency). This file asserts that
|
|
17
|
+
// invariant directly: resolving the same texture GUID across two extract
|
|
18
|
+
// frames yields the SAME handle, and `world.allocSharedRef` is NOT called again
|
|
19
|
+
// on the second frame's resolution.
|
|
20
|
+
|
|
21
|
+
import { AssetRegistry } from '@forgeax/engine-assets-runtime';
|
|
22
|
+
import { World } from '@forgeax/engine-ecs';
|
|
23
|
+
import { AssetGuid } from '@forgeax/engine-pack/guid';
|
|
24
|
+
import { Camera, MeshFilter, MeshRenderer } from '@forgeax/engine-render';
|
|
25
|
+
import { propagateTransforms, Transform } from '@forgeax/engine-scene';
|
|
26
|
+
import type { Handle, MaterialAsset, MeshAsset, TextureAsset } from '@forgeax/engine-types';
|
|
27
|
+
import { describe, expect, it, vi } from 'vitest';
|
|
28
|
+
import { extractFrame, prepareExtractContext } from '../../../render/src/render-system-extract';
|
|
29
|
+
import { makeMockShaderRegistry } from './helpers/mock-shader-registry';
|
|
30
|
+
|
|
31
|
+
function identityTx() {
|
|
32
|
+
return {
|
|
33
|
+
pos: [0, 0, 0],
|
|
34
|
+
quat: [0, 0, 0, 1],
|
|
35
|
+
scale: [1, 1, 1],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function registerQuadMesh(world: World): Handle<'MeshAsset', 'shared'> {
|
|
40
|
+
const positions = new Float32Array([0, 0, 0, 1, 0, 0, 0, 1, 0]);
|
|
41
|
+
return world.allocSharedRef<'MeshAsset', MeshAsset>('MeshAsset', {
|
|
42
|
+
kind: 'mesh',
|
|
43
|
+
vertices: new Float32Array([
|
|
44
|
+
0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0,
|
|
45
|
+
1, 0, 0, 0, 0,
|
|
46
|
+
]),
|
|
47
|
+
indices: new Uint16Array([0, 1, 2]),
|
|
48
|
+
attributes: { position: positions },
|
|
49
|
+
aabb: new Float32Array([0, 0, 0, 1, 1, 1]),
|
|
50
|
+
submeshes: [
|
|
51
|
+
{
|
|
52
|
+
indexOffset: 0,
|
|
53
|
+
indexCount: 3,
|
|
54
|
+
vertexCount: 36,
|
|
55
|
+
topology: 'triangle-list',
|
|
56
|
+
materialSlot: 0,
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
|
|
60
|
+
materialSlots: [{ slotName: 'Default' }],
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function textureAsset(red = 255): TextureAsset {
|
|
65
|
+
return {
|
|
66
|
+
kind: 'texture',
|
|
67
|
+
width: 1,
|
|
68
|
+
height: 1,
|
|
69
|
+
format: 'rgba8unorm',
|
|
70
|
+
data: new Uint8Array([red, 255, 255, 255]),
|
|
71
|
+
colorSpace: 'linear',
|
|
72
|
+
mipmap: false,
|
|
73
|
+
} as unknown as TextureAsset;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Build a loadByGuid-shaped scene: the material's baseColorTexture paramValue is
|
|
77
|
+
// an embedded GUID STRING (not a pre-minted numeric handle), catalogued to a
|
|
78
|
+
// texture payload. This is exactly the shape Sponza materials have after
|
|
79
|
+
// loadByGuid, and the shape that triggered the per-frame re-upload bug.
|
|
80
|
+
function spawnTexturedRenderable(world: World, assets: AssetRegistry): { textureGuidStr: string } {
|
|
81
|
+
const mesh = registerQuadMesh(world);
|
|
82
|
+
|
|
83
|
+
// Catalog the texture under a GUID; the material references it by GUID string.
|
|
84
|
+
// The embedded ref must be the EXACT dash-form string that
|
|
85
|
+
// AssetRegistry.lookup keys on (AssetGuid.format, lowercased) -- the same
|
|
86
|
+
// shape loadByGuid leaves in a MaterialAsset's values (D-19).
|
|
87
|
+
const textureGuid = AssetGuid.random();
|
|
88
|
+
const textureGuidStr = AssetGuid.format(textureGuid);
|
|
89
|
+
assets.catalog(textureGuid, textureAsset());
|
|
90
|
+
|
|
91
|
+
const matHandle = world.allocSharedRef<'MaterialAsset', MaterialAsset>('MaterialAsset', {
|
|
92
|
+
kind: 'material',
|
|
93
|
+
passes: [{ name: 'Forward', program: { module: 'forgeax::default-unlit' } }],
|
|
94
|
+
values: {
|
|
95
|
+
baseColor: [1, 1, 1],
|
|
96
|
+
// Embedded GUID string -- the loadByGuid texture-ref shape (D-19).
|
|
97
|
+
baseColorTexture: textureGuidStr,
|
|
98
|
+
},
|
|
99
|
+
} as unknown as MaterialAsset);
|
|
100
|
+
|
|
101
|
+
world
|
|
102
|
+
.spawn(
|
|
103
|
+
{ component: Transform, data: { ...identityTx(), pos: [0, 0, 5] } },
|
|
104
|
+
{
|
|
105
|
+
component: Camera,
|
|
106
|
+
data: {
|
|
107
|
+
fov: Math.PI / 4,
|
|
108
|
+
aspect: 1,
|
|
109
|
+
near: 0.1,
|
|
110
|
+
far: 100,
|
|
111
|
+
projection: 0,
|
|
112
|
+
left: -1,
|
|
113
|
+
right: 1,
|
|
114
|
+
bottom: -1,
|
|
115
|
+
top: 1,
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
)
|
|
119
|
+
.unwrap();
|
|
120
|
+
world
|
|
121
|
+
.spawn(
|
|
122
|
+
{ component: Transform, data: identityTx() },
|
|
123
|
+
{ component: MeshFilter, data: { assetHandle: mesh } },
|
|
124
|
+
{ component: MeshRenderer, data: { materials: [matHandle] } },
|
|
125
|
+
)
|
|
126
|
+
.unwrap();
|
|
127
|
+
propagateTransforms(world);
|
|
128
|
+
|
|
129
|
+
return { textureGuidStr };
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
function baseColorHandleFromFrame(world: World, assets: AssetRegistry): number | undefined {
|
|
133
|
+
const frame = extractFrame(world, prepareExtractContext(world, { assets, pipelineState: null }));
|
|
134
|
+
const renderable = frame.renderables.find(
|
|
135
|
+
(r) => r.material.materialShaderId === 'forgeax::default-unlit',
|
|
136
|
+
);
|
|
137
|
+
const snap = renderable?.material as
|
|
138
|
+
| { readonly baseColorTexture?: Handle<'TextureAsset', 'shared'> }
|
|
139
|
+
| undefined;
|
|
140
|
+
return snap?.baseColorTexture as unknown as number | undefined;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
describe('M4 loadByGuid texture handle interning (per-frame re-upload regression)', () => {
|
|
144
|
+
it('resolves the same texture GUID to the SAME column handle across two extract frames', () => {
|
|
145
|
+
const world = new World();
|
|
146
|
+
const assets = new AssetRegistry(makeMockShaderRegistry());
|
|
147
|
+
spawnTexturedRenderable(world, assets);
|
|
148
|
+
|
|
149
|
+
const handleFrame1 = baseColorHandleFromFrame(world, assets);
|
|
150
|
+
const handleFrame2 = baseColorHandleFromFrame(world, assets);
|
|
151
|
+
|
|
152
|
+
expect(handleFrame1).toBeDefined();
|
|
153
|
+
expect(handleFrame2).toBeDefined();
|
|
154
|
+
// The whole fix: a stable handle across frames so handleSlot(handle) is
|
|
155
|
+
// stable and the GPU residency cache hits instead of re-uploading.
|
|
156
|
+
expect(handleFrame2).toBe(handleFrame1);
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
it('does NOT call world.allocSharedRef again when re-resolving the same GUID on a later frame', () => {
|
|
160
|
+
const world = new World();
|
|
161
|
+
const assets = new AssetRegistry(makeMockShaderRegistry());
|
|
162
|
+
spawnTexturedRenderable(world, assets);
|
|
163
|
+
|
|
164
|
+
// Warm the intern cache (frame 1 mints the texture handle exactly once).
|
|
165
|
+
baseColorHandleFromFrame(world, assets);
|
|
166
|
+
|
|
167
|
+
// Frame 2: spy on allocSharedRef and confirm the GUID resolution is served
|
|
168
|
+
// from the intern cache -- zero new allocations for the cached texture GUID.
|
|
169
|
+
const allocSpy = vi.spyOn(world, 'allocSharedRef');
|
|
170
|
+
const handleFrame2 = baseColorHandleFromFrame(world, assets);
|
|
171
|
+
expect(handleFrame2).toBeDefined();
|
|
172
|
+
|
|
173
|
+
const textureAllocCalls = allocSpy.mock.calls.filter((c) => c[0] === 'TextureAsset');
|
|
174
|
+
expect(textureAllocCalls.length).toBe(0);
|
|
175
|
+
allocSpy.mockRestore();
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
it('retires the cached allocation grant when the GUID is re-catalogued', () => {
|
|
179
|
+
const world = new World();
|
|
180
|
+
const assets = new AssetRegistry(makeMockShaderRegistry());
|
|
181
|
+
const { textureGuidStr } = spawnTexturedRenderable(world, assets);
|
|
182
|
+
|
|
183
|
+
const oldHandle = baseColorHandleFromFrame(world, assets);
|
|
184
|
+
expect(oldHandle).toBeDefined();
|
|
185
|
+
const replacement = textureAsset(127);
|
|
186
|
+
assets.catalog(textureGuidStr, replacement);
|
|
187
|
+
|
|
188
|
+
const newHandle = baseColorHandleFromFrame(world, assets);
|
|
189
|
+
expect(newHandle).toBeDefined();
|
|
190
|
+
expect(newHandle).not.toBe(oldHandle);
|
|
191
|
+
expect(
|
|
192
|
+
world.sharedRefs.resolve(newHandle as unknown as Handle<'TextureAsset', 'shared'>),
|
|
193
|
+
).toMatchObject({ ok: true, value: replacement });
|
|
194
|
+
expect(
|
|
195
|
+
world.sharedRefs.refcount(oldHandle as unknown as Handle<'TextureAsset', 'shared'>),
|
|
196
|
+
).toBe(0);
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
it('drops the cached allocation grant when the GUID is invalidated', () => {
|
|
200
|
+
const world = new World();
|
|
201
|
+
const assets = new AssetRegistry(makeMockShaderRegistry());
|
|
202
|
+
const { textureGuidStr } = spawnTexturedRenderable(world, assets);
|
|
203
|
+
|
|
204
|
+
const handle = baseColorHandleFromFrame(world, assets);
|
|
205
|
+
expect(handle).toBeDefined();
|
|
206
|
+
assets.invalidate(textureGuidStr);
|
|
207
|
+
|
|
208
|
+
expect(baseColorHandleFromFrame(world, assets)).toBeUndefined();
|
|
209
|
+
expect(world.sharedRefs.refcount(handle as unknown as Handle<'TextureAsset', 'shared'>)).toBe(
|
|
210
|
+
0,
|
|
211
|
+
);
|
|
212
|
+
});
|
|
213
|
+
});
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// loader-extract-graceful.test.ts -- M4 / w24 integration test for the
|
|
2
|
+
// paramSchema-driven loader/extract handoff.
|
|
3
|
+
//
|
|
4
|
+
// feat-20260613-material-paramschema-driven-binding M4 / w24.
|
|
5
|
+
//
|
|
6
|
+
// Decision anchors (plan-strategy section 2 + section 5.3):
|
|
7
|
+
// - D-5 loader does not pre-filter texture fields by hardcoded name; the
|
|
8
|
+
// paramSchema-derived textureFieldNames is the SSOT. Cross-worktree
|
|
9
|
+
// shader-late-register falls back to "try every int paramValue"
|
|
10
|
+
// gracefully; the extract layer's paramSchema validation catches
|
|
11
|
+
// misclassifications and routes through MISSING_TEXTURE_HANDLE.
|
|
12
|
+
// - R-4 shader-late-register risk: material loaded before its shader is
|
|
13
|
+
// registered. The graceful fallback keeps the load path live.
|
|
14
|
+
//
|
|
15
|
+
// Four scenarios (plan-strategy section 5.3 acceptance), updated for
|
|
16
|
+
// feat-20260614 M8 (D-19): the loader no longer resolves a texture-typed
|
|
17
|
+
// paramValue to a runtime handle. It maps the refs[] index to the embedded
|
|
18
|
+
// sub-asset GUID string; the ECS/render side resolves GUID -> column handle
|
|
19
|
+
// at use time (world.allocSharedRef). `LoadContext.resolveRefSync` is gone.
|
|
20
|
+
// (1) shader registered + texture-typed paramValue + valid refs[] index
|
|
21
|
+
// -> loader rewrites the field to the refs[] GUID string.
|
|
22
|
+
// (2) shader registered + texture-typed paramValue + index out of range
|
|
23
|
+
// -> loader drops the field; record stage falls back to MISSING_TEXTURE_HANDLE.
|
|
24
|
+
// (3) shader NOT registered yet (cross-worktree R-4) + int paramValue
|
|
25
|
+
// -> graceful fallback resolves every in-range int to its refs[] GUID.
|
|
26
|
+
// (4) shader registered + scalar-typed paramValue (metallic = 0) whose
|
|
27
|
+
// value happens to land in [0, refs.length) -> paramSchema-aware path
|
|
28
|
+
// skips it; the field stays as the original int.
|
|
29
|
+
|
|
30
|
+
import { materialLoader } from '@forgeax/engine-assets-runtime';
|
|
31
|
+
import type { LoadContext, ParamSchemaEntry } from '@forgeax/engine-types';
|
|
32
|
+
import { derive } from '@forgeax/engine-types';
|
|
33
|
+
import { describe, expect, it } from 'vitest';
|
|
34
|
+
|
|
35
|
+
function makeCtx(opts: {
|
|
36
|
+
shaderTextureFieldNames?: (shaderId: string) => ReadonlySet<string> | undefined;
|
|
37
|
+
}): LoadContext {
|
|
38
|
+
const ctx: LoadContext = {
|
|
39
|
+
fetchBinary: async () => ({ ok: false as const, error: new Error('no binary') }),
|
|
40
|
+
resolveRef: async () => ({ ok: false as const, error: new Error('no ref') }),
|
|
41
|
+
transcodeCaps: { bc: false, etc2: false, astc: false },
|
|
42
|
+
device: undefined,
|
|
43
|
+
};
|
|
44
|
+
if (opts.shaderTextureFieldNames) {
|
|
45
|
+
ctx.getMaterialShaderTextureFieldNames = opts.shaderTextureFieldNames;
|
|
46
|
+
}
|
|
47
|
+
return ctx;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const standardPbrSchema: readonly ParamSchemaEntry[] = [
|
|
51
|
+
{ name: 'baseColor', type: 'color', default: [1, 1, 1, 1] },
|
|
52
|
+
{ name: 'metallic', type: 'f32', default: 0 },
|
|
53
|
+
{ name: 'roughness', type: 'f32', default: 0.5 },
|
|
54
|
+
{ name: 'baseColorTexture', type: 'texture2d' },
|
|
55
|
+
{ name: 'normalTexture', type: 'texture2d' },
|
|
56
|
+
];
|
|
57
|
+
|
|
58
|
+
describe('loader-extract graceful handoff (M4 w24)', () => {
|
|
59
|
+
it('(1) shader registered + valid texture refs[] index resolves to a structured texture value', () => {
|
|
60
|
+
const textureFields = derive(standardPbrSchema).textureFieldNames;
|
|
61
|
+
const ctx = makeCtx({
|
|
62
|
+
shaderTextureFieldNames: (id) =>
|
|
63
|
+
id === 'forgeax::default-standard-pbr' ? textureFields : undefined,
|
|
64
|
+
});
|
|
65
|
+
const out = materialLoader.load(
|
|
66
|
+
{
|
|
67
|
+
passes: [{ program: { module: 'forgeax::default-standard-pbr' } }],
|
|
68
|
+
values: { baseColorTexture: 0, metallic: 0.5 },
|
|
69
|
+
},
|
|
70
|
+
['tex-bc-guid'],
|
|
71
|
+
ctx,
|
|
72
|
+
);
|
|
73
|
+
expect(out).toMatchObject({ kind: 'material' });
|
|
74
|
+
const pv = (out as { values: Record<string, unknown> }).values;
|
|
75
|
+
// D-19: texture field rewritten to the structured asset value (not a handle).
|
|
76
|
+
expect(pv.baseColorTexture).toEqual({ texture: 'tex-bc-guid' });
|
|
77
|
+
// Scalar field unchanged.
|
|
78
|
+
expect(pv.metallic).toBe(0.5);
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
it('(2) shader registered + texture refs[] index out of range -> field dropped', () => {
|
|
82
|
+
const textureFields = derive(standardPbrSchema).textureFieldNames;
|
|
83
|
+
const ctx = makeCtx({
|
|
84
|
+
shaderTextureFieldNames: (id) =>
|
|
85
|
+
id === 'forgeax::default-standard-pbr' ? textureFields : undefined,
|
|
86
|
+
});
|
|
87
|
+
const out = materialLoader.load(
|
|
88
|
+
{
|
|
89
|
+
passes: [{ program: { module: 'forgeax::default-standard-pbr' } }],
|
|
90
|
+
// index 5 is out of range for refs.length=1 -> dropped.
|
|
91
|
+
values: { baseColorTexture: 5 },
|
|
92
|
+
},
|
|
93
|
+
['tex-bc-guid'],
|
|
94
|
+
ctx,
|
|
95
|
+
);
|
|
96
|
+
expect(out).toMatchObject({ kind: 'material' });
|
|
97
|
+
const pv = (out as { values: Record<string, unknown> }).values;
|
|
98
|
+
// Loader drops the field; record stage falls back to MISSING_TEXTURE_HANDLE.
|
|
99
|
+
expect('baseColorTexture' in pv).toBe(false);
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
it('(3) shader NOT registered (R-4 cross-worktree) -> graceful "try every int" fallback', () => {
|
|
103
|
+
// No paramSchema lookup available -> getMaterialShaderTextureFieldNames
|
|
104
|
+
// returns undefined for every shader id.
|
|
105
|
+
const ctx = makeCtx({
|
|
106
|
+
shaderTextureFieldNames: () => undefined,
|
|
107
|
+
});
|
|
108
|
+
const out = materialLoader.load(
|
|
109
|
+
{
|
|
110
|
+
passes: [{ program: { module: 'forgeax::user-defined' } }],
|
|
111
|
+
values: { customTexture: 0 },
|
|
112
|
+
},
|
|
113
|
+
['tex-guid'],
|
|
114
|
+
ctx,
|
|
115
|
+
);
|
|
116
|
+
expect(out).toMatchObject({ kind: 'material' });
|
|
117
|
+
const pv = (out as { values: Record<string, unknown> }).values;
|
|
118
|
+
// Graceful fallback resolves any in-range int to its refs[] GUID string.
|
|
119
|
+
expect(pv.customTexture).toBe('tex-guid');
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
it('(4) shader registered + scalar paramValue with refs[] index in range -> NOT misclassified', () => {
|
|
123
|
+
const textureFields = derive(standardPbrSchema).textureFieldNames;
|
|
124
|
+
const ctx = makeCtx({
|
|
125
|
+
shaderTextureFieldNames: (id) =>
|
|
126
|
+
id === 'forgeax::default-standard-pbr' ? textureFields : undefined,
|
|
127
|
+
});
|
|
128
|
+
const out = materialLoader.load(
|
|
129
|
+
{
|
|
130
|
+
passes: [{ program: { module: 'forgeax::default-standard-pbr' } }],
|
|
131
|
+
// metallic = 0 is an int in [0, refs.length=1) — would misclassify
|
|
132
|
+
// under a naive "try every int" loader. paramSchema-aware path
|
|
133
|
+
// declares metallic as 'f32', so it skips resolution.
|
|
134
|
+
values: { baseColorTexture: 0, metallic: 0 },
|
|
135
|
+
},
|
|
136
|
+
['tex-bc-guid'],
|
|
137
|
+
ctx,
|
|
138
|
+
);
|
|
139
|
+
expect(out).toMatchObject({ kind: 'material' });
|
|
140
|
+
const pv = (out as { values: Record<string, unknown> }).values;
|
|
141
|
+
// Texture field still resolves to the structured asset value.
|
|
142
|
+
expect(pv.baseColorTexture).toEqual({ texture: 'tex-bc-guid' });
|
|
143
|
+
// Scalar field unchanged: metallic stays 0.
|
|
144
|
+
expect(pv.metallic).toBe(0);
|
|
145
|
+
});
|
|
146
|
+
});
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
// loader name survival through JSON roundtrip — AC-08 (feat-20260618 w20).
|
|
2
|
+
//
|
|
3
|
+
// Red-first: written before w15 wires entry.name -> registerPackage.
|
|
4
|
+
//
|
|
5
|
+
// dawn smoke walks the in-memory register path and skips the
|
|
6
|
+
// JSON.stringify -> fetch -> JSON.parse pack-body path (AGENTS.md smoke gate +
|
|
7
|
+
// memory typed-array-json-roundtrip-asymmetric-loader-contract). This test
|
|
8
|
+
// drives the prod loadByGuid path with a JSON-roundtripped pack-index so a name
|
|
9
|
+
// that does not survive the roundtrip is caught here.
|
|
10
|
+
//
|
|
11
|
+
// Coverage:
|
|
12
|
+
// AC-08 sync — two meshes sharing a .pack.json, each with a pack-index name;
|
|
13
|
+
// after loadByGuid (parseAssetPayload sync branch) resolveName
|
|
14
|
+
// returns each stored name.
|
|
15
|
+
// AC-08 async — a texture in its own (single-asset) package; after loadByGuid
|
|
16
|
+
// (texture upstream async branch) resolveName returns the
|
|
17
|
+
// basename derived from its package path. Without the entry ->
|
|
18
|
+
// Package wiring the texture would land in a null package and
|
|
19
|
+
// resolveName would be '' -- so basename here still proves the
|
|
20
|
+
// async load path registered the package post-roundtrip.
|
|
21
|
+
// FALSIFY — the same pack with the entry name stripped degrades to
|
|
22
|
+
// basename(path), proving the assertion is name-sensitive (not
|
|
23
|
+
// a tautology). The FALSIFY block does not gate CI; it documents
|
|
24
|
+
// discriminating power.
|
|
25
|
+
|
|
26
|
+
import { AssetRegistry } from '@forgeax/engine-assets-runtime';
|
|
27
|
+
import { AssetGuid } from '@forgeax/engine-pack/guid';
|
|
28
|
+
import type { MeshAsset as TypesMeshAsset } from '@forgeax/engine-types';
|
|
29
|
+
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
|
30
|
+
import { makeMockShaderRegistry } from './helpers/mock-shader-registry';
|
|
31
|
+
|
|
32
|
+
const MESH_A = '70000000-0000-4000-7000-000000000001';
|
|
33
|
+
const MESH_B = '70000000-0000-4000-7000-000000000002';
|
|
34
|
+
const TEX = '70000000-0000-4000-7000-0000000000aa';
|
|
35
|
+
const SHARED_PACK_URL = '/packs/char.pack.json';
|
|
36
|
+
const TEX_URL = '/assets/diffuse.pack.json';
|
|
37
|
+
|
|
38
|
+
function parseGuid(s: string): AssetGuid {
|
|
39
|
+
const r = AssetGuid.parse(s);
|
|
40
|
+
if (!r.ok) throw new Error(`invalid test GUID: ${s}`);
|
|
41
|
+
return r.value;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function makeRegistry(): AssetRegistry {
|
|
45
|
+
return new AssetRegistry(makeMockShaderRegistry());
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const MESH_PAYLOAD_A = {
|
|
49
|
+
vertices: [
|
|
50
|
+
-0.5, 0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0.5, 0, 0.5, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0.5, 0, -0.5,
|
|
51
|
+
0, 1, 0, 1, 1, 1, 0, 0, 1,
|
|
52
|
+
],
|
|
53
|
+
indices: [0, 1, 2],
|
|
54
|
+
attributes: {},
|
|
55
|
+
submeshes: [{ indexOffset: 0, indexCount: 3, vertexCount: 3, topology: 'triangle-list' }],
|
|
56
|
+
};
|
|
57
|
+
const MESH_PAYLOAD_B = {
|
|
58
|
+
vertices: [
|
|
59
|
+
0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1,
|
|
60
|
+
1, 1, 0, 0,
|
|
61
|
+
],
|
|
62
|
+
indices: [1, 0, 2],
|
|
63
|
+
attributes: {},
|
|
64
|
+
submeshes: [{ indexOffset: 0, indexCount: 3, vertexCount: 3, topology: 'triangle-list' }],
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
function makeSharedPack(): unknown {
|
|
68
|
+
return {
|
|
69
|
+
schemaVersion: '2.0.0',
|
|
70
|
+
kind: 'internal-text-package',
|
|
71
|
+
assets: [
|
|
72
|
+
{ guid: MESH_A, kind: 'mesh', payload: MESH_PAYLOAD_A, refs: [], artifacts: {} },
|
|
73
|
+
{ guid: MESH_B, kind: 'mesh', payload: MESH_PAYLOAD_B, refs: [], artifacts: {} },
|
|
74
|
+
],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const TEX_METADATA = {
|
|
79
|
+
kind: 'texture',
|
|
80
|
+
width: 1,
|
|
81
|
+
height: 1,
|
|
82
|
+
format: 'rgba8unorm',
|
|
83
|
+
colorSpace: 'srgb',
|
|
84
|
+
mipmap: false,
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// `includeNames=false` is the FALSIFY variant (entry.name stripped).
|
|
88
|
+
function makePackIndex(includeNames: boolean): unknown[] {
|
|
89
|
+
const named = (n: string) => (includeNames ? { name: n } : {});
|
|
90
|
+
return [
|
|
91
|
+
{
|
|
92
|
+
guid: MESH_A,
|
|
93
|
+
packageUrl: SHARED_PACK_URL,
|
|
94
|
+
kind: 'mesh',
|
|
95
|
+
sourcePath: 'char.glb',
|
|
96
|
+
...named('Body'),
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
guid: MESH_B,
|
|
100
|
+
packageUrl: SHARED_PACK_URL,
|
|
101
|
+
kind: 'mesh',
|
|
102
|
+
sourcePath: 'char.glb',
|
|
103
|
+
...named('Head'),
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
guid: TEX,
|
|
107
|
+
packageUrl: TEX_URL,
|
|
108
|
+
kind: 'texture',
|
|
109
|
+
sourcePath: 'diffuse.png',
|
|
110
|
+
...named('Diffuse'),
|
|
111
|
+
},
|
|
112
|
+
];
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Roundtrip every fetched body through JSON.stringify -> JSON.parse, mirroring
|
|
116
|
+
// the dev-server pack-body transport that dawn smoke skips.
|
|
117
|
+
function jsonRoundtrip(value: unknown): unknown {
|
|
118
|
+
return JSON.parse(JSON.stringify(value));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function installFetch(includeNames: boolean): void {
|
|
122
|
+
const packIndex = jsonRoundtrip(makePackIndex(includeNames));
|
|
123
|
+
const sharedPack = jsonRoundtrip(makeSharedPack());
|
|
124
|
+
const texBytes = new Uint8Array(1 * 1 * 4).fill(200);
|
|
125
|
+
globalThis.fetch = vi.fn(async (url: string | URL) => {
|
|
126
|
+
const u = String(url);
|
|
127
|
+
if (u.includes('pack-index.json')) {
|
|
128
|
+
return new Response(JSON.stringify(packIndex), { status: 200 });
|
|
129
|
+
}
|
|
130
|
+
if (u === SHARED_PACK_URL) {
|
|
131
|
+
return new Response(JSON.stringify(sharedPack), { status: 200 });
|
|
132
|
+
}
|
|
133
|
+
if (u === TEX_URL) {
|
|
134
|
+
return new Response(
|
|
135
|
+
JSON.stringify({
|
|
136
|
+
schemaVersion: '2.0.0',
|
|
137
|
+
kind: 'internal-text-package',
|
|
138
|
+
assets: [
|
|
139
|
+
{
|
|
140
|
+
guid: TEX,
|
|
141
|
+
kind: 'texture',
|
|
142
|
+
payload: TEX_METADATA,
|
|
143
|
+
refs: [],
|
|
144
|
+
artifacts: {
|
|
145
|
+
body: { path: 'diffuse.bin', mediaType: 'application/x-forgeax-rgba8' },
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
}),
|
|
150
|
+
{ status: 200 },
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
if (u === '/assets/diffuse.bin') {
|
|
154
|
+
return new Response(texBytes, { status: 200 });
|
|
155
|
+
}
|
|
156
|
+
return new Response('', { status: 404 });
|
|
157
|
+
}) as unknown as typeof globalThis.fetch;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
describe('loader name survival (AC-08)', () => {
|
|
161
|
+
let originalFetch: typeof globalThis.fetch | undefined;
|
|
162
|
+
beforeEach(() => {
|
|
163
|
+
originalFetch = globalThis.fetch;
|
|
164
|
+
});
|
|
165
|
+
afterEach(() => {
|
|
166
|
+
if (originalFetch !== undefined) globalThis.fetch = originalFetch;
|
|
167
|
+
vi.restoreAllMocks();
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
it('sync branch: multi-asset mesh names survive the JSON roundtrip', async () => {
|
|
171
|
+
installFetch(true);
|
|
172
|
+
const reg = makeRegistry();
|
|
173
|
+
reg.configurePackIndex('/pack-index.json');
|
|
174
|
+
|
|
175
|
+
const rA = await reg.loadByGuid<TypesMeshAsset>(parseGuid(MESH_A));
|
|
176
|
+
const rB = await reg.loadByGuid<TypesMeshAsset>(parseGuid(MESH_B));
|
|
177
|
+
expect(rA.ok).toBe(true);
|
|
178
|
+
expect(rB.ok).toBe(true);
|
|
179
|
+
|
|
180
|
+
expect(reg.resolveName(MESH_A)).toBe('Body');
|
|
181
|
+
expect(reg.resolveName(MESH_B)).toBe('Head');
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
it('async branch: texture package resolves via the async load path post-roundtrip', async () => {
|
|
185
|
+
installFetch(true);
|
|
186
|
+
const reg = makeRegistry();
|
|
187
|
+
reg.configurePackIndex('/pack-index.json');
|
|
188
|
+
|
|
189
|
+
const r = await reg.loadByGuid(parseGuid(TEX));
|
|
190
|
+
expect(r.ok).toBe(true);
|
|
191
|
+
// Single-asset texture package -> basename(path) (AC-01). The wiring is what
|
|
192
|
+
// makes this non-empty: without entry -> Package the texture lands in a null
|
|
193
|
+
// package and resolveName would be ''.
|
|
194
|
+
expect(reg.resolveName(TEX)).toBe('diffuse.pack.json');
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
it('FALSIFY: stripped entry.name degrades to basename, proving name-sensitivity', async () => {
|
|
198
|
+
installFetch(false);
|
|
199
|
+
const reg = makeRegistry();
|
|
200
|
+
reg.configurePackIndex('/pack-index.json');
|
|
201
|
+
|
|
202
|
+
const rA = await reg.loadByGuid<TypesMeshAsset>(parseGuid(MESH_A));
|
|
203
|
+
const rB = await reg.loadByGuid<TypesMeshAsset>(parseGuid(MESH_B));
|
|
204
|
+
expect(rA.ok).toBe(true);
|
|
205
|
+
expect(rB.ok).toBe(true);
|
|
206
|
+
|
|
207
|
+
// Multi-asset package with no stored names -> basename(cooked packageUrl),
|
|
208
|
+
// NOT the original 'Body' / 'Head'. If the assertion still
|
|
209
|
+
// saw 'Body', the name path would be a tautology.
|
|
210
|
+
expect(reg.resolveName(MESH_A)).toBe('char.pack.json');
|
|
211
|
+
expect(reg.resolveName(MESH_B)).toBe('char.pack.json');
|
|
212
|
+
});
|
|
213
|
+
});
|