@forgeax/engine-render 0.1.6 → 0.1.19
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 +279 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/assembly/backend-contract.d.ts +12 -0
- package/dist/assembly/backend-contract.d.ts.map +1 -1
- package/dist/assembly/factory.d.ts +19 -2
- package/dist/assembly/factory.d.ts.map +1 -1
- package/dist/assembly/host-contract.d.ts +4 -0
- package/dist/assembly/host-contract.d.ts.map +1 -1
- package/dist/assembly/material/assembly.d.ts.map +1 -1
- package/dist/assembly/renderer-frame-transaction.d.ts +39 -0
- package/dist/assembly/renderer-frame-transaction.d.ts.map +1 -0
- package/dist/assembly/renderer-inspection.d.ts +22 -0
- package/dist/assembly/renderer-inspection.d.ts.map +1 -0
- package/dist/assembly/renderer-lifecycle.d.ts +4 -0
- package/dist/assembly/renderer-lifecycle.d.ts.map +1 -0
- package/dist/authoring.d.ts +1 -0
- package/dist/authoring.d.ts.map +1 -1
- package/dist/authoring.mjs +4 -2
- package/dist/authoring.mjs.map +1 -1
- package/dist/chunk-FJ6P52EE.mjs +46 -0
- package/dist/chunk-FJ6P52EE.mjs.map +1 -0
- package/dist/chunk-IPXCABEP.mjs +73 -0
- package/dist/chunk-IPXCABEP.mjs.map +1 -0
- package/dist/chunk-JDWARUOI.mjs +44 -0
- package/dist/chunk-JDWARUOI.mjs.map +1 -0
- package/dist/chunk-LOSO4CTV.mjs +901 -0
- package/dist/chunk-LOSO4CTV.mjs.map +1 -0
- package/dist/chunk-PCHBPYML.mjs +385 -0
- package/dist/chunk-PCHBPYML.mjs.map +1 -0
- package/dist/chunk-RJRUS55L.mjs +9323 -0
- package/dist/chunk-RJRUS55L.mjs.map +1 -0
- package/dist/{chunk-QC4VW3XJ.mjs → chunk-RXZ3RGOU.mjs} +4 -30
- package/dist/chunk-RXZ3RGOU.mjs.map +1 -0
- package/dist/{chunk-CQXZC5XI.mjs → chunk-VFPLTKCU.mjs} +79 -69
- package/dist/chunk-VFPLTKCU.mjs.map +1 -0
- package/dist/{chunk-SCRSAK5B.mjs → chunk-YTQ5C7YQ.mjs} +231 -127
- package/dist/chunk-YTQ5C7YQ.mjs.map +1 -0
- package/dist/components/atmosphere.d.ts +9 -0
- package/dist/components/atmosphere.d.ts.map +1 -0
- package/dist/components/camera.d.ts +2 -1
- package/dist/components/camera.d.ts.map +1 -1
- package/dist/components/fog.d.ts +8 -0
- package/dist/components/fog.d.ts.map +1 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/lines.d.ts +5 -0
- package/dist/components/lines.d.ts.map +1 -0
- package/dist/components/motion-blur.d.ts +7 -0
- package/dist/components/motion-blur.d.ts.map +1 -0
- package/dist/components/points.d.ts +15 -0
- package/dist/components/points.d.ts.map +1 -0
- package/dist/construct-renderer.d.ts +2 -2
- package/dist/construct-renderer.d.ts.map +1 -1
- package/dist/construct-renderer.mjs +11419 -16442
- package/dist/construct-renderer.mjs.map +1 -1
- package/dist/device/device-scope.d.ts +4 -0
- package/dist/device/device-scope.d.ts.map +1 -1
- package/dist/environment/frame.d.ts +60 -0
- package/dist/environment/frame.d.ts.map +1 -0
- package/dist/environment/generation.d.ts +21 -0
- package/dist/environment/generation.d.ts.map +1 -0
- package/dist/environment/graph.d.ts +4 -0
- package/dist/environment/graph.d.ts.map +1 -0
- package/dist/environment/inspection.d.ts +48 -0
- package/dist/environment/inspection.d.ts.map +1 -0
- package/dist/environment/lifecycle.d.ts +39 -0
- package/dist/environment/lifecycle.d.ts.map +1 -0
- package/dist/environment/signature.d.ts +25 -0
- package/dist/environment/signature.d.ts.map +1 -0
- package/dist/errors/render.d.ts +217 -1
- package/dist/errors/render.d.ts.map +1 -1
- package/dist/extract/camera.d.ts +5 -0
- package/dist/extract/camera.d.ts.map +1 -0
- package/dist/extract/environment.d.ts +74 -0
- package/dist/extract/environment.d.ts.map +1 -0
- package/dist/extract/visibility.d.ts +1 -1
- package/dist/extract/visibility.d.ts.map +1 -1
- package/dist/features/host.d.ts +9 -2
- package/dist/features/host.d.ts.map +1 -1
- package/dist/features/motion-blur/motion-blur-feature.d.ts +16 -0
- package/dist/features/motion-blur/motion-blur-feature.d.ts.map +1 -0
- package/dist/features/motion-blur/motion-blur-params.d.ts +25 -0
- package/dist/features/motion-blur/motion-blur-params.d.ts.map +1 -0
- package/dist/features/plan.d.ts +17 -2
- package/dist/features/plan.d.ts.map +1 -1
- package/dist/features/prepared-gpu-work.d.ts +3 -1
- package/dist/features/prepared-gpu-work.d.ts.map +1 -1
- package/dist/features/prepared-graphics.d.ts +2 -1
- package/dist/features/prepared-graphics.d.ts.map +1 -1
- package/dist/features/render-graph-raster.d.ts +7 -2
- package/dist/features/render-graph-raster.d.ts.map +1 -1
- package/dist/features/targets.d.ts +3 -0
- package/dist/features/targets.d.ts.map +1 -1
- package/dist/features/types.d.ts +12 -0
- package/dist/features/types.d.ts.map +1 -1
- package/dist/fullscreen-post-process-pass.d.ts +7 -1
- package/dist/fullscreen-post-process-pass.d.ts.map +1 -1
- package/dist/gpu-driven/production-raster.d.ts.map +1 -1
- package/dist/gpu-scene.d.ts +2 -0
- package/dist/gpu-scene.d.ts.map +1 -1
- package/dist/ibl/skylight-bind-group.d.ts +5 -6
- package/dist/ibl/skylight-bind-group.d.ts.map +1 -1
- package/dist/index.d.ts +21 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/dist/inspection-types.d.ts +46 -1
- package/dist/inspection-types.d.ts.map +1 -1
- package/dist/internal.d.ts +2 -0
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.mjs +2 -0
- package/dist/materials.d.ts +22 -0
- package/dist/materials.d.ts.map +1 -1
- package/dist/pbr-pipeline.d.ts +12 -6
- package/dist/pbr-pipeline.d.ts.map +1 -1
- package/dist/pipeline/standard-forward-lane.d.ts.map +1 -1
- package/dist/pipeline/standard-pipeline.d.ts +3 -0
- package/dist/pipeline/standard-pipeline.d.ts.map +1 -1
- package/dist/pipeline/standard-post.d.ts +48 -0
- package/dist/pipeline/standard-post.d.ts.map +1 -0
- package/dist/pipeline/standard-profile.d.ts +3 -6
- package/dist/pipeline/standard-profile.d.ts.map +1 -1
- package/dist/pipeline-builder.d.ts +18 -0
- package/dist/pipeline-builder.d.ts.map +1 -1
- package/dist/pipeline-spec.d.ts.map +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/points-lines/admission.d.ts +36 -0
- package/dist/points-lines/admission.d.ts.map +1 -0
- package/dist/points-lines/bounds.d.ts +8 -0
- package/dist/points-lines/bounds.d.ts.map +1 -0
- package/dist/points-lines/expansion-cache.d.ts +28 -0
- package/dist/points-lines/expansion-cache.d.ts.map +1 -0
- package/dist/points-lines/inspection.d.ts +53 -0
- package/dist/points-lines/inspection.d.ts.map +1 -0
- package/dist/points-lines/prepare.d.ts +67 -0
- package/dist/points-lines/prepare.d.ts.map +1 -0
- package/dist/points-lines/record.d.ts +60 -0
- package/dist/points-lines/record.d.ts.map +1 -0
- package/dist/points-lines/snapshot.d.ts +49 -0
- package/dist/points-lines/snapshot.d.ts.map +1 -0
- package/dist/record/frame-lighting.d.ts.map +1 -1
- package/dist/record/frame-snapshot.d.ts +100 -5
- package/dist/record/frame-snapshot.d.ts.map +1 -1
- package/dist/record/frame-targets.d.ts.map +1 -1
- package/dist/record/frame.d.ts +4 -2
- package/dist/record/frame.d.ts.map +1 -1
- package/dist/record/main-pass-geometry.d.ts +18 -0
- package/dist/record/main-pass-geometry.d.ts.map +1 -1
- package/dist/record/main-pass-material.d.ts +8 -5
- package/dist/record/main-pass-material.d.ts.map +1 -1
- package/dist/record/main-pass-sprite-draws.d.ts +8 -1
- package/dist/record/main-pass-sprite-draws.d.ts.map +1 -1
- package/dist/record/main-pass.d.ts +2 -0
- package/dist/record/main-pass.d.ts.map +1 -1
- package/dist/record/mesh-ssbo.d.ts.map +1 -1
- package/dist/record/render-context.d.ts +93 -18
- package/dist/record/render-context.d.ts.map +1 -1
- package/dist/record/shadow-pass.d.ts.map +1 -1
- package/dist/record/skybox-post-pass.d.ts +1 -11
- package/dist/record/skybox-post-pass.d.ts.map +1 -1
- package/dist/record/typed-frame-graph.d.ts +26 -2
- package/dist/record/typed-frame-graph.d.ts.map +1 -1
- package/dist/record/view-ubo.d.ts +10 -1
- package/dist/record/view-ubo.d.ts.map +1 -1
- package/dist/render-contract.d.ts +102 -10
- 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 +50 -6
- package/dist/render-pipeline.d.ts.map +1 -1
- package/dist/render-system-extract.d.ts +32 -5
- package/dist/render-system-extract.d.ts.map +1 -1
- package/dist/render-system.d.ts +27 -5
- package/dist/render-system.d.ts.map +1 -1
- package/dist/scene/render-scene-types.d.ts +3 -0
- package/dist/scene/render-scene-types.d.ts.map +1 -1
- package/dist/scene/render-scene.d.ts +43 -2
- package/dist/scene/render-scene.d.ts.map +1 -1
- package/dist/temporal/coverage.d.ts +42 -0
- package/dist/temporal/coverage.d.ts.map +1 -0
- package/dist/temporal/frame-coordinator.d.ts +99 -0
- package/dist/temporal/frame-coordinator.d.ts.map +1 -0
- package/dist/temporal/gpu.d.ts +39 -0
- package/dist/temporal/gpu.d.ts.map +1 -0
- package/dist/temporal/history.d.ts +37 -0
- package/dist/temporal/history.d.ts.map +1 -0
- package/dist/temporal/index.d.ts +7 -0
- package/dist/temporal/index.d.ts.map +1 -0
- package/dist/temporal/index.mjs +8 -0
- package/dist/temporal/index.mjs.map +1 -0
- package/dist/temporal/inspection.d.ts +36 -0
- package/dist/temporal/inspection.d.ts.map +1 -0
- package/dist/temporal/scene-data-catalog.d.ts +48 -0
- package/dist/temporal/scene-data-catalog.d.ts.map +1 -0
- package/dist/temporal/scene-data.d.ts +43 -0
- package/dist/temporal/scene-data.d.ts.map +1 -0
- package/dist/temporal/standard-scene-data.d.ts +61 -0
- package/dist/temporal/standard-scene-data.d.ts.map +1 -0
- package/dist/temporal/taa-history-resources.d.ts +22 -0
- package/dist/temporal/taa-history-resources.d.ts.map +1 -0
- package/dist/temporal/taa-history-store.d.ts +27 -0
- package/dist/temporal/taa-history-store.d.ts.map +1 -0
- package/dist/temporal/taa-resolve.d.ts +15 -0
- package/dist/temporal/taa-resolve.d.ts.map +1 -0
- package/dist/temporal/temporal-view.d.ts +40 -0
- package/dist/temporal/temporal-view.d.ts.map +1 -0
- package/dist/temporal/transaction.d.ts +9 -0
- package/dist/temporal/transaction.d.ts.map +1 -0
- package/dist/temporal/view.d.ts +56 -0
- package/dist/temporal/view.d.ts.map +1 -0
- package/dist/transmission/backdrop.d.ts +147 -0
- package/dist/transmission/backdrop.d.ts.map +1 -0
- package/dist/transmission/inspection.d.ts +57 -0
- package/dist/transmission/inspection.d.ts.map +1 -0
- package/dist/transmission/oracle.d.ts +42 -0
- package/dist/transmission/oracle.d.ts.map +1 -0
- package/dist/transmission/projection.d.ts +37 -0
- package/dist/transmission/projection.d.ts.map +1 -0
- package/dist/typed-render-graph-primitives.d.ts +25 -2
- package/dist/typed-render-graph-primitives.d.ts.map +1 -1
- package/package.json +24 -19
- package/src/__tests__/ai-user-cold-start.integration.test.ts +59 -0
- package/src/__tests__/ai-user-public-surface.test-d.ts +45 -0
- package/src/__tests__/authoring-path.unit.test.ts +9 -0
- package/src/__tests__/bloom-exact-zero.unit.test.ts +202 -0
- package/src/__tests__/bloom-lifecycle.integration.test.ts +125 -0
- package/src/__tests__/construct-renderer-identity.unit.test.ts +4 -3
- package/src/__tests__/detached-inspection.integration.test.ts +177 -0
- package/src/__tests__/environment-fog-lanes.integration.test.ts +219 -0
- package/src/__tests__/environment-generation.integration.test.ts +141 -0
- package/src/__tests__/environment-selection.unit.test.ts +245 -0
- package/src/__tests__/factory-contract.integration.test.ts +1380 -9
- package/src/__tests__/frame-plan-contract.unit.test.ts +90 -0
- package/src/__tests__/fullscreen-feature-plan.unit.test.ts +7 -0
- package/src/__tests__/gpu-driven-indirect-raster-evidence.ts +12 -2
- package/src/__tests__/gpu-driven-production.integration.test.ts +74 -22
- package/src/__tests__/gpu-driven-view-graph.integration.test.ts +37 -0
- package/src/__tests__/gpu-scene.unit.test.ts +10 -0
- package/src/__tests__/injection-kind-owner.test-d.ts +2 -1
- package/src/__tests__/material-contract-inventory.unit.test.ts +62 -0
- package/src/__tests__/material-cooked-projection.unit.test.ts +18 -124
- package/src/__tests__/material-static-dynamic-route.unit.test.ts +28 -28
- package/src/__tests__/materials-transmission-validation.unit.test.ts +36 -0
- package/src/__tests__/morph-feature-plan.unit.test.ts +7 -0
- package/src/__tests__/motion-blur.pixel.integration.test.ts +121 -0
- package/src/__tests__/public-surface.test-d.ts +15 -1
- package/src/__tests__/render-error-code-owner.test-d.ts +15 -0
- package/src/__tests__/render-error-detail-ssot.test-d.ts +11 -2
- package/src/__tests__/render-error-exhaustive.test-d.ts +22 -0
- package/src/__tests__/render-feature-errors.unit.test.ts +33 -3
- package/src/__tests__/render-feature-gpu-work.integration.test.ts +44 -0
- package/src/__tests__/render-feature-plan.test-d.ts +22 -89
- package/src/__tests__/render-scene-projection.unit.test.ts +28 -0
- package/src/__tests__/render-temporal-environment-consumer.browser.test.ts +26 -0
- package/src/__tests__/render-temporal-environment-consumer.dawn.test.ts +21 -0
- package/src/__tests__/renderer-factory-material-contract.unit.test.ts +433 -1
- package/src/__tests__/renderer-frame-transaction.integration.test.ts +405 -0
- package/src/__tests__/renderer-lifecycle.integration.test.ts +22 -0
- package/src/__tests__/scene-data-catalog.unit.test.ts +59 -0
- package/src/__tests__/scene-data-consumer.integration.test.ts +67 -0
- package/src/__tests__/scene-data-contract.test-d.ts +35 -0
- package/src/__tests__/scene-data-inspection.unit.test.ts +41 -0
- package/src/__tests__/scene-data-public-surface.test-d.ts +34 -0
- package/src/__tests__/shader-manifest-fixture.ts +111 -0
- package/src/__tests__/skinned-shadow-caster.test.ts +102 -0
- package/src/__tests__/standard-clustered-pipeline.unit.test.ts +24 -3
- package/src/__tests__/standard-pipeline.dawn.test.ts +15 -0
- package/src/__tests__/standard-pipeline.integration.test.ts +543 -1
- package/src/__tests__/standard-profile-oracle.unit.test.ts +10 -2
- package/src/__tests__/standard-temporal-producer.integration.test.ts +35 -0
- package/src/__tests__/surface-configuration.unit.test.ts +211 -12
- package/src/__tests__/taa-transaction.integration.test.ts +30 -0
- package/src/__tests__/temporal-admission.integration.test.ts +40 -0
- package/src/__tests__/temporal-coverage.unit.test.ts +35 -0
- package/src/__tests__/temporal-demand.unit.test.ts +44 -0
- package/src/__tests__/temporal-frame-coordinator.unit.test.ts +64 -0
- package/src/__tests__/temporal-graph-topology.unit.test.ts +51 -0
- package/src/__tests__/temporal-history-lifecycle.unit.test.ts +170 -0
- package/src/__tests__/temporal-performance.integration.test.ts +615 -0
- package/src/__tests__/temporal-reset-matrix.unit.test.ts +97 -0
- package/src/__tests__/temporal-transaction.integration.test.ts +60 -0
- package/src/__tests__/temporal-view.unit.test.ts +152 -0
- package/src/__tests__/transmission-prewarm.unit.test.ts +93 -0
- package/src/__tests__/typed-pipeline-topology.unit.test.ts +230 -1
- package/src/__tests__/urp-pipeline-targets.unit.test.ts +25 -1
- package/src/__tests__/urp-pipeline.unit.test.ts +4 -3
- package/src/__tests__/visibility-extract.integration.test.ts +27 -1
- package/src/__tests__/visibility-producer-matrix.integration.test.ts +10 -0
- package/src/assembly/backend-contract.ts +47 -1
- package/src/assembly/factory.ts +1295 -507
- package/src/assembly/host-contract.ts +4 -0
- package/src/assembly/material/assembly.ts +2 -5
- package/src/assembly/renderer-frame-transaction.ts +75 -0
- package/src/assembly/renderer-inspection.ts +112 -0
- package/src/assembly/renderer-lifecycle.ts +6 -0
- package/src/authoring.ts +1 -0
- package/src/components/__tests__/motion-blur.unit.test.ts +14 -0
- package/src/components/__tests__/points-lines-admission.unit.test.ts +219 -0
- package/src/components/__tests__/points-lines-schema.unit.test.ts +56 -0
- package/src/components/__tests__/schema-contract.unit.test.ts +6 -1
- package/src/components/atmosphere.ts +10 -0
- package/src/components/camera.ts +2 -1
- package/src/components/fog.ts +9 -0
- package/src/components/index.ts +10 -0
- package/src/components/lines.ts +18 -0
- package/src/components/motion-blur.ts +8 -0
- package/src/components/points.ts +40 -0
- package/src/construct-renderer.ts +40 -3
- package/src/device/device-scope.ts +15 -1
- package/src/environment/frame.ts +185 -0
- package/src/environment/generation.ts +23 -0
- package/src/environment/graph.ts +9 -0
- package/src/environment/inspection.ts +87 -0
- package/src/environment/lifecycle.ts +250 -0
- package/src/environment/signature.ts +55 -0
- package/src/errors/render.ts +429 -1
- package/src/extract/camera.ts +78 -0
- package/src/extract/environment.ts +171 -0
- package/src/extract/visibility.ts +38 -19
- package/src/features/host.ts +36 -5
- package/src/features/motion-blur/__tests__/motion-blur-feature.unit.test.ts +67 -0
- package/src/features/motion-blur/__tests__/motion-blur-params.unit.test.ts +53 -0
- package/src/features/motion-blur/motion-blur-feature.ts +119 -0
- package/src/features/motion-blur/motion-blur-params.ts +89 -0
- package/src/features/plan.ts +32 -3
- package/src/features/prepared-gpu-work.ts +21 -6
- package/src/features/prepared-graphics.ts +2 -1
- package/src/features/render-graph-raster.ts +24 -4
- package/src/features/targets.ts +24 -2
- package/src/features/types.ts +13 -0
- package/src/fullscreen-post-process-pass.ts +34 -4
- package/src/gpu-driven/production-raster.ts +6 -1
- package/src/gpu-scene.ts +24 -0
- package/src/ibl/skylight-bind-group.ts +30 -38
- package/src/index.ts +83 -6
- package/src/inspection-types.ts +52 -0
- package/src/internal.ts +5 -0
- package/src/materials.ts +119 -24
- package/src/pbr-pipeline.ts +66 -20
- package/src/pipeline/standard-forward-lane.ts +158 -101
- package/src/pipeline/standard-pipeline.ts +156 -105
- package/src/pipeline/standard-post.ts +373 -0
- package/src/pipeline/standard-profile.ts +11 -11
- package/src/pipeline-builder.ts +102 -12
- package/src/pipeline-spec.ts +9 -0
- package/src/plugin.ts +6 -0
- package/src/points-lines/__tests__/bounds.unit.test.ts +21 -0
- package/src/points-lines/__tests__/cache-recovery.unit.test.ts +157 -0
- package/src/points-lines/__tests__/inspection-lanes.integration.test.ts +146 -0
- package/src/points-lines/__tests__/inspection.unit.test.ts +173 -0
- package/src/points-lines/__tests__/lane-structural.integration.test.ts +122 -0
- package/src/points-lines/__tests__/points-lines.bench.ts +400 -0
- package/src/points-lines/__tests__/raster-lane.integration.test.ts +44 -0
- package/src/points-lines/__tests__/snapshot.unit.test.ts +101 -0
- package/src/points-lines/__tests__/view-ubo.unit.test.ts +73 -0
- package/src/points-lines/admission.ts +238 -0
- package/src/points-lines/bounds.ts +23 -0
- package/src/points-lines/expansion-cache.ts +215 -0
- package/src/points-lines/inspection.ts +97 -0
- package/src/points-lines/prepare.ts +177 -0
- package/src/points-lines/record.ts +125 -0
- package/src/points-lines/snapshot.ts +130 -0
- package/src/record/__tests__/fullscreen-temporal-routing.unit.test.ts +25 -0
- package/src/record/__tests__/main-pass-geometry.unit.test.ts +47 -0
- package/src/record/__tests__/material-bg-cache.unit.test.ts +12 -1
- package/src/record/__tests__/material-pipeline-pending-cache.unit.test.ts +22 -0
- package/src/record/__tests__/sprite-material-abi.unit.test.ts +75 -0
- package/src/record/__tests__/standard-pbr-ubo-layout.unit.test.ts +67 -0
- package/src/record/__tests__/temporal-payload.unit.test.ts +164 -0
- package/src/record/__tests__/typed-frame-graph-plan.unit.test.ts +127 -0
- package/src/record/frame-lighting.ts +14 -2
- package/src/record/frame-snapshot.ts +129 -5
- package/src/record/frame-targets.ts +15 -6
- package/src/record/frame.ts +119 -4
- package/src/record/main-pass-geometry.ts +178 -40
- package/src/record/main-pass-material.ts +114 -66
- package/src/record/main-pass-sprite-draws.ts +79 -102
- package/src/record/main-pass.ts +83 -7
- package/src/record/mesh-ssbo.ts +22 -3
- package/src/record/render-context.ts +209 -23
- package/src/record/shadow-pass.ts +129 -28
- package/src/record/skybox-post-pass.ts +99 -42
- package/src/record/typed-frame-graph.ts +582 -42
- package/src/record/view-ubo.ts +99 -4
- package/src/render-contract.ts +121 -7
- package/src/render-graph-primitives.ts +18 -1
- package/src/render-pipeline.ts +100 -27
- package/src/render-system-extract.ts +264 -77
- package/src/render-system.ts +786 -43
- package/src/scene/render-scene-types.ts +3 -0
- package/src/scene/render-scene.ts +307 -9
- package/src/temporal/__tests__/taa-history-resources.unit.test.ts +45 -0
- package/src/temporal/coverage.ts +76 -0
- package/src/temporal/frame-coordinator.ts +311 -0
- package/src/temporal/gpu.ts +287 -0
- package/src/temporal/history.ts +92 -0
- package/src/temporal/index.ts +6 -0
- package/src/temporal/inspection.ts +97 -0
- package/src/temporal/scene-data-catalog.ts +200 -0
- package/src/temporal/scene-data.ts +149 -0
- package/src/temporal/standard-scene-data.ts +182 -0
- package/src/temporal/taa-history-resources.ts +128 -0
- package/src/temporal/taa-history-store.ts +79 -0
- package/src/temporal/taa-resolve.ts +34 -0
- package/src/temporal/temporal-view.ts +169 -0
- package/src/temporal/transaction.ts +17 -0
- package/src/temporal/view.ts +161 -0
- package/src/transmission/__tests__/capability.unit.test.ts +83 -0
- package/src/transmission/__tests__/composition.integration.test.ts +161 -0
- package/src/transmission/__tests__/inspection.unit.test.ts +241 -0
- package/src/transmission/__tests__/lifecycle.integration.test.ts +96 -0
- package/src/transmission/__tests__/oracle.unit.test.ts +131 -0
- package/src/transmission/__tests__/projection.unit.test.ts +71 -0
- package/src/transmission/__tests__/standard-transmission.dawn.test.ts +438 -0
- package/src/transmission/__tests__/transmission-backdrop-topology.unit.test.ts +109 -0
- package/src/transmission/__tests__/transmission-backdrop.dawn.test.ts +105 -0
- package/src/transmission/backdrop.ts +572 -0
- package/src/transmission/inspection.ts +190 -0
- package/src/transmission/oracle.ts +141 -0
- package/src/transmission/projection.ts +83 -0
- package/src/typed-render-graph-primitives.ts +162 -9
- package/dist/__tests__/authoring-path.unit.test.d.ts +0 -2
- package/dist/__tests__/authoring-path.unit.test.d.ts.map +0 -1
- package/dist/__tests__/backend-selection-rhi-capture.test-d.d.ts +0 -2
- package/dist/__tests__/backend-selection-rhi-capture.test-d.d.ts.map +0 -1
- package/dist/__tests__/callback-inference.test-d.d.ts +0 -2
- package/dist/__tests__/callback-inference.test-d.d.ts.map +0 -1
- package/dist/__tests__/cluster-binner.test.d.ts +0 -2
- package/dist/__tests__/cluster-binner.test.d.ts.map +0 -1
- package/dist/__tests__/cluster-grid-default-surface.unit.test.d.ts +0 -2
- package/dist/__tests__/cluster-grid-default-surface.unit.test.d.ts.map +0 -1
- package/dist/__tests__/construct-renderer-identity.unit.test.d.ts +0 -2
- package/dist/__tests__/construct-renderer-identity.unit.test.d.ts.map +0 -1
- package/dist/__tests__/device-scope-lifecycle.unit.test.d.ts +0 -2
- package/dist/__tests__/device-scope-lifecycle.unit.test.d.ts.map +0 -1
- package/dist/__tests__/device-scope-stale-matrix.unit.test.d.ts +0 -2
- package/dist/__tests__/device-scope-stale-matrix.unit.test.d.ts.map +0 -1
- package/dist/__tests__/direct-extract-consumer-contract.test-d.d.ts +0 -2
- package/dist/__tests__/direct-extract-consumer-contract.test-d.d.ts.map +0 -1
- package/dist/__tests__/direct-light-snapshot.unit.test.d.ts +0 -2
- package/dist/__tests__/direct-light-snapshot.unit.test.d.ts.map +0 -1
- package/dist/__tests__/factory-contract.integration.test.d.ts +0 -2
- package/dist/__tests__/factory-contract.integration.test.d.ts.map +0 -1
- package/dist/__tests__/fallback-row-stride-surface.unit.test.d.ts +0 -2
- package/dist/__tests__/fallback-row-stride-surface.unit.test.d.ts.map +0 -1
- package/dist/__tests__/frame-observation.contract.test.d.ts +0 -2
- package/dist/__tests__/frame-observation.contract.test.d.ts.map +0 -1
- package/dist/__tests__/fullscreen-feature-plan.unit.test.d.ts +0 -2
- package/dist/__tests__/fullscreen-feature-plan.unit.test.d.ts.map +0 -1
- package/dist/__tests__/glyph-text-layout-recovery.unit.test.d.ts +0 -2
- package/dist/__tests__/glyph-text-layout-recovery.unit.test.d.ts.map +0 -1
- package/dist/__tests__/gpu-driven-indirect-raster-evidence.d.ts +0 -6
- package/dist/__tests__/gpu-driven-indirect-raster-evidence.d.ts.map +0 -1
- package/dist/__tests__/gpu-driven-indirect-raster.browser.test.d.ts +0 -2
- package/dist/__tests__/gpu-driven-indirect-raster.browser.test.d.ts.map +0 -1
- package/dist/__tests__/gpu-driven-indirect-raster.dawn.test.d.ts +0 -2
- package/dist/__tests__/gpu-driven-indirect-raster.dawn.test.d.ts.map +0 -1
- package/dist/__tests__/gpu-driven-production.integration.test.d.ts +0 -2
- package/dist/__tests__/gpu-driven-production.integration.test.d.ts.map +0 -1
- package/dist/__tests__/gpu-driven-scaling.unit.test.d.ts +0 -2
- package/dist/__tests__/gpu-driven-scaling.unit.test.d.ts.map +0 -1
- package/dist/__tests__/gpu-driven-view-gpu-evidence.d.ts +0 -18
- package/dist/__tests__/gpu-driven-view-gpu-evidence.d.ts.map +0 -1
- package/dist/__tests__/gpu-driven-view-graph.integration.test.d.ts +0 -2
- package/dist/__tests__/gpu-driven-view-graph.integration.test.d.ts.map +0 -1
- package/dist/__tests__/gpu-driven-view-reference.d.ts +0 -15
- package/dist/__tests__/gpu-driven-view-reference.d.ts.map +0 -1
- package/dist/__tests__/gpu-driven-view.browser.test.d.ts +0 -2
- package/dist/__tests__/gpu-driven-view.browser.test.d.ts.map +0 -1
- package/dist/__tests__/gpu-driven-view.dawn.test.d.ts +0 -2
- package/dist/__tests__/gpu-driven-view.dawn.test.d.ts.map +0 -1
- package/dist/__tests__/gpu-driven-view.unit.test.d.ts +0 -2
- package/dist/__tests__/gpu-driven-view.unit.test.d.ts.map +0 -1
- package/dist/__tests__/gpu-resource-store-stride.unit.test.d.ts +0 -2
- package/dist/__tests__/gpu-resource-store-stride.unit.test.d.ts.map +0 -1
- package/dist/__tests__/gpu-scene-render-graph-gpu.d.ts +0 -7
- package/dist/__tests__/gpu-scene-render-graph-gpu.d.ts.map +0 -1
- package/dist/__tests__/gpu-scene-render-graph.browser.test.d.ts +0 -2
- package/dist/__tests__/gpu-scene-render-graph.browser.test.d.ts.map +0 -1
- package/dist/__tests__/gpu-scene-render-graph.dawn.test.d.ts +0 -2
- package/dist/__tests__/gpu-scene-render-graph.dawn.test.d.ts.map +0 -1
- package/dist/__tests__/gpu-scene-schema.unit.test.d.ts +0 -2
- package/dist/__tests__/gpu-scene-schema.unit.test.d.ts.map +0 -1
- package/dist/__tests__/gpu-scene.dawn.test.d.ts +0 -2
- package/dist/__tests__/gpu-scene.dawn.test.d.ts.map +0 -1
- package/dist/__tests__/gpu-scene.unit.test.d.ts +0 -2
- package/dist/__tests__/gpu-scene.unit.test.d.ts.map +0 -1
- package/dist/__tests__/ibl/face-uniforms.unit.test.d.ts +0 -2
- package/dist/__tests__/ibl/face-uniforms.unit.test.d.ts.map +0 -1
- package/dist/__tests__/infinite-grid-no-vertex-probe.unit.test.d.ts +0 -2
- package/dist/__tests__/infinite-grid-no-vertex-probe.unit.test.d.ts.map +0 -1
- package/dist/__tests__/injection-kind-owner.test-d.d.ts +0 -2
- package/dist/__tests__/injection-kind-owner.test-d.d.ts.map +0 -1
- package/dist/__tests__/ktx2-basis-gpu-consumer.dawn.test.d.ts +0 -2
- package/dist/__tests__/ktx2-basis-gpu-consumer.dawn.test.d.ts.map +0 -1
- package/dist/__tests__/light-buffer-layout.unit.test.d.ts +0 -2
- package/dist/__tests__/light-buffer-layout.unit.test.d.ts.map +0 -1
- package/dist/__tests__/material-contract-inventory.unit.test.d.ts +0 -2
- package/dist/__tests__/material-contract-inventory.unit.test.d.ts.map +0 -1
- package/dist/__tests__/material-cooked-projection.unit.test.d.ts +0 -2
- package/dist/__tests__/material-cooked-projection.unit.test.d.ts.map +0 -1
- package/dist/__tests__/material-snapshot-mutation.integration.test.d.ts +0 -2
- package/dist/__tests__/material-snapshot-mutation.integration.test.d.ts.map +0 -1
- package/dist/__tests__/material-static-dynamic-route.unit.test.d.ts +0 -2
- package/dist/__tests__/material-static-dynamic-route.unit.test.d.ts.map +0 -1
- package/dist/__tests__/material-stride-surface.unit.test.d.ts +0 -2
- package/dist/__tests__/material-stride-surface.unit.test.d.ts.map +0 -1
- package/dist/__tests__/mesh-buffer-usage-surface.unit.test.d.ts +0 -2
- package/dist/__tests__/mesh-buffer-usage-surface.unit.test.d.ts.map +0 -1
- package/dist/__tests__/mesh-material-bindings.unit.test.d.ts +0 -2
- package/dist/__tests__/mesh-material-bindings.unit.test.d.ts.map +0 -1
- package/dist/__tests__/mesh-stride-surface.unit.test.d.ts +0 -2
- package/dist/__tests__/mesh-stride-surface.unit.test.d.ts.map +0 -1
- package/dist/__tests__/morph-culling-reentry.dawn.test.d.ts +0 -2
- package/dist/__tests__/morph-culling-reentry.dawn.test.d.ts.map +0 -1
- package/dist/__tests__/morph-feature-gpu-work.integration.test.d.ts +0 -2
- package/dist/__tests__/morph-feature-gpu-work.integration.test.d.ts.map +0 -1
- package/dist/__tests__/morph-feature-plan.unit.test.d.ts +0 -2
- package/dist/__tests__/morph-feature-plan.unit.test.d.ts.map +0 -1
- package/dist/__tests__/morph-visual-evidence.integration.test.d.ts +0 -2
- package/dist/__tests__/morph-visual-evidence.integration.test.d.ts.map +0 -1
- package/dist/__tests__/nineslice-handle-surface.unit.test.d.ts +0 -2
- package/dist/__tests__/nineslice-handle-surface.unit.test.d.ts.map +0 -1
- package/dist/__tests__/post-process-error-policy-owner.unit.test.d.ts +0 -2
- package/dist/__tests__/post-process-error-policy-owner.unit.test.d.ts.map +0 -1
- package/dist/__tests__/prepared-buffer-kind-owner.test-d.d.ts +0 -2
- package/dist/__tests__/prepared-buffer-kind-owner.test-d.d.ts.map +0 -1
- package/dist/__tests__/prepared-graphics-capability.unit.test.d.ts +0 -2
- package/dist/__tests__/prepared-graphics-capability.unit.test.d.ts.map +0 -1
- package/dist/__tests__/prepared-graphics-generation.unit.test.d.ts +0 -2
- package/dist/__tests__/prepared-graphics-generation.unit.test.d.ts.map +0 -1
- package/dist/__tests__/prepared-graphics-lifecycle.unit.test.d.ts +0 -2
- package/dist/__tests__/prepared-graphics-lifecycle.unit.test.d.ts.map +0 -1
- package/dist/__tests__/prepared-graphics-pipeline-warmup.unit.test.d.ts +0 -2
- package/dist/__tests__/prepared-graphics-pipeline-warmup.unit.test.d.ts.map +0 -1
- package/dist/__tests__/prepared-graphics-resolver.unit.test.d.ts +0 -2
- package/dist/__tests__/prepared-graphics-resolver.unit.test.d.ts.map +0 -1
- package/dist/__tests__/prepared-graphics-snapshot.unit.test.d.ts +0 -2
- package/dist/__tests__/prepared-graphics-snapshot.unit.test.d.ts.map +0 -1
- package/dist/__tests__/prepared-graphics-store.unit.test.d.ts +0 -2
- package/dist/__tests__/prepared-graphics-store.unit.test.d.ts.map +0 -1
- package/dist/__tests__/prepared-graphics-validation.unit.test.d.ts +0 -2
- package/dist/__tests__/prepared-graphics-validation.unit.test.d.ts.map +0 -1
- package/dist/__tests__/profiler-default-off.test.d.ts +0 -2
- package/dist/__tests__/profiler-default-off.test.d.ts.map +0 -1
- package/dist/__tests__/profiler-phase-catalog.test.d.ts +0 -2
- package/dist/__tests__/profiler-phase-catalog.test.d.ts.map +0 -1
- package/dist/__tests__/profiler-phase-integration.test.d.ts +0 -2
- package/dist/__tests__/profiler-phase-integration.test.d.ts.map +0 -1
- package/dist/__tests__/profiler-phase-token.test.d.ts +0 -2
- package/dist/__tests__/profiler-phase-token.test.d.ts.map +0 -1
- package/dist/__tests__/public-surface.test-d.d.ts +0 -2
- package/dist/__tests__/public-surface.test-d.d.ts.map +0 -1
- package/dist/__tests__/recover-error-policy-owner.unit.test.d.ts +0 -2
- package/dist/__tests__/recover-error-policy-owner.unit.test.d.ts.map +0 -1
- package/dist/__tests__/render-error-code-owner.test-d.d.ts +0 -2
- package/dist/__tests__/render-error-code-owner.test-d.d.ts.map +0 -1
- package/dist/__tests__/render-error-detail-ssot.test-d.d.ts +0 -2
- package/dist/__tests__/render-error-detail-ssot.test-d.d.ts.map +0 -1
- package/dist/__tests__/render-error-exhaustive.test-d.d.ts +0 -2
- package/dist/__tests__/render-error-exhaustive.test-d.d.ts.map +0 -1
- package/dist/__tests__/render-feature-assembly.test-d.d.ts +0 -2
- package/dist/__tests__/render-feature-assembly.test-d.d.ts.map +0 -1
- package/dist/__tests__/render-feature-context.test-d.d.ts +0 -2
- package/dist/__tests__/render-feature-context.test-d.d.ts.map +0 -1
- package/dist/__tests__/render-feature-contract.test-d.d.ts +0 -2
- package/dist/__tests__/render-feature-contract.test-d.d.ts.map +0 -1
- package/dist/__tests__/render-feature-diagnostics.unit.test.d.ts +0 -2
- package/dist/__tests__/render-feature-diagnostics.unit.test.d.ts.map +0 -1
- package/dist/__tests__/render-feature-docs.unit.test.d.ts +0 -2
- package/dist/__tests__/render-feature-docs.unit.test.d.ts.map +0 -1
- package/dist/__tests__/render-feature-errors.unit.test.d.ts +0 -2
- package/dist/__tests__/render-feature-errors.unit.test.d.ts.map +0 -1
- package/dist/__tests__/render-feature-gpu-work.integration.test.d.ts +0 -2
- package/dist/__tests__/render-feature-gpu-work.integration.test.d.ts.map +0 -1
- package/dist/__tests__/render-feature-plan.test-d.d.ts +0 -2
- package/dist/__tests__/render-feature-plan.test-d.d.ts.map +0 -1
- package/dist/__tests__/render-feature-plan.unit.test.d.ts +0 -2
- package/dist/__tests__/render-feature-plan.unit.test.d.ts.map +0 -1
- package/dist/__tests__/render-feature-prepared-diagnostics.unit.test.d.ts +0 -2
- package/dist/__tests__/render-feature-prepared-diagnostics.unit.test.d.ts.map +0 -1
- package/dist/__tests__/render-feature-prepared-errors.test-d.d.ts +0 -2
- package/dist/__tests__/render-feature-prepared-errors.test-d.d.ts.map +0 -1
- package/dist/__tests__/render-feature-prepared-graphics-docs.unit.test.d.ts +0 -2
- package/dist/__tests__/render-feature-prepared-graphics-docs.unit.test.d.ts.map +0 -1
- package/dist/__tests__/render-feature-prepared-graphics-isolation.unit.test.d.ts +0 -2
- package/dist/__tests__/render-feature-prepared-graphics-isolation.unit.test.d.ts.map +0 -1
- package/dist/__tests__/render-feature-prepared-graphics-negative.test-d.d.ts +0 -2
- package/dist/__tests__/render-feature-prepared-graphics-negative.test-d.d.ts.map +0 -1
- package/dist/__tests__/render-feature-prepared-graphics.test-d.d.ts +0 -2
- package/dist/__tests__/render-feature-prepared-graphics.test-d.d.ts.map +0 -1
- package/dist/__tests__/render-feature-prepared-graphics.unit.test.d.ts +0 -2
- package/dist/__tests__/render-feature-prepared-graphics.unit.test.d.ts.map +0 -1
- package/dist/__tests__/render-feature-public-surface.test-d.d.ts +0 -2
- package/dist/__tests__/render-feature-public-surface.test-d.d.ts.map +0 -1
- package/dist/__tests__/render-feature-retry.unit.test.d.ts +0 -2
- package/dist/__tests__/render-feature-retry.unit.test.d.ts.map +0 -1
- package/dist/__tests__/render-feature-scheduling.unit.test.d.ts +0 -2
- package/dist/__tests__/render-feature-scheduling.unit.test.d.ts.map +0 -1
- package/dist/__tests__/render-feature-stage-failed-policy-owner.unit.test.d.ts +0 -2
- package/dist/__tests__/render-feature-stage-failed-policy-owner.unit.test.d.ts.map +0 -1
- package/dist/__tests__/render-feature-stage-fault-recovery.unit.test.d.ts +0 -2
- package/dist/__tests__/render-feature-stage-fault-recovery.unit.test.d.ts.map +0 -1
- package/dist/__tests__/render-feature-visibility-context.test-d.d.ts +0 -2
- package/dist/__tests__/render-feature-visibility-context.test-d.d.ts.map +0 -1
- package/dist/__tests__/render-feature-visibility-context.unit.test.d.ts +0 -2
- package/dist/__tests__/render-feature-visibility-context.unit.test.d.ts.map +0 -1
- package/dist/__tests__/render-feature-zero-work.unit.test.d.ts +0 -2
- package/dist/__tests__/render-feature-zero-work.unit.test.d.ts.map +0 -1
- package/dist/__tests__/render-graph-compute-raster-gpu.d.ts +0 -7
- package/dist/__tests__/render-graph-compute-raster-gpu.d.ts.map +0 -1
- package/dist/__tests__/render-graph-compute-raster.browser.test.d.ts +0 -2
- package/dist/__tests__/render-graph-compute-raster.browser.test.d.ts.map +0 -1
- package/dist/__tests__/render-graph-compute-raster.dawn.test.d.ts +0 -2
- package/dist/__tests__/render-graph-compute-raster.dawn.test.d.ts.map +0 -1
- package/dist/__tests__/render-graph-hzb-gpu.d.ts +0 -7
- package/dist/__tests__/render-graph-hzb-gpu.d.ts.map +0 -1
- package/dist/__tests__/render-graph-hzb.browser.test.d.ts +0 -2
- package/dist/__tests__/render-graph-hzb.browser.test.d.ts.map +0 -1
- package/dist/__tests__/render-graph-hzb.dawn.test.d.ts +0 -2
- package/dist/__tests__/render-graph-hzb.dawn.test.d.ts.map +0 -1
- package/dist/__tests__/render-graph-primitives.unit.test.d.ts +0 -2
- package/dist/__tests__/render-graph-primitives.unit.test.d.ts.map +0 -1
- package/dist/__tests__/render-graph-storage-indirect-gpu.d.ts +0 -12
- package/dist/__tests__/render-graph-storage-indirect-gpu.d.ts.map +0 -1
- package/dist/__tests__/render-graph-storage-indirect.browser.test.d.ts +0 -2
- package/dist/__tests__/render-graph-storage-indirect.browser.test.d.ts.map +0 -1
- package/dist/__tests__/render-graph-storage-indirect.dawn.test.d.ts +0 -2
- package/dist/__tests__/render-graph-storage-indirect.dawn.test.d.ts.map +0 -1
- package/dist/__tests__/render-scene-projection.unit.test.d.ts +0 -2
- package/dist/__tests__/render-scene-projection.unit.test.d.ts.map +0 -1
- package/dist/__tests__/renderer-factory-material-contract.unit.test.d.ts +0 -2
- package/dist/__tests__/renderer-factory-material-contract.unit.test.d.ts.map +0 -1
- package/dist/__tests__/renderer-lifecycle.integration.test.d.ts +0 -2
- package/dist/__tests__/renderer-lifecycle.integration.test.d.ts.map +0 -1
- package/dist/__tests__/rhi-backend-package-boundary.unit.test.d.ts +0 -2
- package/dist/__tests__/rhi-backend-package-boundary.unit.test.d.ts.map +0 -1
- package/dist/__tests__/scriptable-pack-consumer.test-d.d.ts +0 -2
- package/dist/__tests__/scriptable-pack-consumer.test-d.d.ts.map +0 -1
- package/dist/__tests__/shader-stage-surface.unit.test.d.ts +0 -2
- package/dist/__tests__/shader-stage-surface.unit.test.d.ts.map +0 -1
- package/dist/__tests__/ssao-config.unit.test.d.ts +0 -2
- package/dist/__tests__/ssao-config.unit.test.d.ts.map +0 -1
- package/dist/__tests__/ssao-kernel-surface.unit.test.d.ts +0 -2
- package/dist/__tests__/ssao-kernel-surface.unit.test.d.ts.map +0 -1
- package/dist/__tests__/standard-clustered-pipeline.unit.test.d.ts +0 -2
- package/dist/__tests__/standard-clustered-pipeline.unit.test.d.ts.map +0 -1
- package/dist/__tests__/standard-descriptors.test-d.d.ts +0 -2
- package/dist/__tests__/standard-descriptors.test-d.d.ts.map +0 -1
- package/dist/__tests__/standard-pipeline.dawn.test.d.ts +0 -2
- package/dist/__tests__/standard-pipeline.dawn.test.d.ts.map +0 -1
- package/dist/__tests__/standard-pipeline.integration.test.d.ts +0 -2
- package/dist/__tests__/standard-pipeline.integration.test.d.ts.map +0 -1
- package/dist/__tests__/standard-profile-oracle.unit.test.d.ts +0 -2
- package/dist/__tests__/standard-profile-oracle.unit.test.d.ts.map +0 -1
- package/dist/__tests__/surface-configuration.unit.test.d.ts +0 -2
- package/dist/__tests__/surface-configuration.unit.test.d.ts.map +0 -1
- package/dist/__tests__/texture-usage-surface.unit.test.d.ts +0 -2
- package/dist/__tests__/texture-usage-surface.unit.test.d.ts.map +0 -1
- package/dist/__tests__/typed-pipeline-topology.unit.test.d.ts +0 -2
- package/dist/__tests__/typed-pipeline-topology.unit.test.d.ts.map +0 -1
- package/dist/__tests__/urp-pipeline-targets.unit.test.d.ts +0 -2
- package/dist/__tests__/urp-pipeline-targets.unit.test.d.ts.map +0 -1
- package/dist/__tests__/urp-pipeline.unit.test.d.ts +0 -2
- package/dist/__tests__/urp-pipeline.unit.test.d.ts.map +0 -1
- package/dist/__tests__/vertex-color-pipeline.unit.test.d.ts +0 -2
- package/dist/__tests__/vertex-color-pipeline.unit.test.d.ts.map +0 -1
- package/dist/__tests__/vertex-layout-consumer.unit.test.d.ts +0 -2
- package/dist/__tests__/vertex-layout-consumer.unit.test.d.ts.map +0 -1
- package/dist/__tests__/visibility-diagnostics.integration.test.d.ts +0 -2
- package/dist/__tests__/visibility-diagnostics.integration.test.d.ts.map +0 -1
- package/dist/__tests__/visibility-extract.integration.test.d.ts +0 -2
- package/dist/__tests__/visibility-extract.integration.test.d.ts.map +0 -1
- package/dist/__tests__/visibility-extract.perf.test.d.ts +0 -2
- package/dist/__tests__/visibility-extract.perf.test.d.ts.map +0 -1
- package/dist/__tests__/visibility-feature-dedup.integration.test.d.ts +0 -2
- package/dist/__tests__/visibility-feature-dedup.integration.test.d.ts.map +0 -1
- package/dist/__tests__/visibility-hidden-report.unit.test.d.ts +0 -2
- package/dist/__tests__/visibility-hidden-report.unit.test.d.ts.map +0 -1
- package/dist/__tests__/visibility-instances.integration.test.d.ts +0 -2
- package/dist/__tests__/visibility-instances.integration.test.d.ts.map +0 -1
- package/dist/__tests__/visibility-multi-world.integration.test.d.ts +0 -2
- package/dist/__tests__/visibility-multi-world.integration.test.d.ts.map +0 -1
- package/dist/__tests__/visibility-producer-matrix.integration.test.d.ts +0 -2
- package/dist/__tests__/visibility-producer-matrix.integration.test.d.ts.map +0 -1
- package/dist/__tests__/visibility-producer-matrix.unit.test.d.ts +0 -2
- package/dist/__tests__/visibility-producer-matrix.unit.test.d.ts.map +0 -1
- package/dist/__tests__/visibility-public-surface.test-d.d.ts +0 -2
- package/dist/__tests__/visibility-public-surface.test-d.d.ts.map +0 -1
- package/dist/__tests__/visibility-resolver.unit.test.d.ts +0 -2
- package/dist/__tests__/visibility-resolver.unit.test.d.ts.map +0 -1
- package/dist/__tests__/visibility-resource-short-circuit.unit.test.d.ts +0 -2
- package/dist/__tests__/visibility-resource-short-circuit.unit.test.d.ts.map +0 -1
- package/dist/__tests__/visibility-snapshot-contract.unit.test.d.ts +0 -2
- package/dist/__tests__/visibility-snapshot-contract.unit.test.d.ts.map +0 -1
- package/dist/__tests__/vocabulary.unit.test.d.ts +0 -2
- package/dist/__tests__/vocabulary.unit.test.d.ts.map +0 -1
- package/dist/chunk-CQXZC5XI.mjs.map +0 -1
- package/dist/chunk-QC4VW3XJ.mjs.map +0 -1
- package/dist/chunk-SCRSAK5B.mjs.map +0 -1
- package/dist/components/__tests__/schema-contract.unit.test.d.ts +0 -2
- package/dist/components/__tests__/schema-contract.unit.test.d.ts.map +0 -1
- package/dist/components/__tests__/schema-parity.unit.test.d.ts +0 -2
- package/dist/components/__tests__/schema-parity.unit.test.d.ts.map +0 -1
- package/dist/components/__tests__/visibility-schema.unit.test.d.ts +0 -2
- package/dist/components/__tests__/visibility-schema.unit.test.d.ts.map +0 -1
- package/dist/record/__tests__/material-bg-cache.unit.test.d.ts +0 -2
- package/dist/record/__tests__/material-bg-cache.unit.test.d.ts.map +0 -1
- package/dist/record/__tests__/material-slot-plan.unit.test.d.ts +0 -2
- package/dist/record/__tests__/material-slot-plan.unit.test.d.ts.map +0 -1
- package/dist/record/__tests__/typed-frame-graph-plan.unit.test.d.ts +0 -2
- package/dist/record/__tests__/typed-frame-graph-plan.unit.test.d.ts.map +0 -1
- package/dist/record/__tests__/video-texture-view.unit.test.d.ts +0 -2
- package/dist/record/__tests__/video-texture-view.unit.test.d.ts.map +0 -1
|
@@ -3,8 +3,8 @@ import type {
|
|
|
3
3
|
RenderGraphBuilder,
|
|
4
4
|
RenderGraphError,
|
|
5
5
|
} from '@forgeax/engine-render-graph';
|
|
6
|
-
import { ok, type Result } from '@forgeax/engine-types';
|
|
7
|
-
import {
|
|
6
|
+
import { err, ok, type Result } from '@forgeax/engine-types';
|
|
7
|
+
import { SceneDataUnavailableError } from '../errors/render';
|
|
8
8
|
import type {
|
|
9
9
|
RenderPipeline,
|
|
10
10
|
RenderPipelineBuildContext,
|
|
@@ -17,15 +17,24 @@ import {
|
|
|
17
17
|
type RenderPipelineTarget,
|
|
18
18
|
} from '../render-pipeline';
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
addStandardSceneDataPass,
|
|
21
|
+
aggregateTemporalDemand,
|
|
22
|
+
createStandardSceneDataTarget,
|
|
23
|
+
standardTemporalLaneAdmission,
|
|
24
|
+
} from '../temporal/standard-scene-data';
|
|
25
|
+
import {
|
|
26
|
+
addTransmissionBackdropPasses,
|
|
27
|
+
addTransmissionBackdropTemporalPass,
|
|
28
|
+
resolveTransmissionBackdropTopology,
|
|
29
|
+
transmissionDemandForTopology,
|
|
30
|
+
} from '../transmission/backdrop';
|
|
31
|
+
import {
|
|
22
32
|
addTypedFrameObservationPass,
|
|
23
|
-
addTypedFullscreenPass,
|
|
24
33
|
addTypedScenePass,
|
|
25
34
|
addTypedSkyboxPass,
|
|
26
|
-
addTypedTonemapPass,
|
|
27
35
|
} from '../typed-render-graph-primitives';
|
|
28
36
|
import { addTypedShadowPasses } from '../typed-shadow-passes';
|
|
37
|
+
import { addStandardPost } from './standard-post';
|
|
29
38
|
|
|
30
39
|
function target(
|
|
31
40
|
graph: RenderGraphBuilder<RenderPipelineFrame>,
|
|
@@ -43,11 +52,32 @@ function buildUrp(
|
|
|
43
52
|
const surface = importRenderPipelineSurface(graph, topology);
|
|
44
53
|
if (!surface.ok) return surface;
|
|
45
54
|
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
const
|
|
55
|
+
const clearOnly = topology.clearOnly === true;
|
|
56
|
+
const msaa = !clearOnly && topology.camera.antialias === 'msaa' && topology.lane.multisample;
|
|
57
|
+
const hdr =
|
|
58
|
+
!clearOnly && (topology.camera.tonemap !== 'none' || topology.camera.antialias === 'taa');
|
|
59
|
+
const fxaa = !clearOnly && topology.camera.antialias === 'fxaa';
|
|
60
|
+
const taa = !clearOnly && topology.camera.antialias === 'taa';
|
|
61
|
+
const rawOnly = !clearOnly && topology.surface.profile?.kind === 'raw-only';
|
|
62
|
+
// A direct no-tone/no-FXAA lane writes the final display view directly;
|
|
63
|
+
// keeping a linear-LDR intermediate would add a redundant fullscreen pass.
|
|
64
|
+
// FXAA samples the scene before the Output Transform, so its input must
|
|
65
|
+
// remain float even when tone mapping is disabled. This prevents an
|
|
66
|
+
// eight-bit quantization before the OETF/display-encoded boundary.
|
|
67
|
+
// MSAA resolves into a separate linear target before presentation. Treat
|
|
68
|
+
// that resolved target like linear LDR so the shared Output Transform owns
|
|
69
|
+
// its write into the surface storage view; without this, the resolve is
|
|
70
|
+
// never presented and MSAA is indistinguishable from the no-AA path.
|
|
71
|
+
const linearLdr = !clearOnly && ((!hdr && topology.lane.storageBuffer) || fxaa || msaa);
|
|
72
|
+
const temporalDemand = aggregateTemporalDemand({
|
|
73
|
+
taa,
|
|
74
|
+
motionBlur: !clearOnly && topology.temporal?.motionBlur === true,
|
|
75
|
+
});
|
|
76
|
+
const needsTemporalIntermediate = temporalDemand.targetCount === 1;
|
|
77
|
+
const sceneFormat =
|
|
78
|
+
hdr || linearLdr || rawOnly || needsTemporalIntermediate
|
|
79
|
+
? 'rgba16float'
|
|
80
|
+
: topology.surface.storageFormat;
|
|
51
81
|
|
|
52
82
|
const depth = target(graph, 'scene-depth', {
|
|
53
83
|
format: 'depth24plus-stencil8',
|
|
@@ -56,24 +86,34 @@ function buildUrp(
|
|
|
56
86
|
});
|
|
57
87
|
if (!depth.ok) return depth;
|
|
58
88
|
|
|
59
|
-
const sceneResolved =
|
|
60
|
-
|
|
89
|
+
const sceneResolved = clearOnly
|
|
90
|
+
? ok(surface.value.display ?? surface.value.storage)
|
|
91
|
+
: hdr || fxaa || linearLdr || msaa || rawOnly || needsTemporalIntermediate
|
|
61
92
|
? target(graph, 'scene-color', {
|
|
62
93
|
format: sceneFormat,
|
|
63
94
|
size: 'surface',
|
|
64
95
|
sampleCount: 1,
|
|
96
|
+
domain: 'linear-ldr',
|
|
65
97
|
...(sceneFormat === topology.surface.storageFormat &&
|
|
66
98
|
topology.surface.storageFormat !== topology.surface.viewFormat
|
|
67
99
|
? { viewFormats: [topology.surface.viewFormat] }
|
|
68
100
|
: {}),
|
|
69
101
|
})
|
|
70
|
-
:
|
|
102
|
+
: surface.value.display === undefined
|
|
103
|
+
? target(graph, 'scene-color', {
|
|
104
|
+
format: topology.surface.storageFormat,
|
|
105
|
+
size: 'surface',
|
|
106
|
+
sampleCount: 1,
|
|
107
|
+
domain: 'display-encoded',
|
|
108
|
+
})
|
|
109
|
+
: ok(surface.value.display);
|
|
71
110
|
if (!sceneResolved.ok) return sceneResolved;
|
|
72
111
|
const scene = msaa
|
|
73
112
|
? target(graph, 'scene-color-msaa', {
|
|
74
113
|
format: sceneFormat,
|
|
75
114
|
size: 'surface',
|
|
76
115
|
sampleCount: 4,
|
|
116
|
+
domain: 'linear-ldr',
|
|
77
117
|
...(sceneFormat === topology.surface.storageFormat &&
|
|
78
118
|
topology.surface.storageFormat !== topology.surface.viewFormat
|
|
79
119
|
? { viewFormats: [topology.surface.viewFormat] }
|
|
@@ -92,6 +132,11 @@ function buildUrp(
|
|
|
92
132
|
sampleCount: scene.value.sampleCount,
|
|
93
133
|
});
|
|
94
134
|
if (!gpuDriven.ok) return gpuDriven;
|
|
135
|
+
const transmissionDemand = transmissionDemandForTopology(topology);
|
|
136
|
+
const transmissionActive = resolveTransmissionBackdropTopology({
|
|
137
|
+
demand: transmissionDemand,
|
|
138
|
+
sourceSampleCount: scene.value.sampleCount,
|
|
139
|
+
}).active;
|
|
95
140
|
const main = addTypedScenePass(graph, {
|
|
96
141
|
name: 'main',
|
|
97
142
|
color: scene.value,
|
|
@@ -106,10 +151,100 @@ function buildUrp(
|
|
|
106
151
|
spotShadow: shadows.value.spot,
|
|
107
152
|
selector: { LightMode: ['Forward'] },
|
|
108
153
|
colorLoadOp: 'load',
|
|
154
|
+
...(transmissionActive ? { recordMode: 'opaque' as const } : {}),
|
|
109
155
|
...(gpuDriven.value === undefined ? {} : { gpuDriven: gpuDriven.value }),
|
|
110
156
|
});
|
|
111
157
|
if (!main.ok) return main;
|
|
112
158
|
|
|
159
|
+
const temporalLane = topology.lane.compute
|
|
160
|
+
? (topology.standardProfile?.lighting ?? 'direct')
|
|
161
|
+
: 'cpu-webgl2';
|
|
162
|
+
const temporalAdmission = standardTemporalLaneAdmission({
|
|
163
|
+
lane: temporalLane,
|
|
164
|
+
demand: temporalDemand,
|
|
165
|
+
capabilities: {
|
|
166
|
+
compute: topology.lane.compute,
|
|
167
|
+
storageBuffer: topology.lane.storageBuffer,
|
|
168
|
+
// Capability probes are the sole authority. A surface/storage format is
|
|
169
|
+
// not evidence that rgba16float render targets are actually renderable.
|
|
170
|
+
rgba16floatRenderable: context.capabilities?.rgba16floatRenderable ?? false,
|
|
171
|
+
},
|
|
172
|
+
});
|
|
173
|
+
if (temporalAdmission.status === 'unavailable' && temporalAdmission.reason !== 'no-demand') {
|
|
174
|
+
return err(
|
|
175
|
+
new SceneDataUnavailableError({
|
|
176
|
+
featureIdentity: 'forgeax::standard',
|
|
177
|
+
schema: 'forgeax::scene-data::temporal-v1',
|
|
178
|
+
lane: temporalLane,
|
|
179
|
+
reason: temporalAdmission.reason,
|
|
180
|
+
missingContributorIds: [],
|
|
181
|
+
omittedMissingContributorCount: 0,
|
|
182
|
+
recovery: 'enable-capability',
|
|
183
|
+
}),
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
const temporal =
|
|
187
|
+
temporalDemand.targetCount === 1 ? createStandardSceneDataTarget(graph) : ok(undefined);
|
|
188
|
+
if (!temporal.ok) return temporal;
|
|
189
|
+
if (temporal.value !== undefined) {
|
|
190
|
+
const producer = addStandardSceneDataPass(graph, temporal.value.temporal, depth.value);
|
|
191
|
+
if (!producer.ok) return producer;
|
|
192
|
+
}
|
|
193
|
+
const transmission = addTransmissionBackdropPasses({
|
|
194
|
+
graph,
|
|
195
|
+
source: sceneResolved.value,
|
|
196
|
+
demand: transmissionDemand,
|
|
197
|
+
copySize: { width: topology.surface.width, height: topology.surface.height },
|
|
198
|
+
encodeRoughMip: context.encodeTransmissionMip,
|
|
199
|
+
includeConsumerPasses: false,
|
|
200
|
+
});
|
|
201
|
+
if (!transmission.ok) return transmission;
|
|
202
|
+
if (transmission.value.topology.active) {
|
|
203
|
+
const transmissionPass = addTypedScenePass(graph, {
|
|
204
|
+
name: 'transmission-forward',
|
|
205
|
+
color: scene.value,
|
|
206
|
+
depth: depth.value,
|
|
207
|
+
...(msaa ? { resolve: sceneResolved.value } : {}),
|
|
208
|
+
sampled: [
|
|
209
|
+
shadows.value.directional,
|
|
210
|
+
shadows.value.spot,
|
|
211
|
+
...(shadows.value.point === undefined ? [] : [shadows.value.point]),
|
|
212
|
+
],
|
|
213
|
+
directionalShadow: shadows.value.directional,
|
|
214
|
+
spotShadow: shadows.value.spot,
|
|
215
|
+
selector: { LightMode: ['Forward'] },
|
|
216
|
+
colorLoadOp: 'load',
|
|
217
|
+
depthLoadOp: 'load',
|
|
218
|
+
recordMode: 'transmission',
|
|
219
|
+
// Inject the complete backdrop view so the Standard shader can select
|
|
220
|
+
// the producer's optional roughness mip level. mipViews[0] is only the
|
|
221
|
+
// copy destination view and intentionally exposes one level.
|
|
222
|
+
transmissionBackdrop: transmission.value.backdrop?.view,
|
|
223
|
+
});
|
|
224
|
+
if (!transmissionPass.ok) return transmissionPass;
|
|
225
|
+
|
|
226
|
+
const transparentPass = addTypedScenePass(graph, {
|
|
227
|
+
name: 'transparent',
|
|
228
|
+
color: scene.value,
|
|
229
|
+
depth: depth.value,
|
|
230
|
+
...(msaa ? { resolve: sceneResolved.value } : {}),
|
|
231
|
+
sampled: [
|
|
232
|
+
shadows.value.directional,
|
|
233
|
+
shadows.value.spot,
|
|
234
|
+
...(shadows.value.point === undefined ? [] : [shadows.value.point]),
|
|
235
|
+
],
|
|
236
|
+
directionalShadow: shadows.value.directional,
|
|
237
|
+
spotShadow: shadows.value.spot,
|
|
238
|
+
selector: { LightMode: ['Forward'] },
|
|
239
|
+
colorLoadOp: 'load',
|
|
240
|
+
depthLoadOp: 'load',
|
|
241
|
+
recordMode: 'transparent',
|
|
242
|
+
});
|
|
243
|
+
if (!transparentPass.ok) return transparentPass;
|
|
244
|
+
const temporal = addTransmissionBackdropTemporalPass(graph, sceneResolved.value);
|
|
245
|
+
if (!temporal.ok) return temporal;
|
|
246
|
+
}
|
|
247
|
+
|
|
113
248
|
const features = context.contributeFeatures([
|
|
114
249
|
{
|
|
115
250
|
kind: 'scene-color',
|
|
@@ -129,7 +264,7 @@ function buildUrp(
|
|
|
129
264
|
]);
|
|
130
265
|
if (!features.ok) return features;
|
|
131
266
|
|
|
132
|
-
if (hdr || linearLdr) {
|
|
267
|
+
if (hdr || linearLdr || rawOnly) {
|
|
133
268
|
const observation = addTypedFrameObservationPass(
|
|
134
269
|
graph,
|
|
135
270
|
sceneResolved.value,
|
|
@@ -138,92 +273,14 @@ function buildUrp(
|
|
|
138
273
|
if (!observation.ok) return observation;
|
|
139
274
|
}
|
|
140
275
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
format: 'rgba16float',
|
|
150
|
-
size: 'half-surface',
|
|
151
|
-
});
|
|
152
|
-
if (!bright.ok) return bright;
|
|
153
|
-
const blurH = target(graph, 'bloom-blur-h', {
|
|
154
|
-
format: 'rgba16float',
|
|
155
|
-
size: 'half-surface',
|
|
156
|
-
});
|
|
157
|
-
if (!blurH.ok) return blurH;
|
|
158
|
-
const blurV = target(graph, 'bloom-blur-v', {
|
|
159
|
-
format: 'rgba16float',
|
|
160
|
-
size: 'half-surface',
|
|
161
|
-
});
|
|
162
|
-
if (!blurV.ok) return blurV;
|
|
163
|
-
const bloom = addTypedBloomPasses(graph, {
|
|
164
|
-
scene: sceneResolved.value,
|
|
165
|
-
composited: composited.value,
|
|
166
|
-
bright: bright.value,
|
|
167
|
-
blurH: blurH.value,
|
|
168
|
-
blurV: blurV.value,
|
|
169
|
-
});
|
|
170
|
-
if (!bloom.ok) return bloom;
|
|
171
|
-
postInput = topology.camera.bloom === 'on' ? composited.value : sceneResolved.value;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
if (hdr) {
|
|
175
|
-
if (fxaa) {
|
|
176
|
-
const ldr = target(graph, 'ldr-color', {
|
|
177
|
-
format: topology.surface.storageFormat,
|
|
178
|
-
size: 'surface',
|
|
179
|
-
...(topology.surface.storageFormat === topology.surface.viewFormat
|
|
180
|
-
? {}
|
|
181
|
-
: { viewFormats: [topology.surface.viewFormat] }),
|
|
182
|
-
});
|
|
183
|
-
if (!ldr.ok) return ldr;
|
|
184
|
-
const tonemap = addTypedTonemapPass(graph, postInput, ldr.value);
|
|
185
|
-
if (!tonemap.ok) return tonemap;
|
|
186
|
-
const aa = addTypedFullscreenPass(graph, {
|
|
187
|
-
name: 'fxaa',
|
|
188
|
-
shader: 'fxaa',
|
|
189
|
-
input: ldr.value,
|
|
190
|
-
output: surface.value.storage,
|
|
191
|
-
});
|
|
192
|
-
if (!aa.ok) return aa;
|
|
193
|
-
} else {
|
|
194
|
-
const tonemap = addTypedTonemapPass(graph, postInput, surface.value.display);
|
|
195
|
-
if (!tonemap.ok) return tonemap;
|
|
196
|
-
}
|
|
197
|
-
} else if (fxaa) {
|
|
198
|
-
const aa = addTypedFullscreenPass(graph, {
|
|
199
|
-
name: 'fxaa',
|
|
200
|
-
shader: 'fxaa',
|
|
201
|
-
input: sceneResolved.value,
|
|
202
|
-
output: surface.value.storage,
|
|
203
|
-
});
|
|
204
|
-
if (!aa.ok) return aa;
|
|
205
|
-
} else if (linearLdr) {
|
|
206
|
-
const output = addTypedTonemapPass(graph, sceneResolved.value, surface.value.storage, true);
|
|
207
|
-
if (!output.ok) return output;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
const postEffects = topology.config?.postEffects ?? [];
|
|
211
|
-
if (topology.lane.storageBuffer && postEffects.length > 0) {
|
|
212
|
-
const effects = addTypedCompositePostEffects(
|
|
213
|
-
graph,
|
|
214
|
-
postEffects,
|
|
215
|
-
surface.value.display,
|
|
216
|
-
surface.value.storage,
|
|
217
|
-
depth.value,
|
|
218
|
-
topology.surface,
|
|
219
|
-
);
|
|
220
|
-
if (!effects.ok) return effects;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
const debug = addTypedDebugOverlayPass(graph, surface.value.display);
|
|
224
|
-
if (!debug.ok) return debug;
|
|
225
|
-
|
|
226
|
-
return ok(undefined);
|
|
276
|
+
return addStandardPost(
|
|
277
|
+
context,
|
|
278
|
+
topology,
|
|
279
|
+
sceneResolved.value,
|
|
280
|
+
depth.value,
|
|
281
|
+
surface.value,
|
|
282
|
+
temporal.value?.temporal,
|
|
283
|
+
);
|
|
227
284
|
}
|
|
228
285
|
|
|
229
286
|
export const buildStandardForwardLane = buildUrp;
|
|
@@ -6,8 +6,8 @@ import type {
|
|
|
6
6
|
RenderGraphError,
|
|
7
7
|
} from '@forgeax/engine-render-graph';
|
|
8
8
|
import { err, ok, type Result } from '@forgeax/engine-types';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { HdrpDeferredCapsInsufficientError, SceneDataUnavailableError } from '../errors/render';
|
|
10
|
+
import type { FramePlan } from '../extract/environment';
|
|
11
11
|
import {
|
|
12
12
|
GPU_BUFFER_USAGE_COPY_DST,
|
|
13
13
|
GPU_BUFFER_USAGE_STORAGE,
|
|
@@ -28,19 +28,28 @@ import {
|
|
|
28
28
|
type RenderPipelineTarget,
|
|
29
29
|
} from '../render-pipeline';
|
|
30
30
|
import {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
addStandardSceneDataPass,
|
|
32
|
+
aggregateTemporalDemand,
|
|
33
|
+
createStandardSceneDataTarget,
|
|
34
|
+
standardTemporalLaneAdmission,
|
|
35
|
+
} from '../temporal/standard-scene-data';
|
|
36
|
+
import {
|
|
37
|
+
addTransmissionBackdropPasses,
|
|
38
|
+
addTransmissionBackdropTemporalPass,
|
|
39
|
+
resolveTransmissionBackdropTopology,
|
|
40
|
+
transmissionDemandForTopology,
|
|
41
|
+
} from '../transmission/backdrop';
|
|
42
|
+
import {
|
|
33
43
|
addTypedFrameObservationPass,
|
|
34
|
-
addTypedFullscreenPass,
|
|
35
44
|
addTypedScenePass,
|
|
36
45
|
addTypedSkyboxPass,
|
|
37
46
|
addTypedSsaoPasses,
|
|
38
|
-
addTypedTonemapPass,
|
|
39
47
|
typedFrameClearColor,
|
|
40
48
|
} from '../typed-render-graph-primitives';
|
|
41
49
|
import { addTypedShadowPasses } from '../typed-shadow-passes';
|
|
42
50
|
|
|
43
51
|
import { buildStandardForwardLane } from './standard-forward-lane';
|
|
52
|
+
import { addStandardPost } from './standard-post';
|
|
44
53
|
import {
|
|
45
54
|
CLUSTER_GRID_STRIDE_U32,
|
|
46
55
|
DEFAULT_CLUSTER_GRID,
|
|
@@ -291,6 +300,35 @@ function buildHdrp(
|
|
|
291
300
|
if (!gbuffer2.ok) return gbuffer2;
|
|
292
301
|
const scene = target(graph, 'hdrp-scene-color', { format: 'rgba16float', size: 'surface' });
|
|
293
302
|
if (!scene.ok) return scene;
|
|
303
|
+
const temporalDemand = aggregateTemporalDemand({
|
|
304
|
+
taa: topology.camera.antialias === 'taa',
|
|
305
|
+
motionBlur: topology.temporal?.motionBlur === true,
|
|
306
|
+
});
|
|
307
|
+
const temporalLane = topology.lane.compute
|
|
308
|
+
? (topology.standardProfile?.lighting ?? 'direct')
|
|
309
|
+
: 'cpu-webgl2';
|
|
310
|
+
const temporalAdmission = standardTemporalLaneAdmission({
|
|
311
|
+
lane: temporalLane,
|
|
312
|
+
demand: temporalDemand,
|
|
313
|
+
capabilities: {
|
|
314
|
+
compute: topology.lane.compute,
|
|
315
|
+
storageBuffer: topology.lane.storageBuffer,
|
|
316
|
+
rgba16floatRenderable: context.capabilities?.rgba16floatRenderable ?? false,
|
|
317
|
+
},
|
|
318
|
+
});
|
|
319
|
+
if (temporalAdmission.status === 'unavailable' && temporalAdmission.reason !== 'no-demand') {
|
|
320
|
+
return err(
|
|
321
|
+
new SceneDataUnavailableError({
|
|
322
|
+
featureIdentity: 'forgeax::standard',
|
|
323
|
+
schema: 'forgeax::scene-data::temporal-v1',
|
|
324
|
+
lane: temporalLane,
|
|
325
|
+
reason: temporalAdmission.reason,
|
|
326
|
+
missingContributorIds: [],
|
|
327
|
+
omittedMissingContributorCount: 0,
|
|
328
|
+
recovery: 'enable-capability',
|
|
329
|
+
}),
|
|
330
|
+
);
|
|
331
|
+
}
|
|
294
332
|
|
|
295
333
|
const gbuffer = addTypedScenePass(graph, {
|
|
296
334
|
name: 'g-buffer',
|
|
@@ -359,6 +397,27 @@ function buildHdrp(
|
|
|
359
397
|
const skybox = addTypedSkyboxPass(graph, scene.value);
|
|
360
398
|
if (!skybox.ok) return skybox;
|
|
361
399
|
|
|
400
|
+
const transmissionDemand = transmissionDemandForTopology(topology);
|
|
401
|
+
const transmissionActive = resolveTransmissionBackdropTopology({
|
|
402
|
+
demand: transmissionDemand,
|
|
403
|
+
sourceSampleCount: scene.value.sampleCount,
|
|
404
|
+
}).active;
|
|
405
|
+
const forwardExtraAccesses: GraphAccess[] = [
|
|
406
|
+
{
|
|
407
|
+
resource: buffers.value.lightData,
|
|
408
|
+
usage: topology.lane.storageBuffer ? 'storage-read' : 'uniform-read',
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
resource: buffers.value.clusterGrid,
|
|
412
|
+
usage: topology.lane.storageBuffer ? 'storage-read' : 'uniform-read',
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
resource: buffers.value.lightIndexList,
|
|
416
|
+
usage: topology.lane.storageBuffer ? 'storage-read' : 'uniform-read',
|
|
417
|
+
},
|
|
418
|
+
{ resource: buffers.value.clusterUniform, usage: 'uniform-read' },
|
|
419
|
+
];
|
|
420
|
+
|
|
362
421
|
const forward = addTypedScenePass(graph, {
|
|
363
422
|
name: 'forward',
|
|
364
423
|
color: scene.value,
|
|
@@ -379,24 +438,85 @@ function buildHdrp(
|
|
|
379
438
|
spotShadow: shadows.value.spot,
|
|
380
439
|
...(ssao === undefined ? {} : { ssao }),
|
|
381
440
|
passKind: 'forward',
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
resource: buffers.value.lightData,
|
|
385
|
-
usage: topology.lane.storageBuffer ? 'storage-read' : 'uniform-read',
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
resource: buffers.value.clusterGrid,
|
|
389
|
-
usage: topology.lane.storageBuffer ? 'storage-read' : 'uniform-read',
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
resource: buffers.value.lightIndexList,
|
|
393
|
-
usage: topology.lane.storageBuffer ? 'storage-read' : 'uniform-read',
|
|
394
|
-
},
|
|
395
|
-
{ resource: buffers.value.clusterUniform, usage: 'uniform-read' },
|
|
396
|
-
],
|
|
441
|
+
...(transmissionActive ? { recordMode: 'opaque' as const } : {}),
|
|
442
|
+
extraAccesses: forwardExtraAccesses,
|
|
397
443
|
});
|
|
398
444
|
if (!forward.ok) return forward;
|
|
399
445
|
|
|
446
|
+
const temporal =
|
|
447
|
+
temporalDemand.targetCount === 1 ? createStandardSceneDataTarget(graph) : ok(undefined);
|
|
448
|
+
if (!temporal.ok) return temporal;
|
|
449
|
+
if (temporal.value !== undefined) {
|
|
450
|
+
const producer = addStandardSceneDataPass(graph, temporal.value.temporal, depth.value);
|
|
451
|
+
if (!producer.ok) return producer;
|
|
452
|
+
}
|
|
453
|
+
const transmission = addTransmissionBackdropPasses({
|
|
454
|
+
graph,
|
|
455
|
+
source: scene.value,
|
|
456
|
+
demand: transmissionDemand,
|
|
457
|
+
copySize: { width: topology.surface.width, height: topology.surface.height },
|
|
458
|
+
encodeRoughMip: context.encodeTransmissionMip,
|
|
459
|
+
includeConsumerPasses: false,
|
|
460
|
+
});
|
|
461
|
+
if (!transmission.ok) return transmission;
|
|
462
|
+
if (transmission.value.topology.active) {
|
|
463
|
+
const transmissionPass = addTypedScenePass(graph, {
|
|
464
|
+
name: 'transmission-forward',
|
|
465
|
+
color: scene.value,
|
|
466
|
+
depth: depth.value,
|
|
467
|
+
selector: { LightMode: ['Forward'] },
|
|
468
|
+
colorLoadOp: 'load',
|
|
469
|
+
depthLoadOp: 'load',
|
|
470
|
+
sampled: [
|
|
471
|
+
gbuffer0.value,
|
|
472
|
+
gbuffer1.value,
|
|
473
|
+
gbuffer2.value,
|
|
474
|
+
shadows.value.directional,
|
|
475
|
+
shadows.value.spot,
|
|
476
|
+
...(shadows.value.point === undefined ? [] : [shadows.value.point]),
|
|
477
|
+
...(ssao === undefined ? [] : [ssao]),
|
|
478
|
+
],
|
|
479
|
+
directionalShadow: shadows.value.directional,
|
|
480
|
+
spotShadow: shadows.value.spot,
|
|
481
|
+
...(ssao === undefined ? {} : { ssao }),
|
|
482
|
+
passKind: 'forward',
|
|
483
|
+
recordMode: 'transmission',
|
|
484
|
+
// Inject the complete backdrop view so the Standard shader can select
|
|
485
|
+
// the producer's optional roughness mip level. mipViews[0] is only the
|
|
486
|
+
// copy destination view and intentionally exposes one level.
|
|
487
|
+
transmissionBackdrop: transmission.value.backdrop?.view,
|
|
488
|
+
extraAccesses: forwardExtraAccesses,
|
|
489
|
+
});
|
|
490
|
+
if (!transmissionPass.ok) return transmissionPass;
|
|
491
|
+
|
|
492
|
+
const transparentPass = addTypedScenePass(graph, {
|
|
493
|
+
name: 'transparent',
|
|
494
|
+
color: scene.value,
|
|
495
|
+
depth: depth.value,
|
|
496
|
+
selector: { LightMode: ['Forward'] },
|
|
497
|
+
colorLoadOp: 'load',
|
|
498
|
+
depthLoadOp: 'load',
|
|
499
|
+
sampled: [
|
|
500
|
+
gbuffer0.value,
|
|
501
|
+
gbuffer1.value,
|
|
502
|
+
gbuffer2.value,
|
|
503
|
+
shadows.value.directional,
|
|
504
|
+
shadows.value.spot,
|
|
505
|
+
...(shadows.value.point === undefined ? [] : [shadows.value.point]),
|
|
506
|
+
...(ssao === undefined ? [] : [ssao]),
|
|
507
|
+
],
|
|
508
|
+
directionalShadow: shadows.value.directional,
|
|
509
|
+
spotShadow: shadows.value.spot,
|
|
510
|
+
...(ssao === undefined ? {} : { ssao }),
|
|
511
|
+
passKind: 'forward',
|
|
512
|
+
recordMode: 'transparent',
|
|
513
|
+
extraAccesses: forwardExtraAccesses,
|
|
514
|
+
});
|
|
515
|
+
if (!transparentPass.ok) return transparentPass;
|
|
516
|
+
const temporal = addTransmissionBackdropTemporalPass(graph, scene.value);
|
|
517
|
+
if (!temporal.ok) return temporal;
|
|
518
|
+
}
|
|
519
|
+
|
|
400
520
|
const features = context.contributeFeatures([
|
|
401
521
|
{
|
|
402
522
|
kind: 'scene-color',
|
|
@@ -417,90 +537,14 @@ function buildHdrp(
|
|
|
417
537
|
const observation = addTypedFrameObservationPass(graph, scene.value, 'forgeax::standard');
|
|
418
538
|
if (!observation.ok) return observation;
|
|
419
539
|
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
if (!composited.ok) return composited;
|
|
429
|
-
const bright = target(graph, 'bloom-bright', {
|
|
430
|
-
format: 'rgba16float',
|
|
431
|
-
size: 'half-surface',
|
|
432
|
-
});
|
|
433
|
-
if (!bright.ok) return bright;
|
|
434
|
-
const blurH = target(graph, 'bloom-blur-h', {
|
|
435
|
-
format: 'rgba16float',
|
|
436
|
-
size: 'half-surface',
|
|
437
|
-
});
|
|
438
|
-
if (!blurH.ok) return blurH;
|
|
439
|
-
const blurV = target(graph, 'bloom-blur-v', {
|
|
440
|
-
format: 'rgba16float',
|
|
441
|
-
size: 'half-surface',
|
|
442
|
-
});
|
|
443
|
-
if (!blurV.ok) return blurV;
|
|
444
|
-
const bloom = addTypedBloomPasses(graph, {
|
|
445
|
-
scene: scene.value,
|
|
446
|
-
composited: composited.value,
|
|
447
|
-
bright: bright.value,
|
|
448
|
-
blurH: blurH.value,
|
|
449
|
-
blurV: blurV.value,
|
|
450
|
-
});
|
|
451
|
-
if (!bloom.ok) return bloom;
|
|
452
|
-
postInput = topology.camera.bloom === 'on' ? composited.value : scene.value;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
if (hdr && fxaa) {
|
|
456
|
-
const ldr = target(graph, 'ldr-color', {
|
|
457
|
-
format: topology.surface.storageFormat,
|
|
458
|
-
size: 'surface',
|
|
459
|
-
...(topology.surface.storageFormat === topology.surface.viewFormat
|
|
460
|
-
? {}
|
|
461
|
-
: { viewFormats: [topology.surface.viewFormat] }),
|
|
462
|
-
});
|
|
463
|
-
if (!ldr.ok) return ldr;
|
|
464
|
-
const tonemap = addTypedTonemapPass(graph, postInput, ldr.value);
|
|
465
|
-
if (!tonemap.ok) return tonemap;
|
|
466
|
-
const aa = addTypedFullscreenPass(graph, {
|
|
467
|
-
name: 'fxaa',
|
|
468
|
-
shader: 'fxaa',
|
|
469
|
-
input: ldr.value,
|
|
470
|
-
output: surface.value.storage,
|
|
471
|
-
});
|
|
472
|
-
if (!aa.ok) return aa;
|
|
473
|
-
} else if (hdr) {
|
|
474
|
-
const tonemap = addTypedTonemapPass(graph, postInput, surface.value.display);
|
|
475
|
-
if (!tonemap.ok) return tonemap;
|
|
476
|
-
} else if (fxaa) {
|
|
477
|
-
const aa = addTypedFullscreenPass(graph, {
|
|
478
|
-
name: 'fxaa',
|
|
479
|
-
shader: 'fxaa',
|
|
480
|
-
input: scene.value,
|
|
481
|
-
output: surface.value.storage,
|
|
482
|
-
});
|
|
483
|
-
if (!aa.ok) return aa;
|
|
484
|
-
} else {
|
|
485
|
-
const output = addTypedTonemapPass(graph, scene.value, surface.value.storage, true);
|
|
486
|
-
if (!output.ok) return output;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
const postEffects = topology.config?.postEffects ?? [];
|
|
490
|
-
if (topology.lane.storageBuffer && postEffects.length > 0) {
|
|
491
|
-
const effects = addTypedCompositePostEffects(
|
|
492
|
-
graph,
|
|
493
|
-
postEffects,
|
|
494
|
-
surface.value.display,
|
|
495
|
-
surface.value.storage,
|
|
496
|
-
depth.value,
|
|
497
|
-
topology.surface,
|
|
498
|
-
);
|
|
499
|
-
if (!effects.ok) return effects;
|
|
500
|
-
}
|
|
501
|
-
const debug = addTypedDebugOverlayPass(graph, surface.value.display);
|
|
502
|
-
if (!debug.ok) return debug;
|
|
503
|
-
return ok(undefined);
|
|
540
|
+
return addStandardPost(
|
|
541
|
+
context,
|
|
542
|
+
topology,
|
|
543
|
+
scene.value,
|
|
544
|
+
depth.value,
|
|
545
|
+
surface.value,
|
|
546
|
+
temporal.value?.temporal,
|
|
547
|
+
);
|
|
504
548
|
}
|
|
505
549
|
const buildStandardClusteredLane = buildHdrp;
|
|
506
550
|
|
|
@@ -508,6 +552,9 @@ export interface StandardPipeline extends RenderPipeline {
|
|
|
508
552
|
readonly identity: typeof STANDARD_PIPELINE_ID;
|
|
509
553
|
}
|
|
510
554
|
|
|
555
|
+
/** Standard graph inputs are derived once from the immutable frame plan. */
|
|
556
|
+
export type StandardFramePlan = FramePlan;
|
|
557
|
+
|
|
511
558
|
function profileFor(topology: RenderPipelineTopology): StandardProfile {
|
|
512
559
|
return topology.standardProfile ?? DEFAULT_STANDARD_PROFILE;
|
|
513
560
|
}
|
|
@@ -543,6 +590,10 @@ function buildStandard(
|
|
|
543
590
|
storageBuffer: topology.lane.storageBuffer,
|
|
544
591
|
});
|
|
545
592
|
const effective = standardTopology(topology, profile);
|
|
593
|
+
// A missing Camera is an intentional clear-only frame. Keep it on the
|
|
594
|
+
// direct raster lane so clustered/HDRP resources cannot introduce work or
|
|
595
|
+
// a post-process lookup into this minimal submit contract.
|
|
596
|
+
if (effective.clearOnly === true) return buildStandardForwardLane(context, effective);
|
|
546
597
|
if (lane === 'clustered') return buildStandardClusteredLane(context, effective);
|
|
547
598
|
return buildStandardForwardLane(context, effective);
|
|
548
599
|
}
|