@forgeax/engine-render 0.1.33 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1062 -127
- package/dist/assembly/backend-contract.d.ts +2 -0
- package/dist/assembly/backend-contract.d.ts.map +1 -1
- package/dist/assembly/barrel-distortion-inspection.d.ts +3 -0
- package/dist/assembly/barrel-distortion-inspection.d.ts.map +1 -0
- package/dist/assembly/canvas-draw-guard.d.ts +3 -0
- package/dist/assembly/canvas-draw-guard.d.ts.map +1 -0
- package/dist/assembly/cloud-shadow-entry.d.ts +4 -0
- package/dist/assembly/cloud-shadow-entry.d.ts.map +1 -0
- package/dist/assembly/device-feature-admission.d.ts +2 -2
- package/dist/assembly/dynamic-geometry-host.d.ts +4 -1
- package/dist/assembly/dynamic-geometry-host.d.ts.map +1 -1
- package/dist/assembly/dynamic-geometry-runtime.d.ts +1 -1
- package/dist/assembly/dynamic-geometry-runtime.d.ts.map +1 -1
- package/dist/assembly/factory.d.ts +1 -1
- package/dist/assembly/factory.d.ts.map +1 -1
- package/dist/assembly/host-contract.d.ts +6 -5
- package/dist/assembly/host-contract.d.ts.map +1 -1
- package/dist/assembly/material/assembly.d.ts.map +1 -1
- package/dist/assembly/material/pipeline-helpers.d.ts +5 -0
- package/dist/assembly/material/pipeline-helpers.d.ts.map +1 -1
- package/dist/assembly/material-shader-policy.d.ts +16 -2
- package/dist/assembly/material-shader-policy.d.ts.map +1 -1
- package/dist/assembly/material-shader-prewarm.d.ts.map +1 -1
- package/dist/assembly/recovery/device-loss-fanout.d.ts.map +1 -1
- package/dist/assembly/recovery/renderer-recover.d.ts +2 -0
- package/dist/assembly/recovery/renderer-recover.d.ts.map +1 -1
- package/dist/assembly/render-feature-post-processes.d.ts +6 -0
- package/dist/assembly/render-feature-post-processes.d.ts.map +1 -0
- package/dist/assembly/render-target-host.d.ts +5 -0
- package/dist/assembly/render-target-host.d.ts.map +1 -1
- package/dist/assembly/renderer-facade.d.ts.map +1 -1
- package/dist/assembly/renderer-feature-inspection.d.ts +1 -1
- package/dist/assembly/renderer-feature-inspection.d.ts.map +1 -1
- package/dist/assembly/renderer-frame-transaction.d.ts +12 -0
- package/dist/assembly/renderer-frame-transaction.d.ts.map +1 -1
- package/dist/assembly/renderer-inspection.d.ts +11 -0
- package/dist/assembly/renderer-inspection.d.ts.map +1 -1
- package/dist/assembly/webgpu-pbr-ready.d.ts +1 -0
- package/dist/assembly/webgpu-pbr-ready.d.ts.map +1 -1
- package/dist/assembly/webgpu-ready-per-pass.d.ts +39 -0
- package/dist/assembly/webgpu-ready-per-pass.d.ts.map +1 -0
- package/dist/assembly/webgpu-ready.d.ts +1 -1
- package/dist/assembly/webgpu-ready.d.ts.map +1 -1
- package/dist/assembly/webgpu-renderer-bootstrap.d.ts.map +1 -1
- package/dist/assembly/webgpu-renderer-observation-owner.d.ts +35 -0
- package/dist/assembly/webgpu-renderer-observation-owner.d.ts.map +1 -0
- package/dist/assembly/webgpu-renderer.d.ts +2 -1
- package/dist/assembly/webgpu-renderer.d.ts.map +1 -1
- package/dist/authoring.mjs +2 -4
- package/dist/authoring.mjs.map +1 -1
- package/dist/barrel-distortion.d.ts +47 -0
- package/dist/barrel-distortion.d.ts.map +1 -0
- package/dist/chunk-3XUBWRY2.mjs +1842 -0
- package/dist/chunk-3XUBWRY2.mjs.map +1 -0
- package/dist/{chunk-OO3DRYK7.mjs → chunk-G6HDNGY7.mjs} +2400 -1767
- package/dist/chunk-G6HDNGY7.mjs.map +1 -0
- package/dist/{chunk-ZDQWGQW7.mjs → chunk-LM5IE7GF.mjs} +4 -4
- package/dist/{chunk-ZDQWGQW7.mjs.map → chunk-LM5IE7GF.mjs.map} +1 -1
- package/dist/{chunk-VOZWDM3L.mjs → chunk-LNIUIKQ7.mjs} +1514 -498
- package/dist/chunk-LNIUIKQ7.mjs.map +1 -0
- package/dist/chunk-MXTWKZO4.mjs +3268 -0
- package/dist/chunk-MXTWKZO4.mjs.map +1 -0
- package/dist/chunk-MZ4C7EHF.mjs +6942 -0
- package/dist/chunk-MZ4C7EHF.mjs.map +1 -0
- package/dist/chunk-RIPAEGI6.mjs +48 -0
- package/dist/chunk-RIPAEGI6.mjs.map +1 -0
- package/dist/{chunk-LEAXOMYJ.mjs → chunk-SGPUJW3F.mjs} +117 -5
- package/dist/chunk-SGPUJW3F.mjs.map +1 -0
- package/dist/{chunk-PA5DRJNI.mjs → chunk-X2KA6WHM.mjs} +29 -4
- package/dist/chunk-X2KA6WHM.mjs.map +1 -0
- package/dist/{chunk-BLXGONR2.mjs → chunk-XSFB7XXQ.mjs} +51 -4
- package/dist/chunk-XSFB7XXQ.mjs.map +1 -0
- package/dist/cloud/density.d.ts +55 -0
- package/dist/cloud/density.d.ts.map +1 -0
- package/dist/cloud/extract.d.ts +25 -0
- package/dist/cloud/extract.d.ts.map +1 -0
- package/dist/cloud/feature.d.ts +57 -0
- package/dist/cloud/feature.d.ts.map +1 -0
- package/dist/cloud/frame-context.d.ts +8 -0
- package/dist/cloud/frame-context.d.ts.map +1 -0
- package/dist/cloud/inspection.d.ts +59 -0
- package/dist/cloud/inspection.d.ts.map +1 -0
- package/dist/cloud/optics.d.ts +56 -0
- package/dist/cloud/optics.d.ts.map +1 -0
- package/dist/cloud/parameters.d.ts +73 -0
- package/dist/cloud/parameters.d.ts.map +1 -0
- package/dist/cloud/resources.d.ts +60 -0
- package/dist/cloud/resources.d.ts.map +1 -0
- package/dist/cloud/shadow.d.ts +42 -0
- package/dist/cloud/shadow.d.ts.map +1 -0
- package/dist/cloud/temporal.d.ts +74 -0
- package/dist/cloud/temporal.d.ts.map +1 -0
- package/dist/components/barrel-distortion.d.ts +13 -0
- package/dist/components/barrel-distortion.d.ts.map +1 -0
- package/dist/components/cloud-layer.d.ts +29 -0
- package/dist/components/cloud-layer.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/instances.d.ts +20 -6
- package/dist/components/instances.d.ts.map +1 -1
- package/dist/construct-renderer.d.ts +1 -1
- package/dist/construct-renderer.d.ts.map +1 -1
- package/dist/construct-renderer.mjs +8406 -5785
- package/dist/construct-renderer.mjs.map +1 -1
- package/dist/device/gpu-residency.d.ts +19 -19
- package/dist/device/gpu-residency.d.ts.map +1 -1
- package/dist/dynamic-geometry.d.ts +5 -1
- package/dist/dynamic-geometry.d.ts.map +1 -1
- package/dist/errors/cloud.d.ts +59 -0
- package/dist/errors/cloud.d.ts.map +1 -0
- package/dist/errors/render.d.ts +20 -5
- package/dist/errors/render.d.ts.map +1 -1
- package/dist/examples/single-layer-medium-surface.d.ts +47 -0
- package/dist/examples/single-layer-medium-surface.d.ts.map +1 -0
- package/dist/extract/camera.d.ts.map +1 -1
- package/dist/extract/contracts.d.ts +5 -1
- package/dist/extract/contracts.d.ts.map +1 -1
- package/dist/extract/material-context.d.ts +7 -0
- package/dist/extract/material-context.d.ts.map +1 -0
- package/dist/features/barrel-distortion.d.ts +29 -0
- package/dist/features/barrel-distortion.d.ts.map +1 -0
- package/dist/features/error-reporting.d.ts +6 -2
- package/dist/features/error-reporting.d.ts.map +1 -1
- package/dist/features/host.d.ts +15 -0
- package/dist/features/host.d.ts.map +1 -1
- package/dist/features/plan.d.ts +10 -0
- package/dist/features/plan.d.ts.map +1 -1
- package/dist/features/render-graph-contribution.d.ts +5 -0
- package/dist/features/render-graph-contribution.d.ts.map +1 -1
- package/dist/features/render-graph-raster.d.ts +1 -0
- package/dist/features/render-graph-raster.d.ts.map +1 -1
- package/dist/features/targets.d.ts +2 -0
- package/dist/features/targets.d.ts.map +1 -1
- package/dist/features/types.d.ts +48 -0
- package/dist/features/types.d.ts.map +1 -1
- package/dist/fullscreen-post-process-pass.d.ts +15 -7
- package/dist/fullscreen-post-process-pass.d.ts.map +1 -1
- package/dist/glyph-text-layout-system.d.ts +1 -1
- package/dist/glyph-text-layout-system.d.ts.map +1 -1
- package/dist/gpu-dirty-ranges.d.ts +11 -0
- package/dist/gpu-dirty-ranges.d.ts.map +1 -0
- package/dist/gpu-driven/batch-topology.d.ts +17 -0
- package/dist/gpu-driven/batch-topology.d.ts.map +1 -1
- package/dist/gpu-driven/material-artifacts.d.ts +6 -0
- package/dist/gpu-driven/material-artifacts.d.ts.map +1 -1
- package/dist/gpu-driven/prepared-draw.d.ts.map +1 -1
- package/dist/gpu-driven/production-raster-material.d.ts +178 -0
- package/dist/gpu-driven/production-raster-material.d.ts.map +1 -0
- package/dist/gpu-driven/production-raster.d.ts +47 -3
- package/dist/gpu-driven/production-raster.d.ts.map +1 -1
- package/dist/gpu-driven/resource-allocation.d.ts +31 -0
- package/dist/gpu-driven/resource-allocation.d.ts.map +1 -0
- package/dist/gpu-driven/shadow-ownership.d.ts +14 -0
- package/dist/gpu-driven/shadow-ownership.d.ts.map +1 -0
- package/dist/gpu-driven/view-gpu.d.ts +26 -2
- package/dist/gpu-driven/view-gpu.d.ts.map +1 -1
- package/dist/gpu-scene.d.ts +5 -0
- package/dist/gpu-scene.d.ts.map +1 -1
- package/dist/hdrp-buffers.d.ts +2 -2
- package/dist/hdrp-buffers.d.ts.map +1 -1
- package/dist/ibl/frame-resources.d.ts.map +1 -1
- package/dist/ibl/skylight-bind-group.d.ts +14 -5
- package/dist/ibl/skylight-bind-group.d.ts.map +1 -1
- package/dist/index.d.ts +30 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +780 -9
- package/dist/index.mjs.map +1 -1
- package/dist/inspection-types.d.ts +135 -1
- package/dist/inspection-types.d.ts.map +1 -1
- package/dist/instance-buffer-cache.d.ts +4 -4
- package/dist/instance-buffer-cache.d.ts.map +1 -1
- package/dist/instances.d.ts +47 -100
- package/dist/instances.d.ts.map +1 -1
- package/dist/internal.mjs +7 -8
- package/dist/internal.mjs.map +1 -1
- package/dist/pbr-pipeline.d.ts +22 -4
- package/dist/pbr-pipeline.d.ts.map +1 -1
- package/dist/pipeline/single-layer-medium-passes.d.ts +73 -0
- package/dist/pipeline/single-layer-medium-passes.d.ts.map +1 -0
- package/dist/pipeline/standard-forward-lane.d.ts.map +1 -1
- package/dist/pipeline/standard-output/graph.d.ts.map +1 -1
- package/dist/pipeline/standard-output/lut-gpu.d.ts +2 -2
- package/dist/pipeline/standard-output/lut-gpu.d.ts.map +1 -1
- package/dist/pipeline/standard-output/resources.d.ts +2 -2
- package/dist/pipeline/standard-output/resources.d.ts.map +1 -1
- package/dist/pipeline/standard-output/types.d.ts +4 -2
- package/dist/pipeline/standard-output/types.d.ts.map +1 -1
- package/dist/pipeline/standard-pipeline.d.ts.map +1 -1
- package/dist/pipeline/standard-post.d.ts.map +1 -1
- package/dist/pipeline-builder.d.ts +1 -1
- package/dist/pipeline-builder.d.ts.map +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/prepare/prepared-graphics-resolver.d.ts +2 -0
- package/dist/prepare/prepared-graphics-resolver.d.ts.map +1 -1
- package/dist/publication/contract.d.ts +77 -0
- package/dist/publication/contract.d.ts.map +1 -0
- package/dist/publication/dependencies.d.ts +7 -0
- package/dist/publication/dependencies.d.ts.map +1 -0
- package/dist/publication/prepare-geometry.d.ts +9 -0
- package/dist/publication/prepare-geometry.d.ts.map +1 -0
- package/dist/publication/programs.d.ts +5 -0
- package/dist/publication/programs.d.ts.map +1 -0
- package/dist/publication/publisher.d.ts +33 -0
- package/dist/publication/publisher.d.ts.map +1 -0
- package/dist/publication/receiver.d.ts +29 -0
- package/dist/publication/receiver.d.ts.map +1 -0
- package/dist/publication/resource-scope.d.ts +18 -0
- package/dist/publication/resource-scope.d.ts.map +1 -0
- package/dist/publication/targets.d.ts +33 -0
- package/dist/publication/targets.d.ts.map +1 -0
- package/dist/publication/video.d.ts +5 -0
- package/dist/publication/video.d.ts.map +1 -0
- package/dist/record/barrel-distortion-frame.d.ts +15 -0
- package/dist/record/barrel-distortion-frame.d.ts.map +1 -0
- package/dist/record/dynamic-geometry-consumption.d.ts +10 -2
- package/dist/record/dynamic-geometry-consumption.d.ts.map +1 -1
- package/dist/record/fold-buckets.d.ts +95 -0
- package/dist/record/fold-buckets.d.ts.map +1 -0
- package/dist/record/fold-instance-buffer.d.ts +6 -0
- package/dist/record/fold-instance-buffer.d.ts.map +1 -0
- package/dist/record/frame-lighting.d.ts +1 -0
- package/dist/record/frame-lighting.d.ts.map +1 -1
- package/dist/record/frame-snapshot.d.ts +43 -9
- package/dist/record/frame-snapshot.d.ts.map +1 -1
- package/dist/record/frame.d.ts +15 -65
- package/dist/record/frame.d.ts.map +1 -1
- package/dist/record/gpu-draw-receipts.d.ts +11 -0
- package/dist/record/gpu-draw-receipts.d.ts.map +1 -0
- package/dist/record/gpu-timing.d.ts +8 -0
- package/dist/record/gpu-timing.d.ts.map +1 -1
- package/dist/record/helpers.d.ts +2 -2
- package/dist/record/helpers.d.ts.map +1 -1
- package/dist/record/main-pass-geometry.d.ts +22 -6
- package/dist/record/main-pass-geometry.d.ts.map +1 -1
- package/dist/record/main-pass-material.d.ts +14 -10
- package/dist/record/main-pass-material.d.ts.map +1 -1
- package/dist/record/main-pass-sprite-draws.d.ts +3 -16
- package/dist/record/main-pass-sprite-draws.d.ts.map +1 -1
- package/dist/record/main-pass.d.ts +13 -2
- package/dist/record/main-pass.d.ts.map +1 -1
- package/dist/record/motion-blur-receipt.d.ts +11 -0
- package/dist/record/motion-blur-receipt.d.ts.map +1 -0
- package/dist/record/prepared-material-bindings.d.ts +3 -3
- package/dist/record/prepared-material-bindings.d.ts.map +1 -1
- package/dist/record/probe-blend-buffer.d.ts +16 -0
- package/dist/record/probe-blend-buffer.d.ts.map +1 -0
- package/dist/record/recovery-pipeline.d.ts.map +1 -1
- package/dist/record/render-context.d.ts +24 -5
- package/dist/record/render-context.d.ts.map +1 -1
- package/dist/record/shadow-pass.d.ts +2 -0
- package/dist/record/shadow-pass.d.ts.map +1 -1
- package/dist/record/skybox-post-pass.d.ts +1 -1
- package/dist/record/skybox-post-pass.d.ts.map +1 -1
- package/dist/record/sprite-instance-buffer.d.ts +31 -0
- package/dist/record/sprite-instance-buffer.d.ts.map +1 -0
- package/dist/record/target-capture-graph.d.ts +19 -0
- package/dist/record/target-capture-graph.d.ts.map +1 -0
- package/dist/record/typed-frame-graph.d.ts +24 -15
- package/dist/record/typed-frame-graph.d.ts.map +1 -1
- package/dist/record/view-ubo.d.ts +11 -3
- package/dist/record/view-ubo.d.ts.map +1 -1
- package/dist/record/volume-params.d.ts +9 -0
- package/dist/record/volume-params.d.ts.map +1 -0
- package/dist/recovery/render-system-candidate.d.ts +14 -4
- package/dist/recovery/render-system-candidate.d.ts.map +1 -1
- package/dist/reflection/record-owner.d.ts.map +1 -1
- package/dist/render-contract.d.ts +46 -5
- package/dist/render-contract.d.ts.map +1 -1
- package/dist/render-graph-primitives.d.ts.map +1 -1
- package/dist/render-pipeline.d.ts +103 -2
- package/dist/render-pipeline.d.ts.map +1 -1
- package/dist/render-system-extract-tail.d.ts +3 -2
- package/dist/render-system-extract-tail.d.ts.map +1 -1
- package/dist/render-system-extract.d.ts +18 -9
- package/dist/render-system-extract.d.ts.map +1 -1
- package/dist/render-system-presentation.d.ts +23 -0
- package/dist/render-system-presentation.d.ts.map +1 -0
- package/dist/render-system-producer-roots.d.ts +10 -0
- package/dist/render-system-producer-roots.d.ts.map +1 -0
- package/dist/render-system-projections.d.ts +3 -2
- package/dist/render-system-projections.d.ts.map +1 -1
- package/dist/render-system-residency.d.ts +12 -0
- package/dist/render-system-residency.d.ts.map +1 -0
- package/dist/render-system.d.ts +22 -21
- package/dist/render-system.d.ts.map +1 -1
- package/dist/scene/probe-blend.d.ts +27 -0
- package/dist/scene/probe-blend.d.ts.map +1 -1
- package/dist/scene/render-scene.d.ts +18 -7
- package/dist/scene/render-scene.d.ts.map +1 -1
- package/dist/scene/render-source.d.ts +42 -0
- package/dist/scene/render-source.d.ts.map +1 -0
- package/dist/scene/source-systems.d.ts +6 -0
- package/dist/scene/source-systems.d.ts.map +1 -0
- package/dist/ssao-buffers.d.ts +9 -0
- package/dist/ssao-buffers.d.ts.map +1 -1
- package/dist/surface/dynamic-input.d.ts +133 -0
- package/dist/surface/dynamic-input.d.ts.map +1 -0
- package/dist/surface/gpu-driven.d.ts +41 -0
- package/dist/surface/gpu-driven.d.ts.map +1 -0
- package/dist/surface/submission-observation.d.ts +136 -0
- package/dist/surface/submission-observation.d.ts.map +1 -0
- package/dist/systems/skin-palette-allocator.d.ts.map +1 -1
- package/dist/systems/skin-palette-types.d.ts +10 -0
- package/dist/systems/skin-palette-types.d.ts.map +1 -1
- package/dist/systems/transparent-dispatch.d.ts +2 -2
- package/dist/systems/transparent-dispatch.d.ts.map +1 -1
- package/dist/systems/transparent-sort-config.d.ts +2 -1
- package/dist/systems/transparent-sort-config.d.ts.map +1 -1
- package/dist/temporal/gpu.d.ts +13 -1
- package/dist/temporal/gpu.d.ts.map +1 -1
- package/dist/temporal/index.mjs +6 -7
- package/dist/temporal/inspection.d.ts.map +1 -1
- package/dist/temporal/standard-scene-data.d.ts.map +1 -1
- package/dist/temporal/target-coverage-attachment.d.ts.map +1 -1
- package/dist/transmission/single-layer-medium.d.ts +89 -0
- package/dist/transmission/single-layer-medium.d.ts.map +1 -0
- package/dist/typed-render-graph-primitives.d.ts +14 -2
- package/dist/typed-render-graph-primitives.d.ts.map +1 -1
- package/dist/volume/component.d.ts +9 -4
- package/dist/volume/component.d.ts.map +1 -1
- package/dist/volume/extract.d.ts +1 -1
- package/dist/volume/extract.d.ts.map +1 -1
- package/dist/volume/inspection.d.ts +2 -0
- package/dist/volume/inspection.d.ts.map +1 -1
- package/dist/volume/passes.d.ts +4 -1
- package/dist/volume/passes.d.ts.map +1 -1
- package/dist/volume/resources.d.ts.map +1 -1
- package/package.json +22 -21
- package/src/__tests__/atmosphere-daylight.dawn.test.ts +72 -0
- package/src/__tests__/auto-exposure-transaction.integration.test.ts +4 -9
- package/src/__tests__/barrel-distortion-lkg.integration.test.ts +353 -0
- package/src/__tests__/barrel-distortion.dawn.test.ts +41 -0
- package/src/__tests__/barrel-distortion.unit.test.ts +364 -0
- package/src/__tests__/construct-renderer-identity.unit.test.ts +49 -0
- package/src/__tests__/detached-recovery-graph.unit.test.ts +277 -0
- package/src/__tests__/device-feature-admission.unit.test.ts +3 -2
- package/src/__tests__/device-loss-fanout.unit.test.ts +36 -1
- package/src/__tests__/docs-gate-green.unit.test.ts +112 -1
- package/src/__tests__/factory-contract.integration.test.ts +295 -45
- package/src/__tests__/feature-depth-input.dawn.test.ts +129 -2
- package/src/__tests__/fullscreen-feature-plan.unit.test.ts +14 -3
- package/src/__tests__/gpu-dirty-ranges.unit.test.ts +22 -0
- package/src/__tests__/gpu-driven-baseline.characterization.test.ts +16 -3
- package/src/__tests__/gpu-driven-batch-topology-pbr.unit.test.ts +12 -0
- package/src/__tests__/gpu-driven-material-artifacts.unit.test.ts +143 -0
- package/src/__tests__/gpu-driven-pbr.dawn.test.ts +5 -6
- package/src/__tests__/gpu-driven-production.integration.test.ts +482 -3
- package/src/__tests__/gpu-driven-shadow-views.dawn.test.ts +6 -5
- package/src/__tests__/gpu-driven-view-gpu-evidence.ts +94 -6
- package/src/__tests__/gpu-driven-view-graph.integration.test.ts +18 -2
- package/src/__tests__/gpu-driven-view.browser.test.ts +5 -8
- package/src/__tests__/gpu-driven-view.dawn.test.ts +6 -2
- package/src/__tests__/gpu-driven-view.unit.test.ts +1 -1
- package/src/__tests__/gpu-pass-timing-lifecycle.integration.test.ts +1 -0
- package/src/__tests__/gpu-pass-timing.browser.test.ts +6 -4
- package/src/__tests__/gpu-pass-timing.rhi-null.unit.test.ts +1 -0
- package/src/__tests__/gpu-scene.unit.test.ts +119 -9
- package/src/__tests__/instance-allocation-failure.unit.test.ts +57 -0
- package/src/__tests__/instances-culling.integration.test.ts +10 -36
- package/src/__tests__/instances-store.unit.test.ts +97 -305
- package/src/__tests__/instances-world-ownership.integration.test.ts +62 -0
- package/src/__tests__/ktx2-basis-gpu-consumer.dawn.test.ts +4 -1
- package/src/__tests__/main-pass-material-medium-selection.unit.test.ts +145 -0
- package/src/__tests__/material-shader-prewarm.unit.test.ts +59 -0
- package/src/__tests__/material-snapshot-mutation.integration.test.ts +39 -1
- package/src/__tests__/materials-standard-contract.unit.test.ts +0 -1
- package/src/__tests__/morph-culling-reentry.dawn.test.ts +5 -5
- package/src/__tests__/morph-visual-evidence.integration.test.ts +8 -7
- package/src/__tests__/motion-blur-compute.dawn.test.ts +13 -7
- package/src/__tests__/motion-blur.pixel.integration.test.ts +2 -2
- package/src/__tests__/nineslice-handle-surface.unit.test.ts +4 -4
- package/src/__tests__/pbr-view-layout.unit.test.ts +9 -0
- package/src/__tests__/physical-clearcoat.integration.test.ts +66 -8
- package/src/__tests__/physical-material-budget.unit.test.ts +40 -0
- package/src/__tests__/prepared-graphics-capability.unit.test.ts +66 -2
- package/src/__tests__/probe-bindings.unit.test.ts +582 -1
- package/src/__tests__/probe-scene-dirty.integration.test.ts +28 -1
- package/src/__tests__/receipt-observation-retirement.unit.test.ts +65 -0
- package/src/__tests__/recovery-candidate-prepare.contract.test.ts +69 -0
- package/src/__tests__/render-error-code-owner.test-d.ts +8 -0
- package/src/__tests__/render-feature-diagnostics.unit.test.ts +15 -2
- package/src/__tests__/render-feature-error-reporting.unit.test.ts +21 -1
- package/src/__tests__/render-feature-prepared-diagnostics.unit.test.ts +10 -1
- package/src/__tests__/render-feature-retry.unit.test.ts +12 -1
- package/src/__tests__/render-scene-mixed-updates.integration.test.ts +145 -19
- package/src/__tests__/render-scene-projection.unit.test.ts +36 -11
- package/src/__tests__/render-scene-temporal-retry.unit.test.ts +20 -20
- package/src/__tests__/render-target-probe-soak.perf.test.ts +2 -2
- package/src/__tests__/render-temporal-environment-consumer.browser.test.ts +3 -3
- package/src/__tests__/render-temporal-environment-consumer.dawn.test.ts +5 -2
- package/src/__tests__/renderer-factory-material-contract.unit.test.ts +42 -8
- package/src/__tests__/renderer-frame-generation-fence.integration.test.ts +16 -0
- package/src/__tests__/renderer-frame-transaction.integration.test.ts +26 -10
- package/src/__tests__/resource-allocation.unit.test.ts +123 -0
- package/src/__tests__/single-layer-medium-passes.unit.test.ts +275 -0
- package/src/__tests__/skin-motion-regression.unit.test.ts +70 -1
- package/src/__tests__/skin-palette-recycling.dawn.test.ts +97 -0
- package/src/__tests__/skinned-shadow-caster.test.ts +15 -0
- package/src/__tests__/ssr-carrier-public-contract.unit.test.ts +21 -0
- package/src/__tests__/ssr-gpu-dispatch.browser.test.ts +4 -4
- package/src/__tests__/ssr-gpu-dispatch.dawn.test.ts +2 -2
- package/src/__tests__/ssr-gpu-dispatch.ts +1 -1
- package/src/__tests__/ssr-receiver-coverage.dawn.test.ts +6 -2
- package/src/__tests__/standard-output-chain-contract.unit.test.ts +28 -0
- package/src/__tests__/standard-pbr-artifact-assembly.unit.test.ts +46 -1
- package/src/__tests__/standard-pipeline.integration.test.ts +182 -1
- package/src/__tests__/surface-dynamic-buffer-lifecycle.unit.test.ts +506 -0
- package/src/__tests__/surface-submission-observation.unit.test.ts +812 -0
- package/src/__tests__/temporal-history-lifecycle.unit.test.ts +32 -0
- package/src/__tests__/temporal-performance.integration.test.ts +3 -3
- package/src/__tests__/visibility-instances.integration.test.ts +7 -19
- package/src/__tests__/visibility-producer-matrix.integration.test.ts +9 -20
- package/src/__tests__/volume-optics-oracle.unit.test.ts +4 -2
- package/src/__tests__/volumetric-fog-budget-recovery.integration.test.ts +30 -20
- package/src/__tests__/volumetric-fog-errors.unit.test.ts +4 -3
- package/src/__tests__/volumetric-fog-multiple.unit.test.ts +55 -0
- package/src/__tests__/volumetric-fog-spot-frame-optics.integration.test.ts +1 -1
- package/src/__tests__/volumetric-fog-stage-readback.dawn.test.ts +113 -9
- package/src/__tests__/volumetric-fog-topology.unit.test.ts +5 -3
- package/src/assembly/backend-contract.ts +30 -0
- package/src/assembly/barrel-distortion-inspection.ts +22 -0
- package/src/assembly/canvas-draw-guard.ts +11 -0
- package/src/assembly/cloud-shadow-entry.ts +22 -0
- package/src/assembly/device-feature-admission.ts +2 -2
- package/src/assembly/dynamic-geometry-host.ts +65 -37
- package/src/assembly/dynamic-geometry-runtime.ts +7 -1
- package/src/assembly/factory.ts +2 -30
- package/src/assembly/host-contract.ts +8 -5
- package/src/assembly/material/assembly.ts +25 -13
- package/src/assembly/material/pipeline-helpers.ts +53 -12
- package/src/assembly/material-shader-policy.ts +55 -0
- package/src/assembly/material-shader-prewarm.ts +21 -10
- package/src/assembly/recovery/device-loss-fanout.ts +13 -0
- package/src/assembly/recovery/renderer-recover.ts +50 -18
- package/src/assembly/render-feature-post-processes.ts +54 -0
- package/src/assembly/render-target-host.ts +57 -47
- package/src/assembly/renderer-facade.ts +7 -2
- package/src/assembly/renderer-feature-inspection.ts +8 -2
- package/src/assembly/renderer-frame-transaction.ts +23 -0
- package/src/assembly/renderer-inspection.ts +28 -0
- package/src/assembly/skin-palette-owner.ts +1 -1
- package/src/assembly/temporal-post-process-prewarm.ts +3 -3
- package/src/assembly/webgpu-pbr-ready.ts +9 -1
- package/src/assembly/webgpu-ready-per-pass.ts +104 -0
- package/src/assembly/webgpu-ready.ts +116 -62
- package/src/assembly/webgpu-renderer-bootstrap.ts +0 -12
- package/src/assembly/webgpu-renderer-observation-owner.ts +222 -0
- package/src/assembly/webgpu-renderer.ts +303 -313
- package/src/assembly/webgpu-vertex-layouts.ts +1 -1
- package/src/barrel-distortion.ts +247 -0
- package/src/cloud/__tests__/cloud-density-parity.dawn.test.ts +173 -0
- package/src/cloud/__tests__/cloud-layer-framebuffer-y.dawn.test.ts +265 -0
- package/src/cloud/__tests__/cloud-layer.browser.test.ts +432 -0
- package/src/cloud/__tests__/cloud-layer.unit.test.ts +634 -0
- package/src/cloud/density.ts +600 -0
- package/src/cloud/extract.ts +110 -0
- package/src/cloud/feature.ts +1810 -0
- package/src/cloud/frame-context.ts +42 -0
- package/src/cloud/inspection.ts +130 -0
- package/src/cloud/optics.ts +285 -0
- package/src/cloud/parameters.ts +255 -0
- package/src/cloud/resources.ts +122 -0
- package/src/cloud/shadow.ts +167 -0
- package/src/cloud/temporal.ts +226 -0
- package/src/components/barrel-distortion.ts +46 -0
- package/src/components/cloud-layer.ts +47 -0
- package/src/components/index.ts +2 -0
- package/src/components/instances.ts +18 -45
- package/src/components/sprite-instances.ts +1 -1
- package/src/construct-renderer.ts +1 -1
- package/src/device/gpu-residency.ts +26 -25
- package/src/dynamic-geometry.ts +12 -1
- package/src/errors/cloud.ts +103 -0
- package/src/errors/render.ts +47 -8
- package/src/examples/single-layer-medium-surface.ts +59 -0
- package/src/extract/camera.ts +15 -1
- package/src/extract/contracts.ts +5 -0
- package/src/extract/material-context.ts +21 -0
- package/src/features/barrel-distortion.ts +172 -0
- package/src/features/error-reporting.ts +26 -6
- package/src/features/host.ts +128 -19
- package/src/features/plan.ts +10 -0
- package/src/features/render-graph-contribution.ts +9 -0
- package/src/features/render-graph-raster.ts +45 -3
- package/src/features/targets.ts +66 -0
- package/src/features/types.ts +51 -0
- package/src/fullscreen-post-process-pass.ts +41 -9
- package/src/glyph-text-layout-system.ts +2 -2
- package/src/gpu-dirty-ranges.ts +48 -0
- package/src/gpu-driven/batch-topology.ts +53 -0
- package/src/gpu-driven/material-artifacts.ts +33 -25
- package/src/gpu-driven/prepared-draw.ts +12 -4
- package/src/gpu-driven/production-raster-material.ts +1894 -0
- package/src/gpu-driven/production-raster.ts +825 -784
- package/src/gpu-driven/resource-allocation.ts +142 -0
- package/src/gpu-driven/shadow-ownership.ts +71 -0
- package/src/gpu-driven/view-gpu.ts +164 -10
- package/src/gpu-scene.ts +75 -84
- package/src/hdrp-buffers.ts +4 -3
- package/src/ibl/frame-resources.ts +0 -1
- package/src/ibl/skylight-bind-group.ts +62 -32
- package/src/index.ts +205 -9
- package/src/inspection-types.ts +162 -0
- package/src/instance-buffer-cache.ts +4 -4
- package/src/instances.ts +152 -569
- package/src/pbr-pipeline.ts +230 -30
- package/src/pipeline/single-layer-medium-passes.ts +267 -0
- package/src/pipeline/standard-forward-lane.ts +313 -57
- package/src/pipeline/standard-output/graph.ts +8 -2
- package/src/pipeline/standard-output/lut-gpu.ts +3 -3
- package/src/pipeline/standard-output/resources.ts +2 -2
- package/src/pipeline/standard-output/types.ts +12 -1
- package/src/pipeline/standard-pipeline.ts +291 -18
- package/src/pipeline/standard-post.ts +90 -24
- package/src/pipeline-builder.ts +1 -1
- package/src/plugin.ts +4 -0
- package/src/points-lines/__tests__/points-lines.bench.ts +17 -8
- package/src/prepare/prepared-graphics-resolver.ts +2 -0
- package/src/publication/__tests__/derived-geometry.integration.test.ts +177 -0
- package/src/publication/__tests__/features.integration.test.ts +122 -0
- package/src/publication/__tests__/programs.unit.test.ts +25 -0
- package/src/publication/__tests__/publication.integration.test.ts +370 -0
- package/src/publication/__tests__/targets.integration.test.ts +120 -0
- package/src/publication/__tests__/video.browser.test.ts +50 -0
- package/src/publication/contract.ts +104 -0
- package/src/publication/dependencies.ts +54 -0
- package/src/publication/prepare-geometry.ts +94 -0
- package/src/publication/programs.ts +45 -0
- package/src/publication/publisher.ts +618 -0
- package/src/publication/receiver.ts +297 -0
- package/src/publication/resource-scope.ts +31 -0
- package/src/publication/targets.ts +182 -0
- package/src/publication/video.ts +33 -0
- package/src/record/__tests__/main-pass-geometry.unit.test.ts +30 -0
- package/src/record/__tests__/material-bg-cache.unit.test.ts +15 -1
- package/src/record/__tests__/sprite-material-abi.unit.test.ts +9 -11
- package/src/record/__tests__/temporal-payload.unit.test.ts +1 -1
- package/src/record/__tests__/transparent-group2-selection.unit.test.ts +11 -0
- package/src/record/__tests__/typed-frame-graph-plan.unit.test.ts +1 -0
- package/src/record/__tests__/video-texture-view.unit.test.ts +9 -9
- package/src/record/__tests__/view-ubo-layout.unit.test.ts +4 -3
- package/src/record/barrel-distortion-frame.ts +110 -0
- package/src/record/dynamic-geometry-consumption.ts +39 -9
- package/src/record/fold-buckets.ts +855 -0
- package/src/record/fold-instance-buffer.ts +51 -0
- package/src/record/frame-lighting.ts +36 -2
- package/src/record/frame-snapshot.ts +45 -9
- package/src/record/frame.ts +258 -1105
- package/src/record/gpu-draw-receipts.ts +38 -0
- package/src/record/gpu-timing.ts +48 -5
- package/src/record/helpers.ts +2 -2
- package/src/record/main-pass-geometry.ts +272 -84
- package/src/record/main-pass-material.ts +102 -36
- package/src/record/main-pass-sprite-draws.ts +13 -217
- package/src/record/main-pass.ts +164 -27
- package/src/record/motion-blur-receipt.ts +91 -0
- package/src/record/prepared-material-bindings.ts +11 -6
- package/src/record/probe-blend-buffer.ts +180 -0
- package/src/record/recovery-pipeline.ts +35 -3
- package/src/record/render-context.ts +41 -5
- package/src/record/shadow-pass.ts +30 -4
- package/src/record/skybox-post-pass.ts +28 -4
- package/src/record/sprite-instance-buffer.ts +155 -0
- package/src/record/target-capture-graph.ts +258 -0
- package/src/record/typed-frame-graph.ts +776 -340
- package/src/record/view-ubo.ts +27 -4
- package/src/record/volume-params.ts +225 -0
- package/src/recovery/render-system-candidate.ts +243 -50
- package/src/reflection/record-owner.ts +7 -3
- package/src/render-contract.ts +54 -5
- package/src/render-graph-primitives.ts +7 -1
- package/src/render-pipeline.ts +130 -0
- package/src/render-system-extract-tail.ts +90 -78
- package/src/render-system-extract.ts +76 -76
- package/src/render-system-presentation.ts +56 -0
- package/src/render-system-producer-roots.ts +96 -0
- package/src/render-system-projections.ts +3 -2
- package/src/render-system-residency.ts +159 -0
- package/src/render-system.ts +421 -408
- package/src/scene/probe-blend.ts +96 -4
- package/src/scene/render-scene.ts +416 -337
- package/src/scene/render-source.ts +90 -0
- package/src/scene/source-systems.ts +33 -0
- package/src/ssao-buffers.ts +95 -2
- package/src/surface/__tests__/dynamic-input.unit.test.ts +374 -0
- package/src/surface/__tests__/gpu-driven.unit.test.ts +87 -0
- package/src/surface/dynamic-input.ts +658 -0
- package/src/surface/gpu-driven.ts +147 -0
- package/src/surface/submission-observation.ts +517 -0
- package/src/systems/skin-palette-allocator.ts +5 -1
- package/src/systems/skin-palette-types.ts +11 -0
- package/src/systems/transparent-dispatch.ts +2 -2
- package/src/systems/transparent-sort-config.ts +3 -1
- package/src/temporal/gpu.ts +101 -17
- package/src/temporal/inspection.ts +7 -1
- package/src/temporal/standard-scene-data.ts +5 -0
- package/src/temporal/target-coverage-attachment.ts +4 -0
- package/src/transmission/__tests__/single-layer-medium.unit.test.ts +149 -0
- package/src/transmission/__tests__/standard-transmission.dawn.test.ts +12 -11
- package/src/transmission/single-layer-medium.ts +322 -0
- package/src/typed-render-graph-primitives.ts +70 -2
- package/src/volume/component.ts +10 -9
- package/src/volume/extract.ts +11 -5
- package/src/volume/inspection.ts +3 -0
- package/src/volume/passes.ts +87 -4
- package/src/volume/resources.ts +2 -1
- package/dist/chunk-3RTCJTH4.mjs +0 -1610
- package/dist/chunk-3RTCJTH4.mjs.map +0 -1
- package/dist/chunk-BLXGONR2.mjs.map +0 -1
- package/dist/chunk-ILQ5MEZF.mjs +0 -32
- package/dist/chunk-ILQ5MEZF.mjs.map +0 -1
- package/dist/chunk-LEAXOMYJ.mjs.map +0 -1
- package/dist/chunk-NB2S7ZRX.mjs +0 -1783
- package/dist/chunk-NB2S7ZRX.mjs.map +0 -1
- package/dist/chunk-NNQL7CB3.mjs +0 -1713
- package/dist/chunk-NNQL7CB3.mjs.map +0 -1
- package/dist/chunk-OO3DRYK7.mjs.map +0 -1
- package/dist/chunk-PA5DRJNI.mjs.map +0 -1
- package/dist/chunk-PLAXOOX5.mjs +0 -1907
- package/dist/chunk-PLAXOOX5.mjs.map +0 -1
- package/dist/chunk-RXZ3RGOU.mjs +0 -53
- package/dist/chunk-RXZ3RGOU.mjs.map +0 -1
- package/dist/chunk-VOZWDM3L.mjs.map +0 -1
package/dist/chunk-NB2S7ZRX.mjs
DELETED
|
@@ -1,1783 +0,0 @@
|
|
|
1
|
-
import { err, ok } from '@forgeax/engine-types';
|
|
2
|
-
import { cubeArrayDepthDescriptor, comparisonSamplerDescriptor, cubeArrayDepthFaceView } from '@forgeax/engine-rhi';
|
|
3
|
-
|
|
4
|
-
// src/pipeline/standard-output/auto-exposure/inspection.ts
|
|
5
|
-
var AutoExposureInvalidParameterError = class extends Error {
|
|
6
|
-
constructor(detail) {
|
|
7
|
-
super(`auto-exposure-invalid-parameter: ${detail.field}`);
|
|
8
|
-
this.detail = detail;
|
|
9
|
-
this.name = "AutoExposureInvalidParameterError";
|
|
10
|
-
}
|
|
11
|
-
detail;
|
|
12
|
-
code = "auto-exposure-invalid-parameter";
|
|
13
|
-
expected = ERROR_POLICY[this.code].expected;
|
|
14
|
-
hint = ERROR_POLICY[this.code].hint;
|
|
15
|
-
};
|
|
16
|
-
var AutoExposureCapabilityUnavailableError = class extends Error {
|
|
17
|
-
constructor(detail) {
|
|
18
|
-
super(`auto-exposure-capability-unavailable: ${detail.capability}`);
|
|
19
|
-
this.detail = detail;
|
|
20
|
-
this.name = "AutoExposureCapabilityUnavailableError";
|
|
21
|
-
}
|
|
22
|
-
detail;
|
|
23
|
-
code = "auto-exposure-capability-unavailable";
|
|
24
|
-
expected = ERROR_POLICY[this.code].expected;
|
|
25
|
-
hint = ERROR_POLICY[this.code].hint;
|
|
26
|
-
};
|
|
27
|
-
var AutoExposureStaleGenerationError = class extends Error {
|
|
28
|
-
constructor(detail) {
|
|
29
|
-
super(
|
|
30
|
-
`auto-exposure-stale-generation: ${detail.actualGeneration} != ${detail.expectedGeneration}`
|
|
31
|
-
);
|
|
32
|
-
this.detail = detail;
|
|
33
|
-
this.name = "AutoExposureStaleGenerationError";
|
|
34
|
-
}
|
|
35
|
-
detail;
|
|
36
|
-
code = "auto-exposure-stale-generation";
|
|
37
|
-
expected = ERROR_POLICY[this.code].expected;
|
|
38
|
-
hint = ERROR_POLICY[this.code].hint;
|
|
39
|
-
};
|
|
40
|
-
var AutoExposureStageFailedError = class extends Error {
|
|
41
|
-
constructor(detail) {
|
|
42
|
-
super(`auto-exposure-stage-failed: ${detail.operation}`);
|
|
43
|
-
this.detail = detail;
|
|
44
|
-
this.name = "AutoExposureStageFailedError";
|
|
45
|
-
}
|
|
46
|
-
detail;
|
|
47
|
-
code = "auto-exposure-stage-failed";
|
|
48
|
-
expected = ERROR_POLICY[this.code].expected;
|
|
49
|
-
hint = ERROR_POLICY[this.code].hint;
|
|
50
|
-
};
|
|
51
|
-
var ERROR_POLICY = {
|
|
52
|
-
"auto-exposure-invalid-parameter": {
|
|
53
|
-
expected: "camera auto-exposure parameters are finite and within their declared ranges",
|
|
54
|
-
hint: "inspect the field and provide a finite value before rebuilding the camera output"
|
|
55
|
-
},
|
|
56
|
-
"auto-exposure-capability-unavailable": {
|
|
57
|
-
expected: "the auto-exposure stage has the required device capability",
|
|
58
|
-
hint: "inspect live capabilities and retry the same camera generation"
|
|
59
|
-
},
|
|
60
|
-
"auto-exposure-stale-generation": {
|
|
61
|
-
expected: "the prepared auto-exposure state matches the camera target generation",
|
|
62
|
-
hint: "discard stale prepared state and rebuild from the latest camera snapshot"
|
|
63
|
-
},
|
|
64
|
-
"auto-exposure-stage-failed": {
|
|
65
|
-
expected: "the auto-exposure stage completes its declared operation",
|
|
66
|
-
hint: "inspect the structured cause, preserve lastKnownGood, and retry the stage"
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
function createAutoExposureError(input) {
|
|
70
|
-
if (input instanceof AutoExposureInvalidParameterError || input instanceof AutoExposureCapabilityUnavailableError || input instanceof AutoExposureStaleGenerationError || input instanceof AutoExposureStageFailedError) {
|
|
71
|
-
return input;
|
|
72
|
-
}
|
|
73
|
-
switch (input.code) {
|
|
74
|
-
case "auto-exposure-invalid-parameter":
|
|
75
|
-
return new AutoExposureInvalidParameterError(input.detail);
|
|
76
|
-
case "auto-exposure-capability-unavailable":
|
|
77
|
-
return new AutoExposureCapabilityUnavailableError(input.detail);
|
|
78
|
-
case "auto-exposure-stale-generation":
|
|
79
|
-
return new AutoExposureStaleGenerationError(input.detail);
|
|
80
|
-
case "auto-exposure-stage-failed":
|
|
81
|
-
return new AutoExposureStageFailedError(input.detail);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
function cloneExposure(exposure) {
|
|
85
|
-
if (exposure.kind === "manual") return { ...exposure };
|
|
86
|
-
return {
|
|
87
|
-
...exposure,
|
|
88
|
-
rangeEv: [exposure.rangeEv[0], exposure.rangeEv[1]],
|
|
89
|
-
rates: [exposure.rates[0], exposure.rates[1]]
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
function cloneFailure(error) {
|
|
93
|
-
if (error === void 0) return void 0;
|
|
94
|
-
return Object.freeze({
|
|
95
|
-
...error,
|
|
96
|
-
detail: Object.freeze({ ...error.detail })
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
function createAutoExposureInspection(input) {
|
|
100
|
-
const base = {
|
|
101
|
-
requested: cloneExposure(input.requested),
|
|
102
|
-
actual: input.actual,
|
|
103
|
-
actualState: input.actualState ?? (input.actual === null ? "gpu-resident" : "accepted"),
|
|
104
|
-
fallback: input.fallback,
|
|
105
|
-
lastKnownGood: input.lastKnownGood,
|
|
106
|
-
targetGeneration: input.targetGeneration,
|
|
107
|
-
reset: Object.freeze([...input.reset]),
|
|
108
|
-
cost: Object.freeze({ ...input.cost }),
|
|
109
|
-
receipt: Object.freeze({ ...input.receipt })
|
|
110
|
-
};
|
|
111
|
-
if (input.recentFailure === void 0) return Object.freeze(base);
|
|
112
|
-
const recentFailure = cloneFailure(createAutoExposureError(input.recentFailure));
|
|
113
|
-
if (recentFailure === void 0) return Object.freeze(base);
|
|
114
|
-
return Object.freeze({ ...base, recentFailure });
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// src/errors/render.ts
|
|
118
|
-
var LifecycleConstructionError = class extends Error {
|
|
119
|
-
code = "lifecycle-construction-failed";
|
|
120
|
-
expected = "all DeviceScope resources establish and terminate in order";
|
|
121
|
-
hint = "inspect detail and cleanupFailures, then recover or rebuild the DeviceScope";
|
|
122
|
-
detail;
|
|
123
|
-
constructor(detail) {
|
|
124
|
-
super(`lifecycle-construction-failed: ${detail.resourceKind} lifecycle transaction failed`);
|
|
125
|
-
this.name = "LifecycleConstructionError";
|
|
126
|
-
this.detail = detail;
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
var LightResourceUnavailableError = class extends Error {
|
|
130
|
-
code = "light-resource-unavailable";
|
|
131
|
-
expected;
|
|
132
|
-
hint;
|
|
133
|
-
detail;
|
|
134
|
-
constructor(detail, expected, actual, hint) {
|
|
135
|
-
super(`light-resource-unavailable: ${detail.feature} ${actual}`);
|
|
136
|
-
this.name = "LightResourceUnavailableError";
|
|
137
|
-
this.expected = expected;
|
|
138
|
-
this.hint = hint;
|
|
139
|
-
this.detail = detail;
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
function createLightResourceUnavailable(input) {
|
|
143
|
-
return new LightResourceUnavailableError(
|
|
144
|
-
{
|
|
145
|
-
entity: input.entity,
|
|
146
|
-
feature: input.feature,
|
|
147
|
-
generation: input.generation,
|
|
148
|
-
sourceKey: input.sourceKey,
|
|
149
|
-
reason: input.reason
|
|
150
|
-
},
|
|
151
|
-
input.expected,
|
|
152
|
-
input.actual,
|
|
153
|
-
input.hint
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
|
-
var TemporalFrameSubmitError = class extends Error {
|
|
157
|
-
code = "temporal-frame-submit-rejected";
|
|
158
|
-
expected = "the staged frame is accepted by queue.submit before temporal facts advance";
|
|
159
|
-
hint = "inspect the queue submission and retry the frame after the device is available";
|
|
160
|
-
detail;
|
|
161
|
-
constructor(reason) {
|
|
162
|
-
super(`temporal-frame-submit-rejected: ${reason}`);
|
|
163
|
-
this.name = "TemporalFrameSubmitError";
|
|
164
|
-
this.detail = { reason };
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
var ShadowInvalidConfigError = class extends Error {
|
|
168
|
-
code = "shadow-invalid-config";
|
|
169
|
-
expected;
|
|
170
|
-
hint;
|
|
171
|
-
detail;
|
|
172
|
-
constructor(field, actual, minOrBound, maxOrComparator, reason) {
|
|
173
|
-
const bound = typeof minOrBound === "number" ? typeof maxOrComparator === "number" ? { kind: "range", min: minOrBound, max: maxOrComparator } : {
|
|
174
|
-
kind: "lower-bound",
|
|
175
|
-
operator: maxOrComparator === ">" ? ">" : ">=",
|
|
176
|
-
value: minOrBound
|
|
177
|
-
} : minOrBound;
|
|
178
|
-
const resolvedReason = reason ?? shadowBoundReason(bound);
|
|
179
|
-
const expected = shadowBoundExpected(field, bound);
|
|
180
|
-
const hint = `set ${field} to ${resolvedReason}; got ${actual}`;
|
|
181
|
-
super(`shadow component .${field} is invalid: ${resolvedReason}; got ${actual}`);
|
|
182
|
-
this.name = "ShadowInvalidConfigError";
|
|
183
|
-
this.hint = hint;
|
|
184
|
-
this.expected = expected;
|
|
185
|
-
this.detail = { field, actual, bound, reason: resolvedReason };
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
function shadowBoundExpected(field, bound) {
|
|
189
|
-
switch (bound.kind) {
|
|
190
|
-
case "range":
|
|
191
|
-
return `${field} in [${bound.min}, ${bound.max}]`;
|
|
192
|
-
case "lower-bound":
|
|
193
|
-
return `${field} ${bound.operator} ${bound.value}`;
|
|
194
|
-
case "allowed-values":
|
|
195
|
-
return `${field} in {${bound.values.join(", ")}}`;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
function shadowBoundReason(bound) {
|
|
199
|
-
switch (bound.kind) {
|
|
200
|
-
case "range":
|
|
201
|
-
return `a value in [${bound.min}, ${bound.max}]`;
|
|
202
|
-
case "lower-bound":
|
|
203
|
-
return `a value ${bound.operator} ${bound.value}`;
|
|
204
|
-
case "allowed-values":
|
|
205
|
-
return `one of [${bound.values.join(", ")}]`;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
var EquirectProjectionFailedError = class extends Error {
|
|
209
|
-
code = "equirect-projection-failed";
|
|
210
|
-
expected;
|
|
211
|
-
hint;
|
|
212
|
-
detail;
|
|
213
|
-
constructor(handle) {
|
|
214
|
-
const expected = `equirect handle ${handle} projects to a GPU cubemap + IBL precompute`;
|
|
215
|
-
const hint = `equirect handle ${handle} referenced by Skylight/SkyboxBackground failed projection; declare Skylight{equirect} with a valid HDR equirect source and check device.caps.rgba16floatRenderable. The projection is internal (no user upload call); the record arm does not retry`;
|
|
216
|
-
super(`equirect handle ${handle} cubemap projection failed`);
|
|
217
|
-
this.name = "EquirectProjectionFailedError";
|
|
218
|
-
this.expected = expected;
|
|
219
|
-
this.hint = hint;
|
|
220
|
-
this.detail = { handle };
|
|
221
|
-
}
|
|
222
|
-
};
|
|
223
|
-
var StandardLightBudgetExceededError = class extends Error {
|
|
224
|
-
code = "standard-light-budget-exceeded";
|
|
225
|
-
expected;
|
|
226
|
-
hint;
|
|
227
|
-
detail;
|
|
228
|
-
constructor(actual, budget) {
|
|
229
|
-
const expected = `light count <= ${budget}`;
|
|
230
|
-
const hint = `${actual} finite local lights exceed Standard budget ${budget}; reduce the local-light set or select a profile with a supported budget`;
|
|
231
|
-
super(`Standard light budget exceeded: ${actual} > ${budget}`);
|
|
232
|
-
this.name = "StandardLightBudgetExceededError";
|
|
233
|
-
this.expected = expected;
|
|
234
|
-
this.hint = hint;
|
|
235
|
-
this.detail = { actual, budget };
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
var StandardClusterIndexOverflowError = class extends Error {
|
|
239
|
-
code = "standard-cluster-index-overflow";
|
|
240
|
-
expected;
|
|
241
|
-
hint;
|
|
242
|
-
detail;
|
|
243
|
-
constructor(actual, capacity) {
|
|
244
|
-
const expected = `light index list entries <= ${capacity}`;
|
|
245
|
-
const hint = `cluster binner overflow: writeCount ${actual} exceeds capacity ${capacity}; reduce finite local lights or choose a supported cluster layout`;
|
|
246
|
-
super(`Standard cluster index list overflow: ${actual} > ${capacity}`);
|
|
247
|
-
this.name = "StandardClusterIndexOverflowError";
|
|
248
|
-
this.expected = expected;
|
|
249
|
-
this.hint = hint;
|
|
250
|
-
this.detail = { actual, capacity };
|
|
251
|
-
}
|
|
252
|
-
};
|
|
253
|
-
var StandardClusterTransportUnavailableError = class extends Error {
|
|
254
|
-
code = "standard-cluster-transport-unavailable";
|
|
255
|
-
expected = "all requested local lights have a proven Cluster transport";
|
|
256
|
-
hint;
|
|
257
|
-
detail;
|
|
258
|
-
constructor(requested, hint = "enable a proven Cluster storage transport before drawing") {
|
|
259
|
-
super(`Standard Cluster transport unavailable for ${requested} local lights`);
|
|
260
|
-
this.name = "StandardClusterTransportUnavailableError";
|
|
261
|
-
this.hint = hint;
|
|
262
|
-
this.detail = { requested, admitted: 0 };
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
|
-
var StandardProfileInvalidError = class extends Error {
|
|
266
|
-
code = "standard-profile-invalid";
|
|
267
|
-
expected;
|
|
268
|
-
hint;
|
|
269
|
-
detail;
|
|
270
|
-
constructor(message, detail) {
|
|
271
|
-
super(message);
|
|
272
|
-
this.name = "StandardProfileInvalidError";
|
|
273
|
-
this.detail = detail ?? { field: "profile", actual: message };
|
|
274
|
-
if (this.detail.field === "clusterGrid") {
|
|
275
|
-
this.expected = "clusterGrid.{x,y,z} each positive integer in [1, 64]";
|
|
276
|
-
this.hint = "set clusterGrid.x, clusterGrid.y, and clusterGrid.z to positive integers in [1, 64]";
|
|
277
|
-
} else {
|
|
278
|
-
this.expected = "StandardProfile contains only supported fields and values";
|
|
279
|
-
this.hint = "repair the Standard profile fields and retry setProfile";
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
var PointShadowAtlasUninitializedError = class extends Error {
|
|
284
|
-
code = "point-shadow-atlas-uninitialized";
|
|
285
|
-
expected;
|
|
286
|
-
hint;
|
|
287
|
-
constructor() {
|
|
288
|
-
const expected = "ShadowAtlas.ensure() invoked before faceView()";
|
|
289
|
-
const hint = "Gate faceView on isAllocated() or call ensure() once in the per-frame extract step before iterating face views";
|
|
290
|
-
super("ShadowAtlas.faceView called before ensure(); the cube_array texture is not allocated");
|
|
291
|
-
this.name = "PointShadowAtlasUninitializedError";
|
|
292
|
-
this.expected = expected;
|
|
293
|
-
this.hint = hint;
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
|
-
var PointShadowAtlasBoundsViolationError = class extends Error {
|
|
297
|
-
code = "point-shadow-atlas-bounds-violation";
|
|
298
|
-
expected;
|
|
299
|
-
hint;
|
|
300
|
-
detail;
|
|
301
|
-
constructor(axis, value, max) {
|
|
302
|
-
const expected = `0 <= ${axis} < ${max}`;
|
|
303
|
-
const hint = axis === "layer" ? `clamp PointLight.shadowAtlasLayer to [0, ${max}); the cap on layers equals PointLightShadow cardinality (4)` : `clamp face index to [0, ${max}); cube faces are indexed 0..5 in +X/-X/+Y/-Y/+Z/-Z order`;
|
|
304
|
-
super(`ShadowAtlas.faceView ${axis} out of range: ${value} (must be in [0, ${max}))`);
|
|
305
|
-
this.name = "PointShadowAtlasBoundsViolationError";
|
|
306
|
-
this.expected = expected;
|
|
307
|
-
this.hint = hint;
|
|
308
|
-
this.detail = { axis, value, max };
|
|
309
|
-
}
|
|
310
|
-
};
|
|
311
|
-
var VideoUploadUnsupportedError = class extends Error {
|
|
312
|
-
code = "video-upload-unsupported";
|
|
313
|
-
expected;
|
|
314
|
-
hint;
|
|
315
|
-
constructor() {
|
|
316
|
-
const expected = "at least one video upload path available: a host HTMLVideoElement (general copyExternalImageToTexture path) or GPUExternalTexture capability (high-perf path)";
|
|
317
|
-
const hint = "this backend exposes no usable video upload path; render a static texture instead, or switch to a WebGPU backend that supports video texture upload";
|
|
318
|
-
super("video upload unsupported \u2014 no general or high-perf path available");
|
|
319
|
-
this.name = "VideoUploadUnsupportedError";
|
|
320
|
-
this.expected = expected;
|
|
321
|
-
this.hint = hint;
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
|
-
var VertexColorVariantConflictError = class extends Error {
|
|
325
|
-
code = "vertex-color-variant-conflict";
|
|
326
|
-
expected;
|
|
327
|
-
hint;
|
|
328
|
-
detail;
|
|
329
|
-
constructor(authoredValue, projected) {
|
|
330
|
-
const expected = `VERTEX_COLOR_AVAILABLE=${projected ? "true" : "false"}`;
|
|
331
|
-
const hint = "derive the shader variant from the mesh VertexLayoutProjection; COLOR_0 presence is a geometry fact";
|
|
332
|
-
super(`authored vertex-color variant ${authoredValue} disagrees with projected ${expected}`);
|
|
333
|
-
this.name = "VertexColorVariantConflictError";
|
|
334
|
-
this.expected = expected;
|
|
335
|
-
this.hint = hint;
|
|
336
|
-
this.detail = { authored: true, authoredValue, projected };
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
var SkinPaletteOverflowError = class extends Error {
|
|
340
|
-
code = "skin-palette-overflow";
|
|
341
|
-
expected;
|
|
342
|
-
hint;
|
|
343
|
-
detail;
|
|
344
|
-
constructor(requestedBytes, limit) {
|
|
345
|
-
const expected = `skinned joint palette (${requestedBytes} B) fits within device.limits.maxStorageBufferBindingSize (${limit} B)`;
|
|
346
|
-
const hint = "palette buffer exceeds device maxStorageBufferBindingSize; reduce skinned entity count or split into multiple palette buffers (OOS-skin-palette-batch)";
|
|
347
|
-
super(`skin palette buffer needs ${requestedBytes} B, exceeds device limit ${limit} B`);
|
|
348
|
-
this.name = "SkinPaletteOverflowError";
|
|
349
|
-
this.expected = expected;
|
|
350
|
-
this.hint = hint;
|
|
351
|
-
this.detail = { requestedBytes, limit };
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
var SkinMaterialMismatchError = class extends Error {
|
|
355
|
-
code = "skin-material-mismatch";
|
|
356
|
-
expected;
|
|
357
|
-
hint;
|
|
358
|
-
detail;
|
|
359
|
-
constructor(entity, actualShader) {
|
|
360
|
-
const expected = "Skin entity's first material program module === 'forgeax::pbr-skin'";
|
|
361
|
-
const hint = `entity ${entity} has Skin but the first material program module is ${actualShader ?? "<empty>"}; load the mesh via the gltf importer (cooker auto-routes 'forgeax::pbr-skin' for skinned primitives), or remove the Skin component to render the entity unskinned with Materials.standard / Materials.unlit`;
|
|
362
|
-
super(
|
|
363
|
-
`Skin / material mismatch on entity ${entity}: expected forgeax::pbr-skin, got ${actualShader ?? "<empty>"}`
|
|
364
|
-
);
|
|
365
|
-
this.name = "SkinMaterialMismatchError";
|
|
366
|
-
this.expected = expected;
|
|
367
|
-
this.hint = hint;
|
|
368
|
-
this.detail = { entity, actualShader };
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
|
-
var MaterialSkinAttrMissingError = class extends Error {
|
|
372
|
-
code = "material-skin-attr-missing";
|
|
373
|
-
expected;
|
|
374
|
-
hint;
|
|
375
|
-
detail;
|
|
376
|
-
constructor(entity, missing2) {
|
|
377
|
-
const expected = "pbr-skin material requires mesh.attributes.skinIndex + skinWeight";
|
|
378
|
-
const hint = `entity ${entity} uses forgeax::pbr-skin but its MeshAsset is missing ${missing2}; switch the entity to a skinned glTF mesh authored with JOINTS_0 + WEIGHTS_0, or change the material to a non-skin shader via Materials.standard / Materials.unlit`;
|
|
379
|
-
super(
|
|
380
|
-
`material/skin attribute mismatch on entity ${entity}: pbr-skin material with mesh missing ${missing2}`
|
|
381
|
-
);
|
|
382
|
-
this.name = "MaterialSkinAttrMissingError";
|
|
383
|
-
this.expected = expected;
|
|
384
|
-
this.hint = hint;
|
|
385
|
-
this.detail = { entity, missing: missing2 };
|
|
386
|
-
}
|
|
387
|
-
};
|
|
388
|
-
var TransmissionCapabilityMissingError = class extends Error {
|
|
389
|
-
code = "transmission-capability-missing";
|
|
390
|
-
expected = "the renderer exposes the transmission capability for this material";
|
|
391
|
-
hint = "disable transmission or provide the renderer capability before drawing";
|
|
392
|
-
detail;
|
|
393
|
-
constructor(material, stage, evidence) {
|
|
394
|
-
super(`transmission capability is missing for material '${material}'`);
|
|
395
|
-
this.name = "TransmissionCapabilityMissingError";
|
|
396
|
-
this.detail = { material, capability: "transmission", stage, ...evidence };
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
|
-
var renderFeatureRecoveryHintByRecovery = {
|
|
400
|
-
"next-frame": (featureIdentity, stage) => `correct '${featureIdentity}' ${stage} data and retry on the next frame`,
|
|
401
|
-
"renderer-recover": (featureIdentity, _stage) => `wait for renderer recovery before retrying '${featureIdentity}'`,
|
|
402
|
-
registration: (featureIdentity, _stage) => `correct '${featureIdentity}' registration before retrying`
|
|
403
|
-
};
|
|
404
|
-
var RenderFeatureRegistrationConflictError = class extends Error {
|
|
405
|
-
code = "render-feature-registration-conflict";
|
|
406
|
-
expected;
|
|
407
|
-
hint;
|
|
408
|
-
detail;
|
|
409
|
-
constructor(featureIdentity, order, conflictingOrder) {
|
|
410
|
-
const expected = `feature identity '${featureIdentity}' is unique`;
|
|
411
|
-
const hint = `rename '${featureIdentity}' or remove the duplicate feature before registration`;
|
|
412
|
-
super(`render feature registration conflict for '${featureIdentity}'`);
|
|
413
|
-
this.name = "RenderFeatureRegistrationConflictError";
|
|
414
|
-
this.expected = expected;
|
|
415
|
-
this.hint = hint;
|
|
416
|
-
this.detail = { featureIdentity, order, conflictingOrder };
|
|
417
|
-
}
|
|
418
|
-
};
|
|
419
|
-
var RenderFeatureStageFailedError = class extends Error {
|
|
420
|
-
code = "render-feature-stage-failed";
|
|
421
|
-
expected;
|
|
422
|
-
hint;
|
|
423
|
-
detail;
|
|
424
|
-
constructor(featureIdentity, order, stage, recovery, cause) {
|
|
425
|
-
const expected = `feature '${featureIdentity}' completes its ${stage} stage without an error`;
|
|
426
|
-
const hint = renderFeatureRecoveryHintByRecovery[recovery](featureIdentity, stage);
|
|
427
|
-
super(`render feature '${featureIdentity}' failed during ${stage}`);
|
|
428
|
-
this.name = "RenderFeatureStageFailedError";
|
|
429
|
-
this.expected = expected;
|
|
430
|
-
this.hint = hint;
|
|
431
|
-
this.detail = {
|
|
432
|
-
featureIdentity,
|
|
433
|
-
order,
|
|
434
|
-
stage,
|
|
435
|
-
recovery,
|
|
436
|
-
...cause === void 0 ? {} : { cause }
|
|
437
|
-
};
|
|
438
|
-
}
|
|
439
|
-
};
|
|
440
|
-
var RenderFeatureCapabilityMissingError = class extends Error {
|
|
441
|
-
code = "render-feature-capability-missing";
|
|
442
|
-
expected;
|
|
443
|
-
hint;
|
|
444
|
-
detail;
|
|
445
|
-
constructor(featureIdentity, order, capability) {
|
|
446
|
-
const expected = `device capability '${capability}' is available for feature '${featureIdentity}'`;
|
|
447
|
-
const hint = `disable '${featureIdentity}' or use a device with '${capability}' capability`;
|
|
448
|
-
super(`render feature '${featureIdentity}' requires missing capability '${capability}'`);
|
|
449
|
-
this.name = "RenderFeatureCapabilityMissingError";
|
|
450
|
-
this.expected = expected;
|
|
451
|
-
this.hint = hint;
|
|
452
|
-
this.detail = { featureIdentity, order, capability };
|
|
453
|
-
}
|
|
454
|
-
};
|
|
455
|
-
var RenderFeaturePreparationFailedError = class extends Error {
|
|
456
|
-
code = "render-feature-preparation-failed";
|
|
457
|
-
expected;
|
|
458
|
-
hint;
|
|
459
|
-
detail;
|
|
460
|
-
constructor(featureIdentity, order, operation, resourceKind, resourceName, reason, recovery) {
|
|
461
|
-
const expected = `${resourceKind} '${resourceName}' is prepared during ${operation}`;
|
|
462
|
-
const hint = `repair '${resourceName}' and retry feature '${featureIdentity}' on ${recovery}`;
|
|
463
|
-
super(`render feature '${featureIdentity}' preparation failed for '${resourceName}'`);
|
|
464
|
-
this.name = "RenderFeaturePreparationFailedError";
|
|
465
|
-
this.expected = expected;
|
|
466
|
-
this.hint = hint;
|
|
467
|
-
this.detail = {
|
|
468
|
-
featureIdentity,
|
|
469
|
-
order,
|
|
470
|
-
stage: "prepare",
|
|
471
|
-
operation,
|
|
472
|
-
resourceKind,
|
|
473
|
-
resourceName,
|
|
474
|
-
reason,
|
|
475
|
-
recovery
|
|
476
|
-
};
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
|
-
var RenderFeaturePreparedStateMismatchError = class extends Error {
|
|
480
|
-
code = "render-feature-prepared-state-mismatch";
|
|
481
|
-
expected;
|
|
482
|
-
hint;
|
|
483
|
-
detail;
|
|
484
|
-
constructor(detail) {
|
|
485
|
-
const expected = `${detail.resourceKind} state is compatible for '${detail.operation}'`;
|
|
486
|
-
const hint = `repair '${detail.reason}' for feature '${detail.featureIdentity}' and retry`;
|
|
487
|
-
super(`render feature '${detail.featureIdentity}' prepared state mismatch`);
|
|
488
|
-
this.name = "RenderFeaturePreparedStateMismatchError";
|
|
489
|
-
this.expected = expected;
|
|
490
|
-
this.hint = hint;
|
|
491
|
-
this.detail = detail;
|
|
492
|
-
}
|
|
493
|
-
};
|
|
494
|
-
var RenderFeatureDrawRecordingFailedError = class extends Error {
|
|
495
|
-
code = "render-feature-draw-recording-failed";
|
|
496
|
-
expected;
|
|
497
|
-
hint;
|
|
498
|
-
detail;
|
|
499
|
-
constructor(featureIdentity, order, operation, resourceKind, reason, backendReason, recovery) {
|
|
500
|
-
const expected = `${resourceKind} recording succeeds for '${operation}'`;
|
|
501
|
-
const hint = `repair '${reason}' and retry feature '${featureIdentity}' after ${recovery}`;
|
|
502
|
-
super(`render feature '${featureIdentity}' draw recording failed`);
|
|
503
|
-
this.name = "RenderFeatureDrawRecordingFailedError";
|
|
504
|
-
this.expected = expected;
|
|
505
|
-
this.hint = hint;
|
|
506
|
-
this.detail = {
|
|
507
|
-
featureIdentity,
|
|
508
|
-
order,
|
|
509
|
-
stage: "record",
|
|
510
|
-
operation,
|
|
511
|
-
resourceKind,
|
|
512
|
-
reason,
|
|
513
|
-
backendReason,
|
|
514
|
-
recovery
|
|
515
|
-
};
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
|
-
var ObservationUnavailableError = class extends Error {
|
|
519
|
-
code = "observation-unavailable";
|
|
520
|
-
expected;
|
|
521
|
-
hint;
|
|
522
|
-
detail;
|
|
523
|
-
constructor(reason, hint) {
|
|
524
|
-
let recovery;
|
|
525
|
-
if (reason === "copy-src") recovery = "enable-copy-src";
|
|
526
|
-
else if (reason === "resource" || reason === "readback-failed") recovery = "retry-readback";
|
|
527
|
-
else recovery = "draw-current-frame";
|
|
528
|
-
super(`current-frame observation unavailable: ${reason}`);
|
|
529
|
-
this.name = "ObservationUnavailableError";
|
|
530
|
-
this.expected = "a fresh producer-owned rgba16float current-frame observation";
|
|
531
|
-
this.hint = hint;
|
|
532
|
-
this.detail = { reason, recovery };
|
|
533
|
-
}
|
|
534
|
-
};
|
|
535
|
-
var SceneDataUnavailableError = class extends Error {
|
|
536
|
-
code = "scene-data-unavailable";
|
|
537
|
-
expected = "the requested semantic scene data is available for the active plan";
|
|
538
|
-
hint;
|
|
539
|
-
detail;
|
|
540
|
-
constructor(detail) {
|
|
541
|
-
const hint = detail.recovery === "enable-capability" ? "enable rgba16floatRenderable and retry the current frame" : detail.recovery === "renderer-recover" ? "wait for renderer recovery, then retry the frame" : "restore the producer coverage and retry on the next frame";
|
|
542
|
-
super(`scene data '${detail.schema}' unavailable for '${detail.featureIdentity}'`);
|
|
543
|
-
this.name = "SceneDataUnavailableError";
|
|
544
|
-
this.hint = hint;
|
|
545
|
-
this.detail = Object.freeze({
|
|
546
|
-
...detail,
|
|
547
|
-
missingContributorIds: Object.freeze([...detail.missingContributorIds].slice(0, 32)),
|
|
548
|
-
omittedMissingContributorCount: Math.max(
|
|
549
|
-
detail.omittedMissingContributorCount,
|
|
550
|
-
Math.max(0, detail.missingContributorIds.length - 32)
|
|
551
|
-
)
|
|
552
|
-
});
|
|
553
|
-
}
|
|
554
|
-
};
|
|
555
|
-
var FrameReceiptStaleError = class extends Error {
|
|
556
|
-
code = "frame-receipt-stale";
|
|
557
|
-
expected = "the observation receipt belongs to the active device generation";
|
|
558
|
-
hint = "draw a new frame and call observe with its returned FrameReceipt";
|
|
559
|
-
detail;
|
|
560
|
-
constructor(detail) {
|
|
561
|
-
super("frame receipt belongs to a retired device generation");
|
|
562
|
-
this.name = "FrameReceiptStaleError";
|
|
563
|
-
this.detail = detail;
|
|
564
|
-
}
|
|
565
|
-
};
|
|
566
|
-
var RendererContractFailureError = class extends Error {
|
|
567
|
-
code = "renderer-contract-failed";
|
|
568
|
-
expected = "renderer owner contracts remain valid at the public boundary";
|
|
569
|
-
hint = "repair the owner contract and retry the operation";
|
|
570
|
-
detail;
|
|
571
|
-
constructor(operation, cause) {
|
|
572
|
-
super(`renderer ${operation} contract failed: ${cause}`);
|
|
573
|
-
this.name = "RendererContractFailureError";
|
|
574
|
-
this.detail = { operation, cause };
|
|
575
|
-
}
|
|
576
|
-
};
|
|
577
|
-
var EnvironmentSourceConflictError = class extends Error {
|
|
578
|
-
code = "environment-source-conflict";
|
|
579
|
-
expected = "exactly one environment source owns the frame";
|
|
580
|
-
hint = "remove all but one image or atmosphere environment owner";
|
|
581
|
-
detail;
|
|
582
|
-
constructor(owners) {
|
|
583
|
-
super("environment source owners conflict");
|
|
584
|
-
this.name = "EnvironmentSourceConflictError";
|
|
585
|
-
this.detail = { owners: owners.map((owner) => Object.freeze({ ...owner })) };
|
|
586
|
-
}
|
|
587
|
-
};
|
|
588
|
-
var FogCardinalityError = class extends Error {
|
|
589
|
-
code = "fog-cardinality";
|
|
590
|
-
expected = "zero or one Fog owner contributes to a frame";
|
|
591
|
-
hint = "remove extra Fog owners so the resource owner has at most one";
|
|
592
|
-
detail;
|
|
593
|
-
constructor(count) {
|
|
594
|
-
super(`Fog owner cardinality is ${count}`);
|
|
595
|
-
this.name = "FogCardinalityError";
|
|
596
|
-
this.detail = { count };
|
|
597
|
-
}
|
|
598
|
-
};
|
|
599
|
-
var TaaCapsInsufficientError = class extends Error {
|
|
600
|
-
code = "taa-caps-insufficient";
|
|
601
|
-
expected = "the backend exposes the capabilities required by TAA";
|
|
602
|
-
hint = "select a backend with the required TAA capabilities or disable TAA on Camera";
|
|
603
|
-
detail;
|
|
604
|
-
constructor(required, available) {
|
|
605
|
-
super("TAA capabilities are insufficient");
|
|
606
|
-
this.name = "TaaCapsInsufficientError";
|
|
607
|
-
this.detail = { required: [...required], available: [...available] };
|
|
608
|
-
}
|
|
609
|
-
};
|
|
610
|
-
var EnvironmentGenerationFailedError = class extends Error {
|
|
611
|
-
code = "environment-generation-failed";
|
|
612
|
-
expected = "the selected environment generation completes its owner stage";
|
|
613
|
-
hint = "inspect the stage and sourceKey, then retry after correcting the environment";
|
|
614
|
-
detail;
|
|
615
|
-
constructor(sourceKey, stage) {
|
|
616
|
-
super(`environment generation failed during ${stage}`);
|
|
617
|
-
this.name = "EnvironmentGenerationFailedError";
|
|
618
|
-
this.detail = { sourceKey, stage };
|
|
619
|
-
}
|
|
620
|
-
};
|
|
621
|
-
var AtmosphereInvalidParameterError = class extends Error {
|
|
622
|
-
code = "atmosphere-invalid-parameter";
|
|
623
|
-
expected;
|
|
624
|
-
hint;
|
|
625
|
-
detail;
|
|
626
|
-
constructor(field, value, range) {
|
|
627
|
-
super(`Atmosphere.${field} is invalid`);
|
|
628
|
-
this.name = "AtmosphereInvalidParameterError";
|
|
629
|
-
this.detail = { field, value };
|
|
630
|
-
const rangeText = Number.isFinite(range.max) ? `[${range.min}, ${range.max}]` : `>= ${range.min}`;
|
|
631
|
-
this.expected = `Atmosphere.${field} must be finite and ${rangeText}`;
|
|
632
|
-
this.hint = `set Atmosphere.${field} to a finite value ${rangeText}`;
|
|
633
|
-
}
|
|
634
|
-
};
|
|
635
|
-
var DynamicResolutionInvalidParameterError = class extends Error {
|
|
636
|
-
code = "dynamic-resolution-invalid-parameter";
|
|
637
|
-
expected;
|
|
638
|
-
hint;
|
|
639
|
-
detail;
|
|
640
|
-
constructor(detail) {
|
|
641
|
-
super(`DynamicResolution.${detail.field} is invalid`);
|
|
642
|
-
this.name = "DynamicResolutionInvalidParameterError";
|
|
643
|
-
this.expected = `DynamicResolution.${detail.field} must be ${detail.expected}`;
|
|
644
|
-
this.hint = `set DynamicResolution.${detail.field} to a value that is ${detail.expected}`;
|
|
645
|
-
this.detail = detail;
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
|
-
var DynamicResolutionRequiresTaaError = class extends Error {
|
|
649
|
-
code = "dynamic-resolution-requires-taa";
|
|
650
|
-
expected = "DynamicResolution requires Camera.antialias to be 'taa'";
|
|
651
|
-
hint = "set Camera.antialias to 'taa' or remove DynamicResolution before retrying";
|
|
652
|
-
detail;
|
|
653
|
-
constructor(detail) {
|
|
654
|
-
super("DynamicResolution requires TAA");
|
|
655
|
-
this.name = "DynamicResolutionRequiresTaaError";
|
|
656
|
-
this.detail = detail;
|
|
657
|
-
}
|
|
658
|
-
};
|
|
659
|
-
var DynamicResolutionTimingUnavailableError = class extends Error {
|
|
660
|
-
code = "dynamic-resolution-timing-unavailable";
|
|
661
|
-
expected = "adaptive resolution receives a completed GPU timing sample";
|
|
662
|
-
hint = "use fixed minScale=maxScale or retry after timestamp support is available";
|
|
663
|
-
detail;
|
|
664
|
-
constructor(detail) {
|
|
665
|
-
super(`DynamicResolution timing is unavailable for generation ${detail.generation}`);
|
|
666
|
-
this.name = "DynamicResolutionTimingUnavailableError";
|
|
667
|
-
this.detail = detail;
|
|
668
|
-
}
|
|
669
|
-
};
|
|
670
|
-
var OwnerStageFailedError = class extends Error {
|
|
671
|
-
code = "owner-stage-failed";
|
|
672
|
-
expected = "the owner completes its current frame stage";
|
|
673
|
-
hint = "inspect the owner and stage, keep the last-known-good frame, and retry";
|
|
674
|
-
detail;
|
|
675
|
-
constructor(owner, stage) {
|
|
676
|
-
super(`${owner} owner failed during ${stage}`);
|
|
677
|
-
this.name = "OwnerStageFailedError";
|
|
678
|
-
this.detail = { owner, stage };
|
|
679
|
-
}
|
|
680
|
-
};
|
|
681
|
-
var RENDERER_OPERATION_ERROR_POLICY = {
|
|
682
|
-
"world-lease-invalid": {
|
|
683
|
-
expected: "every render World is represented by a live lease owned by this Renderer",
|
|
684
|
-
hint: "attach the World to this Renderer and use the returned lease"
|
|
685
|
-
},
|
|
686
|
-
"frame-input-invalid": {
|
|
687
|
-
expected: "the frame input references attached leases and a valid immutable RenderProfile",
|
|
688
|
-
hint: "repair the frame input and retry draw or setProfile"
|
|
689
|
-
},
|
|
690
|
-
"scene-projection-failed": {
|
|
691
|
-
expected: "the attached World projects into the renderer-owned RenderScene",
|
|
692
|
-
hint: "inspect the structured cause, repair the World publication, and retry draw"
|
|
693
|
-
},
|
|
694
|
-
"asset-binding-failed": {
|
|
695
|
-
expected: "all frame assets resolve to valid renderer-owned bindings",
|
|
696
|
-
hint: "inspect the structured cause, rebuild or cold-cook the asset, and retry draw"
|
|
697
|
-
},
|
|
698
|
-
"feature-plan-failed": {
|
|
699
|
-
expected: "every installed RenderFeature produces a valid declarative plan",
|
|
700
|
-
hint: "inspect the feature cause, repair its plan, and retry draw"
|
|
701
|
-
},
|
|
702
|
-
"graph-build-failed": {
|
|
703
|
-
expected: "the Standard graph builds from the active profile and feature plans",
|
|
704
|
-
hint: "inspect the graph cause, repair the profile or plan, and retry"
|
|
705
|
-
},
|
|
706
|
-
"device-operation-failed": {
|
|
707
|
-
expected: "the active device generation completes the renderer-owned operation",
|
|
708
|
-
hint: "inspect renderer state and the structured cause, then retry or recover"
|
|
709
|
-
},
|
|
710
|
-
"surface-unavailable": {
|
|
711
|
-
expected: "the presentation surface accepts the requested lifecycle operation",
|
|
712
|
-
hint: "inspect renderer state, then restore the surface or create a new Renderer"
|
|
713
|
-
},
|
|
714
|
-
"renderer-state-invalid": {
|
|
715
|
-
expected: "the Renderer is in a state that accepts the requested operation",
|
|
716
|
-
hint: "inspect renderer state and choose retry, restoreSurface, recover, or stop"
|
|
717
|
-
},
|
|
718
|
-
"recovery-failed": {
|
|
719
|
-
expected: "one recovery attempt publishes a complete replacement device generation",
|
|
720
|
-
hint: "inspect the structured cause and retry recover after the host-selected delay"
|
|
721
|
-
},
|
|
722
|
-
"cleanup-failed": {
|
|
723
|
-
expected: "Renderer disposal completes every registered cleanup in reverse ownership order",
|
|
724
|
-
hint: "inspect the ordered cleanup causes; the Renderer remains disposed and must not be reused"
|
|
725
|
-
}
|
|
726
|
-
};
|
|
727
|
-
var RendererOperationError = class extends Error {
|
|
728
|
-
code;
|
|
729
|
-
expected;
|
|
730
|
-
hint;
|
|
731
|
-
detail;
|
|
732
|
-
constructor(code, detail) {
|
|
733
|
-
const policy = RENDERER_OPERATION_ERROR_POLICY[code];
|
|
734
|
-
super(`${code}: ${policy.expected}`);
|
|
735
|
-
this.name = "RendererOperationError";
|
|
736
|
-
this.code = code;
|
|
737
|
-
this.expected = policy.expected;
|
|
738
|
-
this.hint = policy.hint;
|
|
739
|
-
this.detail = detail;
|
|
740
|
-
}
|
|
741
|
-
};
|
|
742
|
-
var PointsLinesInvalidStyleError = class extends Error {
|
|
743
|
-
code = "points-lines-invalid-style";
|
|
744
|
-
expected;
|
|
745
|
-
hint;
|
|
746
|
-
detail;
|
|
747
|
-
constructor(detail) {
|
|
748
|
-
super(`invalid ${detail.component} style at ${detail.field}`);
|
|
749
|
-
this.name = "PointsLinesInvalidStyleError";
|
|
750
|
-
this.expected = detail.expected;
|
|
751
|
-
this.hint = `repair entity ${detail.entity} ${detail.component}.${detail.field} and retry admission`;
|
|
752
|
-
this.detail = detail;
|
|
753
|
-
}
|
|
754
|
-
};
|
|
755
|
-
var PointsLinesTopologyMismatchError = class extends Error {
|
|
756
|
-
code = "points-lines-topology-mismatch";
|
|
757
|
-
expected;
|
|
758
|
-
hint;
|
|
759
|
-
detail;
|
|
760
|
-
constructor(detail) {
|
|
761
|
-
super(`Points/Lines topology mismatch at submesh ${detail.submesh}`);
|
|
762
|
-
this.name = "PointsLinesTopologyMismatchError";
|
|
763
|
-
this.expected = `submesh ${detail.submesh} topology is ${detail.expected}`;
|
|
764
|
-
this.hint = `rebuild entity ${detail.entity} with ${detail.expected} geometry before retrying Points/Lines admission`;
|
|
765
|
-
this.detail = detail;
|
|
766
|
-
}
|
|
767
|
-
};
|
|
768
|
-
var PointsLinesStyleUnsupportedError = class extends Error {
|
|
769
|
-
code = "points-lines-style-unsupported";
|
|
770
|
-
expected;
|
|
771
|
-
hint;
|
|
772
|
-
detail;
|
|
773
|
-
constructor(detail) {
|
|
774
|
-
super(`unsupported Points/Lines ${detail.field} member ${detail.member}`);
|
|
775
|
-
this.name = "PointsLinesStyleUnsupportedError";
|
|
776
|
-
this.expected = `${detail.field} is one of ${detail.supported.join(", ")}`;
|
|
777
|
-
this.hint = `use a supported Points/Lines ${detail.field} member or wait for a later milestone`;
|
|
778
|
-
this.detail = detail;
|
|
779
|
-
}
|
|
780
|
-
};
|
|
781
|
-
var PointsLinesMaterialUnsupportedError = class extends Error {
|
|
782
|
-
code = "points-lines-material-unsupported";
|
|
783
|
-
expected = "one engine-owned unlit forward MaterialAsset pass";
|
|
784
|
-
hint;
|
|
785
|
-
detail;
|
|
786
|
-
constructor(detail) {
|
|
787
|
-
super(`Points/Lines material is unsupported on entity ${detail.entity}`);
|
|
788
|
-
this.name = "PointsLinesMaterialUnsupportedError";
|
|
789
|
-
this.hint = `use Materials.unlit without a shadow-caster pass for entity ${detail.entity}`;
|
|
790
|
-
this.detail = detail;
|
|
791
|
-
}
|
|
792
|
-
};
|
|
793
|
-
var PointsLinesBudgetExceededError = class extends Error {
|
|
794
|
-
code = "points-lines-budget-exceeded";
|
|
795
|
-
expected;
|
|
796
|
-
hint;
|
|
797
|
-
detail;
|
|
798
|
-
constructor(detail) {
|
|
799
|
-
super(`Points/Lines ${detail.unit} budget exceeded`);
|
|
800
|
-
this.name = "PointsLinesBudgetExceededError";
|
|
801
|
-
this.expected = `${detail.unit} <= ${detail.limit}`;
|
|
802
|
-
this.hint = `reduce Points/Lines ${detail.unit} or split the entity into bounded equivalent batches`;
|
|
803
|
-
this.detail = detail;
|
|
804
|
-
}
|
|
805
|
-
};
|
|
806
|
-
var PointsLinesPrepareFailedError = class extends Error {
|
|
807
|
-
code = "points-lines-prepare-failed";
|
|
808
|
-
expected = "the complete Points/Lines candidate validates before publication";
|
|
809
|
-
hint;
|
|
810
|
-
detail;
|
|
811
|
-
constructor(detail) {
|
|
812
|
-
super(`Points/Lines prepare failed at generation ${detail.generation}`);
|
|
813
|
-
this.name = "PointsLinesPrepareFailedError";
|
|
814
|
-
this.hint = detail.lastKnownGood ? "retain the last known good candidate, repair the producer, and retry prepare" : "repair the producer and retry prepare; the failed first candidate produces zero draw";
|
|
815
|
-
this.detail = detail;
|
|
816
|
-
}
|
|
817
|
-
};
|
|
818
|
-
var RenderTargetDescriptorInvalidError = class extends Error {
|
|
819
|
-
code = "render-target-descriptor-invalid";
|
|
820
|
-
expected;
|
|
821
|
-
hint;
|
|
822
|
-
detail;
|
|
823
|
-
constructor(detail) {
|
|
824
|
-
super(`render-target-descriptor-invalid: ${detail.field} does not satisfy ${detail.expected}`);
|
|
825
|
-
this.name = "RenderTargetDescriptorInvalidError";
|
|
826
|
-
this.expected = detail.expected;
|
|
827
|
-
this.hint = `set RenderTargetDescriptor.${detail.field} to the expected value, then retry create or resize`;
|
|
828
|
-
this.detail = detail;
|
|
829
|
-
}
|
|
830
|
-
};
|
|
831
|
-
var RenderTargetCapabilityMissingError = class extends Error {
|
|
832
|
-
code = "render-target-capability-missing";
|
|
833
|
-
expected;
|
|
834
|
-
hint;
|
|
835
|
-
detail;
|
|
836
|
-
constructor(detail) {
|
|
837
|
-
super(
|
|
838
|
-
`render-target-capability-missing: ${detail.capability} does not admit ${detail.requested}`
|
|
839
|
-
);
|
|
840
|
-
this.name = "RenderTargetCapabilityMissingError";
|
|
841
|
-
this.expected = `${detail.capability} admits ${detail.requested}`;
|
|
842
|
-
this.hint = `choose an admitted target descriptor or use a backend providing ${detail.capability}`;
|
|
843
|
-
this.detail = detail;
|
|
844
|
-
}
|
|
845
|
-
};
|
|
846
|
-
var RenderTargetStateInvalidError = class extends Error {
|
|
847
|
-
code = "render-target-state-invalid";
|
|
848
|
-
expected;
|
|
849
|
-
hint;
|
|
850
|
-
detail;
|
|
851
|
-
constructor(detail) {
|
|
852
|
-
super(`render-target-state-invalid: ${detail.operation} cannot use ${detail.reason}`);
|
|
853
|
-
this.name = "RenderTargetStateInvalidError";
|
|
854
|
-
this.expected = `target state permits ${detail.operation}`;
|
|
855
|
-
this.hint = "use the Renderer that created the target, then initialize, recover, or stop using the destroyed token";
|
|
856
|
-
this.detail = detail;
|
|
857
|
-
}
|
|
858
|
-
};
|
|
859
|
-
var RenderTargetOperationFailedError = class extends Error {
|
|
860
|
-
code = "render-target-operation-failed";
|
|
861
|
-
expected;
|
|
862
|
-
hint;
|
|
863
|
-
detail;
|
|
864
|
-
constructor(detail) {
|
|
865
|
-
super(`render-target-operation-failed: ${detail.operation} failed during ${detail.stage}`);
|
|
866
|
-
this.name = "RenderTargetOperationFailedError";
|
|
867
|
-
this.expected = `${detail.operation} completes ${detail.stage}`;
|
|
868
|
-
this.hint = "inspect detail.cause, then retry, recover the Renderer, or retain the last-known-good generation";
|
|
869
|
-
this.detail = detail;
|
|
870
|
-
}
|
|
871
|
-
};
|
|
872
|
-
var RenderIntentInvalidError = class extends Error {
|
|
873
|
-
code = "render-intent-invalid";
|
|
874
|
-
expected;
|
|
875
|
-
hint;
|
|
876
|
-
detail;
|
|
877
|
-
constructor(component, value) {
|
|
878
|
-
super(`render-intent-invalid: ${component}.updateIntent is not an admitted value`);
|
|
879
|
-
this.name = "RenderIntentInvalidError";
|
|
880
|
-
this.expected = `${component}.updateIntent is one of 0, 1, or 2`;
|
|
881
|
-
this.hint = `set ${component}.updateIntent to 0, 1, or 2`;
|
|
882
|
-
this.detail = { component, field: "updateIntent", value, allowed: [0, 1, 2] };
|
|
883
|
-
}
|
|
884
|
-
};
|
|
885
|
-
var VolumeOwnerConflictError = class extends Error {
|
|
886
|
-
code = "volume-owner-conflict";
|
|
887
|
-
expected = "exactly one global VolumetricFog owner is authored";
|
|
888
|
-
hint = "remove additional VolumetricFog owners and retry extraction";
|
|
889
|
-
detail;
|
|
890
|
-
constructor(ownerCount) {
|
|
891
|
-
super(`volume-owner-conflict: received ${ownerCount} owners`);
|
|
892
|
-
this.name = "VolumeOwnerConflictError";
|
|
893
|
-
this.detail = { ownerCount };
|
|
894
|
-
}
|
|
895
|
-
};
|
|
896
|
-
var VolumeDensityShapeMismatchError = class extends Error {
|
|
897
|
-
code = "volume-density-shape-mismatch";
|
|
898
|
-
expected = "density is a linear 3D TextureAsset";
|
|
899
|
-
hint = "bind a verified linear texture with viewDimension 3d";
|
|
900
|
-
detail;
|
|
901
|
-
constructor(guid, viewDimension) {
|
|
902
|
-
super(`volume-density-shape-mismatch: ${viewDimension} density is not 3d`);
|
|
903
|
-
this.name = "VolumeDensityShapeMismatchError";
|
|
904
|
-
this.detail = { guid, viewDimension };
|
|
905
|
-
}
|
|
906
|
-
};
|
|
907
|
-
var VolumeInvalidBoundsError = class extends Error {
|
|
908
|
-
code = "volume-invalid-bounds";
|
|
909
|
-
expected = "bounds are finite and max is greater than min on every axis";
|
|
910
|
-
hint = "set finite non-degenerate volume bounds";
|
|
911
|
-
detail;
|
|
912
|
-
constructor(bounds) {
|
|
913
|
-
super("volume-invalid-bounds: bounds must be finite and non-degenerate");
|
|
914
|
-
this.name = "VolumeInvalidBoundsError";
|
|
915
|
-
this.detail = bounds;
|
|
916
|
-
}
|
|
917
|
-
};
|
|
918
|
-
var VolumeInvalidParametersError = class extends Error {
|
|
919
|
-
code = "volume-invalid-parameters";
|
|
920
|
-
expected = "volume parameters remain finite and inside their closed ranges";
|
|
921
|
-
hint = "repair extinction, albedo, emission, anisotropy, or maxDistance";
|
|
922
|
-
detail;
|
|
923
|
-
constructor(input) {
|
|
924
|
-
const field = input.maxDistance !== void 0 && input.maxDistance <= 0 ? "maxDistance" : "parameters";
|
|
925
|
-
const value = field === "maxDistance" ? input.maxDistance : input.anisotropy;
|
|
926
|
-
super(`volume-invalid-parameters: ${field} is outside the authored range`);
|
|
927
|
-
this.name = "VolumeInvalidParametersError";
|
|
928
|
-
this.detail = { field, value };
|
|
929
|
-
}
|
|
930
|
-
};
|
|
931
|
-
var MOTION_BLUR_PARAMS_BYTE_SIZE = 32;
|
|
932
|
-
var DEFAULT_MOTION_BLUR_PARAMS = Object.freeze({
|
|
933
|
-
shutterAngle: 180,
|
|
934
|
-
maxRadiusPixels: 32,
|
|
935
|
-
sampleCount: 8,
|
|
936
|
-
targetFps: 60
|
|
937
|
-
});
|
|
938
|
-
var MotionBlurValidationError = class extends Error {
|
|
939
|
-
code = "motion-blur-invalid-params";
|
|
940
|
-
expected;
|
|
941
|
-
hint;
|
|
942
|
-
detail;
|
|
943
|
-
constructor(detail) {
|
|
944
|
-
const integer = detail.integer === true ? "integer " : "";
|
|
945
|
-
const expected = `${detail.field} ${integer}in [${detail.min}, ${detail.max}]`;
|
|
946
|
-
super(`motion-blur-invalid-params: ${expected}`);
|
|
947
|
-
this.name = "MotionBlurValidationError";
|
|
948
|
-
this.expected = expected;
|
|
949
|
-
this.hint = `set ${detail.field} to an ${integer}value in [${detail.min}, ${detail.max}]`;
|
|
950
|
-
this.detail = detail;
|
|
951
|
-
}
|
|
952
|
-
};
|
|
953
|
-
function validateField(field, value, min, max, integer = false) {
|
|
954
|
-
if (!Number.isFinite(value) || value < min || value > max || integer && !Number.isInteger(value)) {
|
|
955
|
-
return new MotionBlurValidationError({
|
|
956
|
-
field,
|
|
957
|
-
value,
|
|
958
|
-
min,
|
|
959
|
-
max,
|
|
960
|
-
...integer ? { integer } : {}
|
|
961
|
-
});
|
|
962
|
-
}
|
|
963
|
-
return void 0;
|
|
964
|
-
}
|
|
965
|
-
function validateMotionBlurParams(input) {
|
|
966
|
-
const value = input ?? {};
|
|
967
|
-
const shutterAngle = value.shutterAngle ?? DEFAULT_MOTION_BLUR_PARAMS.shutterAngle;
|
|
968
|
-
const maxRadiusPixels = value.maxRadiusPixels ?? DEFAULT_MOTION_BLUR_PARAMS.maxRadiusPixels;
|
|
969
|
-
const sampleCount = value.sampleCount ?? DEFAULT_MOTION_BLUR_PARAMS.sampleCount;
|
|
970
|
-
const targetFps = value.targetFps ?? DEFAULT_MOTION_BLUR_PARAMS.targetFps;
|
|
971
|
-
const shutterError = validateField("shutterAngle", shutterAngle, 0, 360);
|
|
972
|
-
if (shutterError !== void 0) return err(shutterError);
|
|
973
|
-
const radiusError = validateField("maxRadiusPixels", maxRadiusPixels, 0, 64);
|
|
974
|
-
if (radiusError !== void 0) return err(radiusError);
|
|
975
|
-
const sampleError = validateField("sampleCount", sampleCount, 4, 16, true);
|
|
976
|
-
if (sampleError !== void 0) return err(sampleError);
|
|
977
|
-
const targetFpsError = validateField("targetFps", targetFps, 0, 240, true);
|
|
978
|
-
if (targetFpsError !== void 0) return err(targetFpsError);
|
|
979
|
-
return ok(Object.freeze({ shutterAngle, maxRadiusPixels, sampleCount, targetFps }));
|
|
980
|
-
}
|
|
981
|
-
function motionBlurTemporalDemand(params) {
|
|
982
|
-
return params !== void 0 && params.shutterAngle > 0 && params.maxRadiusPixels > 0;
|
|
983
|
-
}
|
|
984
|
-
function effectiveMotionBlurSampleCount(sampleCount) {
|
|
985
|
-
if (!Number.isFinite(sampleCount) || sampleCount < 4) return 0;
|
|
986
|
-
if (sampleCount < 8) return 4;
|
|
987
|
-
if (sampleCount < 16) return 8;
|
|
988
|
-
return 16;
|
|
989
|
-
}
|
|
990
|
-
function isMotionBlurIntervalValid(frameDeltaSeconds) {
|
|
991
|
-
return Number.isFinite(frameDeltaSeconds) && frameDeltaSeconds > 0 && frameDeltaSeconds <= 0.1;
|
|
992
|
-
}
|
|
993
|
-
function motionBlurExposureScale(frameDeltaSeconds, targetFps) {
|
|
994
|
-
if (!isMotionBlurIntervalValid(frameDeltaSeconds)) return 0;
|
|
995
|
-
if (!Number.isFinite(targetFps) || targetFps < 0 || targetFps > 240 || !Number.isInteger(targetFps)) {
|
|
996
|
-
return 0;
|
|
997
|
-
}
|
|
998
|
-
if (targetFps === 0) return 1;
|
|
999
|
-
return 1 / (targetFps * frameDeltaSeconds);
|
|
1000
|
-
}
|
|
1001
|
-
function motionBlurSampleDelta(sampleTimeSeconds, previousSampleTimeSeconds, fallbackDeltaSeconds) {
|
|
1002
|
-
if (sampleTimeSeconds !== void 0 && !Number.isFinite(sampleTimeSeconds) || previousSampleTimeSeconds !== void 0 && !Number.isFinite(previousSampleTimeSeconds)) {
|
|
1003
|
-
return Number.NaN;
|
|
1004
|
-
}
|
|
1005
|
-
if (Number.isFinite(sampleTimeSeconds) && Number.isFinite(previousSampleTimeSeconds)) {
|
|
1006
|
-
return sampleTimeSeconds - previousSampleTimeSeconds;
|
|
1007
|
-
}
|
|
1008
|
-
return fallbackDeltaSeconds;
|
|
1009
|
-
}
|
|
1010
|
-
function resolveMotionBlurParams(input) {
|
|
1011
|
-
if (input === void 0) return ok(void 0);
|
|
1012
|
-
return validateMotionBlurParams(input);
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
// src/gpu-texture-usage.ts
|
|
1016
|
-
var GPU_TEXTURE_USAGE_COPY_SRC = 1;
|
|
1017
|
-
var GPU_TEXTURE_USAGE_COPY_DST = 2;
|
|
1018
|
-
var GPU_TEXTURE_USAGE_TEXTURE_BINDING = 4;
|
|
1019
|
-
var GPU_TEXTURE_USAGE_STORAGE_BINDING = 8;
|
|
1020
|
-
var GPU_TEXTURE_USAGE_RENDER_ATTACHMENT = 16;
|
|
1021
|
-
var GPU_TEXTURE_USAGE_RENDER_ATTACHMENT_AND_TEXTURE_BINDING = GPU_TEXTURE_USAGE_RENDER_ATTACHMENT | GPU_TEXTURE_USAGE_TEXTURE_BINDING;
|
|
1022
|
-
|
|
1023
|
-
// src/shadow-atlas.ts
|
|
1024
|
-
var SHADOW_ATLAS_DEFAULT_FACE_SIZE = 512;
|
|
1025
|
-
var SHADOW_ATLAS_DEFAULT_LAYERS = 4;
|
|
1026
|
-
var ShadowAtlas = class {
|
|
1027
|
-
/** Backing cube_array depth texture. `null` until `ensure()` has run. */
|
|
1028
|
-
texture = null;
|
|
1029
|
-
/**
|
|
1030
|
-
* Whole-atlas cube_array sampling view used by URP shaders that bind the
|
|
1031
|
-
* atlas at `@group(0) @binding(5)`. `null` until `ensure()` has run.
|
|
1032
|
-
*/
|
|
1033
|
-
cubeArrayView = null;
|
|
1034
|
-
/** Comparison sampler for `texture_depth_cube_array`. */
|
|
1035
|
-
compareSampler = null;
|
|
1036
|
-
/** Per-face 2D depth view cache, keyed by `layer * 6 + face`. */
|
|
1037
|
-
faceViews = /* @__PURE__ */ new Map();
|
|
1038
|
-
/** Per-face label cache (debug aid). Reused on re-creation. */
|
|
1039
|
-
device;
|
|
1040
|
-
/** Per-face square size in pixels. */
|
|
1041
|
-
faceSize;
|
|
1042
|
-
/** Cube layer count. */
|
|
1043
|
-
layers;
|
|
1044
|
-
constructor(device, options = {}) {
|
|
1045
|
-
this.device = device;
|
|
1046
|
-
this.faceSize = options.faceSize ?? SHADOW_ATLAS_DEFAULT_FACE_SIZE;
|
|
1047
|
-
this.layers = options.layers ?? SHADOW_ATLAS_DEFAULT_LAYERS;
|
|
1048
|
-
}
|
|
1049
|
-
/**
|
|
1050
|
-
* Returns `true` once the atlas texture is allocated. Used by the extract /
|
|
1051
|
-
* record path to gate "no PointLightShadow → no allocation" (AC-09) — the
|
|
1052
|
-
* caller calls {@link ensure} on a frame that has at least one snapshot;
|
|
1053
|
-
* before that, `isAllocated()` stays `false` and tests can assert no GPU
|
|
1054
|
-
* resources were created.
|
|
1055
|
-
*/
|
|
1056
|
-
isAllocated() {
|
|
1057
|
-
return this.texture !== null;
|
|
1058
|
-
}
|
|
1059
|
-
/**
|
|
1060
|
-
* Lazy-allocate the atlas texture + cube_array sampling view + comparison
|
|
1061
|
-
* sampler. Idempotent: subsequent calls are zero-cost no-ops once the
|
|
1062
|
-
* resources exist.
|
|
1063
|
-
*
|
|
1064
|
-
* Throws (via the RHI error registry) on allocation failure. This is the
|
|
1065
|
-
* only path that touches the GPU — keeping it inside one method makes the
|
|
1066
|
-
* "zero-shadow scene = zero allocation" gate easy to enforce: the renderer
|
|
1067
|
-
* never calls this method on a frame with no PointLightShadow entities.
|
|
1068
|
-
*/
|
|
1069
|
-
ensure() {
|
|
1070
|
-
if (this.texture !== null) return;
|
|
1071
|
-
const usage = GPU_TEXTURE_USAGE_RENDER_ATTACHMENT_AND_TEXTURE_BINDING;
|
|
1072
|
-
const texDesc = cubeArrayDepthDescriptor(this.faceSize, this.layers, usage);
|
|
1073
|
-
const texRes = this.device.createTexture(texDesc);
|
|
1074
|
-
if (!texRes.ok) throw texRes.error;
|
|
1075
|
-
this.texture = texRes.value;
|
|
1076
|
-
const viewRes = this.device.createTextureView(this.texture, {
|
|
1077
|
-
label: "shadow-atlas-cube-array-view",
|
|
1078
|
-
dimension: "cube-array",
|
|
1079
|
-
aspect: "depth-only",
|
|
1080
|
-
baseArrayLayer: 0,
|
|
1081
|
-
arrayLayerCount: 6 * this.layers,
|
|
1082
|
-
baseMipLevel: 0,
|
|
1083
|
-
mipLevelCount: 1
|
|
1084
|
-
});
|
|
1085
|
-
if (!viewRes.ok) {
|
|
1086
|
-
this.device.destroyTexture(this.texture);
|
|
1087
|
-
this.texture = null;
|
|
1088
|
-
throw viewRes.error;
|
|
1089
|
-
}
|
|
1090
|
-
this.cubeArrayView = viewRes.value;
|
|
1091
|
-
const sampRes = this.device.createSampler(comparisonSamplerDescriptor());
|
|
1092
|
-
if (!sampRes.ok) {
|
|
1093
|
-
this.device.destroyTexture(this.texture);
|
|
1094
|
-
this.texture = null;
|
|
1095
|
-
this.cubeArrayView = null;
|
|
1096
|
-
throw sampRes.error;
|
|
1097
|
-
}
|
|
1098
|
-
this.compareSampler = sampRes.value;
|
|
1099
|
-
}
|
|
1100
|
-
/**
|
|
1101
|
-
* Whole-atlas cube_array sampling view (`texture_depth_cube_array`). Returns
|
|
1102
|
-
* `null` if the atlas is not yet allocated; the caller should gate on a
|
|
1103
|
-
* non-null pointShadow array before calling {@link ensure} + this getter.
|
|
1104
|
-
*/
|
|
1105
|
-
getAtlasView() {
|
|
1106
|
-
return this.cubeArrayView;
|
|
1107
|
-
}
|
|
1108
|
-
/**
|
|
1109
|
-
* Comparison sampler (`compare: 'less'`) for cube_array depth sampling.
|
|
1110
|
-
* Returns `null` if the atlas is not yet allocated.
|
|
1111
|
-
*/
|
|
1112
|
-
getComparisonSampler() {
|
|
1113
|
-
return this.compareSampler;
|
|
1114
|
-
}
|
|
1115
|
-
/**
|
|
1116
|
-
* Backing texture handle. Returns `null` if the atlas is not yet allocated.
|
|
1117
|
-
*/
|
|
1118
|
-
getTexture() {
|
|
1119
|
-
return this.texture;
|
|
1120
|
-
}
|
|
1121
|
-
/**
|
|
1122
|
-
* Lazy 2D depth view selecting `(layer, face)` (the caller passes
|
|
1123
|
-
* `shadowAtlasLayer` from the snapshot and a face index 0..5). Used as the
|
|
1124
|
-
* depth attachment of the shadow-caster render pass for one cube face.
|
|
1125
|
-
*
|
|
1126
|
-
* Caches per `(layer, face)` so the per-frame shadow loop pays zero
|
|
1127
|
-
* `createTextureView` cost after the first allocation. Cache is cleared on
|
|
1128
|
-
* {@link dispose}.
|
|
1129
|
-
*
|
|
1130
|
-
* @throws PointShadowAtlasUninitializedError if the atlas is not yet
|
|
1131
|
-
* allocated (caller must call {@link ensure} first).
|
|
1132
|
-
* @throws PointShadowAtlasBoundsViolationError if `layer` or `face` is out
|
|
1133
|
-
* of range.
|
|
1134
|
-
* @throws RhiError if the underlying `createTextureView` fails.
|
|
1135
|
-
*/
|
|
1136
|
-
faceView(layer, face) {
|
|
1137
|
-
if (this.texture === null) {
|
|
1138
|
-
throw new PointShadowAtlasUninitializedError();
|
|
1139
|
-
}
|
|
1140
|
-
if (layer < 0 || layer >= this.layers) {
|
|
1141
|
-
throw new PointShadowAtlasBoundsViolationError("layer", layer, this.layers);
|
|
1142
|
-
}
|
|
1143
|
-
if (face < 0 || face >= 6) {
|
|
1144
|
-
throw new PointShadowAtlasBoundsViolationError("face", face, 6);
|
|
1145
|
-
}
|
|
1146
|
-
const key = layer * 6 + face;
|
|
1147
|
-
const cached = this.faceViews.get(key);
|
|
1148
|
-
if (cached !== void 0) return cached;
|
|
1149
|
-
const desc = cubeArrayDepthFaceView(layer, face);
|
|
1150
|
-
const r = this.device.createTextureView(this.texture, desc);
|
|
1151
|
-
if (!r.ok) throw r.error;
|
|
1152
|
-
this.faceViews.set(key, r.value);
|
|
1153
|
-
return r.value;
|
|
1154
|
-
}
|
|
1155
|
-
/**
|
|
1156
|
-
* Release the GPU resources and clear the per-face view cache. Idempotent;
|
|
1157
|
-
* subsequent calls are zero-cost. After dispose, `isAllocated()` returns
|
|
1158
|
-
* `false` and the next `ensure()` re-allocates from scratch.
|
|
1159
|
-
*/
|
|
1160
|
-
dispose() {
|
|
1161
|
-
this.faceViews.clear();
|
|
1162
|
-
if (this.texture !== null) {
|
|
1163
|
-
this.device.destroyTexture(this.texture);
|
|
1164
|
-
this.texture = null;
|
|
1165
|
-
}
|
|
1166
|
-
this.cubeArrayView = null;
|
|
1167
|
-
this.compareSampler = null;
|
|
1168
|
-
}
|
|
1169
|
-
};
|
|
1170
|
-
|
|
1171
|
-
// src/errors/gpu-driven.ts
|
|
1172
|
-
var ERROR_POLICY2 = {
|
|
1173
|
-
"missing-material-receipt": {
|
|
1174
|
-
expected: "a producer-owned material program receipt is present",
|
|
1175
|
-
hint: "cook and load the selected material program artifact, then retry preparation",
|
|
1176
|
-
recovery: "rebuild-producer"
|
|
1177
|
-
},
|
|
1178
|
-
"material-abi-not-executable": {
|
|
1179
|
-
expected: "the published material ABI fits the GPU Scene submission layout",
|
|
1180
|
-
hint: "recook the material with a scene-index ABI supported by the GPU-driven owner or keep it on its authored lane",
|
|
1181
|
-
recovery: "route-cpu-lane"
|
|
1182
|
-
},
|
|
1183
|
-
"missing-uv": {
|
|
1184
|
-
expected: "the geometry exposes every UV set named by the material receipt",
|
|
1185
|
-
hint: "repair the geometry UV semantic or route the draw to the CPU semantic lane",
|
|
1186
|
-
recovery: "route-cpu-lane"
|
|
1187
|
-
},
|
|
1188
|
-
"reflection-mismatch": {
|
|
1189
|
-
expected: "the loaded reflection receipt matches the artifact layout identity",
|
|
1190
|
-
hint: "rebuild the material artifact and reflection from one source, then retry",
|
|
1191
|
-
recovery: "rebuild-producer"
|
|
1192
|
-
},
|
|
1193
|
-
"vertex-input-mismatch": {
|
|
1194
|
-
expected: "geometry vertex semantics match the material reflection receipt",
|
|
1195
|
-
hint: "repair the geometry vertex semantic layout or route the draw to the CPU lane",
|
|
1196
|
-
recovery: "route-cpu-lane"
|
|
1197
|
-
},
|
|
1198
|
-
"alpha-mask-mismatch": {
|
|
1199
|
-
expected: "the Alpha Mask cutoff is present in the material receipt",
|
|
1200
|
-
hint: "declare the pass coverage cutoff in the material schema and recook it",
|
|
1201
|
-
recovery: "rebuild-producer"
|
|
1202
|
-
},
|
|
1203
|
-
"resource-not-ready": {
|
|
1204
|
-
expected: "all material resource slots have resolved handles",
|
|
1205
|
-
hint: "resolve the declared texture and sampler resources before recording",
|
|
1206
|
-
recovery: "retry-same-draw"
|
|
1207
|
-
},
|
|
1208
|
-
"stale-generation": {
|
|
1209
|
-
expected: "receipt and prepared inputs belong to the requested generation",
|
|
1210
|
-
hint: "discard stale GPU facts, rebuild the producer receipt, and retry the same draw",
|
|
1211
|
-
recovery: "rebuild-generation"
|
|
1212
|
-
},
|
|
1213
|
-
"skin-receipt-mismatch": {
|
|
1214
|
-
expected: "skinned geometry has a current palette address receipt",
|
|
1215
|
-
hint: "rebuild the Skin palette receipt for this generation before recording",
|
|
1216
|
-
recovery: "rebuild-producer"
|
|
1217
|
-
},
|
|
1218
|
-
"shadow-ownership": {
|
|
1219
|
-
expected: "every declared ShadowCaster pass has one GPU-compatible draw-item owner",
|
|
1220
|
-
hint: "repair the ShadowCaster producer membership or keep the residual on its explicit CPU lane",
|
|
1221
|
-
recovery: "route-cpu-lane"
|
|
1222
|
-
}
|
|
1223
|
-
};
|
|
1224
|
-
var GpuDrivenPreparationError = class extends Error {
|
|
1225
|
-
code;
|
|
1226
|
-
expected;
|
|
1227
|
-
hint;
|
|
1228
|
-
detail;
|
|
1229
|
-
constructor(code, detail) {
|
|
1230
|
-
const policy = ERROR_POLICY2[code];
|
|
1231
|
-
super(`[GpuDrivenPreparationError ${code}] ${policy.expected}`);
|
|
1232
|
-
this.name = "GpuDrivenPreparationError";
|
|
1233
|
-
this.code = code;
|
|
1234
|
-
this.expected = policy.expected;
|
|
1235
|
-
this.hint = policy.hint;
|
|
1236
|
-
this.detail = Object.freeze({
|
|
1237
|
-
...detail,
|
|
1238
|
-
recovery: detail.recovery ?? policy.recovery
|
|
1239
|
-
});
|
|
1240
|
-
}
|
|
1241
|
-
};
|
|
1242
|
-
var MATRIX_STRIDE = 16;
|
|
1243
|
-
var INITIAL_CAPACITY = 1;
|
|
1244
|
-
function instanceUploadRangesForResident(activeIsNew, dirtyRanges, fullRange) {
|
|
1245
|
-
return activeIsNew ? [fullRange] : dirtyRanges;
|
|
1246
|
-
}
|
|
1247
|
-
function instanceCollectionFailureFacts(cause, recovery, requestedBytes = 0, supportedBytes = void 0, backend = "unknown") {
|
|
1248
|
-
return {
|
|
1249
|
-
requestedBytes,
|
|
1250
|
-
supportedBytes,
|
|
1251
|
-
backend,
|
|
1252
|
-
owner: "renderer.instances",
|
|
1253
|
-
cause,
|
|
1254
|
-
recovery
|
|
1255
|
-
};
|
|
1256
|
-
}
|
|
1257
|
-
var InstanceCollectionError = class extends Error {
|
|
1258
|
-
code;
|
|
1259
|
-
expected;
|
|
1260
|
-
hint;
|
|
1261
|
-
detail;
|
|
1262
|
-
owner = "renderer.instances";
|
|
1263
|
-
recovery;
|
|
1264
|
-
facts;
|
|
1265
|
-
constructor(code, expected, hint, detail, facts) {
|
|
1266
|
-
super(`${code}: ${expected}`);
|
|
1267
|
-
this.name = "InstanceCollectionError";
|
|
1268
|
-
this.code = code;
|
|
1269
|
-
this.expected = expected;
|
|
1270
|
-
this.hint = hint;
|
|
1271
|
-
this.detail = detail;
|
|
1272
|
-
this.facts = facts ?? instanceCollectionFailureFacts(
|
|
1273
|
-
code,
|
|
1274
|
-
hint,
|
|
1275
|
-
detail?.operation === "create" || detail?.operation === "replace" ? typeof detail.actual === "number" && Number.isFinite(detail.actual) ? detail.actual * Float32Array.BYTES_PER_ELEMENT : 0 : 0
|
|
1276
|
-
);
|
|
1277
|
-
this.recovery = this.facts.recovery;
|
|
1278
|
-
}
|
|
1279
|
-
};
|
|
1280
|
-
function nextCapacity(required) {
|
|
1281
|
-
let capacity = INITIAL_CAPACITY;
|
|
1282
|
-
while (capacity < required) capacity *= 2;
|
|
1283
|
-
return capacity;
|
|
1284
|
-
}
|
|
1285
|
-
function invalid(operation, expected, actual, collectionId, context) {
|
|
1286
|
-
const hint = "repair the collection payload and retry the same authoring operation";
|
|
1287
|
-
return new InstanceCollectionError(
|
|
1288
|
-
"instance-collection-invalid",
|
|
1289
|
-
expected,
|
|
1290
|
-
hint,
|
|
1291
|
-
{ operation, expected, actual, ...collectionId === void 0 ? {} : { collectionId } },
|
|
1292
|
-
instanceCollectionFailureFacts(
|
|
1293
|
-
context?.cause ?? `invalid-${operation}-authoring`,
|
|
1294
|
-
context?.recovery ?? hint,
|
|
1295
|
-
context?.requestedBytes ?? 0,
|
|
1296
|
-
context?.supportedBytes
|
|
1297
|
-
)
|
|
1298
|
-
);
|
|
1299
|
-
}
|
|
1300
|
-
function validateTransforms(operation, transforms, collectionId) {
|
|
1301
|
-
if (!(transforms instanceof Float32Array)) {
|
|
1302
|
-
return invalid(operation, "transforms is a Float32Array", typeof transforms, collectionId, {
|
|
1303
|
-
cause: "invalid-transform-type"
|
|
1304
|
-
});
|
|
1305
|
-
}
|
|
1306
|
-
if (transforms.length % MATRIX_STRIDE !== 0) {
|
|
1307
|
-
return invalid(
|
|
1308
|
-
operation,
|
|
1309
|
-
`transforms.length is a multiple of ${MATRIX_STRIDE}`,
|
|
1310
|
-
transforms.length,
|
|
1311
|
-
collectionId,
|
|
1312
|
-
{
|
|
1313
|
-
requestedBytes: transforms.byteLength,
|
|
1314
|
-
cause: "invalid-transform-stride"
|
|
1315
|
-
}
|
|
1316
|
-
);
|
|
1317
|
-
}
|
|
1318
|
-
for (const value of transforms) {
|
|
1319
|
-
if (!Number.isFinite(value)) {
|
|
1320
|
-
return invalid(operation, "every transform value is finite", value, collectionId, {
|
|
1321
|
-
requestedBytes: transforms.byteLength,
|
|
1322
|
-
cause: "invalid-transform-value"
|
|
1323
|
-
});
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
return void 0;
|
|
1327
|
-
}
|
|
1328
|
-
function appendRange(ranges, start, end) {
|
|
1329
|
-
if (start >= end) return;
|
|
1330
|
-
let index = 0;
|
|
1331
|
-
while (index < ranges.length) {
|
|
1332
|
-
const existing = ranges[index];
|
|
1333
|
-
if (existing === void 0 || existing.end >= start) break;
|
|
1334
|
-
index += 1;
|
|
1335
|
-
}
|
|
1336
|
-
while (index < ranges.length) {
|
|
1337
|
-
const existing = ranges[index];
|
|
1338
|
-
if (existing === void 0 || existing.start > end) break;
|
|
1339
|
-
start = Math.min(start, existing.start);
|
|
1340
|
-
end = Math.max(end, existing.end);
|
|
1341
|
-
ranges.splice(index, 1);
|
|
1342
|
-
}
|
|
1343
|
-
ranges.splice(index, 0, { start, end });
|
|
1344
|
-
}
|
|
1345
|
-
function appendDirtyRange(record, start, end) {
|
|
1346
|
-
appendRange(record.dirtyRanges, start, end);
|
|
1347
|
-
}
|
|
1348
|
-
function missing(operation, id) {
|
|
1349
|
-
return new InstanceCollectionError(
|
|
1350
|
-
"instance-collection-not-found",
|
|
1351
|
-
`instance collection ${Number(id)} is live and owned by this Renderer`,
|
|
1352
|
-
"create a collection with renderer.instances.create or retain the original collection id",
|
|
1353
|
-
{ operation, expected: "a live instance collection id", actual: Number(id), collectionId: id }
|
|
1354
|
-
);
|
|
1355
|
-
}
|
|
1356
|
-
var InstanceCollectionStore = class {
|
|
1357
|
-
nextId = 1;
|
|
1358
|
-
nextInstanceGeneration = 1;
|
|
1359
|
-
epochValue = 0;
|
|
1360
|
-
disposed = false;
|
|
1361
|
-
records = /* @__PURE__ */ new Map();
|
|
1362
|
-
residency = /* @__PURE__ */ new Map();
|
|
1363
|
-
get epoch() {
|
|
1364
|
-
return this.epochValue;
|
|
1365
|
-
}
|
|
1366
|
-
create(input) {
|
|
1367
|
-
if (this.disposed) {
|
|
1368
|
-
return err(
|
|
1369
|
-
new InstanceCollectionError(
|
|
1370
|
-
"instance-collection-released",
|
|
1371
|
-
"the Renderer-owned instance collection store is live",
|
|
1372
|
-
"create a new Renderer before authoring instance collections"
|
|
1373
|
-
)
|
|
1374
|
-
);
|
|
1375
|
-
}
|
|
1376
|
-
const invalidPayload = validateTransforms("create", input.transforms);
|
|
1377
|
-
if (invalidPayload !== void 0) return err(invalidPayload);
|
|
1378
|
-
const id = this.nextId++;
|
|
1379
|
-
const count = input.transforms.length / MATRIX_STRIDE;
|
|
1380
|
-
const generations = this.allocateGenerations(count);
|
|
1381
|
-
const record = {
|
|
1382
|
-
id,
|
|
1383
|
-
transforms: new Float32Array(input.transforms),
|
|
1384
|
-
generations,
|
|
1385
|
-
count,
|
|
1386
|
-
capacity: nextCapacity(Math.max(INITIAL_CAPACITY, count)),
|
|
1387
|
-
revision: 1,
|
|
1388
|
-
dirtyRanges: count === 0 ? [] : [{ start: 0, end: count }],
|
|
1389
|
-
lastSnapshotRevision: 0,
|
|
1390
|
-
released: false
|
|
1391
|
-
};
|
|
1392
|
-
this.records.set(id, record);
|
|
1393
|
-
this.epochValue += 1;
|
|
1394
|
-
return ok(this.info(record));
|
|
1395
|
-
}
|
|
1396
|
-
replace(id, transforms, generations) {
|
|
1397
|
-
const record = this.live("replace", id);
|
|
1398
|
-
if (!record.ok) return record;
|
|
1399
|
-
const invalidPayload = validateTransforms("replace", transforms, id);
|
|
1400
|
-
if (invalidPayload !== void 0) return err(invalidPayload);
|
|
1401
|
-
const count = transforms.length / MATRIX_STRIDE;
|
|
1402
|
-
const generationResult = generations === void 0 ? ok(this.allocateGenerations(count)) : this.validateReplacementGenerations(generations, count, id);
|
|
1403
|
-
if (!generationResult.ok) return generationResult;
|
|
1404
|
-
const replacementGenerations = generationResult.value;
|
|
1405
|
-
record.value.transforms = new Float32Array(transforms);
|
|
1406
|
-
record.value.generations = replacementGenerations;
|
|
1407
|
-
record.value.count = count;
|
|
1408
|
-
record.value.capacity = Math.max(record.value.capacity, nextCapacity(Math.max(1, count)));
|
|
1409
|
-
record.value.revision += 1;
|
|
1410
|
-
record.value.dirtyRanges = count === 0 ? [] : [{ start: 0, end: count }];
|
|
1411
|
-
record.value.lastSnapshotRevision = record.value.revision - 1;
|
|
1412
|
-
this.epochValue += 1;
|
|
1413
|
-
return ok(this.info(record.value));
|
|
1414
|
-
}
|
|
1415
|
-
update(id, input) {
|
|
1416
|
-
const record = this.live("update", id);
|
|
1417
|
-
if (!record.ok) return record;
|
|
1418
|
-
const invalidPayload = validateTransforms("update", input.transforms, id);
|
|
1419
|
-
if (invalidPayload !== void 0) return err(invalidPayload);
|
|
1420
|
-
if (!Number.isInteger(input.start) || input.start < 0) {
|
|
1421
|
-
return err(
|
|
1422
|
-
invalid("update", "start is a non-negative matrix ordinal", input.start, id, {
|
|
1423
|
-
requestedBytes: input.transforms.byteLength,
|
|
1424
|
-
supportedBytes: record.value.capacity * MATRIX_STRIDE * Float32Array.BYTES_PER_ELEMENT,
|
|
1425
|
-
cause: "invalid-update-range-start"
|
|
1426
|
-
})
|
|
1427
|
-
);
|
|
1428
|
-
}
|
|
1429
|
-
const span = input.transforms.length / MATRIX_STRIDE;
|
|
1430
|
-
const attemptedEnd = input.start + span;
|
|
1431
|
-
if (attemptedEnd > record.value.count) {
|
|
1432
|
-
return err(
|
|
1433
|
-
invalid(
|
|
1434
|
-
"update",
|
|
1435
|
-
`start + matrix count is <= collection count (${record.value.count})`,
|
|
1436
|
-
attemptedEnd,
|
|
1437
|
-
id,
|
|
1438
|
-
{
|
|
1439
|
-
requestedBytes: attemptedEnd * MATRIX_STRIDE * Float32Array.BYTES_PER_ELEMENT,
|
|
1440
|
-
supportedBytes: record.value.count * MATRIX_STRIDE * Float32Array.BYTES_PER_ELEMENT,
|
|
1441
|
-
cause: "invalid-update-range-end"
|
|
1442
|
-
}
|
|
1443
|
-
)
|
|
1444
|
-
);
|
|
1445
|
-
}
|
|
1446
|
-
if (record.value.lastSnapshotRevision === record.value.revision) {
|
|
1447
|
-
record.value.dirtyRanges = [];
|
|
1448
|
-
}
|
|
1449
|
-
record.value.transforms.set(input.transforms, input.start * MATRIX_STRIDE);
|
|
1450
|
-
record.value.revision += 1;
|
|
1451
|
-
appendDirtyRange(record.value, input.start, input.start + span);
|
|
1452
|
-
this.epochValue += 1;
|
|
1453
|
-
return ok(this.info(record.value));
|
|
1454
|
-
}
|
|
1455
|
-
inspect(id) {
|
|
1456
|
-
const record = this.live("inspect", id);
|
|
1457
|
-
return record.ok ? ok(this.info(record.value)) : record;
|
|
1458
|
-
}
|
|
1459
|
-
/**
|
|
1460
|
-
* Return detached residency facts for every live collection.
|
|
1461
|
-
*
|
|
1462
|
-
* @internal Record-stage evidence is reported through the two methods below;
|
|
1463
|
-
* callers only receive immutable PODs and never GPU handles.
|
|
1464
|
-
*/
|
|
1465
|
-
_inspections() {
|
|
1466
|
-
return Object.freeze(
|
|
1467
|
-
[...this.records.values()].map((record) => this.projectInspection(record))
|
|
1468
|
-
);
|
|
1469
|
-
}
|
|
1470
|
-
/** @internal Renderer record owner reports the accepted collection lane. */
|
|
1471
|
-
_reportResidency(input) {
|
|
1472
|
-
if (!this.records.has(input.collectionId)) return;
|
|
1473
|
-
const previous = this.residency.get(input.collectionId);
|
|
1474
|
-
const sameFrame = previous !== void 0 && previous.frameNumber === input.frameNumber && previous.error === void 0;
|
|
1475
|
-
const uploadRanges = sameFrame ? [...previous.uploadRanges].reduce(
|
|
1476
|
-
(ranges, range) => {
|
|
1477
|
-
appendRange(ranges, range.start, range.end);
|
|
1478
|
-
return ranges;
|
|
1479
|
-
},
|
|
1480
|
-
input.uploadRanges.map((range) => ({ ...range }))
|
|
1481
|
-
) : input.uploadRanges.map((range) => ({ ...range }));
|
|
1482
|
-
this.residency.set(input.collectionId, {
|
|
1483
|
-
frameNumber: input.frameNumber,
|
|
1484
|
-
residentGeneration: input.residentGeneration,
|
|
1485
|
-
lane: input.lane,
|
|
1486
|
-
uploadRanges,
|
|
1487
|
-
uploadedBytes: sameFrame ? previous.uploadedBytes + input.uploadedBytes : input.uploadedBytes,
|
|
1488
|
-
requestedBytes: input.requestedBytes,
|
|
1489
|
-
supportedBytes: input.supportedBytes,
|
|
1490
|
-
backend: input.backend,
|
|
1491
|
-
error: void 0
|
|
1492
|
-
});
|
|
1493
|
-
}
|
|
1494
|
-
/** @internal Renderer record owner reports a typed admission failure. */
|
|
1495
|
-
_reportFailure(input) {
|
|
1496
|
-
if (!this.records.has(input.collectionId)) return;
|
|
1497
|
-
this.residency.set(input.collectionId, {
|
|
1498
|
-
frameNumber: -1,
|
|
1499
|
-
residentGeneration: void 0,
|
|
1500
|
-
lane: "unavailable",
|
|
1501
|
-
uploadRanges: [],
|
|
1502
|
-
uploadedBytes: 0,
|
|
1503
|
-
requestedBytes: input.facts.requestedBytes,
|
|
1504
|
-
supportedBytes: input.facts.supportedBytes,
|
|
1505
|
-
backend: input.facts.backend,
|
|
1506
|
-
error: {
|
|
1507
|
-
code: input.code,
|
|
1508
|
-
expected: input.expected,
|
|
1509
|
-
hint: input.hint,
|
|
1510
|
-
detail: { ...input.facts }
|
|
1511
|
-
}
|
|
1512
|
-
});
|
|
1513
|
-
}
|
|
1514
|
-
/** @internal A lost device invalidates every renderer-owned GPU resident. */
|
|
1515
|
-
_resetResidency() {
|
|
1516
|
-
this.residency.clear();
|
|
1517
|
-
}
|
|
1518
|
-
snapshot(id) {
|
|
1519
|
-
const record = this.live("inspect", id);
|
|
1520
|
-
if (!record.ok) return record;
|
|
1521
|
-
const value = record.value;
|
|
1522
|
-
value.lastSnapshotRevision = value.revision;
|
|
1523
|
-
const result = {
|
|
1524
|
-
...this.info(value),
|
|
1525
|
-
transforms: new Float32Array(value.transforms),
|
|
1526
|
-
generations: new Uint32Array(value.generations),
|
|
1527
|
-
dirtyRanges: value.dirtyRanges.map((range) => ({ ...range }))
|
|
1528
|
-
};
|
|
1529
|
-
return ok(result);
|
|
1530
|
-
}
|
|
1531
|
-
/**
|
|
1532
|
-
* Read a detached matrix view without advancing the render-consumption
|
|
1533
|
-
* cursor. Inspection and picking may call this between authoring updates;
|
|
1534
|
-
* the next renderer snapshot must still receive the complete dirty union.
|
|
1535
|
-
*/
|
|
1536
|
-
peek(id) {
|
|
1537
|
-
const record = this.live("inspect", id);
|
|
1538
|
-
return record.ok ? ok(this.detachedSnapshot(record.value)) : record;
|
|
1539
|
-
}
|
|
1540
|
-
release(id) {
|
|
1541
|
-
const record = this.records.get(id);
|
|
1542
|
-
if (record === void 0) return err(missing("release", id));
|
|
1543
|
-
if (record.released) {
|
|
1544
|
-
return err(
|
|
1545
|
-
new InstanceCollectionError(
|
|
1546
|
-
"instance-collection-released",
|
|
1547
|
-
`instance collection ${Number(id)} has not already been released`,
|
|
1548
|
-
"do not reuse a released collection id; create a new collection",
|
|
1549
|
-
{
|
|
1550
|
-
operation: "release",
|
|
1551
|
-
expected: "a live instance collection id",
|
|
1552
|
-
actual: Number(id),
|
|
1553
|
-
collectionId: id
|
|
1554
|
-
}
|
|
1555
|
-
)
|
|
1556
|
-
);
|
|
1557
|
-
}
|
|
1558
|
-
record.released = true;
|
|
1559
|
-
this.records.delete(id);
|
|
1560
|
-
this.residency.delete(id);
|
|
1561
|
-
this.epochValue += 1;
|
|
1562
|
-
return ok(void 0);
|
|
1563
|
-
}
|
|
1564
|
-
/** Drop all canonical matrices during Renderer disposal. */
|
|
1565
|
-
dispose() {
|
|
1566
|
-
if (this.disposed) return;
|
|
1567
|
-
this.disposed = true;
|
|
1568
|
-
for (const record of this.records.values()) record.released = true;
|
|
1569
|
-
this.records.clear();
|
|
1570
|
-
this.residency.clear();
|
|
1571
|
-
this.epochValue += 1;
|
|
1572
|
-
}
|
|
1573
|
-
live(operation, id) {
|
|
1574
|
-
if (!Number.isInteger(id) || id <= 0) {
|
|
1575
|
-
return err(invalid(operation, "collectionId is a positive integer", id, id));
|
|
1576
|
-
}
|
|
1577
|
-
if (this.disposed) {
|
|
1578
|
-
return err(
|
|
1579
|
-
new InstanceCollectionError(
|
|
1580
|
-
"instance-collection-released",
|
|
1581
|
-
"the Renderer-owned instance collection store is live",
|
|
1582
|
-
"create a new Renderer before using instance collections",
|
|
1583
|
-
{ operation, expected: "a live collection store", actual: "disposed", collectionId: id }
|
|
1584
|
-
)
|
|
1585
|
-
);
|
|
1586
|
-
}
|
|
1587
|
-
const record = this.records.get(id);
|
|
1588
|
-
return record === void 0 ? err(missing(operation, id)) : ok(record);
|
|
1589
|
-
}
|
|
1590
|
-
detachedSnapshot(record) {
|
|
1591
|
-
return {
|
|
1592
|
-
...this.info(record),
|
|
1593
|
-
transforms: new Float32Array(record.transforms),
|
|
1594
|
-
generations: new Uint32Array(record.generations),
|
|
1595
|
-
dirtyRanges: record.dirtyRanges.map((range) => ({ ...range }))
|
|
1596
|
-
};
|
|
1597
|
-
}
|
|
1598
|
-
info(record) {
|
|
1599
|
-
return Object.freeze({
|
|
1600
|
-
collectionId: record.id,
|
|
1601
|
-
count: record.count,
|
|
1602
|
-
capacity: record.capacity,
|
|
1603
|
-
revision: record.revision
|
|
1604
|
-
});
|
|
1605
|
-
}
|
|
1606
|
-
allocateGenerations(count) {
|
|
1607
|
-
const generations = new Uint32Array(count);
|
|
1608
|
-
for (let index = 0; index < count; index += 1) {
|
|
1609
|
-
generations[index] = this.nextInstanceGeneration;
|
|
1610
|
-
this.nextInstanceGeneration = this.nextInstanceGeneration + 1 >>> 0 || 1;
|
|
1611
|
-
}
|
|
1612
|
-
return generations;
|
|
1613
|
-
}
|
|
1614
|
-
validateReplacementGenerations(generations, count, collectionId) {
|
|
1615
|
-
if (!(generations instanceof Uint32Array) || generations.length !== count) {
|
|
1616
|
-
return err(
|
|
1617
|
-
invalid(
|
|
1618
|
-
"replace",
|
|
1619
|
-
`generations is a Uint32Array with ${count} entries`,
|
|
1620
|
-
generations instanceof Uint32Array ? generations.length : typeof generations,
|
|
1621
|
-
collectionId,
|
|
1622
|
-
{ requestedBytes: generations?.byteLength ?? 0, cause: "invalid-generation-shape" }
|
|
1623
|
-
)
|
|
1624
|
-
);
|
|
1625
|
-
}
|
|
1626
|
-
const seen = /* @__PURE__ */ new Set();
|
|
1627
|
-
for (const generation of generations) {
|
|
1628
|
-
if (generation === 0 || seen.has(generation)) {
|
|
1629
|
-
return err(
|
|
1630
|
-
invalid(
|
|
1631
|
-
"replace",
|
|
1632
|
-
"generations contain unique non-zero identity tokens",
|
|
1633
|
-
generation,
|
|
1634
|
-
collectionId,
|
|
1635
|
-
{
|
|
1636
|
-
requestedBytes: generations.byteLength,
|
|
1637
|
-
cause: "invalid-generation-identity"
|
|
1638
|
-
}
|
|
1639
|
-
)
|
|
1640
|
-
);
|
|
1641
|
-
}
|
|
1642
|
-
seen.add(generation);
|
|
1643
|
-
if (generation >= this.nextInstanceGeneration) {
|
|
1644
|
-
this.nextInstanceGeneration = generation + 1 >>> 0 || 1;
|
|
1645
|
-
}
|
|
1646
|
-
}
|
|
1647
|
-
return ok(new Uint32Array(generations));
|
|
1648
|
-
}
|
|
1649
|
-
projectInspection(record) {
|
|
1650
|
-
const residency = this.residency.get(record.id);
|
|
1651
|
-
return Object.freeze({
|
|
1652
|
-
...this.info(record),
|
|
1653
|
-
residentGeneration: residency?.residentGeneration,
|
|
1654
|
-
lane: residency?.lane ?? "unresident",
|
|
1655
|
-
dirtyRanges: Object.freeze(record.dirtyRanges.map((range) => ({ ...range }))),
|
|
1656
|
-
uploadRanges: Object.freeze(residency?.uploadRanges.map((range) => ({ ...range })) ?? []),
|
|
1657
|
-
uploadedBytes: residency?.uploadedBytes ?? 0,
|
|
1658
|
-
requestedBytes: residency?.requestedBytes ?? record.count * MATRIX_STRIDE * 4,
|
|
1659
|
-
supportedBytes: residency?.supportedBytes,
|
|
1660
|
-
backend: residency?.backend ?? "unknown",
|
|
1661
|
-
owner: "renderer.instances",
|
|
1662
|
-
error: residency?.error
|
|
1663
|
-
});
|
|
1664
|
-
}
|
|
1665
|
-
};
|
|
1666
|
-
|
|
1667
|
-
// src/scene/visibility/budget.ts
|
|
1668
|
-
var DEFAULT_CONFIGURED_QUERY_BUDGET = 2048;
|
|
1669
|
-
var MAX_QUERY_BUDGET = 4096;
|
|
1670
|
-
var VISIBILITY_CANDIDATE_COUNT = 1e5;
|
|
1671
|
-
var VISIBILITY_OCCLUDED_COUNT = 9e4;
|
|
1672
|
-
function createVisibilityBudget(configuredQueryBudget = DEFAULT_CONFIGURED_QUERY_BUDGET) {
|
|
1673
|
-
if (!Number.isSafeInteger(configuredQueryBudget) || configuredQueryBudget <= 0) {
|
|
1674
|
-
throw new RangeError("configuredQueryBudget must be a positive safe integer");
|
|
1675
|
-
}
|
|
1676
|
-
const effectiveQueryBudget = Math.min(configuredQueryBudget, MAX_QUERY_BUDGET);
|
|
1677
|
-
const oneSweepCandidates = oneSweep(VISIBILITY_CANDIDATE_COUNT, effectiveQueryBudget);
|
|
1678
|
-
const oneSweepOccluded = oneSweep(VISIBILITY_OCCLUDED_COUNT, effectiveQueryBudget);
|
|
1679
|
-
const retestSubmits = Math.max(6, oneSweepOccluded);
|
|
1680
|
-
return Object.freeze({
|
|
1681
|
-
configuredQueryBudget,
|
|
1682
|
-
effectiveQueryBudget,
|
|
1683
|
-
oneSweepCandidates,
|
|
1684
|
-
oneSweepOccluded,
|
|
1685
|
-
settleSubmits: 2 * oneSweepCandidates,
|
|
1686
|
-
retestSubmits,
|
|
1687
|
-
expirySubmits: Math.max(8, retestSubmits + oneSweepOccluded)
|
|
1688
|
-
});
|
|
1689
|
-
}
|
|
1690
|
-
function oneSweep(candidateCount, effectiveQueryBudget) {
|
|
1691
|
-
return Math.ceil(candidateCount / effectiveQueryBudget);
|
|
1692
|
-
}
|
|
1693
|
-
|
|
1694
|
-
// src/render-contract.ts
|
|
1695
|
-
var STANDARD_OUTPUT_TRANSFORM_FEATURE_ID = "forgeax::standard::output-transform";
|
|
1696
|
-
var FXAA_POST_PROCESS_ID = "forgeax::post::fxaa";
|
|
1697
|
-
var RENDER_GRAPH_EXECUTION_PHASE_CATALOG = [
|
|
1698
|
-
"record/graph-execute/point-shadow",
|
|
1699
|
-
"record/graph-execute/cluster-binner-upload",
|
|
1700
|
-
"record/graph-execute/g-buffer",
|
|
1701
|
-
"record/graph-execute/g-buffer/geometry-loop",
|
|
1702
|
-
"record/graph-execute/g-buffer/material-bind-groups",
|
|
1703
|
-
"record/graph-execute/g-buffer/pipeline-selection",
|
|
1704
|
-
"record/graph-execute/g-buffer/draw-submit",
|
|
1705
|
-
"record/graph-execute/ssao-calc",
|
|
1706
|
-
"record/graph-execute/ssao-blur",
|
|
1707
|
-
"record/graph-execute/lighting",
|
|
1708
|
-
"record/graph-execute/forward",
|
|
1709
|
-
"record/graph-execute/forward/geometry-loop",
|
|
1710
|
-
"record/graph-execute/forward/material-bind-groups",
|
|
1711
|
-
"record/graph-execute/forward/pipeline-selection",
|
|
1712
|
-
"record/graph-execute/forward/draw-submit",
|
|
1713
|
-
"record/graph-execute/output-transform",
|
|
1714
|
-
"record/graph-execute/present",
|
|
1715
|
-
"record/graph-execute/debug-overlay",
|
|
1716
|
-
"record/graph-execute/shadow",
|
|
1717
|
-
"record/graph-execute/spot-shadow",
|
|
1718
|
-
"record/graph-execute/skybox",
|
|
1719
|
-
"record/graph-execute/main",
|
|
1720
|
-
"record/graph-execute/fxaa",
|
|
1721
|
-
"record/graph-execute/bloom-downsample",
|
|
1722
|
-
"record/graph-execute/bloom-upsample",
|
|
1723
|
-
"record/graph-execute/bloom-composite",
|
|
1724
|
-
"record/graph-execute/ssr-hiz",
|
|
1725
|
-
"record/graph-execute/ssr-trace",
|
|
1726
|
-
"record/graph-execute/ssr-temporal",
|
|
1727
|
-
"record/graph-execute/ssr-reflection-mip",
|
|
1728
|
-
"record/graph-execute/ssr-compose",
|
|
1729
|
-
"record/graph-execute/other"
|
|
1730
|
-
];
|
|
1731
|
-
var RENDER_HDRP_BINNER_PHASE_CATALOG = [
|
|
1732
|
-
"record/scene-state/hdrp-cluster/binner/light-bounds-and-occupancy",
|
|
1733
|
-
"record/scene-state/hdrp-cluster/binner/light-bounds-and-occupancy/light-aabb",
|
|
1734
|
-
"record/scene-state/hdrp-cluster/binner/light-bounds-and-occupancy/cluster-occupancy",
|
|
1735
|
-
"record/scene-state/hdrp-cluster/binner/cluster-reserve",
|
|
1736
|
-
"record/scene-state/hdrp-cluster/binner/input-preparation",
|
|
1737
|
-
"record/scene-state/hdrp-cluster/binner/bin-core",
|
|
1738
|
-
"record/scene-state/hdrp-cluster/binner/light-index-write",
|
|
1739
|
-
"record/scene-state/hdrp-cluster/binner/light-index-write/bounds-read",
|
|
1740
|
-
"record/scene-state/hdrp-cluster/binner/light-index-write/cluster-write"
|
|
1741
|
-
];
|
|
1742
|
-
var RENDER_HDRP_CLUSTER_PHASE_CATALOG = [
|
|
1743
|
-
"record/scene-state/hdrp-cluster/binner",
|
|
1744
|
-
...RENDER_HDRP_BINNER_PHASE_CATALOG,
|
|
1745
|
-
"record/scene-state/hdrp-cluster/payload-packing",
|
|
1746
|
-
"record/scene-state/hdrp-cluster/buffer-upload"
|
|
1747
|
-
];
|
|
1748
|
-
var RENDER_SCENE_STATE_PHASE_CATALOG = [
|
|
1749
|
-
"record/scene-state/fold-buckets",
|
|
1750
|
-
"record/scene-state/lighting-prep",
|
|
1751
|
-
"record/scene-state/ambient-resolution",
|
|
1752
|
-
"record/scene-state/directional-shadow-cache",
|
|
1753
|
-
"record/scene-state/hdrp-cluster",
|
|
1754
|
-
...RENDER_HDRP_CLUSTER_PHASE_CATALOG
|
|
1755
|
-
];
|
|
1756
|
-
var RENDER_RECORD_PHASE_CATALOG = [
|
|
1757
|
-
"record/occlusion-query-submit",
|
|
1758
|
-
"record/occlusion-global-advance",
|
|
1759
|
-
"record/scene-state",
|
|
1760
|
-
...RENDER_SCENE_STATE_PHASE_CATALOG,
|
|
1761
|
-
"record/swapchain",
|
|
1762
|
-
"record/render-graph",
|
|
1763
|
-
"record/target-views",
|
|
1764
|
-
"record/validation",
|
|
1765
|
-
"record/dispatch-plan",
|
|
1766
|
-
"record/uploads",
|
|
1767
|
-
"record/bind-groups",
|
|
1768
|
-
"record/graph-execute",
|
|
1769
|
-
...RENDER_GRAPH_EXECUTION_PHASE_CATALOG
|
|
1770
|
-
];
|
|
1771
|
-
var RENDER_PHASE_CATALOG = [
|
|
1772
|
-
"extract",
|
|
1773
|
-
"occlusion-prepare",
|
|
1774
|
-
"bind-groups",
|
|
1775
|
-
"features",
|
|
1776
|
-
"sort",
|
|
1777
|
-
"record",
|
|
1778
|
-
...RENDER_RECORD_PHASE_CATALOG
|
|
1779
|
-
];
|
|
1780
|
-
|
|
1781
|
-
export { AtmosphereInvalidParameterError, AutoExposureCapabilityUnavailableError, AutoExposureInvalidParameterError, AutoExposureStageFailedError, AutoExposureStaleGenerationError, DEFAULT_MOTION_BLUR_PARAMS, DynamicResolutionInvalidParameterError, DynamicResolutionRequiresTaaError, DynamicResolutionTimingUnavailableError, EnvironmentGenerationFailedError, EnvironmentSourceConflictError, EquirectProjectionFailedError, FXAA_POST_PROCESS_ID, FogCardinalityError, FrameReceiptStaleError, GPU_TEXTURE_USAGE_COPY_DST, GPU_TEXTURE_USAGE_COPY_SRC, GPU_TEXTURE_USAGE_RENDER_ATTACHMENT, GPU_TEXTURE_USAGE_RENDER_ATTACHMENT_AND_TEXTURE_BINDING, GPU_TEXTURE_USAGE_STORAGE_BINDING, GPU_TEXTURE_USAGE_TEXTURE_BINDING, GpuDrivenPreparationError, InstanceCollectionError, InstanceCollectionStore, LifecycleConstructionError, MOTION_BLUR_PARAMS_BYTE_SIZE, MaterialSkinAttrMissingError, MotionBlurValidationError, ObservationUnavailableError, OwnerStageFailedError, PointShadowAtlasBoundsViolationError, PointShadowAtlasUninitializedError, PointsLinesBudgetExceededError, PointsLinesInvalidStyleError, PointsLinesMaterialUnsupportedError, PointsLinesPrepareFailedError, PointsLinesStyleUnsupportedError, PointsLinesTopologyMismatchError, RENDER_PHASE_CATALOG, RenderFeatureCapabilityMissingError, RenderFeatureDrawRecordingFailedError, RenderFeaturePreparationFailedError, RenderFeaturePreparedStateMismatchError, RenderFeatureRegistrationConflictError, RenderFeatureStageFailedError, RenderIntentInvalidError, RenderTargetCapabilityMissingError, RenderTargetDescriptorInvalidError, RenderTargetOperationFailedError, RenderTargetStateInvalidError, RendererContractFailureError, RendererOperationError, SHADOW_ATLAS_DEFAULT_FACE_SIZE, SHADOW_ATLAS_DEFAULT_LAYERS, STANDARD_OUTPUT_TRANSFORM_FEATURE_ID, SceneDataUnavailableError, ShadowAtlas, ShadowInvalidConfigError, SkinMaterialMismatchError, SkinPaletteOverflowError, StandardClusterIndexOverflowError, StandardClusterTransportUnavailableError, StandardLightBudgetExceededError, StandardProfileInvalidError, TaaCapsInsufficientError, TemporalFrameSubmitError, TransmissionCapabilityMissingError, VertexColorVariantConflictError, VideoUploadUnsupportedError, VolumeDensityShapeMismatchError, VolumeInvalidBoundsError, VolumeInvalidParametersError, VolumeOwnerConflictError, createAutoExposureError, createAutoExposureInspection, createLightResourceUnavailable, createVisibilityBudget, effectiveMotionBlurSampleCount, instanceUploadRangesForResident, isMotionBlurIntervalValid, motionBlurExposureScale, motionBlurSampleDelta, motionBlurTemporalDemand, resolveMotionBlurParams, validateMotionBlurParams };
|
|
1782
|
-
//# sourceMappingURL=chunk-NB2S7ZRX.mjs.map
|
|
1783
|
-
//# sourceMappingURL=chunk-NB2S7ZRX.mjs.map
|