@null3d/engine 0.0.0-stage → 0.1.0
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-APACHE +176 -0
- package/LICENSE-MIT +21 -0
- package/README.md +108 -2
- package/THIRD-PARTY-NOTICES.txt +637 -0
- package/dist/wasm/single/null3d.js +3972 -0
- package/dist/wasm/single/null3d_bg.wasm +0 -0
- package/dist/wasm/threaded/null3d.js +3988 -0
- package/dist/wasm/threaded/null3d_bg.wasm +0 -0
- package/docs/api/animation.md +492 -0
- package/docs/api/assets.md +400 -0
- package/docs/api/cameras.md +161 -0
- package/docs/api/controls.md +319 -0
- package/docs/api/debug.md +450 -0
- package/docs/api/engine.md +254 -0
- package/docs/api/feature-draws.md +172 -0
- package/docs/api/feature-effects.md +137 -0
- package/docs/api/feature-instances.md +154 -0
- package/docs/api/features.md +323 -0
- package/docs/api/geometry.md +307 -0
- package/docs/api/grass.md +114 -0
- package/docs/api/impostors.md +274 -0
- package/docs/api/input.md +238 -0
- package/docs/api/lights.md +266 -0
- package/docs/api/lines.md +163 -0
- package/docs/api/materials.md +875 -0
- package/docs/api/math.md +129 -0
- package/docs/api/objects.md +155 -0
- package/docs/api/page.md +97 -0
- package/docs/api/particles.md +205 -0
- package/docs/api/points.md +130 -0
- package/docs/api/post.md +494 -0
- package/docs/api/quality.md +200 -0
- package/docs/api/raycast.md +269 -0
- package/docs/api/reference/animation.md +158 -0
- package/docs/api/reference/assets.md +335 -0
- package/docs/api/reference/cameras.md +138 -0
- package/docs/api/reference/controls.md +463 -0
- package/docs/api/reference/debug.md +586 -0
- package/docs/api/reference/engine.md +647 -0
- package/docs/api/reference/feature-draws.md +94 -0
- package/docs/api/reference/feature-effects.md +32 -0
- package/docs/api/reference/feature-instances.md +63 -0
- package/docs/api/reference/features.md +361 -0
- package/docs/api/reference/geometry.md +856 -0
- package/docs/api/reference/grass.md +131 -0
- package/docs/api/reference/impostors.md +368 -0
- package/docs/api/reference/input.md +121 -0
- package/docs/api/reference/lights.md +257 -0
- package/docs/api/reference/lines.md +84 -0
- package/docs/api/reference/materials.md +375 -0
- package/docs/api/reference/math.md +229 -0
- package/docs/api/reference/objects.md +103 -0
- package/docs/api/reference/particles.md +336 -0
- package/docs/api/reference/points.md +57 -0
- package/docs/api/reference/post.md +244 -0
- package/docs/api/reference/quality.md +213 -0
- package/docs/api/reference/raycast.md +94 -0
- package/docs/api/reference/render.md +238 -0
- package/docs/api/reference/scene.md +543 -0
- package/docs/api/reference/sketch.md +125 -0
- package/docs/api/reference/sound.md +203 -0
- package/docs/api/reference/splats.md +214 -0
- package/docs/api/reference/sprites.md +71 -0
- package/docs/api/reference/tasks.md +92 -0
- package/docs/api/reference/terrain.md +161 -0
- package/docs/api/reference/textures.md +153 -0
- package/docs/api/reference/three-compat.md +60 -0
- package/docs/api/reference/time.md +25 -0
- package/docs/api/reference/ui.md +52 -0
- package/docs/api/reference/vertex-draws.md +55 -0
- package/docs/api/reference/water.md +430 -0
- package/docs/api/reference/wind.md +106 -0
- package/docs/api/render.md +499 -0
- package/docs/api/scene.md +606 -0
- package/docs/api/sketch.md +231 -0
- package/docs/api/sound.md +169 -0
- package/docs/api/splats.md +264 -0
- package/docs/api/sprites.md +169 -0
- package/docs/api/tasks.md +106 -0
- package/docs/api/terrain.md +118 -0
- package/docs/api/textures.md +272 -0
- package/docs/api/three-compat.md +102 -0
- package/docs/api/time.md +134 -0
- package/docs/api/ui.md +134 -0
- package/docs/api/vertex-draws.md +171 -0
- package/docs/api/water.md +486 -0
- package/docs/api/wind.md +375 -0
- package/docs/cli/null3d.md +603 -0
- package/docs/concepts/architecture.md +174 -0
- package/docs/concepts/assets.md +128 -0
- package/docs/concepts/backends.md +197 -0
- package/docs/concepts/color-management.md +134 -0
- package/docs/concepts/culling.md +227 -0
- package/docs/concepts/handles.md +93 -0
- package/docs/concepts/instances.md +285 -0
- package/docs/concepts/large-worlds.md +126 -0
- package/docs/concepts/lighting.md +587 -0
- package/docs/concepts/lod.md +241 -0
- package/docs/concepts/materials.md +128 -0
- package/docs/concepts/particle-buffer.md +201 -0
- package/docs/concepts/post-processing.md +420 -0
- package/docs/concepts/quality-preset-tables.md +94 -0
- package/docs/concepts/quality-presets.md +341 -0
- package/docs/concepts/render-graph.md +222 -0
- package/docs/concepts/render-layers.md +111 -0
- package/docs/concepts/shadows.md +448 -0
- package/docs/concepts/static-dynamic.md +113 -0
- package/docs/cookbook/index.md +664 -0
- package/docs/data/threejs-mapping.json +2152 -0
- package/docs/errors/E1101.md +23 -0
- package/docs/errors/E1102.md +23 -0
- package/docs/errors/E1103.md +23 -0
- package/docs/errors/E1104.md +23 -0
- package/docs/errors/E1105.md +23 -0
- package/docs/errors/E1106.md +23 -0
- package/docs/errors/E1107.md +23 -0
- package/docs/errors/E1108.md +23 -0
- package/docs/errors/E1109.md +23 -0
- package/docs/errors/E1110.md +23 -0
- package/docs/errors/E1111.md +23 -0
- package/docs/errors/E1112.md +23 -0
- package/docs/errors/E1203.md +23 -0
- package/docs/errors/E1204.md +23 -0
- package/docs/errors/E1205.md +23 -0
- package/docs/errors/E1206.md +23 -0
- package/docs/errors/E1207.md +23 -0
- package/docs/errors/E1208.md +23 -0
- package/docs/errors/E1209.md +23 -0
- package/docs/errors/E1213.md +23 -0
- package/docs/errors/E1214.md +23 -0
- package/docs/errors/E1215.md +23 -0
- package/docs/errors/E1216.md +23 -0
- package/docs/errors/E1217.md +23 -0
- package/docs/errors/E1218.md +23 -0
- package/docs/errors/E1219.md +23 -0
- package/docs/errors/E1220.md +23 -0
- package/docs/errors/E1221.md +23 -0
- package/docs/errors/E1222.md +23 -0
- package/docs/errors/E1223.md +23 -0
- package/docs/errors/E1224.md +23 -0
- package/docs/errors/E1225.md +23 -0
- package/docs/errors/E1301.md +23 -0
- package/docs/errors/E1302.md +23 -0
- package/docs/errors/E1303.md +23 -0
- package/docs/errors/E1304.md +23 -0
- package/docs/errors/E1305.md +23 -0
- package/docs/errors/E1306.md +23 -0
- package/docs/errors/E1307.md +23 -0
- package/docs/errors/E1401.md +23 -0
- package/docs/errors/E1402.md +23 -0
- package/docs/errors/E1403.md +23 -0
- package/docs/errors/E1404.md +23 -0
- package/docs/errors/E1405.md +23 -0
- package/docs/errors/E1406.md +23 -0
- package/docs/errors/E1407.md +23 -0
- package/docs/errors/E1408.md +23 -0
- package/docs/errors/E1409.md +23 -0
- package/docs/errors/E1410.md +23 -0
- package/docs/errors/E1411.md +23 -0
- package/docs/errors/E1412.md +23 -0
- package/docs/errors/E1413.md +23 -0
- package/docs/errors/E1414.md +23 -0
- package/docs/errors/E1415.md +23 -0
- package/docs/errors/E1416.md +23 -0
- package/docs/errors/E1417.md +23 -0
- package/docs/errors/E1418.md +23 -0
- package/docs/errors/E1419.md +23 -0
- package/docs/errors/E1420.md +23 -0
- package/docs/errors/E1421.md +23 -0
- package/docs/errors/E1422.md +23 -0
- package/docs/errors/E1423.md +23 -0
- package/docs/errors/E1424.md +23 -0
- package/docs/errors/E1425.md +23 -0
- package/docs/errors/E1426.md +23 -0
- package/docs/errors/E1430.md +23 -0
- package/docs/errors/E1431.md +23 -0
- package/docs/errors/E1432.md +23 -0
- package/docs/errors/E1433.md +23 -0
- package/docs/errors/E1434.md +23 -0
- package/docs/errors/E1435.md +23 -0
- package/docs/errors/E1436.md +23 -0
- package/docs/errors/E1437.md +23 -0
- package/docs/errors/E1501.md +23 -0
- package/docs/errors/E1502.md +23 -0
- package/docs/errors/E1503.md +23 -0
- package/docs/errors/E1504.md +23 -0
- package/docs/errors/E1505.md +23 -0
- package/docs/errors/E1506.md +23 -0
- package/docs/errors/index.md +93 -0
- package/docs/getting-started/cdn.md +235 -0
- package/docs/getting-started/first-scene.md +129 -0
- package/docs/getting-started/hosting.md +400 -0
- package/docs/getting-started/install.md +112 -0
- package/docs/getting-started/network-use.md +96 -0
- package/docs/getting-started/project-structure.md +78 -0
- package/docs/getting-started/third-party-notices.md +94 -0
- package/docs/guides/accessibility.md +96 -0
- package/docs/guides/add-ons.md +160 -0
- package/docs/guides/agents.md +77 -0
- package/docs/guides/assets-pipeline.md +505 -0
- package/docs/guides/audio.md +148 -0
- package/docs/guides/baked-light-data.md +176 -0
- package/docs/guides/car-paint.md +121 -0
- package/docs/guides/content-pages.md +238 -0
- package/docs/guides/custom-passes.md +586 -0
- package/docs/guides/custom-shaders.md +293 -0
- package/docs/guides/debugging.md +236 -0
- package/docs/guides/deploying.md +115 -0
- package/docs/guides/deterministic-simulation.md +226 -0
- package/docs/guides/first-use-shaders.md +57 -0
- package/docs/guides/lens-kit.md +134 -0
- package/docs/guides/loading-screens.md +263 -0
- package/docs/guides/multiple-views.md +122 -0
- package/docs/guides/performance.md +405 -0
- package/docs/guides/phones.md +138 -0
- package/docs/guides/physics.md +202 -0
- package/docs/guides/screens.md +125 -0
- package/docs/guides/start-time.md +328 -0
- package/docs/guides/testing.md +245 -0
- package/docs/guides/ui-overlays.md +182 -0
- package/docs/guides/video-textures.md +110 -0
- package/docs/index.md +49 -0
- package/docs/pages.md +242 -0
- package/docs/porting/react-three-fiber.md +238 -0
- package/docs/porting/threejs-loop-and-threads.md +229 -0
- package/docs/porting/threejs-mapping.md +297 -0
- package/docs/porting/threejs-materials.md +222 -0
- package/docs/porting/threejs-overview.md +228 -0
- package/docs/porting/threejs-postprocessing.md +256 -0
- package/docs/porting/threejs-shaders.md +308 -0
- package/docs/porting/threejs-unsupported.md +91 -0
- package/docs/porting/verification.md +191 -0
- package/docs/shaders/builtins.md +129 -0
- package/docs/shaders/library.md +1374 -0
- package/docs/shaders/surface-functions.md +626 -0
- package/docs/shaders/wgsl-rules.md +126 -0
- package/levels/pieces.d.ts +178 -0
- package/levels/pieces.js +759 -0
- package/levels/planner.d.ts +126 -0
- package/levels/planner.js +682 -0
- package/lib/debug/channel.d.ts +103 -0
- package/lib/debug/channel.js +269 -0
- package/lib/debug/debug.d.ts +180 -0
- package/lib/debug/debug.js +4 -0
- package/lib/debug/draw.d.ts +146 -0
- package/lib/debug/draw.js +719 -0
- package/lib/debug/frame-target.d.ts +11 -0
- package/lib/debug/frame-target.js +31 -0
- package/lib/debug/inspector.d.ts +60 -0
- package/lib/debug/inspector.js +475 -0
- package/lib/debug/overlay-look.d.ts +162 -0
- package/lib/debug/overlay-look.js +1365 -0
- package/lib/debug/overlay.d.ts +68 -0
- package/lib/debug/overlay.js +195 -0
- package/lib/debug/page-meters.d.ts +139 -0
- package/lib/debug/page-meters.js +267 -0
- package/lib/debug/sketch-debug.d.ts +41 -0
- package/lib/debug/sketch-debug.js +86 -0
- package/lib/debug/stats-options.d.ts +15 -0
- package/lib/debug/stats-options.js +3 -0
- package/lib/debug/stats-panel.d.ts +94 -0
- package/lib/debug/stats-panel.js +123 -0
- package/lib/debug/stats-text.d.ts +169 -0
- package/lib/debug/stats-text.js +126 -0
- package/lib/debug/stats.d.ts +195 -0
- package/lib/debug/stats.js +252 -0
- package/lib/debug/view-names.d.ts +15 -0
- package/lib/debug/view-names.js +22 -0
- package/lib/errors/checks.d.ts +24 -0
- package/lib/errors/checks.js +38 -0
- package/lib/errors/codes.d.ts +15 -0
- package/lib/errors/codes.js +489 -0
- package/lib/errors/core-failure.d.ts +19 -0
- package/lib/errors/core-failure.js +127 -0
- package/lib/errors/engine-error-core.d.ts +21 -0
- package/lib/errors/engine-error-core.js +39 -0
- package/lib/errors/engine-error.d.ts +38 -0
- package/lib/errors/engine-error.js +132 -0
- package/lib/errors/fixes.d.ts +89 -0
- package/lib/errors/fixes.js +86 -0
- package/lib/errors/message.d.ts +4 -0
- package/lib/errors/message.js +10 -0
- package/lib/generated/core.d.ts +657 -0
- package/lib/generated/core.js +659 -0
- package/lib/generated/gpu.d.ts +412 -0
- package/lib/generated/gpu.js +414 -0
- package/lib/generated/shader-features.d.ts +8 -0
- package/lib/generated/shader-permutations.d.ts +6 -0
- package/lib/generated/shader-permutations.js +9 -0
- package/lib/generated/shaders-environment-glsl.d.ts +11 -0
- package/lib/generated/shaders-environment-wgsl.d.ts +11 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lines.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-cutout.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-decals-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-decals.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-moment-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-moment.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-motion.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-picking.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-probe-grid-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-probe-grid.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-sprites.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-subsurface-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-subsurface.d.ts +3 -0
- package/lib/generated/shaders-probe-glsl.d.ts +11 -0
- package/lib/generated/shaders-probe-wgsl.d.ts +11 -0
- package/lib/generated/shaders-sky-volume-env-glsl.d.ts +11 -0
- package/lib/generated/shaders-sky-volume-env-wgsl.d.ts +11 -0
- package/lib/generated/shaders-sky-volume-panorama-glsl.d.ts +11 -0
- package/lib/generated/shaders-sky-volume-panorama-wgsl.d.ts +11 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-bump-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-bump.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-coat-sheen-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-coat-sheen.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-hash.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-instance-index-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-instance-index.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-lines.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-moment-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-moment.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-bump-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-bump.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-coat-sheen-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-coat-sheen.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-coverage.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-cutout.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-decals-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-decals.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-displacement.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-hash-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-hash.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-instance-index-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-instance-index.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-moment-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-moment.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-motion.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-picking.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-probe-grid-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-probe-grid.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-row-values.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-skinning.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-sprites.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-subsurface-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-subsurface.d.ts +3 -0
- package/lib/generated/shaders.d.ts +1146 -0
- package/lib/gpu/canvas-release.d.ts +20 -0
- package/lib/gpu/canvas-release.js +67 -0
- package/lib/gpu/completion.d.ts +35 -0
- package/lib/gpu/completion.js +256 -0
- package/lib/gpu/device-shaders.d.ts +69 -0
- package/lib/gpu/device-shaders.js +177 -0
- package/lib/gpu/early-builds.d.ts +68 -0
- package/lib/gpu/early-builds.js +158 -0
- package/lib/gpu/effect-join.d.ts +83 -0
- package/lib/gpu/effect-join.js +134 -0
- package/lib/gpu/effect-joiner.d.ts +14 -0
- package/lib/gpu/effect-joiner.js +165 -0
- package/lib/gpu/environment-steps.d.ts +135 -0
- package/lib/gpu/environment-steps.js +210 -0
- package/lib/gpu/environment-words.d.ts +14 -0
- package/lib/gpu/environment-words.js +19 -0
- package/lib/gpu/environment.d.ts +4 -0
- package/lib/gpu/environment.js +8 -0
- package/lib/gpu/float-bits.d.ts +2 -0
- package/lib/gpu/float-bits.js +9 -0
- package/lib/gpu/line-vertices.d.ts +1 -0
- package/lib/gpu/line-vertices.js +14 -0
- package/lib/gpu/memory.d.ts +19 -0
- package/lib/gpu/memory.js +50 -0
- package/lib/gpu/particle-records.d.ts +1 -0
- package/lib/gpu/particle-records.js +15 -0
- package/lib/gpu/pipeline-name.d.ts +6 -0
- package/lib/gpu/pipeline-name.js +23 -0
- package/lib/gpu/probe-steps.d.ts +22 -0
- package/lib/gpu/probe-steps.js +43 -0
- package/lib/gpu/readback.d.ts +32 -0
- package/lib/gpu/readback.js +163 -0
- package/lib/gpu/variants.d.ts +16 -0
- package/lib/gpu/variants.js +67 -0
- package/lib/gpu/vertex-format.d.ts +46 -0
- package/lib/gpu/vertex-format.js +111 -0
- package/lib/gpu/webgl2/backend.d.ts +714 -0
- package/lib/gpu/webgl2/backend.js +2964 -0
- package/lib/gpu/webgl2/call-timing.d.ts +34 -0
- package/lib/gpu/webgl2/call-timing.js +143 -0
- package/lib/gpu/webgl2/context.d.ts +31 -0
- package/lib/gpu/webgl2/context.js +111 -0
- package/lib/gpu/webgl2/depth.d.ts +25 -0
- package/lib/gpu/webgl2/depth.js +30 -0
- package/lib/gpu/webgl2/environment.d.ts +65 -0
- package/lib/gpu/webgl2/environment.js +572 -0
- package/lib/gpu/webgl2/gpu-timer.d.ts +25 -0
- package/lib/gpu/webgl2/gpu-timer.js +93 -0
- package/lib/gpu/webgl2/probes.d.ts +38 -0
- package/lib/gpu/webgl2/probes.js +117 -0
- package/lib/gpu/webgl2/programs.d.ts +238 -0
- package/lib/gpu/webgl2/programs.js +487 -0
- package/lib/gpu/webgpu/backend.d.ts +460 -0
- package/lib/gpu/webgpu/backend.js +1812 -0
- package/lib/gpu/webgpu/buffer-reads.d.ts +42 -0
- package/lib/gpu/webgpu/buffer-reads.js +95 -0
- package/lib/gpu/webgpu/culled-counts.d.ts +79 -0
- package/lib/gpu/webgpu/culled-counts.js +259 -0
- package/lib/gpu/webgpu/draw-path-probe.d.ts +37 -0
- package/lib/gpu/webgpu/draw-path-probe.js +187 -0
- package/lib/gpu/webgpu/environment.d.ts +36 -0
- package/lib/gpu/webgpu/environment.js +735 -0
- package/lib/gpu/webgpu/first-pass.d.ts +13 -0
- package/lib/gpu/webgpu/first-pass.js +61 -0
- package/lib/gpu/webgpu/gpu-timer.d.ts +67 -0
- package/lib/gpu/webgpu/gpu-timer.js +328 -0
- package/lib/gpu/webgpu/indirect-arguments.d.ts +42 -0
- package/lib/gpu/webgpu/indirect-arguments.js +156 -0
- package/lib/gpu/webgpu/pipelines.d.ts +264 -0
- package/lib/gpu/webgpu/pipelines.js +2013 -0
- package/lib/gpu/webgpu/probes.d.ts +27 -0
- package/lib/gpu/webgpu/probes.js +190 -0
- package/lib/gpu/webgpu/reusable.d.ts +74 -0
- package/lib/gpu/webgpu/reusable.js +212 -0
- package/lib/gpu/webgpu/staging.d.ts +79 -0
- package/lib/gpu/webgpu/staging.js +238 -0
- package/lib/gpu/webgpu/upload-routes.d.ts +55 -0
- package/lib/gpu/webgpu/upload-routes.js +128 -0
- package/lib/index.d.ts +121 -0
- package/lib/index.js +54 -0
- package/lib/math/color.d.ts +18 -0
- package/lib/math/color.js +71 -0
- package/lib/math/create-math.d.ts +101 -0
- package/lib/math/create-math.js +207 -0
- package/lib/math/hex.d.ts +8 -0
- package/lib/math/hex.js +38 -0
- package/lib/math/index.d.ts +2 -0
- package/lib/math/index.js +11 -0
- package/lib/math/mat4.d.ts +22 -0
- package/lib/math/mat4.js +206 -0
- package/lib/math/math.d.ts +16 -0
- package/lib/math/math.js +42 -0
- package/lib/math/namespaces/math.d.ts +7 -0
- package/lib/math/namespaces/math.js +14 -0
- package/lib/math/namespaces/quat.d.ts +20 -0
- package/lib/math/namespaces/quat.js +30 -0
- package/lib/math/namespaces/vec3.d.ts +4 -0
- package/lib/math/namespaces/vec3.js +8 -0
- package/lib/math/quat.d.ts +36 -0
- package/lib/math/quat.js +224 -0
- package/lib/math/random.d.ts +16 -0
- package/lib/math/random.js +57 -0
- package/lib/math/types.d.ts +43 -0
- package/lib/math/types.js +4 -0
- package/lib/math/vec3.d.ts +43 -0
- package/lib/math/vec3.js +187 -0
- package/lib/page/abortable.d.ts +2 -0
- package/lib/page/abortable.js +19 -0
- package/lib/page/browser-check.d.ts +8 -0
- package/lib/page/browser-check.js +23 -0
- package/lib/page/canvas-watch.d.ts +34 -0
- package/lib/page/canvas-watch.js +141 -0
- package/lib/page/capabilities.d.ts +201 -0
- package/lib/page/capabilities.js +409 -0
- package/lib/page/check-store.d.ts +54 -0
- package/lib/page/check-store.js +169 -0
- package/lib/page/display.d.ts +2 -0
- package/lib/page/display.js +25 -0
- package/lib/page/early-core.d.ts +1 -0
- package/lib/page/early-core.js +23 -0
- package/lib/page/engine.d.ts +942 -0
- package/lib/page/engine.js +2459 -0
- package/lib/page/first-frame.d.ts +16 -0
- package/lib/page/first-frame.js +35 -0
- package/lib/page/frame-stats.d.ts +402 -0
- package/lib/page/frame-stats.js +389 -0
- package/lib/page/gamepads.d.ts +37 -0
- package/lib/page/gamepads.js +123 -0
- package/lib/page/held-input.d.ts +19 -0
- package/lib/page/held-input.js +54 -0
- package/lib/page/hold.d.ts +186 -0
- package/lib/page/hold.js +49 -0
- package/lib/page/input-ring.d.ts +13 -0
- package/lib/page/input-ring.js +25 -0
- package/lib/page/input.d.ts +6 -0
- package/lib/page/input.js +159 -0
- package/lib/page/isolation-check.d.ts +14 -0
- package/lib/page/isolation-check.js +21 -0
- package/lib/page/label-loop.d.ts +80 -0
- package/lib/page/label-loop.js +417 -0
- package/lib/page/labels.d.ts +56 -0
- package/lib/page/labels.js +102 -0
- package/lib/page/limits.d.ts +321 -0
- package/lib/page/limits.js +323 -0
- package/lib/page/loader.d.ts +78 -0
- package/lib/page/loader.js +149 -0
- package/lib/page/main-thread.d.ts +10 -0
- package/lib/page/main-thread.js +41 -0
- package/lib/page/memory-pool.d.ts +26 -0
- package/lib/page/memory-pool.js +69 -0
- package/lib/page/ownership.d.ts +65 -0
- package/lib/page/ownership.js +166 -0
- package/lib/page/permutation-recording.d.ts +26 -0
- package/lib/page/permutation-recording.js +32 -0
- package/lib/page/pipeline-store.d.ts +25 -0
- package/lib/page/pipeline-store.js +84 -0
- package/lib/page/pointer-lock.d.ts +14 -0
- package/lib/page/pointer-lock.js +60 -0
- package/lib/page/preferences.d.ts +2 -0
- package/lib/page/preferences.js +11 -0
- package/lib/page/record-button.d.ts +5 -0
- package/lib/page/record-button.js +60 -0
- package/lib/page/start-marker.d.ts +47 -0
- package/lib/page/start-marker.js +119 -0
- package/lib/page/stats-switch.d.ts +16 -0
- package/lib/page/stats-switch.js +38 -0
- package/lib/page/stop-jobs.d.ts +37 -0
- package/lib/page/stop-jobs.js +87 -0
- package/lib/page/switches.d.ts +347 -0
- package/lib/page/switches.js +150 -0
- package/lib/page/videos.d.ts +70 -0
- package/lib/page/videos.js +244 -0
- package/lib/quality/budget.d.ts +14 -0
- package/lib/quality/budget.js +25 -0
- package/lib/quality/check.d.ts +119 -0
- package/lib/quality/check.js +84 -0
- package/lib/quality/chooser.d.ts +98 -0
- package/lib/quality/chooser.js +108 -0
- package/lib/quality/device-hints.d.ts +8 -0
- package/lib/quality/device-hints.js +18 -0
- package/lib/quality/governor.d.ts +571 -0
- package/lib/quality/governor.js +1293 -0
- package/lib/quality/preset-docs.d.ts +402 -0
- package/lib/quality/preset-docs.js +179 -0
- package/lib/quality/presets.d.ts +821 -0
- package/lib/quality/presets.js +678 -0
- package/lib/render/direct-loop.d.ts +4 -0
- package/lib/render/direct-loop.js +52 -0
- package/lib/render/draw.d.ts +66 -0
- package/lib/render/draw.js +111 -0
- package/lib/render/load-draw.d.ts +12 -0
- package/lib/render/load-draw.js +18 -0
- package/lib/render/loop.d.ts +241 -0
- package/lib/render/loop.js +566 -0
- package/lib/render/loss.d.ts +53 -0
- package/lib/render/loss.js +127 -0
- package/lib/render/pacer.d.ts +24 -0
- package/lib/render/pacer.js +51 -0
- package/lib/render/recovery.d.ts +82 -0
- package/lib/render/recovery.js +160 -0
- package/lib/render/refresh.d.ts +38 -0
- package/lib/render/refresh.js +111 -0
- package/lib/render/renderer.d.ts +192 -0
- package/lib/render/renderer.js +295 -0
- package/lib/render/scene-renderer.d.ts +135 -0
- package/lib/render/scene-renderer.js +216 -0
- package/lib/render/shader-salt.d.ts +5 -0
- package/lib/render/shader-salt.js +31 -0
- package/lib/render/webgl2-renderers.d.ts +11 -0
- package/lib/render/webgl2-renderers.js +227 -0
- package/lib/render/webgpu-renderers.d.ts +10 -0
- package/lib/render/webgpu-renderers.js +254 -0
- package/lib/scene/addon-debug-views.d.ts +30 -0
- package/lib/scene/addon-debug-views.js +63 -0
- package/lib/scene/animation.d.ts +547 -0
- package/lib/scene/animation.js +1425 -0
- package/lib/scene/area-light-tables.d.ts +32 -0
- package/lib/scene/area-light-tables.js +89 -0
- package/lib/scene/assets.d.ts +375 -0
- package/lib/scene/assets.js +736 -0
- package/lib/scene/background.d.ts +238 -0
- package/lib/scene/background.js +470 -0
- package/lib/scene/baked-light.d.ts +60 -0
- package/lib/scene/baked-light.js +300 -0
- package/lib/scene/builtin-environments.d.ts +36 -0
- package/lib/scene/builtin-environments.js +43 -0
- package/lib/scene/chunk-rows.d.ts +81 -0
- package/lib/scene/chunk-rows.js +146 -0
- package/lib/scene/color.d.ts +22 -0
- package/lib/scene/color.js +45 -0
- package/lib/scene/derived-cache.d.ts +139 -0
- package/lib/scene/derived-cache.js +547 -0
- package/lib/scene/downloads.d.ts +2 -0
- package/lib/scene/downloads.js +371 -0
- package/lib/scene/effects.d.ts +193 -0
- package/lib/scene/effects.js +476 -0
- package/lib/scene/environment-file.d.ts +22 -0
- package/lib/scene/environment-file.js +81 -0
- package/lib/scene/environment.d.ts +57 -0
- package/lib/scene/environment.js +131 -0
- package/lib/scene/fake-call-values.d.ts +8 -0
- package/lib/scene/fake-call-values.js +51 -0
- package/lib/scene/feature-draws.d.ts +169 -0
- package/lib/scene/feature-draws.js +269 -0
- package/lib/scene/feature-effects.d.ts +42 -0
- package/lib/scene/feature-effects.js +155 -0
- package/lib/scene/feature-host.d.ts +129 -0
- package/lib/scene/feature-host.js +299 -0
- package/lib/scene/feature-instances.d.ts +130 -0
- package/lib/scene/feature-instances.js +326 -0
- package/lib/scene/features.d.ts +412 -0
- package/lib/scene/features.js +550 -0
- package/lib/scene/file-limits.d.ts +70 -0
- package/lib/scene/file-limits.js +224 -0
- package/lib/scene/fog.d.ts +101 -0
- package/lib/scene/fog.js +148 -0
- package/lib/scene/frame-cameras.d.ts +175 -0
- package/lib/scene/frame-cameras.js +492 -0
- package/lib/scene/gltf-animation.d.ts +129 -0
- package/lib/scene/gltf-animation.js +887 -0
- package/lib/scene/gltf-draco.d.ts +9 -0
- package/lib/scene/gltf-draco.js +224 -0
- package/lib/scene/gltf-extensions.d.ts +31 -0
- package/lib/scene/gltf-extensions.js +92 -0
- package/lib/scene/gltf-json.d.ts +49 -0
- package/lib/scene/gltf-json.js +94 -0
- package/lib/scene/gltf-math.d.ts +16 -0
- package/lib/scene/gltf-math.js +129 -0
- package/lib/scene/gltf-meshopt.d.ts +3 -0
- package/lib/scene/gltf-meshopt.js +48 -0
- package/lib/scene/gltf-parse.d.ts +600 -0
- package/lib/scene/gltf-parse.js +1854 -0
- package/lib/scene/gltf.d.ts +189 -0
- package/lib/scene/gltf.js +1589 -0
- package/lib/scene/grade-table.d.ts +9 -0
- package/lib/scene/grade-table.js +23 -0
- package/lib/scene/grade-task.d.ts +12 -0
- package/lib/scene/grade-task.js +11 -0
- package/lib/scene/grading.d.ts +110 -0
- package/lib/scene/grading.js +142 -0
- package/lib/scene/half-float.d.ts +4 -0
- package/lib/scene/half-float.js +42 -0
- package/lib/scene/ktx2-cache.d.ts +32 -0
- package/lib/scene/ktx2-cache.js +62 -0
- package/lib/scene/ktx2-file.d.ts +57 -0
- package/lib/scene/ktx2-file.js +207 -0
- package/lib/scene/ktx2-transcode.d.ts +15 -0
- package/lib/scene/ktx2-transcode.js +94 -0
- package/lib/scene/ktx2.d.ts +42 -0
- package/lib/scene/ktx2.js +179 -0
- package/lib/scene/lens.d.ts +61 -0
- package/lib/scene/lens.js +101 -0
- package/lib/scene/level-meshopt.d.ts +20 -0
- package/lib/scene/level-meshopt.js +122 -0
- package/lib/scene/level-pieces.d.ts +24 -0
- package/lib/scene/level-pieces.js +138 -0
- package/lib/scene/level-rule.d.ts +120 -0
- package/lib/scene/level-rule.js +130 -0
- package/lib/scene/level-words.d.ts +19 -0
- package/lib/scene/level-words.js +34 -0
- package/lib/scene/levels-task.d.ts +51 -0
- package/lib/scene/levels-task.js +132 -0
- package/lib/scene/light-images.d.ts +36 -0
- package/lib/scene/light-images.js +88 -0
- package/lib/scene/light-probes.d.ts +240 -0
- package/lib/scene/light-probes.js +644 -0
- package/lib/scene/lines.d.ts +188 -0
- package/lib/scene/lines.js +257 -0
- package/lib/scene/lut-files.d.ts +41 -0
- package/lib/scene/lut-files.js +399 -0
- package/lib/scene/lut.d.ts +55 -0
- package/lib/scene/lut.js +47 -0
- package/lib/scene/memory.d.ts +72 -0
- package/lib/scene/memory.js +159 -0
- package/lib/scene/mesh-arrays.d.ts +110 -0
- package/lib/scene/mesh-arrays.js +701 -0
- package/lib/scene/mesh-levels.d.ts +10 -0
- package/lib/scene/mesh-levels.js +52 -0
- package/lib/scene/namespaces.d.ts +125 -0
- package/lib/scene/namespaces.js +313 -0
- package/lib/scene/panorama-files.d.ts +71 -0
- package/lib/scene/panorama-files.js +1103 -0
- package/lib/scene/panorama.d.ts +23 -0
- package/lib/scene/panorama.js +108 -0
- package/lib/scene/particles.d.ts +452 -0
- package/lib/scene/particles.js +814 -0
- package/lib/scene/pass-reads.d.ts +70 -0
- package/lib/scene/pass-reads.js +220 -0
- package/lib/scene/picks.d.ts +69 -0
- package/lib/scene/picks.js +208 -0
- package/lib/scene/pointer-events.d.ts +202 -0
- package/lib/scene/pointer-events.js +500 -0
- package/lib/scene/post.d.ts +567 -0
- package/lib/scene/post.js +928 -0
- package/lib/scene/prefab.d.ts +109 -0
- package/lib/scene/prefab.js +166 -0
- package/lib/scene/probes.d.ts +71 -0
- package/lib/scene/probes.js +169 -0
- package/lib/scene/property-animation.d.ts +160 -0
- package/lib/scene/property-animation.js +276 -0
- package/lib/scene/queries.d.ts +176 -0
- package/lib/scene/queries.js +393 -0
- package/lib/scene/render.d.ts +487 -0
- package/lib/scene/render.js +829 -0
- package/lib/scene/resources.d.ts +1598 -0
- package/lib/scene/resources.js +2843 -0
- package/lib/scene/rotation.d.ts +6 -0
- package/lib/scene/rotation.js +12 -0
- package/lib/scene/scene.d.ts +1858 -0
- package/lib/scene/scene.js +4680 -0
- package/lib/scene/serial-loads.d.ts +29 -0
- package/lib/scene/serial-loads.js +68 -0
- package/lib/scene/shader-preloads.d.ts +74 -0
- package/lib/scene/shader-preloads.js +116 -0
- package/lib/scene/shader-templates.d.ts +60 -0
- package/lib/scene/shader-templates.js +156 -0
- package/lib/scene/sprites.d.ts +262 -0
- package/lib/scene/sprites.js +292 -0
- package/lib/scene/stale-calls-scenario.d.ts +20 -0
- package/lib/scene/stale-calls-scenario.js +175 -0
- package/lib/scene/textures.d.ts +323 -0
- package/lib/scene/textures.js +953 -0
- package/lib/scene/time-of-day.d.ts +145 -0
- package/lib/scene/time-of-day.js +644 -0
- package/lib/scene/unmarked-writes.d.ts +118 -0
- package/lib/scene/unmarked-writes.js +283 -0
- package/lib/scene/unread-extensions-scenario.d.ts +6 -0
- package/lib/scene/unread-extensions-scenario.js +26 -0
- package/lib/scene/vertex-draws.d.ts +82 -0
- package/lib/scene/vertex-draws.js +85 -0
- package/lib/scene/wgsl-uniforms.d.ts +167 -0
- package/lib/scene/wgsl-uniforms.js +12 -0
- package/lib/shader-artifact.json +1 -0
- package/lib/shared/await-later.d.ts +5 -0
- package/lib/shared/await-later.js +10 -0
- package/lib/shared/control.d.ts +94 -0
- package/lib/shared/control.js +150 -0
- package/lib/shared/core-sources.d.ts +2 -0
- package/lib/shared/core-sources.js +7 -0
- package/lib/shared/core.d.ts +1254 -0
- package/lib/shared/core.js +381 -0
- package/lib/shared/counter.d.ts +52 -0
- package/lib/shared/counter.js +55 -0
- package/lib/shared/dev.d.ts +8 -0
- package/lib/shared/dev.js +13 -0
- package/lib/shared/feature-stats.d.ts +16 -0
- package/lib/shared/feature-stats.js +27 -0
- package/lib/shared/frame-image.d.ts +13 -0
- package/lib/shared/frame-image.js +32 -0
- package/lib/shared/gpu-clock.d.ts +14 -0
- package/lib/shared/gpu-clock.js +38 -0
- package/lib/shared/gpu-counter.d.ts +12 -0
- package/lib/shared/gpu-counter.js +15 -0
- package/lib/shared/gpu-scope.d.ts +14 -0
- package/lib/shared/gpu-scope.js +104 -0
- package/lib/shared/helper-workers.d.ts +4 -0
- package/lib/shared/helper-workers.js +23 -0
- package/lib/shared/images.d.ts +255 -0
- package/lib/shared/images.js +450 -0
- package/lib/shared/import-once.d.ts +6 -0
- package/lib/shared/import-once.js +19 -0
- package/lib/shared/key-codes.d.ts +2 -0
- package/lib/shared/key-codes.js +69 -0
- package/lib/shared/labels.d.ts +94 -0
- package/lib/shared/labels.js +172 -0
- package/lib/shared/memory-area.d.ts +6 -0
- package/lib/shared/memory-area.js +21 -0
- package/lib/shared/memory-figure.d.ts +14 -0
- package/lib/shared/memory-figure.js +18 -0
- package/lib/shared/memory-views.d.ts +48 -0
- package/lib/shared/memory-views.js +90 -0
- package/lib/shared/metrics.d.ts +353 -0
- package/lib/shared/metrics.js +799 -0
- package/lib/shared/page-measurement.d.ts +9 -0
- package/lib/shared/page-measurement.js +37 -0
- package/lib/shared/phase.d.ts +17 -0
- package/lib/shared/phase.js +20 -0
- package/lib/shared/policy.d.ts +20 -0
- package/lib/shared/policy.js +46 -0
- package/lib/shared/recording.d.ts +100 -0
- package/lib/shared/recording.js +378 -0
- package/lib/shared/role.d.ts +10 -0
- package/lib/shared/role.js +13 -0
- package/lib/shared/run-task.d.ts +39 -0
- package/lib/shared/run-task.js +69 -0
- package/lib/shared/slot.d.ts +218 -0
- package/lib/shared/slot.js +221 -0
- package/lib/shared/software.d.ts +24 -0
- package/lib/shared/software.js +22 -0
- package/lib/shared/stats.d.ts +62 -0
- package/lib/shared/stats.js +86 -0
- package/lib/shared/task-failure.d.ts +24 -0
- package/lib/shared/task-failure.js +36 -0
- package/lib/shared/task-host.d.ts +42 -0
- package/lib/shared/task-host.js +60 -0
- package/lib/shared/task-load-error.d.ts +10 -0
- package/lib/shared/task-load-error.js +13 -0
- package/lib/shared/task-modules.d.ts +2 -0
- package/lib/shared/task-modules.js +8 -0
- package/lib/shared/task-pending.d.ts +24 -0
- package/lib/shared/task-pending.js +101 -0
- package/lib/shared/tasks.d.ts +54 -0
- package/lib/shared/tasks.js +426 -0
- package/lib/shared/tier.d.ts +7 -0
- package/lib/shared/tier.js +3 -0
- package/lib/shared/version.d.ts +72 -0
- package/lib/shared/version.js +103 -0
- package/lib/shared/videos.d.ts +15 -0
- package/lib/shared/videos.js +11 -0
- package/lib/shared/wake.d.ts +38 -0
- package/lib/shared/wake.js +76 -0
- package/lib/shared/wasm-limits.d.ts +13 -0
- package/lib/shared/wasm-limits.js +75 -0
- package/lib/shared/wasm.d.ts +34 -0
- package/lib/shared/wasm.js +151 -0
- package/lib/shared/webkit.d.ts +33 -0
- package/lib/shared/webkit.js +59 -0
- package/lib/shared/wgsl-updates.d.ts +9 -0
- package/lib/shared/wgsl-updates.js +8 -0
- package/lib/shared/worker-start.d.ts +56 -0
- package/lib/shared/worker-start.js +186 -0
- package/lib/sketch/clock.d.ts +61 -0
- package/lib/sketch/clock.js +98 -0
- package/lib/sketch/define-sketch.d.ts +269 -0
- package/lib/sketch/define-sketch.js +103 -0
- package/lib/sketch/input-off-scenario.d.ts +7 -0
- package/lib/sketch/input-off-scenario.js +24 -0
- package/lib/sketch/input-off.d.ts +16 -0
- package/lib/sketch/input-off.js +38 -0
- package/lib/sketch/input.d.ts +243 -0
- package/lib/sketch/input.js +554 -0
- package/lib/sketch/preset-check.d.ts +42 -0
- package/lib/sketch/preset-check.js +120 -0
- package/lib/sketch/quality.d.ts +392 -0
- package/lib/sketch/quality.js +355 -0
- package/lib/sketch/random.d.ts +13 -0
- package/lib/sketch/random.js +25 -0
- package/lib/sketch/runner.d.ts +574 -0
- package/lib/sketch/runner.js +2159 -0
- package/lib/sketch/ui.d.ts +94 -0
- package/lib/sketch/ui.js +391 -0
- package/lib/stats.d.ts +4 -0
- package/lib/stats.js +8 -0
- package/lib/workers/drawing-host.d.ts +24 -0
- package/lib/workers/drawing-host.js +48 -0
- package/lib/workers/gltf-worker.d.ts +35 -0
- package/lib/workers/gltf-worker.js +210 -0
- package/lib/workers/job-worker.d.ts +1 -0
- package/lib/workers/job-worker.js +102 -0
- package/lib/workers/panorama-worker.d.ts +15 -0
- package/lib/workers/panorama-worker.js +21 -0
- package/lib/workers/probe-worker.d.ts +34 -0
- package/lib/workers/probe-worker.js +58 -0
- package/lib/workers/protocol.d.ts +377 -0
- package/lib/workers/protocol.js +57 -0
- package/lib/workers/render-worker.d.ts +1 -0
- package/lib/workers/render-worker.js +103 -0
- package/lib/workers/sketch-worker.d.ts +1 -0
- package/lib/workers/sketch-worker.js +295 -0
- package/lib/workers/task-worker.d.ts +1 -0
- package/lib/workers/task-worker.js +5 -0
- package/lib/workers/tasks.d.ts +65 -0
- package/lib/workers/tasks.js +85 -0
- package/package.json +106 -5
- package/vendor/basis/LICENSE +201 -0
- package/vendor/basis/LICENSE-zstd +30 -0
- package/vendor/basis/NOTICE +15 -0
- package/vendor/basis/basis_transcoder.d.mts +36 -0
- package/vendor/basis/basis_transcoder.mjs +2 -0
- package/vendor/basis/basis_transcoder.wasm +0 -0
- package/vendor/draco/LICENSE +252 -0
- package/vendor/draco/draco_decoder_gltf.wasm +0 -0
- package/vendor/draco/draco_wasm_wrapper_gltf.d.ts +71 -0
- package/vendor/draco/draco_wasm_wrapper_gltf.js +116 -0
- package/vendor/ltc/LICENSE +31 -0
- package/vendor/ltc/area-light-tables.bin +0 -0
- package/vendor/meshopt/LICENSE.md +21 -0
- package/vendor/meshopt/meshopt_clusterizer.wasm +0 -0
- package/vendor/meshopt/meshopt_decoder.wasm +0 -0
- package/vendor/meshopt/meshopt_encoder.wasm +0 -0
- package/vendor/meshopt/meshopt_simplifier.wasm +0 -0
|
@@ -0,0 +1,647 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: api/reference/engine
|
|
3
|
+
title: "Page API: createEngine: API reference"
|
|
4
|
+
status: generated
|
|
5
|
+
since: "0.1"
|
|
6
|
+
summary: "Every export of the Page API: createEngine API, from the engine's doc comments."
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Page API: createEngine: API reference
|
|
10
|
+
|
|
11
|
+
> [Page API: createEngine](../engine.md) explains these exports. The engine's doc comments make this page.
|
|
12
|
+
|
|
13
|
+
## `CapabilityReport`
|
|
14
|
+
|
|
15
|
+
Interface `CapabilityReport`, which extends `DeviceHints`.
|
|
16
|
+
|
|
17
|
+
What the browser and device can do, as plain JSON. The engine picks its build and GPU path from these feature tests, and its quality preset from the device hints. It never decides from browser or GPU names.
|
|
18
|
+
|
|
19
|
+
| Member | Description |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| `crossOriginIsolated: boolean` | True when the page is cross-origin isolated, which shared memory needs. |
|
|
22
|
+
| `sharedArrayBuffer: boolean` | True when the page can make shared memory. |
|
|
23
|
+
| `atomicsWaitAsync: boolean` | True when the browser has `Atomics.waitAsync`. |
|
|
24
|
+
| `hardwareConcurrency: number` | The logical cores that the browser reports. |
|
|
25
|
+
| `devicePixelRatio: number` | Device pixels per CSS pixel when the probe ran. |
|
|
26
|
+
| `offscreenCanvas: boolean` | True when the browser has `OffscreenCanvas`. |
|
|
27
|
+
| `transferControlToOffscreen: boolean` | True when a page canvas can hand its drawing to a worker. |
|
|
28
|
+
| `webgpu: WebGPUReport` | What WebGPU offers. |
|
|
29
|
+
| `webgl2: WebGL2Report` | What WebGL2 offers. |
|
|
30
|
+
| `worker: WorkerProbe \| WorkerProbeFailure` | What a dedicated worker can do, or why the probe worker gave no answer. |
|
|
31
|
+
|
|
32
|
+
## `checkAddonVersion`
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
function checkAddonVersion(name: string, version: string): void
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Checks that an add-on, built for `version` of the engine, runs against this engine's version, and throws E1432 when the two differ. An add-on calls it once, as its module loads, with its own package name and version. An add-on from another developer calls `checkPluginInterface` instead, with the range of plugin interface versions that it works with.
|
|
39
|
+
|
|
40
|
+
## `checkPluginInterface`
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
function checkPluginInterface(name: string, range: PluginInterfaceRange): void
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Checks that an add-on from another developer works with this engine's plugin interface, and throws E1433 when the declared range does not hold `PLUGIN_INTERFACE_VERSION`. The add-on calls it once, as its module loads, with its own package name and the range it was built for.
|
|
47
|
+
|
|
48
|
+
## `createEngine`
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
function createEngine(options: EngineOptions): Promise<Engine>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Starts the engine on the page. It tests the device, picks the build and the GPU path, starts the workers, and runs the sketch module. In hold mode it also steps the sketch to the held time, then draws that frame and reads it back. It publishes the frame, or the error that stopped it, as `window.__null3dHold` for test tools. With the `?bench` switch, it publishes the running engine as `window.__null3dEngine`, where a benchmark tool calls `measure`.
|
|
55
|
+
|
|
56
|
+
## `DepthMode`
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
type DepthMode = 'reversed' | 'reversed-gl' | 'standard';
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
How the GPU path stores depth. In `reversed` depth, the near plane stores 1 and the far plane 0, in a 32-bit float depth buffer. That keeps depth precise far from the camera. WebGPU always draws it. WebGL2 draws it where the browser has the `EXT_clip_control` extension, which gives WebGL2 the depth range from 0 to 1 that WebGPU has. The `reversed-gl` mode keeps the same order, but in WebGL2's own depth range from -1 to 1, which loses most of the precision. In `standard` depth, the near plane stores 0 and the far plane 1.
|
|
63
|
+
|
|
64
|
+
## `DrawPathReason`
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
type DrawPathReason =
|
|
68
|
+
| 'probe-faster'
|
|
69
|
+
| 'probe-not-faster'
|
|
70
|
+
| 'probe-failed'
|
|
71
|
+
| 'not-apple-gpu-in-webkit'
|
|
72
|
+
| 'software-renderer'
|
|
73
|
+
| 'no-probe'
|
|
74
|
+
| 'forced'
|
|
75
|
+
| 'webgl2';
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Why WebGPU draws on the path that the engine takes, in `engine.capabilities.drawPath`: - `probe-faster`: the start-up probe ran on an Apple GPU in WebKit and measured direct draws to be clearly faster, so the engine draws directly. - `probe-not-faster`: the probe ran there, and direct draws were not clearly faster. - `probe-failed`: the probe ran there and could not measure, as when the device was too slow or was lost. - `not-apple-gpu-in-webkit`: the device is not an Apple GPU in Safari or in a browser on iPhone or iPad. The probe did not run, and the engine draws indirectly. - `software-renderer`: the browser draws on the CPU. The probe did not run. - `no-probe`: the worker's WebGPU check gave no answer. - `forced`: `?direct=on` or `?direct=off` chose the path. - `webgl2`: the engine draws with WebGL2, which always draws directly.
|
|
79
|
+
|
|
80
|
+
## `Engine`
|
|
81
|
+
|
|
82
|
+
Interface `Engine`.
|
|
83
|
+
|
|
84
|
+
A running engine, as `createEngine` returns it.
|
|
85
|
+
|
|
86
|
+
| Member | Description |
|
|
87
|
+
| --- | --- |
|
|
88
|
+
| `readonly capabilities: EngineCapabilities` | The GPU path the engine chose, and what it offers. |
|
|
89
|
+
| `readonly report: CapabilityReport` | The full capability report, as plain JSON. |
|
|
90
|
+
| `readonly mode: EngineMode` | How the engine runs on this device. |
|
|
91
|
+
| `readonly firstFrame: Promise<void>` | Resolves once the GPU has finished the first frame after the setup, so it is on screen: the moment to remove a loading screen. It rejects when the engine stops drawing first, with the failure that ended its frames, such as E1404 when the thread that draws fails at its first frame. A destroy before the first frame rejects it with E1420. A page that never waits for it gets no unhandled rejection. |
|
|
92
|
+
| `readonly presetChecked: Promise<void>` | Resolves once the preset check has ended, so `mode.preset` holds the preset that the check chose and `mode.presetCheck` what it measured. It has resolved when `createEngine` resolves where no check runs: for a preset that the page names, a stored result, Low, and hold mode, and with the `presetCheck` option's `before-play`. When the engine stops drawing first, it resolves then, and `mode.presetCheck` stays null. |
|
|
93
|
+
| `readonly labels: EngineLabels` | The HTML elements that follow the labels the sketch tracks with `ui.trackLabel`. |
|
|
94
|
+
| `registerVideo(video: HTMLVideoElement, options: VideoOptions): () => void` | Shows a video element on the page as a texture in the sketch, which makes it with `textures.fromVideo(name)`. The page sends the image of each frame that the video presents, as an `ImageBitmap` of the size that the options allow, and the sketch uploads it in its turn, within the frame's upload budget. The sketch asks for the frames when its texture follows the video, so a video that no texture shows sends none, and a paused video presents no frame, so it costs nothing. Returns a function that stops the frames, which the video's texture then keeps the last frame of. Throws E1213 for a name that another video holds, or an option out of range. |
|
|
95
|
+
| `postToSketch(name: string, data?: unknown, transfer?: Transferable[]): void` | Sends a message to the sketch, which receives it through `ctx.page.onMessage`. |
|
|
96
|
+
| `onSketchMessage(handler: (name: string, data: unknown) => void): () => void` | Receives the messages the sketch sends with `ctx.page.post`. When no handler listened from the start, the first handler also receives the messages sent before it was registered. Returns a function that removes the handler. |
|
|
97
|
+
| `onFailure(handler: (error: EngineError) => void): () => void` | Receives a failure after the engine started: the browser took the GPU away and the engine could not carry on with a new device (E1302), or an engine thread failed (E1404). A custom shader's builds that a pipeline needs and that did not download fail the thread that draws with E1424. After E1404 or E1424 the engine draws no new frames: destroy it and start a new one. On WebGPU, the GPU can also run out of memory (E1304) or reject the engine's work (E1305). On either GPU path, its driver can refuse to build a pipeline that draws objects of the scene twice (E1307). After these three the engine draws on without the objects that failed. The engine reports each failure once. A failure that no handler listened for when the engine reported it reaches the first handler that listens, so a failure that the app could not hear yet still arrives, and the engine also logs it to the console. A failure that ends the frames reaches these handlers before `onStop`'s. Returns a function that removes the handler. |
|
|
98
|
+
| `onStop(handler: () => void): () => void` | Calls `handler` once, when the engine stops drawing for good: as `destroy()` begins, or at a failure after which it draws no new frames (E1302, E1404 or E1424). At such a failure, the `onFailure` handlers hear it first. A handler added after that runs at once. A handler that throws reaches the console, and the other handlers and the stop go on. Use it to end the page's own work for the engine, such as a frame loop that sends the sketch messages. Returns a function that removes the handler. |
|
|
99
|
+
| `onSketchError(handler: (error: Error) => void): () => void` | Receives each distinct error that the sketch's own code, or a core call in a frame, threw while the engine runs. The engine keeps drawing, so this error alone does not stop it: a frame whose update failed is counted in `measure().updateErrors` and left out of `measure().updatedFps`. The handler receives the errors reported after it was added. Returns a function that removes the handler. Without a handler, the error also reaches the console. |
|
|
100
|
+
| `setPaused(paused: boolean): void` | Pauses or resumes the sketch's frames. A pause also stops input: the sketch sees every key and button that was down come up, and input that comes during the pause never reaches it. |
|
|
101
|
+
| `detach(): void` | Takes the canvas off the page and pauses the engine. The engine keeps its threads, its GPU resources and the scene, and stops reading input. Use it when a single-page app leaves the view that shows the canvas, and `attach` when the view comes back. |
|
|
102
|
+
| `attach(container: Element): void` | Puts the canvas at the end of `container` and resumes the engine where it stopped, unless `setPaused(true)` paused it. |
|
|
103
|
+
| `measure(seconds: number, options?: MeasureOptions): Promise<FrameMetrics>` | Measures the running engine for a number of seconds, then returns CPU time per frame by thread and phase, GPU time, frame intervals, uploads, draw calls, memory and load time. The first call downloads the code that turns the frame records into these figures. `slowMs` adds the frames whose interval broke that many milliseconds, each with the frame's own GPU parts. |
|
|
104
|
+
| `inspect(call: string, args?: unknown): Promise<unknown>` | Runs an inspection call against the live scene, for the in-page inspector and the MCP server: `objects`, `object`, `setObject`, `setMaterial`, `stats`, `errors`, `graph`, `setQuality`, `highlight` and `info`, with the arguments that [Debugging](../../guides/debugging.md#the-in-page-inspector) lists. The call runs between frames, in the thread that runs the sketch, and its value is JSON-safe. The page answers `capture` itself, with `{ png, bytes }`: the PNG image of the next frame as base64 text, and its size in bytes. The method exists only in a development build, which is the build that carries the channel; a release build leaves it out, so code that uses it must check for it first. |
|
|
105
|
+
| `stats(show?: boolean \| StatsOverlayOptions): void` | Shows an overlay of figures over the top-right corner of the canvas, or hides it with `false`: the GPU path, the frame rates, CPU time per frame of each thread, GPU time, draw calls, triangles and objects drawn, memory, and the page thread's long tasks and input delay. Its header is a button with the frame rate, which shows and hides the other figures. Options pick whether the overlay starts collapsed to its header; a call on a shown overlay changes the options it names. The page draws the overlay and updates it a few times a second, and its code downloads at the first call. While the other figures show, the engine times one frame in eleven on the GPU and reads back the counts of the objects that the GPU culls, which costs a little GPU time. The sketch's `debug.stats` shows and hides the same overlay, and the last call wins. |
|
|
106
|
+
| `capture(): Promise<Blob>` | Resolves with an image of the next frame that the engine draws, as a PNG file. The thread that draws reads the frame back and encodes it, so the page's thread does no work for it when a worker draws. In hold mode it is an image of the held frame, whose pixels the page keeps, so the GPU draws nothing for it. While the engine is paused, the image shows the frame on the canvas. A hidden page draws no frames, so its image comes once the page shows again. When no new frame comes within a second or two, as after a sketch error, the image shows the frame drawn last. Fails with E1414 once the engine has stopped, when the thread that draws gives no answer within the engine's wait, or when that thread could not read the frame back, with the cause that the GPU gave, such as a lost device or too little memory. |
|
|
107
|
+
| `captureFrame(): Promise<{ width: number; height: number; pixels: Uint8Array; frame: number; }>` | Resolves with the pixels of the next frame that the engine draws, as RGBA8 rows, top row first, for tests. The thread that draws waits until its frame loop has taken a new frame, then draws that frame again offscreen and reads it back, so captures back to back give newer frames even where each readback holds that thread up. `frame` is the sketch frame that the capture drew: a capture that follows a scene change can hold the frame recorded before it, and a test that measures frames aligns them by this number. In hold mode, and while the engine is paused, it returns the frame on the canvas. A hidden page draws no frames, so its pixels come once the page shows again. When no new frame comes within a second or two, as after a sketch error, it returns the frame drawn last. It fails when the thread that draws gives no answer within the engine's wait, rather than waiting with no end. |
|
|
108
|
+
| `saveRecording(): Promise<Uint8Array \| undefined>` | Resolves with the recording of the session so far, or undefined when the page does not record one. A page records with the `?record` switch, which also puts a save button on the page. The file holds each frame's step and the input that the sketch read in it, from the session's first frame, so a `?replay` of it draws the same frames. Its format is the engine's own; save it to a file and open `?replay=<file>` to run it. Recording seeds the sketch thread's random numbers, so a recorded session draws the same frames when it replays. |
|
|
109
|
+
| `simulateGpuLoss(): void` | Acts out a loss of the GPU, as a driver reset causes. The engine starts a new GPU device and draws the whole scene again, as it does after a real loss. Use it to test how your page handles one. |
|
|
110
|
+
| `requestPointerLock(options?: PointerLockOptions): Promise<void>` | Locks the pointer to the canvas, for first-person controls and games that turn with the mouse. The browser hides the pointer, and the sketch's `input.pointer.dx` and `dy` give the mouse's movement, with no edge to stop it. Call it in a click or key handler: browsers lock the pointer only right after the user acts. Resolves once the lock begins. Fails with E1425 when the browser refuses it, and with E1426 on an engine started with `input: false`, which reads no movement. The user ends the lock with Esc, and the page with `document.exitPointerLock()`. Stopping the engine ends a lock that it took or that its input read. |
|
|
111
|
+
| `destroy(options?: { release?: boolean; }): Promise<void>` | Stops the engine and its workers. The engine cannot start again. The sketch's `onDestroy` runs first, and later calls from the sketch's code fail with E1420. The thread that draws destroys the engine's GPU textures and buffers and its GPU device, so the GPU's memory comes back at once. It also leaves the canvas blank, at its size, because Safari keeps the GPU memory of a canvas's last frame until the canvas shows another. The promise resolves once every worker has stopped. Wait for it before you start another engine on the same page: an iPad has room for only a few engines' memory. A new engine can start on the same canvas, with the same thread options; `createEngine` waits for this stop. The page keeps the memory that the engine's threads shared for about 30 seconds, and the next engine with the same memory maximum takes it. A page that destroys and creates the engine again, as React's strict mode, a route change or a hot reload does, then asks the browser for no new memory. Safari can refuse new memory for some seconds after a page drops some. The page keeps at most 2 memories, and the RAM that they hold stays taken until a new engine takes one or their time ends. `{ release: true }` lets the browser free them at once: use it when the page will not start the engine again soon. |
|
|
112
|
+
|
|
113
|
+
## `EngineCapabilities`
|
|
114
|
+
|
|
115
|
+
Interface `EngineCapabilities`.
|
|
116
|
+
|
|
117
|
+
The GPU path the engine chose, and what it offers.
|
|
118
|
+
|
|
119
|
+
| Member | Description |
|
|
120
|
+
| --- | --- |
|
|
121
|
+
| `tier: Tier` | The GPU path the engine draws with. |
|
|
122
|
+
| `threaded: boolean` | True when the engine runs the threaded build. |
|
|
123
|
+
| `features: string[]` | The optional features of the GPU path: WebGPU features, or the WebGL2 extensions present. |
|
|
124
|
+
| `limits: Record<string, number \| null>` | The WebGPU limits, or an empty object on WebGL2. |
|
|
125
|
+
| `hdr: boolean` | True when the scene draws high dynamic range color, which the final pass tone maps into the canvas. False on the 8-bit path, where each shader tone maps its own output: in WebGPU's compatibility mode with MSAA, and on WebGL2 devices whose float targets fail the engine's test. Both paths show the same colors. Edges differ a little with MSAA, because the 8-bit path averages the samples after the tone mapping. It reports the path that the engine started on: in compatibility mode, bloom moves the engine to HDR color with FXAA when a sketch turns it on, and so does a `subsurfaceSamples` setting above 0 that the page or the sketch gives. |
|
|
126
|
+
| `halfPrecision: boolean` | True when the scene shaders do their color math at half precision: lighting, tone mapping and sRGB encoding. On WebGPU it needs the device feature `shader-f16`, and WebGL2 runs that math at `mediump`. Positions, depth and shadow lookups keep full precision either way. |
|
|
127
|
+
| `maxInstances: number` | The most objects and instance rows, counted together, that a scene can draw on this device. On WebGPU every device draws at least 2,097,152, and a device with larger GPU buffers draws more, up to 8,388,480. On WebGL2 the number follows the largest texture the device allows: 2,097,152 at 4,096 pixels, and 1,048,576 at the 2,048 that every WebGL2 device allows. Engine memory can run out first: see E1109. |
|
|
128
|
+
| `maxCanvasSize: number` | The widest and tallest drawing buffer, in device pixels, that the GPU path draws into: 8,192 on WebGPU, 4,096 in its compatibility mode, and on WebGL2 the smallest of the device's texture, renderbuffer and viewport limits. A canvas larger than that at the screen's pixel ratio draws at a lower ratio, which `engine.viewport.pixelRatio` in the sketch reports. |
|
|
129
|
+
| `depth: DepthMode` | How the GPU path stores depth. WebGPU, and WebGL2 in browsers with `EXT_clip_control`, draw `reversed` depth, which stays precise far from the camera. |
|
|
130
|
+
| `directDraws: boolean` | True when the engine culls buckets on the CPU and draws each one directly. The start-up probe picks this path only on an Apple GPU in Safari, or in any browser on iPhone and iPad, and only when it measures direct draws to be clearly faster there. Every other device draws indirectly. False on WebGL2, which always draws directly. |
|
|
131
|
+
| `drawPath: DrawPathReason` | Why the engine takes its draw path, such as `not-apple-gpu-in-webkit` where the probe did not run. A benchmark records it beside its figures. |
|
|
132
|
+
|
|
133
|
+
## `EngineError`
|
|
134
|
+
|
|
135
|
+
Class `EngineError`, which extends `Error`.
|
|
136
|
+
|
|
137
|
+
An error the engine throws. Its message says what failed and how to fix it, and links to the code's docs page. A thread's first error loads the text of the fixes; until it arrives the message holds the code and the detail alone, and the fix then replaces it.
|
|
138
|
+
|
|
139
|
+
| Member | Description |
|
|
140
|
+
| --- | --- |
|
|
141
|
+
| `readonly code: ErrorCode` | The error's code, such as `E1108`. |
|
|
142
|
+
| `readonly docs: string` | The docs page for this code. |
|
|
143
|
+
|
|
144
|
+
## `EngineMode`
|
|
145
|
+
|
|
146
|
+
Interface `EngineMode`.
|
|
147
|
+
|
|
148
|
+
How the engine runs on this device: its build, its latency mode and its threads.
|
|
149
|
+
|
|
150
|
+
| Member | Description |
|
|
151
|
+
| --- | --- |
|
|
152
|
+
| `build: 'threaded' \| 'single'` | With `threaded`, the sketch and the render step run in workers, helped by job workers. With `single`, everything runs on the page's thread, for pages without shared memory. |
|
|
153
|
+
| `latency: LatencyMode \| 'single'` | The latency mode in use, or `single` for the single-thread build. A page that runs the sketch and draws steps the sketch right before each draw, which is `low`. |
|
|
154
|
+
| `sketchThread: SketchThread` | The thread that runs the sketch and the engine core. |
|
|
155
|
+
| `renderThread: 'render-worker' \| 'sketch-worker' \| 'main'` | The thread that owns the canvas and draws. |
|
|
156
|
+
| `jobWorkers: number` | The most job workers that share the engine's parallel work. The engine starts none at first, and starts them as the work grows. |
|
|
157
|
+
| `hold: number \| null` | The sketch time in seconds that hold mode holds the sketch at, or null for a live engine. |
|
|
158
|
+
| `preset: QualityPreset` | The quality preset that the engine runs now. The preset check can lower it while it runs: during the first frames of play, or before `createEngine` resolves with the `presetCheck` option's `before-play`. `ctx.quality.setPreset` in the sketch changes it later. Once `engine.presetChecked` has resolved, it holds the preset that the check chose. |
|
|
159
|
+
| `presetCheck: PresetCheck \| null` | What the preset check measured, or null while the check runs, and when no check ran or the sketch chose its own preset first. The engine checks the preset when it chose it from the device: after the first frame, it measures the frame rate of the scene, and lowers the preset until one holds the target. A later start of the sketch in the same browser on the same device takes the stored result instead, and starts at its preset. `reused` is then true. A start after a check that never ended starts at the preset that the check had lowered to, and its own check goes on from there, with the earlier rounds first. |
|
|
160
|
+
| `crashedStarts: number` | The starts of this sketch before this one that crashed the tab, one after another, as the engine's note in `localStorage` records them. After one, the engine starts a preset lower, and after two at `low`. |
|
|
161
|
+
| `memoryMaximumMiB: number \| null` | The shared memory's maximum in MiB, or null for the single-threaded build, whose memory is not shared. |
|
|
162
|
+
| `renderFallback: RenderFallback \| null` | Why the page draws when a worker was meant to, or null when the thread that draws is the one that the options asked for. `report.worker` holds the probe's answer. |
|
|
163
|
+
| `keepTextureCopies: boolean` | True when the engine keeps its copy of each texture's texels after their upload, so a map comes back after the GPU is lost. It is on for a phone and a tablet, and the page's `keepTextureCopies` option can name either value. |
|
|
164
|
+
|
|
165
|
+
## `EngineOptions`
|
|
166
|
+
|
|
167
|
+
Interface `EngineOptions`.
|
|
168
|
+
|
|
169
|
+
Options for `createEngine`.
|
|
170
|
+
|
|
171
|
+
| Member | Description |
|
|
172
|
+
| --- | --- |
|
|
173
|
+
| `canvas: HTMLCanvasElement` | The canvas to draw into, sized by CSS. On a canvas that no CSS sizes, the engine sets the CSS width and height that it shows when the engine starts. One engine draws on a canvas at a time: a start on the canvas of an engine that is stopping, or still starting and then destroyed, waits for that engine to stop. A canvas whose engine runs on fails with E1419. |
|
|
174
|
+
| `sketch: URL \| string` | The sketch module, which runs in the sketch worker; `new URL('./sketch.ts', import.meta.url)`. |
|
|
175
|
+
| `preset?: 'auto' \| QualityPreset` | The quality preset: `auto`, the default, lets the engine choose one for the device, and `low`, `medium`, `high` or `ultra` names one. The GPU path caps it: WebGL2 and WebGPU's compatibility mode run at most `medium`. After a start that crashed the tab, the engine starts a preset lower. Another value fails with E1213. The `?preset=` switch wins over it. |
|
|
176
|
+
| `targetFps?: TargetFps` | The frame rate that the engine defends: the preset check and the quality governor lower the quality when frames fall below it. Without it, the target is the display's refresh rate, at most 60. `display` targets the display's full rate, such as 120 or 144 for a game on a fast display. A whole number from 1 up caps the target at that rate. The engine draws at the display's rate in every case. The `?target-fps=` switch wins over it. Another value fails with E1213. |
|
|
177
|
+
| `presetCheck?: PresetCheckTiming` | When the preset check measures, on a start where the engine checks the preset that it chose. With `during-play`, the default, the scene shows at its first frame: `createEngine` resolves once the setup has run, and `engine.firstFrame` once the GPU has finished the first frame. The check then measures the first frames of play, a lighter preset applies in front of the viewer, and `engine.presetChecked` resolves once the check has ended. With `before-play`, the check measures the scene that the setup built before the sketch's update runs, and `createEngine` resolves after it, so a loading screen hides the check and any change of preset. A start that takes the stored result of an earlier check, or that runs no check, plays at once either way. Another value fails with E1213. The `?preset-check=` switch wins over it. |
|
|
178
|
+
| `maxPixelRatio?: number` | Cap for the device pixel ratio, a number from 0.5 up. Without it, the quality preset sets the cap. `ctx.quality.set` changes it during play. |
|
|
179
|
+
| `gpu?: 'auto' \| 'webgpu' \| 'webgl2'` | Forces a GPU tier, for testing only. |
|
|
180
|
+
| `powerPreference?: 'high-performance' \| 'low-power'` | Which GPU to draw with on a device that has two, such as a laptop with a separate graphics chip: `high-performance`, the default, for the faster one, or `low-power` to save battery. The browser treats it as a request. A device with one GPU ignores it. |
|
|
181
|
+
| `latency?: LatencyMode` | The latency mode. The default is `pipelined`. Low latency needs a worker that draws: where no worker can draw, the engine runs in pipelined mode, and `engine.mode` says so. |
|
|
182
|
+
| `antialias?: 'msaa' \| 'fxaa' \| 'none'` | How the engine smooths the edges of what it draws: `msaa` draws 4 samples per pixel, `fxaa` smooths edges in the final pass, and `none` leaves them sharp. Without it, the quality preset sets the mode: FXAA on Low, MSAA from Medium up. Each mode works on every GPU path, and the mode stays fixed while the engine runs. Another value fails with E1213. |
|
|
183
|
+
| `shadowCascades?: number` | The cascades of a directional light's shadows, a whole number from 1 to 4, for each light whose `shadow` options name none. Without it, the quality preset sets it. Another value fails with E1213. |
|
|
184
|
+
| `shadowMapSize?: number` | Texels on each side of each cascade's shadow map, for each directional light whose `shadow` options name no `mapSize`: 512, 1,024, 2,048 or 4,096. Without it, the quality preset sets it. Another value fails with E1213. |
|
|
185
|
+
| `shadowTiles?: number` | The most tiles of the shadow atlas that spot and point lights cast their shadows into, a whole number from 0 to 24. Without it, the quality preset sets it. 0 turns the shadows of spot and point lights off. Another value fails with E1213. |
|
|
186
|
+
| `shadowTileSize?: number` | Texels on each side of each tile of the shadow atlas: 256, 512, 1,024 or 2,048. Without it, the quality preset sets it. Another value fails with E1213. |
|
|
187
|
+
| `heroTileSize?: number` | Texels on each side of the tile that holds a directional light's hero shadow, for each light whose `shadow` options name no `heroTileSize`: 1,024, 2,048 or 4,096. Without it, the quality preset sets it. Another value fails with E1213. |
|
|
188
|
+
| `pointLightShadows?: boolean` | True makes point lights cast shadows, false keeps them from it. Without it, the quality preset decides: High and Ultra turn them on. Another value fails with E1213. |
|
|
189
|
+
| `depthPrepass?: boolean` | True to draw the depth of the opaque objects before the engine shades them, so each pixel is shaded once, for its nearest surface. It saves GPU time in scenes where objects hide many others and shading costs much, and costs a second pass over the objects' vertices. Without it, the quality preset decides: every preset draws the prepass on WebGL2, and none on WebGPU. A sketch can change it during play with `quality.set`, and the `?prepass=on` or `?prepass=off` switch wins over this option. Another value fails with E1213. |
|
|
190
|
+
| `momentTransparency?: boolean` | True to blend the camera's blended surfaces in the moment transparency layer. It needs no sort and is nearer an exact back-to-front blend than `blending: 'weighted'` is, and it draws those surfaces twice. Every preset leaves it off, and the `?moments=on` or `?moments=off` switch wins over this option. It stays fixed while the engine runs. Another value fails with E1213. |
|
|
191
|
+
| `gpuOcclusion?: boolean` | True to run GPU occlusion culling on WebGPU: large opaque objects hide the objects that lie wholly behind them, so the GPU skips those. Each camera view draws the depth of the opaque objects that it showed in the last frame and that look large on the screen, and tests every object against it. `setOccluder(false)` keeps an object out of them. A check during play turns the extra passes off while they hide too little or make the GPU's frame longer, and on again when they pay. Without the option, the High and Ultra presets turn it on for desktops, and phones and tablets leave it off. It stays fixed while the engine runs, and the `?occlusion=on` or `?occlusion=off` switch wins over this option. WebGL2 and the depth prepass draw without it. Another value fails with E1213. |
|
|
192
|
+
| `morphTargets?: number` | The most morph target weights of each object that a WebGL2 device draws, a whole number from 1 to 256. Each object keeps the weights farthest from 0. Without it, the quality preset sets it. WebGPU draws every weight. Another value fails with E1213. |
|
|
193
|
+
| `cloudSteps?: number` | The steps of each ray of the sky's volumetric cloud tier when the engine starts, a whole number from 0 to 64. Above 0 the sky draws volumetric clouds in place of the flat layer, from the same cloud settings; 0 draws the flat layer. Without it, the quality preset sets it: 0 on Low and Medium, 32 on High and 48 on Ultra. It lets a page on WebGL2 or in compatibility mode, whose presets stop at Medium, draw the tier. The sky's environment map marches at most 16 steps, and draws them only when this option is above 0, because the map picks its tier's shaders at the page's start. A sketch can change the sky's count during play with `quality.set`. Another value fails with E1213. |
|
|
194
|
+
| `softwareOcclusion?: boolean` | True to run software occlusion culling on WebGL2: objects that `setOccluder(true)` marks hide the objects that lie wholly behind them, so the GPU skips those. False turns it off. Without it, the quality preset decides, and a sketch can change it during play with `quality.set`. The `?occlusion=on` or `?occlusion=off` switch wins over this option. WebGPU ignores it. Another value fails with E1213. |
|
|
195
|
+
| `textureMemoryMiB?: number` | The GPU memory in MiB that textures may take, a whole number from 64 to 16,384. Past it, the engine drops the largest mip levels of textures from files, and loads them again once room returns. Without it, the quality preset sets it: 256, 512, 1,024 or 2,048 from Low to Ultra, and at most 1,008 on phones and tablets. A sketch can change it during play with `quality.set`. Another value fails with E1213. |
|
|
196
|
+
| `keepTextureCopies?: boolean` | True keeps the engine's copy of each texture's texels after their upload, so a texture that maps an image draws with its map again after the browser takes the GPU away. It costs about one more copy of each image in memory. False frees each copy once no frame reads it, and such a texture draws with its color alone until the sketch gives it texels again. Without this option, a phone and a tablet keep copies and a desktop does not, because a phone or a tablet is likeliest to lose its GPU. With copies, the engine also gives its GPU back while the browser keeps the page in its back/forward cache, and starts a new device when the page shows again. |
|
|
197
|
+
| `transparent?: boolean` | True for a see-through canvas: the page shows through wherever no object draws, until the sketch sets a background color. The canvas holds premultiplied alpha, as a browser composites it. The default is false, an opaque canvas. |
|
|
198
|
+
| `hdr?: boolean` | False draws the scene into 8-bit color, where each material's shader applies the output transform, instead of HDR color, which the final pass tone maps. Both paths honour a material's `toneMapped: false`, and the 8-bit path also honours it on a blended surface. The default lets the engine pick the path from the device, which draws HDR color wherever it can. The `?hdr=off` switch takes the 8-bit path too. |
|
|
199
|
+
| `largeWorld?: boolean` | True for scenes that reach far beyond a city, such as a planet. Object positions then keep the precision of JavaScript's numbers at any distance from the origin: 0.03 mm or better. Without it, positions are 32-bit floats, which move in steps of 6 cm at 1,000 km from the origin and 0.5 m at the Earth's radius. It costs 12 bytes of memory per object and a little work in each position setter. The default is false. Instance batches need no mode: give each one an `origin` near its rows. |
|
|
200
|
+
| `sketchThread?: SketchThread` | The thread that runs the sketch's code and the engine core: `worker`, the default, or `main` for the page's main thread, where the sketch can reach the DOM. Use `main` for apps that work mostly with the DOM, and for debugging. The render worker still draws in pipelined mode, and the page draws in low-latency mode. The sketch's frames then share the page's thread with the page's own work, so each can slow the other. The single-threaded build always runs the sketch on the page's thread. The `?sketch-thread=` switch wins over this option. |
|
|
201
|
+
| `memory?: { maximumMiB: number; }` | The engine's memory. `maximumMiB` sets the most memory that the engine's threads share, in MiB: a whole number from 256 to 4096, 1024 by default. Another value fails with E1409. The browser reserves address space for the whole maximum when the engine starts. So a larger maximum leaves less room for other engines and WebAssembly modules on the page. Ask for more only when a scene needs it. The single-threaded build's memory is not shared, so this option does not change it. The `?memory=<MiB>` switch wins over it. |
|
|
202
|
+
| `maxLabels?: number` | The most HTML labels that the sketch can track at once with `ui.trackLabel`: a whole number from 1 to 65,536, 4,096 by default. Another value fails with E1213. The engine keeps three tables of 16 bytes per label in memory that its threads share, so 4,096 labels take 192 KB. |
|
|
203
|
+
| `maxLabels3d?: number` | The most labels that the sketch can track at once with `ui.trackLabel` whose `transform` is `'world'` or `'billboard'`: a whole number from 0 to 65,536, 256 by default. Another value fails with E1213. Each of them is a plane of the scene, which takes three tables of 52 bytes per label, so 256 of them take 40 KB. A sketch that tracks one more fails with E1219. |
|
|
204
|
+
| `expectedObjects?: number` | The number of objects that the scene will hold at most, when the sketch knows it: a whole number from 1 to 1,048,575. Another value fails with E1213. The scene then starts with room for that many, so it never grows during play. Without it, the scene starts with room for 1,023 objects. A scene grows on its own when it needs more: it doubles its room at the start of a frame once it is three quarters full. A create call that finds it full doubles it at once. Each growth copies the scene's tables, about 267 bytes per object, in one short pause. Set this option for a scene that creates many objects during play, so they never wait for one. |
|
|
205
|
+
| `onProgress?: (stage: StartupStage, progress?: StartupProgress) => void` | Called as the start reaches each stage, in this order: `core-download` as the engine core's file downloads, with the bytes that have arrived; `core` once the engine core is compiled and the GPU paths are tested; `sketch` once the sketch's setup has run; and `first-frame` once the GPU has finished the first frame after the setup. The preset check does not hold up either stage, unless the `presetCheck` option is `before-play`: `sketch` then comes after the check too. Before `core`, `core-download` reports the core file's bytes, and `memory-wait` comes when the browser has refused the engine's memory for 10 seconds. The engine then tries for about 35 seconds more before it fails with E1109. `progress` gives a stage's figures while it has some: the bytes of a download, measured against the length that the server announced. |
|
|
206
|
+
| `onSketchMessage?: (name: string, data: unknown) => void` | Receives the messages the sketch sends with `ctx.page.post`, from the start of the sketch's setup. Use it for progress that the sketch reports while it loads. `engine.onSketchMessage` adds more handlers once the engine has started. |
|
|
207
|
+
| `onSketchError?: (error: Error) => void` | Receives each distinct error that the sketch's own code, or a core call in a frame, threw while the engine runs. The error's message holds the failure, such as `E1102: ...`. The engine keeps drawing and presenting frames, so the error alone does not stop it: a frame whose update failed is counted in `measure().updateErrors` and left out of `measure().updatedFps`. `engine.onSketchError` adds more handlers once the engine has started. Without a handler, the error also reaches the console. |
|
|
208
|
+
| `onWorkerRetry?: (worker: string, script: string) => void` | Called when a worker's script did not load before the worker's first message, and the engine started a second copy of it. The fault comes and goes, so the engine recovers on its own: the call names the worker, such as `render` or `job 2`, and the address of its script. The engine also warns in the console. Without a second copy that loads, the start fails with E1405, which names the worker and its script. |
|
|
209
|
+
| `signal?: AbortSignal` | Cancels a start in progress, for example when the user leaves the page. `createEngine` then stops the engine's threads and rejects with the signal's reason. |
|
|
210
|
+
| `hold?: number` | Starts the engine in hold mode for image tests, held at this many seconds of sketch time. The engine steps the sketch from 0 to the time in fixed steps of 1/60 second, with no frame loop. `math.random` and `Math.random` in the sketch's thread give the same numbers on every run, and the sketch gets no input: every key and button stays up. The engine then draws that one frame and reads it back, and `createEngine` resolves. The `?hold=<seconds>` switch overrides this time, and a bare `?hold` holds at it, or at 0 without it. |
|
|
211
|
+
| `input?: boolean` | False keeps the engine from listening for input, for a page whose input another library records, such as a game whose simulation replays a log of it. The engine's input then adds no listener: none for pointers, keys, the wheel, focus, page visibility, the pointer lock or gamepads. It captures no pointer on the canvas, and leaves the canvas's context menu to the browser. The engine keeps its listeners that take no input, such as the canvas watch's `visibilitychange`, after which the sketch's next step counts no hidden time. The sketch's `ctx.input` stays at rest: every key, button and action is up, `value` gives 0, `input.touches` is empty, and the pointer stays at the canvas's top-left corner with no movement, wheel or buttons. Objects get no pointer events, and `requestPointerLock` fails with E1426. A development build warns in the console, once for each kind, when the sketch reads `ctx.input`, gives an object a pointer event handler or imports `@null3d/controls`. The warning about the controls comes as they load in the sketch's thread, so it misses controls that another sketch in that thread loaded first. Two engines on the page's thread both hear a load by either one's sketch. The default is true. |
|
|
212
|
+
| `preload?: readonly ShaderFeature[]` | Features whose shaders load before the first frame, for a game that must fetch nothing while it plays. Each feature's shaders otherwise download the first time the sketch uses it: `'skinning'` with the first skinned mesh, `'morph'` with the first morphed mesh, `'bloom'` and `'ao'` when `post.set` turns them on, `'sprites'` and `'lines'` with the first batch, `'background'` with a texture, environment or cube map background, `'sky'` with the sky, `'coverage'` with the first masked material that MSAA smooths, `'hash'` with the first hashed material, `'cutout'` with the first masked object that casts shadows, which casts none until its shaders are built, `'transmission'` with the first material that lets light through, `'color_copy'` with the first step that reads the color of the frame before, which the preset's bounce light draws at its start, `'translucency'` with the first material that lets light through to its other side, `'subsurface'` with the first material with a `subsurfaceRadius` while the subsurface blur has taps, `'coat_sheen'` with the first material with a clear coat or a sheen, `'weighted'` with the first material of the `weighted` blending, and `'occlusion'` with the first opaque material while GPU occlusion culling runs on WebGPU. WebGPU morphs in the skinning pass, so there `'morph'` loads the skinning shaders, and WebGL2 has no `'occlusion'` shaders to load. Listed features download beside the engine's own shaders, so the start waits only for the largest. The shaders that two or more listed features need together, such as a skinned mesh's with the alpha hash, download with them. Loading a glTF file with skins or morph targets, or making a batch, also starts its feature's download at once, before the objects draw. Throws E1421 for a name it does not know. |
|
|
213
|
+
| `stats?: boolean \| StatsOverlayOptions` | True or options show the stats overlay over the canvas from the first frame, as `engine.stats` does with the same value. The default is false. The `?stats` or `?stats=on` switch shows it too, with these options when they are given, and `?stats=off` hides it, whatever this option says. A held engine for image tests shows no overlay. |
|
|
214
|
+
| `still?: boolean` | False draws every frame of a view that holds still. By default such a view blends its frames into a sharper picture and then stops drawing until something changes. The `?still-camera=off` switch turns it off too, and hold mode draws without it. |
|
|
215
|
+
|
|
216
|
+
## `ErrorCode`
|
|
217
|
+
|
|
218
|
+
```ts
|
|
219
|
+
type ErrorCode =
|
|
220
|
+
| 'E1101'
|
|
221
|
+
| 'E1102'
|
|
222
|
+
| 'E1103'
|
|
223
|
+
| 'E1104'
|
|
224
|
+
| 'E1105'
|
|
225
|
+
| 'E1106'
|
|
226
|
+
| 'E1107'
|
|
227
|
+
| 'E1108'
|
|
228
|
+
| 'E1109'
|
|
229
|
+
| 'E1110'
|
|
230
|
+
| 'E1111'
|
|
231
|
+
| 'E1112'
|
|
232
|
+
| 'E1203'
|
|
233
|
+
| 'E1204'
|
|
234
|
+
| 'E1205'
|
|
235
|
+
| 'E1206'
|
|
236
|
+
| 'E1207'
|
|
237
|
+
| 'E1208'
|
|
238
|
+
| 'E1209'
|
|
239
|
+
| 'E1213'
|
|
240
|
+
| 'E1214'
|
|
241
|
+
| 'E1215'
|
|
242
|
+
| 'E1216'
|
|
243
|
+
| 'E1217'
|
|
244
|
+
| 'E1218'
|
|
245
|
+
| 'E1219'
|
|
246
|
+
| 'E1220'
|
|
247
|
+
| 'E1221'
|
|
248
|
+
| 'E1222'
|
|
249
|
+
| 'E1223'
|
|
250
|
+
| 'E1224'
|
|
251
|
+
| 'E1225'
|
|
252
|
+
| 'E1301'
|
|
253
|
+
| 'E1302'
|
|
254
|
+
| 'E1303'
|
|
255
|
+
| 'E1304'
|
|
256
|
+
| 'E1305'
|
|
257
|
+
| 'E1306'
|
|
258
|
+
| 'E1307'
|
|
259
|
+
| 'E1401'
|
|
260
|
+
| 'E1402'
|
|
261
|
+
| 'E1403'
|
|
262
|
+
| 'E1404'
|
|
263
|
+
| 'E1405'
|
|
264
|
+
| 'E1406'
|
|
265
|
+
| 'E1407'
|
|
266
|
+
| 'E1408'
|
|
267
|
+
| 'E1409'
|
|
268
|
+
| 'E1410'
|
|
269
|
+
| 'E1411'
|
|
270
|
+
| 'E1412'
|
|
271
|
+
| 'E1413'
|
|
272
|
+
| 'E1414'
|
|
273
|
+
| 'E1415'
|
|
274
|
+
| 'E1416'
|
|
275
|
+
| 'E1417'
|
|
276
|
+
| 'E1418'
|
|
277
|
+
| 'E1419'
|
|
278
|
+
| 'E1420'
|
|
279
|
+
| 'E1421'
|
|
280
|
+
| 'E1422'
|
|
281
|
+
| 'E1423'
|
|
282
|
+
| 'E1424'
|
|
283
|
+
| 'E1425'
|
|
284
|
+
| 'E1426'
|
|
285
|
+
| 'E1430'
|
|
286
|
+
| 'E1431'
|
|
287
|
+
| 'E1432'
|
|
288
|
+
| 'E1433'
|
|
289
|
+
| 'E1434'
|
|
290
|
+
| 'E1435'
|
|
291
|
+
| 'E1436'
|
|
292
|
+
| 'E1437'
|
|
293
|
+
| 'E1501'
|
|
294
|
+
| 'E1502'
|
|
295
|
+
| 'E1503'
|
|
296
|
+
| 'E1504'
|
|
297
|
+
| 'E1505'
|
|
298
|
+
| 'E1506';
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
The code of an engine error. Each code has a docs page that gives its cause and its fix.
|
|
302
|
+
|
|
303
|
+
## `HeldFrame`
|
|
304
|
+
|
|
305
|
+
Interface `HeldFrame`.
|
|
306
|
+
|
|
307
|
+
The frame that hold mode drew and read back, as `window.__null3dHold` holds it.
|
|
308
|
+
|
|
309
|
+
| Member | Description |
|
|
310
|
+
| --- | --- |
|
|
311
|
+
| `ok: true` | True: the engine drew the held frame and read it back. |
|
|
312
|
+
| `time: number` | The sketch time of the frame, in seconds. |
|
|
313
|
+
| `frame: number` | The frame's number, counting from 1: the steps to the held time, plus one. |
|
|
314
|
+
| `tier: Tier` | The GPU path that drew the frame. |
|
|
315
|
+
| `directDraws: boolean` | True when the engine drew the frame with the direct-draw path, which culls buckets on the CPU and draws each one directly. False otherwise, as on WebGL2, which always draws directly. |
|
|
316
|
+
| `clusterPatches: boolean \| null` | True when the frame drew a cluster tree's patches as ranges on the job workers, and false when it drew the tree's whole levels. Null where the GPU path picks the patches itself, as WebGPU does, or where the count belongs to another frame. The engine reads it from the frame builder's culling, not from the switches. |
|
|
317
|
+
| `width: number` | The frame's width in pixels. |
|
|
318
|
+
| `height: number` | The frame's height in pixels. |
|
|
319
|
+
| `pixels: Uint8Array` | The frame's pixels as RGBA8 rows, top row first. |
|
|
320
|
+
| `stats: FrameSummary` | The held frame's figures, in the form that `engine.measure` returns: CPU time by thread and phase, draw calls, uploads and pipelines, for the held frame alone. The engine draws no frame before the held one, so the held frame creates every GPU object and uploads the whole scene. `rebuilds` and `visibleEntries` cover every step of the hold. GPU time is null, because the engine times the GPU only while `engine.measure` runs. |
|
|
321
|
+
| `script?: HoldScriptResult` | What a timed script's dump steps read, and the steps that failed, when the page gave a script. A step that failed stops no hold: the tool that gave the script decides what a failure means. |
|
|
322
|
+
| `replay?: ReplayResult` | What a replay gave, when the held frame is the last frame of a recording. |
|
|
323
|
+
|
|
324
|
+
## `HoldDump`
|
|
325
|
+
|
|
326
|
+
Interface `HoldDump`.
|
|
327
|
+
|
|
328
|
+
What a dump step read from its target.
|
|
329
|
+
|
|
330
|
+
| Member | Description |
|
|
331
|
+
| --- | --- |
|
|
332
|
+
| `at: number` | The sketch time of the step, in seconds. |
|
|
333
|
+
| `target: string` | The target as the step named it. |
|
|
334
|
+
| `path?: string` | The property path, when the step named one. |
|
|
335
|
+
| `value: readonly number[] \| Readonly<Record<string, unknown>>` | The property's numbers, or the object's properties by name. |
|
|
336
|
+
|
|
337
|
+
## `HoldFailure`
|
|
338
|
+
|
|
339
|
+
Interface `HoldFailure`.
|
|
340
|
+
|
|
341
|
+
The error that stopped hold mode, as `window.__null3dHold` holds it.
|
|
342
|
+
|
|
343
|
+
| Member | Description |
|
|
344
|
+
| --- | --- |
|
|
345
|
+
| `ok: false` | False: the engine stopped before it read the held frame back. |
|
|
346
|
+
| `code: ErrorCode \| null` | The error's code, or null for an error that has none, such as one the sketch threw. |
|
|
347
|
+
| `error: string` | The error's message. |
|
|
348
|
+
|
|
349
|
+
## `HoldResult`
|
|
350
|
+
|
|
351
|
+
```ts
|
|
352
|
+
type HoldResult = HeldFrame | HoldFailure;
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
What hold mode publishes on the page as `window.__null3dHold`: the held frame, or the error that stopped the hold. The engine publishes it the moment it knows either, so a test tool never waits out a timeout on a page that failed.
|
|
356
|
+
|
|
357
|
+
## `HoldScript`
|
|
358
|
+
|
|
359
|
+
Interface `HoldScript`.
|
|
360
|
+
|
|
361
|
+
A timed script that hold mode performs: its steps, in time order.
|
|
362
|
+
|
|
363
|
+
| Member | Description |
|
|
364
|
+
| --- | --- |
|
|
365
|
+
| `steps: readonly HoldScriptStep[]` | The steps of the script, in time order, with the sketch time at which each one happens. |
|
|
366
|
+
|
|
367
|
+
## `HoldScriptProblem`
|
|
368
|
+
|
|
369
|
+
Interface `HoldScriptProblem`.
|
|
370
|
+
|
|
371
|
+
A script step that failed, with the reason in plain words.
|
|
372
|
+
|
|
373
|
+
| Member | Description |
|
|
374
|
+
| --- | --- |
|
|
375
|
+
| `at: number` | The sketch time of the step, in seconds. |
|
|
376
|
+
| `step: string` | The step as it was written, such as `set "cr".position`. |
|
|
377
|
+
| `error: string` | Why the step failed, such as why a target is not in the scene. |
|
|
378
|
+
|
|
379
|
+
## `HoldScriptResult`
|
|
380
|
+
|
|
381
|
+
Interface `HoldScriptResult`.
|
|
382
|
+
|
|
383
|
+
What the steps of a timed script gave while hold mode performed it.
|
|
384
|
+
|
|
385
|
+
| Member | Description |
|
|
386
|
+
| --- | --- |
|
|
387
|
+
| `dumps: HoldDump[]` | What each dump step read. |
|
|
388
|
+
| `problems: HoldScriptProblem[]` | The steps that failed, in time order. |
|
|
389
|
+
|
|
390
|
+
## `HoldScriptStep`
|
|
391
|
+
|
|
392
|
+
```ts
|
|
393
|
+
type HoldScriptStep =
|
|
394
|
+
| { at: number; verb: 'key'; code: string; down: boolean; }
|
|
395
|
+
| { at: number; verb: 'pointer'; action: 'move' | 'down' | 'up' | 'wheel'; x?: number; y?: number; }
|
|
396
|
+
| { at: number; verb: 'set'; target: string; path: string; value: readonly number[]; }
|
|
397
|
+
| { at: number; verb: 'dump'; target: string; path?: string; };
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
One step of a timed script that hold mode performs while it steps the sketch. A tool gives each step the sketch time, in seconds, at which the hold performs it, and the steps come in time order.
|
|
401
|
+
|
|
402
|
+
## `LatencyMode`
|
|
403
|
+
|
|
404
|
+
```ts
|
|
405
|
+
type LatencyMode = 'pipelined' | 'low';
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
How the engine trades latency for speed. In `pipelined` mode, the render worker draws each frame while the sketch computes the next one. In `low` mode, the sketch worker draws each frame right after its update.
|
|
409
|
+
|
|
410
|
+
## `PLUGIN_INTERFACE_VERSION`
|
|
411
|
+
|
|
412
|
+
```ts
|
|
413
|
+
const PLUGIN_INTERFACE_VERSION: 1
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
The version of the plugin interface that an add-on from another developer builds against. It is a whole number, and it changes only when a stable add-on hook changes, never with every engine release. The engine's own add-ons pin the engine version instead.
|
|
417
|
+
|
|
418
|
+
## `PluginInterfaceRange`
|
|
419
|
+
|
|
420
|
+
Interface `PluginInterfaceRange`.
|
|
421
|
+
|
|
422
|
+
The plugin interface versions that an add-on from another developer works with: the lowest and the highest, both included.
|
|
423
|
+
|
|
424
|
+
| Member | Description |
|
|
425
|
+
| --- | --- |
|
|
426
|
+
| `readonly min: number` | The lowest plugin interface version that the add-on works with. |
|
|
427
|
+
| `readonly max: number` | The highest plugin interface version that the add-on works with. |
|
|
428
|
+
|
|
429
|
+
## `PointerLockOptions`
|
|
430
|
+
|
|
431
|
+
Interface `PointerLockOptions`.
|
|
432
|
+
|
|
433
|
+
Options for `engine.requestPointerLock`.
|
|
434
|
+
|
|
435
|
+
| Member | Description |
|
|
436
|
+
| --- | --- |
|
|
437
|
+
| `unadjustedMovement?: boolean` | True asks for the mouse's raw movement, without the speed-up that the system applies. Browsers that cannot give it refuse the lock with E1425. The default is false. |
|
|
438
|
+
|
|
439
|
+
## `PresetCheckTiming`
|
|
440
|
+
|
|
441
|
+
```ts
|
|
442
|
+
type PresetCheckTiming = 'during-play' | 'before-play';
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
When the preset check measures, as `createEngine`'s `presetCheck` option and the `?preset-check=` switch name it. With `during-play`, the default, the scene plays from its first frame, and the check measures the first frames of play. With `before-play`, the check measures before the sketch's update runs, and the start waits for it.
|
|
446
|
+
|
|
447
|
+
## `readDeviceHints`
|
|
448
|
+
|
|
449
|
+
```ts
|
|
450
|
+
function readDeviceHints(): DeviceHints
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
Reads the device hints on the page's main thread, which workers cannot: they have no media queries and no screen.
|
|
454
|
+
|
|
455
|
+
## `RenderFallback`
|
|
456
|
+
|
|
457
|
+
```ts
|
|
458
|
+
type RenderFallback = WorkerProbeFailure['failure'] | 'no-surface';
|
|
459
|
+
```
|
|
460
|
+
|
|
461
|
+
Why the engine draws on the page's thread when its options asked a worker to draw: - `no-answer`: the probe worker, and a second one after it, gave no answer within their time limits. A stalled GPU call or a very busy machine causes this. - `failed-to-start`: the probe worker's script failed to load or run. - `no-surface`: a worker cannot draw with the GPU path here, as the browser offers no context of it for an `OffscreenCanvas` in a worker.
|
|
462
|
+
|
|
463
|
+
## `ReplayResult`
|
|
464
|
+
|
|
465
|
+
Interface `ReplayResult`.
|
|
466
|
+
|
|
467
|
+
What a replay gave, once its frames ran.
|
|
468
|
+
|
|
469
|
+
| Member | Description |
|
|
470
|
+
| --- | --- |
|
|
471
|
+
| `frames: number` | The frames that ran, which is the recording's frame count. |
|
|
472
|
+
| `seconds: number` | The sketch time at the end, in seconds. |
|
|
473
|
+
| `sketch: string` | The sketch that the recording was made with. |
|
|
474
|
+
| `stopped: boolean` | True when the recording stopped at its limit before the recorded session ended. |
|
|
475
|
+
|
|
476
|
+
## `ShaderFeature`
|
|
477
|
+
|
|
478
|
+
```ts
|
|
479
|
+
type ShaderFeature =
|
|
480
|
+
| 'motion'
|
|
481
|
+
| 'ao'
|
|
482
|
+
| 'area_lights'
|
|
483
|
+
| 'background'
|
|
484
|
+
| 'bloom'
|
|
485
|
+
| 'bump'
|
|
486
|
+
| 'clouds'
|
|
487
|
+
| 'cluster_levels'
|
|
488
|
+
| 'coat_sheen'
|
|
489
|
+
| 'color_copy'
|
|
490
|
+
| 'coverage'
|
|
491
|
+
| 'cutout'
|
|
492
|
+
| 'decals'
|
|
493
|
+
| 'displacement'
|
|
494
|
+
| 'dof'
|
|
495
|
+
| 'effect_groups'
|
|
496
|
+
| 'exposure'
|
|
497
|
+
| 'fog_volume'
|
|
498
|
+
| 'hash'
|
|
499
|
+
| 'instance_index'
|
|
500
|
+
| 'lines'
|
|
501
|
+
| 'lod_fade'
|
|
502
|
+
| 'moment'
|
|
503
|
+
| 'morph'
|
|
504
|
+
| 'occlusion'
|
|
505
|
+
| 'particles'
|
|
506
|
+
| 'physical_sky'
|
|
507
|
+
| 'picking'
|
|
508
|
+
| 'probe_grid'
|
|
509
|
+
| 'row_values'
|
|
510
|
+
| 'single_layer'
|
|
511
|
+
| 'skinning'
|
|
512
|
+
| 'sky'
|
|
513
|
+
| 'sprites'
|
|
514
|
+
| 'subsurface'
|
|
515
|
+
| 'taa'
|
|
516
|
+
| 'texcoords'
|
|
517
|
+
| 'translucency'
|
|
518
|
+
| 'transmission'
|
|
519
|
+
| 'views'
|
|
520
|
+
| 'weighted';
|
|
521
|
+
```
|
|
522
|
+
|
|
523
|
+
A feature whose shader builds load on first use, which `createEngine`'s `preload` lists.
|
|
524
|
+
|
|
525
|
+
## `SketchThread`
|
|
526
|
+
|
|
527
|
+
```ts
|
|
528
|
+
type SketchThread = 'worker' | 'main';
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
The thread that runs the sketch's code and the engine core. With `worker`, the default, the sketch runs in a worker of its own. With `main`, it runs on the page's main thread, where it can reach the DOM, while the render worker draws. The single-threaded build always runs it on the page's thread.
|
|
532
|
+
|
|
533
|
+
## `StartupProgress`
|
|
534
|
+
|
|
535
|
+
Interface `StartupProgress`.
|
|
536
|
+
|
|
537
|
+
What a start stage has done, as `onProgress` reports it.
|
|
538
|
+
|
|
539
|
+
| Member | Description |
|
|
540
|
+
| --- | --- |
|
|
541
|
+
| `done: number` | How much of the stage's work is done, in `unit`s. |
|
|
542
|
+
| `total: number` | How much the stage expects, in `unit`s, or 0 when it knows no total: a response that announced no length, or a stage whose work is not counted. A page shows no fraction for it. |
|
|
543
|
+
| `unit: 'bytes'` | What `done` and `total` count. |
|
|
544
|
+
|
|
545
|
+
## `StartupStage`
|
|
546
|
+
|
|
547
|
+
```ts
|
|
548
|
+
type StartupStage = 'core-download' | 'memory-wait' | 'core' | 'sketch' | 'first-frame';
|
|
549
|
+
```
|
|
550
|
+
|
|
551
|
+
A stage of the engine's start, as `onProgress` reports it.
|
|
552
|
+
|
|
553
|
+
## `Tier`
|
|
554
|
+
|
|
555
|
+
```ts
|
|
556
|
+
type Tier = 'webgpu' | 'webgpu-compat' | 'webgl2';
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
The GPU path the engine draws with: core WebGPU, WebGPU in compatibility mode on devices that cannot run core WebGPU, or WebGL2.
|
|
560
|
+
|
|
561
|
+
## `VERSION`
|
|
562
|
+
|
|
563
|
+
```ts
|
|
564
|
+
const VERSION: '0.1.0'
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
The engine version, which the WebAssembly core and this package always share.
|
|
568
|
+
|
|
569
|
+
## `VideoOptions`
|
|
570
|
+
|
|
571
|
+
Interface `VideoOptions`.
|
|
572
|
+
|
|
573
|
+
What `engine.registerVideo` takes: the name that the sketch follows the video by, the most texels a frame may hold, and how often the page sends frames.
|
|
574
|
+
|
|
575
|
+
| Member | Description |
|
|
576
|
+
| --- | --- |
|
|
577
|
+
| `name: string` | The video's name, which the sketch's `textures.fromVideo` takes. |
|
|
578
|
+
| `maxSize?: number` | The most texels of the frame's widest or tallest side. The page scales each frame down to it, with the video's shape, and leaves a frame that is smaller as it is. The default is 512: a 16:9 frame of that width is 512 x 288 texels, which is 576 KiB, so one frame fits the Low preset's 2 MiB upload budget whole. A frame of 1,024 texels a side is 4 MiB, which a phone's Low preset uploads over two frames. Keep it within the sketch's `textures.maxSize`, the largest texture that the device takes. |
|
|
579
|
+
| `frameRate?: number` | The most frames a second that the page sends, as an upper limit: a call that comes sooner sends nothing. The default is 0, which sends each frame that the video presents. |
|
|
580
|
+
|
|
581
|
+
## `WebGL2Report`
|
|
582
|
+
|
|
583
|
+
Interface `WebGL2Report`.
|
|
584
|
+
|
|
585
|
+
What the browser's WebGL2 offers, in `CapabilityReport.webgl2`.
|
|
586
|
+
|
|
587
|
+
| Member | Description |
|
|
588
|
+
| --- | --- |
|
|
589
|
+
| `available: boolean` | True when the browser can make a WebGL2 context. |
|
|
590
|
+
| `extensions: Record<string, boolean>` | Each extension the engine uses or tests for, and whether the browser has it. |
|
|
591
|
+
| `supportedExtensions: string[]` | The list as the browser reports it, in its order; some browsers shuffle it, so it is only recorded. |
|
|
592
|
+
| `maxSamples: number \| null` | The most samples per pixel for antialiasing, or null without WebGL2. |
|
|
593
|
+
| `maxTextureSize: number \| null` | The largest texture width and height in pixels, or null without WebGL2. |
|
|
594
|
+
| `maxRenderbufferSize: number \| null` | The largest renderbuffer width and height in pixels, or null without WebGL2. |
|
|
595
|
+
| `maxViewportDims: [width: number, height: number] \| null` | The largest viewport width and height in pixels, or null without WebGL2. |
|
|
596
|
+
| `maxUniformBlockSize: number \| null` | The largest uniform block in bytes, or null without WebGL2. |
|
|
597
|
+
| `sharedMemoryUploads: { bufferSubData: boolean; texSubImage2D: boolean; } \| null` | Whether WebGL accepts views on shared memory for buffer and texture uploads. Null without shared memory. |
|
|
598
|
+
| `floatRenderTargets: { rgba16f: { complete: boolean; readsBack: boolean; samples: number; }; rgba32f: { complete: boolean; readsBack: boolean; samples: number; }; r11fG11fB10f: { complete: boolean; readsBack: boolean; samples: number; }; rg16f?: { complete: boolean; readsBack: boolean; samples: number; }; } \| null` | Whether the device renders into float textures, which high dynamic range color needs. The engine tests a 16-bit and a 32-bit float RGBA texture, and the 32-bit packed format `R11F_G11F_B10F`, which holds three channels in half the bytes of the 16-bit one. `complete` says whether a framebuffer with the texture is complete. `readsBack` says whether a clear to a known color, with a value above 1, reads back as floats. `samples` is the most samples per pixel for antialiasing that the format takes, or 0 where the device does not render into it. WebGL2 renders into the three formats with `EXT_color_buffer_float`, and into the 16-bit one with `EXT_color_buffer_half_float`. The engine draws high dynamic range color where the 16-bit format passes both tests, and with MSAA takes 4 samples. It also tests the two-channel 16-bit format `RG16F`, the motion target's, for a complete framebuffer and its samples alone, as a readback waits for the GPU at every start. Null without WebGL2. |
|
|
599
|
+
| `renderer: string \| null` | Reported for the record. The engine reads no meaning from it, and only compares it with an earlier start's, to tell whether a stored preset check came from the same GPU. |
|
|
600
|
+
| `error?: string` | Why the probe failed, when it did. |
|
|
601
|
+
|
|
602
|
+
## `WebGPUReport`
|
|
603
|
+
|
|
604
|
+
Interface `WebGPUReport`.
|
|
605
|
+
|
|
606
|
+
What the browser's WebGPU offers, in `CapabilityReport.webgpu`.
|
|
607
|
+
|
|
608
|
+
| Member | Description |
|
|
609
|
+
| --- | --- |
|
|
610
|
+
| `available: boolean` | True when the browser has WebGPU. |
|
|
611
|
+
| `compatibilityAdapter: boolean` | An adapter from a compatibility-mode request (the engine's normal request). |
|
|
612
|
+
| `coreFeaturesAndLimits: boolean` | The adapter offers `core-features-and-limits`, so the device can run as core WebGPU. |
|
|
613
|
+
| `features: string[]` | The adapter's optional features, sorted. |
|
|
614
|
+
| `limits: Record<string, number \| null>` | Each limit, or null when the adapter does not report it (absent, never zero). |
|
|
615
|
+
| `wgslLanguageFeatures: string[]` | The WGSL language features the browser supports, sorted. |
|
|
616
|
+
| `preferredCanvasFormat: string \| null` | The canvas texture format the browser prefers, or null without WebGPU. |
|
|
617
|
+
| `transientAttachments: boolean` | True when the browser's WebGPU has the transient attachment texture usage (Chrome 146 and later). A render target with it can stay in a tile-based GPU's own memory. The engine gives it to the targets that live within one render pass, such as the multisampled color and depth. |
|
|
618
|
+
| `directDraws: boolean` | True when the start-up probe measured the device drawing a bucket faster with direct draws than with the engine's indirect draws, so the engine draws directly. The probe runs on a worker's device, and only on an Apple GPU in WebKit, whose validation of each indirect draw the direct path removes (D-174). False on WebGL2. |
|
|
619
|
+
| `drawPath: DrawPathReason` | Why the probe chose that draw path, or why it did not measure. |
|
|
620
|
+
| `adapterInfo: { vendor: string; architecture: string; device: string; description: string; } \| null` | Reported for the record. The engine reads no meaning from it, and only compares it with an earlier start's, to tell whether a stored preset check came from the same GPU. |
|
|
621
|
+
| `error?: string` | Why the probe failed, when it did. |
|
|
622
|
+
|
|
623
|
+
## `WorkerProbe`
|
|
624
|
+
|
|
625
|
+
Interface `WorkerProbe`.
|
|
626
|
+
|
|
627
|
+
What a dedicated worker can do, in `CapabilityReport.worker`. A render worker needs the frame timer and an offscreen canvas for its GPU path.
|
|
628
|
+
|
|
629
|
+
| Member | Description |
|
|
630
|
+
| --- | --- |
|
|
631
|
+
| `requestAnimationFrame: boolean` | True when workers have `requestAnimationFrame`. |
|
|
632
|
+
| `offscreenWebGL2: boolean` | True when a worker can draw with WebGL2 into an `OffscreenCanvas`. |
|
|
633
|
+
| `offscreenWebGPU: boolean` | True when a worker can draw with WebGPU into an `OffscreenCanvas`. |
|
|
634
|
+
| `directDraws: boolean` | True when the device is an Apple GPU in WebKit and draws a bucket faster with direct draws than with the engine's indirect draws, measured on the worker's own device at start. |
|
|
635
|
+
| `drawPath: DrawPathReason` | Why the worker chose that draw path, or why it did not measure. |
|
|
636
|
+
| `webgpuError?: string` | Why the WebGPU check failed, when it threw. The WebGL2 check's answer still holds. |
|
|
637
|
+
|
|
638
|
+
## `WorkerProbeFailure`
|
|
639
|
+
|
|
640
|
+
Interface `WorkerProbeFailure`.
|
|
641
|
+
|
|
642
|
+
Why the probe worker gave no answer, in `CapabilityReport.worker`. The engine then draws on the page's thread, and `engine.mode.renderFallback` names the reason.
|
|
643
|
+
|
|
644
|
+
| Member | Description |
|
|
645
|
+
| --- | --- |
|
|
646
|
+
| `failure: 'no-answer' \| 'failed-to-start'` | `no-answer` when neither probe worker answered within its time limit, which a stalled GPU call or a very busy machine causes. `failed-to-start` when the worker's script failed to load or run. |
|
|
647
|
+
| `error: string` | The failure in words. |
|