@forgeax/engine-runtime 0.1.2
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 +183 -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-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-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-registry-scene.test-d.d.ts +2 -0
- package/dist/__tests__/asset-registry-scene.test-d.d.ts.map +1 -0
- package/dist/__tests__/bind-group-cache-binding.test.d.ts +2 -0
- package/dist/__tests__/bind-group-cache-binding.test.d.ts.map +1 -0
- package/dist/__tests__/bind-group-cache-frame.test.d.ts +2 -0
- package/dist/__tests__/bind-group-cache-frame.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-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 +3 -0
- package/dist/__tests__/collect-scene-asset.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 +3 -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__/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/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__/dispatch-fullscreen-pass-composite-swapchain.dawn.test.d.ts +2 -0
- package/dist/__tests__/dispatch-fullscreen-pass-composite-swapchain.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dispatch-fullscreen-pass-custom-reads.dawn.test.d.ts +2 -0
- package/dist/__tests__/dispatch-fullscreen-pass-custom-reads.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dispatch-fullscreen-pass-depth-composite.dawn.test.d.ts +2 -0
- package/dist/__tests__/dispatch-fullscreen-pass-depth-composite.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dispatch-fullscreen-pass-params.unit.test.d.ts +2 -0
- package/dist/__tests__/dispatch-fullscreen-pass-params.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__/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__/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__/fog-producer-manifest.d.ts +131 -0
- package/dist/__tests__/fog-producer-manifest.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-pixel-probe.d.ts +42 -0
- package/dist/__tests__/fog-producer-pixel-probe.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-pixel.browser.test.d.ts +2 -0
- package/dist/__tests__/fog-producer-pixel.browser.test.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-pixel.dawn.test.d.ts +2 -0
- package/dist/__tests__/fog-producer-pixel.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-real-fixture.d.ts +5 -0
- package/dist/__tests__/fog-producer-real-fixture.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-vfx-effect.d.ts +3 -0
- package/dist/__tests__/fog-producer-vfx-effect.d.ts.map +1 -0
- package/dist/__tests__/fog-scene-asset.integration.test.d.ts +2 -0
- package/dist/__tests__/fog-scene-asset.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-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__/gpu-resource-store-cubemap-status.test.d.ts +2 -0
- package/dist/__tests__/gpu-resource-store-cubemap-status.test.d.ts.map +1 -0
- package/dist/__tests__/gpu-resource.test.d.ts +2 -0
- package/dist/__tests__/gpu-resource.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-bgl-slots.browser.test.d.ts +2 -0
- package/dist/__tests__/hdrp-bgl-slots.browser.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-buffers.unit.test.d.ts +2 -0
- package/dist/__tests__/hdrp-buffers.unit.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-execute-filter.unit.test.d.ts +2 -0
- package/dist/__tests__/hdrp-execute-filter.unit.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-gbuffer-attachments.browser.test.d.ts +2 -0
- package/dist/__tests__/hdrp-gbuffer-attachments.browser.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-pipeline-asset-type.test-d.d.ts +2 -0
- package/dist/__tests__/hdrp-pipeline-asset-type.test-d.d.ts.map +1 -0
- package/dist/__tests__/hdrp-ssao-boundary.test.d.ts +2 -0
- package/dist/__tests__/hdrp-ssao-boundary.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-ssao-falsification.test.d.ts +2 -0
- package/dist/__tests__/hdrp-ssao-falsification.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/primitive-world.d.ts +8 -0
- package/dist/__tests__/helpers/primitive-world.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/render-asset-port.d.ts +15 -0
- package/dist/__tests__/helpers/render-asset-port.d.ts.map +1 -0
- package/dist/__tests__/helpers/scene-asset-port.d.ts +9 -0
- package/dist/__tests__/helpers/scene-asset-port.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__/instances.test-d.d.ts +2 -0
- package/dist/__tests__/instances.test-d.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__/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-derived-coordinates.integration.test.d.ts +2 -0
- package/dist/__tests__/material-derived-coordinates.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-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__/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-layout-selection.test.d.ts +2 -0
- package/dist/__tests__/pipeline-layout-selection.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__/post-process-reads-narrowing.test-d.d.ts +2 -0
- package/dist/__tests__/post-process-reads-narrowing.test-d.d.ts.map +1 -0
- package/dist/__tests__/post-process-register-roundtrip.dawn.test.d.ts +2 -0
- package/dist/__tests__/post-process-register-roundtrip.dawn.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.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-feature-zero-feature.browser.test.d.ts +2 -0
- package/dist/__tests__/render-feature-zero-feature.browser.test.d.ts.map +1 -0
- package/dist/__tests__/render-pipeline-trivial.dawn.test.d.ts +2 -0
- package/dist/__tests__/render-pipeline-trivial.dawn.test.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-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__/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__/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__/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-equirect-roundtrip.test.d.ts +2 -0
- package/dist/__tests__/scene-equirect-roundtrip.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__/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-caster-membership.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-caster-membership.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-pssm.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-pssm.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-temporal.browser.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-temporal.browser.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-csm-viewport.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-viewport.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-m2.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-m2.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-m3-calibrate-run.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-m3-calibrate-run.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-m3-calibrate.d.ts +83 -0
- package/dist/__tests__/shadow-m3-calibrate.d.ts.map +1 -0
- package/dist/__tests__/shadow-m3.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-m3.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__/shadow-probe-control-flow.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-probe-control-flow.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-quality-metrics.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-quality-metrics.dawn.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__/temporal-off-path.unit.test.d.ts +2 -0
- package/dist/__tests__/temporal-off-path.unit.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__/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__/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-cache-regression.unit.test.d.ts +2 -0
- package/dist/__tests__/video-cache-regression.unit.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__/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/asset-kind.d.ts +4 -0
- package/dist/asset-kind.d.ts.map +1 -0
- package/dist/collect-scene-asset.d.ts +16 -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 +3 -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/errors/sprite-animation.d.ts +3 -0
- package/dist/errors/sprite-animation.d.ts.map +1 -0
- package/dist/index.d.ts +280 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +814 -0
- package/dist/index.mjs.map +1 -0
- package/dist/scene-asset-port.d.ts +17 -0
- package/dist/scene-asset-port.d.ts.map +1 -0
- package/dist/scene-collect-errors.d.ts +22 -0
- package/dist/scene-collect-errors.d.ts.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-utils/mount-override-fold.d.ts +16 -0
- package/dist/scene-utils/mount-override-fold.d.ts.map +1 -0
- package/dist/shadow-m3-calibrate.d.ts +40 -0
- package/dist/shadow-m3-calibrate.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 +51 -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 +100 -0
- package/src/__tests__/active-camera.unit.test.ts +193 -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-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-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-registry-scene.test-d.ts +49 -0
- package/src/__tests__/bind-group-cache-binding.test.ts +2513 -0
- package/src/__tests__/bind-group-cache-frame.test.ts +1511 -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-shader-register-e2e.test.ts +151 -0
- package/src/__tests__/cache-false-eviction.test.ts +126 -0
- package/src/__tests__/cache-isolation-matrix.test.ts +182 -0
- package/src/__tests__/camera-clear-snapshot-equivalence.unit.test.ts +76 -0
- package/src/__tests__/clamp-to-last.e2e.browser.test.ts +183 -0
- package/src/__tests__/clamp-to-last.e2e.dawn.test.ts +325 -0
- package/src/__tests__/collect-scene-asset.test.ts +876 -0
- package/src/__tests__/collect-subtree.unit.test.ts +76 -0
- package/src/__tests__/collect-transient-children-absent.test.ts +154 -0
- package/src/__tests__/collect-transient-roundtrip.test.ts +245 -0
- package/src/__tests__/collect-transient-skip.test.ts +165 -0
- package/src/__tests__/components.test-d.ts +236 -0
- package/src/__tests__/components.unit.test.ts +2665 -0
- package/src/__tests__/composite-skybox-cross-world.browser.test.ts +378 -0
- package/src/__tests__/create-renderer-assembly.integration.test.ts +42 -0
- package/src/__tests__/createRenderer-dispose.test.ts +416 -0
- package/src/__tests__/createRenderer-requiredFeatures.unit.test.ts +134 -0
- package/src/__tests__/createRenderer.browser-no-webgpu.test.ts +59 -0
- package/src/__tests__/createRenderer.unit.test.ts +231 -0
- package/src/__tests__/dawn/hello-sprite-nineslice-section.dawn.test.ts +393 -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 +241 -0
- package/src/__tests__/dawn/instances-per-instance-pbr.dawn.test.ts +611 -0
- package/src/__tests__/dawn/instances-shadow.dawn.test.ts +443 -0
- package/src/__tests__/dawn/instances-uniform-fallback.dawn.test.ts +313 -0
- package/src/__tests__/dawn/material-alpha.dawn.test.ts +304 -0
- package/src/__tests__/dawn/material-cooked-fixture.dawn.test.ts +64 -0
- package/src/__tests__/dawn/mesh-ssbo-normal-matrix.dawn.test.ts +106 -0
- package/src/__tests__/dawn/mesh-update.dawn.test.ts +342 -0
- package/src/__tests__/dawn/mipmap-srgb-linear.dawn.test.ts +117 -0
- package/src/__tests__/dawn/per-entity-material-texture-isolation.dawn.test.ts +567 -0
- package/src/__tests__/dawn/sprite-nineslice-mesh-bind.dawn.test.ts +251 -0
- package/src/__tests__/dawn/tonemap.dawn.test.ts +107 -0
- package/src/__tests__/dawn/user-handle-mesh-render.dawn.test.ts +291 -0
- package/src/__tests__/dawn/user-mesh-upload.dawn.test.ts +204 -0
- package/src/__tests__/dawn/zero-manifest-mesh-fail.dawn.test.ts +122 -0
- package/src/__tests__/dawn/zero-manifest-ready.dawn.test.ts +99 -0
- package/src/__tests__/demo-sortscope-migration.unit.test.ts +115 -0
- package/src/__tests__/derive-bgl-integration.test.ts +398 -0
- package/src/__tests__/derive-render-data-skin.unit.test.ts +90 -0
- package/src/__tests__/dispatch-fullscreen-pass-composite-swapchain.dawn.test.ts +204 -0
- package/src/__tests__/dispatch-fullscreen-pass-custom-reads.dawn.test.ts +297 -0
- package/src/__tests__/dispatch-fullscreen-pass-depth-composite.dawn.test.ts +271 -0
- package/src/__tests__/dispatch-fullscreen-pass-params.unit.test.ts +321 -0
- package/src/__tests__/draw-published.ts +10 -0
- package/src/__tests__/environment-error-exhaustive.test-d.ts +28 -0
- package/src/__tests__/equirect-bc6h.integration.test.ts +35 -0
- package/src/__tests__/error-exhaustive.test.ts +220 -0
- package/src/__tests__/extract-frames-graceful-degradation.test.ts +298 -0
- package/src/__tests__/extract-frames-merge.test.ts +643 -0
- package/src/__tests__/extract-frames-reset.test.ts +158 -0
- package/src/__tests__/extract-record-no-hardcoded-texture-fields.test.ts +92 -0
- package/src/__tests__/fog-producer-manifest.ts +162 -0
- package/src/__tests__/fog-producer-pixel-probe.ts +263 -0
- package/src/__tests__/fog-producer-pixel.browser.test.ts +26 -0
- package/src/__tests__/fog-producer-pixel.dawn.test.ts +55 -0
- package/src/__tests__/fog-producer-real-fixture.ts +805 -0
- package/src/__tests__/fog-producer-vfx-effect.ts +272 -0
- package/src/__tests__/fog-scene-asset.integration.test.ts +123 -0
- package/src/__tests__/frame-targets-shadow-regression.unit.test.ts +28 -0
- package/src/__tests__/fullscreen-post-bgl-depth.test.ts +131 -0
- package/src/__tests__/fullscreen-post-depth-params-arity.test.ts +84 -0
- package/src/__tests__/fullscreen-post-process-pass.dawn.test.ts +320 -0
- package/src/__tests__/fullscreen-post-process-pass.unit.test.ts +107 -0
- package/src/__tests__/fxaa-pixel-diff.dawn.test.ts +292 -0
- package/src/__tests__/fxaa-validation-and-resize.dawn.test.ts +358 -0
- package/src/__tests__/fxaa-zero-overhead.dawn.test.ts +254 -0
- package/src/__tests__/geometry.unit.test.ts +2265 -0
- package/src/__tests__/glyph-tilemap-worldid.test.ts +146 -0
- package/src/__tests__/gpu-resource-cow-survivor.test.ts +388 -0
- package/src/__tests__/gpu-resource-store-cubemap-status.test.ts +207 -0
- package/src/__tests__/gpu-resource.test.ts +1206 -0
- package/src/__tests__/hdrp-bgl-slots.browser.test.ts +50 -0
- package/src/__tests__/hdrp-buffers.unit.test.ts +70 -0
- package/src/__tests__/hdrp-execute-filter.unit.test.ts +200 -0
- package/src/__tests__/hdrp-gbuffer-attachments.browser.test.ts +64 -0
- package/src/__tests__/hdrp-pipeline-asset-type.test-d.ts +139 -0
- package/src/__tests__/hdrp-ssao-boundary.test.ts +237 -0
- package/src/__tests__/hdrp-ssao-falsification.test.ts +289 -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/primitive-world.ts +91 -0
- package/src/__tests__/helpers/register-runtime-components.ts +69 -0
- package/src/__tests__/helpers/register-scene-components.ts +10 -0
- package/src/__tests__/helpers/render-asset-port.ts +65 -0
- package/src/__tests__/helpers/scene-asset-port.ts +23 -0
- package/src/__tests__/helpers/tilemap-assets.ts +29 -0
- package/src/__tests__/instances.test-d.ts +61 -0
- package/src/__tests__/light-attenuation-formula.test.ts +171 -0
- package/src/__tests__/light-casters-9-light.browser.test.ts +880 -0
- package/src/__tests__/light-gpu-byte-neutral.unit.test.ts +163 -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 +2936 -0
- package/src/__tests__/m3-vec-negative.unit.test.ts +45 -0
- package/src/__tests__/m5-browser-dawn-sweep.integration.test.ts +8 -0
- package/src/__tests__/material-derived-coordinates.integration.test.ts +100 -0
- package/src/__tests__/material-texture-uv-scale.unit.test.ts +49 -0
- package/src/__tests__/materials.unit.test.ts +271 -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 +406 -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__/node-shims.d.ts +33 -0
- package/src/__tests__/pass-selector.unit.test.ts +102 -0
- package/src/__tests__/pbr-pipeline.unit.test.ts +204 -0
- package/src/__tests__/pipeline-builder-msaa.unit.test.ts +224 -0
- package/src/__tests__/pipeline-cache-keying.unit.test.ts +316 -0
- package/src/__tests__/pipeline-layout-selection.test.ts +298 -0
- package/src/__tests__/pipeline-spec.test.ts +1061 -0
- package/src/__tests__/pipeline.unit.test.ts +6974 -0
- package/src/__tests__/point-light-shadow.browser.test.ts +278 -0
- package/src/__tests__/point-light-shadow.dawn.test.ts +822 -0
- package/src/__tests__/point-light-shadow.unit.test.ts +716 -0
- package/src/__tests__/post-process-error-codes.unit.test.ts +158 -0
- package/src/__tests__/post-process-params-component.unit.test.ts +153 -0
- package/src/__tests__/post-process-params-extract.unit.test.ts +100 -0
- package/src/__tests__/post-process-reads-narrowing.test-d.ts +52 -0
- package/src/__tests__/post-process-register-roundtrip.dawn.test.ts +230 -0
- package/src/__tests__/postprocess-camera-consistency.test.ts +378 -0
- package/src/__tests__/profiler-assembly.integration.test.ts +74 -0
- package/src/__tests__/propagate-transforms.dawn.test.ts +253 -0
- package/src/__tests__/record-worldid-isolation.test.ts +247 -0
- package/src/__tests__/recover-error-exhaustive.test-d.ts +35 -0
- package/src/__tests__/render-error-exhaustive.test-d.ts +245 -0
- package/src/__tests__/render-feature-assembly.test-d.ts +28 -0
- package/src/__tests__/render-feature-prepared-graphics-docs.unit.test.ts +124 -0
- package/src/__tests__/render-feature-prepared-graphics.browser.test.ts +582 -0
- package/src/__tests__/render-feature-prepared-graphics.dawn.test.ts +602 -0
- package/src/__tests__/render-feature-prepared-graphics.integration.test.ts +264 -0
- package/src/__tests__/render-feature-prepared-graphics.regression.integration.test.ts +361 -0
- package/src/__tests__/render-feature-recover.integration.test.ts +142 -0
- package/src/__tests__/render-feature-runtime-surface.test-d.ts +45 -0
- package/src/__tests__/render-feature-zero-feature.browser.test.ts +152 -0
- package/src/__tests__/render-pipeline-trivial.dawn.test.ts +525 -0
- package/src/__tests__/render-schema-consumer.integration.test.ts +25 -0
- package/src/__tests__/render-schema-owner-boundary.unit.test.ts +26 -0
- package/src/__tests__/render-system-cross-world-overlay-queue.test.ts +172 -0
- package/src/__tests__/render-system-extract-dispatch-ordering.test.ts +322 -0
- package/src/__tests__/render-system-extract.test.ts +1399 -0
- package/src/__tests__/render-system-fold-bucket.unit.test.ts +288 -0
- package/src/__tests__/render-system-fold-fallback.unit.test.ts +148 -0
- package/src/__tests__/render-system-fold-material.unit.test.ts +145 -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 +306 -0
- package/src/__tests__/render-system-mega.test.ts +1578 -0
- package/src/__tests__/render-system-owner-split-contract.test.ts +200 -0
- package/src/__tests__/render-system-record-multi-material-textureview.test.ts +684 -0
- package/src/__tests__/render-system-record-per-submesh-transparency.test.ts +464 -0
- package/src/__tests__/render-system-record.test.ts +1505 -0
- package/src/__tests__/render-system-record.unit.test.ts +270 -0
- package/src/__tests__/render-system-skin-bg.unit.test.ts +147 -0
- package/src/__tests__/renderer-consumer.test-d.ts +5 -0
- package/src/__tests__/renderer-health.unit.test.ts +935 -0
- package/src/__tests__/renderer-lifecycle.integration.test.ts +29 -0
- package/src/__tests__/renderer-recover.unit.test.ts +1075 -0
- package/src/__tests__/renderer-result.test-d.ts +26 -0
- package/src/__tests__/renderer-surface.unit.test.ts +416 -0
- package/src/__tests__/resolve-depth-only-view.test.ts +173 -0
- package/src/__tests__/rhi-null-command-flow.unit.test.ts +273 -0
- package/src/__tests__/rhi-null-noop-behavior.unit.test.ts +196 -0
- package/src/__tests__/rhi-null-renderer-lifecycle.unit.test.ts +182 -0
- package/src/__tests__/roots-to-scene-asset.test.ts +605 -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-equirect-roundtrip.test.ts +33 -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__/serialize-scene-asset.test.ts +336 -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 +334 -0
- package/src/__tests__/shadow-csm-caster-membership.test.ts +232 -0
- package/src/__tests__/shadow-csm-component.test.ts +286 -0
- package/src/__tests__/shadow-csm-extract.test.ts +334 -0
- package/src/__tests__/shadow-csm-orthoz.test.ts +151 -0
- package/src/__tests__/shadow-csm-pssm.test.ts +142 -0
- package/src/__tests__/shadow-csm-runtime-vary.dawn.test.ts +198 -0
- package/src/__tests__/shadow-csm-shader.dawn.test.ts +358 -0
- package/src/__tests__/shadow-csm-temporal.browser.test.ts +145 -0
- package/src/__tests__/shadow-csm-tile-consistency.test.ts +419 -0
- package/src/__tests__/shadow-csm-ubo.dawn.test.ts +293 -0
- package/src/__tests__/shadow-csm-ubo.test.ts +300 -0
- package/src/__tests__/shadow-csm-viewport.browser.test.ts +85 -0
- package/src/__tests__/shadow-csm-viewport.test.ts +74 -0
- package/src/__tests__/shadow-fields-observable.dawn.test.ts +615 -0
- package/src/__tests__/shadow-m1.dawn.test.ts +105 -0
- package/src/__tests__/shadow-m2.dawn.test.ts +394 -0
- package/src/__tests__/shadow-m3-calibrate-run.dawn.test.ts +248 -0
- package/src/__tests__/shadow-m3-calibrate.ts +203 -0
- package/src/__tests__/shadow-m3.dawn.test.ts +288 -0
- package/src/__tests__/shadow-mesh-ssbo-order.test.ts +64 -0
- package/src/__tests__/shadow-probe-control-flow.dawn.test.ts +264 -0
- package/src/__tests__/shadow-quality-metrics.dawn.test.ts +324 -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 +23 -0
- package/src/__tests__/skin-parented-double-transform.test.ts +268 -0
- package/src/__tests__/skylight-lazy-projection.test.ts +359 -0
- package/src/__tests__/sparse-tag-scene-roundtrip.test.ts +43 -0
- package/src/__tests__/sprite-cullmode-flip.dawn.test.ts +470 -0
- package/src/__tests__/sprite-lit-bgl-byte-identical.test.ts +141 -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 +347 -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 +1229 -0
- package/src/__tests__/ssao-pipelines.test.ts +275 -0
- package/src/__tests__/ssao-uniform-layout.test.ts +178 -0
- package/src/__tests__/static-rig.integration.test.ts +9 -0
- package/src/__tests__/stencil-outline-pixel.dawn.test.ts +295 -0
- package/src/__tests__/swap-chain-format.unit.test.ts +117 -0
- package/src/__tests__/systems.unit.test.ts +9957 -0
- package/src/__tests__/temporal-off-path.unit.test.ts +69 -0
- package/src/__tests__/text.unit.test.ts +466 -0
- package/src/__tests__/tilemap-childed-despawn.test.ts +468 -0
- package/src/__tests__/tilemap-chunk-extract.overhang-bounds.test.ts +314 -0
- package/src/__tests__/tilemap-chunk-extract.propagate-order.test.ts +80 -0
- package/src/__tests__/tilemap-chunk-extract.terrain-rewrite.unit.test.ts +424 -0
- package/src/__tests__/tilemap-chunk-extract.test.ts +236 -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 +300 -0
- package/src/__tests__/tilemap-material-cache.test.ts +137 -0
- package/src/__tests__/tilemap-multi-atlas.test.ts +237 -0
- package/src/__tests__/tilemap-owner-boundary.unit.test.ts +63 -0
- package/src/__tests__/tilemap-region-pack.test.ts +153 -0
- package/src/__tests__/tilemap-spawn-flip-pivot.test.ts +274 -0
- package/src/__tests__/tilemap-uv-inset.test.ts +204 -0
- package/src/__tests__/tilemap-validate.test.ts +201 -0
- package/src/__tests__/transform-hierarchy-pixel-diff.dawn.test.ts +274 -0
- package/src/__tests__/transient-fields-collect.test.ts +203 -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-cache-regression.unit.test.ts +186 -0
- package/src/__tests__/video-extract-bindgroup.dawn.test.ts +450 -0
- package/src/__tests__/view-ubo-layout.browser.test.ts +183 -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 +228 -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/asset-kind.ts +7 -0
- package/src/collect-scene-asset.ts +689 -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 +61 -0
- package/src/dev-import-transport.ts +97 -0
- package/src/errors/environment.ts +6 -0
- package/src/errors/sprite-animation.ts +5 -0
- package/src/index.ts +442 -0
- package/src/scene-asset-port.ts +32 -0
- package/src/scene-collect-errors.ts +30 -0
- package/src/scene-instances/__tests__/post-spawn-resolve-joints.unit.test.ts +183 -0
- package/src/scene-utils/mount-override-fold.ts +217 -0
- package/src/shadow-m3-calibrate.ts +171 -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,316 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cacheKeyOf,
|
|
3
|
+
type PipelineSpec,
|
|
4
|
+
SPRITE_PASS_PER_INSTANCE_REGION_VARIANT_SET,
|
|
5
|
+
} from '@forgeax/engine-render/internal';
|
|
6
|
+
import { KNOWN_PASS_KINDS, type PassKind, type VertexAttributeMap } from '@forgeax/engine-types';
|
|
7
|
+
import { describe, expect, expectTypeOf, it } from 'vitest';
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* feat-20260615-pipeline-spec-ssot M2-T2: cache key axis tests migrated from
|
|
11
|
+
* materialShaderPipelineCacheKey to cacheKeyOf(spec).
|
|
12
|
+
*
|
|
13
|
+
* Post-migration: cacheKeyOf covers all 4 PipelineSpec axes (shader /
|
|
14
|
+
* attachments / geometry / renderState). The old 8-segment string construction
|
|
15
|
+
* is deleted. These tests verify equivalent cache-key semantics.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
const DEFAULT_VERTEX_LAYOUT: VertexAttributeMap = {
|
|
19
|
+
position: new Float32Array(0),
|
|
20
|
+
normal: new Float32Array(0),
|
|
21
|
+
uv: new Float32Array(0),
|
|
22
|
+
tangent: new Float32Array(0),
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
function specOf(
|
|
26
|
+
id: string,
|
|
27
|
+
isHdr: boolean,
|
|
28
|
+
passKind: string = 'forward',
|
|
29
|
+
topology = 'triangle-list' as const,
|
|
30
|
+
variantSet?: string,
|
|
31
|
+
sampleCount: 1 | 4 = 1,
|
|
32
|
+
): PipelineSpec {
|
|
33
|
+
const colorFormat: GPUTextureFormat = isHdr
|
|
34
|
+
? ('rgba16float' as unknown as GPUTextureFormat)
|
|
35
|
+
: ('bgra8unorm-srgb' as unknown as GPUTextureFormat);
|
|
36
|
+
const depthFormat: GPUTextureFormat =
|
|
37
|
+
passKind === 'shadow-caster'
|
|
38
|
+
? ('depth32float' as unknown as GPUTextureFormat)
|
|
39
|
+
: ('depth24plus-stencil8' as unknown as GPUTextureFormat);
|
|
40
|
+
|
|
41
|
+
return {
|
|
42
|
+
shader: { id, passKind, variantSet },
|
|
43
|
+
attachments: {
|
|
44
|
+
colorFormats: passKind === 'shadow-caster' ? [] : [colorFormat],
|
|
45
|
+
depthFormat,
|
|
46
|
+
sampleCount,
|
|
47
|
+
},
|
|
48
|
+
geometry: {
|
|
49
|
+
topology,
|
|
50
|
+
vertexLayout: DEFAULT_VERTEX_LAYOUT,
|
|
51
|
+
},
|
|
52
|
+
renderState: undefined,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
describe('cacheKeyOf passKind dimension', () => {
|
|
57
|
+
const SHADER_ID = 'forgeax::default-unlit';
|
|
58
|
+
|
|
59
|
+
it('same shaderId + entries produce different keys for forward vs shadow-caster', () => {
|
|
60
|
+
const forwardKey = cacheKeyOf(specOf(SHADER_ID, false, 'forward'));
|
|
61
|
+
const shadowKey = cacheKeyOf(specOf(SHADER_ID, false, 'shadow-caster'));
|
|
62
|
+
|
|
63
|
+
expect(forwardKey).not.toBe(shadowKey);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it('same passKind + entries produce identical keys', () => {
|
|
67
|
+
const key1 = cacheKeyOf(specOf(SHADER_ID, true, 'forward'));
|
|
68
|
+
const key2 = cacheKeyOf(specOf(SHADER_ID, true, 'forward'));
|
|
69
|
+
|
|
70
|
+
expect(key1).toBe(key2);
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
it('default passKind is forward (backward compatibility)', () => {
|
|
74
|
+
const explicitKey = cacheKeyOf(specOf(SHADER_ID, false, 'forward'));
|
|
75
|
+
const defaultKey = cacheKeyOf(specOf(SHADER_ID, false));
|
|
76
|
+
|
|
77
|
+
expect(defaultKey).toBe(explicitKey);
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
it('HDR variant + passKind both distinguish keys', () => {
|
|
81
|
+
const ldrForward = cacheKeyOf(specOf(SHADER_ID, false, 'forward'));
|
|
82
|
+
const hdrForward = cacheKeyOf(specOf(SHADER_ID, true, 'forward'));
|
|
83
|
+
const ldrShadow = cacheKeyOf(specOf(SHADER_ID, false, 'shadow-caster'));
|
|
84
|
+
|
|
85
|
+
const unique = new Set([ldrForward, hdrForward, ldrShadow]);
|
|
86
|
+
expect(unique.size).toBe(3);
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
it('different shaderId + same passKind produce different keys', () => {
|
|
90
|
+
const key1 = cacheKeyOf(specOf('forgeax::default-unlit', false, 'forward'));
|
|
91
|
+
const key2 = cacheKeyOf(specOf('forgeax::default-standard-pbr', false, 'forward'));
|
|
92
|
+
|
|
93
|
+
expect(key1).not.toBe(key2);
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
it('variantSet and passKind are orthogonal cache dimensions', () => {
|
|
97
|
+
const urpForward = cacheKeyOf(
|
|
98
|
+
specOf(
|
|
99
|
+
SHADER_ID,
|
|
100
|
+
false,
|
|
101
|
+
'forward',
|
|
102
|
+
'triangle-list',
|
|
103
|
+
'CLUSTER_FORWARD_AVAILABLE=false+STORAGE_BUFFER_AVAILABLE=true',
|
|
104
|
+
),
|
|
105
|
+
);
|
|
106
|
+
const hdrpForward = cacheKeyOf(specOf(SHADER_ID, false, 'forward', 'triangle-list', ''));
|
|
107
|
+
const urpShadow = cacheKeyOf(
|
|
108
|
+
specOf(
|
|
109
|
+
SHADER_ID,
|
|
110
|
+
false,
|
|
111
|
+
'shadow-caster',
|
|
112
|
+
'triangle-list',
|
|
113
|
+
'CLUSTER_FORWARD_AVAILABLE=false+STORAGE_BUFFER_AVAILABLE=true',
|
|
114
|
+
),
|
|
115
|
+
);
|
|
116
|
+
const hdrpShadow = cacheKeyOf(specOf(SHADER_ID, false, 'shadow-caster', 'triangle-list', ''));
|
|
117
|
+
const unique = new Set([urpForward, hdrpForward, urpShadow, hdrpShadow]);
|
|
118
|
+
expect(unique.size).toBe(4);
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
/*
|
|
123
|
+
* feat-20260612-hdrp-deferred-shading-learn-render-5-8 M1 / w1:
|
|
124
|
+
* PassKind 4-value closed union narrow test.
|
|
125
|
+
*
|
|
126
|
+
* AC-03: PassKind = 'forward' | 'deferred' | 'lighting' | 'shadow-caster'.
|
|
127
|
+
* The union is closed; TS exhaustive-switch without default must compile.
|
|
128
|
+
* The pre-rename value 'shadow-depth-only' must NOT be a member of the union (backwards-assert).
|
|
129
|
+
*/
|
|
130
|
+
describe('PassKind open string + KNOWN_PASS_KINDS (feat-20260615 D-10)', () => {
|
|
131
|
+
// M2-T4 expanded KNOWN_PASS_KINDS from 4 to 6 entries by adding 'post-process'
|
|
132
|
+
// and 'skybox' so fullscreen-post + skybox passes can route through
|
|
133
|
+
// SPEC_CONST_TABLE / getOrBuildPipeline rather than raw createRenderPipeline.
|
|
134
|
+
it('KNOWN_PASS_KINDS has exactly 7 entries', () => {
|
|
135
|
+
expect(KNOWN_PASS_KINDS).toHaveLength(7);
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
it('KNOWN_PASS_KINDS contains the 6 engine-shipped pass kinds', () => {
|
|
139
|
+
expect(KNOWN_PASS_KINDS).toContain('forward');
|
|
140
|
+
expect(KNOWN_PASS_KINDS).toContain('deferred');
|
|
141
|
+
expect(KNOWN_PASS_KINDS).toContain('temporal');
|
|
142
|
+
expect(KNOWN_PASS_KINDS).toContain('lighting');
|
|
143
|
+
expect(KNOWN_PASS_KINDS).toContain('shadow-caster');
|
|
144
|
+
expect(KNOWN_PASS_KINDS).toContain('post-process');
|
|
145
|
+
expect(KNOWN_PASS_KINDS).toContain('skybox');
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
it('shadow-caster is a valid PassKind value', () => {
|
|
149
|
+
const pk: PassKind = 'shadow-caster';
|
|
150
|
+
expect(pk).toBe('shadow-caster');
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
it('deferred and lighting are valid PassKind values', () => {
|
|
154
|
+
const pk1: PassKind = 'deferred';
|
|
155
|
+
const pk2: PassKind = 'lighting';
|
|
156
|
+
expect(pk1).toBe('deferred');
|
|
157
|
+
expect(pk2).toBe('lighting');
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
it('PassKind is an open string (assignable from any string)', () => {
|
|
161
|
+
expectTypeOf<PassKind>().toEqualTypeOf<string>();
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
it('PassKind accepts unknown custom strings', () => {
|
|
165
|
+
const pk: PassKind = 'custom-user-pass';
|
|
166
|
+
expect(typeof pk).toBe('string');
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
/*
|
|
171
|
+
* bug-20260615-msaa-silently-disables-custom-material-shaders M1 + M2 / m2-1:
|
|
172
|
+
* sampleCount cache-key axis (migrated to cacheKeyOf).
|
|
173
|
+
*
|
|
174
|
+
* sampleCount is part of the attachments axis in PipelineSpec.
|
|
175
|
+
* spec.sampleCount: 1 | 4 — distinct values produce distinct cache keys.
|
|
176
|
+
*/
|
|
177
|
+
describe('cacheKeyOf sampleCount axis', () => {
|
|
178
|
+
const SHADER_ID = 'forgeax::default-unlit';
|
|
179
|
+
|
|
180
|
+
it('sampleCount=1 produces stable key', () => {
|
|
181
|
+
const key1 = cacheKeyOf(specOf(SHADER_ID, false, 'forward', 'triangle-list', undefined, 1));
|
|
182
|
+
const key2 = cacheKeyOf(specOf(SHADER_ID, false, 'forward', 'triangle-list', undefined, 1));
|
|
183
|
+
expect(key1).toBe(key2);
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
it('sampleCount=4 produces a key distinct from count=1 (MSAA-variant slot)', () => {
|
|
187
|
+
const keyCount1 = cacheKeyOf(
|
|
188
|
+
specOf(SHADER_ID, false, 'forward', 'triangle-list', undefined, 1),
|
|
189
|
+
);
|
|
190
|
+
const keyCount4 = cacheKeyOf(
|
|
191
|
+
specOf(SHADER_ID, false, 'forward', 'triangle-list', undefined, 4),
|
|
192
|
+
);
|
|
193
|
+
expect(keyCount1).not.toBe(keyCount4);
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
it('sampleCount interacts correctly with existing axes (hdr + variantSet + passKind)', () => {
|
|
197
|
+
const key1 = cacheKeyOf(specOf(SHADER_ID, false, 'forward', 'triangle-list', undefined, 1));
|
|
198
|
+
const key2 = cacheKeyOf(specOf(SHADER_ID, true, 'forward', 'triangle-list', undefined, 1));
|
|
199
|
+
const key3 = cacheKeyOf(
|
|
200
|
+
specOf(
|
|
201
|
+
SHADER_ID,
|
|
202
|
+
false,
|
|
203
|
+
'forward',
|
|
204
|
+
'triangle-list',
|
|
205
|
+
'CLUSTER_FORWARD_AVAILABLE=false+STORAGE_BUFFER_AVAILABLE=true',
|
|
206
|
+
1,
|
|
207
|
+
),
|
|
208
|
+
);
|
|
209
|
+
const key4 = cacheKeyOf(
|
|
210
|
+
specOf(SHADER_ID, false, 'shadow-caster', 'triangle-list', undefined, 1),
|
|
211
|
+
);
|
|
212
|
+
const unique = new Set([key1, key2, key3, key4]);
|
|
213
|
+
expect(unique.size).toBe(4);
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
/*
|
|
218
|
+
* bug-20260708 M2 (b) AC-02: `cacheKeyOf` sentinel `~` distinguishes
|
|
219
|
+
* `variantSet=undefined` from canonical all-true key `''`.
|
|
220
|
+
*
|
|
221
|
+
* Before the sentinel `?? ''` collapsed both into the same segment,
|
|
222
|
+
* causing character (no SpriteInstances, variantSet=undefined) and
|
|
223
|
+
* terrain-fold (SpriteInstances batch,
|
|
224
|
+
* `SPRITE_PASS_PER_INSTANCE_REGION_VARIANT_SET === ''`) requests to hit
|
|
225
|
+
* the same pipeline cache slot — the first-cached PSO wins, and both end
|
|
226
|
+
* up with the same shader module (research R-11 / R-12 flow rebuild).
|
|
227
|
+
*
|
|
228
|
+
* These assertions are the reverse falsifier for the sentinel:
|
|
229
|
+
* 1. undefined vs canonical '' (all-true) MUST produce distinct keys.
|
|
230
|
+
* 2. undefined vs an explicit `'PER_INSTANCE_REGION=true'`-style key
|
|
231
|
+
* MUST produce distinct keys (sentinel keeps `undefined` separate
|
|
232
|
+
* from any concrete variantSet string).
|
|
233
|
+
* 3. `''` vs an explicit `'PER_INSTANCE_REGION=true'`-style key MUST
|
|
234
|
+
* produce distinct keys (unchanged axis discipline, sanity check
|
|
235
|
+
* the sentinel doesn't collapse other values by accident).
|
|
236
|
+
*/
|
|
237
|
+
describe('cacheKeyOf variantSet sentinel (bug-20260708 AC-02)', () => {
|
|
238
|
+
const SHADER_ID = 'forgeax::sprite';
|
|
239
|
+
|
|
240
|
+
it('cacheKeyOf(variantSet=undefined) !== cacheKeyOf(variantSet="") — sentinel decouples undefined from canonical all-true', () => {
|
|
241
|
+
const undefKey = cacheKeyOf(specOf(SHADER_ID, false, 'forward', 'triangle-list', undefined));
|
|
242
|
+
const emptyKey = cacheKeyOf(specOf(SHADER_ID, false, 'forward', 'triangle-list', ''));
|
|
243
|
+
expect(undefKey).not.toBe(emptyKey);
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
it('cacheKeyOf(variantSet=undefined) !== cacheKeyOf(variantSet="PER_INSTANCE_REGION=true")', () => {
|
|
247
|
+
const undefKey = cacheKeyOf(specOf(SHADER_ID, false, 'forward', 'triangle-list', undefined));
|
|
248
|
+
const namedKey = cacheKeyOf(
|
|
249
|
+
specOf(SHADER_ID, false, 'forward', 'triangle-list', 'PER_INSTANCE_REGION=true'),
|
|
250
|
+
);
|
|
251
|
+
expect(undefKey).not.toBe(namedKey);
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
it('cacheKeyOf(variantSet="") !== cacheKeyOf(variantSet="PER_INSTANCE_REGION=true")', () => {
|
|
255
|
+
const emptyKey = cacheKeyOf(specOf(SHADER_ID, false, 'forward', 'triangle-list', ''));
|
|
256
|
+
const namedKey = cacheKeyOf(
|
|
257
|
+
specOf(SHADER_ID, false, 'forward', 'triangle-list', 'PER_INSTANCE_REGION=true'),
|
|
258
|
+
);
|
|
259
|
+
expect(emptyKey).not.toBe(namedKey);
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
it("sentinel `~` reserved: no legitimate variantSet literal in the codebase contains `~` (reverse falsifier for R-2')", () => {
|
|
263
|
+
// The sentinel `~` (ASCII 0x7E) is reserved for the `variantSet=undefined`
|
|
264
|
+
// branch of `cacheKeyOf`. This assertion pins the reserved status by
|
|
265
|
+
// enumerating known variantSet literals used by the runtime: none may
|
|
266
|
+
// contain the sentinel char. Future axis additions must not introduce
|
|
267
|
+
// `~` into any variantSet string (a new axis using `~` collides with
|
|
268
|
+
// the sentinel and re-opens the R-11 undefined-vs-empty collapse).
|
|
269
|
+
const knownVariantSets: readonly (string | undefined)[] = [
|
|
270
|
+
undefined,
|
|
271
|
+
'',
|
|
272
|
+
'PER_INSTANCE_REGION=true',
|
|
273
|
+
'CLUSTER_FORWARD_AVAILABLE=true+STORAGE_BUFFER_AVAILABLE=true',
|
|
274
|
+
'CLUSTER_FORWARD_AVAILABLE=false+STORAGE_BUFFER_AVAILABLE=true',
|
|
275
|
+
'STORAGE_BUFFER_AVAILABLE=true',
|
|
276
|
+
SPRITE_PASS_PER_INSTANCE_REGION_VARIANT_SET,
|
|
277
|
+
];
|
|
278
|
+
for (const vs of knownVariantSets) {
|
|
279
|
+
if (vs !== undefined) {
|
|
280
|
+
expect(vs).not.toContain('~');
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
/*
|
|
287
|
+
* bug-20260708 M2 (c) AC-05: `SPRITE_PASS_PER_INSTANCE_REGION_VARIANT_SET`
|
|
288
|
+
* is aligned with the canonical variant key so `findVariantByKey` on the
|
|
289
|
+
* sprite manifest returns the PIR=true+SBA=true (all-true) variant WGSL.
|
|
290
|
+
* Verifies the constant's cacheKey participates in the cache-slot space
|
|
291
|
+
* distinct from `variantSet=undefined` (per AC-02 sentinel).
|
|
292
|
+
*/
|
|
293
|
+
describe('SPRITE_PASS_PER_INSTANCE_REGION_VARIANT_SET (bug-20260708 AC-05)', () => {
|
|
294
|
+
const SHADER_ID = 'forgeax::sprite';
|
|
295
|
+
|
|
296
|
+
it('constant equals canonical all-true key `""` (findVariantByKey resolves to PIR=true+SBA=true variant)', () => {
|
|
297
|
+
// Canonical all-true key semantics per @forgeax/engine-shader:
|
|
298
|
+
// "Empty key `""` denotes the default variant (all axes `true`)".
|
|
299
|
+
// Sprite variants are keyed as `""` for PIR=true+SBA=true.
|
|
300
|
+
expect(SPRITE_PASS_PER_INSTANCE_REGION_VARIANT_SET).toBe('');
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
it('cacheKeyOf(spec with SPRITE_PASS_...VARIANT_SET) !== cacheKeyOf(spec with variantSet=undefined) — sentinel gate', () => {
|
|
304
|
+
const spritePassKey = cacheKeyOf(
|
|
305
|
+
specOf(
|
|
306
|
+
SHADER_ID,
|
|
307
|
+
false,
|
|
308
|
+
'forward',
|
|
309
|
+
'triangle-list',
|
|
310
|
+
SPRITE_PASS_PER_INSTANCE_REGION_VARIANT_SET,
|
|
311
|
+
),
|
|
312
|
+
);
|
|
313
|
+
const undefKey = cacheKeyOf(specOf(SHADER_ID, false, 'forward', 'triangle-list', undefined));
|
|
314
|
+
expect(spritePassKey).not.toBe(undefKey);
|
|
315
|
+
});
|
|
316
|
+
});
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
// pipeline-layout-selection.test.ts
|
|
2
|
+
// feat-20260609-hdrp-cluster-fragment-ggx M4.5 / w35 (test, TDD red phase).
|
|
3
|
+
//
|
|
4
|
+
// Verifies that the per-variant PipelineLayout selector correctly picks
|
|
5
|
+
// `hdrpPbrPipelineLayout` for HDRP variants (CLUSTER_FORWARD_AVAILABLE=true
|
|
6
|
+
// or canonical '' all-true) and `pbrPipelineLayout` for URP variants
|
|
7
|
+
// (CLUSTER_FORWARD_AVAILABLE=false / undefined).
|
|
8
|
+
//
|
|
9
|
+
// Anchors:
|
|
10
|
+
// - plan-strategy D-10: per-variant PipelineLayout (option A) -- boot-time
|
|
11
|
+
// build a second `hdrpPbrPipelineLayout` with HDRP 7-slot BGL; selector
|
|
12
|
+
// dispatches by `variantSet`.
|
|
13
|
+
// - plan-strategy D-11: variantSet `''` is canonical all-true (when the
|
|
14
|
+
// shader declares CLUSTER_FORWARD_AVAILABLE axis) -- HDRP path.
|
|
15
|
+
// - implement-decisions section 3: hotfix-1 left URP-side standard pipeline
|
|
16
|
+
// using the 1-slot pbr-mesh-array BGL, mismatching HDRP 7-slot BGL.
|
|
17
|
+
//
|
|
18
|
+
// Mocks:
|
|
19
|
+
// PipelineLayout is an opaque RHI handle; we use sentinel objects to test
|
|
20
|
+
// reference identity (the selector returns one of two layouts).
|
|
21
|
+
//
|
|
22
|
+
// TDD red phase (w35): `selectPipelineLayoutForVariant` does NOT exist and
|
|
23
|
+
// pipelineState carries no `hdrpPbrPipelineLayout` field yet. Test imports
|
|
24
|
+
// will fail until w36 lands the boot-time build + w37 lands the selector.
|
|
25
|
+
|
|
26
|
+
import {
|
|
27
|
+
resolveMaterialShaderVariantSet,
|
|
28
|
+
selectPipelineLayoutForVariant,
|
|
29
|
+
} from '@forgeax/engine-render/internal';
|
|
30
|
+
import type { PipelineLayout } from '@forgeax/engine-rhi';
|
|
31
|
+
import { describe, expect, it } from 'vitest';
|
|
32
|
+
|
|
33
|
+
// Sentinel handles -- structurally `unknown` opaque tokens.
|
|
34
|
+
const URP_LAYOUT = { __brand: 'urp' } as unknown as PipelineLayout;
|
|
35
|
+
const HDRP_LAYOUT = { __brand: 'hdrp' } as unknown as PipelineLayout;
|
|
36
|
+
// bug-20260611-skin-pipeline-layout: selector state shape now includes
|
|
37
|
+
// `pbrSkinPipelineLayout`. Pre-existing HDRP/URP routing tests pass null
|
|
38
|
+
// for the skin slot to keep their behaviour byte-identical to pre-bug;
|
|
39
|
+
// dedicated skin-routing cases live below in their own describe block.
|
|
40
|
+
const SKIN_LAYOUT = { __brand: 'skin' } as unknown as PipelineLayout;
|
|
41
|
+
|
|
42
|
+
const FULL_STATE = {
|
|
43
|
+
pbrPipelineLayout: URP_LAYOUT,
|
|
44
|
+
hdrpPbrPipelineLayout: HDRP_LAYOUT,
|
|
45
|
+
pbrSkinPipelineLayout: null,
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
describe('selectPipelineLayoutForVariant -- HDRP vs URP routing (M4.5 / w35)', () => {
|
|
49
|
+
it('(a) HDRP variantSet `CLUSTER_FORWARD_AVAILABLE=true+...` -> hdrpPbrPipelineLayout', () => {
|
|
50
|
+
const layout = selectPipelineLayoutForVariant(
|
|
51
|
+
FULL_STATE,
|
|
52
|
+
'CLUSTER_FORWARD_AVAILABLE=true+STORAGE_BUFFER_AVAILABLE=true',
|
|
53
|
+
);
|
|
54
|
+
expect(layout).toBe(HDRP_LAYOUT);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it("(a) HDRP variantSet '' (canonical all-true) -> hdrpPbrPipelineLayout", () => {
|
|
58
|
+
// Per D-11: '' is the canonical all-true variant key -- equivalent to
|
|
59
|
+
// explicit `CLUSTER_FORWARD_AVAILABLE=true+STORAGE_BUFFER_AVAILABLE=true`
|
|
60
|
+
// when the shader declares both axes. boot-time registers the HDRP-active
|
|
61
|
+
// entry under '' (createRenderer.ts:2483-2485), so the selector must
|
|
62
|
+
// route '' to the HDRP layout.
|
|
63
|
+
const layout = selectPipelineLayoutForVariant(FULL_STATE, '');
|
|
64
|
+
expect(layout).toBe(HDRP_LAYOUT);
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
it("(b) URP variantSet `CLUSTER_FORWARD_AVAILABLE=false+...' -> pbrPipelineLayout", () => {
|
|
68
|
+
const layout = selectPipelineLayoutForVariant(
|
|
69
|
+
FULL_STATE,
|
|
70
|
+
'CLUSTER_FORWARD_AVAILABLE=false+STORAGE_BUFFER_AVAILABLE=true',
|
|
71
|
+
);
|
|
72
|
+
expect(layout).toBe(URP_LAYOUT);
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
it('(b) URP variantSet without CLUSTER_FORWARD_AVAILABLE axis -> pbrPipelineLayout', () => {
|
|
76
|
+
// STORAGE_BUFFER_AVAILABLE-only variant (shader without the cluster axis
|
|
77
|
+
// declared). Selector must fall back to pbrPipelineLayout because the
|
|
78
|
+
// entry was not registered as HDRP-active.
|
|
79
|
+
const layout = selectPipelineLayoutForVariant(FULL_STATE, 'STORAGE_BUFFER_AVAILABLE=true');
|
|
80
|
+
expect(layout).toBe(URP_LAYOUT);
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
it('(c) variantSet undefined -> pbrPipelineLayout (backward-compat default)', () => {
|
|
84
|
+
const layout = selectPipelineLayoutForVariant(FULL_STATE, undefined);
|
|
85
|
+
expect(layout).toBe(URP_LAYOUT);
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
it('null pipelineState -> null (Camera-only / empty-manifest path)', () => {
|
|
89
|
+
expect(selectPipelineLayoutForVariant(null, '')).toBeNull();
|
|
90
|
+
expect(selectPipelineLayoutForVariant(null, undefined)).toBeNull();
|
|
91
|
+
expect(
|
|
92
|
+
selectPipelineLayoutForVariant(
|
|
93
|
+
null,
|
|
94
|
+
'CLUSTER_FORWARD_AVAILABLE=true+STORAGE_BUFFER_AVAILABLE=true',
|
|
95
|
+
),
|
|
96
|
+
).toBeNull();
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
it('hdrpPbrPipelineLayout null but pbrPipelineLayout non-null -> graceful URP fallback for HDRP variant', () => {
|
|
100
|
+
// When manifest has the cluster axis but boot-time HDRP layout build
|
|
101
|
+
// failed (e.g., storage buffer not capable), HDRP variant falls back to
|
|
102
|
+
// URP layout instead of returning null. This avoids hard-disabling the
|
|
103
|
+
// PSO build path; the WGSL itself will be the URP variant via
|
|
104
|
+
// findVariantByKey resolution upstream.
|
|
105
|
+
const partial = {
|
|
106
|
+
pbrPipelineLayout: URP_LAYOUT,
|
|
107
|
+
hdrpPbrPipelineLayout: null,
|
|
108
|
+
pbrSkinPipelineLayout: null,
|
|
109
|
+
};
|
|
110
|
+
expect(selectPipelineLayoutForVariant(partial, '')).toBe(URP_LAYOUT);
|
|
111
|
+
expect(
|
|
112
|
+
selectPipelineLayoutForVariant(
|
|
113
|
+
partial,
|
|
114
|
+
'CLUSTER_FORWARD_AVAILABLE=true+STORAGE_BUFFER_AVAILABLE=true',
|
|
115
|
+
),
|
|
116
|
+
).toBe(URP_LAYOUT);
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
it('pbrPipelineLayout null -> null (URP variant has no fallback)', () => {
|
|
120
|
+
const partial = {
|
|
121
|
+
pbrPipelineLayout: null,
|
|
122
|
+
hdrpPbrPipelineLayout: HDRP_LAYOUT,
|
|
123
|
+
pbrSkinPipelineLayout: null,
|
|
124
|
+
};
|
|
125
|
+
expect(selectPipelineLayoutForVariant(partial, undefined)).toBeNull();
|
|
126
|
+
expect(
|
|
127
|
+
selectPipelineLayoutForVariant(
|
|
128
|
+
partial,
|
|
129
|
+
'CLUSTER_FORWARD_AVAILABLE=false+STORAGE_BUFFER_AVAILABLE=true',
|
|
130
|
+
),
|
|
131
|
+
).toBeNull();
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
// bug-20260611-skin-pipeline-layout-mesh-array-bgl-2bindings:
|
|
136
|
+
// dedicated tests for the LayoutKind='pbr-skin' branch + grep gate.
|
|
137
|
+
describe('selectPipelineLayoutForVariant -- skin LayoutKind routing (bug-20260611)', () => {
|
|
138
|
+
it('(a) layoutKind=pbr-skin -> pbrSkinPipelineLayout', () => {
|
|
139
|
+
const state = {
|
|
140
|
+
pbrPipelineLayout: URP_LAYOUT,
|
|
141
|
+
hdrpPbrPipelineLayout: HDRP_LAYOUT,
|
|
142
|
+
pbrSkinPipelineLayout: SKIN_LAYOUT,
|
|
143
|
+
};
|
|
144
|
+
expect(selectPipelineLayoutForVariant(state, undefined, 'pbr-skin')).toBe(SKIN_LAYOUT);
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
it('(b) layoutKind=pbr-skin + variantSet="" -> pbrSkinPipelineLayout (skin overrides HDRP)', () => {
|
|
148
|
+
// HDRP × skin is OOS-1; skin routing wins. Tests the precedence ordering.
|
|
149
|
+
const state = {
|
|
150
|
+
pbrPipelineLayout: URP_LAYOUT,
|
|
151
|
+
hdrpPbrPipelineLayout: HDRP_LAYOUT,
|
|
152
|
+
pbrSkinPipelineLayout: SKIN_LAYOUT,
|
|
153
|
+
};
|
|
154
|
+
expect(selectPipelineLayoutForVariant(state, '', 'pbr-skin')).toBe(SKIN_LAYOUT);
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
it('(c) layoutKind=pbr-skin + pbrSkinPipelineLayout=null -> null (charter P3 explicit fail, AC-10)', () => {
|
|
158
|
+
// Explicit failure -- no silent fallback to URP layout. Mirrors memory
|
|
159
|
+
// anchor `hdrp-active-must-not-fallback-to-urp-pipeline`.
|
|
160
|
+
const state = {
|
|
161
|
+
pbrPipelineLayout: URP_LAYOUT,
|
|
162
|
+
hdrpPbrPipelineLayout: HDRP_LAYOUT,
|
|
163
|
+
pbrSkinPipelineLayout: null,
|
|
164
|
+
};
|
|
165
|
+
expect(selectPipelineLayoutForVariant(state, undefined, 'pbr-skin')).toBeNull();
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
it('(d) layoutKind=undefined + skin layout present -> still URP/HDRP path (back-compat)', () => {
|
|
169
|
+
// Existing PBR/HDRP callers (no layoutKind argument) MUST NOT pick the
|
|
170
|
+
// skin layout. AC-08 no-collateral.
|
|
171
|
+
const state = {
|
|
172
|
+
pbrPipelineLayout: URP_LAYOUT,
|
|
173
|
+
hdrpPbrPipelineLayout: HDRP_LAYOUT,
|
|
174
|
+
pbrSkinPipelineLayout: SKIN_LAYOUT,
|
|
175
|
+
};
|
|
176
|
+
expect(selectPipelineLayoutForVariant(state, undefined)).toBe(URP_LAYOUT);
|
|
177
|
+
expect(selectPipelineLayoutForVariant(state, '')).toBe(HDRP_LAYOUT);
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
describe('resolveMaterialShaderVariantSet -- backend capability routing', () => {
|
|
182
|
+
const pbrVariants = [
|
|
183
|
+
{ defines: { CLUSTER_FORWARD_AVAILABLE: false, STORAGE_BUFFER_AVAILABLE: false } },
|
|
184
|
+
{ defines: { CLUSTER_FORWARD_AVAILABLE: false, STORAGE_BUFFER_AVAILABLE: true } },
|
|
185
|
+
{ defines: { CLUSTER_FORWARD_AVAILABLE: true, STORAGE_BUFFER_AVAILABLE: true } },
|
|
186
|
+
];
|
|
187
|
+
|
|
188
|
+
it('rewrites the storage axis for the WebGL2 fallback', () => {
|
|
189
|
+
expect(
|
|
190
|
+
resolveMaterialShaderVariantSet(
|
|
191
|
+
'CLUSTER_FORWARD_AVAILABLE=false+STORAGE_BUFFER_AVAILABLE=true',
|
|
192
|
+
pbrVariants,
|
|
193
|
+
'wgpu-webgl2',
|
|
194
|
+
false,
|
|
195
|
+
),
|
|
196
|
+
).toBe('CLUSTER_FORWARD_AVAILABLE=false+STORAGE_BUFFER_AVAILABLE=false');
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
it('preserves the requested native variant when the backend supports storage buffers', () => {
|
|
200
|
+
expect(
|
|
201
|
+
resolveMaterialShaderVariantSet(
|
|
202
|
+
'CLUSTER_FORWARD_AVAILABLE=false+STORAGE_BUFFER_AVAILABLE=true',
|
|
203
|
+
pbrVariants,
|
|
204
|
+
'webgpu',
|
|
205
|
+
true,
|
|
206
|
+
),
|
|
207
|
+
).toBe('CLUSTER_FORWARD_AVAILABLE=false+STORAGE_BUFFER_AVAILABLE=true');
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
it('does not rewrite shaders without capability axes', () => {
|
|
211
|
+
expect(
|
|
212
|
+
resolveMaterialShaderVariantSet(
|
|
213
|
+
'MY_FEATURE=true',
|
|
214
|
+
[{ defines: { MY_FEATURE: true } }],
|
|
215
|
+
'wgpu-webgl2',
|
|
216
|
+
false,
|
|
217
|
+
),
|
|
218
|
+
).toBe('MY_FEATURE=true');
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
// bug-20260708 M2 (c) AC-04: dedicated tests for the LayoutKind='sprite-urp'
|
|
223
|
+
// branch. Sprite / sprite-lit shaders reuse the URP 1-slot mesh-array
|
|
224
|
+
// pipeline layout but their canonical all-true variant key ''
|
|
225
|
+
// (SPRITE_PASS_PER_INSTANCE_REGION_VARIANT_SET === '') MUST NOT be
|
|
226
|
+
// mis-routed through the variantSet==='' -> HDRP branch. Prevents
|
|
227
|
+
// R-1' device-lost when a SpriteInstances batch requests the canonical
|
|
228
|
+
// PIR=true variant.
|
|
229
|
+
describe('selectPipelineLayoutForVariant -- sprite-urp LayoutKind routing (bug-20260708)', () => {
|
|
230
|
+
const SPRITE_FULL_STATE = {
|
|
231
|
+
pbrPipelineLayout: URP_LAYOUT,
|
|
232
|
+
hdrpPbrPipelineLayout: HDRP_LAYOUT,
|
|
233
|
+
pbrSkinPipelineLayout: SKIN_LAYOUT,
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
it('(a) layoutKind=sprite-urp + variantSet=undefined -> pbrPipelineLayout (character / sprite-atlas per-entity path)', () => {
|
|
237
|
+
expect(selectPipelineLayoutForVariant(SPRITE_FULL_STATE, undefined, 'sprite-urp')).toBe(
|
|
238
|
+
URP_LAYOUT,
|
|
239
|
+
);
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
it('(b) layoutKind=sprite-urp + variantSet="" -> pbrPipelineLayout (SpriteInstances canonical PIR=true batch, NOT HDRP)', () => {
|
|
243
|
+
// Critical assertion. Without the sprite-urp branch the canonical ''
|
|
244
|
+
// variantSet falls into the isHdrpVariant branch of
|
|
245
|
+
// selectPipelineLayoutForVariant (variantSet === '' short-circuit) and
|
|
246
|
+
// returns HDRP_LAYOUT — a 7-slot mesh-array BGL incompatible with the
|
|
247
|
+
// sprite shader's group(2) binding shape. R-1' device-lost path.
|
|
248
|
+
expect(selectPipelineLayoutForVariant(SPRITE_FULL_STATE, '', 'sprite-urp')).toBe(URP_LAYOUT);
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
it('(c) layoutKind=sprite-urp overrides variantSet with CLUSTER_FORWARD_AVAILABLE=true -> URP (sprite has no HDRP variant)', () => {
|
|
252
|
+
// Sprite shaders never emit CLUSTER_FORWARD_AVAILABLE axis; this
|
|
253
|
+
// scenario is a defensive check that sprite-urp routing is stable
|
|
254
|
+
// even if some caller mis-passes an HDRP-like variantSet.
|
|
255
|
+
expect(
|
|
256
|
+
selectPipelineLayoutForVariant(
|
|
257
|
+
SPRITE_FULL_STATE,
|
|
258
|
+
'CLUSTER_FORWARD_AVAILABLE=true+STORAGE_BUFFER_AVAILABLE=true',
|
|
259
|
+
'sprite-urp',
|
|
260
|
+
),
|
|
261
|
+
).toBe(URP_LAYOUT);
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
it('(d) layoutKind=sprite-urp + pbrPipelineLayout=null -> null (URP layout unavailable, charter P3 explicit fail)', () => {
|
|
265
|
+
const partial = {
|
|
266
|
+
pbrPipelineLayout: null,
|
|
267
|
+
hdrpPbrPipelineLayout: HDRP_LAYOUT,
|
|
268
|
+
pbrSkinPipelineLayout: SKIN_LAYOUT,
|
|
269
|
+
};
|
|
270
|
+
expect(selectPipelineLayoutForVariant(partial, undefined, 'sprite-urp')).toBeNull();
|
|
271
|
+
expect(selectPipelineLayoutForVariant(partial, '', 'sprite-urp')).toBeNull();
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
it('(e) pbr-skin still wins over sprite-urp when both would apply (skin precedence anchored earlier in selector)', () => {
|
|
275
|
+
// Defensive: if a call ever lands with layoutKind='pbr-skin' + a
|
|
276
|
+
// sprite-like variantSet, the skin branch must take precedence (order
|
|
277
|
+
// of switch arms in the selector). This pins the ordering so a future
|
|
278
|
+
// reshuffle of the switch arms doesn't silently accept sprite routing
|
|
279
|
+
// for a skin caller.
|
|
280
|
+
expect(selectPipelineLayoutForVariant(SPRITE_FULL_STATE, '', 'pbr-skin')).toBe(SKIN_LAYOUT);
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
describe('selectPipelineLayoutForVariant -- unlit-urp LayoutKind routing', () => {
|
|
285
|
+
it("keeps default-unlit's canonical all-true variant on the URP layout", () => {
|
|
286
|
+
expect(selectPipelineLayoutForVariant(FULL_STATE, '', 'unlit-urp')).toBe(URP_LAYOUT);
|
|
287
|
+
});
|
|
288
|
+
|
|
289
|
+
it('keeps default-unlit false-color variants on the URP layout', () => {
|
|
290
|
+
expect(
|
|
291
|
+
selectPipelineLayoutForVariant(
|
|
292
|
+
FULL_STATE,
|
|
293
|
+
'STORAGE_BUFFER_AVAILABLE=true+VERTEX_COLOR_AVAILABLE=false',
|
|
294
|
+
'unlit-urp',
|
|
295
|
+
),
|
|
296
|
+
).toBe(URP_LAYOUT);
|
|
297
|
+
});
|
|
298
|
+
});
|