@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,98 @@
|
|
|
1
|
+
// zero-manifest-ready.dawn.test.ts -- bug-20260519 AC-02 dual-impl mirror.
|
|
2
|
+
//
|
|
3
|
+
// This is the dawn-side counterpart of the browser AC-02 case in
|
|
4
|
+
// `renderer-ready.test.ts`. The browser case uses a vitest mock GPUDevice
|
|
5
|
+
// with a recorded `order[]` log to spy on `createShaderModule`; the dawn
|
|
6
|
+
// project drives the real wgpu-wasm + naga binding through `rhi-wgpu`.
|
|
7
|
+
// Asserting `ready.ok === true` is sufficient for the dual-impl regression
|
|
8
|
+
// gate: pre-fix the unconditional Step 2 entry-scan would reject because
|
|
9
|
+
// the empty manifest carries neither the `f_schlick` PBR entry nor the
|
|
10
|
+
// unlit entry; post-fix the gate skips Step 2 outright, the registry
|
|
11
|
+
// yields zero entries, and host construction reaches the ready state.
|
|
12
|
+
//
|
|
13
|
+
// AC: requirements section 4 AC-02 (Camera-only world reaches `ready ok`
|
|
14
|
+
// without forcing shader compilation) projected onto the dawn / rhi-wgpu
|
|
15
|
+
// path per OOS-4 dual-impl behaviour parity. plan-strategy D-1 + D-4 (test
|
|
16
|
+
// matrix migration: dawn project mirror) + charter P4 (consistent
|
|
17
|
+
// abstraction across rhi-webgpu / rhi-wgpu).
|
|
18
|
+
|
|
19
|
+
import { describe, expect, it } from 'vitest';
|
|
20
|
+
import { constructRuntimeRendererHost } from '../../renderer-host';
|
|
21
|
+
|
|
22
|
+
const WIDTH = 64;
|
|
23
|
+
const HEIGHT = 64;
|
|
24
|
+
const TEXTURE_USAGE_COPY_SRC = 0x01;
|
|
25
|
+
const TEXTURE_USAGE_RENDER_ATTACHMENT = 0x10;
|
|
26
|
+
|
|
27
|
+
describe('bug-20260519 AC-02 dawn mirror: zero manifest -> ready state', () => {
|
|
28
|
+
it('runtime host without shaderManifestUrl reaches ready state on dawn', async () => {
|
|
29
|
+
const dawnAvailable = typeof globalThis.navigator?.gpu?.requestAdapter === 'function';
|
|
30
|
+
if (!dawnAvailable) {
|
|
31
|
+
throw new Error('dawn-node navigator.gpu not injected; vitest.setup-webgpu.ts regressed');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
let sharedDevice: GPUDevice | undefined;
|
|
35
|
+
const originalRequestAdapter = globalThis.navigator.gpu.requestAdapter.bind(
|
|
36
|
+
globalThis.navigator.gpu,
|
|
37
|
+
);
|
|
38
|
+
globalThis.navigator.gpu.requestAdapter = async (opts) => {
|
|
39
|
+
const rawAdapter = await originalRequestAdapter(opts);
|
|
40
|
+
if (rawAdapter === null) return rawAdapter;
|
|
41
|
+
const originalRequestDevice = rawAdapter.requestDevice.bind(rawAdapter);
|
|
42
|
+
rawAdapter.requestDevice = async (desc) => {
|
|
43
|
+
const dev = await originalRequestDevice(desc);
|
|
44
|
+
if (sharedDevice === undefined) sharedDevice = dev;
|
|
45
|
+
return dev;
|
|
46
|
+
};
|
|
47
|
+
return rawAdapter;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
let renderTarget: GPUTexture | undefined;
|
|
51
|
+
const ensureRenderTarget = (device: GPUDevice, format: GPUTextureFormat): GPUTexture => {
|
|
52
|
+
if (renderTarget !== undefined) return renderTarget;
|
|
53
|
+
renderTarget = device.createTexture({
|
|
54
|
+
size: { width: WIDTH, height: HEIGHT, depthOrArrayLayers: 1 },
|
|
55
|
+
format,
|
|
56
|
+
usage: TEXTURE_USAGE_RENDER_ATTACHMENT | TEXTURE_USAGE_COPY_SRC,
|
|
57
|
+
viewFormats: ['rgba8unorm-srgb'],
|
|
58
|
+
});
|
|
59
|
+
return renderTarget;
|
|
60
|
+
};
|
|
61
|
+
const mockCanvas = {
|
|
62
|
+
width: WIDTH,
|
|
63
|
+
height: HEIGHT,
|
|
64
|
+
getContext(kind: string): unknown {
|
|
65
|
+
if (kind !== 'webgpu') return null;
|
|
66
|
+
return {
|
|
67
|
+
configure(desc: { device: GPUDevice; format?: GPUTextureFormat }) {
|
|
68
|
+
ensureRenderTarget(desc.device, desc.format ?? 'rgba8unorm');
|
|
69
|
+
},
|
|
70
|
+
unconfigure() {},
|
|
71
|
+
getCurrentTexture(): GPUTexture {
|
|
72
|
+
if (renderTarget === undefined) {
|
|
73
|
+
if (sharedDevice === undefined)
|
|
74
|
+
throw new Error('render target requested before device captured');
|
|
75
|
+
return ensureRenderTarget(sharedDevice, 'rgba8unorm');
|
|
76
|
+
}
|
|
77
|
+
return renderTarget;
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
addEventListener() {},
|
|
82
|
+
removeEventListener() {},
|
|
83
|
+
} as unknown as HTMLCanvasElement;
|
|
84
|
+
|
|
85
|
+
let host: Awaited<ReturnType<typeof constructRuntimeRendererHost>>;
|
|
86
|
+
try {
|
|
87
|
+
// Explicit `shaderManifestUrl: undefined` opts into zero-entry mode.
|
|
88
|
+
// ShaderRegistry returns empty entries without issuing any fetch;
|
|
89
|
+
// Runtime host shader compilation is skipped entirely.
|
|
90
|
+
host = await constructRuntimeRendererHost(mockCanvas, {}, { shaderManifestUrl: undefined });
|
|
91
|
+
} finally {
|
|
92
|
+
globalThis.navigator.gpu.requestAdapter = originalRequestAdapter;
|
|
93
|
+
}
|
|
94
|
+
expect(host.ok).toBe(true);
|
|
95
|
+
if (!host.ok) throw host.error;
|
|
96
|
+
expect(host.value.renderer.inspect().state).toBe('alive');
|
|
97
|
+
});
|
|
98
|
+
});
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
// feat-20260625-sprite-instances-and-tilemap-terrain-static-batch / M5 / w15.
|
|
2
|
+
//
|
|
3
|
+
// Round-2 production migration verification: asserts the two affected
|
|
4
|
+
// demos (`apps/hello/tilemap` + `apps/hello/asi-world`) actually use the
|
|
5
|
+
// `sortScope`-named field and do NOT carry the retired `ySort` literal,
|
|
6
|
+
// reading the demo source files directly off disk.
|
|
7
|
+
//
|
|
8
|
+
// What round-2 changes vs round-1:
|
|
9
|
+
// - round-1 (R-NEW-1 fallback): forward-looking migration table only;
|
|
10
|
+
// no on-disk demo file reads (target directories didn't exist yet).
|
|
11
|
+
// - round-2 (R-NEW-1 fallback graduated, D-V-3): upstream + demo
|
|
12
|
+
// directories landed via PR #502 (2026-06-26T07:24Z), so we read
|
|
13
|
+
// the actual demo source files and assert (a) `sortScope` is the
|
|
14
|
+
// spelling used, (b) `ySort` does not reappear anywhere in
|
|
15
|
+
// `apps/hello/tilemap/src/**` or `apps/hello/asi-world/src/**`
|
|
16
|
+
// (Change stance "Optimal > compatible" — no shim, no alias).
|
|
17
|
+
//
|
|
18
|
+
// Boundary: reads two `*.ts` source files via `node:fs`. No runtime
|
|
19
|
+
// import (so a future demo bug doesn't bleed into this test failure
|
|
20
|
+
// signal). The asi-world spawn must encode `sortScope: 'per-cell'`
|
|
21
|
+
// (via `encodeSortScope`), the tilemap demo may either omit `sortScope`
|
|
22
|
+
// (default 'layer') or pass `encodeSortScope('layer')` explicitly; both
|
|
23
|
+
// shapes are accepted because the closed union's default arm and the
|
|
24
|
+
// explicit arm both satisfy the migration intent.
|
|
25
|
+
//
|
|
26
|
+
// Anchors:
|
|
27
|
+
// - requirements.md AC-02: `ySort: 0/1` -> `sortScope: 'layer' |
|
|
28
|
+
// 'per-cell'`, TS compile errors are the only migration gate.
|
|
29
|
+
// - plan-strategy.md section 7 M5: demo migration boundary, two-demo
|
|
30
|
+
// scope (hello-tilemap + asi-world).
|
|
31
|
+
// - verify-decisions D-V-3 (round-2 mandate item 4): "demo migration".
|
|
32
|
+
// - AGENTS.md Change stance: no `ySort` alias, no parallel field.
|
|
33
|
+
|
|
34
|
+
import { readFileSync } from 'node:fs';
|
|
35
|
+
import { dirname, resolve } from 'node:path';
|
|
36
|
+
import { fileURLToPath } from 'node:url';
|
|
37
|
+
import { describe, expect, it } from 'vitest';
|
|
38
|
+
|
|
39
|
+
const HERE = dirname(fileURLToPath(import.meta.url));
|
|
40
|
+
const REPO_ROOT = resolve(HERE, '..', '..', '..', '..');
|
|
41
|
+
|
|
42
|
+
interface DemoMigrationCase {
|
|
43
|
+
readonly demo: 'hello-tilemap' | 'hello-asi-world';
|
|
44
|
+
readonly mainTsPath: string;
|
|
45
|
+
readonly expectedSpawns: ReadonlyArray<{
|
|
46
|
+
readonly layerCategory: 'tilemap' | 'terrain' | 'object';
|
|
47
|
+
// After migration: literal that must appear in main.ts.
|
|
48
|
+
// 'per-cell' -> demo must call `encodeSortScope('per-cell')` (or
|
|
49
|
+
// pass the closed-union literal through TileLayerData);
|
|
50
|
+
// 'layer' -> demo may omit `sortScope` (default) or spell 'layer'
|
|
51
|
+
// explicitly. Both shapes are acceptable.
|
|
52
|
+
readonly postMigrationSortScope: 'layer' | 'per-cell';
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const DEMO_CASES: readonly DemoMigrationCase[] = [
|
|
57
|
+
{
|
|
58
|
+
demo: 'hello-tilemap',
|
|
59
|
+
mainTsPath: resolve(REPO_ROOT, 'apps', 'hello', 'tilemap', 'src', 'main.ts'),
|
|
60
|
+
expectedSpawns: [{ layerCategory: 'tilemap', postMigrationSortScope: 'layer' }],
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
demo: 'hello-asi-world',
|
|
64
|
+
mainTsPath: resolve(REPO_ROOT, 'apps', 'hello', 'asi-world', 'src', 'main.ts'),
|
|
65
|
+
expectedSpawns: [
|
|
66
|
+
{ layerCategory: 'terrain', postMigrationSortScope: 'layer' },
|
|
67
|
+
{ layerCategory: 'object', postMigrationSortScope: 'per-cell' },
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
];
|
|
71
|
+
|
|
72
|
+
describe('demo sortScope migration (w15, round-2 production)', () => {
|
|
73
|
+
it.each(DEMO_CASES)('$demo main.ts exists and is readable', ({ mainTsPath }) => {
|
|
74
|
+
// readFileSync throws if absent; reaching the .length read implies success.
|
|
75
|
+
const src = readFileSync(mainTsPath, 'utf8');
|
|
76
|
+
expect(src.length).toBeGreaterThan(0);
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it.each(DEMO_CASES)('$demo main.ts does NOT carry the retired ySort field', ({ mainTsPath }) => {
|
|
80
|
+
const src = readFileSync(mainTsPath, 'utf8');
|
|
81
|
+
const ySortFieldRe = /\bySort\s*:/;
|
|
82
|
+
expect(src).not.toMatch(ySortFieldRe);
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
it('hello-tilemap demo defaults sortScope to layer (no per-cell call)', () => {
|
|
86
|
+
const tilemapCase = DEMO_CASES.find((c) => c.demo === 'hello-tilemap');
|
|
87
|
+
if (tilemapCase === undefined) throw new Error('hello-tilemap case missing');
|
|
88
|
+
const src = readFileSync(tilemapCase.mainTsPath, 'utf8');
|
|
89
|
+
expect(src).not.toMatch(/TilemapSort\.perCell/);
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
it("asi-world demo encodes sortScope: 'per-cell' for the object TileLayer", () => {
|
|
93
|
+
const asiCase = DEMO_CASES.find((c) => c.demo === 'hello-asi-world');
|
|
94
|
+
if (asiCase === undefined) throw new Error('asi-world case missing');
|
|
95
|
+
const src = readFileSync(asiCase.mainTsPath, 'utf8');
|
|
96
|
+
expect(src).toMatch(/TilemapSort\.perCell/);
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
it('asi-world demo imports the grouped TilemapSort authoring value', () => {
|
|
100
|
+
const asiCase = DEMO_CASES.find((c) => c.demo === 'hello-asi-world');
|
|
101
|
+
if (asiCase === undefined) throw new Error('asi-world case missing');
|
|
102
|
+
const src = readFileSync(asiCase.mainTsPath, 'utf8');
|
|
103
|
+
expect(src).toMatch(/TilemapSort/);
|
|
104
|
+
expect(src).toMatch(/@forgeax\/engine-render\/authoring/);
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
it('migration covers both terrain semantics (layer) and object semantics (per-cell)', () => {
|
|
108
|
+
const scopes = new Set<string>();
|
|
109
|
+
for (const c of DEMO_CASES) {
|
|
110
|
+
for (const s of c.expectedSpawns) scopes.add(s.postMigrationSortScope);
|
|
111
|
+
}
|
|
112
|
+
expect(scopes.has('layer')).toBe(true);
|
|
113
|
+
expect(scopes.has('per-cell')).toBe(true);
|
|
114
|
+
});
|
|
115
|
+
});
|
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
// derive-bgl-integration.test.ts -- M3 / w11 integration test for derive(schema)
|
|
2
|
+
// integration into the BGL build path consumed by installMaterialArtifact-like
|
|
3
|
+
// register-time validation.
|
|
4
|
+
//
|
|
5
|
+
// feat-20260613-material-paramschema-driven-binding M3 / w11.
|
|
6
|
+
//
|
|
7
|
+
// Decision anchors (plan-strategy §2):
|
|
8
|
+
// - D-2 derive(schema) is the pure SSOT for BGL / UBO / loader lookup tables.
|
|
9
|
+
// - D-3 consecutive numeric entries are run-merged into one UBO entry.
|
|
10
|
+
// - D-4 texture* family entries auto-pair a filtering sampler at binding+1.
|
|
11
|
+
// - D-12 empty schema is graceful: bglEntries=[] / totalBytes=0.
|
|
12
|
+
//
|
|
13
|
+
// What this test asserts (M3 scope, narrow):
|
|
14
|
+
// (a) derive(schema) over each of the 5 built-in shader sidecar shapes
|
|
15
|
+
// returns a well-formed bglEntries array consistent with the rest of
|
|
16
|
+
// the derive output (textureFieldNames / samplerForTexture map /
|
|
17
|
+
// userRegionBindingEnd advances by exactly the entries created).
|
|
18
|
+
// (b) bglEntries[i].binding values are unique and dense from 0..N-1, so
|
|
19
|
+
// that a downstream device.createBindGroupLayout({entries}) call would
|
|
20
|
+
// accept them without renumbering. The assertion runs against synthetic
|
|
21
|
+
// schemas representative of each built-in shader; the real WGSL @binding
|
|
22
|
+
// numbers are renumbered to match in M4 (plan-strategy §3.4 table).
|
|
23
|
+
// (c) record-stage byte packing aligns with derive(...).uboLayout: the
|
|
24
|
+
// sequence of (offset, size) for the merged-UBO field run is the
|
|
25
|
+
// std140 walk produced by derive — caller writes scalars at the
|
|
26
|
+
// reported offsets and the totalBytes is the buffer allocation size.
|
|
27
|
+
|
|
28
|
+
import type { ParamSchemaEntry } from '@forgeax/engine-types';
|
|
29
|
+
import { derive } from '@forgeax/engine-types';
|
|
30
|
+
import { describe, expect, it } from 'vitest';
|
|
31
|
+
import { appendInjection } from '../../../render/src/pbr-pipeline';
|
|
32
|
+
|
|
33
|
+
// ─── Synthetic schemas (one per built-in shader family) ─────────────────────
|
|
34
|
+
//
|
|
35
|
+
// These mirror the *intended* schemas after M4 sidecar updates. The current
|
|
36
|
+
// .material.json sidecars (research F-1) are misaligned with WGSL @binding
|
|
37
|
+
// numbers; M3 here verifies the derive plumbing works on well-formed schemas
|
|
38
|
+
// — M4 brings the real sidecars into alignment.
|
|
39
|
+
|
|
40
|
+
const standardPbrSchema: readonly ParamSchemaEntry[] = [
|
|
41
|
+
{ name: 'baseColor', type: 'color', default: [1, 1, 1, 1] },
|
|
42
|
+
{ name: 'metallic', type: 'f32', default: 0 },
|
|
43
|
+
{ name: 'roughness', type: 'f32', default: 0.5 },
|
|
44
|
+
{ name: 'metallicChannel', type: 'f32', default: 2 },
|
|
45
|
+
{ name: 'roughnessChannel', type: 'f32', default: 1 },
|
|
46
|
+
{ name: 'aoChannel', type: 'f32', default: 0 },
|
|
47
|
+
{ name: 'extraChannel', type: 'f32', default: 0 },
|
|
48
|
+
{ name: 'emissive', type: 'vec3', default: [0, 0, 0] },
|
|
49
|
+
{ name: 'emissiveIntensity', type: 'f32', default: 0 },
|
|
50
|
+
{ name: 'occlusionStrength', type: 'f32', default: 1 },
|
|
51
|
+
{ name: 'alphaCutoff', type: 'f32', default: 0 },
|
|
52
|
+
{ name: 'clearcoat', type: 'f32', default: 0 },
|
|
53
|
+
{ name: 'clearcoatRoughness', type: 'f32', default: 0.5 },
|
|
54
|
+
{ name: 'baseColorTexture', type: 'texture2d' },
|
|
55
|
+
{ name: 'metallicRoughnessTexture', type: 'texture2d' },
|
|
56
|
+
{ name: 'normalTexture', type: 'texture2d' },
|
|
57
|
+
{ name: 'emissiveTexture', type: 'texture2d' },
|
|
58
|
+
];
|
|
59
|
+
|
|
60
|
+
const skinSchema: readonly ParamSchemaEntry[] = [
|
|
61
|
+
{ name: 'baseColor', type: 'color', default: [1, 1, 1, 1] },
|
|
62
|
+
{ name: 'metallic', type: 'f32', default: 0 },
|
|
63
|
+
{ name: 'roughness', type: 'f32', default: 0.5 },
|
|
64
|
+
{ name: 'baseColorTexture', type: 'texture2d' },
|
|
65
|
+
{ name: 'metallicRoughnessTexture', type: 'texture2d' },
|
|
66
|
+
{ name: 'normalTexture', type: 'texture2d' },
|
|
67
|
+
];
|
|
68
|
+
|
|
69
|
+
const unlitSchema: readonly ParamSchemaEntry[] = [
|
|
70
|
+
{ name: 'baseColor', type: 'color', default: [1, 1, 1, 1] },
|
|
71
|
+
{ name: 'baseColorTexture', type: 'texture2d' },
|
|
72
|
+
];
|
|
73
|
+
|
|
74
|
+
const spriteSchema: readonly ParamSchemaEntry[] = [
|
|
75
|
+
{ name: 'tint', type: 'color', default: [1, 1, 1, 1] },
|
|
76
|
+
{ name: 'baseColorTexture', type: 'texture2d' },
|
|
77
|
+
];
|
|
78
|
+
|
|
79
|
+
const shadowCasterSchema: readonly ParamSchemaEntry[] = [];
|
|
80
|
+
|
|
81
|
+
const builtinSchemas: ReadonlyArray<{ id: string; schema: readonly ParamSchemaEntry[] }> = [
|
|
82
|
+
{ id: 'forgeax::default-standard-pbr', schema: standardPbrSchema },
|
|
83
|
+
{ id: 'forgeax::pbr-skin', schema: skinSchema },
|
|
84
|
+
{ id: 'forgeax::default-unlit', schema: unlitSchema },
|
|
85
|
+
{ id: 'forgeax::sprite', schema: spriteSchema },
|
|
86
|
+
{ id: 'forgeax::default-shadow-caster', schema: shadowCasterSchema },
|
|
87
|
+
];
|
|
88
|
+
|
|
89
|
+
describe('derive(schema) integration over 5 built-in shader families (M3 w11)', () => {
|
|
90
|
+
it('(a) every built-in shader derives a well-formed BGL with consistent userRegionBindingEnd', () => {
|
|
91
|
+
for (const { id, schema } of builtinSchemas) {
|
|
92
|
+
const out = derive(schema);
|
|
93
|
+
// bglEntries length == userRegionBindingEnd (every entry consumes
|
|
94
|
+
// exactly one binding slot under the run-merging rule of D-3).
|
|
95
|
+
expect(out.bglEntries.length, `${id}: bglEntries.length === userRegionBindingEnd`).toBe(
|
|
96
|
+
out.userRegionBindingEnd,
|
|
97
|
+
);
|
|
98
|
+
// textureFieldNames is a subset of the schema names.
|
|
99
|
+
const schemaNames = new Set(schema.map((e) => e.name));
|
|
100
|
+
for (const tex of out.textureFieldNames) {
|
|
101
|
+
expect(schemaNames.has(tex), `${id}: textureFieldName '${tex}' is in schema`).toBe(true);
|
|
102
|
+
}
|
|
103
|
+
// samplerForTexture maps each texture name to '<tex>_sampler'.
|
|
104
|
+
for (const [tex, samp] of out.samplerForTexture) {
|
|
105
|
+
expect(samp).toBe(`${tex}_sampler`);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
it('(b) bglEntries[i].binding values are unique and dense from 0..N-1', () => {
|
|
111
|
+
for (const { id, schema } of builtinSchemas) {
|
|
112
|
+
const out = derive(schema);
|
|
113
|
+
const bindings = out.bglEntries.map((e) => e.binding);
|
|
114
|
+
// unique
|
|
115
|
+
expect(new Set(bindings).size, `${id}: binding values unique`).toBe(bindings.length);
|
|
116
|
+
// dense from 0..N-1
|
|
117
|
+
for (let i = 0; i < bindings.length; i++) {
|
|
118
|
+
expect(bindings, `${id}: bglEntries[${i}].binding === ${i}`).toContain(i);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
it('(c) record-stage packing aligns with uboLayout offsets (totalBytes >= last field offset+size)', () => {
|
|
124
|
+
for (const { id, schema } of builtinSchemas) {
|
|
125
|
+
const out = derive(schema);
|
|
126
|
+
const fields = out.uboLayout.entries;
|
|
127
|
+
// offsets are non-decreasing.
|
|
128
|
+
for (let i = 1; i < fields.length; i++) {
|
|
129
|
+
const prev = fields[i - 1];
|
|
130
|
+
const cur = fields[i];
|
|
131
|
+
if (prev === undefined || cur === undefined) continue;
|
|
132
|
+
expect(
|
|
133
|
+
cur.offset,
|
|
134
|
+
`${id}: field[${i}].offset >= field[${i - 1}].offset+size`,
|
|
135
|
+
).toBeGreaterThanOrEqual(prev.offset + prev.size);
|
|
136
|
+
}
|
|
137
|
+
// totalBytes covers the last field exactly (or is 0 when no fields).
|
|
138
|
+
if (fields.length === 0) {
|
|
139
|
+
expect(out.uboLayout.totalBytes, `${id}: empty schema totalBytes==0`).toBe(0);
|
|
140
|
+
} else {
|
|
141
|
+
const last = fields[fields.length - 1];
|
|
142
|
+
if (last !== undefined) {
|
|
143
|
+
expect(
|
|
144
|
+
out.uboLayout.totalBytes,
|
|
145
|
+
`${id}: totalBytes >= last.offset+size`,
|
|
146
|
+
).toBeGreaterThanOrEqual(last.offset + last.size);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
it('(d) shadow-caster (empty schema) is graceful (D-12)', () => {
|
|
153
|
+
const out = derive(shadowCasterSchema);
|
|
154
|
+
expect(out.bglEntries).toEqual([]);
|
|
155
|
+
expect(out.uboLayout.totalBytes).toBe(0);
|
|
156
|
+
expect(out.userRegionBindingEnd).toBe(0);
|
|
157
|
+
expect(out.textureFieldNames.size).toBe(0);
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
// ─── M1 regression fence: built-in standard PBR derive + injection ───────────
|
|
162
|
+
//
|
|
163
|
+
// feat-20260621-learn-render-5-5-parallax-mapping-demo-aligned-wit M1 / w1
|
|
164
|
+
//
|
|
165
|
+
// Characterises today's derived pbr-material-merged layout so M2's
|
|
166
|
+
// refactor (derived BGL replaces fixed base-7) is validated bit-for-bit.
|
|
167
|
+
//
|
|
168
|
+
// Layout (verified against pbr-pipeline.ts + default-standard-pbr.material.json):
|
|
169
|
+
// user-region: binding 0 (UBO, 15 numeric run-merged) + 4 sampler/texture pairs
|
|
170
|
+
// = 9 entries, userRegionBindingEnd = 9
|
|
171
|
+
// ibl injection: binding 9..15 (7 entries: irradiance/prefilter cube + brdfLut 2d +
|
|
172
|
+
// 3 samplers + intensity uniform)
|
|
173
|
+
// lightmap inj.: binding 16..19 (4 entries: emissive sampler+tex + occlusion sampler+tex)
|
|
174
|
+
// total: 20 entries, bindings 0..19 dense.
|
|
175
|
+
//
|
|
176
|
+
// Invariant: injection start == userRegionBindingEnd (NOT hardcoded 7);
|
|
177
|
+
// injection order ibl-then-lightmap (D-8).
|
|
178
|
+
|
|
179
|
+
// Exact paramSchema from packages/shader/src/default-standard-pbr.material.json:68-77
|
|
180
|
+
// (15 numeric entries + 4 texture2d entries).
|
|
181
|
+
const defaultStandardPbrSchema: readonly ParamSchemaEntry[] = [
|
|
182
|
+
{ name: 'baseColor', type: 'color', default: [1, 1, 1, 1] },
|
|
183
|
+
{ name: 'metallic', type: 'f32', default: 0 },
|
|
184
|
+
{ name: 'roughness', type: 'f32', default: 0.5 },
|
|
185
|
+
{ name: 'metallicChannel', type: 'f32', default: 2 },
|
|
186
|
+
{ name: 'roughnessChannel', type: 'f32', default: 1 },
|
|
187
|
+
{ name: 'aoChannel', type: 'f32', default: 0 },
|
|
188
|
+
{ name: 'extraChannel', type: 'f32', default: 0 },
|
|
189
|
+
{ name: 'emissive', type: 'vec3', default: [0, 0, 0] },
|
|
190
|
+
{ name: 'emissiveIntensity', type: 'f32', default: 0 },
|
|
191
|
+
{ name: 'occlusionStrength', type: 'f32', default: 1 },
|
|
192
|
+
{ name: 'alphaCutoff', type: 'f32', default: 0 },
|
|
193
|
+
{ name: 'clearcoat', type: 'f32', default: 0 },
|
|
194
|
+
{ name: 'clearcoatRoughness', type: 'f32', default: 0.5 },
|
|
195
|
+
{ name: 'specularTint', type: 'vec3', default: [1, 1, 1] },
|
|
196
|
+
{ name: 'baseColorTexture', type: 'texture2d' },
|
|
197
|
+
{ name: 'metallicRoughnessTexture', type: 'texture2d' },
|
|
198
|
+
{ name: 'normalTexture', type: 'texture2d' },
|
|
199
|
+
{ name: 'specularTintTexture', type: 'texture2d' },
|
|
200
|
+
];
|
|
201
|
+
|
|
202
|
+
describe('built-in PBR derive+injection regression fence (M1 w1)', () => {
|
|
203
|
+
it('w1 user-region: derive produces 9 entries (binding 0 UBO + 4 sampler/texture pairs), userRegionBindingEnd=9', () => {
|
|
204
|
+
const out = derive(defaultStandardPbrSchema);
|
|
205
|
+
|
|
206
|
+
// 15 numeric entries run-merged into binding 0 UBO + 4 textures x 2 = 1 + 8 = 9.
|
|
207
|
+
expect(out.bglEntries.length).toBe(9);
|
|
208
|
+
expect(out.userRegionBindingEnd).toBe(9);
|
|
209
|
+
|
|
210
|
+
// Bindings 0..6 dense, no gaps.
|
|
211
|
+
const bindings = out.bglEntries.map((e) => e.binding);
|
|
212
|
+
expect(new Set(bindings).size).toBe(9);
|
|
213
|
+
for (let i = 0; i < 9; i++) {
|
|
214
|
+
expect(bindings).toContain(i);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// binding 0 is the UBO (uniform buffer).
|
|
218
|
+
expect(out.bglEntries[0]?.binding).toBe(0);
|
|
219
|
+
expect(out.bglEntries[0]?.buffer?.type).toBe('uniform');
|
|
220
|
+
|
|
221
|
+
// textureFieldNames covers exactly the 4 texture2d entries.
|
|
222
|
+
expect(out.textureFieldNames.size).toBe(4);
|
|
223
|
+
expect(out.textureFieldNames.has('baseColorTexture')).toBe(true);
|
|
224
|
+
expect(out.textureFieldNames.has('metallicRoughnessTexture')).toBe(true);
|
|
225
|
+
expect(out.textureFieldNames.has('normalTexture')).toBe(true);
|
|
226
|
+
expect(out.textureFieldNames.has('specularTintTexture')).toBe(true);
|
|
227
|
+
|
|
228
|
+
// sampler map: each texture has a paired sampler.
|
|
229
|
+
expect(out.samplerForTexture.size).toBe(4);
|
|
230
|
+
expect(out.samplerForTexture.get('baseColorTexture')).toBe('baseColorTexture_sampler');
|
|
231
|
+
expect(out.samplerForTexture.get('metallicRoughnessTexture')).toBe(
|
|
232
|
+
'metallicRoughnessTexture_sampler',
|
|
233
|
+
);
|
|
234
|
+
expect(out.samplerForTexture.get('normalTexture')).toBe('normalTexture_sampler');
|
|
235
|
+
expect(out.samplerForTexture.get('specularTintTexture')).toBe('specularTintTexture_sampler');
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
it('w1 full pipeline: derive + ibl injection + lightmap injection = 20 entries dense 0..19', () => {
|
|
239
|
+
const out = derive(defaultStandardPbrSchema);
|
|
240
|
+
// Same cast as append-injection.test.ts — forgeax shim → @webgpu/types via
|
|
241
|
+
// explicit two-step `as unknown as`, exempt from RHI gate j.
|
|
242
|
+
const userBgl = [...out.bglEntries] as unknown as readonly GPUBindGroupLayoutEntry[];
|
|
243
|
+
|
|
244
|
+
// Injection start = userRegionBindingEnd (NOT a hardcoded 7 literal).
|
|
245
|
+
const afterIbl = appendInjection(userBgl, 'ibl');
|
|
246
|
+
expect(afterIbl.length).toBe(7);
|
|
247
|
+
expect(afterIbl[0]?.binding).toBe(out.userRegionBindingEnd); // 9
|
|
248
|
+
|
|
249
|
+
const mergedAfterIbl = [...userBgl, ...afterIbl];
|
|
250
|
+
|
|
251
|
+
const afterLightmap = appendInjection(mergedAfterIbl, 'lightmap');
|
|
252
|
+
expect(afterLightmap.length).toBe(4);
|
|
253
|
+
expect(afterLightmap[0]?.binding).toBe(mergedAfterIbl.length); // 16
|
|
254
|
+
|
|
255
|
+
const fullSet = [...mergedAfterIbl, ...afterLightmap];
|
|
256
|
+
expect(fullSet.length).toBe(20);
|
|
257
|
+
|
|
258
|
+
// Bindings 0..17 dense, no gaps.
|
|
259
|
+
const bindings = fullSet.map((e) => e.binding);
|
|
260
|
+
expect(new Set(bindings).size).toBe(20);
|
|
261
|
+
for (let i = 0; i < 20; i++) {
|
|
262
|
+
expect(bindings).toContain(i);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// IBL injection starts at userRegionBindingEnd (the dynamic path, not a constant).
|
|
266
|
+
// This is the key invariant: if derive produces a different userRegionBindingEnd
|
|
267
|
+
// (e.g. 9 for a 4-texture schema), injection starts at that value, not at 7.
|
|
268
|
+
expect(afterIbl[0]?.binding).toBe(out.userRegionBindingEnd);
|
|
269
|
+
expect(afterLightmap[0]?.binding).toBe(out.userRegionBindingEnd + afterIbl.length);
|
|
270
|
+
|
|
271
|
+
// D-8: injection order is ibl-then-lightmap.
|
|
272
|
+
// IBL entries (7) precede lightmap entries (4) after the user-region.
|
|
273
|
+
const iblBindings = afterIbl.map((e) => e.binding);
|
|
274
|
+
const lightmapBindings = afterLightmap.map((e) => e.binding);
|
|
275
|
+
for (const b of iblBindings) {
|
|
276
|
+
for (const lb of lightmapBindings) {
|
|
277
|
+
expect(b).toBeLessThan(lb as number);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
it('w1 injection start is userRegionBindingEnd, not a hardcoded literal', () => {
|
|
283
|
+
const out = derive(defaultStandardPbrSchema);
|
|
284
|
+
// Prove that userRegionBindingEnd (9 today) is what feeds injection, not a
|
|
285
|
+
// hardcoded constant embedded in test logic. The derive() output IS the SSOT.
|
|
286
|
+
const userBgl = [...out.bglEntries] as unknown as readonly GPUBindGroupLayoutEntry[];
|
|
287
|
+
|
|
288
|
+
const afterIbl = appendInjection(userBgl, 'ibl');
|
|
289
|
+
// The first IBL entry's binding MUST equal out.userRegionBindingEnd.
|
|
290
|
+
// If someone changes appendInjection to use a hardcoded 7, and
|
|
291
|
+
// derive later shifts userRegionBindingEnd (e.g. to 9 for 4-texture),
|
|
292
|
+
// this assertion catches the desync.
|
|
293
|
+
expect(afterIbl[0]?.binding).toBe(out.userRegionBindingEnd);
|
|
294
|
+
// read-back guard: confirm the derive result really is 9 today.
|
|
295
|
+
expect(out.userRegionBindingEnd).toBe(9);
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
|
|
299
|
+
// ─── M2 / w2: 5-texture custom schema derive (heightTexture shifts injection) ──
|
|
300
|
+
//
|
|
301
|
+
// feat-20260621-learn-render-5-5-parallax-mapping-demo-aligned-wit M2 / w2
|
|
302
|
+
//
|
|
303
|
+
// A custom parallax shader declares a 5th texture (heightTexture) on top of the
|
|
304
|
+
// 4 standard user-region textures. derive() already handles arbitrary texture
|
|
305
|
+
// counts (it is the SSOT) — this test characterises that the 4th texture earns
|
|
306
|
+
// a distinct sampler/texture binding pair and that the engine-injection region
|
|
307
|
+
// (IBL / lightmap) shifts its start binding by exactly one sampler/texture slot
|
|
308
|
+
// pair relative to the 3-texture baseline. The point of failure is NOT derive()
|
|
309
|
+
// (which is correct today) but the pipeline-layout build path that until M2 did
|
|
310
|
+
// not consume bglEntries — that gap is closed by w5/w6.
|
|
311
|
+
//
|
|
312
|
+
// Layout for the 5-texture schema:
|
|
313
|
+
// binding 0 : UBO (numeric run-merge)
|
|
314
|
+
// binding 1/2 : baseColorTexture (sampler / texture)
|
|
315
|
+
// binding 3/4 : metallicRoughnessTexture
|
|
316
|
+
// binding 5/6 : normalTexture
|
|
317
|
+
// binding 9/10 : heightTexture (the NEW 5th texture)
|
|
318
|
+
// userRegionBindingEnd = 11 (4-texture baseline was 9 — shifted +2)
|
|
319
|
+
|
|
320
|
+
const parallax4TextureSchema: readonly ParamSchemaEntry[] = [
|
|
321
|
+
{ name: 'baseColor', type: 'color', default: [1, 1, 1, 1] },
|
|
322
|
+
{ name: 'metallic', type: 'f32', default: 0 },
|
|
323
|
+
{ name: 'roughness', type: 'f32', default: 0.5 },
|
|
324
|
+
{ name: 'heightScale', type: 'f32', default: 0.1 },
|
|
325
|
+
{ name: 'algoMode', type: 'f32', default: 0 },
|
|
326
|
+
{ name: 'baseColorTexture', type: 'texture2d' },
|
|
327
|
+
{ name: 'metallicRoughnessTexture', type: 'texture2d' },
|
|
328
|
+
{ name: 'normalTexture', type: 'texture2d' },
|
|
329
|
+
{ name: 'specularTintTexture', type: 'texture2d' },
|
|
330
|
+
{ name: 'heightTexture', type: 'texture2d' },
|
|
331
|
+
];
|
|
332
|
+
|
|
333
|
+
describe('5-texture custom schema derive: heightTexture binding + injection shift (M2 w2)', () => {
|
|
334
|
+
it('(a) heightTexture earns a distinct sampler(7)/texture(8) binding pair', () => {
|
|
335
|
+
const out = derive(parallax4TextureSchema);
|
|
336
|
+
|
|
337
|
+
// textureFieldNames covers all 5 declared textures.
|
|
338
|
+
expect(out.textureFieldNames.size).toBe(5);
|
|
339
|
+
expect(out.textureFieldNames.has('heightTexture')).toBe(true);
|
|
340
|
+
expect(out.samplerForTexture.get('heightTexture')).toBe('heightTexture_sampler');
|
|
341
|
+
|
|
342
|
+
// 1 UBO + 5 sampler/texture pairs = 11 entries.
|
|
343
|
+
expect(out.bglEntries.length).toBe(11);
|
|
344
|
+
|
|
345
|
+
// heightTexture is the 5th texture: sampler at binding 9, texture at binding 10.
|
|
346
|
+
// (after baseColor 1/2, MR 3/4, normal 5/6, specular tint 7/8).
|
|
347
|
+
const heightSampler = out.bglEntries[9];
|
|
348
|
+
const heightTexture = out.bglEntries[10];
|
|
349
|
+
expect(heightSampler?.binding).toBe(9);
|
|
350
|
+
expect(heightSampler?.sampler).toBeDefined();
|
|
351
|
+
expect(heightTexture?.binding).toBe(10);
|
|
352
|
+
expect(heightTexture?.texture).toBeDefined();
|
|
353
|
+
});
|
|
354
|
+
|
|
355
|
+
it('(b) userRegionBindingEnd=11 (4-texture baseline 9, shifted +2 by heightTexture)', () => {
|
|
356
|
+
const baseline = derive(defaultStandardPbrSchema);
|
|
357
|
+
const parallax = derive(parallax4TextureSchema);
|
|
358
|
+
expect(baseline.userRegionBindingEnd).toBe(9);
|
|
359
|
+
expect(parallax.userRegionBindingEnd).toBe(11);
|
|
360
|
+
// Exactly one sampler/texture pair (2 bindings) of shift.
|
|
361
|
+
expect(parallax.userRegionBindingEnd - baseline.userRegionBindingEnd).toBe(2);
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
it('(c) ibl injection start = userRegionBindingEnd (11), shifted +2 vs 4-texture baseline (9)', () => {
|
|
365
|
+
const out = derive(parallax4TextureSchema);
|
|
366
|
+
const userBgl = [...out.bglEntries] as unknown as readonly GPUBindGroupLayoutEntry[];
|
|
367
|
+
|
|
368
|
+
const afterIbl = appendInjection(userBgl, 'ibl');
|
|
369
|
+
// Injection start follows derive().userRegionBindingEnd dynamically — for a
|
|
370
|
+
// 5-texture schema that is 11, not the 4-texture baseline's 9.
|
|
371
|
+
expect(afterIbl[0]?.binding).toBe(out.userRegionBindingEnd);
|
|
372
|
+
expect(afterIbl[0]?.binding).toBe(11);
|
|
373
|
+
|
|
374
|
+
const mergedAfterIbl = [...userBgl, ...afterIbl];
|
|
375
|
+
const afterLightmap = appendInjection(mergedAfterIbl, 'lightmap');
|
|
376
|
+
// Lightmap follows IBL: 11 + 7 = 18.
|
|
377
|
+
expect(afterLightmap[0]?.binding).toBe(18);
|
|
378
|
+
|
|
379
|
+
// Full set: 11 user-region + 7 ibl + 4 lightmap = 22 entries, dense 0..21.
|
|
380
|
+
const fullSet = [...mergedAfterIbl, ...afterLightmap];
|
|
381
|
+
expect(fullSet.length).toBe(22);
|
|
382
|
+
const bindings = fullSet.map((e) => e.binding);
|
|
383
|
+
expect(new Set(bindings).size).toBe(22);
|
|
384
|
+
for (let i = 0; i < 22; i++) {
|
|
385
|
+
expect(bindings).toContain(i);
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
});
|