@forgeax/engine-runtime 0.1.21 → 0.1.24
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/README.md +18 -9
- package/dist/__tests__/advance-animation-player.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/advance-animation-player.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry-aabb.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/asset-registry-aabb.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry-bootstrap.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/asset-registry-bootstrap.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry-builtin-nineslice.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/asset-registry-builtin-nineslice.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry-d9-tile-sampler-soft-warn.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/asset-registry-d9-tile-sampler-soft-warn.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry-guid.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/asset-registry-guid.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry-material-validate.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/asset-registry-material-validate.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry-mesh-fail-fast.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/asset-registry-mesh-fail-fast.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry-scene.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/asset-registry-scene.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry-sprite-slices-validate.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/asset-registry-sprite-slices-validate.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asset-renderer-assembly.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/asset-renderer-assembly.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asset.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/asset.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/bloom-gating.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/bloom-gating.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/builtin-guid-ssot.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/builtin-guid-ssot.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/builtin-pack.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/builtin-pack.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/camera-antialias.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/camera-antialias.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/camera-bloom.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/camera-bloom.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/camera-clear-schema.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/camera-clear-schema.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/camera-ortho.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/camera-ortho.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/cluster-binner.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/cluster-binner.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/create-renderer-fallback-shader-manifest.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/create-renderer-fallback-shader-manifest.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/create-renderer-uniform-fallback.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/create-renderer-uniform-fallback.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/cubemap-upload.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/cubemap-upload.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/dev-import-transport.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/dev-import-transport.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/engine-metrics.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/engine-metrics.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/equirect-projection-error.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/equirect-projection-error.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/font-asset-load.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/font-asset-load.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/fxaa-intermediate-texture.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/fxaa-intermediate-texture.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/fxaa-pipeline.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/fxaa-pipeline.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/gpu-residency.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/gpu-residency.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/gpu-resource-release.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/gpu-resource-release.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/handle-quad.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/handle-quad.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-bgl-slots.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/hdrp-bgl-slots.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-grid-invalid.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/hdrp-grid-invalid.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-index-list-overflow-once.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/hdrp-index-list-overflow-once.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-light-budget.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/hdrp-light-budget.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-pipeline-asset-config.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/hdrp-pipeline-asset-config.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/helpers/register-runtime-components.d.ts.map +1 -1
- package/dist/__tests__/helpers/register-scene-components.d.ts.map +1 -1
- package/dist/__tests__/helpers/renderer-device-loss-dawn.d.ts +25 -0
- package/dist/__tests__/helpers/renderer-device-loss-dawn.d.ts.map +1 -0
- package/dist/__tests__/helpers/standard-material-manifest.d.ts +0 -1
- package/dist/__tests__/helpers/standard-material-manifest.d.ts.map +1 -1
- package/dist/__tests__/ibl-pipeline-cache.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/ibl-pipeline-cache.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/lazy-catalog.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/lazy-catalog.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/load-by-guid-hdr.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/load-by-guid-hdr.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/load-by-guid-prod-material-parent.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/load-by-guid-prod-material-parent.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/load-by-guid-prod.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/load-by-guid-prod.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/loader-registry.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/loader-registry.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/m7-hdrp-demo-shape.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/m7-hdrp-demo-shape.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/mipmap-formula.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/mipmap-formula.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/mipmap-pipeline-cache.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/mipmap-pipeline-cache.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/parse-asset-payload-material.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/parse-asset-payload-material.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/parse-asset-payload-texture.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/parse-asset-payload-texture.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/parse-scene-payload-refs.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/parse-scene-payload-refs.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pass-selector.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/pass-selector.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline-builder.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/pipeline-builder.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline-cache-key-topology.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/pipeline-cache-key-topology.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline-vertex-stride-branch.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/pipeline-vertex-stride-branch.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/pipeline.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/post-process-register.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/post-process-register.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/propagate-transforms.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/propagate-transforms.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/record-all-topology.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/record-all-topology.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/record-draw-branch.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/record-draw-branch.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/record-strip-index-format.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/record-strip-index-format.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/register-with-guid-rgba16float.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/register-with-guid-rgba16float.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-data.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/render-data.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-error-exhaustive.test-d.d.ts.map +1 -1
- package/dist/__tests__/render-query-regression.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/render-query-regression.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-record-submesh.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-record-submesh.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-record-warn-once.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-record-warn-once.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-device-loss-multi-world.integration.test.d.ts +2 -0
- package/dist/__tests__/renderer-device-loss-multi-world.integration.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-device-loss-provider-feasibility.dawn.test.d.ts +2 -0
- package/dist/__tests__/renderer-device-loss-provider-feasibility.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-device-loss-recovery.dawn.test.d.ts +2 -0
- package/dist/__tests__/renderer-device-loss-recovery.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-draw-world.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/renderer-draw-world.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-recovery-consumer.integration.test.d.ts +2 -0
- package/dist/__tests__/renderer-recovery-consumer.integration.test.d.ts.map +1 -0
- package/dist/__tests__/renderstate-pipeline-cache.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/renderstate-pipeline-cache.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/resolve-scene-guids.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/resolve-scene-guids.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-skip-non-triangle.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/shadow-skip-non-triangle.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skin-errors-kebab-case.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skin-errors-kebab-case.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skin-instances-coexist.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skin-instances-coexist.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skin-m2-extract-happy.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skin-m2-extract-happy.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skin-m2-extract-joint-error.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skin-m2-extract-joint-error.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skin-m2-extract-null-assets.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skin-m2-extract-null-assets.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skin-m2-extract-skeleton-error.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skin-m2-extract-skeleton-error.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skin-m3-record-cache.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skin-m3-record-cache.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skin-palette-extract.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skin-palette-extract.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skin-pipeline-routing.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skin-pipeline-routing.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skin.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skin.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skybox-extract.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skybox-extract.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skybox-shader-compile.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skybox-shader-compile.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skylight-bind-group.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skylight-bind-group.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skylight-component.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skylight-component.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skylight-fallback-path.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skylight-fallback-path.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skylight-pipeline-layout.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skylight-pipeline-layout.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skylight-solid-color-extract.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/skylight-solid-color-extract.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-animation-tick-boundary.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/sprite-animation-tick-boundary.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-animation-tick-clamp.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/sprite-animation-tick-clamp.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-animation-tick-frame-duration-negative.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/sprite-animation-tick-frame-duration-negative.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-animation-tick-frame-duration-zero.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/sprite-animation-tick-frame-duration-zero.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-animation-tick-loop.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/sprite-animation-tick-loop.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-animation-tick-override-probe.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/sprite-animation-tick-override-probe.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-animation-tick-regions-mismatch.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/sprite-animation-tick-regions-mismatch.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/storage-buffer-caps.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/storage-buffer-caps.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/systems.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/systems.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tonemap-hdr-target.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/tonemap-hdr-target.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tonemap-pipeline-split.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/tonemap-pipeline-split.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tonemap.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/tonemap.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/transparent-sort-config-get.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/transparent-sort-config-get.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/transparent-sort-config-set.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/transparent-sort-config-set.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/transparent-sort.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/transparent-sort.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/upload-texture-consistency.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/upload-texture-consistency.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/verify-revisions.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/verify-revisions.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/wire-default-loaders.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/wire-default-loaders.cases.unit.test.d.ts.map +1 -0
- package/dist/__tests__/zero-camera-clear-fallback.cases.unit.test.d.ts +2 -0
- package/dist/__tests__/zero-camera-clear-fallback.cases.unit.test.d.ts.map +1 -0
- package/dist/createRenderer.d.ts.map +1 -1
- package/dist/dev-import-transport.d.ts.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/dist/sprite-param-values.d.ts +1 -1
- package/package.json +30 -30
- package/src/__tests__/advance-animation-player.cases.unit.test.ts +1666 -0
- package/src/__tests__/animation-graph-asset-union.test-d.ts +2 -0
- package/src/__tests__/asset-brand-and-name-retirement.test.ts +4 -3
- package/src/__tests__/asset-registry-aabb.cases.unit.test.ts +676 -0
- package/src/__tests__/asset-registry-bootstrap.cases.unit.test.ts +472 -0
- package/src/__tests__/asset-registry-builtin-nineslice.cases.unit.test.ts +481 -0
- package/src/__tests__/asset-registry-d9-tile-sampler-soft-warn.cases.unit.test.ts +568 -0
- package/src/__tests__/asset-registry-guid.cases.unit.test.ts +500 -0
- package/src/__tests__/asset-registry-material-validate.cases.unit.test.ts +756 -0
- package/src/__tests__/asset-registry-mesh-fail-fast.cases.unit.test.ts +591 -0
- package/src/__tests__/asset-registry-scene.cases.unit.test.ts +501 -0
- package/src/__tests__/asset-registry-scene.test-d.ts +1 -0
- package/src/__tests__/asset-registry-sprite-slices-validate.cases.unit.test.ts +536 -0
- package/src/__tests__/asset-renderer-assembly.cases.unit.test.ts +496 -0
- package/src/__tests__/asset.cases.unit.test.ts +439 -0
- package/src/__tests__/bind-group-cache-keying.test.ts +6 -2
- package/src/__tests__/bloom-gating.cases.unit.test.ts +428 -0
- package/src/__tests__/builtin-guid-ssot.cases.unit.test.ts +472 -0
- package/src/__tests__/builtin-pack.cases.unit.test.ts +639 -0
- package/src/__tests__/builtin-shader-register-e2e.test.ts +1 -1
- package/src/__tests__/camera-antialias.cases.unit.test.ts +372 -0
- package/src/__tests__/camera-bloom.cases.unit.test.ts +396 -0
- package/src/__tests__/camera-clear-schema.cases.unit.test.ts +391 -0
- package/src/__tests__/camera-ortho.cases.unit.test.ts +484 -0
- package/src/__tests__/cluster-binner.cases.unit.test.ts +817 -0
- package/src/__tests__/collect-scene-mount-collapse.test.ts +5 -1
- package/src/__tests__/collect-transient-roundtrip.test.ts +14 -3
- package/src/__tests__/components.test-d.ts +9 -6
- package/src/__tests__/components.unit.test.ts +23 -19
- package/src/__tests__/create-renderer-fallback-shader-manifest.cases.unit.test.ts +345 -0
- package/src/__tests__/create-renderer-uniform-fallback.cases.unit.test.ts +445 -0
- package/src/__tests__/cubemap-upload.cases.unit.test.ts +593 -0
- package/src/__tests__/dawn/ibl-precompute-readback.dawn.test.ts +184 -17
- package/src/__tests__/dawn/material-alpha.dawn.test.ts +17 -4
- package/src/__tests__/derive-bgl-integration.test.ts +8 -8
- package/src/__tests__/dev-import-transport.cases.unit.test.ts +503 -0
- package/src/__tests__/engine-metrics.cases.unit.test.ts +371 -0
- package/src/__tests__/equirect-projection-error.cases.unit.test.ts +416 -0
- package/src/__tests__/errors.unit.test.ts +3 -0
- package/src/__tests__/extract-frames-merge.test.ts +3 -0
- package/src/__tests__/font-asset-load.cases.unit.test.ts +510 -0
- package/src/__tests__/fxaa-intermediate-texture.cases.unit.test.ts +690 -0
- package/src/__tests__/fxaa-pipeline.cases.unit.test.ts +546 -0
- package/src/__tests__/gpu-residency.cases.unit.test.ts +479 -0
- package/src/__tests__/gpu-resource-release.cases.unit.test.ts +929 -0
- package/src/__tests__/handle-quad.cases.unit.test.ts +491 -0
- package/src/__tests__/hdrp-bgl-slots.cases.unit.test.ts +451 -0
- package/src/__tests__/hdrp-grid-invalid.cases.unit.test.ts +408 -0
- package/src/__tests__/hdrp-index-list-overflow-once.cases.unit.test.ts +405 -0
- package/src/__tests__/hdrp-light-budget.cases.unit.test.ts +483 -0
- package/src/__tests__/hdrp-pipeline-asset-config.cases.unit.test.ts +441 -0
- package/src/__tests__/helpers/register-runtime-components.ts +9 -1
- package/src/__tests__/helpers/register-scene-components.ts +9 -2
- package/src/__tests__/helpers/renderer-device-loss-dawn.ts +69 -0
- package/src/__tests__/helpers/standard-material-manifest.ts +11 -15
- package/src/__tests__/ibl-pipeline-cache.cases.unit.test.ts +415 -0
- package/src/__tests__/lazy-catalog.cases.unit.test.ts +848 -0
- package/src/__tests__/light-gpu-byte-neutral.unit.test.ts +14 -15
- package/src/__tests__/light-snapshot.test-d.ts +27 -1
- package/src/__tests__/lights-preservation.fixup.test.ts +19 -21
- package/src/__tests__/lights.unit.test.ts +2076 -1
- package/src/__tests__/load-by-guid-hdr.cases.unit.test.ts +582 -0
- package/src/__tests__/load-by-guid-prod-material-parent.cases.unit.test.ts +1514 -0
- package/src/__tests__/load-by-guid-prod.cases.unit.test.ts +557 -0
- package/src/__tests__/loader-name-survival.test.ts +8 -9
- package/src/__tests__/loader-registry.cases.unit.test.ts +767 -0
- package/src/__tests__/m7-hdrp-demo-shape.cases.unit.test.ts +361 -0
- package/src/__tests__/material-texture-uv-scale.unit.test.ts +2 -2
- package/src/__tests__/materials.unit.test.ts +29 -10
- package/src/__tests__/mipmap-formula.cases.unit.test.ts +434 -0
- package/src/__tests__/mipmap-pipeline-cache.cases.unit.test.ts +490 -0
- package/src/__tests__/package-promotion.test.ts +7 -11
- package/src/__tests__/parse-asset-payload-material.cases.unit.test.ts +565 -0
- package/src/__tests__/parse-asset-payload-texture.cases.unit.test.ts +720 -0
- package/src/__tests__/parse-scene-payload-refs.cases.unit.test.ts +767 -0
- package/src/__tests__/pass-selector.cases.unit.test.ts +376 -0
- package/src/__tests__/pbr-pipeline.unit.test.ts +39 -21
- package/src/__tests__/pipeline-builder.cases.unit.test.ts +624 -0
- package/src/__tests__/pipeline-cache-key-topology.cases.unit.test.ts +807 -0
- package/src/__tests__/pipeline-vertex-stride-branch.cases.unit.test.ts +379 -0
- package/src/__tests__/pipeline.cases.unit.test.ts +370 -0
- package/src/__tests__/point-light-shadow.browser.test.ts +1 -0
- package/src/__tests__/point-light-shadow.unit.test.ts +18 -98
- package/src/__tests__/post-process-register.cases.unit.test.ts +405 -0
- package/src/__tests__/propagate-transforms.cases.unit.test.ts +502 -0
- package/src/__tests__/propagate-transforms.dawn.test.ts +34 -18
- package/src/__tests__/record-all-topology.cases.unit.test.ts +608 -0
- package/src/__tests__/record-draw-branch.cases.unit.test.ts +621 -0
- package/src/__tests__/record-strip-index-format.cases.unit.test.ts +419 -0
- package/src/__tests__/record-worldid-isolation.test.ts +16 -32
- package/src/__tests__/register-with-guid-rgba16float.cases.unit.test.ts +469 -0
- package/src/__tests__/render-data.cases.unit.test.ts +553 -0
- package/src/__tests__/render-error-exhaustive.test-d.ts +11 -0
- package/src/__tests__/render-query-regression.cases.unit.test.ts +531 -0
- package/src/__tests__/render-system-extract.test.ts +5 -5
- package/src/__tests__/render-system-record-multi-material-textureview.test.ts +1 -0
- package/src/__tests__/render-system-record-per-submesh-transparency.test.ts +1 -0
- package/src/__tests__/render-system-record-submesh.cases.unit.test.ts +740 -0
- package/src/__tests__/render-system-record-warn-once.cases.unit.test.ts +418 -0
- package/src/__tests__/render-system-record.test.ts +15 -33
- package/src/__tests__/renderer-device-loss-multi-world.integration.test.ts +103 -0
- package/src/__tests__/renderer-device-loss-provider-feasibility.dawn.test.ts +124 -0
- package/src/__tests__/renderer-device-loss-recovery.dawn.test.ts +50 -0
- package/src/__tests__/renderer-draw-world.cases.unit.test.ts +514 -0
- package/src/__tests__/renderer-recovery-consumer.integration.test.ts +96 -0
- package/src/__tests__/renderer-surface.unit.test.ts +0 -2
- package/src/__tests__/renderstate-pipeline-cache.cases.unit.test.ts +631 -0
- package/src/__tests__/resolve-scene-guids.cases.unit.test.ts +1123 -0
- package/src/__tests__/resolveName-unified-entry.test.ts +6 -6
- package/src/__tests__/resolveName.test.ts +14 -2
- package/src/__tests__/shadow-caster-empty-schema.test.ts +1 -1
- package/src/__tests__/shadow-csm-cascade-loadop.test.ts +1 -0
- package/src/__tests__/shadow-csm-tile-consistency.test.ts +1 -0
- package/src/__tests__/shadow-csm-ubo.test.ts +3 -1
- package/src/__tests__/shadow-fields-observable.dawn.test.ts +15 -4
- package/src/__tests__/shadow-m1.dawn.test.ts +1 -1
- package/src/__tests__/shadow-skip-non-triangle.cases.unit.test.ts +681 -0
- package/src/__tests__/skin-errors-kebab-case.cases.unit.test.ts +475 -0
- package/src/__tests__/skin-extract-getarrayview-count.unit.test.ts +5 -4
- package/src/__tests__/skin-instances-coexist.cases.unit.test.ts +375 -0
- package/src/__tests__/skin-m2-extract-happy.cases.unit.test.ts +592 -0
- package/src/__tests__/skin-m2-extract-joint-error.cases.unit.test.ts +619 -0
- package/src/__tests__/skin-m2-extract-null-assets.cases.unit.test.ts +569 -0
- package/src/__tests__/skin-m2-extract-skeleton-error.cases.unit.test.ts +585 -0
- package/src/__tests__/skin-m3-record-cache.cases.unit.test.ts +457 -0
- package/src/__tests__/skin-palette-extract.cases.unit.test.ts +635 -0
- package/src/__tests__/skin-parented-double-transform.test.ts +5 -5
- package/src/__tests__/skin-pipeline-routing.cases.unit.test.ts +411 -0
- package/src/__tests__/skin.cases.unit.test.ts +421 -0
- package/src/__tests__/skinned-shadow-mixed.dawn.test.ts +1 -6
- package/src/__tests__/skybox-extract.cases.unit.test.ts +511 -0
- package/src/__tests__/skybox-shader-compile.cases.unit.test.ts +437 -0
- package/src/__tests__/skylight-bind-group.cases.unit.test.ts +642 -0
- package/src/__tests__/skylight-component.cases.unit.test.ts +386 -0
- package/src/__tests__/skylight-fallback-path.cases.unit.test.ts +566 -0
- package/src/__tests__/skylight-lazy-projection.test.ts +35 -20
- package/src/__tests__/skylight-pipeline-layout.cases.unit.test.ts +506 -0
- package/src/__tests__/skylight-solid-color-extract.cases.unit.test.ts +399 -0
- package/src/__tests__/sprite-animation-tick-boundary.cases.unit.test.ts +521 -0
- package/src/__tests__/sprite-animation-tick-clamp.cases.unit.test.ts +453 -0
- package/src/__tests__/sprite-animation-tick-frame-duration-negative.cases.unit.test.ts +447 -0
- package/src/__tests__/sprite-animation-tick-frame-duration-zero.cases.unit.test.ts +395 -0
- package/src/__tests__/sprite-animation-tick-loop.cases.unit.test.ts +494 -0
- package/src/__tests__/sprite-animation-tick-override-probe.cases.unit.test.ts +439 -0
- package/src/__tests__/sprite-animation-tick-regions-mismatch.cases.unit.test.ts +466 -0
- package/src/__tests__/sprite-lit-bgl-byte-identical.test.ts +16 -18
- package/src/__tests__/sprite-lit-pipeline-cache-key.test.ts +1 -1
- package/src/__tests__/ssao-bgl.test.ts +2 -1
- package/src/__tests__/ssao-pipelines.test.ts +1 -1
- package/src/__tests__/storage-buffer-caps.cases.unit.test.ts +373 -0
- package/src/__tests__/systems.cases.unit.test.ts +425 -0
- package/src/__tests__/template-game-default-api-contract.test.ts +45 -23
- package/src/__tests__/tilemap-chunk-extract.overhang-bounds.test.ts +1 -1
- package/src/__tests__/tilemap-chunk-extract.propagate-order.test.ts +10 -4
- package/src/__tests__/tonemap-hdr-target.cases.unit.test.ts +670 -0
- package/src/__tests__/tonemap-pipeline-split.cases.unit.test.ts +867 -0
- package/src/__tests__/tonemap.cases.unit.test.ts +446 -0
- package/src/__tests__/transform-hierarchy-pixel-diff.dawn.test.ts +2 -2
- package/src/__tests__/transparent-sort-config-get.cases.unit.test.ts +395 -0
- package/src/__tests__/transparent-sort-config-set.cases.unit.test.ts +424 -0
- package/src/__tests__/transparent-sort.cases.unit.test.ts +684 -0
- package/src/__tests__/upload-texture-consistency.cases.unit.test.ts +478 -0
- package/src/__tests__/verify-revisions.cases.unit.test.ts +619 -0
- package/src/__tests__/wire-default-loaders.cases.unit.test.ts +461 -0
- package/src/__tests__/zero-camera-clear-fallback.cases.unit.test.ts +374 -0
- package/src/collect-scene-asset.ts +1 -1
- package/src/components/__tests__/transform-vec-schema.test.ts +2 -2
- package/src/createRenderer.ts +1 -0
- package/src/dev-import-transport.ts +2 -1
- package/src/sprite-param-values.ts +1 -1
- package/dist/.tsbuildinfo +0 -1
- package/dist/__tests__/asset.unit.test.d.ts +0 -2
- package/dist/__tests__/asset.unit.test.d.ts.map +0 -1
- package/dist/__tests__/pipeline.unit.test.d.ts +0 -2
- package/dist/__tests__/pipeline.unit.test.d.ts.map +0 -1
- package/dist/__tests__/systems.unit.test.d.ts +0 -2
- package/dist/__tests__/systems.unit.test.d.ts.map +0 -1
- package/src/__tests__/asset.unit.test.ts +0 -7110
- package/src/__tests__/pipeline.unit.test.ts +0 -5283
- package/src/__tests__/systems.unit.test.ts +0 -9210
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
// @ts-nocheck — merged file: indexed-access checks cascade across noUncheckedIndexedAccess for blocks originally outside src/ rootDir
|
|
2
|
+
// Consolidated by feat-20260609-test-pool-startup-reduction-merge-tiny-test-files
|
|
3
|
+
// biome-ignore-all lint/complexity/noUselessLoneBlockStatements: block-scope isolation between merged source files (consolidation paradigm)
|
|
4
|
+
//
|
|
5
|
+
// Source files (N=44):
|
|
6
|
+
// - packages/runtime/__tests__/antialias-from-f32.test.ts
|
|
7
|
+
// - packages/runtime/src/__tests__/bloom-gating.test.ts
|
|
8
|
+
// - packages/runtime/src/__tests__/camera-antialias.test.ts
|
|
9
|
+
// - packages/runtime/src/__tests__/camera-bloom.test.ts
|
|
10
|
+
// - packages/runtime/src/__tests__/camera-clear-schema.test.ts
|
|
11
|
+
// - packages/runtime/src/__tests__/camera-ortho.test.ts
|
|
12
|
+
// - packages/runtime/src/__tests__/fxaa-intermediate-texture.test.ts
|
|
13
|
+
// - packages/runtime/src/__tests__/fxaa-pipeline.test.ts
|
|
14
|
+
// - packages/runtime/src/__tests__/ibl-pipeline-cache.test.ts
|
|
15
|
+
// - packages/runtime/src/__tests__/ibl-runtime-probe.test.ts
|
|
16
|
+
// - packages/runtime/src/__tests__/render-system-record-warn-once.test.ts
|
|
17
|
+
// - packages/runtime/src/__tests__/shadow-skip-non-triangle.test.ts
|
|
18
|
+
// - packages/runtime/src/__tests__/skin-errors-kebab-case.test.ts
|
|
19
|
+
// - packages/runtime/src/__tests__/skybox-error.test.ts
|
|
20
|
+
// - packages/runtime/src/__tests__/skybox-shader-compile.test.ts
|
|
21
|
+
// - packages/runtime/src/__tests__/skylight-bind-group.test.ts
|
|
22
|
+
// - packages/runtime/src/__tests__/skylight-component.test.ts
|
|
23
|
+
// - packages/runtime/src/__tests__/skylight-fallback-path.test.ts
|
|
24
|
+
// - packages/runtime/src/__tests__/skylight-pipeline-layout.test.ts
|
|
25
|
+
// - packages/runtime/src/__tests__/tonemap-hdr-target.test.ts
|
|
26
|
+
// - packages/runtime/src/__tests__/tonemap-pipeline-split.test.ts
|
|
27
|
+
// - packages/runtime/src/__tests__/zero-camera-clear-fallback.test.ts
|
|
28
|
+
// - packages/runtime/src/components/__tests__/skin.test.ts
|
|
29
|
+
// - packages/runtime/src/systems/__tests__/advance-animation-player.test.ts
|
|
30
|
+
// - packages/runtime/src/systems/__tests__/graph-skybox.test.ts
|
|
31
|
+
// - packages/runtime/src/systems/__tests__/propagate-transforms.test.ts
|
|
32
|
+
// - packages/runtime/src/systems/__tests__/skin-cap-gate.test.ts
|
|
33
|
+
// - packages/runtime/src/systems/__tests__/skin-instances-coexist.test.ts
|
|
34
|
+
// - packages/runtime/src/systems/__tests__/skin-palette-extract.test.ts
|
|
35
|
+
// - packages/runtime/src/systems/__tests__/skin-pipeline-routing.test.ts
|
|
36
|
+
// - packages/runtime/src/systems/__tests__/skybox-extract.test.ts
|
|
37
|
+
// - packages/runtime/src/systems/__tests__/sprite-animation-tick-boundary.test.ts
|
|
38
|
+
// - packages/runtime/src/systems/__tests__/sprite-animation-tick-clamp.test.ts
|
|
39
|
+
// - packages/runtime/src/systems/__tests__/sprite-animation-tick-frame-duration-negative.test.ts
|
|
40
|
+
// - packages/runtime/src/systems/__tests__/sprite-animation-tick-frame-duration-zero.test.ts
|
|
41
|
+
// - packages/runtime/src/systems/__tests__/sprite-animation-tick-loop.test.ts
|
|
42
|
+
// - packages/runtime/src/systems/__tests__/sprite-animation-tick-override-probe.test.ts
|
|
43
|
+
// - packages/runtime/src/systems/__tests__/sprite-animation-tick-regions-mismatch.test.ts
|
|
44
|
+
// - packages/runtime/src/systems/__tests__/tonemap.test.ts
|
|
45
|
+
// - packages/runtime/src/systems/__tests__/transparent-sort-config-get.test.ts
|
|
46
|
+
// - packages/runtime/src/systems/__tests__/transparent-sort-config-set.test.ts
|
|
47
|
+
// - packages/runtime/src/systems/__tests__/transparent-sort.test.ts
|
|
48
|
+
// - packages/runtime/src/__tests__/render-system-multi-material.test.ts
|
|
49
|
+
// - packages/runtime/src/__tests__/render-system-record-submesh.test.ts
|
|
50
|
+
//
|
|
51
|
+
// Paradigm: each block-scope wraps a source file. ancestorTitles[0] is the
|
|
52
|
+
// source-preserved inner describe (NOT the source filename for these 3 files
|
|
53
|
+
// — recovery path: vitest report ancestorTitles -> grep this file -> upstream
|
|
54
|
+
// `// ─── from <name>.test.ts ───` block separator -> source filename).
|
|
55
|
+
// Top-level imports merged + deduped.
|
|
56
|
+
|
|
57
|
+
import { readFileSync } from 'node:fs';
|
|
58
|
+
import { resolve } from 'node:path';
|
|
59
|
+
import { fileURLToPath } from 'node:url';
|
|
60
|
+
import { AnimationPlayer } from '@forgeax/engine-animation';
|
|
61
|
+
import type { AssetRuntimeErrorCode } from '@forgeax/engine-assets-runtime';
|
|
62
|
+
import { AssetRegistry } from '@forgeax/engine-assets-runtime';
|
|
63
|
+
import type { EntityHandle, World as WorldType } from '@forgeax/engine-ecs';
|
|
64
|
+
import { ENTITY_NULL_RAW, World } from '@forgeax/engine-ecs';
|
|
65
|
+
import { SpriteAnimationInvalidError } from '@forgeax/engine-ecs/projection';
|
|
66
|
+
import { mat4, vec3 } from '@forgeax/engine-math';
|
|
67
|
+
import type { RenderErrorCode, Renderer as RendererType } from '@forgeax/engine-render';
|
|
68
|
+
import {
|
|
69
|
+
ANTIALIAS_FXAA,
|
|
70
|
+
ANTIALIAS_NONE,
|
|
71
|
+
BLOOM_DISABLED,
|
|
72
|
+
BLOOM_ENABLED,
|
|
73
|
+
CAMERA_PROJECTION_ORTHOGRAPHIC,
|
|
74
|
+
CAMERA_PROJECTION_PERSPECTIVE,
|
|
75
|
+
Camera,
|
|
76
|
+
MeshFilter,
|
|
77
|
+
MeshRenderer,
|
|
78
|
+
SkyboxBackground,
|
|
79
|
+
Skylight,
|
|
80
|
+
} from '@forgeax/engine-render';
|
|
81
|
+
import type { BindGroupEntry, Buffer, Sampler, Texture, TextureView } from '@forgeax/engine-rhi';
|
|
82
|
+
import { ok as rhiOk } from '@forgeax/engine-rhi';
|
|
83
|
+
import { ChildOf, Name, propagateTransforms, Transform } from '@forgeax/engine-scene';
|
|
84
|
+
import { TONEMAP_LUMINANCE_EPSILON } from '@forgeax/engine-shader';
|
|
85
|
+
import type { SkinErrorCode } from '@forgeax/engine-skinning';
|
|
86
|
+
import {
|
|
87
|
+
Skin,
|
|
88
|
+
SkinInstancesCoexistForbiddenError,
|
|
89
|
+
SkinJointCountExceededError,
|
|
90
|
+
SkinJointDespawnedError,
|
|
91
|
+
SkinJointPathUnresolvedError,
|
|
92
|
+
} from '@forgeax/engine-skinning';
|
|
93
|
+
import type {
|
|
94
|
+
Handle,
|
|
95
|
+
MaterialAsset,
|
|
96
|
+
MeshAsset,
|
|
97
|
+
SkeletonAsset,
|
|
98
|
+
TextureFormat,
|
|
99
|
+
} from '@forgeax/engine-types';
|
|
100
|
+
import { toShared } from '@forgeax/engine-types';
|
|
101
|
+
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';
|
|
102
|
+
import { worldInternal } from '../../../ecs/src/world-internal';
|
|
103
|
+
import {
|
|
104
|
+
SPRITE_PLAYBACK_MODE_CLAMP,
|
|
105
|
+
SPRITE_PLAYBACK_MODE_LOOP,
|
|
106
|
+
SpriteAnimation,
|
|
107
|
+
SpriteRegionOverride,
|
|
108
|
+
} from '../../../render/src/components';
|
|
109
|
+
import {
|
|
110
|
+
type CameraProjection,
|
|
111
|
+
cameraProjectionFromF32,
|
|
112
|
+
} from '../../../render/src/components/camera';
|
|
113
|
+
import {
|
|
114
|
+
assembleMaterialWithSkylightEntries,
|
|
115
|
+
createSkylightFallback,
|
|
116
|
+
mergeSkylightIntoMaterialBgl,
|
|
117
|
+
} from '../../../render/src/ibl/skylight-bind-group';
|
|
118
|
+
import { buildPbrPipelineLayouts, buildUnlitMaterialBgl } from '../../../render/src/pbr-pipeline';
|
|
119
|
+
import { INSTANCE_STORAGE_STRIDE_FLOATS } from '../../../render/src/record/mesh-ssbo';
|
|
120
|
+
import { selectSwapChainFormat } from '../../../render/src/render-system';
|
|
121
|
+
import { createSkinPaletteAllocator } from '../../../render/src/systems/skin-palette-allocator';
|
|
122
|
+
import type { TransparentEntry } from '../../../render/src/systems/transparent-sort-config';
|
|
123
|
+
import { standardMaterialShaderVariants } from './helpers/standard-material-manifest';
|
|
124
|
+
import { drawWithOwners } from './renderer-test-utils';
|
|
125
|
+
|
|
126
|
+
function componentFieldType(component: { fields: Record<string, { type: string }> }, name: string) {
|
|
127
|
+
return component.fields[name]?.type;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function componentFieldDefault(
|
|
131
|
+
component: { fields: Record<string, { default?: unknown }> },
|
|
132
|
+
name: string,
|
|
133
|
+
) {
|
|
134
|
+
return component.fields[name]?.default;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function componentSchemaTypes(component: { fields: Record<string, { type: string }> }) {
|
|
138
|
+
return Object.fromEntries(
|
|
139
|
+
Object.entries(component.fields).map(([name, field]) => [name, field.type]),
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
afterEach(() => vi.restoreAllMocks());
|
|
144
|
+
|
|
145
|
+
type RendererErrorObservation = {
|
|
146
|
+
readonly code: string;
|
|
147
|
+
readonly detail?: unknown;
|
|
148
|
+
readonly hint?: string;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
function unwrapRendererError(value: unknown): RendererErrorObservation {
|
|
152
|
+
let current = value as RendererErrorObservation;
|
|
153
|
+
while (
|
|
154
|
+
current.detail !== undefined &&
|
|
155
|
+
typeof current.detail === 'object' &&
|
|
156
|
+
current.detail !== null
|
|
157
|
+
) {
|
|
158
|
+
const cause = (current.detail as { cause?: unknown }).cause;
|
|
159
|
+
if (
|
|
160
|
+
cause === undefined ||
|
|
161
|
+
typeof cause !== 'object' ||
|
|
162
|
+
cause === null ||
|
|
163
|
+
typeof (cause as { code?: unknown }).code !== 'string'
|
|
164
|
+
) {
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
current = cause as RendererErrorObservation;
|
|
168
|
+
}
|
|
169
|
+
return current;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function subscribeRendererErrors(
|
|
173
|
+
renderer: RendererType,
|
|
174
|
+
listener: (error: RendererErrorObservation) => void,
|
|
175
|
+
): () => void {
|
|
176
|
+
return renderer.subscribe((event) => {
|
|
177
|
+
if (event.kind === 'error') listener(unwrapRendererError(event.error));
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
function drawPublished(renderer: RendererType, world: WorldType) {
|
|
182
|
+
const attached = renderer.attach(world);
|
|
183
|
+
if (!attached.ok) throw attached.error;
|
|
184
|
+
world.update().unwrap();
|
|
185
|
+
return drawWithOwners(renderer, world);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// feat-20260704-runtime-tier1-decomposition M2 / w12: reconstitute the
|
|
189
|
+
// eliminated top-level RuntimeErrorCode aggregate union (D-3) as a test-local
|
|
190
|
+
// alias so the exhaustive-switch bodies below stay byte-identical (AC-09).
|
|
191
|
+
type RuntimeLayerErrorCode = RenderErrorCode | AssetRuntimeErrorCode | SkinErrorCode;
|
|
192
|
+
|
|
193
|
+
import {
|
|
194
|
+
AnimationTargetId,
|
|
195
|
+
bindAnimationTargets,
|
|
196
|
+
advanceAnimationPlayer as canonicalAdvanceAnimationPlayer,
|
|
197
|
+
} from '@forgeax/engine-animation';
|
|
198
|
+
import { deriveAnimationTargetId } from '@forgeax/engine-animation/target-id';
|
|
199
|
+
import { DeviceScope } from '../../../render/src/device/device-scope';
|
|
200
|
+
import { GpuBuffer } from '../../../render/src/gpu-resource';
|
|
201
|
+
import { getOrCreateIblCache, hasIblCache } from '../../../render/src/ibl/IblPipelineCache';
|
|
202
|
+
import {
|
|
203
|
+
disposeInstanceBuffers,
|
|
204
|
+
type InstanceBufferCacheEntry,
|
|
205
|
+
} from '../../../render/src/instance-buffer-cache';
|
|
206
|
+
import { standardPipeline as urpPipeline } from '../../../render/src/pipeline/standard-pipeline';
|
|
207
|
+
import { ZERO_CAMERA_CLEAR_FALLBACK } from '../../../render/src/record/frame-snapshot';
|
|
208
|
+
import {
|
|
209
|
+
warnMultiLightDirectional,
|
|
210
|
+
warnMultiLightPoint,
|
|
211
|
+
warnMultiLightSpot,
|
|
212
|
+
} from '../../../render/src/record/helpers';
|
|
213
|
+
import type { CameraSnapshot } from '../../../render/src/render-contract';
|
|
214
|
+
import {
|
|
215
|
+
type ExtractedLights,
|
|
216
|
+
extractFrame,
|
|
217
|
+
extractFrames,
|
|
218
|
+
prepareExtractContext,
|
|
219
|
+
} from '../../../render/src/render-system-extract';
|
|
220
|
+
import {
|
|
221
|
+
getTransparentSortConfig,
|
|
222
|
+
setTransparentSortConfig,
|
|
223
|
+
TRANSPARENT_SORT_CONFIG_KEY,
|
|
224
|
+
TRANSPARENT_SORT_MODE_LAYER_Y,
|
|
225
|
+
TRANSPARENT_SORT_MODE_LAYER_YZ,
|
|
226
|
+
TRANSPARENT_SORT_MODE_LAYER_Z,
|
|
227
|
+
} from '../../../render/src/systems/transparent-sort-config';
|
|
228
|
+
import { spriteAnimationTickSystem } from '../systems/sprite-animation-tick';
|
|
229
|
+
import { REC709_LUMA_WEIGHTS, tonemapReinhardLuminance } from '../systems/tonemap';
|
|
230
|
+
import { transparentSortEntries } from '../systems/transparent-sort';
|
|
231
|
+
import { makeMockShaderRegistry } from './helpers/mock-shader-registry';
|
|
232
|
+
|
|
233
|
+
void [
|
|
234
|
+
ANTIALIAS_FXAA,
|
|
235
|
+
ANTIALIAS_NONE,
|
|
236
|
+
AnimationPlayer,
|
|
237
|
+
AnimationTargetId,
|
|
238
|
+
AssetRegistry,
|
|
239
|
+
BLOOM_DISABLED,
|
|
240
|
+
BLOOM_ENABLED,
|
|
241
|
+
CAMERA_PROJECTION_ORTHOGRAPHIC,
|
|
242
|
+
CAMERA_PROJECTION_PERSPECTIVE,
|
|
243
|
+
Camera,
|
|
244
|
+
ChildOf,
|
|
245
|
+
DeviceScope,
|
|
246
|
+
ENTITY_NULL_RAW,
|
|
247
|
+
GpuBuffer,
|
|
248
|
+
INSTANCE_STORAGE_STRIDE_FLOATS,
|
|
249
|
+
MeshFilter,
|
|
250
|
+
MeshRenderer,
|
|
251
|
+
Name,
|
|
252
|
+
REC709_LUMA_WEIGHTS,
|
|
253
|
+
SPRITE_PLAYBACK_MODE_CLAMP,
|
|
254
|
+
SPRITE_PLAYBACK_MODE_LOOP,
|
|
255
|
+
Skin,
|
|
256
|
+
SkinInstancesCoexistForbiddenError,
|
|
257
|
+
SkinJointCountExceededError,
|
|
258
|
+
SkinJointDespawnedError,
|
|
259
|
+
SkinJointPathUnresolvedError,
|
|
260
|
+
SkyboxBackground,
|
|
261
|
+
Skylight,
|
|
262
|
+
SpriteAnimation,
|
|
263
|
+
SpriteAnimationInvalidError,
|
|
264
|
+
SpriteRegionOverride,
|
|
265
|
+
TONEMAP_LUMINANCE_EPSILON,
|
|
266
|
+
TRANSPARENT_SORT_CONFIG_KEY,
|
|
267
|
+
TRANSPARENT_SORT_MODE_LAYER_Y,
|
|
268
|
+
TRANSPARENT_SORT_MODE_LAYER_YZ,
|
|
269
|
+
TRANSPARENT_SORT_MODE_LAYER_Z,
|
|
270
|
+
Transform,
|
|
271
|
+
World,
|
|
272
|
+
ZERO_CAMERA_CLEAR_FALLBACK,
|
|
273
|
+
afterEach,
|
|
274
|
+
assembleMaterialWithSkylightEntries,
|
|
275
|
+
beforeAll,
|
|
276
|
+
beforeEach,
|
|
277
|
+
bindAnimationTargets,
|
|
278
|
+
buildPbrPipelineLayouts,
|
|
279
|
+
buildUnlitMaterialBgl,
|
|
280
|
+
cameraProjectionFromF32,
|
|
281
|
+
canonicalAdvanceAnimationPlayer,
|
|
282
|
+
componentFieldDefault,
|
|
283
|
+
componentFieldType,
|
|
284
|
+
componentSchemaTypes,
|
|
285
|
+
createSkinPaletteAllocator,
|
|
286
|
+
createSkylightFallback,
|
|
287
|
+
deriveAnimationTargetId,
|
|
288
|
+
describe,
|
|
289
|
+
disposeInstanceBuffers,
|
|
290
|
+
drawPublished,
|
|
291
|
+
drawWithOwners,
|
|
292
|
+
expect,
|
|
293
|
+
extractFrame,
|
|
294
|
+
extractFrames,
|
|
295
|
+
fileURLToPath,
|
|
296
|
+
getOrCreateIblCache,
|
|
297
|
+
getTransparentSortConfig,
|
|
298
|
+
hasIblCache,
|
|
299
|
+
it,
|
|
300
|
+
makeMockShaderRegistry,
|
|
301
|
+
mat4,
|
|
302
|
+
mergeSkylightIntoMaterialBgl,
|
|
303
|
+
prepareExtractContext,
|
|
304
|
+
propagateTransforms,
|
|
305
|
+
readFileSync,
|
|
306
|
+
resolve,
|
|
307
|
+
rhiOk,
|
|
308
|
+
selectSwapChainFormat,
|
|
309
|
+
setTransparentSortConfig,
|
|
310
|
+
spriteAnimationTickSystem,
|
|
311
|
+
standardMaterialShaderVariants,
|
|
312
|
+
subscribeRendererErrors,
|
|
313
|
+
toShared,
|
|
314
|
+
tonemapReinhardLuminance,
|
|
315
|
+
transparentSortEntries,
|
|
316
|
+
unwrapRendererError,
|
|
317
|
+
urpPipeline,
|
|
318
|
+
vec3,
|
|
319
|
+
vi,
|
|
320
|
+
warnMultiLightDirectional,
|
|
321
|
+
warnMultiLightPoint,
|
|
322
|
+
warnMultiLightSpot,
|
|
323
|
+
worldInternal,
|
|
324
|
+
];
|
|
325
|
+
type __MergedKeep =
|
|
326
|
+
| AssetRuntimeErrorCode
|
|
327
|
+
| BindGroupEntry
|
|
328
|
+
| Buffer
|
|
329
|
+
| CameraProjection
|
|
330
|
+
| CameraSnapshot
|
|
331
|
+
| EntityHandle
|
|
332
|
+
| ExtractedLights
|
|
333
|
+
| Handle
|
|
334
|
+
| InstanceBufferCacheEntry
|
|
335
|
+
| MaterialAsset
|
|
336
|
+
| MeshAsset
|
|
337
|
+
| RenderErrorCode
|
|
338
|
+
| RendererErrorObservation
|
|
339
|
+
| RendererType
|
|
340
|
+
| RuntimeLayerErrorCode
|
|
341
|
+
| Sampler
|
|
342
|
+
| SkeletonAsset
|
|
343
|
+
| SkinErrorCode
|
|
344
|
+
| Texture
|
|
345
|
+
| TextureFormat
|
|
346
|
+
| TextureView
|
|
347
|
+
| TransparentEntry
|
|
348
|
+
| WorldType;
|
|
349
|
+
|
|
350
|
+
{
|
|
351
|
+
// --- from sprite-animation-tick-regions-mismatch.test.ts ---
|
|
352
|
+
|
|
353
|
+
function setDt(world: World, dt: number): void {
|
|
354
|
+
world[worldInternal].getClockWriter().time.delta = dt;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
function spawnBadRegionsLength(world: World): EntityHandle {
|
|
358
|
+
// frameCount=4 but regions.length=12 (should be 16). The first row is
|
|
359
|
+
// distinguishable from row 0 of any regions buffer that the tick system
|
|
360
|
+
// could plausibly synthesise so a regression that wrote a stale slice
|
|
361
|
+
// would NOT match this initial state.
|
|
362
|
+
return world
|
|
363
|
+
.spawn({
|
|
364
|
+
component: SpriteAnimation,
|
|
365
|
+
data: {
|
|
366
|
+
frameCount: 4,
|
|
367
|
+
frameDuration: 0.1,
|
|
368
|
+
currentFrame: 0,
|
|
369
|
+
accumDt: 0,
|
|
370
|
+
regions: new Float32Array([0.1, 0.1, 0.2, 0.2, 0.3, 0.3, 0.4, 0.4, 0.5, 0.5, 0.6, 0.6]),
|
|
371
|
+
playbackMode: SPRITE_PLAYBACK_MODE_LOOP,
|
|
372
|
+
},
|
|
373
|
+
})
|
|
374
|
+
.unwrap();
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
function spawnHealthy(world: World): EntityHandle {
|
|
378
|
+
// 4 frames x 4 floats = 16. Distinguishable per-frame so the per-step
|
|
379
|
+
// region assertion can pin which frame fired without ambiguity.
|
|
380
|
+
const regions = new Float32Array([
|
|
381
|
+
0.0, 0, 0.25, 1, 0.25, 0, 0.25, 1, 0.5, 0, 0.25, 1, 0.75, 0, 0.25, 1,
|
|
382
|
+
]);
|
|
383
|
+
return world
|
|
384
|
+
.spawn({
|
|
385
|
+
component: SpriteAnimation,
|
|
386
|
+
data: {
|
|
387
|
+
frameCount: 4,
|
|
388
|
+
frameDuration: 0.1,
|
|
389
|
+
currentFrame: 0,
|
|
390
|
+
accumDt: 0,
|
|
391
|
+
regions,
|
|
392
|
+
playbackMode: SPRITE_PLAYBACK_MODE_LOOP,
|
|
393
|
+
},
|
|
394
|
+
})
|
|
395
|
+
.unwrap();
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
describe('spriteAnimationTickSystem - AC-09(a) regions.length fail-fast (M4 T-19)', () => {
|
|
399
|
+
it('returns Result.err with 4 structured fields when regions.length !== frameCount * 4', () => {
|
|
400
|
+
const world = new World();
|
|
401
|
+
const entity = spawnBadRegionsLength(world);
|
|
402
|
+
|
|
403
|
+
setDt(world, 0.1);
|
|
404
|
+
const r = spriteAnimationTickSystem(world);
|
|
405
|
+
|
|
406
|
+
expect(r.ok).toBe(false);
|
|
407
|
+
if (r.ok) {
|
|
408
|
+
throw new Error('expected Result.err but got ok');
|
|
409
|
+
}
|
|
410
|
+
expect(r.error).toBeInstanceOf(SpriteAnimationInvalidError);
|
|
411
|
+
expect(r.error.code).toBe('sprite-animation-invalid');
|
|
412
|
+
expect(r.error.expected).toBeTruthy();
|
|
413
|
+
expect(r.error.expected.length).toBeGreaterThan(0);
|
|
414
|
+
expect(r.error.hint).toBeTruthy();
|
|
415
|
+
expect(r.error.hint.length).toBeGreaterThan(0);
|
|
416
|
+
expect(r.error.detail.field).toBe('regions-length');
|
|
417
|
+
if (r.error.detail.field !== 'regions-length') {
|
|
418
|
+
throw new Error('expected detail.field=regions-length narrowing');
|
|
419
|
+
}
|
|
420
|
+
expect(r.error.detail.regionsLength).toBe(12);
|
|
421
|
+
expect(r.error.detail.frameCount).toBe(4);
|
|
422
|
+
|
|
423
|
+
// The bad entity does NOT advance: currentFrame stays at 0,
|
|
424
|
+
// accumDt stays at 0. A regression that mutated state before the
|
|
425
|
+
// invariant check would surface as accumDt > 0 here.
|
|
426
|
+
const snap = world.get(entity, SpriteAnimation).unwrap();
|
|
427
|
+
expect(snap.currentFrame).toBe(0);
|
|
428
|
+
expect(snap.accumDt).toBeCloseTo(0, 6);
|
|
429
|
+
});
|
|
430
|
+
|
|
431
|
+
it('healthy entity advances normally beside a bad-regions-length entity', () => {
|
|
432
|
+
const world = new World();
|
|
433
|
+
const bad = spawnBadRegionsLength(world);
|
|
434
|
+
const good = spawnHealthy(world);
|
|
435
|
+
|
|
436
|
+
// dt=0.15 -> good.accumDt=0.15 -> one advance: good.currentFrame=1,
|
|
437
|
+
// good.accumDt=0.05. The bad entity stays put.
|
|
438
|
+
setDt(world, 0.15);
|
|
439
|
+
const r = spriteAnimationTickSystem(world);
|
|
440
|
+
|
|
441
|
+
expect(r.ok).toBe(false);
|
|
442
|
+
if (r.ok) {
|
|
443
|
+
throw new Error('expected Result.err but got ok');
|
|
444
|
+
}
|
|
445
|
+
expect(r.error.code).toBe('sprite-animation-invalid');
|
|
446
|
+
expect(r.error.detail.field).toBe('regions-length');
|
|
447
|
+
|
|
448
|
+
const badSnap = world.get(bad, SpriteAnimation).unwrap();
|
|
449
|
+
expect(badSnap.currentFrame).toBe(0);
|
|
450
|
+
expect(badSnap.accumDt).toBeCloseTo(0, 6);
|
|
451
|
+
|
|
452
|
+
const goodSnap = world.get(good, SpriteAnimation).unwrap();
|
|
453
|
+
expect(goodSnap.currentFrame).toBe(1);
|
|
454
|
+
expect(goodSnap.accumDt).toBeCloseTo(0.05, 6);
|
|
455
|
+
|
|
456
|
+
// Healthy entity also got its SpriteRegionOverride written to the
|
|
457
|
+
// currentFrame=1 slice (regions[4..8]).
|
|
458
|
+
const sro = world.get(good, SpriteRegionOverride).unwrap();
|
|
459
|
+
expect(sro.region.length).toBe(4);
|
|
460
|
+
expect(sro.region[0]).toBeCloseTo(0.25, 6);
|
|
461
|
+
expect(sro.region[1]).toBeCloseTo(0, 6);
|
|
462
|
+
expect(sro.region[2]).toBeCloseTo(0.25, 6);
|
|
463
|
+
expect(sro.region[3]).toBeCloseTo(1, 6);
|
|
464
|
+
});
|
|
465
|
+
});
|
|
466
|
+
}
|
|
@@ -46,22 +46,22 @@ function makeSpec(shaderId: string): PipelineSpec {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
describe('sprite-lit BGL byte-identical to sprite (AC-07, w4/w5 close)', () => {
|
|
49
|
-
describe('pbr-view BGL (
|
|
50
|
-
it('sprite-lit vs sprite share the same
|
|
49
|
+
describe('pbr-view BGL (Cluster lights live in group(2))', () => {
|
|
50
|
+
it('sprite-lit vs sprite share the same 10-entry pbr-view BGL under storage-buffer caps', () => {
|
|
51
51
|
const spriteSpec = makeSpec('forgeax::sprite');
|
|
52
52
|
const spriteLitSpec = makeSpec('forgeax::sprite-lit');
|
|
53
53
|
const sprite = buildBindGroupLayoutDescriptor(spriteSpec, {
|
|
54
54
|
kind: 'pbr-view',
|
|
55
|
-
caps: { storageBuffer: true },
|
|
55
|
+
caps: { storageBuffer: true, extendedLighting: false },
|
|
56
56
|
});
|
|
57
57
|
const spriteLit = buildBindGroupLayoutDescriptor(spriteLitSpec, {
|
|
58
58
|
kind: 'pbr-view',
|
|
59
|
-
caps: { storageBuffer: true },
|
|
59
|
+
caps: { storageBuffer: true, extendedLighting: false },
|
|
60
60
|
});
|
|
61
61
|
expect(JSON.stringify(spriteLit)).toBe(JSON.stringify(sprite));
|
|
62
62
|
// binding 10 is the shared Points/Lines view UBO; bindings 11/12 are the
|
|
63
63
|
// optional SpotLight projector texture and sampler on capable devices.
|
|
64
|
-
expect(spriteLit.entries.length).toBe(
|
|
64
|
+
expect(spriteLit.entries.length).toBe(10);
|
|
65
65
|
});
|
|
66
66
|
|
|
67
67
|
it('sprite-lit vs sprite share the same 10-entry pbr-view BGL under uniform fallback caps (AC-10)', () => {
|
|
@@ -69,25 +69,23 @@ describe('sprite-lit BGL byte-identical to sprite (AC-07, w4/w5 close)', () => {
|
|
|
69
69
|
const spriteLitSpec = makeSpec('forgeax::sprite-lit');
|
|
70
70
|
const sprite = buildBindGroupLayoutDescriptor(spriteSpec, {
|
|
71
71
|
kind: 'pbr-view',
|
|
72
|
-
caps: { storageBuffer: false },
|
|
72
|
+
caps: { storageBuffer: false, extendedLighting: false },
|
|
73
73
|
});
|
|
74
74
|
const spriteLit = buildBindGroupLayoutDescriptor(spriteLitSpec, {
|
|
75
75
|
kind: 'pbr-view',
|
|
76
|
-
caps: { storageBuffer: false },
|
|
76
|
+
caps: { storageBuffer: false, extendedLighting: false },
|
|
77
77
|
});
|
|
78
78
|
expect(JSON.stringify(spriteLit)).toBe(JSON.stringify(sprite));
|
|
79
79
|
});
|
|
80
80
|
|
|
81
|
-
it('
|
|
81
|
+
it('does not expose point/spot light bindings on storageBuffer=true', () => {
|
|
82
82
|
const entries = buildPbrViewBglEntries({ storageBuffer: true });
|
|
83
|
-
expect(entries
|
|
84
|
-
expect(entries[2]?.buffer?.type).toBe('read-only-storage');
|
|
83
|
+
expect(entries.some((entry) => entry.binding === 1 || entry.binding === 2)).toBe(false);
|
|
85
84
|
});
|
|
86
85
|
|
|
87
|
-
it('
|
|
86
|
+
it('does not expose point/spot light bindings on storageBuffer=false', () => {
|
|
88
87
|
const entries = buildPbrViewBglEntries({ storageBuffer: false });
|
|
89
|
-
expect(entries
|
|
90
|
-
expect(entries[2]?.buffer?.type).toBe('uniform');
|
|
88
|
+
expect(entries.some((entry) => entry.binding === 1 || entry.binding === 2)).toBe(false);
|
|
91
89
|
});
|
|
92
90
|
});
|
|
93
91
|
|
|
@@ -120,19 +118,19 @@ describe('sprite-lit BGL byte-identical to sprite (AC-07, w4/w5 close)', () => {
|
|
|
120
118
|
});
|
|
121
119
|
|
|
122
120
|
describe('material BGL congruence (pbr-material-merged / unlit-material)', () => {
|
|
123
|
-
it('pbr-material-user-region entries are
|
|
121
|
+
it('pbr-material-user-region entries are 15 (PBR layout reused by sprite & sprite-lit)', () => {
|
|
124
122
|
// sprite + sprite-lit use the default standard-PBR user-region
|
|
125
|
-
// schema (20 value fields +
|
|
123
|
+
// schema (20 value fields + 7 user-region texture fields produce 15 BGL entries).
|
|
126
124
|
// Both share the same userRegion shape and therefore the same BGL.
|
|
127
125
|
const base = buildPbrMaterialUserRegionEntries();
|
|
128
|
-
expect(base.length).toBe(
|
|
126
|
+
expect(base.length).toBe(15);
|
|
129
127
|
});
|
|
130
128
|
|
|
131
|
-
it('pbr-material-merged stays
|
|
129
|
+
it('pbr-material-merged stays 24 entries (sprite/sprite-lit do not change material BGL shape)', () => {
|
|
132
130
|
const merged = buildBindGroupLayoutDescriptor(makeSpec('forgeax::sprite-lit'), {
|
|
133
131
|
kind: 'pbr-material-merged',
|
|
134
132
|
});
|
|
135
|
-
expect(merged.entries.length).toBe(
|
|
133
|
+
expect(merged.entries.length).toBe(24);
|
|
136
134
|
// mergeSkylightIntoMaterialBgl + transmission injection must stay
|
|
137
135
|
// append-only against the 7-entry PBR base.
|
|
138
136
|
const base = buildPbrMaterialUserRegionEntries();
|
|
@@ -113,7 +113,7 @@ describe('sprite-lit pipeline cache-key string isolation (D-11 remap, AC-08)', (
|
|
|
113
113
|
// recognised material shader.
|
|
114
114
|
const fs = await import('node:fs');
|
|
115
115
|
const src = fs.readFileSync(
|
|
116
|
-
fileURLToPath(new URL('../../../render/src/assembly/
|
|
116
|
+
fileURLToPath(new URL('../../../render/src/assembly/webgpu-renderer.ts', import.meta.url)),
|
|
117
117
|
'utf8',
|
|
118
118
|
);
|
|
119
119
|
// Once t7 wires it, both literals appear (sprite already in tree).
|
|
@@ -39,6 +39,7 @@ import {
|
|
|
39
39
|
getOrCreateSsaoFallbackTexture,
|
|
40
40
|
packClusterUniform,
|
|
41
41
|
} from '../../../render/src/hdrp-buffers';
|
|
42
|
+
import { BYTES_PER_DIRECT_LIGHT_SLOT } from '../../../render/src/light-buffer-layout';
|
|
42
43
|
import { createHdrpBindGroupLayoutDescriptor } from '../../../render/src/pipeline-spec';
|
|
43
44
|
import type { RenderSystemRuntime } from '../../../render/src/render-system';
|
|
44
45
|
|
|
@@ -133,7 +134,7 @@ function fakeHdrpBuffers(): HdrpBuffers {
|
|
|
133
134
|
return {
|
|
134
135
|
device: {} as HdrpBuffers['device'],
|
|
135
136
|
lightDataBuffer: mockBuffer('hdrp-light-data'),
|
|
136
|
-
lightDataBytes:
|
|
137
|
+
lightDataBytes: 256 * BYTES_PER_DIRECT_LIGHT_SLOT,
|
|
137
138
|
clusterGridBuffer: mockBuffer('hdrp-cluster-grid'),
|
|
138
139
|
clusterGridBytes: 1024,
|
|
139
140
|
lightIndexListBuffer: mockBuffer('hdrp-light-index-list'),
|
|
@@ -107,7 +107,7 @@ describe('SSAO RenderPipeline PSO descriptor assertions (w24 — RED)', () => {
|
|
|
107
107
|
|
|
108
108
|
it('(g1) renderer BGL keeps the kernel binding uniform', () => {
|
|
109
109
|
const factory = readFileSync(
|
|
110
|
-
fileURLToPath(new URL('../../../render/src/assembly/
|
|
110
|
+
fileURLToPath(new URL('../../../render/src/assembly/webgpu-ready.ts', import.meta.url)),
|
|
111
111
|
'utf8',
|
|
112
112
|
);
|
|
113
113
|
const ssaoBgl = factory.slice(factory.indexOf("label: 'ssao-bgl'"));
|