@forgeax/engine-runtime 0.1.2
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/LICENSE +202 -0
- package/README.md +183 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/__tests__/active-camera.unit.test.d.ts +2 -0
- package/dist/__tests__/active-camera.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-add.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-add.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-asset-union.test-d.d.ts +2 -0
- package/dist/__tests__/animation-graph-asset-union.test-d.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-blend.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-blend.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-build.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-build.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-clip-missing.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-clip-missing.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-clip.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-clip.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-default-path.integration.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-default-path.integration.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-describe.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-describe.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-errors.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-errors.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-nesting.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-nesting.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-orthogonal-weight.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-orthogonal-weight.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-slot-fill.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-slot-fill.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-nslot.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-nslot.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-slot-length-guard.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-slot-length-guard.unit.test.d.ts.map +1 -0
- package/dist/__tests__/append-injection.test.d.ts +2 -0
- package/dist/__tests__/append-injection.test.d.ts.map +1 -0
- package/dist/__tests__/asi-world-baseline-export.unit.test.d.ts +2 -0
- package/dist/__tests__/asi-world-baseline-export.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asi-world-ci-config.unit.test.d.ts +2 -0
- package/dist/__tests__/asi-world-ci-config.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asi-world-smoke.unit.test.d.ts +2 -0
- package/dist/__tests__/asi-world-smoke.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry-scene.test-d.d.ts +2 -0
- package/dist/__tests__/asset-registry-scene.test-d.d.ts.map +1 -0
- package/dist/__tests__/bind-group-cache-binding.test.d.ts +2 -0
- package/dist/__tests__/bind-group-cache-binding.test.d.ts.map +1 -0
- package/dist/__tests__/bind-group-cache-frame.test.d.ts +2 -0
- package/dist/__tests__/bind-group-cache-frame.test.d.ts.map +1 -0
- package/dist/__tests__/bind-group-cache-keying.test.d.ts +2 -0
- package/dist/__tests__/bind-group-cache-keying.test.d.ts.map +1 -0
- package/dist/__tests__/block-upload-math.unit.test.d.ts +2 -0
- package/dist/__tests__/block-upload-math.unit.test.d.ts.map +1 -0
- package/dist/__tests__/builtin-shader-register-e2e.test.d.ts +2 -0
- package/dist/__tests__/builtin-shader-register-e2e.test.d.ts.map +1 -0
- package/dist/__tests__/cache-false-eviction.test.d.ts +2 -0
- package/dist/__tests__/cache-false-eviction.test.d.ts.map +1 -0
- package/dist/__tests__/cache-isolation-matrix.test.d.ts +2 -0
- package/dist/__tests__/cache-isolation-matrix.test.d.ts.map +1 -0
- package/dist/__tests__/camera-clear-snapshot-equivalence.unit.test.d.ts +2 -0
- package/dist/__tests__/camera-clear-snapshot-equivalence.unit.test.d.ts.map +1 -0
- package/dist/__tests__/clamp-to-last.e2e.browser.test.d.ts +2 -0
- package/dist/__tests__/clamp-to-last.e2e.browser.test.d.ts.map +1 -0
- package/dist/__tests__/clamp-to-last.e2e.dawn.test.d.ts +2 -0
- package/dist/__tests__/clamp-to-last.e2e.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/collect-scene-asset.test.d.ts +3 -0
- package/dist/__tests__/collect-scene-asset.test.d.ts.map +1 -0
- package/dist/__tests__/collect-subtree.unit.test.d.ts +2 -0
- package/dist/__tests__/collect-subtree.unit.test.d.ts.map +1 -0
- package/dist/__tests__/collect-transient-children-absent.test.d.ts +2 -0
- package/dist/__tests__/collect-transient-children-absent.test.d.ts.map +1 -0
- package/dist/__tests__/collect-transient-roundtrip.test.d.ts +2 -0
- package/dist/__tests__/collect-transient-roundtrip.test.d.ts.map +1 -0
- package/dist/__tests__/collect-transient-skip.test.d.ts +3 -0
- package/dist/__tests__/collect-transient-skip.test.d.ts.map +1 -0
- package/dist/__tests__/components.test-d.d.ts +2 -0
- package/dist/__tests__/components.test-d.d.ts.map +1 -0
- package/dist/__tests__/components.unit.test.d.ts +2 -0
- package/dist/__tests__/components.unit.test.d.ts.map +1 -0
- package/dist/__tests__/composite-skybox-cross-world.browser.test.d.ts +2 -0
- package/dist/__tests__/composite-skybox-cross-world.browser.test.d.ts.map +1 -0
- package/dist/__tests__/create-renderer-assembly.integration.test.d.ts +2 -0
- package/dist/__tests__/create-renderer-assembly.integration.test.d.ts.map +1 -0
- package/dist/__tests__/createRenderer-dispose.test.d.ts +2 -0
- package/dist/__tests__/createRenderer-dispose.test.d.ts.map +1 -0
- package/dist/__tests__/createRenderer-requiredFeatures.unit.test.d.ts +2 -0
- package/dist/__tests__/createRenderer-requiredFeatures.unit.test.d.ts.map +1 -0
- package/dist/__tests__/createRenderer.browser-no-webgpu.test.d.ts +2 -0
- package/dist/__tests__/createRenderer.browser-no-webgpu.test.d.ts.map +1 -0
- package/dist/__tests__/createRenderer.unit.test.d.ts +2 -0
- package/dist/__tests__/createRenderer.unit.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/hello-sprite-nineslice-section.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/hello-sprite-nineslice-section.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/ibl-compose.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/ibl-compose.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/ibl-modules-compose.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/ibl-modules-compose.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/ibl-precompute-readback.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/ibl-precompute-readback.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/instances-per-instance-pbr.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/instances-per-instance-pbr.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/instances-shadow.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/instances-shadow.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/instances-uniform-fallback.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/instances-uniform-fallback.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/material-alpha.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/material-alpha.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/material-cooked-fixture.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/material-cooked-fixture.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/mesh-ssbo-normal-matrix.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/mesh-ssbo-normal-matrix.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/mesh-update.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/mesh-update.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/mipmap-srgb-linear.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/mipmap-srgb-linear.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/per-entity-material-texture-isolation.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/per-entity-material-texture-isolation.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/sprite-nineslice-mesh-bind.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/sprite-nineslice-mesh-bind.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/tonemap.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/tonemap.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/user-handle-mesh-render.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/user-handle-mesh-render.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/user-mesh-upload.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/user-mesh-upload.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/zero-manifest-mesh-fail.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/zero-manifest-mesh-fail.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/zero-manifest-ready.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/zero-manifest-ready.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/demo-sortscope-migration.unit.test.d.ts +2 -0
- package/dist/__tests__/demo-sortscope-migration.unit.test.d.ts.map +1 -0
- package/dist/__tests__/derive-bgl-integration.test.d.ts +2 -0
- package/dist/__tests__/derive-bgl-integration.test.d.ts.map +1 -0
- package/dist/__tests__/derive-render-data-skin.unit.test.d.ts +2 -0
- package/dist/__tests__/derive-render-data-skin.unit.test.d.ts.map +1 -0
- package/dist/__tests__/dispatch-fullscreen-pass-composite-swapchain.dawn.test.d.ts +2 -0
- package/dist/__tests__/dispatch-fullscreen-pass-composite-swapchain.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dispatch-fullscreen-pass-custom-reads.dawn.test.d.ts +2 -0
- package/dist/__tests__/dispatch-fullscreen-pass-custom-reads.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dispatch-fullscreen-pass-depth-composite.dawn.test.d.ts +2 -0
- package/dist/__tests__/dispatch-fullscreen-pass-depth-composite.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dispatch-fullscreen-pass-params.unit.test.d.ts +2 -0
- package/dist/__tests__/dispatch-fullscreen-pass-params.unit.test.d.ts.map +1 -0
- package/dist/__tests__/draw-published.d.ts +5 -0
- package/dist/__tests__/draw-published.d.ts.map +1 -0
- package/dist/__tests__/environment-error-exhaustive.test-d.d.ts +8 -0
- package/dist/__tests__/environment-error-exhaustive.test-d.d.ts.map +1 -0
- package/dist/__tests__/equirect-bc6h.integration.test.d.ts +2 -0
- package/dist/__tests__/equirect-bc6h.integration.test.d.ts.map +1 -0
- package/dist/__tests__/error-exhaustive.test.d.ts +2 -0
- package/dist/__tests__/error-exhaustive.test.d.ts.map +1 -0
- package/dist/__tests__/extract-frames-graceful-degradation.test.d.ts +2 -0
- package/dist/__tests__/extract-frames-graceful-degradation.test.d.ts.map +1 -0
- package/dist/__tests__/extract-frames-merge.test.d.ts +2 -0
- package/dist/__tests__/extract-frames-merge.test.d.ts.map +1 -0
- package/dist/__tests__/extract-frames-reset.test.d.ts +2 -0
- package/dist/__tests__/extract-frames-reset.test.d.ts.map +1 -0
- package/dist/__tests__/extract-record-no-hardcoded-texture-fields.test.d.ts +2 -0
- package/dist/__tests__/extract-record-no-hardcoded-texture-fields.test.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-manifest.d.ts +131 -0
- package/dist/__tests__/fog-producer-manifest.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-pixel-probe.d.ts +42 -0
- package/dist/__tests__/fog-producer-pixel-probe.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-pixel.browser.test.d.ts +2 -0
- package/dist/__tests__/fog-producer-pixel.browser.test.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-pixel.dawn.test.d.ts +2 -0
- package/dist/__tests__/fog-producer-pixel.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-real-fixture.d.ts +5 -0
- package/dist/__tests__/fog-producer-real-fixture.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-vfx-effect.d.ts +3 -0
- package/dist/__tests__/fog-producer-vfx-effect.d.ts.map +1 -0
- package/dist/__tests__/fog-scene-asset.integration.test.d.ts +2 -0
- package/dist/__tests__/fog-scene-asset.integration.test.d.ts.map +1 -0
- package/dist/__tests__/frame-targets-shadow-regression.unit.test.d.ts +2 -0
- package/dist/__tests__/frame-targets-shadow-regression.unit.test.d.ts.map +1 -0
- package/dist/__tests__/fullscreen-post-bgl-depth.test.d.ts +2 -0
- package/dist/__tests__/fullscreen-post-bgl-depth.test.d.ts.map +1 -0
- package/dist/__tests__/fullscreen-post-depth-params-arity.test.d.ts +2 -0
- package/dist/__tests__/fullscreen-post-depth-params-arity.test.d.ts.map +1 -0
- package/dist/__tests__/fullscreen-post-process-pass.dawn.test.d.ts +2 -0
- package/dist/__tests__/fullscreen-post-process-pass.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/fullscreen-post-process-pass.unit.test.d.ts +2 -0
- package/dist/__tests__/fullscreen-post-process-pass.unit.test.d.ts.map +1 -0
- package/dist/__tests__/fxaa-pixel-diff.dawn.test.d.ts +2 -0
- package/dist/__tests__/fxaa-pixel-diff.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/fxaa-validation-and-resize.dawn.test.d.ts +2 -0
- package/dist/__tests__/fxaa-validation-and-resize.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/fxaa-zero-overhead.dawn.test.d.ts +2 -0
- package/dist/__tests__/fxaa-zero-overhead.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/geometry.unit.test.d.ts +2 -0
- package/dist/__tests__/geometry.unit.test.d.ts.map +1 -0
- package/dist/__tests__/glyph-tilemap-worldid.test.d.ts +2 -0
- package/dist/__tests__/glyph-tilemap-worldid.test.d.ts.map +1 -0
- package/dist/__tests__/gpu-resource-cow-survivor.test.d.ts +2 -0
- package/dist/__tests__/gpu-resource-cow-survivor.test.d.ts.map +1 -0
- package/dist/__tests__/gpu-resource-store-cubemap-status.test.d.ts +2 -0
- package/dist/__tests__/gpu-resource-store-cubemap-status.test.d.ts.map +1 -0
- package/dist/__tests__/gpu-resource.test.d.ts +2 -0
- package/dist/__tests__/gpu-resource.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-bgl-slots.browser.test.d.ts +2 -0
- package/dist/__tests__/hdrp-bgl-slots.browser.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-buffers.unit.test.d.ts +2 -0
- package/dist/__tests__/hdrp-buffers.unit.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-execute-filter.unit.test.d.ts +2 -0
- package/dist/__tests__/hdrp-execute-filter.unit.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-gbuffer-attachments.browser.test.d.ts +2 -0
- package/dist/__tests__/hdrp-gbuffer-attachments.browser.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-pipeline-asset-type.test-d.d.ts +2 -0
- package/dist/__tests__/hdrp-pipeline-asset-type.test-d.d.ts.map +1 -0
- package/dist/__tests__/hdrp-ssao-boundary.test.d.ts +2 -0
- package/dist/__tests__/hdrp-ssao-boundary.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-ssao-falsification.test.d.ts +2 -0
- package/dist/__tests__/hdrp-ssao-falsification.test.d.ts.map +1 -0
- package/dist/__tests__/hello-tilemap-smoke-upgrade.unit.test.d.ts +2 -0
- package/dist/__tests__/hello-tilemap-smoke-upgrade.unit.test.d.ts.map +1 -0
- package/dist/__tests__/helpers/mock-shader-registry.d.ts +11 -0
- package/dist/__tests__/helpers/mock-shader-registry.d.ts.map +1 -0
- package/dist/__tests__/helpers/primitive-world.d.ts +8 -0
- package/dist/__tests__/helpers/primitive-world.d.ts.map +1 -0
- package/dist/__tests__/helpers/register-runtime-components.d.ts +4 -0
- package/dist/__tests__/helpers/register-runtime-components.d.ts.map +1 -0
- package/dist/__tests__/helpers/register-scene-components.d.ts +4 -0
- package/dist/__tests__/helpers/register-scene-components.d.ts.map +1 -0
- package/dist/__tests__/helpers/render-asset-port.d.ts +15 -0
- package/dist/__tests__/helpers/render-asset-port.d.ts.map +1 -0
- package/dist/__tests__/helpers/scene-asset-port.d.ts +9 -0
- package/dist/__tests__/helpers/scene-asset-port.d.ts.map +1 -0
- package/dist/__tests__/helpers/tilemap-assets.d.ts +6 -0
- package/dist/__tests__/helpers/tilemap-assets.d.ts.map +1 -0
- package/dist/__tests__/instances.test-d.d.ts +2 -0
- package/dist/__tests__/instances.test-d.d.ts.map +1 -0
- package/dist/__tests__/light-attenuation-formula.test.d.ts +2 -0
- package/dist/__tests__/light-attenuation-formula.test.d.ts.map +1 -0
- package/dist/__tests__/light-casters-9-light.browser.test.d.ts +2 -0
- package/dist/__tests__/light-casters-9-light.browser.test.d.ts.map +1 -0
- package/dist/__tests__/light-gpu-byte-neutral.unit.test.d.ts +2 -0
- package/dist/__tests__/light-gpu-byte-neutral.unit.test.d.ts.map +1 -0
- package/dist/__tests__/light-snapshot.test-d.d.ts +2 -0
- package/dist/__tests__/light-snapshot.test-d.d.ts.map +1 -0
- package/dist/__tests__/lights-vec-negative.unit.test.d.ts +2 -0
- package/dist/__tests__/lights-vec-negative.unit.test.d.ts.map +1 -0
- package/dist/__tests__/lights.unit.test.d.ts +2 -0
- package/dist/__tests__/lights.unit.test.d.ts.map +1 -0
- package/dist/__tests__/m3-vec-negative.unit.test.d.ts +2 -0
- package/dist/__tests__/m3-vec-negative.unit.test.d.ts.map +1 -0
- package/dist/__tests__/m5-browser-dawn-sweep.integration.test.d.ts +2 -0
- package/dist/__tests__/m5-browser-dawn-sweep.integration.test.d.ts.map +1 -0
- package/dist/__tests__/material-derived-coordinates.integration.test.d.ts +2 -0
- package/dist/__tests__/material-derived-coordinates.integration.test.d.ts.map +1 -0
- package/dist/__tests__/material-texture-uv-scale.unit.test.d.ts +2 -0
- package/dist/__tests__/material-texture-uv-scale.unit.test.d.ts.map +1 -0
- package/dist/__tests__/materials.unit.test.d.ts +2 -0
- package/dist/__tests__/materials.unit.test.d.ts.map +1 -0
- package/dist/__tests__/mesh-ssbo-grow.unit.test.d.ts +2 -0
- package/dist/__tests__/mesh-ssbo-grow.unit.test.d.ts.map +1 -0
- package/dist/__tests__/mip-gate.unit.test.d.ts +2 -0
- package/dist/__tests__/mip-gate.unit.test.d.ts.map +1 -0
- package/dist/__tests__/msaa-sprite-pixel-diff.dawn.test.d.ts +2 -0
- package/dist/__tests__/msaa-sprite-pixel-diff.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/multi-uv-8set.e2e.dawn.test.d.ts +2 -0
- package/dist/__tests__/multi-uv-8set.e2e.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/name.unit.test.d.ts +2 -0
- package/dist/__tests__/name.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pass-selector.unit.test.d.ts +2 -0
- package/dist/__tests__/pass-selector.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pbr-pipeline.unit.test.d.ts +2 -0
- package/dist/__tests__/pbr-pipeline.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline-builder-msaa.unit.test.d.ts +2 -0
- package/dist/__tests__/pipeline-builder-msaa.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline-cache-keying.unit.test.d.ts +2 -0
- package/dist/__tests__/pipeline-cache-keying.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline-layout-selection.test.d.ts +2 -0
- package/dist/__tests__/pipeline-layout-selection.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline-spec.test.d.ts +2 -0
- package/dist/__tests__/pipeline-spec.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline.unit.test.d.ts +2 -0
- package/dist/__tests__/pipeline.unit.test.d.ts.map +1 -0
- package/dist/__tests__/point-light-shadow.browser.test.d.ts +2 -0
- package/dist/__tests__/point-light-shadow.browser.test.d.ts.map +1 -0
- package/dist/__tests__/point-light-shadow.dawn.test.d.ts +2 -0
- package/dist/__tests__/point-light-shadow.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/point-light-shadow.unit.test.d.ts +2 -0
- package/dist/__tests__/point-light-shadow.unit.test.d.ts.map +1 -0
- package/dist/__tests__/post-process-error-codes.unit.test.d.ts +2 -0
- package/dist/__tests__/post-process-error-codes.unit.test.d.ts.map +1 -0
- package/dist/__tests__/post-process-params-component.unit.test.d.ts +2 -0
- package/dist/__tests__/post-process-params-component.unit.test.d.ts.map +1 -0
- package/dist/__tests__/post-process-params-extract.unit.test.d.ts +2 -0
- package/dist/__tests__/post-process-params-extract.unit.test.d.ts.map +1 -0
- package/dist/__tests__/post-process-reads-narrowing.test-d.d.ts +2 -0
- package/dist/__tests__/post-process-reads-narrowing.test-d.d.ts.map +1 -0
- package/dist/__tests__/post-process-register-roundtrip.dawn.test.d.ts +2 -0
- package/dist/__tests__/post-process-register-roundtrip.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/postprocess-camera-consistency.test.d.ts +2 -0
- package/dist/__tests__/postprocess-camera-consistency.test.d.ts.map +1 -0
- package/dist/__tests__/profiler-assembly.integration.test.d.ts +2 -0
- package/dist/__tests__/profiler-assembly.integration.test.d.ts.map +1 -0
- package/dist/__tests__/propagate-transforms.dawn.test.d.ts +2 -0
- package/dist/__tests__/propagate-transforms.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/record-worldid-isolation.test.d.ts +2 -0
- package/dist/__tests__/record-worldid-isolation.test.d.ts.map +1 -0
- package/dist/__tests__/recover-error-exhaustive.test-d.d.ts +11 -0
- package/dist/__tests__/recover-error-exhaustive.test-d.d.ts.map +1 -0
- package/dist/__tests__/render-error-exhaustive.test-d.d.ts +11 -0
- package/dist/__tests__/render-error-exhaustive.test-d.d.ts.map +1 -0
- package/dist/__tests__/render-feature-assembly.test-d.d.ts +2 -0
- package/dist/__tests__/render-feature-assembly.test-d.d.ts.map +1 -0
- package/dist/__tests__/render-feature-prepared-graphics-docs.unit.test.d.ts +2 -0
- package/dist/__tests__/render-feature-prepared-graphics-docs.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-prepared-graphics.browser.test.d.ts +2 -0
- package/dist/__tests__/render-feature-prepared-graphics.browser.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-prepared-graphics.dawn.test.d.ts +2 -0
- package/dist/__tests__/render-feature-prepared-graphics.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-prepared-graphics.integration.test.d.ts +2 -0
- package/dist/__tests__/render-feature-prepared-graphics.integration.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-prepared-graphics.regression.integration.test.d.ts +2 -0
- package/dist/__tests__/render-feature-prepared-graphics.regression.integration.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-recover.integration.test.d.ts +2 -0
- package/dist/__tests__/render-feature-recover.integration.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-runtime-surface.test-d.d.ts +2 -0
- package/dist/__tests__/render-feature-runtime-surface.test-d.d.ts.map +1 -0
- package/dist/__tests__/render-feature-zero-feature.browser.test.d.ts +2 -0
- package/dist/__tests__/render-feature-zero-feature.browser.test.d.ts.map +1 -0
- package/dist/__tests__/render-pipeline-trivial.dawn.test.d.ts +2 -0
- package/dist/__tests__/render-pipeline-trivial.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/render-schema-consumer.integration.test.d.ts +2 -0
- package/dist/__tests__/render-schema-consumer.integration.test.d.ts.map +1 -0
- package/dist/__tests__/render-schema-owner-boundary.unit.test.d.ts +2 -0
- package/dist/__tests__/render-schema-owner-boundary.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-cross-world-overlay-queue.test.d.ts +2 -0
- package/dist/__tests__/render-system-cross-world-overlay-queue.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-extract-dispatch-ordering.test.d.ts +2 -0
- package/dist/__tests__/render-system-extract-dispatch-ordering.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-extract.test.d.ts +2 -0
- package/dist/__tests__/render-system-extract.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-bucket.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-bucket.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-fallback.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-fallback.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-material.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-material.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-metrics.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-metrics.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-modegate.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-modegate.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-scene-instances.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-scene-instances.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold.dawn.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-mega.test.d.ts +2 -0
- package/dist/__tests__/render-system-mega.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-owner-split-contract.test.d.ts +2 -0
- package/dist/__tests__/render-system-owner-split-contract.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-record-multi-material-textureview.test.d.ts +2 -0
- package/dist/__tests__/render-system-record-multi-material-textureview.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-record-per-submesh-transparency.test.d.ts +2 -0
- package/dist/__tests__/render-system-record-per-submesh-transparency.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-record.test.d.ts +2 -0
- package/dist/__tests__/render-system-record.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-record.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-record.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-skin-bg.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-skin-bg.unit.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-consumer.test-d.d.ts +2 -0
- package/dist/__tests__/renderer-consumer.test-d.d.ts.map +1 -0
- package/dist/__tests__/renderer-health.unit.test.d.ts +2 -0
- package/dist/__tests__/renderer-health.unit.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-lifecycle.integration.test.d.ts +2 -0
- package/dist/__tests__/renderer-lifecycle.integration.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-recover.unit.test.d.ts +2 -0
- package/dist/__tests__/renderer-recover.unit.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-result.test-d.d.ts +2 -0
- package/dist/__tests__/renderer-result.test-d.d.ts.map +1 -0
- package/dist/__tests__/renderer-surface.unit.test.d.ts +2 -0
- package/dist/__tests__/renderer-surface.unit.test.d.ts.map +1 -0
- package/dist/__tests__/resolve-depth-only-view.test.d.ts +2 -0
- package/dist/__tests__/resolve-depth-only-view.test.d.ts.map +1 -0
- package/dist/__tests__/rhi-null-command-flow.unit.test.d.ts +2 -0
- package/dist/__tests__/rhi-null-command-flow.unit.test.d.ts.map +1 -0
- package/dist/__tests__/rhi-null-noop-behavior.unit.test.d.ts +2 -0
- package/dist/__tests__/rhi-null-noop-behavior.unit.test.d.ts.map +1 -0
- package/dist/__tests__/rhi-null-renderer-lifecycle.unit.test.d.ts +2 -0
- package/dist/__tests__/rhi-null-renderer-lifecycle.unit.test.d.ts.map +1 -0
- package/dist/__tests__/roots-to-scene-asset.test.d.ts +2 -0
- package/dist/__tests__/roots-to-scene-asset.test.d.ts.map +1 -0
- package/dist/__tests__/runtime-authority-scan.unit.test.d.ts +2 -0
- package/dist/__tests__/runtime-authority-scan.unit.test.d.ts.map +1 -0
- package/dist/__tests__/runtime-domain-residue.unit.test.d.ts +2 -0
- package/dist/__tests__/runtime-domain-residue.unit.test.d.ts.map +1 -0
- package/dist/__tests__/scene-equirect-roundtrip.test.d.ts +2 -0
- package/dist/__tests__/scene-equirect-roundtrip.test.d.ts.map +1 -0
- package/dist/__tests__/scene-instance-bridge.integration.test.d.ts +2 -0
- package/dist/__tests__/scene-instance-bridge.integration.test.d.ts.map +1 -0
- package/dist/__tests__/scene-instance-component.test.d.ts +2 -0
- package/dist/__tests__/scene-instance-component.test.d.ts.map +1 -0
- package/dist/__tests__/scene-instantiate-cycle-runtime.test.d.ts +2 -0
- package/dist/__tests__/scene-instantiate-cycle-runtime.test.d.ts.map +1 -0
- package/dist/__tests__/serialize-scene-asset.test.d.ts +2 -0
- package/dist/__tests__/serialize-scene-asset.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-caster-empty-schema.test.d.ts +2 -0
- package/dist/__tests__/shadow-caster-empty-schema.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-atlas.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-atlas.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-blend.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-blend.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-cascade-loadop.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-cascade-loadop.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-caster-membership.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-caster-membership.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-component.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-component.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-extract.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-extract.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-orthoz.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-orthoz.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-pssm.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-pssm.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-runtime-vary.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-runtime-vary.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-shader.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-shader.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-temporal.browser.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-temporal.browser.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-tile-consistency.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-tile-consistency.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-ubo.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-ubo.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-ubo.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-ubo.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-viewport.browser.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-viewport.browser.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-viewport.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-viewport.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-fields-observable.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-fields-observable.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-m1.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-m1.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-m2.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-m2.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-m3-calibrate-run.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-m3-calibrate-run.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-m3-calibrate.d.ts +83 -0
- package/dist/__tests__/shadow-m3-calibrate.d.ts.map +1 -0
- package/dist/__tests__/shadow-m3.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-m3.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-mesh-ssbo-order.test.d.ts +2 -0
- package/dist/__tests__/shadow-mesh-ssbo-order.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-probe-control-flow.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-probe-control-flow.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-quality-metrics.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-quality-metrics.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/skin-error-exhaustive.test-d.d.ts +11 -0
- package/dist/__tests__/skin-error-exhaustive.test-d.d.ts.map +1 -0
- package/dist/__tests__/skin-errors.unit.test.d.ts +2 -0
- package/dist/__tests__/skin-errors.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skin-extract-getarrayview-count.unit.test.d.ts +2 -0
- package/dist/__tests__/skin-extract-getarrayview-count.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skin-parented-double-transform.test.d.ts +14 -0
- package/dist/__tests__/skin-parented-double-transform.test.d.ts.map +1 -0
- package/dist/__tests__/skylight-lazy-projection.test.d.ts +2 -0
- package/dist/__tests__/skylight-lazy-projection.test.d.ts.map +1 -0
- package/dist/__tests__/sparse-tag-scene-roundtrip.test.d.ts +2 -0
- package/dist/__tests__/sparse-tag-scene-roundtrip.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-cullmode-flip.dawn.test.d.ts +2 -0
- package/dist/__tests__/sprite-cullmode-flip.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-lit-bgl-byte-identical.test.d.ts +2 -0
- package/dist/__tests__/sprite-lit-bgl-byte-identical.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-lit-extract-branch.test.d.ts +2 -0
- package/dist/__tests__/sprite-lit-extract-branch.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-lit-pipeline-cache-key.test.d.ts +2 -0
- package/dist/__tests__/sprite-lit-pipeline-cache-key.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-param-values.test-d.d.ts +2 -0
- package/dist/__tests__/sprite-param-values.test-d.d.ts.map +1 -0
- package/dist/__tests__/ssao-bgl.test.d.ts +2 -0
- package/dist/__tests__/ssao-bgl.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-buffers.test.d.ts +2 -0
- package/dist/__tests__/ssao-buffers.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-data.test.d.ts +2 -0
- package/dist/__tests__/ssao-data.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-errors.test.d.ts +2 -0
- package/dist/__tests__/ssao-errors.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-manifest.test.d.ts +2 -0
- package/dist/__tests__/ssao-manifest.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-passes.test.d.ts +2 -0
- package/dist/__tests__/ssao-passes.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-pipelines.test.d.ts +2 -0
- package/dist/__tests__/ssao-pipelines.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-uniform-layout.test.d.ts +2 -0
- package/dist/__tests__/ssao-uniform-layout.test.d.ts.map +1 -0
- package/dist/__tests__/static-rig.integration.test.d.ts +2 -0
- package/dist/__tests__/static-rig.integration.test.d.ts.map +1 -0
- package/dist/__tests__/stencil-outline-pixel.dawn.test.d.ts +2 -0
- package/dist/__tests__/stencil-outline-pixel.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/swap-chain-format.unit.test.d.ts +2 -0
- package/dist/__tests__/swap-chain-format.unit.test.d.ts.map +1 -0
- package/dist/__tests__/systems.unit.test.d.ts +2 -0
- package/dist/__tests__/systems.unit.test.d.ts.map +1 -0
- package/dist/__tests__/temporal-off-path.unit.test.d.ts +2 -0
- package/dist/__tests__/temporal-off-path.unit.test.d.ts.map +1 -0
- package/dist/__tests__/text.unit.test.d.ts +2 -0
- package/dist/__tests__/text.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-childed-despawn.test.d.ts +2 -0
- package/dist/__tests__/tilemap-childed-despawn.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-extract.overhang-bounds.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-extract.overhang-bounds.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-extract.propagate-order.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-extract.propagate-order.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-extract.terrain-rewrite.unit.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-extract.terrain-rewrite.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-extract.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-extract.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-extract.unit.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-extract.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-y-sort-bench.unit.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-y-sort-bench.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-dirty-rebuild.test.d.ts +2 -0
- package/dist/__tests__/tilemap-dirty-rebuild.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-material-cache.test.d.ts +2 -0
- package/dist/__tests__/tilemap-material-cache.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-multi-atlas.test.d.ts +2 -0
- package/dist/__tests__/tilemap-multi-atlas.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-owner-boundary.unit.test.d.ts +2 -0
- package/dist/__tests__/tilemap-owner-boundary.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-region-pack.test.d.ts +2 -0
- package/dist/__tests__/tilemap-region-pack.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-spawn-flip-pivot.test.d.ts +2 -0
- package/dist/__tests__/tilemap-spawn-flip-pivot.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-uv-inset.test.d.ts +2 -0
- package/dist/__tests__/tilemap-uv-inset.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-validate.test.d.ts +2 -0
- package/dist/__tests__/tilemap-validate.test.d.ts.map +1 -0
- package/dist/__tests__/transform-hierarchy-pixel-diff.dawn.test.d.ts +2 -0
- package/dist/__tests__/transform-hierarchy-pixel-diff.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/transient-fields-collect.test.d.ts +2 -0
- package/dist/__tests__/transient-fields-collect.test.d.ts.map +1 -0
- package/dist/__tests__/transitional-authoring.integration.test.d.ts +2 -0
- package/dist/__tests__/transitional-authoring.integration.test.d.ts.map +1 -0
- package/dist/__tests__/transparent-sort-tilemap-sprite-interleave.test.d.ts +2 -0
- package/dist/__tests__/transparent-sort-tilemap-sprite-interleave.test.d.ts.map +1 -0
- package/dist/__tests__/variant-selection.unit.test.d.ts +2 -0
- package/dist/__tests__/variant-selection.unit.test.d.ts.map +1 -0
- package/dist/__tests__/vertex-attribute-layout.test.d.ts +2 -0
- package/dist/__tests__/vertex-attribute-layout.test.d.ts.map +1 -0
- package/dist/__tests__/video-cache-regression.unit.test.d.ts +2 -0
- package/dist/__tests__/video-cache-regression.unit.test.d.ts.map +1 -0
- package/dist/__tests__/video-extract-bindgroup.dawn.test.d.ts +2 -0
- package/dist/__tests__/video-extract-bindgroup.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/view-ubo-layout.browser.test.d.ts +2 -0
- package/dist/__tests__/view-ubo-layout.browser.test.d.ts.map +1 -0
- package/dist/__tests__/world-entity-key.test.d.ts +2 -0
- package/dist/__tests__/world-entity-key.test.d.ts.map +1 -0
- package/dist/__tests__/world-scene-despawn.test.d.ts +2 -0
- package/dist/__tests__/world-scene-despawn.test.d.ts.map +1 -0
- package/dist/__tests__/world-scene-instantiate.test.d.ts +2 -0
- package/dist/__tests__/world-scene-instantiate.test.d.ts.map +1 -0
- package/dist/__tests__/world-scene-nested.test.d.ts +2 -0
- package/dist/__tests__/world-scene-nested.test.d.ts.map +1 -0
- package/dist/__tests__/world-scene-override.test.d.ts +2 -0
- package/dist/__tests__/world-scene-override.test.d.ts.map +1 -0
- package/dist/__tests__/zero-compression-zero-load.integration.test.d.ts +2 -0
- package/dist/__tests__/zero-compression-zero-load.integration.test.d.ts.map +1 -0
- package/dist/asset-contributions.d.ts +3 -0
- package/dist/asset-contributions.d.ts.map +1 -0
- package/dist/asset-kind.d.ts +4 -0
- package/dist/asset-kind.d.ts.map +1 -0
- package/dist/collect-scene-asset.d.ts +16 -0
- package/dist/collect-scene-asset.d.ts.map +1 -0
- package/dist/components/__tests__/camera.test-d.d.ts +2 -0
- package/dist/components/__tests__/camera.test-d.d.ts.map +1 -0
- package/dist/components/__tests__/camera.test.d.ts +2 -0
- package/dist/components/__tests__/camera.test.d.ts.map +1 -0
- package/dist/components/__tests__/child-of.test.d.ts +2 -0
- package/dist/components/__tests__/child-of.test.d.ts.map +1 -0
- package/dist/components/__tests__/sprite-animation.test-d.d.ts +2 -0
- package/dist/components/__tests__/sprite-animation.test-d.d.ts.map +1 -0
- package/dist/components/__tests__/sprite-instances.unit.test.d.ts +2 -0
- package/dist/components/__tests__/sprite-instances.unit.test.d.ts.map +1 -0
- package/dist/components/__tests__/sprite-region-override.test-d.d.ts +2 -0
- package/dist/components/__tests__/sprite-region-override.test-d.d.ts.map +1 -0
- package/dist/components/__tests__/tile-layer.test-d.d.ts +2 -0
- package/dist/components/__tests__/tile-layer.test-d.d.ts.map +1 -0
- package/dist/components/__tests__/tile-layer.unit.test.d.ts +2 -0
- package/dist/components/__tests__/tile-layer.unit.test.d.ts.map +1 -0
- package/dist/components/__tests__/tilemap.test-d.d.ts +2 -0
- package/dist/components/__tests__/tilemap.test-d.d.ts.map +1 -0
- package/dist/components/__tests__/transform-vec-schema.test.d.ts +2 -0
- package/dist/components/__tests__/transform-vec-schema.test.d.ts.map +1 -0
- package/dist/create-renderer-env-classify.d.ts +21 -0
- package/dist/create-renderer-env-classify.d.ts.map +1 -0
- package/dist/createRenderer.d.ts +3 -0
- package/dist/createRenderer.d.ts.map +1 -0
- package/dist/dev-import-transport.d.ts +24 -0
- package/dist/dev-import-transport.d.ts.map +1 -0
- package/dist/errors/environment.d.ts +2 -0
- package/dist/errors/environment.d.ts.map +1 -0
- package/dist/errors/sprite-animation.d.ts +3 -0
- package/dist/errors/sprite-animation.d.ts.map +1 -0
- package/dist/index.d.ts +280 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +814 -0
- package/dist/index.mjs.map +1 -0
- package/dist/scene-asset-port.d.ts +17 -0
- package/dist/scene-asset-port.d.ts.map +1 -0
- package/dist/scene-collect-errors.d.ts +22 -0
- package/dist/scene-collect-errors.d.ts.map +1 -0
- package/dist/scene-instances/__tests__/post-spawn-resolve-joints.unit.test.d.ts +2 -0
- package/dist/scene-instances/__tests__/post-spawn-resolve-joints.unit.test.d.ts.map +1 -0
- package/dist/scene-utils/mount-override-fold.d.ts +16 -0
- package/dist/scene-utils/mount-override-fold.d.ts.map +1 -0
- package/dist/shadow-m3-calibrate.d.ts +40 -0
- package/dist/shadow-m3-calibrate.d.ts.map +1 -0
- package/dist/sprite-param-values.d.ts +62 -0
- package/dist/sprite-param-values.d.ts.map +1 -0
- package/dist/systems/__tests__/_xorshift.d.ts +28 -0
- package/dist/systems/__tests__/_xorshift.d.ts.map +1 -0
- package/dist/systems/__tests__/argsort-in-place.test.d.ts +2 -0
- package/dist/systems/__tests__/argsort-in-place.test.d.ts.map +1 -0
- package/dist/systems/__tests__/transparent-sort.bench.d.ts +2 -0
- package/dist/systems/__tests__/transparent-sort.bench.d.ts.map +1 -0
- package/dist/systems/sprite-animation-tick.d.ts +50 -0
- package/dist/systems/sprite-animation-tick.d.ts.map +1 -0
- package/dist/systems/tonemap.d.ts +27 -0
- package/dist/systems/tonemap.d.ts.map +1 -0
- package/dist/systems/transparent-sort.d.ts +51 -0
- package/dist/systems/transparent-sort.d.ts.map +1 -0
- package/dist/tilemap-register-validate.d.ts +21 -0
- package/dist/tilemap-register-validate.d.ts.map +1 -0
- package/package.json +100 -0
- package/src/__tests__/active-camera.unit.test.ts +193 -0
- package/src/__tests__/animation-graph-add.unit.test.ts +67 -0
- package/src/__tests__/animation-graph-asset-union.test-d.ts +83 -0
- package/src/__tests__/animation-graph-blend.unit.test.ts +66 -0
- package/src/__tests__/animation-graph-build.unit.test.ts +100 -0
- package/src/__tests__/animation-graph-clip-missing.unit.test.ts +62 -0
- package/src/__tests__/animation-graph-clip.unit.test.ts +77 -0
- package/src/__tests__/animation-graph-default-path.integration.test.ts +65 -0
- package/src/__tests__/animation-graph-describe.unit.test.ts +68 -0
- package/src/__tests__/animation-graph-errors.unit.test.ts +75 -0
- package/src/__tests__/animation-graph-nesting.unit.test.ts +84 -0
- package/src/__tests__/animation-graph-orthogonal-weight.unit.test.ts +98 -0
- package/src/__tests__/animation-graph-slot-fill.unit.test.ts +95 -0
- package/src/__tests__/animation-nslot.unit.test.ts +63 -0
- package/src/__tests__/animation-slot-length-guard.unit.test.ts +81 -0
- package/src/__tests__/append-injection.test.ts +105 -0
- package/src/__tests__/asi-world-baseline-export.unit.test.ts +173 -0
- package/src/__tests__/asi-world-ci-config.unit.test.ts +186 -0
- package/src/__tests__/asi-world-smoke.unit.test.ts +192 -0
- package/src/__tests__/asset-registry-scene.test-d.ts +49 -0
- package/src/__tests__/bind-group-cache-binding.test.ts +2513 -0
- package/src/__tests__/bind-group-cache-frame.test.ts +1511 -0
- package/src/__tests__/bind-group-cache-keying.test.ts +295 -0
- package/src/__tests__/block-upload-math.unit.test.ts +192 -0
- package/src/__tests__/builtin-shader-register-e2e.test.ts +151 -0
- package/src/__tests__/cache-false-eviction.test.ts +126 -0
- package/src/__tests__/cache-isolation-matrix.test.ts +182 -0
- package/src/__tests__/camera-clear-snapshot-equivalence.unit.test.ts +76 -0
- package/src/__tests__/clamp-to-last.e2e.browser.test.ts +183 -0
- package/src/__tests__/clamp-to-last.e2e.dawn.test.ts +325 -0
- package/src/__tests__/collect-scene-asset.test.ts +876 -0
- package/src/__tests__/collect-subtree.unit.test.ts +76 -0
- package/src/__tests__/collect-transient-children-absent.test.ts +154 -0
- package/src/__tests__/collect-transient-roundtrip.test.ts +245 -0
- package/src/__tests__/collect-transient-skip.test.ts +165 -0
- package/src/__tests__/components.test-d.ts +236 -0
- package/src/__tests__/components.unit.test.ts +2665 -0
- package/src/__tests__/composite-skybox-cross-world.browser.test.ts +378 -0
- package/src/__tests__/create-renderer-assembly.integration.test.ts +42 -0
- package/src/__tests__/createRenderer-dispose.test.ts +416 -0
- package/src/__tests__/createRenderer-requiredFeatures.unit.test.ts +134 -0
- package/src/__tests__/createRenderer.browser-no-webgpu.test.ts +59 -0
- package/src/__tests__/createRenderer.unit.test.ts +231 -0
- package/src/__tests__/dawn/hello-sprite-nineslice-section.dawn.test.ts +393 -0
- package/src/__tests__/dawn/ibl-compose.dawn.test.ts +151 -0
- package/src/__tests__/dawn/ibl-modules-compose.dawn.test.ts +223 -0
- package/src/__tests__/dawn/ibl-precompute-readback.dawn.test.ts +241 -0
- package/src/__tests__/dawn/instances-per-instance-pbr.dawn.test.ts +611 -0
- package/src/__tests__/dawn/instances-shadow.dawn.test.ts +443 -0
- package/src/__tests__/dawn/instances-uniform-fallback.dawn.test.ts +313 -0
- package/src/__tests__/dawn/material-alpha.dawn.test.ts +304 -0
- package/src/__tests__/dawn/material-cooked-fixture.dawn.test.ts +64 -0
- package/src/__tests__/dawn/mesh-ssbo-normal-matrix.dawn.test.ts +106 -0
- package/src/__tests__/dawn/mesh-update.dawn.test.ts +342 -0
- package/src/__tests__/dawn/mipmap-srgb-linear.dawn.test.ts +117 -0
- package/src/__tests__/dawn/per-entity-material-texture-isolation.dawn.test.ts +567 -0
- package/src/__tests__/dawn/sprite-nineslice-mesh-bind.dawn.test.ts +251 -0
- package/src/__tests__/dawn/tonemap.dawn.test.ts +107 -0
- package/src/__tests__/dawn/user-handle-mesh-render.dawn.test.ts +291 -0
- package/src/__tests__/dawn/user-mesh-upload.dawn.test.ts +204 -0
- package/src/__tests__/dawn/zero-manifest-mesh-fail.dawn.test.ts +122 -0
- package/src/__tests__/dawn/zero-manifest-ready.dawn.test.ts +99 -0
- package/src/__tests__/demo-sortscope-migration.unit.test.ts +115 -0
- package/src/__tests__/derive-bgl-integration.test.ts +398 -0
- package/src/__tests__/derive-render-data-skin.unit.test.ts +90 -0
- package/src/__tests__/dispatch-fullscreen-pass-composite-swapchain.dawn.test.ts +204 -0
- package/src/__tests__/dispatch-fullscreen-pass-custom-reads.dawn.test.ts +297 -0
- package/src/__tests__/dispatch-fullscreen-pass-depth-composite.dawn.test.ts +271 -0
- package/src/__tests__/dispatch-fullscreen-pass-params.unit.test.ts +321 -0
- package/src/__tests__/draw-published.ts +10 -0
- package/src/__tests__/environment-error-exhaustive.test-d.ts +28 -0
- package/src/__tests__/equirect-bc6h.integration.test.ts +35 -0
- package/src/__tests__/error-exhaustive.test.ts +220 -0
- package/src/__tests__/extract-frames-graceful-degradation.test.ts +298 -0
- package/src/__tests__/extract-frames-merge.test.ts +643 -0
- package/src/__tests__/extract-frames-reset.test.ts +158 -0
- package/src/__tests__/extract-record-no-hardcoded-texture-fields.test.ts +92 -0
- package/src/__tests__/fog-producer-manifest.ts +162 -0
- package/src/__tests__/fog-producer-pixel-probe.ts +263 -0
- package/src/__tests__/fog-producer-pixel.browser.test.ts +26 -0
- package/src/__tests__/fog-producer-pixel.dawn.test.ts +55 -0
- package/src/__tests__/fog-producer-real-fixture.ts +805 -0
- package/src/__tests__/fog-producer-vfx-effect.ts +272 -0
- package/src/__tests__/fog-scene-asset.integration.test.ts +123 -0
- package/src/__tests__/frame-targets-shadow-regression.unit.test.ts +28 -0
- package/src/__tests__/fullscreen-post-bgl-depth.test.ts +131 -0
- package/src/__tests__/fullscreen-post-depth-params-arity.test.ts +84 -0
- package/src/__tests__/fullscreen-post-process-pass.dawn.test.ts +320 -0
- package/src/__tests__/fullscreen-post-process-pass.unit.test.ts +107 -0
- package/src/__tests__/fxaa-pixel-diff.dawn.test.ts +292 -0
- package/src/__tests__/fxaa-validation-and-resize.dawn.test.ts +358 -0
- package/src/__tests__/fxaa-zero-overhead.dawn.test.ts +254 -0
- package/src/__tests__/geometry.unit.test.ts +2265 -0
- package/src/__tests__/glyph-tilemap-worldid.test.ts +146 -0
- package/src/__tests__/gpu-resource-cow-survivor.test.ts +388 -0
- package/src/__tests__/gpu-resource-store-cubemap-status.test.ts +207 -0
- package/src/__tests__/gpu-resource.test.ts +1206 -0
- package/src/__tests__/hdrp-bgl-slots.browser.test.ts +50 -0
- package/src/__tests__/hdrp-buffers.unit.test.ts +70 -0
- package/src/__tests__/hdrp-execute-filter.unit.test.ts +200 -0
- package/src/__tests__/hdrp-gbuffer-attachments.browser.test.ts +64 -0
- package/src/__tests__/hdrp-pipeline-asset-type.test-d.ts +139 -0
- package/src/__tests__/hdrp-ssao-boundary.test.ts +237 -0
- package/src/__tests__/hdrp-ssao-falsification.test.ts +289 -0
- package/src/__tests__/hello-tilemap-smoke-upgrade.unit.test.ts +147 -0
- package/src/__tests__/helpers/mock-shader-registry.ts +139 -0
- package/src/__tests__/helpers/primitive-world.ts +91 -0
- package/src/__tests__/helpers/register-runtime-components.ts +69 -0
- package/src/__tests__/helpers/register-scene-components.ts +10 -0
- package/src/__tests__/helpers/render-asset-port.ts +65 -0
- package/src/__tests__/helpers/scene-asset-port.ts +23 -0
- package/src/__tests__/helpers/tilemap-assets.ts +29 -0
- package/src/__tests__/instances.test-d.ts +61 -0
- package/src/__tests__/light-attenuation-formula.test.ts +171 -0
- package/src/__tests__/light-casters-9-light.browser.test.ts +880 -0
- package/src/__tests__/light-gpu-byte-neutral.unit.test.ts +163 -0
- package/src/__tests__/light-snapshot.test-d.ts +84 -0
- package/src/__tests__/lights-vec-negative.unit.test.ts +52 -0
- package/src/__tests__/lights.unit.test.ts +2936 -0
- package/src/__tests__/m3-vec-negative.unit.test.ts +45 -0
- package/src/__tests__/m5-browser-dawn-sweep.integration.test.ts +8 -0
- package/src/__tests__/material-derived-coordinates.integration.test.ts +100 -0
- package/src/__tests__/material-texture-uv-scale.unit.test.ts +49 -0
- package/src/__tests__/materials.unit.test.ts +271 -0
- package/src/__tests__/mesh-ssbo-grow.unit.test.ts +244 -0
- package/src/__tests__/mip-gate.unit.test.ts +79 -0
- package/src/__tests__/msaa-sprite-pixel-diff.dawn.test.ts +406 -0
- package/src/__tests__/multi-uv-8set.e2e.dawn.test.ts +296 -0
- package/src/__tests__/name.unit.test.ts +123 -0
- package/src/__tests__/node-shims.d.ts +33 -0
- package/src/__tests__/pass-selector.unit.test.ts +102 -0
- package/src/__tests__/pbr-pipeline.unit.test.ts +204 -0
- package/src/__tests__/pipeline-builder-msaa.unit.test.ts +224 -0
- package/src/__tests__/pipeline-cache-keying.unit.test.ts +316 -0
- package/src/__tests__/pipeline-layout-selection.test.ts +298 -0
- package/src/__tests__/pipeline-spec.test.ts +1061 -0
- package/src/__tests__/pipeline.unit.test.ts +6974 -0
- package/src/__tests__/point-light-shadow.browser.test.ts +278 -0
- package/src/__tests__/point-light-shadow.dawn.test.ts +822 -0
- package/src/__tests__/point-light-shadow.unit.test.ts +716 -0
- package/src/__tests__/post-process-error-codes.unit.test.ts +158 -0
- package/src/__tests__/post-process-params-component.unit.test.ts +153 -0
- package/src/__tests__/post-process-params-extract.unit.test.ts +100 -0
- package/src/__tests__/post-process-reads-narrowing.test-d.ts +52 -0
- package/src/__tests__/post-process-register-roundtrip.dawn.test.ts +230 -0
- package/src/__tests__/postprocess-camera-consistency.test.ts +378 -0
- package/src/__tests__/profiler-assembly.integration.test.ts +74 -0
- package/src/__tests__/propagate-transforms.dawn.test.ts +253 -0
- package/src/__tests__/record-worldid-isolation.test.ts +247 -0
- package/src/__tests__/recover-error-exhaustive.test-d.ts +35 -0
- package/src/__tests__/render-error-exhaustive.test-d.ts +245 -0
- package/src/__tests__/render-feature-assembly.test-d.ts +28 -0
- package/src/__tests__/render-feature-prepared-graphics-docs.unit.test.ts +124 -0
- package/src/__tests__/render-feature-prepared-graphics.browser.test.ts +582 -0
- package/src/__tests__/render-feature-prepared-graphics.dawn.test.ts +602 -0
- package/src/__tests__/render-feature-prepared-graphics.integration.test.ts +264 -0
- package/src/__tests__/render-feature-prepared-graphics.regression.integration.test.ts +361 -0
- package/src/__tests__/render-feature-recover.integration.test.ts +142 -0
- package/src/__tests__/render-feature-runtime-surface.test-d.ts +45 -0
- package/src/__tests__/render-feature-zero-feature.browser.test.ts +152 -0
- package/src/__tests__/render-pipeline-trivial.dawn.test.ts +525 -0
- package/src/__tests__/render-schema-consumer.integration.test.ts +25 -0
- package/src/__tests__/render-schema-owner-boundary.unit.test.ts +26 -0
- package/src/__tests__/render-system-cross-world-overlay-queue.test.ts +172 -0
- package/src/__tests__/render-system-extract-dispatch-ordering.test.ts +322 -0
- package/src/__tests__/render-system-extract.test.ts +1399 -0
- package/src/__tests__/render-system-fold-bucket.unit.test.ts +288 -0
- package/src/__tests__/render-system-fold-fallback.unit.test.ts +148 -0
- package/src/__tests__/render-system-fold-material.unit.test.ts +145 -0
- package/src/__tests__/render-system-fold-metrics.unit.test.ts +170 -0
- package/src/__tests__/render-system-fold-modegate.unit.test.ts +166 -0
- package/src/__tests__/render-system-fold-scene-instances.unit.test.ts +51 -0
- package/src/__tests__/render-system-fold.dawn.test.ts +306 -0
- package/src/__tests__/render-system-mega.test.ts +1578 -0
- package/src/__tests__/render-system-owner-split-contract.test.ts +200 -0
- package/src/__tests__/render-system-record-multi-material-textureview.test.ts +684 -0
- package/src/__tests__/render-system-record-per-submesh-transparency.test.ts +464 -0
- package/src/__tests__/render-system-record.test.ts +1505 -0
- package/src/__tests__/render-system-record.unit.test.ts +270 -0
- package/src/__tests__/render-system-skin-bg.unit.test.ts +147 -0
- package/src/__tests__/renderer-consumer.test-d.ts +5 -0
- package/src/__tests__/renderer-health.unit.test.ts +935 -0
- package/src/__tests__/renderer-lifecycle.integration.test.ts +29 -0
- package/src/__tests__/renderer-recover.unit.test.ts +1075 -0
- package/src/__tests__/renderer-result.test-d.ts +26 -0
- package/src/__tests__/renderer-surface.unit.test.ts +416 -0
- package/src/__tests__/resolve-depth-only-view.test.ts +173 -0
- package/src/__tests__/rhi-null-command-flow.unit.test.ts +273 -0
- package/src/__tests__/rhi-null-noop-behavior.unit.test.ts +196 -0
- package/src/__tests__/rhi-null-renderer-lifecycle.unit.test.ts +182 -0
- package/src/__tests__/roots-to-scene-asset.test.ts +605 -0
- package/src/__tests__/runtime-authority-scan.unit.test.ts +19 -0
- package/src/__tests__/runtime-domain-residue.unit.test.ts +13 -0
- package/src/__tests__/scene-equirect-roundtrip.test.ts +33 -0
- package/src/__tests__/scene-instance-bridge.integration.test.ts +8 -0
- package/src/__tests__/scene-instance-component.test.ts +45 -0
- package/src/__tests__/scene-instantiate-cycle-runtime.test.ts +66 -0
- package/src/__tests__/serialize-scene-asset.test.ts +336 -0
- package/src/__tests__/shadow-caster-empty-schema.test.ts +83 -0
- package/src/__tests__/shadow-csm-atlas.test.ts +178 -0
- package/src/__tests__/shadow-csm-blend.dawn.test.ts +230 -0
- package/src/__tests__/shadow-csm-cascade-loadop.test.ts +334 -0
- package/src/__tests__/shadow-csm-caster-membership.test.ts +232 -0
- package/src/__tests__/shadow-csm-component.test.ts +286 -0
- package/src/__tests__/shadow-csm-extract.test.ts +334 -0
- package/src/__tests__/shadow-csm-orthoz.test.ts +151 -0
- package/src/__tests__/shadow-csm-pssm.test.ts +142 -0
- package/src/__tests__/shadow-csm-runtime-vary.dawn.test.ts +198 -0
- package/src/__tests__/shadow-csm-shader.dawn.test.ts +358 -0
- package/src/__tests__/shadow-csm-temporal.browser.test.ts +145 -0
- package/src/__tests__/shadow-csm-tile-consistency.test.ts +419 -0
- package/src/__tests__/shadow-csm-ubo.dawn.test.ts +293 -0
- package/src/__tests__/shadow-csm-ubo.test.ts +300 -0
- package/src/__tests__/shadow-csm-viewport.browser.test.ts +85 -0
- package/src/__tests__/shadow-csm-viewport.test.ts +74 -0
- package/src/__tests__/shadow-fields-observable.dawn.test.ts +615 -0
- package/src/__tests__/shadow-m1.dawn.test.ts +105 -0
- package/src/__tests__/shadow-m2.dawn.test.ts +394 -0
- package/src/__tests__/shadow-m3-calibrate-run.dawn.test.ts +248 -0
- package/src/__tests__/shadow-m3-calibrate.ts +203 -0
- package/src/__tests__/shadow-m3.dawn.test.ts +288 -0
- package/src/__tests__/shadow-mesh-ssbo-order.test.ts +64 -0
- package/src/__tests__/shadow-probe-control-flow.dawn.test.ts +264 -0
- package/src/__tests__/shadow-quality-metrics.dawn.test.ts +324 -0
- package/src/__tests__/skin-error-exhaustive.test-d.ts +74 -0
- package/src/__tests__/skin-errors.unit.test.ts +10 -0
- package/src/__tests__/skin-extract-getarrayview-count.unit.test.ts +23 -0
- package/src/__tests__/skin-parented-double-transform.test.ts +268 -0
- package/src/__tests__/skylight-lazy-projection.test.ts +359 -0
- package/src/__tests__/sparse-tag-scene-roundtrip.test.ts +43 -0
- package/src/__tests__/sprite-cullmode-flip.dawn.test.ts +470 -0
- package/src/__tests__/sprite-lit-bgl-byte-identical.test.ts +141 -0
- package/src/__tests__/sprite-lit-extract-branch.test.ts +117 -0
- package/src/__tests__/sprite-lit-pipeline-cache-key.test.ts +123 -0
- package/src/__tests__/sprite-param-values.test-d.ts +104 -0
- package/src/__tests__/ssao-bgl.test.ts +347 -0
- package/src/__tests__/ssao-buffers.test.ts +211 -0
- package/src/__tests__/ssao-data.test.ts +121 -0
- package/src/__tests__/ssao-errors.test.ts +162 -0
- package/src/__tests__/ssao-manifest.test.ts +109 -0
- package/src/__tests__/ssao-passes.test.ts +1229 -0
- package/src/__tests__/ssao-pipelines.test.ts +275 -0
- package/src/__tests__/ssao-uniform-layout.test.ts +178 -0
- package/src/__tests__/static-rig.integration.test.ts +9 -0
- package/src/__tests__/stencil-outline-pixel.dawn.test.ts +295 -0
- package/src/__tests__/swap-chain-format.unit.test.ts +117 -0
- package/src/__tests__/systems.unit.test.ts +9957 -0
- package/src/__tests__/temporal-off-path.unit.test.ts +69 -0
- package/src/__tests__/text.unit.test.ts +466 -0
- package/src/__tests__/tilemap-childed-despawn.test.ts +468 -0
- package/src/__tests__/tilemap-chunk-extract.overhang-bounds.test.ts +314 -0
- package/src/__tests__/tilemap-chunk-extract.propagate-order.test.ts +80 -0
- package/src/__tests__/tilemap-chunk-extract.terrain-rewrite.unit.test.ts +424 -0
- package/src/__tests__/tilemap-chunk-extract.test.ts +236 -0
- package/src/__tests__/tilemap-chunk-extract.unit.test.ts +383 -0
- package/src/__tests__/tilemap-chunk-y-sort-bench.unit.test.ts +109 -0
- package/src/__tests__/tilemap-dirty-rebuild.test.ts +300 -0
- package/src/__tests__/tilemap-material-cache.test.ts +137 -0
- package/src/__tests__/tilemap-multi-atlas.test.ts +237 -0
- package/src/__tests__/tilemap-owner-boundary.unit.test.ts +63 -0
- package/src/__tests__/tilemap-region-pack.test.ts +153 -0
- package/src/__tests__/tilemap-spawn-flip-pivot.test.ts +274 -0
- package/src/__tests__/tilemap-uv-inset.test.ts +204 -0
- package/src/__tests__/tilemap-validate.test.ts +201 -0
- package/src/__tests__/transform-hierarchy-pixel-diff.dawn.test.ts +274 -0
- package/src/__tests__/transient-fields-collect.test.ts +203 -0
- package/src/__tests__/transitional-authoring.integration.test.ts +7 -0
- package/src/__tests__/transparent-sort-tilemap-sprite-interleave.test.ts +227 -0
- package/src/__tests__/variant-selection.unit.test.ts +21 -0
- package/src/__tests__/vertex-attribute-layout.test.ts +324 -0
- package/src/__tests__/video-cache-regression.unit.test.ts +186 -0
- package/src/__tests__/video-extract-bindgroup.dawn.test.ts +450 -0
- package/src/__tests__/view-ubo-layout.browser.test.ts +183 -0
- package/src/__tests__/world-entity-key.test.ts +92 -0
- package/src/__tests__/world-scene-despawn.test.ts +132 -0
- package/src/__tests__/world-scene-instantiate.test.ts +228 -0
- package/src/__tests__/world-scene-nested.test.ts +230 -0
- package/src/__tests__/world-scene-override.test.ts +199 -0
- package/src/__tests__/zero-compression-zero-load.integration.test.ts +107 -0
- package/src/asset-contributions.ts +48 -0
- package/src/asset-kind.ts +7 -0
- package/src/collect-scene-asset.ts +689 -0
- package/src/components/__tests__/camera.test-d.ts +57 -0
- package/src/components/__tests__/camera.test.ts +95 -0
- package/src/components/__tests__/child-of.test.ts +35 -0
- package/src/components/__tests__/sprite-animation.test-d.ts +160 -0
- package/src/components/__tests__/sprite-instances.unit.test.ts +108 -0
- package/src/components/__tests__/sprite-region-override.test-d.ts +101 -0
- package/src/components/__tests__/tile-layer.test-d.ts +33 -0
- package/src/components/__tests__/tile-layer.unit.test.ts +125 -0
- package/src/components/__tests__/tilemap.test-d.ts +35 -0
- package/src/components/__tests__/transform-vec-schema.test.ts +121 -0
- package/src/create-renderer-env-classify.ts +110 -0
- package/src/createRenderer.ts +61 -0
- package/src/dev-import-transport.ts +97 -0
- package/src/errors/environment.ts +6 -0
- package/src/errors/sprite-animation.ts +5 -0
- package/src/index.ts +442 -0
- package/src/scene-asset-port.ts +32 -0
- package/src/scene-collect-errors.ts +30 -0
- package/src/scene-instances/__tests__/post-spawn-resolve-joints.unit.test.ts +183 -0
- package/src/scene-utils/mount-override-fold.ts +217 -0
- package/src/shadow-m3-calibrate.ts +171 -0
- package/src/sprite-param-values.ts +61 -0
- package/src/systems/__tests__/_xorshift.ts +83 -0
- package/src/systems/__tests__/argsort-in-place.test.ts +155 -0
- package/src/systems/__tests__/transparent-sort.bench.ts +218 -0
- package/src/systems/sprite-animation-tick.ts +302 -0
- package/src/systems/tonemap.ts +68 -0
- package/src/systems/transparent-sort.ts +434 -0
- package/src/tilemap-register-validate.ts +100 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,814 @@
|
|
|
1
|
+
import { constructRenderer } from '@forgeax/engine-render/internal/construct-renderer';
|
|
2
|
+
import { EngineEnvironmentError, collectSubtree, SceneInstance } from '@forgeax/engine-render/internal';
|
|
3
|
+
export { EngineEnvironmentError } from '@forgeax/engine-render/internal';
|
|
4
|
+
export { acquireCanvasContext } from '@forgeax/engine-rhi-webgpu';
|
|
5
|
+
import { animationClipContribution, animationGraphContribution } from '@forgeax/engine-animation';
|
|
6
|
+
import { err, ok, handleSlot } from '@forgeax/engine-types';
|
|
7
|
+
export { AssetError, MATERIAL_PARAM_TYPES } from '@forgeax/engine-types';
|
|
8
|
+
import { defineComponent, Time, componentDefinition } from '@forgeax/engine-ecs';
|
|
9
|
+
import { sceneAssetContribution, externalizeSceneAsset, worldGetSceneInstanceState, worldGetSceneAssetForInstance, SCENE_COLLECT_PROFILE } from '@forgeax/engine-scene';
|
|
10
|
+
import { fontContribution } from '@forgeax/engine-font';
|
|
11
|
+
import { meshAssetContribution } from '@forgeax/engine-geometry';
|
|
12
|
+
import { tilesetContribution, videoContribution } from '@forgeax/engine-graphics-extras';
|
|
13
|
+
import { textureContribution, equirectContribution } from '@forgeax/engine-image';
|
|
14
|
+
import { materialContribution, samplerContribution, renderPipelineContribution } from '@forgeax/engine-render';
|
|
15
|
+
import { skeletonContribution, skinContribution } from '@forgeax/engine-skinning';
|
|
16
|
+
import { particleEffectContribution } from '@forgeax/engine-vfx';
|
|
17
|
+
import { SpriteAnimationInvalidError, fillComponentDefaults } from '@forgeax/engine-ecs/projection';
|
|
18
|
+
export { SpriteAnimationInvalidError } from '@forgeax/engine-ecs/projection';
|
|
19
|
+
import { err as err$1, ok as ok$1 } from '@forgeax/engine-rhi';
|
|
20
|
+
export { RhiError } from '@forgeax/engine-rhi';
|
|
21
|
+
import { SpriteAnimation, spritePlaybackModeFromU32, SpriteRegionOverride } from '@forgeax/engine-render/authoring';
|
|
22
|
+
export { quat } from '@forgeax/engine-math';
|
|
23
|
+
import { classifyEntityField } from '@forgeax/engine-ecs/externalization';
|
|
24
|
+
import { componentSchema } from '@forgeax/engine-ecs/internal';
|
|
25
|
+
|
|
26
|
+
// src/createRenderer.ts
|
|
27
|
+
|
|
28
|
+
// src/createRenderer.ts
|
|
29
|
+
async function createRenderer(canvas, options, bundler) {
|
|
30
|
+
if (options !== void 0 && "rhi" in options && options.rhi === void 0) {
|
|
31
|
+
throw new EngineEnvironmentError("no usable rendering backend");
|
|
32
|
+
}
|
|
33
|
+
const rendererOptions = options === void 0 ? void 0 : {
|
|
34
|
+
...options.rhi === void 0 ? {} : { rhi: options.rhi },
|
|
35
|
+
...options.rawDeviceForContextConfigure === void 0 ? {} : { rawDeviceForContextConfigure: options.rawDeviceForContextConfigure },
|
|
36
|
+
...options.features === void 0 ? {} : { features: options.features },
|
|
37
|
+
...options.profiler === void 0 ? {} : { profiler: options.profiler },
|
|
38
|
+
...options.membershipTiming === void 0 ? {} : { membershipTiming: options.membershipTiming },
|
|
39
|
+
...options.rhiInstrumentation === void 0 ? {} : { rhiInstrumentation: options.rhiInstrumentation }
|
|
40
|
+
};
|
|
41
|
+
try {
|
|
42
|
+
return await constructRenderer(canvas, rendererOptions, bundler);
|
|
43
|
+
} catch (cause) {
|
|
44
|
+
if (isStructuredRenderError(cause)) throw cause;
|
|
45
|
+
if (cause instanceof EngineEnvironmentError) throw cause;
|
|
46
|
+
const detail = cause instanceof Error ? cause : new Error(String(cause));
|
|
47
|
+
throw new EngineEnvironmentError("renderer construction failed", { webgpuError: detail });
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function isStructuredRenderError(value) {
|
|
51
|
+
if (!(value instanceof Error)) return false;
|
|
52
|
+
const candidate = value;
|
|
53
|
+
return typeof candidate.code === "string" && typeof candidate.expected === "string" && typeof candidate.hint === "string" && candidate.detail !== void 0;
|
|
54
|
+
}
|
|
55
|
+
var audioContribution = {
|
|
56
|
+
kind: { kind: "audio" },
|
|
57
|
+
consumer: "AudioBackend",
|
|
58
|
+
decoder: {
|
|
59
|
+
async decode({ envelope, artifacts }) {
|
|
60
|
+
const payload = envelope.payload;
|
|
61
|
+
if (payload !== null && typeof payload === "object") {
|
|
62
|
+
const source = payload;
|
|
63
|
+
let bytes = source.bytes instanceof Uint8Array ? source.bytes : Array.isArray(source.bytes) ? Uint8Array.from(source.bytes) : void 0;
|
|
64
|
+
const body = envelope.artifacts.body ?? envelope.artifacts.source;
|
|
65
|
+
if (body !== void 0) {
|
|
66
|
+
const bodyBytes = await artifacts.read(body);
|
|
67
|
+
if (!bodyBytes.ok) return bodyBytes;
|
|
68
|
+
bytes = bodyBytes.value;
|
|
69
|
+
}
|
|
70
|
+
if (source.kind === "audio" && typeof source.mediaType === "string" && source.mediaType.startsWith("audio/") && bytes !== void 0 && bytes.byteLength > 0) {
|
|
71
|
+
return ok({
|
|
72
|
+
kind: "audio",
|
|
73
|
+
sourceKey: typeof source.sourceKey === "string" && source.sourceKey.length > 0 ? source.sourceKey : envelope.guid,
|
|
74
|
+
mediaType: source.mediaType,
|
|
75
|
+
bytes
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return err({
|
|
80
|
+
code: "asset-package-invalid",
|
|
81
|
+
expected: "an audio payload with non-empty source bytes and audio mediaType",
|
|
82
|
+
hint: "recook the audio source with a browser-supported media type",
|
|
83
|
+
detail: { guid: envelope.guid, reason: "audio owner validation failed" }
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
defineComponent("AudioSource", {
|
|
89
|
+
clip: { type: "shared<AudioClipAsset>" },
|
|
90
|
+
playing: { type: "bool", default: false },
|
|
91
|
+
loop: { type: "bool", default: false },
|
|
92
|
+
volume: { type: "f32", default: 1 },
|
|
93
|
+
spatialBlend: { type: "f32", default: 0 },
|
|
94
|
+
bus: { type: "string", default: "sfx" }
|
|
95
|
+
});
|
|
96
|
+
defineComponent("AudioListener", {});
|
|
97
|
+
var typedDefaultAssetDecoderContributions = [
|
|
98
|
+
meshAssetContribution,
|
|
99
|
+
materialContribution,
|
|
100
|
+
sceneAssetContribution,
|
|
101
|
+
textureContribution,
|
|
102
|
+
equirectContribution,
|
|
103
|
+
samplerContribution,
|
|
104
|
+
fontContribution,
|
|
105
|
+
renderPipelineContribution,
|
|
106
|
+
tilesetContribution,
|
|
107
|
+
videoContribution,
|
|
108
|
+
skeletonContribution,
|
|
109
|
+
skinContribution,
|
|
110
|
+
animationClipContribution,
|
|
111
|
+
animationGraphContribution,
|
|
112
|
+
audioContribution,
|
|
113
|
+
particleEffectContribution
|
|
114
|
+
];
|
|
115
|
+
var defaultAssetDecoderContributions = Object.freeze(
|
|
116
|
+
typedDefaultAssetDecoderContributions
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
// src/asset-kind.ts
|
|
120
|
+
function builtinAssetKind(kind) {
|
|
121
|
+
const token = { kind };
|
|
122
|
+
return Object.freeze(token);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// src/dev-import-transport.ts
|
|
126
|
+
function createDevImportTransport(binding) {
|
|
127
|
+
return {
|
|
128
|
+
async fetchPack(guid, scope) {
|
|
129
|
+
const active = binding;
|
|
130
|
+
if (active === void 0 || active.status !== "ready" || scope === void 0 || scope.status !== "ready" || scope.scopeId !== active.scopeId || scope.generation !== active.generation) {
|
|
131
|
+
return { ok: false };
|
|
132
|
+
}
|
|
133
|
+
try {
|
|
134
|
+
const base = active.importUrlBase.replace(/\/+$/, "");
|
|
135
|
+
const response = await fetch(`${base}/${encodeURIComponent(guid)}`, { method: "POST" });
|
|
136
|
+
if (!response.ok) {
|
|
137
|
+
try {
|
|
138
|
+
const fail = await response.json();
|
|
139
|
+
console.warn(
|
|
140
|
+
`[forgeax] import failed for ${guid} (HTTP ${response.status}): ${fail.code ?? "import-failed"} - ${fail.reason ?? ""}` + (fail.hint ? ` | hint: ${fail.hint}` : "")
|
|
141
|
+
);
|
|
142
|
+
} catch {
|
|
143
|
+
}
|
|
144
|
+
return { ok: false };
|
|
145
|
+
}
|
|
146
|
+
try {
|
|
147
|
+
const body = await response.json();
|
|
148
|
+
if (Array.isArray(body)) return { ok: true, entries: body };
|
|
149
|
+
} catch {
|
|
150
|
+
}
|
|
151
|
+
return { ok: true };
|
|
152
|
+
} catch {
|
|
153
|
+
return { ok: false };
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function spriteAnimationTickSystem(world) {
|
|
159
|
+
const dt = world.getResource(Time).delta;
|
|
160
|
+
const entities = collectAnimEntities(world);
|
|
161
|
+
let firstError = null;
|
|
162
|
+
for (const entity of entities) {
|
|
163
|
+
const entryError = tickEntity(world, entity, dt);
|
|
164
|
+
if (entryError !== null && firstError === null) {
|
|
165
|
+
firstError = entryError;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
if (firstError !== null) {
|
|
169
|
+
return err(firstError);
|
|
170
|
+
}
|
|
171
|
+
return ok(void 0);
|
|
172
|
+
}
|
|
173
|
+
function collectAnimEntities(world) {
|
|
174
|
+
const queryResult = world.query({ with: [SpriteAnimation] });
|
|
175
|
+
if (!queryResult.ok) return [];
|
|
176
|
+
const entities = [];
|
|
177
|
+
for (const row of queryResult.value) entities.push(row.entity);
|
|
178
|
+
return entities;
|
|
179
|
+
}
|
|
180
|
+
function tickEntity(world, entity, dt) {
|
|
181
|
+
const snapRes = world.get(entity, SpriteAnimation);
|
|
182
|
+
if (!snapRes.ok) {
|
|
183
|
+
return null;
|
|
184
|
+
}
|
|
185
|
+
const snap = snapRes.value;
|
|
186
|
+
const frameCount = snap.frameCount;
|
|
187
|
+
const frameDuration = snap.frameDuration;
|
|
188
|
+
const regions = snap.regions;
|
|
189
|
+
if (regions.length !== frameCount * 4) {
|
|
190
|
+
return new SpriteAnimationInvalidError({
|
|
191
|
+
field: "regions-length",
|
|
192
|
+
regionsLength: regions.length,
|
|
193
|
+
frameCount
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
if (!(frameDuration > 0)) {
|
|
197
|
+
return new SpriteAnimationInvalidError({
|
|
198
|
+
field: "frame-duration",
|
|
199
|
+
frameDuration
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
const advanced = advanceFrame(
|
|
203
|
+
snap.currentFrame,
|
|
204
|
+
snap.accumDt + dt,
|
|
205
|
+
frameDuration,
|
|
206
|
+
frameCount,
|
|
207
|
+
snap.playbackMode
|
|
208
|
+
);
|
|
209
|
+
const writeAnim = world.set(entity, SpriteAnimation, {
|
|
210
|
+
currentFrame: advanced.currentFrame,
|
|
211
|
+
accumDt: advanced.accumDt
|
|
212
|
+
});
|
|
213
|
+
if (!writeAnim.ok) return null;
|
|
214
|
+
const sliceStart = advanced.currentFrame * 4;
|
|
215
|
+
const region = new Float32Array([
|
|
216
|
+
regions[sliceStart] ?? 0,
|
|
217
|
+
regions[sliceStart + 1] ?? 0,
|
|
218
|
+
regions[sliceStart + 2] ?? 0,
|
|
219
|
+
regions[sliceStart + 3] ?? 0
|
|
220
|
+
]);
|
|
221
|
+
writeOverride(world, entity, region);
|
|
222
|
+
return null;
|
|
223
|
+
}
|
|
224
|
+
function advanceFrame(currentFrameIn, accumDtIn, frameDuration, frameCount, playbackModeRaw) {
|
|
225
|
+
let currentFrame = currentFrameIn;
|
|
226
|
+
let accumDt = accumDtIn;
|
|
227
|
+
const playback = spritePlaybackModeFromU32(playbackModeRaw);
|
|
228
|
+
while (accumDt >= frameDuration) {
|
|
229
|
+
accumDt -= frameDuration;
|
|
230
|
+
switch (playback) {
|
|
231
|
+
case "loop": {
|
|
232
|
+
currentFrame = (currentFrame + 1) % frameCount;
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
case "clamp": {
|
|
236
|
+
if (currentFrame < frameCount - 1) {
|
|
237
|
+
currentFrame += 1;
|
|
238
|
+
}
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return { currentFrame, accumDt };
|
|
244
|
+
}
|
|
245
|
+
function writeOverride(world, entity, region) {
|
|
246
|
+
const added = world.addComponent(entity, {
|
|
247
|
+
component: SpriteRegionOverride,
|
|
248
|
+
data: { region }
|
|
249
|
+
});
|
|
250
|
+
if (!added.ok && added.error.code === "component-already-present") {
|
|
251
|
+
world.set(entity, SpriteRegionOverride, { region });
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// src/scene-collect-errors.ts
|
|
256
|
+
var SceneCollectEntityRefOutOfClosureError = class extends Error {
|
|
257
|
+
code = "scene-collect-entity-ref-out-of-closure";
|
|
258
|
+
expected;
|
|
259
|
+
hint = "Expand roots to include the target entity, or remove the reference.";
|
|
260
|
+
detail;
|
|
261
|
+
constructor(entity, field, target) {
|
|
262
|
+
super(
|
|
263
|
+
`entity ${entity} field ${field} references entity ${target} outside the collected roots`
|
|
264
|
+
);
|
|
265
|
+
this.name = "SceneCollectEntityRefOutOfClosureError";
|
|
266
|
+
this.expected = `entity ${entity} field ${field} to reference an entity inside the collected roots`;
|
|
267
|
+
this.detail = { entity, field, target };
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
var SceneCollectAssetGuidUnresolvedError = class extends Error {
|
|
271
|
+
code = "scene-collect-asset-guid-unresolved";
|
|
272
|
+
expected;
|
|
273
|
+
hint = "Provide a GUID through the active scene asset port before collecting shared asset fields.";
|
|
274
|
+
detail;
|
|
275
|
+
constructor(field, handle) {
|
|
276
|
+
super(`shared asset field ${field} has no GUID for handle ${handle}`);
|
|
277
|
+
this.name = "SceneCollectAssetGuidUnresolvedError";
|
|
278
|
+
this.expected = `shared asset field ${field} to resolve through the active scene asset port`;
|
|
279
|
+
this.detail = { field, handle };
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
function excludedComponentNames() {
|
|
283
|
+
return /* @__PURE__ */ new Set(["Entity", "ChildOf", "Children"]);
|
|
284
|
+
}
|
|
285
|
+
function normalize(value) {
|
|
286
|
+
if (Array.isArray(value) || value instanceof Uint32Array || value instanceof Float32Array || value instanceof Int32Array || value instanceof Float64Array || value instanceof Uint8Array || value instanceof Int16Array || value instanceof Uint16Array) {
|
|
287
|
+
return Array.from(value);
|
|
288
|
+
}
|
|
289
|
+
return value;
|
|
290
|
+
}
|
|
291
|
+
function valuesEqual(a, b) {
|
|
292
|
+
return JSON.stringify(normalize(a)) === JSON.stringify(normalize(b));
|
|
293
|
+
}
|
|
294
|
+
function baselineFields(comp, sourceRaw) {
|
|
295
|
+
const filled = fillComponentDefaults(comp, sourceRaw ?? {});
|
|
296
|
+
const out = {};
|
|
297
|
+
const fields = componentDefinition(comp).fields;
|
|
298
|
+
for (const fieldName of Object.keys(componentSchema(comp))) {
|
|
299
|
+
if (fields[fieldName]?.transient) continue;
|
|
300
|
+
out[fieldName] = filled[fieldName];
|
|
301
|
+
}
|
|
302
|
+
return out;
|
|
303
|
+
}
|
|
304
|
+
function liveFields(world, entity, comp) {
|
|
305
|
+
const res = world.get(entity, comp);
|
|
306
|
+
if (!res.ok) return void 0;
|
|
307
|
+
const val = res.value;
|
|
308
|
+
const out = {};
|
|
309
|
+
const fields = componentDefinition(comp).fields;
|
|
310
|
+
const schema = componentSchema(comp);
|
|
311
|
+
for (const fieldName of Object.keys(schema)) {
|
|
312
|
+
if (fields[fieldName]?.transient) continue;
|
|
313
|
+
const fieldType = schema[fieldName];
|
|
314
|
+
if (fieldType === "entity" || fieldType === "array<entity>") continue;
|
|
315
|
+
out[fieldName] = normalize(val[fieldName]);
|
|
316
|
+
}
|
|
317
|
+
return out;
|
|
318
|
+
}
|
|
319
|
+
function foldMountOverrides(world, assets, state) {
|
|
320
|
+
const sourceRes = assets.resolve(
|
|
321
|
+
world,
|
|
322
|
+
state.source
|
|
323
|
+
);
|
|
324
|
+
if (!sourceRes.ok) return [];
|
|
325
|
+
const source = sourceRes.value;
|
|
326
|
+
const sourceByLid = /* @__PURE__ */ new Map();
|
|
327
|
+
for (const node of source.entities) {
|
|
328
|
+
sourceByLid.set(node.localId, node);
|
|
329
|
+
}
|
|
330
|
+
const excluded = excludedComponentNames();
|
|
331
|
+
const registered = world.components.entries();
|
|
332
|
+
const overrides = [];
|
|
333
|
+
const members = [];
|
|
334
|
+
for (const [entity, lid] of state.entityToLocalId) {
|
|
335
|
+
members.push([entity, lid]);
|
|
336
|
+
}
|
|
337
|
+
members.sort((a, b) => a[1] - b[1]);
|
|
338
|
+
for (const [entity, lid] of members) {
|
|
339
|
+
const sourceNode = sourceByLid.get(lid);
|
|
340
|
+
const sourceComps = sourceNode?.components ?? {};
|
|
341
|
+
for (const [compName, compToken] of registered) {
|
|
342
|
+
if (excluded.has(compName)) continue;
|
|
343
|
+
if (componentDefinition(compToken).policy.transient) continue;
|
|
344
|
+
const comp = compToken;
|
|
345
|
+
if (Object.keys(componentSchema(comp)).length === 0) continue;
|
|
346
|
+
const live = liveFields(world, entity, comp);
|
|
347
|
+
if (live === void 0) continue;
|
|
348
|
+
const sourceRaw = sourceComps[compName];
|
|
349
|
+
if (sourceRaw === void 0) {
|
|
350
|
+
overrides.push({
|
|
351
|
+
localId: lid,
|
|
352
|
+
comp: compName,
|
|
353
|
+
value: live
|
|
354
|
+
});
|
|
355
|
+
continue;
|
|
356
|
+
}
|
|
357
|
+
const baseline = baselineFields(comp, sourceRaw);
|
|
358
|
+
for (const fieldName of Object.keys(live)) {
|
|
359
|
+
if (!valuesEqual(live[fieldName], baseline[fieldName])) {
|
|
360
|
+
overrides.push({
|
|
361
|
+
localId: lid,
|
|
362
|
+
comp: compName,
|
|
363
|
+
field: fieldName,
|
|
364
|
+
value: live[fieldName]
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
return overrides;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
// src/collect-scene-asset.ts
|
|
374
|
+
function _isArrayLike(value) {
|
|
375
|
+
return Array.isArray(value) || ArrayBuffer.isView(value) && !(value instanceof DataView);
|
|
376
|
+
}
|
|
377
|
+
function _normalizeArray(value) {
|
|
378
|
+
return Array.from(value);
|
|
379
|
+
}
|
|
380
|
+
function classifyFieldSchema(fieldType) {
|
|
381
|
+
if (fieldType === void 0) return void 0;
|
|
382
|
+
if (fieldType.startsWith("shared<")) return { kind: "shared", scalar: true };
|
|
383
|
+
if (fieldType.startsWith("array<shared<")) return { kind: "shared", scalar: false };
|
|
384
|
+
return void 0;
|
|
385
|
+
}
|
|
386
|
+
function _handleToGuid(world, assets, handle, field) {
|
|
387
|
+
if (handle === 0) return ok$1(void 0);
|
|
388
|
+
const assetRes = assets.resolve(world, handle);
|
|
389
|
+
if (!assetRes.ok) return err$1(new SceneCollectAssetGuidUnresolvedError(field, handle));
|
|
390
|
+
const guid = assets.guidOf(assetRes.value);
|
|
391
|
+
if (guid === void 0) return err$1(new SceneCollectAssetGuidUnresolvedError(field, handle));
|
|
392
|
+
return ok$1(guid);
|
|
393
|
+
}
|
|
394
|
+
function _serializeSharedFieldValue(world, assets, classification, value, field) {
|
|
395
|
+
if (classification.scalar) {
|
|
396
|
+
if (typeof value !== "number") return ok$1(value);
|
|
397
|
+
return _handleToGuid(world, assets, value, field);
|
|
398
|
+
}
|
|
399
|
+
if (!Array.isArray(value)) return ok$1(value);
|
|
400
|
+
const mapped = [];
|
|
401
|
+
for (const elem of value) {
|
|
402
|
+
if (typeof elem !== "number") {
|
|
403
|
+
mapped.push(elem);
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
const g = _handleToGuid(world, assets, elem, field);
|
|
407
|
+
if (!g.ok) return g;
|
|
408
|
+
mapped.push(g.value ?? 0);
|
|
409
|
+
}
|
|
410
|
+
return ok$1(mapped);
|
|
411
|
+
}
|
|
412
|
+
function _serializeOverrideValueHandles(world, assets, ov) {
|
|
413
|
+
const comp = world.components.resolve(ov.comp);
|
|
414
|
+
const schema = comp === void 0 ? void 0 : componentSchema(comp);
|
|
415
|
+
if (ov.field !== void 0) {
|
|
416
|
+
const classification = schema ? classifyFieldSchema(schema[ov.field]) : void 0;
|
|
417
|
+
if (!classification || classification.kind !== "shared") return ok$1(ov.value);
|
|
418
|
+
const conv = _serializeSharedFieldValue(world, assets, classification, ov.value, ov.field);
|
|
419
|
+
if (!conv.ok) return conv;
|
|
420
|
+
return ok$1(conv.value ?? 0);
|
|
421
|
+
}
|
|
422
|
+
if (typeof ov.value !== "object" || ov.value === null || Array.isArray(ov.value)) {
|
|
423
|
+
return ok$1(ov.value);
|
|
424
|
+
}
|
|
425
|
+
const src = ov.value;
|
|
426
|
+
const out = {};
|
|
427
|
+
for (const fieldName of Object.keys(src)) {
|
|
428
|
+
const classification = schema ? classifyFieldSchema(schema[fieldName]) : void 0;
|
|
429
|
+
if (!classification || classification.kind !== "shared") {
|
|
430
|
+
out[fieldName] = src[fieldName];
|
|
431
|
+
continue;
|
|
432
|
+
}
|
|
433
|
+
const conv = _serializeSharedFieldValue(
|
|
434
|
+
world,
|
|
435
|
+
assets,
|
|
436
|
+
classification,
|
|
437
|
+
src[fieldName],
|
|
438
|
+
fieldName
|
|
439
|
+
);
|
|
440
|
+
if (!conv.ok) return conv;
|
|
441
|
+
if (classification.scalar && conv.value === void 0) continue;
|
|
442
|
+
out[fieldName] = conv.value;
|
|
443
|
+
}
|
|
444
|
+
return ok$1(out);
|
|
445
|
+
}
|
|
446
|
+
function serializeSceneAssetToPack(sceneAsset, components, guid) {
|
|
447
|
+
const externalized = externalizeSceneAsset(sceneAsset, (componentName) => {
|
|
448
|
+
const component = components.get(componentName);
|
|
449
|
+
return component === void 0 ? void 0 : componentSchema(component);
|
|
450
|
+
});
|
|
451
|
+
if (!externalized.ok) {
|
|
452
|
+
const value = externalized.error.value;
|
|
453
|
+
return err$1(
|
|
454
|
+
new SceneCollectAssetGuidUnresolvedError(
|
|
455
|
+
externalized.error.field,
|
|
456
|
+
typeof value === "string" || typeof value === "number" ? value : String(value)
|
|
457
|
+
)
|
|
458
|
+
);
|
|
459
|
+
}
|
|
460
|
+
return ok$1({
|
|
461
|
+
schemaVersion: "2.0.0",
|
|
462
|
+
kind: "internal-text-package",
|
|
463
|
+
assets: [
|
|
464
|
+
{
|
|
465
|
+
guid: guid ?? crypto.randomUUID(),
|
|
466
|
+
kind: "scene",
|
|
467
|
+
payload: externalized.value.payload,
|
|
468
|
+
refs: externalized.value.refs.map((reference) => reference.guid),
|
|
469
|
+
artifacts: {}
|
|
470
|
+
}
|
|
471
|
+
]
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
function rootsToSceneAsset(assets, world, roots) {
|
|
475
|
+
const collectProfile = SCENE_COLLECT_PROFILE;
|
|
476
|
+
const visited = /* @__PURE__ */ new Set();
|
|
477
|
+
for (const root of roots) collectSubtree(world, root, visited);
|
|
478
|
+
if (visited.size === 0) return ok$1({ kind: "scene", entities: [] });
|
|
479
|
+
const rootRawSet = /* @__PURE__ */ new Set();
|
|
480
|
+
for (const r of roots) rootRawSet.add(r);
|
|
481
|
+
const anchorEntities = /* @__PURE__ */ new Set();
|
|
482
|
+
for (const er of visited) {
|
|
483
|
+
if (world.get(er, SceneInstance).ok) anchorEntities.add(er);
|
|
484
|
+
}
|
|
485
|
+
const anchorsSorted = [...anchorEntities].sort((a, b) => a - b);
|
|
486
|
+
const memberEntities = /* @__PURE__ */ new Set();
|
|
487
|
+
const memberOrigin = /* @__PURE__ */ new Map();
|
|
488
|
+
for (const er of anchorsSorted) {
|
|
489
|
+
if (rootRawSet.has(er)) continue;
|
|
490
|
+
const sr = worldGetSceneInstanceState(world, er);
|
|
491
|
+
if (!sr.ok) continue;
|
|
492
|
+
for (const [me, lid] of sr.value.entityToLocalId) {
|
|
493
|
+
const mr = me;
|
|
494
|
+
if (visited.has(mr) && !anchorEntities.has(mr) && !memberEntities.has(mr)) {
|
|
495
|
+
memberEntities.add(mr);
|
|
496
|
+
memberOrigin.set(mr, { anchorRaw: er, memberLocalId: lid });
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
for (const er of anchorEntities) {
|
|
501
|
+
if (memberEntities.has(er) && !rootRawSet.has(er)) anchorEntities.delete(er);
|
|
502
|
+
}
|
|
503
|
+
const childOfTk0 = world.components.resolve("ChildOf");
|
|
504
|
+
const childrenTk0 = world.components.resolve("Children");
|
|
505
|
+
const carrierAllowed = /* @__PURE__ */ new Set(["Transform", "Children", "ChildOf", "Entity"]);
|
|
506
|
+
const carrierForAnchor = /* @__PURE__ */ new Map();
|
|
507
|
+
const carrierToAnchor = /* @__PURE__ */ new Map();
|
|
508
|
+
const isMountCarrier = (p, anchorRaw) => {
|
|
509
|
+
if (rootRawSet.has(p)) return false;
|
|
510
|
+
if (anchorEntities.has(p) || memberEntities.has(p)) return false;
|
|
511
|
+
if (!visited.has(p)) return false;
|
|
512
|
+
for (const [compName, compToken] of world.components.entries()) {
|
|
513
|
+
if (carrierAllowed.has(compName)) continue;
|
|
514
|
+
if (world.get(p, compToken).ok) return false;
|
|
515
|
+
}
|
|
516
|
+
if (childrenTk0) {
|
|
517
|
+
const cr = world.get(p, childrenTk0);
|
|
518
|
+
if (cr.ok) {
|
|
519
|
+
const kids = cr.value.entities;
|
|
520
|
+
if (kids) {
|
|
521
|
+
let visitedKidCount = 0;
|
|
522
|
+
let sawAnchor = false;
|
|
523
|
+
for (let i = 0; i < kids.length; i++) {
|
|
524
|
+
const k = kids[i];
|
|
525
|
+
if (!visited.has(k)) continue;
|
|
526
|
+
visitedKidCount += 1;
|
|
527
|
+
if (k === anchorRaw) sawAnchor = true;
|
|
528
|
+
}
|
|
529
|
+
if (!sawAnchor || visitedKidCount !== 1) return false;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
return true;
|
|
534
|
+
};
|
|
535
|
+
if (childOfTk0) {
|
|
536
|
+
for (const anchorRaw of anchorsSorted) {
|
|
537
|
+
if (!anchorEntities.has(anchorRaw)) continue;
|
|
538
|
+
if (rootRawSet.has(anchorRaw)) continue;
|
|
539
|
+
const cr = world.get(anchorRaw, childOfTk0);
|
|
540
|
+
if (!cr.ok) continue;
|
|
541
|
+
const pRaw = cr.value.parent;
|
|
542
|
+
if (pRaw === void 0) continue;
|
|
543
|
+
if (!carrierToAnchor.has(pRaw) && isMountCarrier(pRaw, anchorRaw)) {
|
|
544
|
+
carrierForAnchor.set(anchorRaw, pRaw);
|
|
545
|
+
carrierToAnchor.set(pRaw, anchorRaw);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
const orderedEntities = [...visited];
|
|
550
|
+
const ownedEntities = [];
|
|
551
|
+
for (const er of orderedEntities) {
|
|
552
|
+
if (carrierToAnchor.has(er)) continue;
|
|
553
|
+
if ((!anchorEntities.has(er) || rootRawSet.has(er)) && !memberEntities.has(er)) {
|
|
554
|
+
ownedEntities.push(er);
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
const entityToLocalId = /* @__PURE__ */ new Map();
|
|
558
|
+
for (let i = 0; i < ownedEntities.length; i++) {
|
|
559
|
+
const e = ownedEntities[i];
|
|
560
|
+
if (e !== void 0) entityToLocalId.set(e, i);
|
|
561
|
+
}
|
|
562
|
+
const nonRootAnchors = [];
|
|
563
|
+
for (const er of anchorEntities) {
|
|
564
|
+
if (rootRawSet.has(er)) continue;
|
|
565
|
+
const sh = worldGetSceneAssetForInstance(world, er);
|
|
566
|
+
if (!sh.ok)
|
|
567
|
+
return err$1(
|
|
568
|
+
new SceneCollectAssetGuidUnresolvedError(
|
|
569
|
+
"SceneInstance.source",
|
|
570
|
+
sh.error
|
|
571
|
+
)
|
|
572
|
+
);
|
|
573
|
+
const pr = assets.resolve(world, sh.value);
|
|
574
|
+
if (!pr.ok)
|
|
575
|
+
return err$1(
|
|
576
|
+
new SceneCollectAssetGuidUnresolvedError(
|
|
577
|
+
"SceneInstance.source",
|
|
578
|
+
sh.value
|
|
579
|
+
)
|
|
580
|
+
);
|
|
581
|
+
const g = assets.guidOf(pr.value);
|
|
582
|
+
if (g === void 0)
|
|
583
|
+
return err$1(
|
|
584
|
+
new SceneCollectAssetGuidUnresolvedError(
|
|
585
|
+
"SceneInstance.source",
|
|
586
|
+
sh.value
|
|
587
|
+
)
|
|
588
|
+
);
|
|
589
|
+
const sr = worldGetSceneInstanceState(world, er);
|
|
590
|
+
if (!sr.ok)
|
|
591
|
+
return err$1(new SceneCollectAssetGuidUnresolvedError("SceneInstance.source", "state"));
|
|
592
|
+
nonRootAnchors.push({ entityRaw: er, sourceGuid: g, totalSlots: sr.value.totalSlots });
|
|
593
|
+
}
|
|
594
|
+
const bfsIdx = /* @__PURE__ */ new Map();
|
|
595
|
+
for (let i = 0; i < orderedEntities.length; i++) {
|
|
596
|
+
if (orderedEntities[i] !== void 0) bfsIdx.set(orderedEntities[i], i);
|
|
597
|
+
}
|
|
598
|
+
nonRootAnchors.sort((a, b) => (bfsIdx.get(a.entityRaw) ?? 0) - (bfsIdx.get(b.entityRaw) ?? 0));
|
|
599
|
+
const ownedCount = ownedEntities.length;
|
|
600
|
+
const outMounts = [];
|
|
601
|
+
let nextMF = ownedCount + nonRootAnchors.length;
|
|
602
|
+
const childOfTk = world.components.resolve("ChildOf");
|
|
603
|
+
const transformTk = world.components.resolve("Transform");
|
|
604
|
+
for (const a of nonRootAnchors) {
|
|
605
|
+
const carrierRaw = carrierForAnchor.get(a.entityRaw);
|
|
606
|
+
const parentSourceRaw = carrierRaw ?? a.entityRaw;
|
|
607
|
+
let mp;
|
|
608
|
+
if (childOfTk) {
|
|
609
|
+
const cr = world.get(parentSourceRaw, childOfTk);
|
|
610
|
+
if (cr.ok) {
|
|
611
|
+
const pRaw = cr.value.parent;
|
|
612
|
+
if (pRaw !== void 0) {
|
|
613
|
+
const ol = entityToLocalId.get(pRaw);
|
|
614
|
+
if (ol !== void 0) mp = ol;
|
|
615
|
+
else {
|
|
616
|
+
const mo = memberOrigin.get(pRaw);
|
|
617
|
+
if (mo !== void 0) {
|
|
618
|
+
const ai = nonRootAnchors.findIndex((x) => x.entityRaw === mo.anchorRaw);
|
|
619
|
+
if (ai >= 0) mp = ownedCount + ai;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
let mountComponents;
|
|
626
|
+
if (carrierRaw !== void 0 && transformTk) {
|
|
627
|
+
const tr = world.get(carrierRaw, transformTk);
|
|
628
|
+
if (tr.ok) {
|
|
629
|
+
mountComponents = {
|
|
630
|
+
Transform: { ...tr.value }
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
const memberFirst0 = nextMF;
|
|
635
|
+
let mountOverrides;
|
|
636
|
+
const foldStateRes = worldGetSceneInstanceState(world, a.entityRaw);
|
|
637
|
+
if (foldStateRes.ok) {
|
|
638
|
+
const rawOverrides = foldMountOverrides(world, assets, foldStateRes.value);
|
|
639
|
+
if (rawOverrides.length > 0) {
|
|
640
|
+
mountOverrides = [];
|
|
641
|
+
for (const ov of rawOverrides) {
|
|
642
|
+
const convRes = _serializeOverrideValueHandles(world, assets, ov);
|
|
643
|
+
if (!convRes.ok) return convRes;
|
|
644
|
+
mountOverrides.push({
|
|
645
|
+
...ov,
|
|
646
|
+
localId: memberFirst0 + ov.localId,
|
|
647
|
+
value: convRes.value
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
const mount = {
|
|
653
|
+
localId: ownedCount + outMounts.length,
|
|
654
|
+
source: a.sourceGuid,
|
|
655
|
+
memberFirst: nextMF,
|
|
656
|
+
memberCount: a.totalSlots,
|
|
657
|
+
...mp !== void 0 ? { parent: mp } : {},
|
|
658
|
+
...mountComponents !== void 0 ? { components: mountComponents } : {},
|
|
659
|
+
...mountOverrides !== void 0 && mountOverrides.length > 0 ? { overrides: mountOverrides } : {}
|
|
660
|
+
};
|
|
661
|
+
outMounts.push(mount);
|
|
662
|
+
nextMF += a.totalSlots;
|
|
663
|
+
}
|
|
664
|
+
function _rlid(t) {
|
|
665
|
+
const ol = entityToLocalId.get(t);
|
|
666
|
+
if (ol !== void 0) return ol;
|
|
667
|
+
const absorbedAnchor = carrierToAnchor.get(t);
|
|
668
|
+
if (absorbedAnchor !== void 0) {
|
|
669
|
+
for (let i = 0; i < nonRootAnchors.length; i++) {
|
|
670
|
+
if (nonRootAnchors[i]?.entityRaw === absorbedAnchor) return ownedCount + i;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
for (let i = 0; i < nonRootAnchors.length; i++) {
|
|
674
|
+
if (nonRootAnchors[i]?.entityRaw === t) return ownedCount + i;
|
|
675
|
+
}
|
|
676
|
+
const mo = memberOrigin.get(t);
|
|
677
|
+
if (mo !== void 0) {
|
|
678
|
+
for (let i = 0; i < nonRootAnchors.length; i++) {
|
|
679
|
+
if (nonRootAnchors[i]?.entityRaw === mo.anchorRaw) {
|
|
680
|
+
let mf = ownedCount + nonRootAnchors.length;
|
|
681
|
+
for (let j = 0; j < i; j++) mf += nonRootAnchors[j]?.totalSlots ?? 0;
|
|
682
|
+
return mf + mo.memberLocalId;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
return void 0;
|
|
687
|
+
}
|
|
688
|
+
const registeredComps = world.components.entries();
|
|
689
|
+
const entities = [];
|
|
690
|
+
for (let lid = 0; lid < ownedEntities.length; lid++) {
|
|
691
|
+
const entityRaw = ownedEntities[lid];
|
|
692
|
+
if (entityRaw === void 0) continue;
|
|
693
|
+
const entity = entityRaw;
|
|
694
|
+
const components = {};
|
|
695
|
+
const isRoot = rootRawSet.has(entityRaw);
|
|
696
|
+
for (const [compName, compToken] of registeredComps) {
|
|
697
|
+
if (!collectProfile.includeComponent(
|
|
698
|
+
compName,
|
|
699
|
+
componentDefinition(compToken).policy.transient === true
|
|
700
|
+
))
|
|
701
|
+
continue;
|
|
702
|
+
if (isRoot && compName === "ChildOf") continue;
|
|
703
|
+
const valRes = world.get(entity, compToken);
|
|
704
|
+
if (!valRes.ok) continue;
|
|
705
|
+
const val = valRes.value;
|
|
706
|
+
const comp = compToken;
|
|
707
|
+
if (comp === void 0) continue;
|
|
708
|
+
const schema = componentSchema(comp);
|
|
709
|
+
const schemaKeys = Object.keys(schema);
|
|
710
|
+
if (schemaKeys.length === 0) {
|
|
711
|
+
components[compName] = {};
|
|
712
|
+
continue;
|
|
713
|
+
}
|
|
714
|
+
const fieldValues = {};
|
|
715
|
+
for (const fieldName of schemaKeys) {
|
|
716
|
+
const rawValue = val[fieldName];
|
|
717
|
+
if (rawValue === void 0) continue;
|
|
718
|
+
if (!collectProfile.includeField(
|
|
719
|
+
compName,
|
|
720
|
+
fieldName,
|
|
721
|
+
componentDefinition(comp).fields[fieldName]?.transient === true
|
|
722
|
+
))
|
|
723
|
+
continue;
|
|
724
|
+
const schemaFieldType = schema[fieldName];
|
|
725
|
+
const entityKind = classifyEntityField(comp, fieldName);
|
|
726
|
+
const sharedClass = schemaFieldType !== void 0 ? classifyFieldSchema(schemaFieldType) : void 0;
|
|
727
|
+
if (!entityKind && !sharedClass) {
|
|
728
|
+
if (_isArrayLike(rawValue)) {
|
|
729
|
+
fieldValues[fieldName] = _normalizeArray(rawValue);
|
|
730
|
+
} else {
|
|
731
|
+
fieldValues[fieldName] = rawValue;
|
|
732
|
+
}
|
|
733
|
+
continue;
|
|
734
|
+
}
|
|
735
|
+
if (entityKind !== null) {
|
|
736
|
+
if (entityKind.isArray) {
|
|
737
|
+
const arr = _isArrayLike(rawValue) ? _normalizeArray(rawValue) : rawValue;
|
|
738
|
+
const mapped = [];
|
|
739
|
+
for (const elem of arr) {
|
|
740
|
+
const lid2 = _rlid(elem);
|
|
741
|
+
if (lid2 === void 0) {
|
|
742
|
+
return err$1(
|
|
743
|
+
new SceneCollectEntityRefOutOfClosureError(entityRaw, fieldName, elem)
|
|
744
|
+
);
|
|
745
|
+
}
|
|
746
|
+
mapped.push(lid2);
|
|
747
|
+
}
|
|
748
|
+
fieldValues[fieldName] = mapped;
|
|
749
|
+
} else {
|
|
750
|
+
if (rawValue === null) continue;
|
|
751
|
+
const lid2 = _rlid(rawValue);
|
|
752
|
+
if (lid2 === void 0) {
|
|
753
|
+
return err$1(
|
|
754
|
+
new SceneCollectEntityRefOutOfClosureError(
|
|
755
|
+
entityRaw,
|
|
756
|
+
fieldName,
|
|
757
|
+
rawValue
|
|
758
|
+
)
|
|
759
|
+
);
|
|
760
|
+
}
|
|
761
|
+
fieldValues[fieldName] = lid2;
|
|
762
|
+
}
|
|
763
|
+
} else {
|
|
764
|
+
const normalized = _isArrayLike(rawValue) ? _normalizeArray(rawValue) : rawValue;
|
|
765
|
+
if (sharedClass === void 0) {
|
|
766
|
+
fieldValues[fieldName] = normalized;
|
|
767
|
+
continue;
|
|
768
|
+
}
|
|
769
|
+
const conv = _serializeSharedFieldValue(
|
|
770
|
+
world,
|
|
771
|
+
assets,
|
|
772
|
+
sharedClass,
|
|
773
|
+
normalized,
|
|
774
|
+
fieldName
|
|
775
|
+
);
|
|
776
|
+
if (!conv.ok) return conv;
|
|
777
|
+
if (sharedClass.scalar && conv.value === void 0) continue;
|
|
778
|
+
fieldValues[fieldName] = conv.value;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
if (Object.keys(fieldValues).length > 0) components[compName] = fieldValues;
|
|
782
|
+
}
|
|
783
|
+
entities.push({ localId: lid, components });
|
|
784
|
+
}
|
|
785
|
+
return ok$1({
|
|
786
|
+
kind: "scene",
|
|
787
|
+
entities,
|
|
788
|
+
...outMounts.length > 0 ? { mounts: outMounts } : {}
|
|
789
|
+
});
|
|
790
|
+
}
|
|
791
|
+
function createSceneAssetPort(guidOf) {
|
|
792
|
+
return {
|
|
793
|
+
resolve(world, handle) {
|
|
794
|
+
const shared = world.sharedRefs.resolve(handle);
|
|
795
|
+
if (shared.ok) return ok(shared.value);
|
|
796
|
+
return err({
|
|
797
|
+
code: "scene-asset-unresolved",
|
|
798
|
+
expected: "the handle to identify a World.sharedRefs-owned scene asset",
|
|
799
|
+
hint: "allocate the asset through the active World shared-ref owner before collecting the scene",
|
|
800
|
+
detail: { handle: handleSlot(handle) }
|
|
801
|
+
});
|
|
802
|
+
},
|
|
803
|
+
guidOf
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
// src/index.ts
|
|
808
|
+
var Engine = {
|
|
809
|
+
create: createRenderer
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
export { Engine, SceneCollectAssetGuidUnresolvedError, SceneCollectEntityRefOutOfClosureError, builtinAssetKind, createDevImportTransport, createRenderer, createSceneAssetPort, defaultAssetDecoderContributions, rootsToSceneAsset, serializeSceneAssetToPack, spriteAnimationTickSystem };
|
|
813
|
+
//# sourceMappingURL=index.mjs.map
|
|
814
|
+
//# sourceMappingURL=index.mjs.map
|