@forgeax/engine-render 0.1.28 → 0.1.30
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 +856 -126
- package/dist/assembly/atmosphere-shader-prewarm.d.ts +6 -0
- package/dist/assembly/atmosphere-shader-prewarm.d.ts.map +1 -0
- package/dist/assembly/device-feature-admission.d.ts +4 -3
- package/dist/assembly/device-feature-admission.d.ts.map +1 -1
- package/dist/assembly/dynamic-geometry-host.d.ts +27 -0
- package/dist/assembly/dynamic-geometry-host.d.ts.map +1 -1
- package/dist/assembly/dynamic-geometry-runtime.d.ts +20 -0
- package/dist/assembly/dynamic-geometry-runtime.d.ts.map +1 -0
- package/dist/assembly/factory.d.ts +3 -1
- package/dist/assembly/factory.d.ts.map +1 -1
- package/dist/assembly/gpu-driven-owner.d.ts +10 -0
- package/dist/assembly/gpu-driven-owner.d.ts.map +1 -0
- package/dist/assembly/host-contract.d.ts +14 -0
- package/dist/assembly/host-contract.d.ts.map +1 -1
- package/dist/assembly/material/assembly.d.ts +31 -1
- package/dist/assembly/material/assembly.d.ts.map +1 -1
- package/dist/assembly/material/pipeline-helpers.d.ts +24 -0
- package/dist/assembly/material/pipeline-helpers.d.ts.map +1 -0
- package/dist/assembly/material-shader-policy.d.ts +3 -1
- package/dist/assembly/material-shader-policy.d.ts.map +1 -1
- package/dist/assembly/recovery/device-loss-fanout.d.ts.map +1 -1
- package/dist/assembly/recovery/failure-location.d.ts +12 -0
- package/dist/assembly/recovery/failure-location.d.ts.map +1 -0
- package/dist/assembly/recovery/recovery-attempt.d.ts +1 -6
- package/dist/assembly/recovery/recovery-attempt.d.ts.map +1 -1
- package/dist/assembly/recovery/renderer-recover.d.ts +7 -4
- package/dist/assembly/recovery/renderer-recover.d.ts.map +1 -1
- package/dist/assembly/renderer-facade.d.ts.map +1 -1
- package/dist/assembly/renderer-feature-inspection.d.ts +5 -0
- package/dist/assembly/renderer-feature-inspection.d.ts.map +1 -0
- package/dist/assembly/renderer-frame-transaction.d.ts +19 -0
- package/dist/assembly/renderer-frame-transaction.d.ts.map +1 -1
- package/dist/assembly/renderer-helpers.d.ts +3 -0
- package/dist/assembly/renderer-helpers.d.ts.map +1 -1
- package/dist/assembly/renderer-inspection.d.ts +4 -0
- package/dist/assembly/renderer-inspection.d.ts.map +1 -1
- package/dist/assembly/shader-prewarm-policy.d.ts +7 -1
- package/dist/assembly/shader-prewarm-policy.d.ts.map +1 -1
- package/dist/assembly/skin-palette-owner.d.ts +8 -0
- package/dist/assembly/skin-palette-owner.d.ts.map +1 -0
- package/dist/assembly/ssr-shader-prewarm.d.ts +6 -0
- package/dist/assembly/ssr-shader-prewarm.d.ts.map +1 -0
- package/dist/assembly/webgpu-device-loss.d.ts +15 -0
- package/dist/assembly/webgpu-device-loss.d.ts.map +1 -0
- package/dist/assembly/webgpu-pbr-ready.d.ts +38 -0
- package/dist/assembly/webgpu-pbr-ready.d.ts.map +1 -0
- package/dist/assembly/webgpu-ready-mipmap.d.ts +11 -0
- package/dist/assembly/webgpu-ready-mipmap.d.ts.map +1 -0
- package/dist/assembly/webgpu-ready.d.ts +7 -3
- package/dist/assembly/webgpu-ready.d.ts.map +1 -1
- package/dist/assembly/webgpu-renderer-bootstrap.d.ts +10 -0
- package/dist/assembly/webgpu-renderer-bootstrap.d.ts.map +1 -0
- package/dist/assembly/webgpu-renderer-contract.d.ts +62 -0
- package/dist/assembly/webgpu-renderer-contract.d.ts.map +1 -0
- package/dist/assembly/webgpu-renderer-guards.d.ts +9 -0
- package/dist/assembly/webgpu-renderer-guards.d.ts.map +1 -0
- package/dist/assembly/webgpu-renderer-observation.d.ts +6 -0
- package/dist/assembly/webgpu-renderer-observation.d.ts.map +1 -0
- package/dist/assembly/webgpu-renderer-recovery-failure.d.ts +12 -0
- package/dist/assembly/webgpu-renderer-recovery-failure.d.ts.map +1 -0
- package/dist/assembly/webgpu-renderer.d.ts +7 -141
- package/dist/assembly/webgpu-renderer.d.ts.map +1 -1
- package/dist/assembly/webgpu-vertex-layouts.d.ts +28 -84
- package/dist/assembly/webgpu-vertex-layouts.d.ts.map +1 -1
- package/dist/authoring.mjs +2 -2
- package/dist/capture/scene-projection.d.ts +41 -0
- package/dist/capture/scene-projection.d.ts.map +1 -0
- package/dist/{chunk-J52NMQKR.mjs → chunk-7MQ3XBSP.mjs} +1098 -844
- package/dist/chunk-7MQ3XBSP.mjs.map +1 -0
- package/dist/{chunk-GF523LHF.mjs → chunk-BLXGONR2.mjs} +30 -12
- package/dist/chunk-BLXGONR2.mjs.map +1 -0
- package/dist/{chunk-VSL23LZE.mjs → chunk-C3DDSXYK.mjs} +1188 -463
- package/dist/chunk-C3DDSXYK.mjs.map +1 -0
- package/dist/{chunk-IQMKJLNU.mjs → chunk-FUUO4UND.mjs} +443 -30
- package/dist/chunk-FUUO4UND.mjs.map +1 -0
- package/dist/{chunk-J6KACNOH.mjs → chunk-JRBDO2KB.mjs} +617 -7
- package/dist/chunk-JRBDO2KB.mjs.map +1 -0
- package/dist/{chunk-GE3SDD72.mjs → chunk-MDQJPY3T.mjs} +20 -40
- package/dist/chunk-MDQJPY3T.mjs.map +1 -0
- package/dist/{chunk-MYJ5RPJO.mjs → chunk-NO4WZCAH.mjs} +3 -3
- package/dist/chunk-NO4WZCAH.mjs.map +1 -0
- package/dist/{chunk-RBDBZ5R7.mjs → chunk-PA5DRJNI.mjs} +2 -2
- package/dist/chunk-PA5DRJNI.mjs.map +1 -0
- package/dist/{chunk-MBU4ZVE7.mjs → chunk-PSEQ6QPH.mjs} +4655 -892
- package/dist/chunk-PSEQ6QPH.mjs.map +1 -0
- package/dist/{chunk-JAASCMXA.mjs → chunk-S5UE2T5P.mjs} +289 -41
- package/dist/chunk-S5UE2T5P.mjs.map +1 -0
- package/dist/components/camera.d.ts +62 -2
- package/dist/components/camera.d.ts.map +1 -1
- package/dist/components/directional-light.d.ts +2 -2
- package/dist/components/dynamic-resolution.d.ts +15 -0
- package/dist/components/dynamic-resolution.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 +6 -20
- package/dist/components/instances.d.ts.map +1 -1
- package/dist/components/light-helpers.d.ts.map +1 -1
- package/dist/components/reflection-probe.d.ts +1 -0
- package/dist/components/reflection-probe.d.ts.map +1 -1
- package/dist/components/scene-instance.d.ts +2 -1
- package/dist/components/scene-instance.d.ts.map +1 -1
- package/dist/components/screen-space-reflection.d.ts +14 -0
- package/dist/components/screen-space-reflection.d.ts.map +1 -0
- package/dist/components/skylight.d.ts +4 -1
- package/dist/components/skylight.d.ts.map +1 -1
- package/dist/construct-renderer.mjs +14809 -7570
- package/dist/construct-renderer.mjs.map +1 -1
- package/dist/device/device-scope.d.ts +2 -0
- package/dist/device/device-scope.d.ts.map +1 -1
- package/dist/device/gpu-residency.d.ts +3 -14
- package/dist/device/gpu-residency.d.ts.map +1 -1
- package/dist/dynamic-geometry.d.ts.map +1 -1
- package/dist/environment/background.d.ts +7 -0
- package/dist/environment/background.d.ts.map +1 -0
- package/dist/environment/ibl.d.ts +11 -0
- package/dist/environment/ibl.d.ts.map +1 -0
- package/dist/environment/storage.d.ts +14 -0
- package/dist/environment/storage.d.ts.map +1 -0
- package/dist/errors/gpu-driven.d.ts +6 -3
- package/dist/errors/gpu-driven.d.ts.map +1 -1
- package/dist/errors/render.d.ts +41 -4
- package/dist/errors/render.d.ts.map +1 -1
- package/dist/extract/camera.d.ts.map +1 -1
- package/dist/extract/contracts.d.ts +7 -0
- package/dist/extract/contracts.d.ts.map +1 -1
- package/dist/extract/gpu-driven.d.ts +50 -3
- package/dist/extract/gpu-driven.d.ts.map +1 -1
- package/dist/features/host.d.ts +23 -1
- package/dist/features/host.d.ts.map +1 -1
- package/dist/features/noise-texture.d.ts +17 -0
- package/dist/features/noise-texture.d.ts.map +1 -0
- package/dist/features/plan.d.ts +83 -2
- package/dist/features/plan.d.ts.map +1 -1
- package/dist/features/prepared-gpu-work.d.ts +37 -4
- package/dist/features/prepared-gpu-work.d.ts.map +1 -1
- package/dist/features/prepared-graphics-store.d.ts.map +1 -1
- package/dist/features/prepared-graphics.d.ts +5 -0
- package/dist/features/prepared-graphics.d.ts.map +1 -1
- package/dist/features/render-graph-compute.d.ts +5 -3
- package/dist/features/render-graph-compute.d.ts.map +1 -1
- package/dist/features/render-graph-contribution.d.ts +11 -3
- package/dist/features/render-graph-contribution.d.ts.map +1 -1
- package/dist/features/render-graph-raster.d.ts +19 -3
- package/dist/features/render-graph-raster.d.ts.map +1 -1
- package/dist/features/types.d.ts +11 -0
- package/dist/features/types.d.ts.map +1 -1
- package/dist/fullscreen-post-process-pass.d.ts +2 -0
- package/dist/fullscreen-post-process-pass.d.ts.map +1 -1
- package/dist/gpu-driven/batch-topology.d.ts +34 -1
- package/dist/gpu-driven/batch-topology.d.ts.map +1 -1
- package/dist/gpu-driven/material-artifacts.d.ts +24 -0
- package/dist/gpu-driven/material-artifacts.d.ts.map +1 -0
- package/dist/gpu-driven/material-bindings.d.ts +7 -0
- package/dist/gpu-driven/material-bindings.d.ts.map +1 -0
- package/dist/gpu-driven/pbr-program.d.ts +10 -0
- package/dist/gpu-driven/pbr-program.d.ts.map +1 -0
- package/dist/gpu-driven/prepared-draw.d.ts +2 -0
- package/dist/gpu-driven/prepared-draw.d.ts.map +1 -1
- package/dist/gpu-driven/production-raster.d.ts +169 -27
- package/dist/gpu-driven/production-raster.d.ts.map +1 -1
- package/dist/gpu-driven/shadow-views.d.ts +126 -0
- package/dist/gpu-driven/shadow-views.d.ts.map +1 -0
- package/dist/gpu-driven/view-gpu.d.ts +18 -2
- package/dist/gpu-driven/view-gpu.d.ts.map +1 -1
- package/dist/gpu-resource.d.ts +5 -2
- package/dist/gpu-resource.d.ts.map +1 -1
- package/dist/gpu-scene-schema.d.ts +2 -8
- package/dist/gpu-scene-schema.d.ts.map +1 -1
- package/dist/gpu-scene.d.ts +14 -0
- package/dist/gpu-scene.d.ts.map +1 -1
- package/dist/gpu-texture-usage.d.ts +1 -0
- package/dist/gpu-texture-usage.d.ts.map +1 -1
- package/dist/hdrp-buffers.d.ts +9 -0
- package/dist/hdrp-buffers.d.ts.map +1 -1
- package/dist/ibl/IblPipelineCache.d.ts +2 -0
- package/dist/ibl/IblPipelineCache.d.ts.map +1 -1
- package/dist/ibl/frame-resources.d.ts +8 -0
- package/dist/ibl/frame-resources.d.ts.map +1 -0
- package/dist/ibl/skylight-bind-group.d.ts +3 -1
- package/dist/ibl/skylight-bind-group.d.ts.map +1 -1
- package/dist/index.d.ts +87 -75
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +10 -8
- package/dist/index.mjs.map +1 -1
- package/dist/inspection-types.d.ts +180 -1
- package/dist/inspection-types.d.ts.map +1 -1
- package/dist/instances-derived-bounds.d.ts +11 -0
- package/dist/instances-derived-bounds.d.ts.map +1 -1
- package/dist/instances.d.ts +89 -44
- package/dist/instances.d.ts.map +1 -1
- package/dist/internal.d.ts +3 -0
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.mjs +117 -9
- package/dist/internal.mjs.map +1 -1
- package/dist/lifecycle.d.ts +2 -1
- package/dist/lifecycle.d.ts.map +1 -1
- package/dist/material-row.d.ts +15 -0
- package/dist/material-row.d.ts.map +1 -0
- package/dist/materials.d.ts +15 -0
- package/dist/materials.d.ts.map +1 -1
- package/dist/pbr-pipeline.d.ts +23 -5
- package/dist/pbr-pipeline.d.ts.map +1 -1
- package/dist/pipeline/render-extent.d.ts +51 -0
- package/dist/pipeline/render-extent.d.ts.map +1 -0
- package/dist/pipeline/standard-build-context.d.ts +7 -0
- package/dist/pipeline/standard-build-context.d.ts.map +1 -0
- package/dist/pipeline/standard-forward-lane.d.ts +3 -2
- package/dist/pipeline/standard-forward-lane.d.ts.map +1 -1
- package/dist/pipeline/standard-output/auto-exposure/capability.d.ts +12 -0
- package/dist/pipeline/standard-output/auto-exposure/capability.d.ts.map +1 -0
- package/dist/pipeline/standard-output/auto-exposure/gpu.d.ts +70 -0
- package/dist/pipeline/standard-output/auto-exposure/gpu.d.ts.map +1 -0
- package/dist/pipeline/standard-output/auto-exposure/graph.d.ts +75 -0
- package/dist/pipeline/standard-output/auto-exposure/graph.d.ts.map +1 -0
- package/dist/pipeline/standard-output/auto-exposure/inspection.d.ts +111 -0
- package/dist/pipeline/standard-output/auto-exposure/inspection.d.ts.map +1 -0
- package/dist/pipeline/standard-output/auto-exposure/oracle.d.ts +16 -0
- package/dist/pipeline/standard-output/auto-exposure/oracle.d.ts.map +1 -0
- package/dist/pipeline/standard-output/auto-exposure/preset.d.ts +14 -0
- package/dist/pipeline/standard-output/auto-exposure/preset.d.ts.map +1 -0
- package/dist/pipeline/standard-output/auto-exposure/state.d.ts +46 -0
- package/dist/pipeline/standard-output/auto-exposure/state.d.ts.map +1 -0
- package/dist/pipeline/standard-output/color-transform.d.ts +27 -0
- package/dist/pipeline/standard-output/color-transform.d.ts.map +1 -0
- package/dist/pipeline/standard-output/graph.d.ts +15 -0
- package/dist/pipeline/standard-output/graph.d.ts.map +1 -0
- package/dist/pipeline/standard-output/lut-admission.d.ts +29 -0
- package/dist/pipeline/standard-output/lut-admission.d.ts.map +1 -0
- package/dist/pipeline/standard-output/lut-gpu.d.ts +48 -0
- package/dist/pipeline/standard-output/lut-gpu.d.ts.map +1 -0
- package/dist/pipeline/standard-output/lut-state.d.ts +68 -0
- package/dist/pipeline/standard-output/lut-state.d.ts.map +1 -0
- package/dist/pipeline/standard-output/resources.d.ts +10 -0
- package/dist/pipeline/standard-output/resources.d.ts.map +1 -0
- package/dist/pipeline/standard-output/types.d.ts +39 -0
- package/dist/pipeline/standard-output/types.d.ts.map +1 -0
- package/dist/pipeline/standard-pipeline.d.ts.map +1 -1
- package/dist/pipeline/standard-post.d.ts +2 -2
- package/dist/pipeline/standard-post.d.ts.map +1 -1
- package/dist/pipeline/standard-profile.d.ts +2 -1
- package/dist/pipeline/standard-profile.d.ts.map +1 -1
- package/dist/pipeline-builder.d.ts +5 -2
- package/dist/pipeline-builder.d.ts.map +1 -1
- package/dist/pipeline-spec-types.d.ts +4 -0
- package/dist/pipeline-spec-types.d.ts.map +1 -1
- package/dist/pipeline-spec.d.ts +1 -9
- package/dist/pipeline-spec.d.ts.map +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/points-lines/standard-owner.d.ts +1 -1
- package/dist/points-lines/standard-owner.d.ts.map +1 -1
- package/dist/post-process-errors.d.ts +9 -2
- package/dist/post-process-errors.d.ts.map +1 -1
- package/dist/prepare/extended-lighting/resources.d.ts +3 -3
- package/dist/prepare/prepared-graphics-resolver.d.ts +6 -1
- package/dist/prepare/prepared-graphics-resolver.d.ts.map +1 -1
- package/dist/record/dynamic-geometry-consumption.d.ts +15 -0
- package/dist/record/dynamic-geometry-consumption.d.ts.map +1 -0
- package/dist/record/frame-lighting.d.ts +3 -3
- package/dist/record/frame-lighting.d.ts.map +1 -1
- package/dist/record/frame-snapshot.d.ts +109 -13
- 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 +41 -5
- package/dist/record/frame.d.ts.map +1 -1
- package/dist/record/main-pass-geometry.d.ts +13 -9
- package/dist/record/main-pass-geometry.d.ts.map +1 -1
- package/dist/record/main-pass-material.d.ts +43 -3
- package/dist/record/main-pass-material.d.ts.map +1 -1
- package/dist/record/main-pass-sprite-draws.d.ts +2 -10
- package/dist/record/main-pass-sprite-draws.d.ts.map +1 -1
- package/dist/record/main-pass.d.ts +14 -2
- package/dist/record/main-pass.d.ts.map +1 -1
- package/dist/record/mesh-ssbo.d.ts +15 -6
- package/dist/record/mesh-ssbo.d.ts.map +1 -1
- package/dist/record/prepared-material-bindings.d.ts +19 -0
- package/dist/record/prepared-material-bindings.d.ts.map +1 -0
- package/dist/record/recovery-pipeline.d.ts +1 -0
- package/dist/record/recovery-pipeline.d.ts.map +1 -1
- package/dist/record/render-context.d.ts +101 -22
- package/dist/record/render-context.d.ts.map +1 -1
- package/dist/record/shadow-pass.d.ts +62 -7
- 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/typed-frame-graph.d.ts +39 -8
- package/dist/record/typed-frame-graph.d.ts.map +1 -1
- package/dist/record/view-ubo.d.ts +1 -0
- package/dist/record/view-ubo.d.ts.map +1 -1
- package/dist/recovery/render-system-candidate.d.ts +10 -2
- package/dist/recovery/render-system-candidate.d.ts.map +1 -1
- package/dist/recovery/render-system-roots.d.ts +11 -0
- package/dist/recovery/render-system-roots.d.ts.map +1 -0
- package/dist/recovery/types.d.ts +76 -0
- package/dist/recovery/types.d.ts.map +1 -0
- package/dist/reflection/background.d.ts +14 -0
- package/dist/reflection/background.d.ts.map +1 -0
- package/dist/reflection/filter.d.ts.map +1 -1
- package/dist/reflection/projection.d.ts +1 -0
- package/dist/reflection/projection.d.ts.map +1 -1
- package/dist/reflection/record-owner.d.ts +4 -4
- package/dist/reflection/record-owner.d.ts.map +1 -1
- package/dist/render-contract.d.ts +211 -53
- package/dist/render-contract.d.ts.map +1 -1
- package/dist/render-graph-primitives.d.ts +1 -0
- package/dist/render-graph-primitives.d.ts.map +1 -1
- package/dist/render-pipeline.d.ts +81 -6
- package/dist/render-pipeline.d.ts.map +1 -1
- package/dist/render-system-extract-tail.d.ts +15 -6
- package/dist/render-system-extract-tail.d.ts.map +1 -1
- package/dist/render-system-extract.d.ts +128 -41
- package/dist/render-system-extract.d.ts.map +1 -1
- package/dist/render-system-projections.d.ts +22 -0
- package/dist/render-system-projections.d.ts.map +1 -0
- package/dist/render-system.d.ts +27 -77
- package/dist/render-system.d.ts.map +1 -1
- package/dist/scene/render-scene-types.d.ts +14 -7
- package/dist/scene/render-scene-types.d.ts.map +1 -1
- package/dist/scene/render-scene.d.ts +31 -11
- package/dist/scene/render-scene.d.ts.map +1 -1
- package/dist/scene/shadow-visibility.d.ts +5 -0
- package/dist/scene/shadow-visibility.d.ts.map +1 -0
- package/dist/ssao-config.d.ts +8 -6
- package/dist/ssao-config.d.ts.map +1 -1
- package/dist/ssr/admission.d.ts +70 -1
- package/dist/ssr/admission.d.ts.map +1 -1
- package/dist/ssr/compose.d.ts +13 -0
- package/dist/ssr/compose.d.ts.map +1 -0
- package/dist/ssr/errors.d.ts +35 -0
- package/dist/ssr/errors.d.ts.map +1 -1
- package/dist/ssr/graph.d.ts +60 -0
- package/dist/ssr/graph.d.ts.map +1 -0
- package/dist/ssr/history.d.ts +97 -0
- package/dist/ssr/history.d.ts.map +1 -0
- package/dist/ssr/hiz.d.ts +37 -0
- package/dist/ssr/hiz.d.ts.map +1 -0
- package/dist/ssr/inspection.d.ts +42 -0
- package/dist/ssr/inspection.d.ts.map +1 -0
- package/dist/ssr/resources.d.ts +58 -0
- package/dist/ssr/resources.d.ts.map +1 -0
- package/dist/ssr/temporal.d.ts +38 -0
- package/dist/ssr/temporal.d.ts.map +1 -0
- package/dist/systems/skin-palette-allocator.d.ts +32 -10
- package/dist/systems/skin-palette-allocator.d.ts.map +1 -1
- package/dist/systems/skin-palette-types.d.ts +15 -0
- package/dist/systems/skin-palette-types.d.ts.map +1 -1
- package/dist/systems/transparent-dispatch.d.ts +9 -0
- package/dist/systems/transparent-dispatch.d.ts.map +1 -0
- package/dist/targets/material-source.d.ts +7 -0
- package/dist/targets/material-source.d.ts.map +1 -1
- package/dist/temporal/frame-coordinator.d.ts +7 -0
- package/dist/temporal/frame-coordinator.d.ts.map +1 -1
- package/dist/temporal/gpu.d.ts +8 -0
- package/dist/temporal/gpu.d.ts.map +1 -1
- package/dist/temporal/history.d.ts.map +1 -1
- package/dist/temporal/index.mjs +6 -6
- package/dist/temporal/inspection.d.ts.map +1 -1
- package/dist/temporal/standard-scene-data.d.ts +4 -2
- package/dist/temporal/standard-scene-data.d.ts.map +1 -1
- package/dist/temporal/target-coverage-attachment.d.ts +15 -0
- package/dist/temporal/target-coverage-attachment.d.ts.map +1 -0
- package/dist/temporal/temporal-view.d.ts +6 -0
- package/dist/temporal/temporal-view.d.ts.map +1 -1
- package/dist/temporal/view.d.ts +6 -0
- package/dist/temporal/view.d.ts.map +1 -1
- package/dist/typed-render-graph-primitives.d.ts +41 -1
- package/dist/typed-render-graph-primitives.d.ts.map +1 -1
- package/dist/typed-shadow-passes.d.ts +3 -1
- package/dist/typed-shadow-passes.d.ts.map +1 -1
- package/dist/volume/component.d.ts +1 -0
- package/dist/volume/component.d.ts.map +1 -1
- package/dist/volume/temporal.d.ts +6 -0
- package/dist/volume/temporal.d.ts.map +1 -1
- package/package.json +21 -20
- package/src/__tests__/auto-exposure-gpu-evidence.ts +291 -0
- package/src/__tests__/auto-exposure-inspection.unit.test.ts +80 -0
- package/src/__tests__/auto-exposure-transaction.integration.test.ts +99 -0
- package/src/__tests__/auto-exposure.browser.test.ts +33 -0
- package/src/__tests__/auto-exposure.dawn.test.ts +33 -0
- package/src/__tests__/capture-scene-projection.unit.test.ts +24 -0
- package/src/__tests__/detached-inspection.integration.test.ts +5 -0
- package/src/__tests__/device-feature-admission.unit.test.ts +15 -24
- package/src/__tests__/device-loss-fanout.unit.test.ts +43 -0
- package/src/__tests__/device-scope-lifecycle.unit.test.ts +18 -0
- package/src/__tests__/device-scope-stale-matrix.unit.test.ts +18 -0
- package/src/__tests__/docs-gate-green.unit.test.ts +3 -3
- package/src/__tests__/dynamic-geometry-batch.unit.test.ts +157 -0
- package/src/__tests__/dynamic-geometry.unit.test.ts +36 -0
- package/src/__tests__/dynamic-resolution-plugin.integration.test.ts +81 -0
- package/src/__tests__/factory-contract.integration.test.ts +231 -9
- package/src/__tests__/fallback-row-stride-surface.unit.test.ts +19 -0
- package/src/__tests__/feature-depth-input.dawn.test.ts +121 -0
- package/src/__tests__/feature-noise.unit.test.ts +38 -0
- package/src/__tests__/fixtures/taa-resolve-pinned-baseline.wgsl +301 -0
- package/src/__tests__/frame-camera-selection.unit.test.ts +131 -0
- package/src/__tests__/frame-observation.contract.test.ts +21 -0
- package/src/__tests__/frame-plan-contract.unit.test.ts +24 -0
- package/src/__tests__/frame-targets.unit.test.ts +24 -0
- package/src/__tests__/fullscreen-feature-plan.unit.test.ts +3 -0
- package/src/__tests__/gpu-driven-baseline.characterization.test.ts +79 -0
- package/src/__tests__/gpu-driven-batch-topology-pbr.unit.test.ts +307 -7
- package/src/__tests__/gpu-driven-indirect-raster-evidence.ts +122 -142
- package/src/__tests__/gpu-driven-indirect-raster.browser.test.ts +10 -1
- package/src/__tests__/gpu-driven-lod-cache.unit.test.ts +261 -0
- package/src/__tests__/gpu-driven-mesh-world-identity.unit.test.ts +346 -0
- package/src/__tests__/gpu-driven-pbr.dawn.test.ts +1422 -0
- package/src/__tests__/gpu-driven-pbr.integration.test.ts +21 -0
- package/src/__tests__/gpu-driven-production-fixture.ts +96 -0
- package/src/__tests__/gpu-driven-production.integration.test.ts +1076 -106
- package/src/__tests__/gpu-driven-scaling.unit.test.ts +1 -3
- package/src/__tests__/gpu-driven-shadow-views.browser.test.ts +63 -0
- package/src/__tests__/gpu-driven-shadow-views.dawn.test.ts +294 -0
- package/src/__tests__/gpu-driven-shadow-views.integration.test.ts +97 -0
- package/src/__tests__/gpu-driven-shadow-views.unit.test.ts +168 -0
- package/src/__tests__/gpu-driven-skin-contract.test-d.ts +11 -0
- package/src/__tests__/gpu-driven-view-gpu-evidence.ts +72 -20
- package/src/__tests__/gpu-driven-view-graph.integration.test.ts +30 -9
- package/src/__tests__/gpu-driven-view.unit.test.ts +160 -52
- package/src/__tests__/gpu-pass-timing-browser-runner.ts +15 -0
- package/src/__tests__/gpu-pass-timing.browser.test.ts +20 -2
- package/src/__tests__/gpu-resource-scope.unit.test.ts +71 -0
- package/src/__tests__/gpu-resource-store-stride.unit.test.ts +42 -0
- package/src/__tests__/gpu-scene-render-graph-gpu.ts +19 -5
- package/src/__tests__/gpu-scene.dawn.test.ts +40 -13
- package/src/__tests__/gpu-scene.unit.test.ts +613 -33
- package/src/__tests__/instances-culling.integration.test.ts +36 -10
- package/src/__tests__/instances-derived-bounds.unit.test.ts +54 -0
- package/src/__tests__/instances-store.unit.test.ts +242 -39
- package/src/__tests__/ktx2-basis-gpu-consumer.dawn.test.ts +6 -0
- package/src/__tests__/lighting-scene-roundtrip.integration.test.ts +13 -16
- package/src/__tests__/lut-lkg-transaction.integration.test.ts +122 -0
- package/src/__tests__/material-contract-inventory.unit.test.ts +5 -6
- package/src/__tests__/material-dispatch-shader-id.unit.test.ts +51 -0
- package/src/__tests__/material-lane-selection.unit.test.ts +60 -0
- package/src/__tests__/material-numeric-upload.unit.test.ts +53 -0
- package/src/__tests__/material-texture-handles.unit.test.ts +18 -0
- package/src/__tests__/material-texture-source.unit.test.ts +87 -0
- package/src/__tests__/materials-authoring-validation.unit.test.ts +41 -0
- package/src/__tests__/materials-standard-contract.unit.test.ts +57 -3
- package/src/__tests__/mesh-buffer-usage-surface.unit.test.ts +4 -0
- package/src/__tests__/mesh-submission-lifetime.unit.test.ts +8 -0
- package/src/__tests__/morph-neutral-admission.unit.test.ts +19 -0
- package/src/__tests__/normal-fallback.dawn.test.ts +122 -0
- package/src/__tests__/particle-material-input-layout.unit.test.ts +104 -0
- package/src/__tests__/physical-clearcoat.integration.test.ts +42 -3
- package/src/__tests__/pipeline-texture-specialization.unit.test.ts +138 -0
- package/src/__tests__/point-shadow-inspection.unit.test.ts +2 -0
- package/src/__tests__/post-process-error-policy-owner.unit.test.ts +6 -5
- package/src/__tests__/prepared-gpu-driven-pbr-contract.test-d.ts +31 -0
- package/src/__tests__/prepared-gpu-driven-pbr-contract.unit.test.ts +39 -0
- package/src/__tests__/prepared-gpu-driven-pbr.integration.test.ts +251 -9
- package/src/__tests__/prepared-graphics-capability.unit.test.ts +21 -0
- package/src/__tests__/prepared-graphics-pipeline-warmup.unit.test.ts +6 -2
- package/src/__tests__/profiler-phase-catalog.test.ts +5 -0
- package/src/__tests__/public-surface.test-d.ts +3 -0
- package/src/__tests__/recovery-candidate-prepare.contract.test.ts +30 -12
- package/src/__tests__/reflection-fallback-async-publication.unit.test.ts +171 -0
- package/src/__tests__/reflection-probe-authoring.unit.test.ts +12 -10
- package/src/__tests__/reflection-probe-box.dawn.test.ts +71 -0
- package/src/__tests__/reflection-probe-filter.unit.test.ts +9 -0
- package/src/__tests__/reflection-probe-orientation.dawn.test.ts +294 -0
- package/src/__tests__/reflection-probe-record-owner.characterization.unit.test.ts +5 -14
- package/src/__tests__/reflection-probe-updates.unit.test.ts +129 -0
- package/src/__tests__/render-error-code-owner.test-d.ts +7 -0
- package/src/__tests__/render-error-detail-ssot.test-d.ts +27 -1
- package/src/__tests__/render-error-exhaustive.test-d.ts +15 -0
- package/src/__tests__/render-extent.unit.test.ts +63 -0
- package/src/__tests__/render-feature-gpu-work.integration.test.ts +285 -2
- package/src/__tests__/render-feature-plan.unit.test.ts +245 -0
- package/src/__tests__/render-feature-shadow-order.unit.test.ts +228 -0
- package/src/__tests__/render-feature-zero-work.unit.test.ts +35 -1
- package/src/__tests__/render-graph-fallback.integration.test.ts +2 -2
- package/src/__tests__/render-owner-cohesion.unit.test.ts +55 -0
- package/src/__tests__/render-scene-mixed-updates.integration.test.ts +426 -0
- package/src/__tests__/render-scene-projection.unit.test.ts +915 -23
- package/src/__tests__/render-scene-resource-updates.integration.test.ts +214 -0
- package/src/__tests__/render-scene-skin-lifecycle.integration.test.ts +173 -0
- package/src/__tests__/render-scene-temporal-retry.unit.test.ts +133 -0
- package/src/__tests__/render-target-material-source.test-d.ts +27 -3
- package/src/__tests__/renderer-factory-material-contract.unit.test.ts +233 -9
- package/src/__tests__/renderer-frame-transaction.integration.test.ts +923 -5
- package/src/__tests__/shader-manifest-fixture.ts +45 -0
- package/src/__tests__/skin-motion-regression.unit.test.ts +0 -33
- package/src/__tests__/skin-palette-persistent.integration.test.ts +28 -0
- package/src/__tests__/skin-palette-persistent.unit.test.ts +247 -0
- package/src/__tests__/skinned-shadow-caster.test.ts +125 -14
- package/src/__tests__/specular-environment-scale.dawn.test.ts +158 -0
- package/src/__tests__/ssao-config.unit.test.ts +7 -0
- package/src/__tests__/ssao-surface.dawn.test.ts +252 -0
- package/src/__tests__/ssr-admission-matrix.integration.test.ts +7 -1
- package/src/__tests__/ssr-confidence-compose.unit.test.ts +84 -0
- package/src/__tests__/ssr-coordinate-oracle.unit.test.ts +28 -0
- package/src/__tests__/ssr-cube-silhouette.dawn.test.ts +270 -0
- package/src/__tests__/ssr-format-probe-gating.integration.test.ts +82 -0
- package/src/__tests__/ssr-gpu-dispatch.browser.test.ts +99 -0
- package/src/__tests__/ssr-gpu-dispatch.dawn.test.ts +116 -0
- package/src/__tests__/ssr-gpu-dispatch.ts +951 -0
- package/src/__tests__/ssr-graph-topology.unit.test.ts +104 -0
- package/src/__tests__/ssr-history-filter.dawn.test.ts +198 -0
- package/src/__tests__/ssr-hit-color.dawn.test.ts +273 -0
- package/src/__tests__/ssr-hiz-odd-reduction.dawn.test.ts +569 -0
- package/src/__tests__/ssr-hiz-rescue.dawn.test.ts +279 -0
- package/src/__tests__/ssr-hiz.browser.test.ts +150 -0
- package/src/__tests__/ssr-hiz.dawn.test.ts +150 -0
- package/src/__tests__/ssr-hiz.unit.test.ts +56 -0
- package/src/__tests__/ssr-inspection.unit.test.ts +105 -0
- package/src/__tests__/ssr-memory-budget.unit.test.ts +45 -0
- package/src/__tests__/ssr-performance-sequence-aggregation.unit.test.ts +15 -0
- package/src/__tests__/ssr-public-surface.test-d.ts +37 -0
- package/src/__tests__/ssr-receiver-coverage.dawn.test.ts +387 -0
- package/src/__tests__/ssr-reflection-mip-reducer.dawn.test.ts +309 -0
- package/src/__tests__/ssr-reprojection-probe.ts +90 -0
- package/src/__tests__/ssr-roughness-mip.dawn.test.ts +163 -0
- package/src/__tests__/ssr-shader-prewarm.unit.test.ts +59 -0
- package/src/__tests__/ssr-spatial.integration.test.ts +141 -0
- package/src/__tests__/ssr-stable-lattice.dawn.test.ts +475 -0
- package/src/__tests__/ssr-temporal-history.unit.test.ts +202 -0
- package/src/__tests__/ssr-texel-crossing.dawn.test.ts +448 -0
- package/src/__tests__/ssr-zero-work.integration.test.ts +87 -0
- package/src/__tests__/standard-cluster-variant-resolution.unit.test.ts +84 -12
- package/src/__tests__/standard-clustered-pipeline.unit.test.ts +29 -0
- package/src/__tests__/standard-output-chain-contract.unit.test.ts +99 -0
- package/src/__tests__/standard-output-chain.integration.test.ts +73 -0
- package/src/__tests__/standard-output-gpu-evidence.ts +205 -0
- package/src/__tests__/standard-output.browser.test.ts +15 -0
- package/src/__tests__/standard-output.dawn.test.ts +15 -0
- package/src/__tests__/standard-pbr-artifact-assembly.unit.test.ts +275 -0
- package/src/__tests__/standard-pipeline.integration.test.ts +320 -3
- package/src/__tests__/standard-profile-oracle.unit.test.ts +49 -0
- package/src/__tests__/standard-surface-lighting.unit.test.ts +41 -0
- package/src/__tests__/standard-texture-specialization.dawn.test.ts +141 -0
- package/src/__tests__/surface-adjacent-regressions.integration.test.ts +6 -3
- package/src/__tests__/taa-coverage-edge.dawn.test.ts +199 -0
- package/src/__tests__/taa-history-clipping.dawn.test.ts +328 -0
- package/src/__tests__/taa-neighborhood-equivalence.dawn.test.ts +782 -0
- package/src/__tests__/taa-stability-feedback.browser.test.ts +23 -0
- package/src/__tests__/taa-stability-feedback.dawn.test.ts +68 -0
- package/src/__tests__/taa-stability-feedback.ts +342 -0
- package/src/__tests__/temporal-history-lifecycle.unit.test.ts +49 -7
- package/src/__tests__/temporal-reset-matrix.unit.test.ts +9 -0
- package/src/__tests__/temporal-transaction.integration.test.ts +28 -0
- package/src/__tests__/temporal-view.unit.test.ts +17 -0
- package/src/__tests__/texture-usage-surface.unit.test.ts +4 -2
- package/src/__tests__/transmission-prewarm.unit.test.ts +57 -0
- package/src/__tests__/typed-pipeline-topology.unit.test.ts +109 -4
- package/src/__tests__/typed-scene-pass-material-cache.integration.test.ts +126 -0
- package/src/__tests__/vertex-layouts-ssot.unit.test.ts +47 -0
- package/src/__tests__/visibility-extract.perf.test.ts +20 -8
- package/src/__tests__/visibility-instances.integration.test.ts +19 -7
- package/src/__tests__/visibility-producer-matrix.integration.test.ts +20 -9
- package/src/__tests__/volumetric-fog-stage-readback.dawn.test.ts +62 -13
- package/src/__tests__/volumetric-fog-topology.unit.test.ts +7 -7
- package/src/assembly/atmosphere-shader-prewarm.ts +39 -0
- package/src/assembly/device-feature-admission.ts +9 -4
- package/src/assembly/dynamic-geometry-host.ts +284 -163
- package/src/assembly/dynamic-geometry-runtime.ts +71 -0
- package/src/assembly/factory.ts +4 -0
- package/src/assembly/gpu-driven-owner.ts +29 -0
- package/src/assembly/host-contract.ts +19 -0
- package/src/assembly/material/assembly.ts +383 -1
- package/src/assembly/material/pipeline-helpers.ts +100 -0
- package/src/assembly/material-shader-policy.ts +110 -46
- package/src/assembly/recovery/device-loss-fanout.ts +5 -0
- package/src/assembly/recovery/failure-location.ts +62 -0
- package/src/assembly/recovery/recovery-attempt.ts +2 -29
- package/src/assembly/recovery/renderer-recover.ts +16 -17
- package/src/assembly/renderer-facade.ts +34 -1
- package/src/assembly/renderer-feature-inspection.ts +13 -0
- package/src/assembly/renderer-frame-transaction.ts +63 -0
- package/src/assembly/renderer-helpers.ts +26 -0
- package/src/assembly/renderer-inspection.ts +6 -0
- package/src/assembly/shader-prewarm-policy.ts +46 -1
- package/src/assembly/skin-palette-owner.ts +21 -0
- package/src/assembly/ssr-shader-prewarm.ts +41 -0
- package/src/assembly/webgpu-device-loss.ts +75 -0
- package/src/assembly/webgpu-pbr-ready.ts +232 -0
- package/src/assembly/webgpu-ready-mipmap.ts +26 -0
- package/src/assembly/webgpu-ready.ts +161 -131
- package/src/assembly/webgpu-renderer-bootstrap.ts +85 -0
- package/src/assembly/webgpu-renderer-contract.ts +69 -0
- package/src/assembly/webgpu-renderer-guards.ts +32 -0
- package/src/assembly/webgpu-renderer-observation.ts +43 -0
- package/src/assembly/webgpu-renderer-recovery-failure.ts +62 -0
- package/src/assembly/webgpu-renderer.ts +744 -730
- package/src/assembly/webgpu-vertex-layouts.ts +233 -87
- package/src/capture/scene-projection.ts +37 -0
- package/src/components/__tests__/camera-exposure.contract.unit.test.ts +153 -0
- package/src/components/__tests__/dynamic-resolution-schema.unit.test.ts +65 -0
- package/src/components/__tests__/light-radius.integration.test.ts +59 -0
- package/src/components/camera.ts +287 -7
- package/src/components/directional-light.ts +3 -3
- package/src/components/dynamic-resolution.ts +67 -0
- package/src/components/index.ts +2 -0
- package/src/components/instances.ts +45 -18
- package/src/components/light-helpers.ts +6 -1
- package/src/components/reflection-probe.ts +1 -0
- package/src/components/scene-instance.ts +2 -1
- package/src/components/screen-space-reflection.ts +21 -0
- package/src/components/skylight.ts +4 -1
- package/src/components/sprite-animation.ts +2 -2
- package/src/components/sprite-instances.ts +1 -1
- package/src/device/device-scope.ts +13 -7
- package/src/device/gpu-residency.ts +45 -42
- package/src/dynamic-geometry.ts +13 -8
- package/src/environment/background.ts +281 -0
- package/src/environment/ibl.ts +211 -0
- package/src/environment/storage.ts +63 -0
- package/src/errors/gpu-driven.ts +49 -8
- package/src/errors/render.ts +91 -3
- package/src/extract/camera.ts +37 -1
- package/src/extract/contracts.ts +10 -0
- package/src/extract/gpu-driven.ts +240 -10
- package/src/features/host.ts +237 -19
- package/src/features/noise-texture.ts +91 -0
- package/src/features/plan.ts +553 -24
- package/src/features/prepared-gpu-work.ts +631 -49
- package/src/features/prepared-graphics-store.ts +31 -0
- package/src/features/prepared-graphics.ts +5 -0
- package/src/features/render-graph-compute.ts +41 -8
- package/src/features/render-graph-contribution.ts +141 -3
- package/src/features/render-graph-raster.ts +143 -30
- package/src/features/types.ts +11 -0
- package/src/fullscreen-post-process-pass.ts +3 -0
- package/src/gpu-driven/batch-topology.ts +452 -108
- package/src/gpu-driven/material-artifacts.ts +179 -0
- package/src/gpu-driven/material-bindings.ts +41 -0
- package/src/gpu-driven/pbr-program.ts +31 -0
- package/src/gpu-driven/prepared-draw.ts +42 -6
- package/src/gpu-driven/production-raster.ts +2806 -716
- package/src/gpu-driven/shadow-views.ts +539 -0
- package/src/gpu-driven/view-gpu.ts +188 -41
- package/src/gpu-resource.ts +21 -2
- package/src/gpu-scene-schema.ts +61 -11
- package/src/gpu-scene.ts +197 -99
- package/src/gpu-texture-usage.ts +1 -0
- package/src/hdrp-buffers.ts +141 -36
- package/src/ibl/IblPipelineCache.ts +5 -0
- package/src/ibl/frame-resources.ts +38 -0
- package/src/ibl/skylight-bind-group.ts +32 -21
- package/src/index.ts +194 -75
- package/src/inspection-types.ts +207 -1
- package/src/instances-derived-bounds.ts +258 -34
- package/src/instances.ts +459 -150
- package/src/internal.ts +22 -0
- package/src/lifecycle.ts +2 -0
- package/src/material-row.ts +194 -0
- package/src/materials.ts +44 -8
- package/src/pbr-pipeline.ts +172 -19
- package/src/pipeline/render-extent.ts +111 -0
- package/src/pipeline/standard-build-context.ts +7 -0
- package/src/pipeline/standard-forward-lane.ts +74 -29
- package/src/pipeline/standard-output/__tests__/lut-admission.unit.test.ts +103 -0
- package/src/pipeline/standard-output/auto-exposure/__tests__/capability.unit.test.ts +40 -0
- package/src/pipeline/standard-output/auto-exposure/__tests__/gpu.contract.unit.test.ts +125 -0
- package/src/pipeline/standard-output/auto-exposure/__tests__/graph.contract.unit.test.ts +94 -0
- package/src/pipeline/standard-output/auto-exposure/__tests__/oracle.test.ts +108 -0
- package/src/pipeline/standard-output/auto-exposure/__tests__/preset.test.ts +26 -0
- package/src/pipeline/standard-output/auto-exposure/capability.ts +38 -0
- package/src/pipeline/standard-output/auto-exposure/gpu.ts +567 -0
- package/src/pipeline/standard-output/auto-exposure/graph.ts +221 -0
- package/src/pipeline/standard-output/auto-exposure/inspection.ts +231 -0
- package/src/pipeline/standard-output/auto-exposure/oracle.ts +291 -0
- package/src/pipeline/standard-output/auto-exposure/preset.ts +28 -0
- package/src/pipeline/standard-output/auto-exposure/state.ts +156 -0
- package/src/pipeline/standard-output/color-transform.ts +124 -0
- package/src/pipeline/standard-output/graph.ts +139 -0
- package/src/pipeline/standard-output/lut-admission.ts +121 -0
- package/src/pipeline/standard-output/lut-gpu.ts +399 -0
- package/src/pipeline/standard-output/lut-state.ts +176 -0
- package/src/pipeline/standard-output/resources.ts +121 -0
- package/src/pipeline/standard-output/types.ts +58 -0
- package/src/pipeline/standard-pipeline.ts +232 -70
- package/src/pipeline/standard-post.ts +190 -27
- package/src/pipeline/standard-profile.ts +2 -1
- package/src/pipeline-builder.ts +28 -9
- package/src/pipeline-spec-types.ts +4 -0
- package/src/pipeline-spec.ts +37 -29
- package/src/plugin.ts +4 -0
- package/src/points-lines/standard-owner.ts +6 -14
- package/src/post-process-errors.ts +26 -18
- package/src/prepare/__tests__/extended-lighting-capability.unit.test.ts +2 -2
- package/src/prepare/extended-lighting/resources.ts +3 -3
- package/src/prepare/prepared-graphics-resolver.ts +9 -2
- package/src/record/__tests__/main-pass-geometry.unit.test.ts +68 -0
- package/src/record/__tests__/material-bg-cache.unit.test.ts +45 -0
- package/src/record/__tests__/material-slot-plan.unit.test.ts +57 -0
- package/src/record/__tests__/mesh-ssbo.unit.test.ts +40 -1
- package/src/record/__tests__/recovery-pipeline.unit.test.ts +20 -1
- package/src/record/__tests__/sprite-material-abi.unit.test.ts +41 -6
- package/src/record/__tests__/temporal-payload.unit.test.ts +2 -0
- package/src/record/__tests__/typed-frame-graph-plan.unit.test.ts +45 -0
- package/src/record/__tests__/view-ubo-layout.unit.test.ts +5 -0
- package/src/record/dynamic-geometry-consumption.ts +59 -0
- package/src/record/frame-lighting.ts +15 -12
- package/src/record/frame-snapshot.ts +146 -34
- package/src/record/frame-targets.ts +9 -0
- package/src/record/frame.ts +838 -170
- package/src/record/main-pass-geometry.ts +209 -103
- package/src/record/main-pass-material.ts +157 -40
- package/src/record/main-pass-sprite-draws.ts +16 -107
- package/src/record/main-pass.ts +141 -12
- package/src/record/material-uniforms.ts +1 -1
- package/src/record/mesh-ssbo.ts +59 -15
- package/src/record/prepared-material-bindings.ts +238 -0
- package/src/record/recovery-pipeline.ts +69 -90
- package/src/record/render-context.ts +123 -24
- package/src/record/shadow-pass.ts +1389 -230
- package/src/record/skybox-post-pass.ts +14 -3
- package/src/record/typed-frame-graph.ts +1064 -47
- package/src/record/view-ubo.ts +12 -1
- package/src/recovery/render-system-candidate.ts +135 -68
- package/src/recovery/render-system-roots.ts +113 -0
- package/src/recovery/types.ts +77 -0
- package/src/reflection/background.ts +151 -0
- package/src/reflection/filter.ts +3 -0
- package/src/reflection/projection.ts +16 -6
- package/src/reflection/record-owner.ts +308 -140
- package/src/render-contract.ts +237 -49
- package/src/render-graph-primitives.ts +34 -5
- package/src/render-pipeline.ts +90 -2
- package/src/render-system-extract-tail.ts +431 -162
- package/src/render-system-extract.ts +478 -119
- package/src/render-system-projections.ts +241 -0
- package/src/render-system.ts +715 -828
- package/src/scene/render-scene-types.ts +13 -4
- package/src/scene/render-scene.ts +577 -355
- package/src/scene/shadow-visibility.ts +21 -0
- package/src/ssao-config.ts +25 -8
- package/src/ssr/admission.ts +380 -14
- package/src/ssr/compose.ts +144 -0
- package/src/ssr/errors.ts +48 -0
- package/src/ssr/graph.ts +797 -0
- package/src/ssr/history.ts +436 -0
- package/src/ssr/hiz.ts +124 -0
- package/src/ssr/inspection.ts +124 -0
- package/src/ssr/resources.ts +202 -0
- package/src/ssr/temporal.ts +164 -0
- package/src/systems/skin-palette-allocator.ts +495 -148
- package/src/systems/skin-palette-types.ts +17 -0
- package/src/systems/transparent-dispatch.ts +90 -0
- package/src/targets/material-source.ts +34 -0
- package/src/temporal/coverage.ts +1 -1
- package/src/temporal/frame-coordinator.ts +23 -2
- package/src/temporal/gpu.ts +79 -12
- package/src/temporal/history.ts +3 -1
- package/src/temporal/inspection.ts +2 -1
- package/src/temporal/standard-scene-data.ts +10 -2
- package/src/temporal/target-coverage-attachment.ts +72 -0
- package/src/temporal/temporal-view.ts +11 -2
- package/src/temporal/view.ts +12 -2
- package/src/transmission/__tests__/standard-transmission.dawn.test.ts +219 -139
- package/src/typed-render-graph-primitives.ts +304 -74
- package/src/typed-shadow-passes.ts +122 -12
- package/src/volume/component.ts +1 -0
- package/src/volume/passes.ts +3 -3
- package/src/volume/temporal.ts +10 -0
- package/dist/chunk-GE3SDD72.mjs.map +0 -1
- package/dist/chunk-GF523LHF.mjs.map +0 -1
- package/dist/chunk-IQMKJLNU.mjs.map +0 -1
- package/dist/chunk-J52NMQKR.mjs.map +0 -1
- package/dist/chunk-J6KACNOH.mjs.map +0 -1
- package/dist/chunk-JAASCMXA.mjs.map +0 -1
- package/dist/chunk-MBU4ZVE7.mjs.map +0 -1
- package/dist/chunk-MYJ5RPJO.mjs.map +0 -1
- package/dist/chunk-RBDBZ5R7.mjs.map +0 -1
- package/dist/chunk-VSL23LZE.mjs.map +0 -1
- package/src/__tests__/instances-world-ownership.integration.test.ts +0 -62
- package/src/scene/__tests__/changed-block-summary.candidate.test.ts +0 -36
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
import { createBoxGeometry } from '@forgeax/engine-geometry';
|
|
1
2
|
import { vec3 } from '@forgeax/engine-math';
|
|
2
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
createMaterialProgramArtifactReceipt,
|
|
5
|
+
createStandardPbrArtifactReceipt,
|
|
6
|
+
type ParamSchemaEntry,
|
|
7
|
+
} from '@forgeax/engine-shader';
|
|
8
|
+
import type { MeshAsset } from '@forgeax/engine-types';
|
|
3
9
|
import { describe, expect, it } from 'vitest';
|
|
4
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
buildGpuDrivenDraws,
|
|
12
|
+
gpuDrivenMaterialArtifactKey,
|
|
13
|
+
resolvePreparedGpuDrivenDraw,
|
|
14
|
+
} from '../extract/gpu-driven';
|
|
5
15
|
import type { MaterialSnapshot, RenderableSnapshot } from '../render-system-extract';
|
|
6
16
|
|
|
7
17
|
const textureNames = [
|
|
@@ -27,6 +37,7 @@ function material(): MaterialSnapshot {
|
|
|
27
37
|
}
|
|
28
38
|
|
|
29
39
|
function snapshot(
|
|
40
|
+
materialSnapshot: MaterialSnapshot = material(),
|
|
30
41
|
draws?: readonly NonNullable<RenderableSnapshot['gpuDrivenDraws']>[number][],
|
|
31
42
|
): RenderableSnapshot {
|
|
32
43
|
const draw = {
|
|
@@ -42,8 +53,8 @@ function snapshot(
|
|
|
42
53
|
return {
|
|
43
54
|
assetHandle: 1,
|
|
44
55
|
transform: { world: new Float32Array(16) },
|
|
45
|
-
material:
|
|
46
|
-
materials: [
|
|
56
|
+
material: materialSnapshot,
|
|
57
|
+
materials: [materialSnapshot],
|
|
47
58
|
materialBindingSources: [],
|
|
48
59
|
worldId: 0,
|
|
49
60
|
entityKey: 1,
|
|
@@ -51,7 +62,9 @@ function snapshot(
|
|
|
51
62
|
};
|
|
52
63
|
}
|
|
53
64
|
|
|
54
|
-
function geometry(source:
|
|
65
|
+
function geometry(source: {
|
|
66
|
+
readonly receipt: ReturnType<typeof createStandardPbrArtifactReceipt>;
|
|
67
|
+
}) {
|
|
55
68
|
return {
|
|
56
69
|
identity: 'canonical-pbr-geometry',
|
|
57
70
|
vertexInputs: source.receipt.vertexInputs,
|
|
@@ -60,8 +73,8 @@ function geometry(source: ReturnType<typeof artifact>) {
|
|
|
60
73
|
};
|
|
61
74
|
}
|
|
62
75
|
|
|
63
|
-
function artifact() {
|
|
64
|
-
const receipt = createStandardPbrArtifactReceipt();
|
|
76
|
+
function artifact(vertexColorAvailable = false) {
|
|
77
|
+
const receipt = createStandardPbrArtifactReceipt(false, vertexColorAvailable);
|
|
65
78
|
return {
|
|
66
79
|
material: 'forgeax::default-standard-pbr',
|
|
67
80
|
pass: 'forward',
|
|
@@ -74,7 +87,174 @@ function artifact() {
|
|
|
74
87
|
};
|
|
75
88
|
}
|
|
76
89
|
|
|
90
|
+
function customArtifact() {
|
|
91
|
+
const schema = [
|
|
92
|
+
{ name: 'tint', type: 'color' },
|
|
93
|
+
{ name: 'roughnessBias', type: 'f32' },
|
|
94
|
+
] as const satisfies readonly ParamSchemaEntry[];
|
|
95
|
+
const receipt = createMaterialProgramArtifactReceipt({
|
|
96
|
+
schema,
|
|
97
|
+
directEntry: 'vs_main',
|
|
98
|
+
sceneIndexEntry: 'vs_scene_index',
|
|
99
|
+
vertexInputs: [
|
|
100
|
+
{ semantic: 'position', location: 0, format: 'float32x3' },
|
|
101
|
+
{ semantic: 'normal', location: 1, format: 'float32x3' },
|
|
102
|
+
{ semantic: 'uv', location: 2, format: 'float32x2' },
|
|
103
|
+
{ semantic: 'tangent', location: 3, format: 'float32x4' },
|
|
104
|
+
],
|
|
105
|
+
});
|
|
106
|
+
return {
|
|
107
|
+
material: 'game::custom-surface',
|
|
108
|
+
pass: 'forward',
|
|
109
|
+
wgsl: 'producer-composed-custom-surface',
|
|
110
|
+
layoutIdentity: receipt.reflection.layoutIdentity,
|
|
111
|
+
bindings: [],
|
|
112
|
+
deps: ['game::custom-surface'],
|
|
113
|
+
vertexInputs: receipt.vertexInputs.map((input) => ({ ...input })),
|
|
114
|
+
receipt,
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
77
118
|
describe('prepared Standard PBR producer-to-record integration', () => {
|
|
119
|
+
it.each([
|
|
120
|
+
'forgeax::default-standard-pbr',
|
|
121
|
+
'physical-material::standard-clearcoat-factor-r',
|
|
122
|
+
])('distinguishes canonical roots from legacy direct-only aliases: %s', (materialShaderId) => {
|
|
123
|
+
const source = { ...material(), materialShaderId };
|
|
124
|
+
const draws = buildGpuDrivenDraws({
|
|
125
|
+
mesh: createBoxGeometry(1, 1, 1).unwrap(),
|
|
126
|
+
materials: [source],
|
|
127
|
+
fallbackMaterial: source,
|
|
128
|
+
baseSnapshot: snapshot(source),
|
|
129
|
+
getMaterialShaderArtifact: () => undefined,
|
|
130
|
+
});
|
|
131
|
+
expect(draws).toHaveLength(1);
|
|
132
|
+
expect(draws[0]?.preparationError?.code).toBe(
|
|
133
|
+
materialShaderId.startsWith('forgeax::') ? 'missing-material-receipt' : undefined,
|
|
134
|
+
);
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
it('requires the published scene-index artifact for a custom surface', () => {
|
|
138
|
+
const source: MaterialSnapshot = {
|
|
139
|
+
...material(),
|
|
140
|
+
materialShaderId: 'game::custom-surface-direct',
|
|
141
|
+
materialProgramKeys: { forward: 'game::custom-surface-direct' },
|
|
142
|
+
materialSceneIndexProgramKeys: {
|
|
143
|
+
forward: { specializationKey: 'game::custom-surface-scene', pass: 'forward' },
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
const requested: string[] = [];
|
|
147
|
+
const draws = buildGpuDrivenDraws({
|
|
148
|
+
mesh: createBoxGeometry(1, 1, 1).unwrap(),
|
|
149
|
+
materials: [source],
|
|
150
|
+
fallbackMaterial: source,
|
|
151
|
+
baseSnapshot: snapshot(source),
|
|
152
|
+
getMaterialShaderArtifact: (key) => {
|
|
153
|
+
requested.push(key);
|
|
154
|
+
return undefined;
|
|
155
|
+
},
|
|
156
|
+
});
|
|
157
|
+
expect(requested).toEqual(['game::custom-surface-scene']);
|
|
158
|
+
expect(draws).toHaveLength(1);
|
|
159
|
+
expect(draws[0]?.preparationError?.code).toBe('missing-material-receipt');
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
it('prepares a COLOR_0 geometry with the matching published receipt', () => {
|
|
163
|
+
const source = artifact(true);
|
|
164
|
+
const result = resolvePreparedGpuDrivenDraw({
|
|
165
|
+
snapshot: snapshot(),
|
|
166
|
+
artifact: source,
|
|
167
|
+
geometry: geometry(source),
|
|
168
|
+
generation: source.receipt.generation,
|
|
169
|
+
draw: snapshot().gpuDrivenDraws?.[0] as NonNullable<
|
|
170
|
+
RenderableSnapshot['gpuDrivenDraws']
|
|
171
|
+
>[number],
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
expect(result.ok).toBe(true);
|
|
175
|
+
if (!result.ok) return;
|
|
176
|
+
expect(result.value.receiptIdentity).toBe(source.receipt.receiptIdentity);
|
|
177
|
+
expect(result.value.vertexInputs).toContainEqual({
|
|
178
|
+
semantic: 'color',
|
|
179
|
+
location: 13,
|
|
180
|
+
format: 'float32x4',
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
it('selects the colored receipt while extracting a real colored mesh draw', () => {
|
|
185
|
+
const coloredSource = artifact(true);
|
|
186
|
+
const coloredMesh: MeshAsset = {
|
|
187
|
+
kind: 'mesh',
|
|
188
|
+
vertices: new Float32Array(36),
|
|
189
|
+
indices: new Uint16Array([0, 1, 2]),
|
|
190
|
+
attributes: {
|
|
191
|
+
position: new Float32Array(9),
|
|
192
|
+
normal: new Float32Array(9),
|
|
193
|
+
uv: new Float32Array(6),
|
|
194
|
+
tangent: new Float32Array(12),
|
|
195
|
+
color: new Float32Array(12),
|
|
196
|
+
},
|
|
197
|
+
submeshes: [
|
|
198
|
+
{
|
|
199
|
+
indexOffset: 0,
|
|
200
|
+
indexCount: 3,
|
|
201
|
+
vertexCount: 3,
|
|
202
|
+
materialSlot: 0,
|
|
203
|
+
topology: 'triangle-list',
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
materialSlots: [{ slotName: 'default' }],
|
|
207
|
+
};
|
|
208
|
+
const selectedColorFacts: boolean[] = [];
|
|
209
|
+
const draws = buildGpuDrivenDraws({
|
|
210
|
+
mesh: coloredMesh,
|
|
211
|
+
materials: [material()],
|
|
212
|
+
fallbackMaterial: material(),
|
|
213
|
+
baseSnapshot: snapshot(),
|
|
214
|
+
getMaterialShaderArtifact: (_materialShaderId, request) => {
|
|
215
|
+
selectedColorFacts.push(request?.vertexColorAvailable === true);
|
|
216
|
+
return coloredSource;
|
|
217
|
+
},
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
expect(selectedColorFacts).toEqual([true]);
|
|
221
|
+
expect(draws).toHaveLength(1);
|
|
222
|
+
expect(draws[0]?.prepared?.vertexInputs).toContainEqual({
|
|
223
|
+
semantic: 'color',
|
|
224
|
+
location: 13,
|
|
225
|
+
format: 'float32x4',
|
|
226
|
+
});
|
|
227
|
+
expect(draws[0]?.preparationError).toBeUndefined();
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
it('keeps colored and colorless receipts on distinct production identities', () => {
|
|
231
|
+
const plain = artifact(false);
|
|
232
|
+
const colored = artifact(true);
|
|
233
|
+
const plainKey = gpuDrivenMaterialArtifactKey({
|
|
234
|
+
material: plain.material,
|
|
235
|
+
deformation: 'rigid',
|
|
236
|
+
receiptIdentity: plain.receipt.receiptIdentity,
|
|
237
|
+
receiptGeneration: plain.receipt.generation,
|
|
238
|
+
});
|
|
239
|
+
const coloredKey = gpuDrivenMaterialArtifactKey({
|
|
240
|
+
material: colored.material,
|
|
241
|
+
deformation: 'rigid',
|
|
242
|
+
receiptIdentity: colored.receipt.receiptIdentity,
|
|
243
|
+
receiptGeneration: colored.receipt.generation,
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
expect(plain.receipt.vertexInputs).not.toContainEqual(
|
|
247
|
+
expect.objectContaining({ semantic: 'color', location: 13 }),
|
|
248
|
+
);
|
|
249
|
+
expect(colored.receipt.vertexInputs).toContainEqual({
|
|
250
|
+
semantic: 'color',
|
|
251
|
+
location: 13,
|
|
252
|
+
format: 'float32x4',
|
|
253
|
+
});
|
|
254
|
+
expect(plain.receipt.receiptIdentity).not.toBe(colored.receipt.receiptIdentity);
|
|
255
|
+
expect(plainKey).not.toBe(coloredKey);
|
|
256
|
+
});
|
|
257
|
+
|
|
78
258
|
it('carries one producer receipt to direct and scene-index preparation', () => {
|
|
79
259
|
const source = artifact();
|
|
80
260
|
const result = resolvePreparedGpuDrivenDraw({
|
|
@@ -105,8 +285,18 @@ describe('prepared Standard PBR producer-to-record integration', () => {
|
|
|
105
285
|
_label === 'missing resources'
|
|
106
286
|
? {
|
|
107
287
|
...baseSnapshot,
|
|
108
|
-
material: {
|
|
109
|
-
|
|
288
|
+
material: {
|
|
289
|
+
...baseSnapshot.material,
|
|
290
|
+
textureHandles: undefined,
|
|
291
|
+
authoredTextureFields: new Set(['baseColorTexture']),
|
|
292
|
+
},
|
|
293
|
+
materials: [
|
|
294
|
+
{
|
|
295
|
+
...baseSnapshot.material,
|
|
296
|
+
textureHandles: undefined,
|
|
297
|
+
authoredTextureFields: new Set(['baseColorTexture']),
|
|
298
|
+
},
|
|
299
|
+
],
|
|
110
300
|
}
|
|
111
301
|
: baseSnapshot;
|
|
112
302
|
const result = resolvePreparedGpuDrivenDraw({
|
|
@@ -193,4 +383,56 @@ describe('prepared Standard PBR producer-to-record integration', () => {
|
|
|
193
383
|
expect(result.error.code).toBe('missing-material-receipt');
|
|
194
384
|
expect(base.gpuDrivenDraws).toHaveLength(1);
|
|
195
385
|
});
|
|
386
|
+
|
|
387
|
+
it('admits numeric-only Standard PBR without optional texture resources', () => {
|
|
388
|
+
const source = artifact();
|
|
389
|
+
const numericMaterial: MaterialSnapshot = {
|
|
390
|
+
...material(),
|
|
391
|
+
textureHandles: undefined,
|
|
392
|
+
samplerHandles: undefined,
|
|
393
|
+
};
|
|
394
|
+
const baseSnapshot = snapshot(numericMaterial);
|
|
395
|
+
const result = resolvePreparedGpuDrivenDraw({
|
|
396
|
+
snapshot: baseSnapshot,
|
|
397
|
+
artifact: source,
|
|
398
|
+
geometry: geometry(source),
|
|
399
|
+
generation: source.receipt.generation,
|
|
400
|
+
draw: baseSnapshot.gpuDrivenDraws?.[0] as NonNullable<
|
|
401
|
+
RenderableSnapshot['gpuDrivenDraws']
|
|
402
|
+
>[number],
|
|
403
|
+
});
|
|
404
|
+
expect(result.ok).toBe(true);
|
|
405
|
+
});
|
|
406
|
+
|
|
407
|
+
it('admits a producer-backed custom material without a Standard shader name', () => {
|
|
408
|
+
const source = customArtifact();
|
|
409
|
+
const customMaterial: MaterialSnapshot = {
|
|
410
|
+
...material(),
|
|
411
|
+
materialShaderId: source.material,
|
|
412
|
+
materialParamSchema: [
|
|
413
|
+
{ name: 'tint', type: 'color' },
|
|
414
|
+
{ name: 'roughnessBias', type: 'f32' },
|
|
415
|
+
],
|
|
416
|
+
paramSnapshot: { tint: [0.8, 0.25, 0.1, 1], roughnessBias: 0.12 },
|
|
417
|
+
textureHandles: undefined,
|
|
418
|
+
samplerHandles: undefined,
|
|
419
|
+
};
|
|
420
|
+
const baseSnapshot = snapshot(customMaterial);
|
|
421
|
+
const result = resolvePreparedGpuDrivenDraw({
|
|
422
|
+
snapshot: baseSnapshot,
|
|
423
|
+
artifact: source,
|
|
424
|
+
geometry: geometry(source),
|
|
425
|
+
generation: source.receipt.generation,
|
|
426
|
+
draw: baseSnapshot.gpuDrivenDraws?.[0] as NonNullable<
|
|
427
|
+
RenderableSnapshot['gpuDrivenDraws']
|
|
428
|
+
>[number],
|
|
429
|
+
});
|
|
430
|
+
|
|
431
|
+
expect(result.ok).toBe(true);
|
|
432
|
+
if (!result.ok) return;
|
|
433
|
+
expect(result.value.identity.material).toBe('game::custom-surface');
|
|
434
|
+
expect(result.value.materialRow.byteLength).toBe(512);
|
|
435
|
+
expect(result.value.materialRow.fields).toEqual(['tint', 'roughnessBias']);
|
|
436
|
+
expect(result.value.sceneIndexEntry).toBe('vs_scene_index');
|
|
437
|
+
});
|
|
196
438
|
});
|
|
@@ -3,6 +3,7 @@ import { ok } from '@forgeax/engine-types';
|
|
|
3
3
|
import { describe, expect, it } from 'vitest';
|
|
4
4
|
import { createRenderFeatureHost, runRenderFeatureFrame } from '../features/host';
|
|
5
5
|
import type { RenderFeature } from '../features/types';
|
|
6
|
+
import { admitStandardColorLut } from '../pipeline/standard-output/lut-admission';
|
|
6
7
|
|
|
7
8
|
const supportedCaps: Readonly<RhiCaps> = {
|
|
8
9
|
backendKind: 'null',
|
|
@@ -25,6 +26,26 @@ function preparedFeature(): RenderFeature<{ readonly draw: boolean }> {
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
describe('prepared graphics capability projection', () => {
|
|
29
|
+
it('keeps LUT filtering as an independent live capability', () => {
|
|
30
|
+
const result = admitStandardColorLut({
|
|
31
|
+
texture: {
|
|
32
|
+
kind: 'texture',
|
|
33
|
+
shape: { viewDimension: '3d', extent: { width: 16, height: 16, depth: 16 } },
|
|
34
|
+
format: 'rgba16float',
|
|
35
|
+
data: new Uint8Array(16 * 16 * 16 * 8),
|
|
36
|
+
colorSpace: 'linear',
|
|
37
|
+
mips: { kind: 'none' },
|
|
38
|
+
},
|
|
39
|
+
maxTextureDimension3D: 2048,
|
|
40
|
+
rgba16floatFilterable: false,
|
|
41
|
+
bind: () => true,
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
expect(result.ok).toBe(false);
|
|
45
|
+
if (result.ok) return;
|
|
46
|
+
expect(result.error.code).toBe('standard-lut-filter-unavailable');
|
|
47
|
+
});
|
|
48
|
+
|
|
28
49
|
it('projects supported capability into an accepted machine-readable operation', () => {
|
|
29
50
|
const host = createRenderFeatureHost([preparedFeature()]).unwrap();
|
|
30
51
|
const result = runRenderFeatureFrame(host, {
|
|
@@ -2,6 +2,10 @@ import { readFileSync } from 'node:fs';
|
|
|
2
2
|
import { describe, expect, it } from 'vitest';
|
|
3
3
|
|
|
4
4
|
const ownerSource = readFileSync(new URL('../render-system.ts', import.meta.url), 'utf8');
|
|
5
|
+
const resolverSource = readFileSync(
|
|
6
|
+
new URL('../record/prepared-material-bindings.ts', import.meta.url),
|
|
7
|
+
'utf8',
|
|
8
|
+
);
|
|
5
9
|
|
|
6
10
|
describe('prepared graphics material pipeline warmup', () => {
|
|
7
11
|
it('does not substitute an unrelated unlit pipeline while the authored shader warms', () => {
|
|
@@ -15,7 +19,7 @@ describe('prepared graphics material pipeline warmup', () => {
|
|
|
15
19
|
});
|
|
16
20
|
|
|
17
21
|
it('keeps view-only material bindings on the canonical view group with depth', () => {
|
|
18
|
-
const declaration =
|
|
22
|
+
const declaration = resolverSource.indexOf('preparedViewOnlyPipelines: new WeakSet()');
|
|
19
23
|
const classification = ownerSource.indexOf('preparedViewOnlyPipelines.add', declaration);
|
|
20
24
|
const bindingResolution = ownerSource.indexOf(
|
|
21
25
|
'preparedViewOnlyPipelines.has(pipeline as object)',
|
|
@@ -23,7 +27,7 @@ describe('prepared graphics material pipeline warmup', () => {
|
|
|
23
27
|
);
|
|
24
28
|
|
|
25
29
|
expect(declaration).toBeGreaterThan(-1);
|
|
26
|
-
expect(classification).toBeGreaterThan(
|
|
30
|
+
expect(classification).toBeGreaterThan(-1);
|
|
27
31
|
expect(bindingResolution).toBeGreaterThan(classification);
|
|
28
32
|
});
|
|
29
33
|
});
|
|
@@ -27,6 +27,11 @@ describe('Render profiler phase catalog ownership', () => {
|
|
|
27
27
|
'record/graph-execute/forward/pipeline-selection',
|
|
28
28
|
'record/graph-execute/forward/draw-submit',
|
|
29
29
|
'record/graph-execute/forward/geometry-loop',
|
|
30
|
+
'record/graph-execute/ssr-hiz',
|
|
31
|
+
'record/graph-execute/ssr-trace',
|
|
32
|
+
'record/graph-execute/ssr-temporal',
|
|
33
|
+
'record/graph-execute/ssr-reflection-mip',
|
|
34
|
+
'record/graph-execute/ssr-compose',
|
|
30
35
|
]),
|
|
31
36
|
);
|
|
32
37
|
expect(RENDER_PHASE_CATALOG).toEqual(expect.arrayContaining(['occlusion-prepare']));
|
|
@@ -9,6 +9,7 @@ import type {
|
|
|
9
9
|
RenderInspection,
|
|
10
10
|
RenderIntentInvalidDetail,
|
|
11
11
|
RenderWorldLease,
|
|
12
|
+
SsrSpatialInspection,
|
|
12
13
|
} from '@forgeax/engine-render';
|
|
13
14
|
import {
|
|
14
15
|
ANTIALIAS_TAA,
|
|
@@ -60,6 +61,8 @@ declare const inspection: RenderInspection;
|
|
|
60
61
|
const reflectionInspection: ReflectionProbeInspection = inspection.reflectionProbes;
|
|
61
62
|
const reflectionSelection: ReflectionProbeSelectionInspection = reflectionInspection.selection;
|
|
62
63
|
void reflectionSelection;
|
|
64
|
+
const ssrInspection: SsrSpatialInspection = inspection.ssr;
|
|
65
|
+
void ssrInspection;
|
|
63
66
|
type IntentError = Extract<PublicRenderError, { readonly code: 'render-intent-invalid' }>;
|
|
64
67
|
expectTypeOf<IntentError['detail']>().toEqualTypeOf<RenderIntentInvalidDetail>();
|
|
65
68
|
const backendKind: RenderInspection['capabilities']['backendKind'] =
|
|
@@ -6,6 +6,10 @@ const renderSystemSource = readFileSync(
|
|
|
6
6
|
resolve(import.meta.dirname, '../render-system.ts'),
|
|
7
7
|
'utf8',
|
|
8
8
|
);
|
|
9
|
+
const recoveryRootsSource = readFileSync(
|
|
10
|
+
resolve(import.meta.dirname, '../recovery/render-system-roots.ts'),
|
|
11
|
+
'utf8',
|
|
12
|
+
);
|
|
9
13
|
const recoveryCandidateSource = readFileSync(
|
|
10
14
|
resolve(import.meta.dirname, '../recovery/render-system-candidate.ts'),
|
|
11
15
|
'utf8',
|
|
@@ -20,6 +24,28 @@ const rendererRecoverySource = readFileSync(
|
|
|
20
24
|
);
|
|
21
25
|
|
|
22
26
|
describe('recovery candidate preparation contract', () => {
|
|
27
|
+
it('does not restore the lost device SSR history when publishing a detached candidate', () => {
|
|
28
|
+
const start = recoveryCandidateSource.indexOf('const createRecoveryCandidateFrameState');
|
|
29
|
+
const end = recoveryCandidateSource.indexOf('const publishRecoveryGraphCandidate', start);
|
|
30
|
+
const candidate = recoveryCandidateSource.slice(start, end);
|
|
31
|
+
for (const field of [
|
|
32
|
+
'ssrHistoryOwner',
|
|
33
|
+
'ssrHistoryCandidate',
|
|
34
|
+
'ssrSpatialAdmission',
|
|
35
|
+
'ssrTemporalParamsPayload',
|
|
36
|
+
]) {
|
|
37
|
+
expect(candidate).toContain(`${field}: undefined`);
|
|
38
|
+
}
|
|
39
|
+
// Initial readiness and recovery await the same pipeline preparation owner.
|
|
40
|
+
expect(rendererSource).toContain('await renderSystem.initializeSsr(device)');
|
|
41
|
+
expect(rendererSource).not.toContain('initializeSsr(internals.device)');
|
|
42
|
+
expect(rendererRecoverySource).toContain(
|
|
43
|
+
'await buildPipeline(recoveryScope, device, candidateGpuStore)',
|
|
44
|
+
);
|
|
45
|
+
expect(rendererRecoverySource).not.toContain('initializeSsr(');
|
|
46
|
+
expect(renderSystemSource).toContain('format: ssrFormatReceipts.get(internals.device)');
|
|
47
|
+
});
|
|
48
|
+
|
|
23
49
|
it('keeps graph preparation outside draw, record, execute, and submit', () => {
|
|
24
50
|
const start = recoveryCandidateSource.indexOf('const prepareRecoveryGraphCandidate');
|
|
25
51
|
const end = recoveryCandidateSource.indexOf('const submitCandidateSetup', start);
|
|
@@ -57,9 +83,8 @@ describe('recovery candidate preparation contract', () => {
|
|
|
57
83
|
});
|
|
58
84
|
|
|
59
85
|
it('prepares roots from candidate state and switches environment owner only at publish', () => {
|
|
60
|
-
const start =
|
|
61
|
-
const
|
|
62
|
-
const roots = renderSystemSource.slice(start, end);
|
|
86
|
+
const start = recoveryRootsSource.indexOf('export function prepareRenderSystemRecoveryRoots');
|
|
87
|
+
const roots = recoveryRootsSource.slice(start);
|
|
63
88
|
|
|
64
89
|
expect(roots).toContain('runtime.scope');
|
|
65
90
|
expect(roots).toContain('createRecoveryCandidate');
|
|
@@ -96,17 +121,10 @@ describe('recovery candidate preparation contract', () => {
|
|
|
96
121
|
expect(setup).not.toContain('recordFrame');
|
|
97
122
|
});
|
|
98
123
|
|
|
99
|
-
it('
|
|
100
|
-
expect(recoveryCandidateSource).toContain(
|
|
101
|
-
'candidate.recoveryReadiness.assertFirstRecoveryFrame()',
|
|
102
|
-
);
|
|
124
|
+
it('checks the candidate cache before publication', () => {
|
|
125
|
+
expect(recoveryCandidateSource).toContain('candidate.recoveryReadiness.assertPreparedCache()');
|
|
103
126
|
expect(recoveryCandidateSource).toContain('pointsLinesOwner.prepareRecoveryCandidate');
|
|
104
127
|
expect(renderSystemSource).toContain('pointsLinesOwner.abandonForDeviceLoss');
|
|
105
|
-
expect(rendererSource).toContain(
|
|
106
|
-
'candidate.producerBindings.gpuStore.setRecoveryColdWorkGuard',
|
|
107
|
-
);
|
|
108
|
-
expect(rendererSource).toContain('recoveryColdWorkGuard.arm()');
|
|
109
|
-
expect(renderSystemSource).toContain('internals.recoveryColdWorkGuard?.notePipelineColdWork()');
|
|
110
128
|
expect(recoveryCandidateSource).toContain('const previousFeatureHost = internals.featureHost');
|
|
111
129
|
expect(recoveryCandidateSource).toContain('const disposed = previousFeatureHost.dispose()');
|
|
112
130
|
expect(recoveryCandidateSource).toContain('previousFeatureHost !== candidate.featureHost');
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import type { RenderSystemInternals } from '../record/render-context';
|
|
3
|
+
import { ReflectionProbeRecordOwner } from '../reflection/record-owner';
|
|
4
|
+
import type { SkylightSnapshot } from '../render-system-extract';
|
|
5
|
+
|
|
6
|
+
function fixture(captureReadback = true) {
|
|
7
|
+
const internals = {
|
|
8
|
+
device: { caps: { rgba16floatRenderable: true } },
|
|
9
|
+
deviceScope: { owner: 'test', generation: 0 },
|
|
10
|
+
assets: { catalogEpoch: 0 },
|
|
11
|
+
captureReflectionFallbackReadback: captureReadback,
|
|
12
|
+
} as unknown as RenderSystemInternals;
|
|
13
|
+
const owner = new ReflectionProbeRecordOwner(internals);
|
|
14
|
+
const stage = (frame: number, source = 1) =>
|
|
15
|
+
// biome-ignore lint/complexity/useLiteralKeys: Exercise the private owner seam without exposing a test-only public API.
|
|
16
|
+
owner['stageFallbackProjections'](
|
|
17
|
+
[],
|
|
18
|
+
new Map([['receiver', { kind: 'skylight' as const }]]),
|
|
19
|
+
new Map(),
|
|
20
|
+
frame,
|
|
21
|
+
{
|
|
22
|
+
entityHandle: source,
|
|
23
|
+
equirectHandle: 0,
|
|
24
|
+
color: [1, 1, 1],
|
|
25
|
+
intensity: 1,
|
|
26
|
+
rotation: [0, 0, 0, 1],
|
|
27
|
+
} satisfies SkylightSnapshot,
|
|
28
|
+
);
|
|
29
|
+
const complete = (tickets: ReturnType<typeof stage>, frameId: number) =>
|
|
30
|
+
// biome-ignore lint/complexity/useLiteralKeys: Invoke the real asynchronous completion boundary.
|
|
31
|
+
owner['completeSubmission'](true, tickets, Promise.resolve(), {
|
|
32
|
+
frameId,
|
|
33
|
+
format: 'rgba16float',
|
|
34
|
+
size: { width: 1, height: 1 },
|
|
35
|
+
graphGeneration: 1,
|
|
36
|
+
textureIdentity: 1,
|
|
37
|
+
readback: Promise.resolve({
|
|
38
|
+
linearHdr: [1, 1, 1, 1],
|
|
39
|
+
hash: 'test',
|
|
40
|
+
graphGeneration: 1,
|
|
41
|
+
textureIdentity: 1,
|
|
42
|
+
}),
|
|
43
|
+
});
|
|
44
|
+
return { owner, stage, complete, internals };
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
describe('fallback asynchronous publication', () => {
|
|
48
|
+
it('publishes a completed source-compatible frame while newer frames are being prepared', async () => {
|
|
49
|
+
const { owner, stage, complete } = fixture();
|
|
50
|
+
const first = stage(1);
|
|
51
|
+
stage(2);
|
|
52
|
+
stage(3);
|
|
53
|
+
await complete(first, 1);
|
|
54
|
+
expect(owner.inspect().reflectionFallback).toMatchObject({ state: 'active', frameId: 1 });
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it('does not roll back an already completed newer frame', async () => {
|
|
58
|
+
const { owner, stage, complete } = fixture();
|
|
59
|
+
const first = stage(1);
|
|
60
|
+
const second = stage(2);
|
|
61
|
+
await complete(second, 2);
|
|
62
|
+
await complete(first, 1);
|
|
63
|
+
expect(owner.inspect().reflectionFallback).toMatchObject({ state: 'active', frameId: 2 });
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it('rejects source changes including an uncommitted A-B-A transition', async () => {
|
|
67
|
+
const { owner, stage, complete } = fixture();
|
|
68
|
+
const first = stage(1, 1);
|
|
69
|
+
stage(2, 2);
|
|
70
|
+
stage(3, 1);
|
|
71
|
+
await complete(first, 1);
|
|
72
|
+
expect(owner.inspect().reflectionFallback.state).not.toBe('active');
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
it('rejects completion from a retired device', async () => {
|
|
76
|
+
const { owner, stage, complete, internals } = fixture();
|
|
77
|
+
const first = stage(1);
|
|
78
|
+
Object.assign(internals.deviceScope, { generation: 1 });
|
|
79
|
+
await complete(first, 1);
|
|
80
|
+
expect(owner.inspect().reflectionFallback.state).not.toBe('active');
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
it('does not revive a disappeared receiver when the same source returns', async () => {
|
|
84
|
+
const { owner, stage, complete } = fixture();
|
|
85
|
+
const first = stage(1);
|
|
86
|
+
// biome-ignore lint/complexity/useLiteralKeys: Retire through the same private staging seam.
|
|
87
|
+
owner['stageFallbackProjections']([], new Map(), new Map(), 2, undefined);
|
|
88
|
+
stage(3);
|
|
89
|
+
await complete(first, 1);
|
|
90
|
+
expect(owner.inspect().reflectionFallback.state).not.toBe('active');
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
it('keeps source and projection generations stable for compatible completions', async () => {
|
|
94
|
+
const { owner, stage, complete } = fixture();
|
|
95
|
+
await complete(stage(1), 1);
|
|
96
|
+
const second = stage(2);
|
|
97
|
+
stage(3);
|
|
98
|
+
await complete(second, 2);
|
|
99
|
+
expect(owner.inspect().reflectionFallback).toMatchObject({
|
|
100
|
+
state: 'active',
|
|
101
|
+
frameId: 2,
|
|
102
|
+
sourceGeneration: 1,
|
|
103
|
+
projectionGeneration: 1,
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
it('publishes changing sources after GPU completion without requesting pixel readback', async () => {
|
|
108
|
+
const { owner, stage } = fixture(false);
|
|
109
|
+
for (let frame = 1; frame <= 10; frame++) {
|
|
110
|
+
let finish!: () => void;
|
|
111
|
+
const completed = new Promise<void>((resolve) => {
|
|
112
|
+
finish = resolve;
|
|
113
|
+
});
|
|
114
|
+
// biome-ignore lint/complexity/useLiteralKeys: Exercise the real completed-output boundary.
|
|
115
|
+
const publication = owner['completeSubmission'](true, stage(frame, frame), completed, {
|
|
116
|
+
frameId: frame,
|
|
117
|
+
format: 'rgba16float',
|
|
118
|
+
size: { width: 1, height: 1 },
|
|
119
|
+
graphGeneration: 1,
|
|
120
|
+
textureIdentity: frame,
|
|
121
|
+
});
|
|
122
|
+
expect(owner.inspect().reflectionFallback.frameId).not.toBe(frame);
|
|
123
|
+
finish();
|
|
124
|
+
await publication;
|
|
125
|
+
expect(owner.inspect().reflectionFallback).toMatchObject({ state: 'active', frameId: frame });
|
|
126
|
+
expect(owner.inspect().reflectionFallbackReadback).toBeUndefined();
|
|
127
|
+
expect(owner.inspect().reflectionFallback).not.toHaveProperty('linearHdr');
|
|
128
|
+
expect(owner.inspect().reflectionFallbackInspection.failureCode).toBeUndefined();
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
it('does not publish non-neutral source metadata without an executed output', async () => {
|
|
133
|
+
const { owner, stage } = fixture(false);
|
|
134
|
+
// biome-ignore lint/complexity/useLiteralKeys: Missing graph output must remain fail-closed.
|
|
135
|
+
await owner['completeSubmission'](true, stage(1), Promise.resolve());
|
|
136
|
+
expect(owner.inspect().reflectionFallback.state).not.toBe('active');
|
|
137
|
+
expect(owner.inspect().reflectionFallbackInspection.failureCode).toBe(
|
|
138
|
+
'reflection-fallback-output-missing',
|
|
139
|
+
);
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
it('requires new mapped proof after an asset catalog replacement', async () => {
|
|
143
|
+
const { owner, stage, complete, internals } = fixture();
|
|
144
|
+
await complete(stage(1), 1);
|
|
145
|
+
Object.assign(internals.assets, { catalogEpoch: 1 });
|
|
146
|
+
const replacement = stage(2);
|
|
147
|
+
// biome-ignore lint/complexity/useLiteralKeys: A changed catalog must not reuse the old source proof.
|
|
148
|
+
await owner['completeSubmission'](true, replacement, Promise.resolve());
|
|
149
|
+
expect(owner.inspect().reflectionFallback.state).not.toBe('active');
|
|
150
|
+
expect(owner.inspect().reflectionFallbackInspection.failureCode).toBe(
|
|
151
|
+
'reflection-fallback-output-missing',
|
|
152
|
+
);
|
|
153
|
+
await complete(replacement, 2);
|
|
154
|
+
expect(owner.inspect().reflectionFallback).toMatchObject({ state: 'active', frameId: 2 });
|
|
155
|
+
expect(owner.inspect().reflectionFallbackReadback?.frameId).toBe(2);
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
it('requires fresh readback to promote a failed source-identical submission from LKG', async () => {
|
|
159
|
+
const { owner, stage, complete } = fixture();
|
|
160
|
+
await complete(stage(1), 1);
|
|
161
|
+
// biome-ignore lint/complexity/useLiteralKeys: Fail at the real submission owner boundary.
|
|
162
|
+
await owner['completeSubmission'](false, stage(2), Promise.resolve());
|
|
163
|
+
expect(owner.inspect().reflectionFallback.state).toBe('lkg');
|
|
164
|
+
const retry = stage(3);
|
|
165
|
+
// biome-ignore lint/complexity/useLiteralKeys: An old proof must not turn a failed publication active again.
|
|
166
|
+
await owner['completeSubmission'](true, retry, Promise.resolve());
|
|
167
|
+
expect(owner.inspect().reflectionFallback).toMatchObject({ state: 'lkg', frameId: 1 });
|
|
168
|
+
await complete(retry, 3);
|
|
169
|
+
expect(owner.inspect().reflectionFallback).toMatchObject({ state: 'active', frameId: 3 });
|
|
170
|
+
});
|
|
171
|
+
});
|
|
@@ -57,15 +57,17 @@ describe('ReflectionProbe authoring and admission', () => {
|
|
|
57
57
|
it('admits the profile boundary and rejects the first over-budget probe', () => {
|
|
58
58
|
const probe = { halfExtents: [1, 1, 1] as const, priority: 0, intensity: 1, resolution: 256 };
|
|
59
59
|
const bytes = estimateReflectionProbeBytes(probe.resolution);
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
60
|
+
const count = Math.floor(DEFAULT_REFLECTION_PROBE_LIMITS.maxBytes / bytes);
|
|
61
|
+
expect(count).toBe(5);
|
|
62
|
+
expect(
|
|
63
|
+
admitReflectionProbe(probe, { acceptedCount: count - 1, acceptedBytes: bytes * (count - 1) }),
|
|
64
|
+
).toEqual({ ok: true, acceptedBytes: bytes * count });
|
|
65
|
+
expect(
|
|
66
|
+
admitReflectionProbe(probe, { acceptedCount: count, acceptedBytes: bytes * count }).ok,
|
|
67
|
+
).toBe(false);
|
|
68
|
+
expect(
|
|
69
|
+
admitReflectionProbe({ ...probe, resolution: 16 }, { acceptedCount: 16, acceptedBytes: 0 })
|
|
70
|
+
.ok,
|
|
71
|
+
).toBe(false);
|
|
70
72
|
});
|
|
71
73
|
});
|