@forgeax/engine-render 0.1.33 → 0.1.35
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 +1062 -127
- package/dist/assembly/backend-contract.d.ts +2 -0
- package/dist/assembly/backend-contract.d.ts.map +1 -1
- package/dist/assembly/barrel-distortion-inspection.d.ts +3 -0
- package/dist/assembly/barrel-distortion-inspection.d.ts.map +1 -0
- package/dist/assembly/canvas-draw-guard.d.ts +3 -0
- package/dist/assembly/canvas-draw-guard.d.ts.map +1 -0
- package/dist/assembly/cloud-shadow-entry.d.ts +4 -0
- package/dist/assembly/cloud-shadow-entry.d.ts.map +1 -0
- package/dist/assembly/device-feature-admission.d.ts +2 -2
- package/dist/assembly/dynamic-geometry-host.d.ts +4 -1
- package/dist/assembly/dynamic-geometry-host.d.ts.map +1 -1
- package/dist/assembly/dynamic-geometry-runtime.d.ts +1 -1
- package/dist/assembly/dynamic-geometry-runtime.d.ts.map +1 -1
- package/dist/assembly/factory.d.ts +1 -1
- package/dist/assembly/factory.d.ts.map +1 -1
- package/dist/assembly/host-contract.d.ts +6 -5
- package/dist/assembly/host-contract.d.ts.map +1 -1
- package/dist/assembly/material/assembly.d.ts.map +1 -1
- package/dist/assembly/material/pipeline-helpers.d.ts +5 -0
- package/dist/assembly/material/pipeline-helpers.d.ts.map +1 -1
- package/dist/assembly/material-shader-policy.d.ts +16 -2
- package/dist/assembly/material-shader-policy.d.ts.map +1 -1
- package/dist/assembly/material-shader-prewarm.d.ts.map +1 -1
- package/dist/assembly/recovery/device-loss-fanout.d.ts.map +1 -1
- package/dist/assembly/recovery/renderer-recover.d.ts +2 -0
- package/dist/assembly/recovery/renderer-recover.d.ts.map +1 -1
- package/dist/assembly/render-feature-post-processes.d.ts +6 -0
- package/dist/assembly/render-feature-post-processes.d.ts.map +1 -0
- package/dist/assembly/render-target-host.d.ts +5 -0
- package/dist/assembly/render-target-host.d.ts.map +1 -1
- package/dist/assembly/renderer-facade.d.ts.map +1 -1
- package/dist/assembly/renderer-feature-inspection.d.ts +1 -1
- package/dist/assembly/renderer-feature-inspection.d.ts.map +1 -1
- package/dist/assembly/renderer-frame-transaction.d.ts +12 -0
- package/dist/assembly/renderer-frame-transaction.d.ts.map +1 -1
- package/dist/assembly/renderer-inspection.d.ts +11 -0
- package/dist/assembly/renderer-inspection.d.ts.map +1 -1
- package/dist/assembly/webgpu-pbr-ready.d.ts +1 -0
- package/dist/assembly/webgpu-pbr-ready.d.ts.map +1 -1
- package/dist/assembly/webgpu-ready-per-pass.d.ts +39 -0
- package/dist/assembly/webgpu-ready-per-pass.d.ts.map +1 -0
- package/dist/assembly/webgpu-ready.d.ts +1 -1
- package/dist/assembly/webgpu-ready.d.ts.map +1 -1
- package/dist/assembly/webgpu-renderer-bootstrap.d.ts.map +1 -1
- package/dist/assembly/webgpu-renderer-observation-owner.d.ts +35 -0
- package/dist/assembly/webgpu-renderer-observation-owner.d.ts.map +1 -0
- package/dist/assembly/webgpu-renderer.d.ts +2 -1
- package/dist/assembly/webgpu-renderer.d.ts.map +1 -1
- package/dist/authoring.mjs +2 -4
- package/dist/authoring.mjs.map +1 -1
- package/dist/barrel-distortion.d.ts +47 -0
- package/dist/barrel-distortion.d.ts.map +1 -0
- package/dist/chunk-3XUBWRY2.mjs +1842 -0
- package/dist/chunk-3XUBWRY2.mjs.map +1 -0
- package/dist/{chunk-OO3DRYK7.mjs → chunk-G6HDNGY7.mjs} +2400 -1767
- package/dist/chunk-G6HDNGY7.mjs.map +1 -0
- package/dist/{chunk-ZDQWGQW7.mjs → chunk-LM5IE7GF.mjs} +4 -4
- package/dist/{chunk-ZDQWGQW7.mjs.map → chunk-LM5IE7GF.mjs.map} +1 -1
- package/dist/{chunk-VOZWDM3L.mjs → chunk-LNIUIKQ7.mjs} +1514 -498
- package/dist/chunk-LNIUIKQ7.mjs.map +1 -0
- package/dist/chunk-MXTWKZO4.mjs +3268 -0
- package/dist/chunk-MXTWKZO4.mjs.map +1 -0
- package/dist/chunk-MZ4C7EHF.mjs +6942 -0
- package/dist/chunk-MZ4C7EHF.mjs.map +1 -0
- package/dist/chunk-RIPAEGI6.mjs +48 -0
- package/dist/chunk-RIPAEGI6.mjs.map +1 -0
- package/dist/{chunk-LEAXOMYJ.mjs → chunk-SGPUJW3F.mjs} +117 -5
- package/dist/chunk-SGPUJW3F.mjs.map +1 -0
- package/dist/{chunk-PA5DRJNI.mjs → chunk-X2KA6WHM.mjs} +29 -4
- package/dist/chunk-X2KA6WHM.mjs.map +1 -0
- package/dist/{chunk-BLXGONR2.mjs → chunk-XSFB7XXQ.mjs} +51 -4
- package/dist/chunk-XSFB7XXQ.mjs.map +1 -0
- package/dist/cloud/density.d.ts +55 -0
- package/dist/cloud/density.d.ts.map +1 -0
- package/dist/cloud/extract.d.ts +25 -0
- package/dist/cloud/extract.d.ts.map +1 -0
- package/dist/cloud/feature.d.ts +57 -0
- package/dist/cloud/feature.d.ts.map +1 -0
- package/dist/cloud/frame-context.d.ts +8 -0
- package/dist/cloud/frame-context.d.ts.map +1 -0
- package/dist/cloud/inspection.d.ts +59 -0
- package/dist/cloud/inspection.d.ts.map +1 -0
- package/dist/cloud/optics.d.ts +56 -0
- package/dist/cloud/optics.d.ts.map +1 -0
- package/dist/cloud/parameters.d.ts +73 -0
- package/dist/cloud/parameters.d.ts.map +1 -0
- package/dist/cloud/resources.d.ts +60 -0
- package/dist/cloud/resources.d.ts.map +1 -0
- package/dist/cloud/shadow.d.ts +42 -0
- package/dist/cloud/shadow.d.ts.map +1 -0
- package/dist/cloud/temporal.d.ts +74 -0
- package/dist/cloud/temporal.d.ts.map +1 -0
- package/dist/components/barrel-distortion.d.ts +13 -0
- package/dist/components/barrel-distortion.d.ts.map +1 -0
- package/dist/components/cloud-layer.d.ts +29 -0
- package/dist/components/cloud-layer.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/instances.d.ts +20 -6
- package/dist/components/instances.d.ts.map +1 -1
- package/dist/construct-renderer.d.ts +1 -1
- package/dist/construct-renderer.d.ts.map +1 -1
- package/dist/construct-renderer.mjs +8406 -5785
- package/dist/construct-renderer.mjs.map +1 -1
- package/dist/device/gpu-residency.d.ts +19 -19
- package/dist/device/gpu-residency.d.ts.map +1 -1
- package/dist/dynamic-geometry.d.ts +5 -1
- package/dist/dynamic-geometry.d.ts.map +1 -1
- package/dist/errors/cloud.d.ts +59 -0
- package/dist/errors/cloud.d.ts.map +1 -0
- package/dist/errors/render.d.ts +20 -5
- package/dist/errors/render.d.ts.map +1 -1
- package/dist/examples/single-layer-medium-surface.d.ts +47 -0
- package/dist/examples/single-layer-medium-surface.d.ts.map +1 -0
- package/dist/extract/camera.d.ts.map +1 -1
- package/dist/extract/contracts.d.ts +5 -1
- package/dist/extract/contracts.d.ts.map +1 -1
- package/dist/extract/material-context.d.ts +7 -0
- package/dist/extract/material-context.d.ts.map +1 -0
- package/dist/features/barrel-distortion.d.ts +29 -0
- package/dist/features/barrel-distortion.d.ts.map +1 -0
- package/dist/features/error-reporting.d.ts +6 -2
- package/dist/features/error-reporting.d.ts.map +1 -1
- package/dist/features/host.d.ts +15 -0
- package/dist/features/host.d.ts.map +1 -1
- package/dist/features/plan.d.ts +10 -0
- package/dist/features/plan.d.ts.map +1 -1
- package/dist/features/render-graph-contribution.d.ts +5 -0
- package/dist/features/render-graph-contribution.d.ts.map +1 -1
- package/dist/features/render-graph-raster.d.ts +1 -0
- package/dist/features/render-graph-raster.d.ts.map +1 -1
- package/dist/features/targets.d.ts +2 -0
- package/dist/features/targets.d.ts.map +1 -1
- package/dist/features/types.d.ts +48 -0
- package/dist/features/types.d.ts.map +1 -1
- package/dist/fullscreen-post-process-pass.d.ts +15 -7
- package/dist/fullscreen-post-process-pass.d.ts.map +1 -1
- package/dist/glyph-text-layout-system.d.ts +1 -1
- package/dist/glyph-text-layout-system.d.ts.map +1 -1
- package/dist/gpu-dirty-ranges.d.ts +11 -0
- package/dist/gpu-dirty-ranges.d.ts.map +1 -0
- package/dist/gpu-driven/batch-topology.d.ts +17 -0
- package/dist/gpu-driven/batch-topology.d.ts.map +1 -1
- package/dist/gpu-driven/material-artifacts.d.ts +6 -0
- package/dist/gpu-driven/material-artifacts.d.ts.map +1 -1
- package/dist/gpu-driven/prepared-draw.d.ts.map +1 -1
- package/dist/gpu-driven/production-raster-material.d.ts +178 -0
- package/dist/gpu-driven/production-raster-material.d.ts.map +1 -0
- package/dist/gpu-driven/production-raster.d.ts +47 -3
- package/dist/gpu-driven/production-raster.d.ts.map +1 -1
- package/dist/gpu-driven/resource-allocation.d.ts +31 -0
- package/dist/gpu-driven/resource-allocation.d.ts.map +1 -0
- package/dist/gpu-driven/shadow-ownership.d.ts +14 -0
- package/dist/gpu-driven/shadow-ownership.d.ts.map +1 -0
- package/dist/gpu-driven/view-gpu.d.ts +26 -2
- package/dist/gpu-driven/view-gpu.d.ts.map +1 -1
- package/dist/gpu-scene.d.ts +5 -0
- package/dist/gpu-scene.d.ts.map +1 -1
- package/dist/hdrp-buffers.d.ts +2 -2
- package/dist/hdrp-buffers.d.ts.map +1 -1
- package/dist/ibl/frame-resources.d.ts.map +1 -1
- package/dist/ibl/skylight-bind-group.d.ts +14 -5
- package/dist/ibl/skylight-bind-group.d.ts.map +1 -1
- package/dist/index.d.ts +30 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +780 -9
- package/dist/index.mjs.map +1 -1
- package/dist/inspection-types.d.ts +135 -1
- package/dist/inspection-types.d.ts.map +1 -1
- package/dist/instance-buffer-cache.d.ts +4 -4
- package/dist/instance-buffer-cache.d.ts.map +1 -1
- package/dist/instances.d.ts +47 -100
- package/dist/instances.d.ts.map +1 -1
- package/dist/internal.mjs +7 -8
- package/dist/internal.mjs.map +1 -1
- package/dist/pbr-pipeline.d.ts +22 -4
- package/dist/pbr-pipeline.d.ts.map +1 -1
- package/dist/pipeline/single-layer-medium-passes.d.ts +73 -0
- package/dist/pipeline/single-layer-medium-passes.d.ts.map +1 -0
- package/dist/pipeline/standard-forward-lane.d.ts.map +1 -1
- package/dist/pipeline/standard-output/graph.d.ts.map +1 -1
- package/dist/pipeline/standard-output/lut-gpu.d.ts +2 -2
- package/dist/pipeline/standard-output/lut-gpu.d.ts.map +1 -1
- package/dist/pipeline/standard-output/resources.d.ts +2 -2
- package/dist/pipeline/standard-output/resources.d.ts.map +1 -1
- package/dist/pipeline/standard-output/types.d.ts +4 -2
- package/dist/pipeline/standard-output/types.d.ts.map +1 -1
- package/dist/pipeline/standard-pipeline.d.ts.map +1 -1
- package/dist/pipeline/standard-post.d.ts.map +1 -1
- package/dist/pipeline-builder.d.ts +1 -1
- package/dist/pipeline-builder.d.ts.map +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/prepare/prepared-graphics-resolver.d.ts +2 -0
- package/dist/prepare/prepared-graphics-resolver.d.ts.map +1 -1
- package/dist/publication/contract.d.ts +77 -0
- package/dist/publication/contract.d.ts.map +1 -0
- package/dist/publication/dependencies.d.ts +7 -0
- package/dist/publication/dependencies.d.ts.map +1 -0
- package/dist/publication/prepare-geometry.d.ts +9 -0
- package/dist/publication/prepare-geometry.d.ts.map +1 -0
- package/dist/publication/programs.d.ts +5 -0
- package/dist/publication/programs.d.ts.map +1 -0
- package/dist/publication/publisher.d.ts +33 -0
- package/dist/publication/publisher.d.ts.map +1 -0
- package/dist/publication/receiver.d.ts +29 -0
- package/dist/publication/receiver.d.ts.map +1 -0
- package/dist/publication/resource-scope.d.ts +18 -0
- package/dist/publication/resource-scope.d.ts.map +1 -0
- package/dist/publication/targets.d.ts +33 -0
- package/dist/publication/targets.d.ts.map +1 -0
- package/dist/publication/video.d.ts +5 -0
- package/dist/publication/video.d.ts.map +1 -0
- package/dist/record/barrel-distortion-frame.d.ts +15 -0
- package/dist/record/barrel-distortion-frame.d.ts.map +1 -0
- package/dist/record/dynamic-geometry-consumption.d.ts +10 -2
- package/dist/record/dynamic-geometry-consumption.d.ts.map +1 -1
- package/dist/record/fold-buckets.d.ts +95 -0
- package/dist/record/fold-buckets.d.ts.map +1 -0
- package/dist/record/fold-instance-buffer.d.ts +6 -0
- package/dist/record/fold-instance-buffer.d.ts.map +1 -0
- package/dist/record/frame-lighting.d.ts +1 -0
- package/dist/record/frame-lighting.d.ts.map +1 -1
- package/dist/record/frame-snapshot.d.ts +43 -9
- package/dist/record/frame-snapshot.d.ts.map +1 -1
- package/dist/record/frame.d.ts +15 -65
- package/dist/record/frame.d.ts.map +1 -1
- package/dist/record/gpu-draw-receipts.d.ts +11 -0
- package/dist/record/gpu-draw-receipts.d.ts.map +1 -0
- package/dist/record/gpu-timing.d.ts +8 -0
- package/dist/record/gpu-timing.d.ts.map +1 -1
- package/dist/record/helpers.d.ts +2 -2
- package/dist/record/helpers.d.ts.map +1 -1
- package/dist/record/main-pass-geometry.d.ts +22 -6
- package/dist/record/main-pass-geometry.d.ts.map +1 -1
- package/dist/record/main-pass-material.d.ts +14 -10
- package/dist/record/main-pass-material.d.ts.map +1 -1
- package/dist/record/main-pass-sprite-draws.d.ts +3 -16
- package/dist/record/main-pass-sprite-draws.d.ts.map +1 -1
- package/dist/record/main-pass.d.ts +13 -2
- package/dist/record/main-pass.d.ts.map +1 -1
- package/dist/record/motion-blur-receipt.d.ts +11 -0
- package/dist/record/motion-blur-receipt.d.ts.map +1 -0
- package/dist/record/prepared-material-bindings.d.ts +3 -3
- package/dist/record/prepared-material-bindings.d.ts.map +1 -1
- package/dist/record/probe-blend-buffer.d.ts +16 -0
- package/dist/record/probe-blend-buffer.d.ts.map +1 -0
- package/dist/record/recovery-pipeline.d.ts.map +1 -1
- package/dist/record/render-context.d.ts +24 -5
- package/dist/record/render-context.d.ts.map +1 -1
- package/dist/record/shadow-pass.d.ts +2 -0
- package/dist/record/shadow-pass.d.ts.map +1 -1
- package/dist/record/skybox-post-pass.d.ts +1 -1
- package/dist/record/skybox-post-pass.d.ts.map +1 -1
- package/dist/record/sprite-instance-buffer.d.ts +31 -0
- package/dist/record/sprite-instance-buffer.d.ts.map +1 -0
- package/dist/record/target-capture-graph.d.ts +19 -0
- package/dist/record/target-capture-graph.d.ts.map +1 -0
- package/dist/record/typed-frame-graph.d.ts +24 -15
- package/dist/record/typed-frame-graph.d.ts.map +1 -1
- package/dist/record/view-ubo.d.ts +11 -3
- package/dist/record/view-ubo.d.ts.map +1 -1
- package/dist/record/volume-params.d.ts +9 -0
- package/dist/record/volume-params.d.ts.map +1 -0
- package/dist/recovery/render-system-candidate.d.ts +14 -4
- package/dist/recovery/render-system-candidate.d.ts.map +1 -1
- package/dist/reflection/record-owner.d.ts.map +1 -1
- package/dist/render-contract.d.ts +46 -5
- package/dist/render-contract.d.ts.map +1 -1
- package/dist/render-graph-primitives.d.ts.map +1 -1
- package/dist/render-pipeline.d.ts +103 -2
- package/dist/render-pipeline.d.ts.map +1 -1
- package/dist/render-system-extract-tail.d.ts +3 -2
- package/dist/render-system-extract-tail.d.ts.map +1 -1
- package/dist/render-system-extract.d.ts +18 -9
- package/dist/render-system-extract.d.ts.map +1 -1
- package/dist/render-system-presentation.d.ts +23 -0
- package/dist/render-system-presentation.d.ts.map +1 -0
- package/dist/render-system-producer-roots.d.ts +10 -0
- package/dist/render-system-producer-roots.d.ts.map +1 -0
- package/dist/render-system-projections.d.ts +3 -2
- package/dist/render-system-projections.d.ts.map +1 -1
- package/dist/render-system-residency.d.ts +12 -0
- package/dist/render-system-residency.d.ts.map +1 -0
- package/dist/render-system.d.ts +22 -21
- package/dist/render-system.d.ts.map +1 -1
- package/dist/scene/probe-blend.d.ts +27 -0
- package/dist/scene/probe-blend.d.ts.map +1 -1
- package/dist/scene/render-scene.d.ts +18 -7
- package/dist/scene/render-scene.d.ts.map +1 -1
- package/dist/scene/render-source.d.ts +42 -0
- package/dist/scene/render-source.d.ts.map +1 -0
- package/dist/scene/source-systems.d.ts +6 -0
- package/dist/scene/source-systems.d.ts.map +1 -0
- package/dist/ssao-buffers.d.ts +9 -0
- package/dist/ssao-buffers.d.ts.map +1 -1
- package/dist/surface/dynamic-input.d.ts +133 -0
- package/dist/surface/dynamic-input.d.ts.map +1 -0
- package/dist/surface/gpu-driven.d.ts +41 -0
- package/dist/surface/gpu-driven.d.ts.map +1 -0
- package/dist/surface/submission-observation.d.ts +136 -0
- package/dist/surface/submission-observation.d.ts.map +1 -0
- package/dist/systems/skin-palette-allocator.d.ts.map +1 -1
- package/dist/systems/skin-palette-types.d.ts +10 -0
- package/dist/systems/skin-palette-types.d.ts.map +1 -1
- package/dist/systems/transparent-dispatch.d.ts +2 -2
- package/dist/systems/transparent-dispatch.d.ts.map +1 -1
- package/dist/systems/transparent-sort-config.d.ts +2 -1
- package/dist/systems/transparent-sort-config.d.ts.map +1 -1
- package/dist/temporal/gpu.d.ts +13 -1
- package/dist/temporal/gpu.d.ts.map +1 -1
- package/dist/temporal/index.mjs +6 -7
- package/dist/temporal/inspection.d.ts.map +1 -1
- package/dist/temporal/standard-scene-data.d.ts.map +1 -1
- package/dist/temporal/target-coverage-attachment.d.ts.map +1 -1
- package/dist/transmission/single-layer-medium.d.ts +89 -0
- package/dist/transmission/single-layer-medium.d.ts.map +1 -0
- package/dist/typed-render-graph-primitives.d.ts +14 -2
- package/dist/typed-render-graph-primitives.d.ts.map +1 -1
- package/dist/volume/component.d.ts +9 -4
- package/dist/volume/component.d.ts.map +1 -1
- package/dist/volume/extract.d.ts +1 -1
- package/dist/volume/extract.d.ts.map +1 -1
- package/dist/volume/inspection.d.ts +2 -0
- package/dist/volume/inspection.d.ts.map +1 -1
- package/dist/volume/passes.d.ts +4 -1
- package/dist/volume/passes.d.ts.map +1 -1
- package/dist/volume/resources.d.ts.map +1 -1
- package/package.json +22 -21
- package/src/__tests__/atmosphere-daylight.dawn.test.ts +72 -0
- package/src/__tests__/auto-exposure-transaction.integration.test.ts +4 -9
- package/src/__tests__/barrel-distortion-lkg.integration.test.ts +353 -0
- package/src/__tests__/barrel-distortion.dawn.test.ts +41 -0
- package/src/__tests__/barrel-distortion.unit.test.ts +364 -0
- package/src/__tests__/construct-renderer-identity.unit.test.ts +49 -0
- package/src/__tests__/detached-recovery-graph.unit.test.ts +277 -0
- package/src/__tests__/device-feature-admission.unit.test.ts +3 -2
- package/src/__tests__/device-loss-fanout.unit.test.ts +36 -1
- package/src/__tests__/docs-gate-green.unit.test.ts +112 -1
- package/src/__tests__/factory-contract.integration.test.ts +295 -45
- package/src/__tests__/feature-depth-input.dawn.test.ts +129 -2
- package/src/__tests__/fullscreen-feature-plan.unit.test.ts +14 -3
- package/src/__tests__/gpu-dirty-ranges.unit.test.ts +22 -0
- package/src/__tests__/gpu-driven-baseline.characterization.test.ts +16 -3
- package/src/__tests__/gpu-driven-batch-topology-pbr.unit.test.ts +12 -0
- package/src/__tests__/gpu-driven-material-artifacts.unit.test.ts +143 -0
- package/src/__tests__/gpu-driven-pbr.dawn.test.ts +5 -6
- package/src/__tests__/gpu-driven-production.integration.test.ts +482 -3
- package/src/__tests__/gpu-driven-shadow-views.dawn.test.ts +6 -5
- package/src/__tests__/gpu-driven-view-gpu-evidence.ts +94 -6
- package/src/__tests__/gpu-driven-view-graph.integration.test.ts +18 -2
- package/src/__tests__/gpu-driven-view.browser.test.ts +5 -8
- package/src/__tests__/gpu-driven-view.dawn.test.ts +6 -2
- package/src/__tests__/gpu-driven-view.unit.test.ts +1 -1
- package/src/__tests__/gpu-pass-timing-lifecycle.integration.test.ts +1 -0
- package/src/__tests__/gpu-pass-timing.browser.test.ts +6 -4
- package/src/__tests__/gpu-pass-timing.rhi-null.unit.test.ts +1 -0
- package/src/__tests__/gpu-scene.unit.test.ts +119 -9
- package/src/__tests__/instance-allocation-failure.unit.test.ts +57 -0
- package/src/__tests__/instances-culling.integration.test.ts +10 -36
- package/src/__tests__/instances-store.unit.test.ts +97 -305
- package/src/__tests__/instances-world-ownership.integration.test.ts +62 -0
- package/src/__tests__/ktx2-basis-gpu-consumer.dawn.test.ts +4 -1
- package/src/__tests__/main-pass-material-medium-selection.unit.test.ts +145 -0
- package/src/__tests__/material-shader-prewarm.unit.test.ts +59 -0
- package/src/__tests__/material-snapshot-mutation.integration.test.ts +39 -1
- package/src/__tests__/materials-standard-contract.unit.test.ts +0 -1
- package/src/__tests__/morph-culling-reentry.dawn.test.ts +5 -5
- package/src/__tests__/morph-visual-evidence.integration.test.ts +8 -7
- package/src/__tests__/motion-blur-compute.dawn.test.ts +13 -7
- package/src/__tests__/motion-blur.pixel.integration.test.ts +2 -2
- package/src/__tests__/nineslice-handle-surface.unit.test.ts +4 -4
- package/src/__tests__/pbr-view-layout.unit.test.ts +9 -0
- package/src/__tests__/physical-clearcoat.integration.test.ts +66 -8
- package/src/__tests__/physical-material-budget.unit.test.ts +40 -0
- package/src/__tests__/prepared-graphics-capability.unit.test.ts +66 -2
- package/src/__tests__/probe-bindings.unit.test.ts +582 -1
- package/src/__tests__/probe-scene-dirty.integration.test.ts +28 -1
- package/src/__tests__/receipt-observation-retirement.unit.test.ts +65 -0
- package/src/__tests__/recovery-candidate-prepare.contract.test.ts +69 -0
- package/src/__tests__/render-error-code-owner.test-d.ts +8 -0
- package/src/__tests__/render-feature-diagnostics.unit.test.ts +15 -2
- package/src/__tests__/render-feature-error-reporting.unit.test.ts +21 -1
- package/src/__tests__/render-feature-prepared-diagnostics.unit.test.ts +10 -1
- package/src/__tests__/render-feature-retry.unit.test.ts +12 -1
- package/src/__tests__/render-scene-mixed-updates.integration.test.ts +145 -19
- package/src/__tests__/render-scene-projection.unit.test.ts +36 -11
- package/src/__tests__/render-scene-temporal-retry.unit.test.ts +20 -20
- package/src/__tests__/render-target-probe-soak.perf.test.ts +2 -2
- package/src/__tests__/render-temporal-environment-consumer.browser.test.ts +3 -3
- package/src/__tests__/render-temporal-environment-consumer.dawn.test.ts +5 -2
- package/src/__tests__/renderer-factory-material-contract.unit.test.ts +42 -8
- package/src/__tests__/renderer-frame-generation-fence.integration.test.ts +16 -0
- package/src/__tests__/renderer-frame-transaction.integration.test.ts +26 -10
- package/src/__tests__/resource-allocation.unit.test.ts +123 -0
- package/src/__tests__/single-layer-medium-passes.unit.test.ts +275 -0
- package/src/__tests__/skin-motion-regression.unit.test.ts +70 -1
- package/src/__tests__/skin-palette-recycling.dawn.test.ts +97 -0
- package/src/__tests__/skinned-shadow-caster.test.ts +15 -0
- package/src/__tests__/ssr-carrier-public-contract.unit.test.ts +21 -0
- package/src/__tests__/ssr-gpu-dispatch.browser.test.ts +4 -4
- package/src/__tests__/ssr-gpu-dispatch.dawn.test.ts +2 -2
- package/src/__tests__/ssr-gpu-dispatch.ts +1 -1
- package/src/__tests__/ssr-receiver-coverage.dawn.test.ts +6 -2
- package/src/__tests__/standard-output-chain-contract.unit.test.ts +28 -0
- package/src/__tests__/standard-pbr-artifact-assembly.unit.test.ts +46 -1
- package/src/__tests__/standard-pipeline.integration.test.ts +182 -1
- package/src/__tests__/surface-dynamic-buffer-lifecycle.unit.test.ts +506 -0
- package/src/__tests__/surface-submission-observation.unit.test.ts +812 -0
- package/src/__tests__/temporal-history-lifecycle.unit.test.ts +32 -0
- package/src/__tests__/temporal-performance.integration.test.ts +3 -3
- package/src/__tests__/visibility-instances.integration.test.ts +7 -19
- package/src/__tests__/visibility-producer-matrix.integration.test.ts +9 -20
- package/src/__tests__/volume-optics-oracle.unit.test.ts +4 -2
- package/src/__tests__/volumetric-fog-budget-recovery.integration.test.ts +30 -20
- package/src/__tests__/volumetric-fog-errors.unit.test.ts +4 -3
- package/src/__tests__/volumetric-fog-multiple.unit.test.ts +55 -0
- package/src/__tests__/volumetric-fog-spot-frame-optics.integration.test.ts +1 -1
- package/src/__tests__/volumetric-fog-stage-readback.dawn.test.ts +113 -9
- package/src/__tests__/volumetric-fog-topology.unit.test.ts +5 -3
- package/src/assembly/backend-contract.ts +30 -0
- package/src/assembly/barrel-distortion-inspection.ts +22 -0
- package/src/assembly/canvas-draw-guard.ts +11 -0
- package/src/assembly/cloud-shadow-entry.ts +22 -0
- package/src/assembly/device-feature-admission.ts +2 -2
- package/src/assembly/dynamic-geometry-host.ts +65 -37
- package/src/assembly/dynamic-geometry-runtime.ts +7 -1
- package/src/assembly/factory.ts +2 -30
- package/src/assembly/host-contract.ts +8 -5
- package/src/assembly/material/assembly.ts +25 -13
- package/src/assembly/material/pipeline-helpers.ts +53 -12
- package/src/assembly/material-shader-policy.ts +55 -0
- package/src/assembly/material-shader-prewarm.ts +21 -10
- package/src/assembly/recovery/device-loss-fanout.ts +13 -0
- package/src/assembly/recovery/renderer-recover.ts +50 -18
- package/src/assembly/render-feature-post-processes.ts +54 -0
- package/src/assembly/render-target-host.ts +57 -47
- package/src/assembly/renderer-facade.ts +7 -2
- package/src/assembly/renderer-feature-inspection.ts +8 -2
- package/src/assembly/renderer-frame-transaction.ts +23 -0
- package/src/assembly/renderer-inspection.ts +28 -0
- package/src/assembly/skin-palette-owner.ts +1 -1
- package/src/assembly/temporal-post-process-prewarm.ts +3 -3
- package/src/assembly/webgpu-pbr-ready.ts +9 -1
- package/src/assembly/webgpu-ready-per-pass.ts +104 -0
- package/src/assembly/webgpu-ready.ts +116 -62
- package/src/assembly/webgpu-renderer-bootstrap.ts +0 -12
- package/src/assembly/webgpu-renderer-observation-owner.ts +222 -0
- package/src/assembly/webgpu-renderer.ts +303 -313
- package/src/assembly/webgpu-vertex-layouts.ts +1 -1
- package/src/barrel-distortion.ts +247 -0
- package/src/cloud/__tests__/cloud-density-parity.dawn.test.ts +173 -0
- package/src/cloud/__tests__/cloud-layer-framebuffer-y.dawn.test.ts +265 -0
- package/src/cloud/__tests__/cloud-layer.browser.test.ts +432 -0
- package/src/cloud/__tests__/cloud-layer.unit.test.ts +634 -0
- package/src/cloud/density.ts +600 -0
- package/src/cloud/extract.ts +110 -0
- package/src/cloud/feature.ts +1810 -0
- package/src/cloud/frame-context.ts +42 -0
- package/src/cloud/inspection.ts +130 -0
- package/src/cloud/optics.ts +285 -0
- package/src/cloud/parameters.ts +255 -0
- package/src/cloud/resources.ts +122 -0
- package/src/cloud/shadow.ts +167 -0
- package/src/cloud/temporal.ts +226 -0
- package/src/components/barrel-distortion.ts +46 -0
- package/src/components/cloud-layer.ts +47 -0
- package/src/components/index.ts +2 -0
- package/src/components/instances.ts +18 -45
- package/src/components/sprite-instances.ts +1 -1
- package/src/construct-renderer.ts +1 -1
- package/src/device/gpu-residency.ts +26 -25
- package/src/dynamic-geometry.ts +12 -1
- package/src/errors/cloud.ts +103 -0
- package/src/errors/render.ts +47 -8
- package/src/examples/single-layer-medium-surface.ts +59 -0
- package/src/extract/camera.ts +15 -1
- package/src/extract/contracts.ts +5 -0
- package/src/extract/material-context.ts +21 -0
- package/src/features/barrel-distortion.ts +172 -0
- package/src/features/error-reporting.ts +26 -6
- package/src/features/host.ts +128 -19
- package/src/features/plan.ts +10 -0
- package/src/features/render-graph-contribution.ts +9 -0
- package/src/features/render-graph-raster.ts +45 -3
- package/src/features/targets.ts +66 -0
- package/src/features/types.ts +51 -0
- package/src/fullscreen-post-process-pass.ts +41 -9
- package/src/glyph-text-layout-system.ts +2 -2
- package/src/gpu-dirty-ranges.ts +48 -0
- package/src/gpu-driven/batch-topology.ts +53 -0
- package/src/gpu-driven/material-artifacts.ts +33 -25
- package/src/gpu-driven/prepared-draw.ts +12 -4
- package/src/gpu-driven/production-raster-material.ts +1894 -0
- package/src/gpu-driven/production-raster.ts +825 -784
- package/src/gpu-driven/resource-allocation.ts +142 -0
- package/src/gpu-driven/shadow-ownership.ts +71 -0
- package/src/gpu-driven/view-gpu.ts +164 -10
- package/src/gpu-scene.ts +75 -84
- package/src/hdrp-buffers.ts +4 -3
- package/src/ibl/frame-resources.ts +0 -1
- package/src/ibl/skylight-bind-group.ts +62 -32
- package/src/index.ts +205 -9
- package/src/inspection-types.ts +162 -0
- package/src/instance-buffer-cache.ts +4 -4
- package/src/instances.ts +152 -569
- package/src/pbr-pipeline.ts +230 -30
- package/src/pipeline/single-layer-medium-passes.ts +267 -0
- package/src/pipeline/standard-forward-lane.ts +313 -57
- package/src/pipeline/standard-output/graph.ts +8 -2
- package/src/pipeline/standard-output/lut-gpu.ts +3 -3
- package/src/pipeline/standard-output/resources.ts +2 -2
- package/src/pipeline/standard-output/types.ts +12 -1
- package/src/pipeline/standard-pipeline.ts +291 -18
- package/src/pipeline/standard-post.ts +90 -24
- package/src/pipeline-builder.ts +1 -1
- package/src/plugin.ts +4 -0
- package/src/points-lines/__tests__/points-lines.bench.ts +17 -8
- package/src/prepare/prepared-graphics-resolver.ts +2 -0
- package/src/publication/__tests__/derived-geometry.integration.test.ts +177 -0
- package/src/publication/__tests__/features.integration.test.ts +122 -0
- package/src/publication/__tests__/programs.unit.test.ts +25 -0
- package/src/publication/__tests__/publication.integration.test.ts +370 -0
- package/src/publication/__tests__/targets.integration.test.ts +120 -0
- package/src/publication/__tests__/video.browser.test.ts +50 -0
- package/src/publication/contract.ts +104 -0
- package/src/publication/dependencies.ts +54 -0
- package/src/publication/prepare-geometry.ts +94 -0
- package/src/publication/programs.ts +45 -0
- package/src/publication/publisher.ts +618 -0
- package/src/publication/receiver.ts +297 -0
- package/src/publication/resource-scope.ts +31 -0
- package/src/publication/targets.ts +182 -0
- package/src/publication/video.ts +33 -0
- package/src/record/__tests__/main-pass-geometry.unit.test.ts +30 -0
- package/src/record/__tests__/material-bg-cache.unit.test.ts +15 -1
- package/src/record/__tests__/sprite-material-abi.unit.test.ts +9 -11
- package/src/record/__tests__/temporal-payload.unit.test.ts +1 -1
- package/src/record/__tests__/transparent-group2-selection.unit.test.ts +11 -0
- package/src/record/__tests__/typed-frame-graph-plan.unit.test.ts +1 -0
- package/src/record/__tests__/video-texture-view.unit.test.ts +9 -9
- package/src/record/__tests__/view-ubo-layout.unit.test.ts +4 -3
- package/src/record/barrel-distortion-frame.ts +110 -0
- package/src/record/dynamic-geometry-consumption.ts +39 -9
- package/src/record/fold-buckets.ts +855 -0
- package/src/record/fold-instance-buffer.ts +51 -0
- package/src/record/frame-lighting.ts +36 -2
- package/src/record/frame-snapshot.ts +45 -9
- package/src/record/frame.ts +258 -1105
- package/src/record/gpu-draw-receipts.ts +38 -0
- package/src/record/gpu-timing.ts +48 -5
- package/src/record/helpers.ts +2 -2
- package/src/record/main-pass-geometry.ts +272 -84
- package/src/record/main-pass-material.ts +102 -36
- package/src/record/main-pass-sprite-draws.ts +13 -217
- package/src/record/main-pass.ts +164 -27
- package/src/record/motion-blur-receipt.ts +91 -0
- package/src/record/prepared-material-bindings.ts +11 -6
- package/src/record/probe-blend-buffer.ts +180 -0
- package/src/record/recovery-pipeline.ts +35 -3
- package/src/record/render-context.ts +41 -5
- package/src/record/shadow-pass.ts +30 -4
- package/src/record/skybox-post-pass.ts +28 -4
- package/src/record/sprite-instance-buffer.ts +155 -0
- package/src/record/target-capture-graph.ts +258 -0
- package/src/record/typed-frame-graph.ts +776 -340
- package/src/record/view-ubo.ts +27 -4
- package/src/record/volume-params.ts +225 -0
- package/src/recovery/render-system-candidate.ts +243 -50
- package/src/reflection/record-owner.ts +7 -3
- package/src/render-contract.ts +54 -5
- package/src/render-graph-primitives.ts +7 -1
- package/src/render-pipeline.ts +130 -0
- package/src/render-system-extract-tail.ts +90 -78
- package/src/render-system-extract.ts +76 -76
- package/src/render-system-presentation.ts +56 -0
- package/src/render-system-producer-roots.ts +96 -0
- package/src/render-system-projections.ts +3 -2
- package/src/render-system-residency.ts +159 -0
- package/src/render-system.ts +421 -408
- package/src/scene/probe-blend.ts +96 -4
- package/src/scene/render-scene.ts +416 -337
- package/src/scene/render-source.ts +90 -0
- package/src/scene/source-systems.ts +33 -0
- package/src/ssao-buffers.ts +95 -2
- package/src/surface/__tests__/dynamic-input.unit.test.ts +374 -0
- package/src/surface/__tests__/gpu-driven.unit.test.ts +87 -0
- package/src/surface/dynamic-input.ts +658 -0
- package/src/surface/gpu-driven.ts +147 -0
- package/src/surface/submission-observation.ts +517 -0
- package/src/systems/skin-palette-allocator.ts +5 -1
- package/src/systems/skin-palette-types.ts +11 -0
- package/src/systems/transparent-dispatch.ts +2 -2
- package/src/systems/transparent-sort-config.ts +3 -1
- package/src/temporal/gpu.ts +101 -17
- package/src/temporal/inspection.ts +7 -1
- package/src/temporal/standard-scene-data.ts +5 -0
- package/src/temporal/target-coverage-attachment.ts +4 -0
- package/src/transmission/__tests__/single-layer-medium.unit.test.ts +149 -0
- package/src/transmission/__tests__/standard-transmission.dawn.test.ts +12 -11
- package/src/transmission/single-layer-medium.ts +322 -0
- package/src/typed-render-graph-primitives.ts +70 -2
- package/src/volume/component.ts +10 -9
- package/src/volume/extract.ts +11 -5
- package/src/volume/inspection.ts +3 -0
- package/src/volume/passes.ts +87 -4
- package/src/volume/resources.ts +2 -1
- package/dist/chunk-3RTCJTH4.mjs +0 -1610
- package/dist/chunk-3RTCJTH4.mjs.map +0 -1
- package/dist/chunk-BLXGONR2.mjs.map +0 -1
- package/dist/chunk-ILQ5MEZF.mjs +0 -32
- package/dist/chunk-ILQ5MEZF.mjs.map +0 -1
- package/dist/chunk-LEAXOMYJ.mjs.map +0 -1
- package/dist/chunk-NB2S7ZRX.mjs +0 -1783
- package/dist/chunk-NB2S7ZRX.mjs.map +0 -1
- package/dist/chunk-NNQL7CB3.mjs +0 -1713
- package/dist/chunk-NNQL7CB3.mjs.map +0 -1
- package/dist/chunk-OO3DRYK7.mjs.map +0 -1
- package/dist/chunk-PA5DRJNI.mjs.map +0 -1
- package/dist/chunk-PLAXOOX5.mjs +0 -1907
- package/dist/chunk-PLAXOOX5.mjs.map +0 -1
- package/dist/chunk-RXZ3RGOU.mjs +0 -53
- package/dist/chunk-RXZ3RGOU.mjs.map +0 -1
- package/dist/chunk-VOZWDM3L.mjs.map +0 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { RhiDevice, ShaderModule } from '@forgeax/engine-rhi';
|
|
2
|
+
import { ok } from '@forgeax/engine-rhi';
|
|
3
|
+
import type { ShaderCatalog } from '@forgeax/engine-shader';
|
|
4
|
+
import { describe, expect, it, vi } from 'vitest';
|
|
5
|
+
import { prepareLowLimitMaterialShaderEntry } from '../assembly/material-shader-policy';
|
|
6
|
+
import { prewarmRequiredMaterialShaders } from '../assembly/material-shader-prewarm';
|
|
7
|
+
|
|
8
|
+
const source = `
|
|
9
|
+
@group(0) @binding(16) var cloud: texture_2d<f32>;
|
|
10
|
+
@group(0) @binding(17) var cloudSampler: sampler;
|
|
11
|
+
fn sampleCloud() -> f32 {
|
|
12
|
+
return textureSampleLevel(cloud, cloudSampler, vec2<f32>(0.5), 0.0).x;
|
|
13
|
+
}`;
|
|
14
|
+
|
|
15
|
+
describe('material module prewarm and lazy pipeline agreement', () => {
|
|
16
|
+
it.each([16, 32])('seeds the same source on a %i-texture device', async (limit) => {
|
|
17
|
+
const entry = { source, paramSchema: [] };
|
|
18
|
+
const variantSource = `${source}\n// published variant`;
|
|
19
|
+
const registry = {
|
|
20
|
+
findMaterialArtifact: () => ok(entry),
|
|
21
|
+
materialShaderManifestEntries: () =>
|
|
22
|
+
[
|
|
23
|
+
{
|
|
24
|
+
identifier: 'game::surface',
|
|
25
|
+
variants: [{ definesKey: 'STYLE=true', composedWgsl: variantSource }],
|
|
26
|
+
},
|
|
27
|
+
][Symbol.iterator](),
|
|
28
|
+
} as unknown as ShaderCatalog;
|
|
29
|
+
const device = { limits: { maxSampledTexturesPerShaderStage: limit } } as RhiDevice;
|
|
30
|
+
const compiled = new Map<ShaderModule, string>();
|
|
31
|
+
const seeded = new Map<string, ShaderModule>();
|
|
32
|
+
const compile = vi.fn(async (_device: RhiDevice, descriptor: { code: string }) => {
|
|
33
|
+
const module = {} as ShaderModule;
|
|
34
|
+
compiled.set(module, descriptor.code);
|
|
35
|
+
return ok(module);
|
|
36
|
+
});
|
|
37
|
+
await prewarmRequiredMaterialShaders({
|
|
38
|
+
rhiDevice: device,
|
|
39
|
+
registry,
|
|
40
|
+
requiredMaterialShaders: ['game::surface'],
|
|
41
|
+
asyncCreateShaderModule: compile,
|
|
42
|
+
seedShaderModule: (label, module) => {
|
|
43
|
+
seeded.set(label, module);
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
for (const [label, authored] of [
|
|
47
|
+
['module-game::surface', source],
|
|
48
|
+
['module-game::surface#STYLE=true', variantSource],
|
|
49
|
+
] as const) {
|
|
50
|
+
const module = seeded.get(label);
|
|
51
|
+
expect(module).toBeDefined();
|
|
52
|
+
if (module === undefined) throw new Error(`Missing prewarmed module ${label}`);
|
|
53
|
+
expect(compiled.get(module)).toBe(
|
|
54
|
+
prepareLowLimitMaterialShaderEntry({ source: authored, paramSchema: [] }, limit).source,
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
expect(entry.source).toBe(source);
|
|
58
|
+
});
|
|
59
|
+
});
|
|
@@ -8,9 +8,47 @@ import { describe, expect, it } from 'vitest';
|
|
|
8
8
|
import { projectStandardSurfacePasses } from '../assembly/material/surface-projection';
|
|
9
9
|
import { MeshFilter } from '../components/mesh-filter';
|
|
10
10
|
import { MeshRenderer } from '../components/mesh-renderer';
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
extractFrames,
|
|
13
|
+
type MaterialSnapshotCachesByWorld,
|
|
14
|
+
resolveMaterialSnapshot,
|
|
15
|
+
} from '../render-system-extract';
|
|
12
16
|
|
|
13
17
|
describe('material snapshot mutation', () => {
|
|
18
|
+
it('projects the same Surface model for primary and reusable submesh snapshots', () => {
|
|
19
|
+
const world = new World();
|
|
20
|
+
const assets = new AssetRegistry({
|
|
21
|
+
findMaterialArtifact: () => ({ ok: false, error: new Error('not registered') }),
|
|
22
|
+
} as unknown as ShaderRegistry);
|
|
23
|
+
const material: MaterialAsset = {
|
|
24
|
+
kind: 'material',
|
|
25
|
+
surface: {
|
|
26
|
+
model: 'single-layer-medium',
|
|
27
|
+
module: 'game::water-surface',
|
|
28
|
+
},
|
|
29
|
+
passes: [
|
|
30
|
+
{
|
|
31
|
+
name: 'color',
|
|
32
|
+
program: { module: 'forgeax::single-layer-medium' },
|
|
33
|
+
renderState: { tags: { LightMode: 'Forward' }, queue: 3000 },
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
values: {},
|
|
37
|
+
};
|
|
38
|
+
const materialHandle = world.allocSharedRef('MaterialAsset', material);
|
|
39
|
+
world.spawn(
|
|
40
|
+
{ component: Transform, data: {} },
|
|
41
|
+
{ component: MeshFilter, data: { assetHandle: HANDLE_CUBE } },
|
|
42
|
+
{ component: MeshRenderer, data: { materials: [materialHandle] } },
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
const primary = extractFrames([world], 0, assets).renderables[0]?.material;
|
|
46
|
+
const reusable = resolveMaterialSnapshot(materialHandle, world, assets);
|
|
47
|
+
|
|
48
|
+
expect(primary?.surfaceModel).toBe('single-layer-medium');
|
|
49
|
+
expect(reusable.surfaceModel).toBe('single-layer-medium');
|
|
50
|
+
});
|
|
51
|
+
|
|
14
52
|
it('projects in-place material value updates into the next extracted frame', () => {
|
|
15
53
|
const world = new World();
|
|
16
54
|
const assets = new AssetRegistry({
|
|
@@ -70,7 +70,7 @@ describe('Morph GPU culling and re-entry', () => {
|
|
|
70
70
|
).toMatchObject({ reentered: true, clearStale: true, weights: [0.75] });
|
|
71
71
|
});
|
|
72
72
|
|
|
73
|
-
it('declares compute and storage capability ownership and records
|
|
73
|
+
it('declares compute and storage capability ownership and records 60 frame phases', () => {
|
|
74
74
|
let frameNumber = 0;
|
|
75
75
|
const feature = createBuiltinMorphFeature({
|
|
76
76
|
collect: () => [
|
|
@@ -79,8 +79,8 @@ describe('Morph GPU culling and re-entry', () => {
|
|
|
79
79
|
vertexCount: 3,
|
|
80
80
|
targetBounds: [{ min: [-2, 0, 0], max: [3, 0, 0] }],
|
|
81
81
|
baseBounds,
|
|
82
|
-
weights: new Float32Array([frameNumber >=
|
|
83
|
-
baseAabbIntersectsFrustum: frameNumber <
|
|
82
|
+
weights: new Float32Array([frameNumber >= 40 ? 1 : 0]),
|
|
83
|
+
baseAabbIntersectsFrustum: frameNumber < 20 || frameNumber >= 40,
|
|
84
84
|
},
|
|
85
85
|
],
|
|
86
86
|
});
|
|
@@ -88,7 +88,7 @@ describe('Morph GPU culling and re-entry', () => {
|
|
|
88
88
|
expect(feature.requiredCapabilities).toEqual(['compute', 'storageBuffer']);
|
|
89
89
|
let culledFrames = 0;
|
|
90
90
|
let reentries = 0;
|
|
91
|
-
for (frameNumber = 0; frameNumber <
|
|
91
|
+
for (frameNumber = 0; frameNumber < 60; frameNumber++) {
|
|
92
92
|
const extracted = feature.extract({ worlds: [], owner: 0, frameNumber });
|
|
93
93
|
expect(extracted.ok).toBe(true);
|
|
94
94
|
if (!extracted.ok) continue;
|
|
@@ -96,7 +96,7 @@ describe('Morph GPU culling and re-entry', () => {
|
|
|
96
96
|
reentries += extracted.value.reentryCount;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
expect(culledFrames).toBe(
|
|
99
|
+
expect(culledFrames).toBe(20);
|
|
100
100
|
expect(reentries).toBe(1);
|
|
101
101
|
});
|
|
102
102
|
|
|
@@ -11,7 +11,7 @@ const evidencePath = resolve(
|
|
|
11
11
|
const matrixPath = resolve(repoRoot, 'apps/hello/format-tier1/evidence/format-support-matrix.json');
|
|
12
12
|
|
|
13
13
|
describe('Morph Dawn evidence contract', () => {
|
|
14
|
-
it('binds
|
|
14
|
+
it('binds a complete GPU result of at least 60 frames to the immutable source and readback', async () => {
|
|
15
15
|
const [evidence, matrix] = await Promise.all([
|
|
16
16
|
readFile(evidencePath, 'utf8').then(
|
|
17
17
|
(source) =>
|
|
@@ -54,13 +54,14 @@ describe('Morph Dawn evidence contract', () => {
|
|
|
54
54
|
expect(matrix.source?.firstTierRows).toEqual([8, 18, 26]);
|
|
55
55
|
expect(evidence.source?.sourceCodeSha).toMatch(/^[a-f0-9]{40,64}$/);
|
|
56
56
|
expect(evidence.environment?.backend).toBe('dawn');
|
|
57
|
-
expect(evidence.requiredFrames).
|
|
58
|
-
expect(evidence.framesObserved).toBe(
|
|
57
|
+
expect(evidence.requiredFrames).toBeGreaterThanOrEqual(60);
|
|
58
|
+
expect(evidence.framesObserved).toBe(evidence.requiredFrames);
|
|
59
|
+
const phaseFrames = (evidence.requiredFrames ?? 0) / 3;
|
|
59
60
|
expect(evidence.phases).toEqual({
|
|
60
|
-
standardFrames:
|
|
61
|
-
baseWeightFrames:
|
|
62
|
-
zeroWeightFrames:
|
|
63
|
-
animatedFrames:
|
|
61
|
+
standardFrames: evidence.requiredFrames,
|
|
62
|
+
baseWeightFrames: phaseFrames,
|
|
63
|
+
zeroWeightFrames: phaseFrames,
|
|
64
|
+
animatedFrames: phaseFrames,
|
|
64
65
|
});
|
|
65
66
|
expect(evidence.readback?.status).toBe('pass');
|
|
66
67
|
expect(evidence.readback?.path).toContain('observe(FrameReceipt)');
|
|
@@ -538,7 +538,8 @@ it.each(PROBES)('production compute lane: $name', async ({
|
|
|
538
538
|
} else {
|
|
539
539
|
expect(receiver, `${name} outside-support receiver unexpectedly received motion`).toBe(0);
|
|
540
540
|
}
|
|
541
|
-
const decodeFloat16 = (bits: number): number => {
|
|
541
|
+
const decodeFloat16 = (bits: number | undefined): number => {
|
|
542
|
+
if (bits === undefined) throw new Error('Readback omitted a required pixel');
|
|
542
543
|
const sign = (bits & 0x8000) === 0 ? 1 : -1;
|
|
543
544
|
const exponent = (bits >>> 10) & 0x1f;
|
|
544
545
|
const mantissa = bits & 0x03ff;
|
|
@@ -547,9 +548,11 @@ it.each(PROBES)('production compute lane: $name', async ({
|
|
|
547
548
|
return sign * 2 ** (exponent - 15) * (1 + mantissa / 1024);
|
|
548
549
|
};
|
|
549
550
|
if (expectedRowEnergy !== undefined) {
|
|
550
|
-
const rowEnergy = Array.from({ length: width }, (_, x) =>
|
|
551
|
-
|
|
552
|
-
|
|
551
|
+
const rowEnergy = Array.from({ length: width }, (_, x) => {
|
|
552
|
+
const bits = result[receiverY * (readbackBytesPerRow / 2) + x * 4];
|
|
553
|
+
if (bits === undefined) throw new Error(`${name} row readback is truncated at x=${x}`);
|
|
554
|
+
return decodeFloat16(bits);
|
|
555
|
+
}).reduce((sum, value) => sum + value, 0);
|
|
553
556
|
const relativeError =
|
|
554
557
|
Math.abs(rowEnergy - expectedRowEnergy) / Math.max(expectedRowEnergy, 1);
|
|
555
558
|
expect(
|
|
@@ -559,9 +562,12 @@ it.each(PROBES)('production compute lane: $name', async ({
|
|
|
559
562
|
}
|
|
560
563
|
if (expectedTotalEnergy !== undefined) {
|
|
561
564
|
const totalEnergy = Array.from({ length: height }, (_, y) =>
|
|
562
|
-
Array.from({ length: width }, (_, x) =>
|
|
563
|
-
|
|
564
|
-
|
|
565
|
+
Array.from({ length: width }, (_, x) => {
|
|
566
|
+
const bits = result[y * (readbackBytesPerRow / 2) + x * 4];
|
|
567
|
+
if (bits === undefined)
|
|
568
|
+
throw new Error(`${name} total readback is truncated at y=${y}, x=${x}`);
|
|
569
|
+
return decodeFloat16(bits);
|
|
570
|
+
}).reduce((sum, value) => sum + value, 0),
|
|
565
571
|
).reduce((sum, value) => sum + value, 0);
|
|
566
572
|
const relativeError =
|
|
567
573
|
Math.abs(totalEnergy - expectedTotalEnergy) / Math.max(expectedTotalEnergy, 1);
|
|
@@ -84,8 +84,8 @@ describe('motion blur visual evidence contract', () => {
|
|
|
84
84
|
expect(entry.falsifier.provenance.length).toBeGreaterThan(0);
|
|
85
85
|
expect(entry.positive.confidence).toBeGreaterThanOrEqual(0);
|
|
86
86
|
expect(entry.falsifier.confidence).toBeGreaterThanOrEqual(0);
|
|
87
|
-
expect(entry.positive.coverage.dawnFrames).toBeGreaterThanOrEqual(
|
|
88
|
-
expect(entry.positive.coverage.browserFrames).toBeGreaterThanOrEqual(
|
|
87
|
+
expect(entry.positive.coverage.dawnFrames).toBeGreaterThanOrEqual(60);
|
|
88
|
+
expect(entry.positive.coverage.browserFrames).toBeGreaterThanOrEqual(60);
|
|
89
89
|
expect(entry.positive.coverage.frames).toBe(entry.positive.coverage.dawnFrames);
|
|
90
90
|
expect(entry.positive.coverage).toEqual({
|
|
91
91
|
frames: entry.positive.coverage.frames,
|
|
@@ -2,7 +2,7 @@ import { readFileSync } from 'node:fs';
|
|
|
2
2
|
|
|
3
3
|
import { describe, expect, it } from 'vitest';
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const foldSource = readFileSync(new URL('../record/fold-buckets.ts', import.meta.url), 'utf8');
|
|
6
6
|
const materialSource = readFileSync(
|
|
7
7
|
new URL('../record/main-pass-material.ts', import.meta.url),
|
|
8
8
|
'utf8',
|
|
@@ -10,9 +10,9 @@ const materialSource = readFileSync(
|
|
|
10
10
|
|
|
11
11
|
describe('9-slice handle ownership', () => {
|
|
12
12
|
it('derives the lookup key from the canonical asset-runtime handle', () => {
|
|
13
|
-
expect(
|
|
14
|
-
expect(
|
|
15
|
-
expect(
|
|
13
|
+
expect(foldSource).toContain('handleSlot(HANDLE_NINESLICE_QUAD)');
|
|
14
|
+
expect(foldSource).toContain('r.assetHandle > handleSlot(HANDLE_NINESLICE_QUAD)');
|
|
15
|
+
expect(foldSource).not.toMatch(/BUILTIN_MESH_ID_MAX/);
|
|
16
16
|
expect(materialSource).not.toMatch(/NINESLICE_QUAD_RAW_ID\s*=/);
|
|
17
17
|
expect(materialSource).not.toMatch(/BUILTIN_MESH_ID_MAX\s*=/);
|
|
18
18
|
});
|
|
@@ -13,4 +13,13 @@ describe('PBR view bind-group layout', () => {
|
|
|
13
13
|
.map((entry) => entry.binding),
|
|
14
14
|
).toEqual([0, 10]);
|
|
15
15
|
});
|
|
16
|
+
|
|
17
|
+
it('omits cloud shadow bindings on the minimum sampled-texture profile', () => {
|
|
18
|
+
const entries = buildPbrViewBglEntries({
|
|
19
|
+
storageBuffer: true,
|
|
20
|
+
extendedLighting: false,
|
|
21
|
+
projectorAvailable: false,
|
|
22
|
+
});
|
|
23
|
+
expect(entries.some((entry) => entry.binding === 16 || entry.binding === 17)).toBe(false);
|
|
24
|
+
});
|
|
16
25
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { resolve } from 'node:path';
|
|
1
3
|
import { STANDARD_PIPELINE_PARAM_SCHEMA } from '@forgeax/engine-shader';
|
|
2
4
|
import { describe, expect, it } from 'vitest';
|
|
3
5
|
import { GPU_SHADER_STAGE_FRAGMENT, GPU_SHADER_STAGE_VERTEX } from '../gpu-stage.js';
|
|
@@ -74,26 +76,26 @@ describe('Standard clearcoat root contract', () => {
|
|
|
74
76
|
);
|
|
75
77
|
|
|
76
78
|
// The canonical seven texture pairs occupy bindings 1..14. IBL remains
|
|
77
|
-
// at 15..
|
|
79
|
+
// at 15..20 and transmission at 21..22; authored physical maps append at
|
|
78
80
|
// their canonical fixed slots (26, 27, 30, 31), followed by the
|
|
79
81
|
// scene-index row at binding 46. Compacting the authored root here shifts WGSL IBL bindings and
|
|
80
82
|
// causes Dawn to reject the pipeline before any pixels are submitted.
|
|
81
|
-
expect(descriptor.entries).toHaveLength(
|
|
83
|
+
expect(descriptor.entries).toHaveLength(29);
|
|
82
84
|
expect(descriptor.entries.slice(0, 15).map((entry) => entry.binding)).toEqual(
|
|
83
85
|
Array.from({ length: 15 }, (_, binding) => binding),
|
|
84
86
|
);
|
|
85
87
|
expect(descriptor.entries[15]?.texture).toMatchObject({ viewDimension: 'cube' });
|
|
86
88
|
expect(descriptor.entries[17]?.texture).toMatchObject({ viewDimension: 'cube' });
|
|
87
|
-
expect(descriptor.entries[
|
|
88
|
-
expect(descriptor.entries[
|
|
89
|
-
expect(descriptor.entries.slice(
|
|
89
|
+
expect(descriptor.entries[21]?.sampler).toMatchObject({ type: 'filtering' });
|
|
90
|
+
expect(descriptor.entries[22]?.texture).toMatchObject({ viewDimension: '2d' });
|
|
91
|
+
expect(descriptor.entries.slice(23, 27).map((entry) => entry.binding)).toEqual([
|
|
90
92
|
26, 27, 30, 31,
|
|
91
93
|
]);
|
|
92
|
-
expect(descriptor.entries[
|
|
94
|
+
expect(descriptor.entries[28]).toMatchObject({
|
|
93
95
|
binding: 47,
|
|
94
96
|
texture: { sampleType: 'float', viewDimension: 'cube' },
|
|
95
97
|
});
|
|
96
|
-
expect(descriptor.entries[
|
|
98
|
+
expect(descriptor.entries[27]).toMatchObject({
|
|
97
99
|
binding: 46,
|
|
98
100
|
visibility: GPU_SHADER_STAGE_VERTEX | GPU_SHADER_STAGE_FRAGMENT,
|
|
99
101
|
buffer: { type: 'read-only-storage', hasDynamicOffset: false },
|
|
@@ -120,9 +122,65 @@ describe('Standard clearcoat root contract', () => {
|
|
|
120
122
|
// PBR layouts keep the producer-owned scene-material row at binding 46,
|
|
121
123
|
// even when an authored schema has no numeric parameters.
|
|
122
124
|
expect(descriptor.entries.map((entry) => entry.binding)).toEqual([
|
|
123
|
-
...Array.from({ length:
|
|
125
|
+
...Array.from({ length: 9 }, (_, binding) => binding),
|
|
124
126
|
46,
|
|
125
127
|
47,
|
|
126
128
|
]);
|
|
127
129
|
});
|
|
130
|
+
|
|
131
|
+
it('derives the single-layer medium depth and nearest inputs at the shader bindings', () => {
|
|
132
|
+
const descriptor = buildBindGroupLayoutDescriptor(
|
|
133
|
+
{
|
|
134
|
+
shader: {
|
|
135
|
+
id: 'forgeax::single-layer-medium',
|
|
136
|
+
passKind: 'forward',
|
|
137
|
+
variantSet: undefined,
|
|
138
|
+
},
|
|
139
|
+
attachments: { colorFormats: [], depthFormat: undefined, sampleCount: 1 },
|
|
140
|
+
geometry: { topology: 'triangle-list', vertexLayout: {} },
|
|
141
|
+
renderState: undefined,
|
|
142
|
+
},
|
|
143
|
+
{ kind: 'pbr-material-merged', materialParamSchema: [] },
|
|
144
|
+
);
|
|
145
|
+
|
|
146
|
+
expect(descriptor.entries.map((entry) => entry.binding)).toEqual([
|
|
147
|
+
...Array.from({ length: 15 }, (_, binding) => binding),
|
|
148
|
+
46,
|
|
149
|
+
]);
|
|
150
|
+
expect(descriptor.entries[9]).toMatchObject({
|
|
151
|
+
sampler: { type: 'non-filtering' },
|
|
152
|
+
});
|
|
153
|
+
expect(descriptor.entries[10]).toMatchObject({
|
|
154
|
+
texture: { sampleType: 'unfilterable-float', viewDimension: '2d' },
|
|
155
|
+
});
|
|
156
|
+
expect(descriptor.entries[11]).toMatchObject({
|
|
157
|
+
sampler: { type: 'filtering' },
|
|
158
|
+
});
|
|
159
|
+
expect(descriptor.entries[12]).toMatchObject({
|
|
160
|
+
texture: { sampleType: 'float', viewDimension: '2d' },
|
|
161
|
+
});
|
|
162
|
+
expect(descriptor.entries[13]).toMatchObject({
|
|
163
|
+
sampler: { type: 'non-filtering' },
|
|
164
|
+
});
|
|
165
|
+
expect(descriptor.entries[14]).toMatchObject({
|
|
166
|
+
texture: { sampleType: 'unfilterable-float', viewDimension: '2d' },
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
// The medium is a project material artifact with an explicit empty
|
|
170
|
+
// paramSchema. Its per-shader user region is therefore the reserved UBO
|
|
171
|
+
// at binding 0, followed by IBL 1..6, transmission 7..8, and Surface
|
|
172
|
+
// resources 9..14. Keep this source assertion next to the descriptor
|
|
173
|
+
// assertion so a future injection-order change cannot leave a compiled
|
|
174
|
+
// WGSL binding map out of sync with the runtime BGL.
|
|
175
|
+
const source = readFileSync(
|
|
176
|
+
resolve(import.meta.dirname, '../../../shader/src/single-layer-medium.wgsl'),
|
|
177
|
+
'utf8',
|
|
178
|
+
);
|
|
179
|
+
expect(source).toContain('@group(1) @binding(9) var surfaceRawDepthSampler');
|
|
180
|
+
expect(source).toContain('@group(1) @binding(10) var surfaceRawDepthTexture');
|
|
181
|
+
expect(source).toContain('@group(1) @binding(11) var surfaceNearestLayerSampler');
|
|
182
|
+
expect(source).toContain('@group(1) @binding(12) var surfaceNearestLayerTexture');
|
|
183
|
+
expect(source).toContain('@group(1) @binding(13) var surfaceNearestDepthSampler');
|
|
184
|
+
expect(source).toContain('@group(1) @binding(14) var surfaceNearestDepthTexture');
|
|
185
|
+
});
|
|
128
186
|
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { STANDARD_MATERIAL_PARAM_SCHEMA } from '@forgeax/engine-types';
|
|
2
|
+
import { expect, it } from 'vitest';
|
|
3
|
+
import { STANDARD_PHYSICAL_REQUIRED_SAMPLED_TEXTURES } from '../assembly/device-feature-admission';
|
|
4
|
+
import { buildBindGroupLayoutDescriptor, buildPbrViewBglEntries } from '../pbr-pipeline';
|
|
5
|
+
import type { PipelineSpec } from '../pipeline-spec';
|
|
6
|
+
|
|
7
|
+
it('fits the physical carrier and extended-lighting view within the admitted device budget', () => {
|
|
8
|
+
const textureFields = new Set([
|
|
9
|
+
'baseColorTexture',
|
|
10
|
+
'metallicRoughnessTexture',
|
|
11
|
+
'normalTexture',
|
|
12
|
+
'emissiveTexture',
|
|
13
|
+
'occlusionTexture',
|
|
14
|
+
'clearcoatTexture',
|
|
15
|
+
'clearcoatRoughnessTexture',
|
|
16
|
+
'clearcoatNormalTexture',
|
|
17
|
+
'transmissionTexture',
|
|
18
|
+
'thicknessTexture',
|
|
19
|
+
]);
|
|
20
|
+
const spec: PipelineSpec = {
|
|
21
|
+
shader: { id: 'budget::physical', passKind: 'forward', variantSet: undefined },
|
|
22
|
+
attachments: { colorFormats: [], depthFormat: undefined, sampleCount: 1 },
|
|
23
|
+
geometry: { topology: 'triangle-list', vertexLayout: {} },
|
|
24
|
+
renderState: undefined,
|
|
25
|
+
};
|
|
26
|
+
const entries = [
|
|
27
|
+
...buildPbrViewBglEntries({ storageBuffer: true, extendedLighting: true }),
|
|
28
|
+
...buildBindGroupLayoutDescriptor(spec, {
|
|
29
|
+
kind: 'pbr-material-merged',
|
|
30
|
+
materialParamSchema: STANDARD_MATERIAL_PARAM_SCHEMA.filter(
|
|
31
|
+
(field) => field.type !== 'texture2d' || textureFields.has(field.name),
|
|
32
|
+
),
|
|
33
|
+
caps: { storageBuffer: true, transmissionBackdrop: true },
|
|
34
|
+
}).entries,
|
|
35
|
+
].filter((entry) => (entry.visibility & 2) !== 0);
|
|
36
|
+
expect(entries.filter((entry) => entry.sampler !== undefined).length).toBeLessThanOrEqual(16);
|
|
37
|
+
expect(entries.filter((entry) => entry.texture !== undefined).length).toBeLessThanOrEqual(
|
|
38
|
+
STANDARD_PHYSICAL_REQUIRED_SAMPLED_TEXTURES,
|
|
39
|
+
);
|
|
40
|
+
});
|
|
@@ -25,6 +25,31 @@ function preparedFeature(): RenderFeature<{ readonly draw: boolean }> {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
function activePreparedFeature(
|
|
29
|
+
active: () => boolean = () => true,
|
|
30
|
+
): RenderFeature<{ readonly draw: boolean }> {
|
|
31
|
+
return {
|
|
32
|
+
identity: 'synthetic.capability.active',
|
|
33
|
+
requiredCapabilities: ['compute'],
|
|
34
|
+
extract: () => ok({ draw: active() }),
|
|
35
|
+
plan: ({ draw }) =>
|
|
36
|
+
ok(
|
|
37
|
+
draw
|
|
38
|
+
? {
|
|
39
|
+
resources: [
|
|
40
|
+
{
|
|
41
|
+
kind: 'fullscreen-program' as const,
|
|
42
|
+
name: 'synthetic.capability.program',
|
|
43
|
+
source: 'synthetic',
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
passes: [],
|
|
47
|
+
}
|
|
48
|
+
: { resources: [], passes: [] },
|
|
49
|
+
),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
28
53
|
describe('prepared graphics capability projection', () => {
|
|
29
54
|
it('keeps LUT filtering as an independent live capability', () => {
|
|
30
55
|
const result = admitStandardColorLut({
|
|
@@ -61,7 +86,7 @@ describe('prepared graphics capability projection', () => {
|
|
|
61
86
|
expect(host.diagnostics()[0]?.status).toBe('active');
|
|
62
87
|
});
|
|
63
88
|
|
|
64
|
-
it('
|
|
89
|
+
it('does not admit an inactive empty plan on an unsupported backend', () => {
|
|
65
90
|
const host = createRenderFeatureHost([preparedFeature()]).unwrap();
|
|
66
91
|
const result = runRenderFeatureFrame(host, {
|
|
67
92
|
worlds: [],
|
|
@@ -70,6 +95,21 @@ describe('prepared graphics capability projection', () => {
|
|
|
70
95
|
caps: missingCaps,
|
|
71
96
|
});
|
|
72
97
|
|
|
98
|
+
expect(result.errors).toEqual([]);
|
|
99
|
+
expect(result.preparedResourceBatches).toHaveLength(0);
|
|
100
|
+
expect(result.plans[0]?.plan).toEqual({ resources: [], passes: [] });
|
|
101
|
+
expect(host.diagnostics()[0]?.status).toBe('active');
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
it('returns a structured capability failure without a silent operation', () => {
|
|
105
|
+
const host = createRenderFeatureHost([activePreparedFeature()]).unwrap();
|
|
106
|
+
const result = runRenderFeatureFrame(host, {
|
|
107
|
+
worlds: [],
|
|
108
|
+
owner: 0,
|
|
109
|
+
frameNumber: 1,
|
|
110
|
+
caps: missingCaps,
|
|
111
|
+
});
|
|
112
|
+
|
|
73
113
|
expect(result.plans).toEqual([]);
|
|
74
114
|
expect(result.errors).toHaveLength(1);
|
|
75
115
|
expect(result.errors[0]).toMatchObject({
|
|
@@ -77,10 +117,34 @@ describe('prepared graphics capability projection', () => {
|
|
|
77
117
|
expected: expect.stringContaining('compute'),
|
|
78
118
|
hint: expect.stringContaining('disable'),
|
|
79
119
|
detail: {
|
|
80
|
-
featureIdentity: 'synthetic.capability',
|
|
120
|
+
featureIdentity: 'synthetic.capability.active',
|
|
81
121
|
capability: 'compute',
|
|
82
122
|
},
|
|
83
123
|
});
|
|
84
124
|
expect(host.diagnostics()[0]?.status).toBe('disabled');
|
|
85
125
|
});
|
|
126
|
+
|
|
127
|
+
it('lets an active capability failure recover when the authored plan is disabled', () => {
|
|
128
|
+
let enabled = true;
|
|
129
|
+
const host = createRenderFeatureHost([activePreparedFeature(() => enabled)]).unwrap();
|
|
130
|
+
const failed = runRenderFeatureFrame(host, {
|
|
131
|
+
worlds: [],
|
|
132
|
+
owner: 0,
|
|
133
|
+
frameNumber: 1,
|
|
134
|
+
caps: missingCaps,
|
|
135
|
+
});
|
|
136
|
+
expect(failed.errors.map((error) => error.code)).toEqual(['render-feature-capability-missing']);
|
|
137
|
+
expect(host.diagnostics()[0]?.status).toBe('disabled');
|
|
138
|
+
|
|
139
|
+
enabled = false;
|
|
140
|
+
const recovered = runRenderFeatureFrame(host, {
|
|
141
|
+
worlds: [],
|
|
142
|
+
owner: 0,
|
|
143
|
+
frameNumber: 2,
|
|
144
|
+
caps: missingCaps,
|
|
145
|
+
});
|
|
146
|
+
expect(recovered.errors).toEqual([]);
|
|
147
|
+
expect(recovered.plans[0]?.plan).toEqual({ resources: [], passes: [] });
|
|
148
|
+
expect(host.diagnostics()[0]?.status).toBe('active');
|
|
149
|
+
});
|
|
86
150
|
});
|