@null3d/engine 0.0.0-stage → 0.0.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/THIRD-PARTY-NOTICES.txt +638 -0
- package/dist/wasm/single/null3d.js +3959 -0
- package/dist/wasm/single/null3d_bg.wasm +0 -0
- package/dist/wasm/threaded/null3d.js +3975 -0
- package/dist/wasm/threaded/null3d_bg.wasm +0 -0
- package/docs/api/animation.md +536 -0
- package/docs/api/assets.md +384 -0
- package/docs/api/cameras.md +159 -0
- package/docs/api/controls.md +317 -0
- package/docs/api/debug.md +445 -0
- package/docs/api/engine.md +248 -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 +324 -0
- package/docs/api/geometry.md +326 -0
- package/docs/api/grass.md +114 -0
- package/docs/api/impostors.md +163 -0
- package/docs/api/input.md +245 -0
- package/docs/api/lights.md +290 -0
- package/docs/api/lines.md +180 -0
- package/docs/api/materials.md +876 -0
- package/docs/api/math.md +130 -0
- package/docs/api/objects.md +155 -0
- package/docs/api/page.md +97 -0
- package/docs/api/particles.md +217 -0
- package/docs/api/points.md +152 -0
- package/docs/api/post.md +495 -0
- package/docs/api/quality.md +195 -0
- package/docs/api/raycast.md +288 -0
- package/docs/api/reference/animation.md +158 -0
- package/docs/api/reference/assets.md +335 -0
- package/docs/api/reference/cameras.md +135 -0
- package/docs/api/reference/controls.md +411 -0
- package/docs/api/reference/debug.md +571 -0
- package/docs/api/reference/engine.md +635 -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 +777 -0
- package/docs/api/reference/grass.md +131 -0
- package/docs/api/reference/impostors.md +277 -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 +209 -0
- package/docs/api/reference/raycast.md +94 -0
- package/docs/api/reference/render.md +238 -0
- package/docs/api/reference/scene.md +540 -0
- package/docs/api/reference/sketch.md +121 -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 +160 -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 +359 -0
- package/docs/api/reference/wind.md +106 -0
- package/docs/api/render.md +497 -0
- package/docs/api/scene.md +595 -0
- package/docs/api/sketch.md +170 -0
- package/docs/api/splats.md +257 -0
- package/docs/api/sprites.md +185 -0
- package/docs/api/tasks.md +106 -0
- package/docs/api/terrain.md +130 -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 +146 -0
- package/docs/api/vertex-draws.md +171 -0
- package/docs/api/water.md +303 -0
- package/docs/api/wind.md +375 -0
- package/docs/cli/null3d.md +528 -0
- package/docs/concepts/architecture.md +174 -0
- package/docs/concepts/assets.md +145 -0
- package/docs/concepts/backends.md +195 -0
- package/docs/concepts/color-management.md +145 -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 +592 -0
- package/docs/concepts/lod.md +254 -0
- package/docs/concepts/materials.md +128 -0
- package/docs/concepts/particle-buffer.md +201 -0
- package/docs/concepts/post-processing.md +442 -0
- package/docs/concepts/quality-preset-tables.md +91 -0
- package/docs/concepts/quality-presets.md +312 -0
- package/docs/concepts/render-graph.md +217 -0
- package/docs/concepts/render-layers.md +125 -0
- package/docs/concepts/shadows.md +466 -0
- package/docs/concepts/static-dynamic.md +113 -0
- package/docs/cookbook/index.md +664 -0
- package/docs/data/threejs-mapping.json +2118 -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/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 +92 -0
- package/docs/getting-started/cdn.md +219 -0
- package/docs/getting-started/first-scene.md +129 -0
- package/docs/getting-started/hosting.md +359 -0
- package/docs/getting-started/install.md +111 -0
- package/docs/getting-started/network-use.md +88 -0
- package/docs/getting-started/project-structure.md +69 -0
- package/docs/getting-started/third-party-notices.md +92 -0
- package/docs/guides/accessibility.md +96 -0
- package/docs/guides/add-ons.md +159 -0
- package/docs/guides/agents.md +66 -0
- package/docs/guides/assets-pipeline.md +504 -0
- package/docs/guides/audio.md +163 -0
- package/docs/guides/baked-light-data.md +176 -0
- package/docs/guides/car-paint.md +121 -0
- package/docs/guides/content-pages.md +234 -0
- package/docs/guides/custom-passes.md +585 -0
- package/docs/guides/custom-shaders.md +290 -0
- package/docs/guides/debugging.md +162 -0
- package/docs/guides/deploying.md +15 -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 +218 -0
- package/docs/guides/multiple-views.md +83 -0
- package/docs/guides/performance.md +402 -0
- package/docs/guides/phones.md +127 -0
- package/docs/guides/physics.md +202 -0
- package/docs/guides/screens.md +123 -0
- package/docs/guides/testing.md +227 -0
- package/docs/guides/ui-overlays.md +182 -0
- package/docs/guides/video-textures.md +110 -0
- package/docs/index.md +45 -0
- package/docs/pages.md +239 -0
- package/docs/porting/react-three-fiber.md +15 -0
- package/docs/porting/threejs-loop-and-threads.md +15 -0
- package/docs/porting/threejs-mapping.md +295 -0
- package/docs/porting/threejs-materials.md +15 -0
- package/docs/porting/threejs-overview.md +15 -0
- package/docs/porting/threejs-postprocessing.md +256 -0
- package/docs/porting/threejs-shaders.md +15 -0
- package/docs/porting/threejs-unsupported.md +15 -0
- package/docs/porting/verification.md +15 -0
- package/docs/shaders/builtins.md +129 -0
- package/docs/shaders/library.md +1350 -0
- package/docs/shaders/surface-functions.md +625 -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/debug.d.ts +178 -0
- package/lib/debug/debug.js +4 -0
- package/lib/debug/draw.d.ts +137 -0
- package/lib/debug/draw.js +672 -0
- package/lib/debug/frame-target.d.ts +11 -0
- package/lib/debug/frame-target.js +31 -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 +196 -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 +483 -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 +117 -0
- package/lib/errors/fixes.d.ts +88 -0
- package/lib/errors/fixes.js +85 -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/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/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 +653 -0
- package/lib/gpu/webgl2/backend.js +2746 -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 +220 -0
- package/lib/gpu/webgl2/programs.js +484 -0
- package/lib/gpu/webgpu/backend.d.ts +373 -0
- package/lib/gpu/webgpu/backend.js +1565 -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 +251 -0
- package/lib/gpu/webgpu/pipelines.js +1999 -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 +119 -0
- package/lib/index.js +53 -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 +28 -0
- package/lib/math/mat4.js +212 -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 +40 -0
- package/lib/math/quat.js +228 -0
- package/lib/math/random.d.ts +17 -0
- package/lib/math/random.js +58 -0
- package/lib/math/types.d.ts +43 -0
- package/lib/math/types.js +4 -0
- package/lib/math/vec3.d.ts +46 -0
- package/lib/math/vec3.js +190 -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 +395 -0
- package/lib/page/check-store.d.ts +42 -0
- package/lib/page/check-store.js +146 -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 +865 -0
- package/lib/page/engine.js +2136 -0
- package/lib/page/frame-stats.d.ts +369 -0
- package/lib/page/frame-stats.js +374 -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 +76 -0
- package/lib/page/label-loop.js +410 -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/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 +44 -0
- package/lib/page/start-marker.js +116 -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 +317 -0
- package/lib/page/switches.js +142 -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 +98 -0
- package/lib/quality/check.js +70 -0
- package/lib/quality/chooser.d.ts +92 -0
- package/lib/quality/chooser.js +100 -0
- package/lib/quality/device-hints.d.ts +8 -0
- package/lib/quality/device-hints.js +18 -0
- package/lib/quality/governor.d.ts +479 -0
- package/lib/quality/governor.js +1063 -0
- package/lib/quality/preset-docs.d.ts +387 -0
- package/lib/quality/preset-docs.js +176 -0
- package/lib/quality/presets.d.ts +744 -0
- package/lib/quality/presets.js +586 -0
- package/lib/render/direct-loop.d.ts +4 -0
- package/lib/render/direct-loop.js +52 -0
- package/lib/render/draw.d.ts +65 -0
- package/lib/render/draw.js +101 -0
- package/lib/render/load-draw.d.ts +10 -0
- package/lib/render/load-draw.js +16 -0
- package/lib/render/loop.d.ts +241 -0
- package/lib/render/loop.js +566 -0
- package/lib/render/loss.d.ts +35 -0
- package/lib/render/loss.js +99 -0
- package/lib/render/pacer.d.ts +24 -0
- package/lib/render/pacer.js +51 -0
- package/lib/render/recovery.d.ts +62 -0
- package/lib/render/recovery.js +120 -0
- package/lib/render/refresh.d.ts +38 -0
- package/lib/render/refresh.js +111 -0
- package/lib/render/renderer.d.ts +116 -0
- package/lib/render/renderer.js +156 -0
- package/lib/render/scene-renderer.d.ts +117 -0
- package/lib/render/scene-renderer.js +192 -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 +224 -0
- package/lib/render/webgpu-renderers.d.ts +10 -0
- package/lib/render/webgpu-renderers.js +253 -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 +551 -0
- package/lib/scene/animation.js +1428 -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 +400 -0
- package/lib/scene/assets.js +869 -0
- package/lib/scene/background.d.ts +242 -0
- package/lib/scene/background.js +467 -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/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 +94 -0
- package/lib/scene/fog.js +142 -0
- package/lib/scene/frame-cameras.d.ts +156 -0
- package/lib/scene/frame-cameras.js +434 -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 +159 -0
- package/lib/scene/gltf.js +1560 -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 +34 -0
- package/lib/scene/ktx2.js +178 -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-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 +192 -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 +56 -0
- package/lib/scene/lut.js +48 -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 +205 -0
- package/lib/scene/pointer-events.js +500 -0
- package/lib/scene/post.d.ts +572 -0
- package/lib/scene/post.js +925 -0
- package/lib/scene/prefab.d.ts +110 -0
- package/lib/scene/prefab.js +167 -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 +182 -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 +1627 -0
- package/lib/scene/resources.js +2745 -0
- package/lib/scene/rotation.d.ts +6 -0
- package/lib/scene/rotation.js +12 -0
- package/lib/scene/scene.d.ts +1827 -0
- package/lib/scene/scene.js +4582 -0
- package/lib/scene/shader-preloads.d.ts +40 -0
- package/lib/scene/shader-preloads.js +78 -0
- package/lib/scene/shader-templates.d.ts +60 -0
- package/lib/scene/shader-templates.js +156 -0
- package/lib/scene/sprites.d.ts +265 -0
- package/lib/scene/sprites.js +293 -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 +324 -0
- package/lib/scene/textures.js +954 -0
- package/lib/scene/time-of-day.d.ts +146 -0
- package/lib/scene/time-of-day.js +645 -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 +81 -0
- package/lib/scene/vertex-draws.js +83 -0
- package/lib/scene/wgsl-uniforms.d.ts +167 -0
- package/lib/scene/wgsl-uniforms.js +12 -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 +1249 -0
- package/lib/shared/core.js +380 -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/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 +315 -0
- package/lib/shared/metrics.js +738 -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 +63 -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 +12 -0
- package/lib/shared/task-pending.js +41 -0
- package/lib/shared/tasks.d.ts +54 -0
- package/lib/shared/tasks.js +379 -0
- package/lib/shared/tier.d.ts +7 -0
- package/lib/shared/tier.js +3 -0
- package/lib/shared/version.d.ts +56 -0
- package/lib/shared/version.js +85 -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 +26 -0
- package/lib/shared/wasm.js +128 -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 +49 -0
- package/lib/shared/worker-start.js +159 -0
- package/lib/sketch/clock.d.ts +61 -0
- package/lib/sketch/clock.js +98 -0
- package/lib/sketch/define-sketch.d.ts +234 -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 +28 -0
- package/lib/sketch/preset-check.js +95 -0
- package/lib/sketch/quality.d.ts +334 -0
- package/lib/sketch/quality.js +314 -0
- package/lib/sketch/random.d.ts +13 -0
- package/lib/sketch/random.js +25 -0
- package/lib/sketch/runner.d.ts +507 -0
- package/lib/sketch/runner.js +1826 -0
- package/lib/sketch/ui.d.ts +97 -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 +29 -0
- package/lib/workers/probe-worker.js +49 -0
- package/lib/workers/protocol.d.ts +329 -0
- package/lib/workers/protocol.js +53 -0
- package/lib/workers/render-worker.d.ts +1 -0
- package/lib/workers/render-worker.js +82 -0
- package/lib/workers/sketch-worker.d.ts +1 -0
- package/lib/workers/sketch-worker.js +206 -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
- package/README.md +0 -3
|
@@ -0,0 +1,3975 @@
|
|
|
1
|
+
/* @ts-self-types="./null3d.d.ts" */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Adds a compute pass, through a pass that the render graph names `pass`, which runs the compiled
|
|
5
|
+
* WGSL of compute pipeline template `template` over the whole of a target that it names `target`:
|
|
6
|
+
* of `width` x `height` texels, or with a width of 0, of `scale` of the render size each way, 1,
|
|
7
|
+
* 0.5 or 0.25. It writes the target as a storage texture of `format`, a draw list format code,
|
|
8
|
+
* over a workgroup of `workgroup` invocations, packed one axis to a byte, and dispatches `counts`
|
|
9
|
+
* workgroups along each axis, packed the same way, or covers the target when every count is 0. It
|
|
10
|
+
* reads its uniforms at `effectValues`
|
|
11
|
+
* and its textures at `effectTextures`, in one frame of every `every`. With `afterScene` it
|
|
12
|
+
* records after the camera's passes, which it reads the scene color of. `layers` is the array
|
|
13
|
+
* layers of each state, and `history` a flag: a pass with history keeps two states, and each run
|
|
14
|
+
* writes one and reads the other. `steps` is the number of runs that a frame records, which the
|
|
15
|
+
* page changes with `setComputeSteps`. Returns the view's place, from 1, or 0 as `addPass` does.
|
|
16
|
+
* @param {string} pass
|
|
17
|
+
* @param {string} target_name
|
|
18
|
+
* @param {number} width
|
|
19
|
+
* @param {number} height
|
|
20
|
+
* @param {number} scale
|
|
21
|
+
* @param {number} every
|
|
22
|
+
* @param {number} template
|
|
23
|
+
* @param {number} format
|
|
24
|
+
* @param {number} workgroup
|
|
25
|
+
* @param {number} counts
|
|
26
|
+
* @param {number} after_scene
|
|
27
|
+
* @param {number} counts_buffer
|
|
28
|
+
* @param {number} instances_buffer
|
|
29
|
+
* @param {number} instances_bytes
|
|
30
|
+
* @param {number} history
|
|
31
|
+
* @param {number} layers
|
|
32
|
+
* @param {number} steps
|
|
33
|
+
* @returns {number}
|
|
34
|
+
*/
|
|
35
|
+
export function addComputePass(pass, target_name, width, height, scale, every, template, format, workgroup, counts, after_scene, counts_buffer, instances_buffer, instances_bytes, history, layers, steps) {
|
|
36
|
+
const ptr0 = passStringToWasm0(pass, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
37
|
+
const len0 = WASM_VECTOR_LEN;
|
|
38
|
+
const ptr1 = passStringToWasm0(target_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
39
|
+
const len1 = WASM_VECTOR_LEN;
|
|
40
|
+
const ret = wasm.addComputePass(ptr0, len0, ptr1, len1, width, height, scale, every, template, format, workgroup, counts, after_scene, counts_buffer, instances_buffer, instances_bytes, history, layers, steps);
|
|
41
|
+
return ret >>> 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Adds a full-screen pass, through a pass that the render graph names `pass`, which draws the
|
|
46
|
+
* compiled WGSL of render pipeline template `template` over the whole of a target that it names
|
|
47
|
+
* `target`: of `width` x `height` texels, or with a width of 0, of `scale` of the render size
|
|
48
|
+
* each way, 1, 0.5 or 0.25. It reads the input image `source` (`constants::pass_source`), the
|
|
49
|
+
* scene's depth with the flag `constants::effect_flag::DEPTH`, its uniforms at `effectValues` and
|
|
50
|
+
* its textures at `effectTextures`, in one frame of every `every`. `fallback` says the pass runs
|
|
51
|
+
* in place of a compute pass: it then keeps `history`'s two states of `layers` layers each, draws
|
|
52
|
+
* `steps` runs a frame, and writes a target of `format`, a draw list format code, or of the
|
|
53
|
+
* scene's views' format with 0. Returns the view's place, from 1, or 0 as `addPass` does.
|
|
54
|
+
* @param {string} pass
|
|
55
|
+
* @param {string} target_name
|
|
56
|
+
* @param {number} width
|
|
57
|
+
* @param {number} height
|
|
58
|
+
* @param {number} scale
|
|
59
|
+
* @param {number} every
|
|
60
|
+
* @param {number} template
|
|
61
|
+
* @param {number} flags
|
|
62
|
+
* @param {number} source
|
|
63
|
+
* @param {number} fallback
|
|
64
|
+
* @param {number} history
|
|
65
|
+
* @param {number} layers
|
|
66
|
+
* @param {number} steps
|
|
67
|
+
* @param {number} format
|
|
68
|
+
* @returns {number}
|
|
69
|
+
*/
|
|
70
|
+
export function addFullscreenPass(pass, target_name, width, height, scale, every, template, flags, source, fallback, history, layers, steps, format) {
|
|
71
|
+
const ptr0 = passStringToWasm0(pass, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
72
|
+
const len0 = WASM_VECTOR_LEN;
|
|
73
|
+
const ptr1 = passStringToWasm0(target_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
74
|
+
const len1 = WASM_VECTOR_LEN;
|
|
75
|
+
const ret = wasm.addFullscreenPass(ptr0, len0, ptr1, len1, width, height, scale, every, template, flags, source, fallback, history, layers, steps, format);
|
|
76
|
+
return ret >>> 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Adds a scene pass or a reflection pass, of `kind` (`constants::pass_kind`), through a pass that
|
|
81
|
+
* the render graph names `pass`, which draws into a target that it names `target`. The view reads
|
|
82
|
+
* the targets of the other passes named in `reads`, one name per line, so the objects it draws
|
|
83
|
+
* may show them. With `clears`, its target clears to the exposed linear color `r`, `g`, `b` and
|
|
84
|
+
* alpha `a`; without, to the color the camera's target clears to.
|
|
85
|
+
*
|
|
86
|
+
* A scene pass draws the scene into a target of `width` x `height` texels, or with a width of 0,
|
|
87
|
+
* into a target of `scale` of the render size each way, 1, 0.5 or 0.25, which it fills whole at
|
|
88
|
+
* any render scale. The view draws once a camera is set for it through `setPerspectiveCamera` or
|
|
89
|
+
* `setOrthographicCamera`, with `constants::camera_target::PASS_VIEWS` plus its place.
|
|
90
|
+
*
|
|
91
|
+
* A reflection pass draws the camera's view mirrored across the plane through the point (`px`,
|
|
92
|
+
* `py`, `pz`) of the world with normal (`nx`, `ny`, `nz`). Its target takes `scale` of the render
|
|
93
|
+
* size each way, 1, 0.5 or 0.25, or for 0 the share that `setReflectionScale` sets. It draws the
|
|
94
|
+
* objects on `layers`, or below 0 those on the camera's layers.
|
|
95
|
+
*
|
|
96
|
+
* Either draws in one frame of every `every`. Returns the view's place, from 1, or 0 when the
|
|
97
|
+
* builder draws the most views already, or when the pass does not fit the render graph, with the
|
|
98
|
+
* graph's error (E1502 to E1505), whose message `renderGraphMessage` gives.
|
|
99
|
+
* @param {number} kind
|
|
100
|
+
* @param {string} pass
|
|
101
|
+
* @param {string} target
|
|
102
|
+
* @param {string} reads
|
|
103
|
+
* @param {number} width
|
|
104
|
+
* @param {number} height
|
|
105
|
+
* @param {boolean} clears
|
|
106
|
+
* @param {number} r
|
|
107
|
+
* @param {number} g
|
|
108
|
+
* @param {number} b
|
|
109
|
+
* @param {number} a
|
|
110
|
+
* @param {number} scale
|
|
111
|
+
* @param {number} every
|
|
112
|
+
* @param {number} layers
|
|
113
|
+
* @param {number} nx
|
|
114
|
+
* @param {number} ny
|
|
115
|
+
* @param {number} nz
|
|
116
|
+
* @param {number} px
|
|
117
|
+
* @param {number} py
|
|
118
|
+
* @param {number} pz
|
|
119
|
+
* @returns {number}
|
|
120
|
+
*/
|
|
121
|
+
export function addPass(kind, pass, target, reads, width, height, clears, r, g, b, a, scale, every, layers, nx, ny, nz, px, py, pz) {
|
|
122
|
+
const ptr0 = passStringToWasm0(pass, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
123
|
+
const len0 = WASM_VECTOR_LEN;
|
|
124
|
+
const ptr1 = passStringToWasm0(target, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
125
|
+
const len1 = WASM_VECTOR_LEN;
|
|
126
|
+
const ptr2 = passStringToWasm0(reads, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
127
|
+
const len2 = WASM_VECTOR_LEN;
|
|
128
|
+
const ret = wasm.addPass(kind, ptr0, len0, ptr1, len1, ptr2, len2, width, height, clears, r, g, b, a, scale, every, layers, nx, ny, nz, px, py, pz);
|
|
129
|
+
return ret >>> 0;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Adds a view that draws the scene into the rectangle of the canvas that the call values name:
|
|
134
|
+
* its left and top, then its width and height, as fractions of the canvas's width and height
|
|
135
|
+
* from its top-left corner. Its lens is set through `setPerspectiveCamera` or
|
|
136
|
+
* `setOrthographicCamera` with `constants::camera_target::PASS_VIEWS` plus its place. Returns the
|
|
137
|
+
* view's place, from 1, or 0 when the builder draws the most views already.
|
|
138
|
+
* @returns {number}
|
|
139
|
+
*/
|
|
140
|
+
export function addSceneView() {
|
|
141
|
+
const ret = wasm.addSceneView();
|
|
142
|
+
return ret >>> 0;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Makes a generated cube texture a map of the scene's sky. `capture` is the stage at which the map
|
|
147
|
+
* captures the light that a sky layer over it gives, which the page places a stage or two before
|
|
148
|
+
* the last, so that the read lands before the levels that the last stage publishes.
|
|
149
|
+
* @param {number} texture
|
|
150
|
+
* @param {number} stages
|
|
151
|
+
* @param {number} capture
|
|
152
|
+
* @returns {number}
|
|
153
|
+
*/
|
|
154
|
+
export function addSkyMap(texture, stages, capture) {
|
|
155
|
+
const ret = wasm.addSkyMap(texture, stages, capture);
|
|
156
|
+
return ret >>> 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Says whether the device draws the motion target, two half floats per pixel, with one sample,
|
|
161
|
+
* and with MSAA's samples, as the page's test of its float targets found. Where it does not draw
|
|
162
|
+
* it at the scene's samples, the motion debug view shows the camera's motion alone.
|
|
163
|
+
* @param {boolean} one_sample
|
|
164
|
+
* @param {boolean} multisampled
|
|
165
|
+
* @returns {number}
|
|
166
|
+
*/
|
|
167
|
+
export function allowMotion(one_sample, multisampled) {
|
|
168
|
+
const ret = wasm.allowMotion(one_sample, multisampled);
|
|
169
|
+
return ret >>> 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* The first joint of animated instance `instance` in the skinning matrices, plus one, or 0 when
|
|
174
|
+
* no live instance has that id.
|
|
175
|
+
* @param {number} instance
|
|
176
|
+
* @returns {number}
|
|
177
|
+
*/
|
|
178
|
+
export function animatedInstanceJoints(instance) {
|
|
179
|
+
const ret = wasm.animatedInstanceJoints(instance);
|
|
180
|
+
return ret >>> 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* The address of an animation table array (`constants::animation_field`).
|
|
185
|
+
* @param {number} field
|
|
186
|
+
* @returns {number}
|
|
187
|
+
*/
|
|
188
|
+
export function animationArrays(field) {
|
|
189
|
+
const ret = wasm.animationArrays(field);
|
|
190
|
+
return ret >>> 0;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* The most animated instances that the animation table holds now, or 0 before it exists. The
|
|
195
|
+
* table grows as instances need it, which moves its arrays.
|
|
196
|
+
* @returns {number}
|
|
197
|
+
*/
|
|
198
|
+
export function animationCapacity() {
|
|
199
|
+
const ret = wasm.animationCapacity();
|
|
200
|
+
return ret >>> 0;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Makes room for `words` staging words of animation data and returns their address.
|
|
205
|
+
* @param {number} words
|
|
206
|
+
* @returns {number}
|
|
207
|
+
*/
|
|
208
|
+
export function animationStaging(words) {
|
|
209
|
+
const ret = wasm.animationStaging(words);
|
|
210
|
+
return ret >>> 0;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Plays clip `clip` on instance `instance`, on layer `layer`, with `flags`
|
|
215
|
+
* (`constants::play_flag`) and the numbers in `PLAY_ARGS`: `Animations::play`.
|
|
216
|
+
* @param {number} instance
|
|
217
|
+
* @param {number} clip
|
|
218
|
+
* @param {number} layer
|
|
219
|
+
* @param {number} flags
|
|
220
|
+
* @returns {number}
|
|
221
|
+
*/
|
|
222
|
+
export function animatorPlay(instance, clip, layer, flags) {
|
|
223
|
+
const ret = wasm.animatorPlay(instance, clip, layer, flags);
|
|
224
|
+
return ret >>> 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Plays a 1D blend of the staged clips on instance `instance`, on layer `layer`, with `flags`
|
|
229
|
+
* and the numbers in `PLAY_ARGS`: `Animations::play_blend`.
|
|
230
|
+
* @param {number} instance
|
|
231
|
+
* @param {number} count
|
|
232
|
+
* @param {number} layer
|
|
233
|
+
* @param {number} flags
|
|
234
|
+
* @returns {number}
|
|
235
|
+
*/
|
|
236
|
+
export function animatorPlayBlend(instance, count, layer, flags) {
|
|
237
|
+
const ret = wasm.animatorPlayBlend(instance, count, layer, flags);
|
|
238
|
+
return ret >>> 0;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Stops clip `clip` on instance `instance`, or every clip when `clip` is 0, fading out over the
|
|
243
|
+
* seconds of the next play's fade (`PLAY_ARGS`).
|
|
244
|
+
* @param {number} instance
|
|
245
|
+
* @param {number} clip
|
|
246
|
+
* @returns {number}
|
|
247
|
+
*/
|
|
248
|
+
export function animatorStop(instance, clip) {
|
|
249
|
+
const ret = wasm.animatorStop(instance, clip);
|
|
250
|
+
return ret >>> 0;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Appends one band to the tree of cluster patches of the mesh `mesh`: `patches` records of eight
|
|
255
|
+
* words each, four floats of its bounding sphere and then four integers of its run, its parent and
|
|
256
|
+
* its error, followed by `indices` indices, in the staging words. A run's first index counts from
|
|
257
|
+
* the band's own indices, and a parent names a patch that the tree already holds. Returns 1 when
|
|
258
|
+
* the mesh takes the band, 0 when it has no tree, and the code of the rule that refused it
|
|
259
|
+
* otherwise (see [`set_mesh_patches`]).
|
|
260
|
+
* @param {number} mesh
|
|
261
|
+
* @param {number} patches
|
|
262
|
+
* @param {number} indices
|
|
263
|
+
* @returns {number}
|
|
264
|
+
*/
|
|
265
|
+
export function appendMeshPatches(mesh, patches, indices) {
|
|
266
|
+
const ret = wasm.appendMeshPatches(mesh, patches, indices);
|
|
267
|
+
return ret >>> 0;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Makes room for the area lights' tables, and returns the address of their half floats.
|
|
272
|
+
* @returns {number}
|
|
273
|
+
*/
|
|
274
|
+
export function areaLightTables() {
|
|
275
|
+
const ret = wasm.areaLightTables();
|
|
276
|
+
return ret >>> 0;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* The address of the count of moves of viewed arrays; views made at another count are stale.
|
|
281
|
+
* @returns {number}
|
|
282
|
+
*/
|
|
283
|
+
export function arraysMovedAddress() {
|
|
284
|
+
const ret = wasm.arraysMovedAddress();
|
|
285
|
+
return ret >>> 0;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* The address of the block of the background's values (`background_value`), which TypeScript
|
|
290
|
+
* writes before it calls `setBackgroundSource`.
|
|
291
|
+
* @returns {number}
|
|
292
|
+
*/
|
|
293
|
+
export function backgroundValues() {
|
|
294
|
+
const ret = wasm.backgroundValues();
|
|
295
|
+
return ret >>> 0;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* The address of one of a batch's row arrays (see `constants::batch_field`): positions (3 floats
|
|
300
|
+
* a row), rotations (4), scales (3), colors (4) or values (4), the last two 0 for a batch without
|
|
301
|
+
* row values. A sprite
|
|
302
|
+
* batch has positions, sizes (2 floats a row), rotations in radians (1), colors (4) and frames
|
|
303
|
+
* (one 32-bit integer a row), and 0 for scales. A line batch has positions (3 floats a point) and
|
|
304
|
+
* colors (3 floats a point), and 0 for the others. Every batch also has the words of its dirty
|
|
305
|
+
* rows' bitset, which TypeScript views as 32-bit words.
|
|
306
|
+
* @param {number} batch
|
|
307
|
+
* @param {number} field
|
|
308
|
+
* @returns {number}
|
|
309
|
+
*/
|
|
310
|
+
export function batchArrays(batch, field) {
|
|
311
|
+
const ret = wasm.batchArrays(batch, field);
|
|
312
|
+
return ret >>> 0;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Starts a frame and applies every pending command. Frames count from 1. The sketch time in
|
|
317
|
+
* milliseconds and the step since the frame before in microseconds come as whole numbers, which
|
|
318
|
+
* cross into WebAssembly without a new number object each frame; shaders read them as seconds.
|
|
319
|
+
* @param {number} frame
|
|
320
|
+
* @param {number} time_ms
|
|
321
|
+
* @param {number} step_us
|
|
322
|
+
* @returns {number}
|
|
323
|
+
*/
|
|
324
|
+
export function beginFrame(frame, time_ms, step_us) {
|
|
325
|
+
const ret = wasm.beginFrame(frame, time_ms, step_us);
|
|
326
|
+
return ret >>> 0;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Emits `count` particles of a system at once, at the place and velocity in its emitter block,
|
|
331
|
+
* and plans their sub-emitter events.
|
|
332
|
+
* @param {number} id
|
|
333
|
+
* @param {number} count
|
|
334
|
+
* @returns {number}
|
|
335
|
+
*/
|
|
336
|
+
export function burstParticles(id, count) {
|
|
337
|
+
const ret = wasm.burstParticles(id, count);
|
|
338
|
+
return ret >>> 0;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Asks job worker `index` to leave its loop to run a task.
|
|
343
|
+
* @param {number} index
|
|
344
|
+
*/
|
|
345
|
+
export function callJobWorker(index) {
|
|
346
|
+
wasm.callJobWorker(index);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* The address of the numbers of the next setter call (`constants::call_value`): 64-bit floats.
|
|
351
|
+
* @returns {number}
|
|
352
|
+
*/
|
|
353
|
+
export function callValues() {
|
|
354
|
+
const ret = wasm.callValues();
|
|
355
|
+
return ret >>> 0;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Makes a reflection probe capture again.
|
|
360
|
+
* @param {number} slot
|
|
361
|
+
* @returns {number}
|
|
362
|
+
*/
|
|
363
|
+
export function captureReflectionProbe(slot) {
|
|
364
|
+
const ret = wasm.captureReflectionProbe(slot);
|
|
365
|
+
return ret >>> 0;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* The times that an object or an instance row entered a new grid cell while every cell was in
|
|
370
|
+
* use, so that it went into the origin's cell instead.
|
|
371
|
+
* @returns {number}
|
|
372
|
+
*/
|
|
373
|
+
export function cellsRefused() {
|
|
374
|
+
const ret = wasm.cellsRefused();
|
|
375
|
+
return ret >>> 0;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Fits the main directional light's cascades to the camera's view again, after a camera with the
|
|
380
|
+
* shadows' target fitted them.
|
|
381
|
+
* @returns {number}
|
|
382
|
+
*/
|
|
383
|
+
export function clearShadowCamera() {
|
|
384
|
+
const ret = wasm.clearShadowCamera();
|
|
385
|
+
return ret >>> 0;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* The clip of a `createClipLater` ticket: its id plus one once a job worker has resampled it,
|
|
390
|
+
* [`CLIP_PENDING`] before that, or 0 for a failure. A ticket that gave an id or failed is spent.
|
|
391
|
+
* @param {number} ticket
|
|
392
|
+
* @returns {number}
|
|
393
|
+
*/
|
|
394
|
+
export function clipReady(ticket) {
|
|
395
|
+
const ret = wasm.clipReady(ticket);
|
|
396
|
+
return ret >>> 0;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* The command ring (see `constants::ring_field`): the record array's address, its capacity in
|
|
401
|
+
* records, or the address of the write index TypeScript advances or of the read index the core
|
|
402
|
+
* advances.
|
|
403
|
+
* @param {number} field
|
|
404
|
+
* @returns {number}
|
|
405
|
+
*/
|
|
406
|
+
export function commandRing(field) {
|
|
407
|
+
const ret = wasm.commandRing(field);
|
|
408
|
+
return ret >>> 0;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Reads a particle system's emitter settings from its block, which the sketch wrote, and starts
|
|
413
|
+
* its births and its time base again.
|
|
414
|
+
* @param {number} id
|
|
415
|
+
* @returns {number}
|
|
416
|
+
*/
|
|
417
|
+
export function configureParticleEmitter(id) {
|
|
418
|
+
const ret = wasm.configureParticleEmitter(id);
|
|
419
|
+
return ret >>> 0;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Adds a light for the object `handle` with the kind, colors and numbers of light `light`, and
|
|
424
|
+
* returns its id.
|
|
425
|
+
* @param {number} light
|
|
426
|
+
* @param {number} handle
|
|
427
|
+
* @returns {number}
|
|
428
|
+
*/
|
|
429
|
+
export function copyLight(light, handle) {
|
|
430
|
+
const ret = wasm.copyLight(light, handle);
|
|
431
|
+
return ret >>> 0;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Adds an animated instance of `skeleton` that moves the object of handle `object`; returns its
|
|
436
|
+
* id plus one.
|
|
437
|
+
* @param {number} skeleton
|
|
438
|
+
* @param {number} object
|
|
439
|
+
* @returns {number}
|
|
440
|
+
*/
|
|
441
|
+
export function createAnimatedInstance(skeleton, object) {
|
|
442
|
+
const ret = wasm.createAnimatedInstance(skeleton, object);
|
|
443
|
+
return ret >>> 0;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Creates an instance batch of one mesh and one material, and returns its id. With `row_values`,
|
|
448
|
+
* each row has a colour and four values of its own, which shaders read.
|
|
449
|
+
* @param {number} capacity
|
|
450
|
+
* @param {boolean} dynamic
|
|
451
|
+
* @param {boolean} row_values
|
|
452
|
+
* @param {number} mesh
|
|
453
|
+
* @param {number} material
|
|
454
|
+
* @returns {number}
|
|
455
|
+
*/
|
|
456
|
+
export function createBatch(capacity, dynamic, row_values, mesh, material) {
|
|
457
|
+
const ret = wasm.createBatch(capacity, dynamic, row_values, mesh, material);
|
|
458
|
+
return ret >>> 0;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Creates one part of a model as an instance batch, and returns its id: a mesh and a material,
|
|
463
|
+
* placed in the space of each row by `part`, 12 numbers of a 3 × 4 matrix by rows. With a
|
|
464
|
+
* `source` batch other than 0, the part reads that batch's rows, and takes its capacity, its
|
|
465
|
+
* dynamic flag and whether its rows have row values; without one, it owns `capacity` rows.
|
|
466
|
+
* @param {number} source
|
|
467
|
+
* @param {number} capacity
|
|
468
|
+
* @param {boolean} dynamic
|
|
469
|
+
* @param {boolean} row_values
|
|
470
|
+
* @param {number} mesh
|
|
471
|
+
* @param {number} material
|
|
472
|
+
* @param {Float32Array} part
|
|
473
|
+
* @returns {number}
|
|
474
|
+
*/
|
|
475
|
+
export function createBatchPart(source, capacity, dynamic, row_values, mesh, material, part) {
|
|
476
|
+
const ptr0 = passArrayF32ToWasm0(part, wasm.__wbindgen_malloc);
|
|
477
|
+
const len0 = WASM_VECTOR_LEN;
|
|
478
|
+
const ret = wasm.createBatchPart(source, capacity, dynamic, row_values, mesh, material, ptr0, len0);
|
|
479
|
+
return ret >>> 0;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Creates a clip for `skeleton` from the staging words; returns its id plus one.
|
|
484
|
+
* @param {number} skeleton
|
|
485
|
+
* @param {number} tracks
|
|
486
|
+
* @param {number} rate
|
|
487
|
+
* @returns {number}
|
|
488
|
+
*/
|
|
489
|
+
export function createClip(skeleton, tracks, rate) {
|
|
490
|
+
const ret = wasm.createClip(skeleton, tracks, rate);
|
|
491
|
+
return ret >>> 0;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Starts resampling a clip for `skeleton` from the staging words; returns a ticket for
|
|
496
|
+
* `clipReady`, plus one.
|
|
497
|
+
* @param {number} skeleton
|
|
498
|
+
* @param {number} tracks
|
|
499
|
+
* @param {number} rate
|
|
500
|
+
* @returns {number}
|
|
501
|
+
*/
|
|
502
|
+
export function createClipLater(skeleton, tracks, rate) {
|
|
503
|
+
const ret = wasm.createClipLater(skeleton, tracks, rate);
|
|
504
|
+
return ret >>> 0;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Creates a cube texture and returns its handle.
|
|
509
|
+
* @param {number} size
|
|
510
|
+
* @param {number} levels
|
|
511
|
+
* @param {number} format
|
|
512
|
+
* @returns {number}
|
|
513
|
+
*/
|
|
514
|
+
export function createCubeTexture(size, levels, format) {
|
|
515
|
+
const ret = wasm.createCubeTexture(size, levels, format);
|
|
516
|
+
return ret >>> 0;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* Makes a draw of at most `capacity` instances for the object in scene slot `slot`, whose
|
|
521
|
+
* instance count the GPU writes, and returns its id: 0 when the scene holds the most such draws
|
|
522
|
+
* already.
|
|
523
|
+
* @param {number} slot
|
|
524
|
+
* @param {number} capacity
|
|
525
|
+
* @returns {number}
|
|
526
|
+
*/
|
|
527
|
+
export function createFeatureInstances(slot, capacity) {
|
|
528
|
+
const ret = wasm.createFeatureInstances(slot, capacity);
|
|
529
|
+
return ret >>> 0;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Creates a joint mask for `skeleton` from the staging words; returns its id plus one.
|
|
534
|
+
* @param {number} skeleton
|
|
535
|
+
* @returns {number}
|
|
536
|
+
*/
|
|
537
|
+
export function createJointMask(skeleton) {
|
|
538
|
+
const ret = wasm.createJointMask(skeleton);
|
|
539
|
+
return ret >>> 0;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* A level of the live mesh `base` that holds its own copy of the vertices that the `indices`
|
|
544
|
+
* triangles in the staging words name, which the call frees: the level of a base that is split
|
|
545
|
+
* into parts, which cannot share its vertices. The indices name the base's own vertices. Returns
|
|
546
|
+
* the mesh id.
|
|
547
|
+
* @param {number} base
|
|
548
|
+
* @param {number} indices
|
|
549
|
+
* @returns {number}
|
|
550
|
+
*/
|
|
551
|
+
export function createLevelCopy(base, indices) {
|
|
552
|
+
const ret = wasm.createLevelCopy(base, indices);
|
|
553
|
+
return ret >>> 0;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* A mesh that draws the vertices of the live mesh `base` with the `indices` triangles that
|
|
558
|
+
* TypeScript wrote into the staging words, which the call frees. A level of a mesh with levels
|
|
559
|
+
* that the file stores as the base's own vertices with other indices costs the GPU indices
|
|
560
|
+
* alone. Returns the mesh id.
|
|
561
|
+
* @param {number} base
|
|
562
|
+
* @param {number} indices
|
|
563
|
+
* @returns {number}
|
|
564
|
+
*/
|
|
565
|
+
export function createLevelMesh(base, indices) {
|
|
566
|
+
const ret = wasm.createLevelMesh(base, indices);
|
|
567
|
+
return ret >>> 0;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Adds a light of `kind` for the object `handle`; returns its id.
|
|
572
|
+
* @param {number} handle
|
|
573
|
+
* @param {number} kind
|
|
574
|
+
* @returns {number}
|
|
575
|
+
*/
|
|
576
|
+
export function createLight(handle, kind) {
|
|
577
|
+
const ret = wasm.createLight(handle, kind);
|
|
578
|
+
return ret >>> 0;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Creates a line batch: `points` points joined as `mode` says (a `LineMode` code), each segment
|
|
583
|
+
* drawn with `mesh`, the segment mesh, and `material`, a line material. The segments are `width`
|
|
584
|
+
* CSS pixels wide, or `width` world units with `world_units`, and dashed with `dashed`. Returns
|
|
585
|
+
* its id.
|
|
586
|
+
* @param {number} points
|
|
587
|
+
* @param {boolean} dynamic
|
|
588
|
+
* @param {number} mesh
|
|
589
|
+
* @param {number} material
|
|
590
|
+
* @param {number} mode
|
|
591
|
+
* @param {number} width
|
|
592
|
+
* @param {boolean} world_units
|
|
593
|
+
* @param {boolean} dashed
|
|
594
|
+
* @returns {number}
|
|
595
|
+
*/
|
|
596
|
+
export function createLineBatch(points, dynamic, mesh, material, mode, width, world_units, dashed) {
|
|
597
|
+
const ret = wasm.createLineBatch(points, dynamic, mesh, material, mode, width, world_units, dashed);
|
|
598
|
+
return ret >>> 0;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Creates a material with a linear color and opacity, and returns its id, counting from 1. Its
|
|
603
|
+
* shading (`constants::shading`) is the standard material, like three.js's
|
|
604
|
+
* `MeshStandardMaterial`, unlit, like its `MeshBasicMaterial`, or the first texture coordinates as
|
|
605
|
+
* colors, for the engine's own tests. A shading from `shading::CUSTOM_FIRST` up is a custom
|
|
606
|
+
* material's: its template in the low 16 bits, the vertex attributes that its shader reads from
|
|
607
|
+
* `shading::CUSTOM_ATTRIBUTE_SHIFT`, `shading::CUSTOM_BASE_COLOR`, the number of textures
|
|
608
|
+
* that its WGSL declares from `shading::CUSTOM_TEXTURE_SHIFT`, and
|
|
609
|
+
* `shading::CUSTOM_TRANSMISSION` when its WGSL has the builds that let light through. Its features
|
|
610
|
+
* (`constants::material_feature`) and its depth bias are fixed from now on. The bias takes
|
|
611
|
+
* three.js's `polygonOffsetUnits` as `bias_constant` and its `polygonOffsetFactor` as
|
|
612
|
+
* `bias_slope`, whose positive values push the surface away. A custom material whose vertex offset
|
|
613
|
+
* sways gives the distance from the camera out to which it moves, in meters, as `sway_distance`:
|
|
614
|
+
* past it the material's casters stand still, so far shadow cascades keep their layers. Zero sways
|
|
615
|
+
* at every distance. A `single_layer` that is not 0 draws the material's blended surfaces in the
|
|
616
|
+
* camera's one-sample layer while the scene has more than one sample.
|
|
617
|
+
* @param {number} shading
|
|
618
|
+
* @param {number} features
|
|
619
|
+
* @param {number} r
|
|
620
|
+
* @param {number} g
|
|
621
|
+
* @param {number} b
|
|
622
|
+
* @param {number} a
|
|
623
|
+
* @param {number} bias_constant
|
|
624
|
+
* @param {number} bias_slope
|
|
625
|
+
* @param {number} sway_distance
|
|
626
|
+
* @param {number} single_layer
|
|
627
|
+
* @returns {number}
|
|
628
|
+
*/
|
|
629
|
+
export function createMaterial(shading, features, r, g, b, a, bias_constant, bias_slope, sway_distance, single_layer) {
|
|
630
|
+
const ret = wasm.createMaterial(shading, features, r, g, b, a, bias_constant, bias_slope, sway_distance, single_layer);
|
|
631
|
+
return ret >>> 0;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* A mesh from the arrays in the staging words, as `layout` (`constants::mesh_arrays` bits)
|
|
636
|
+
* describes them, for `vertices` vertices and `indices` indices. `types` gives each array's type
|
|
637
|
+
* in its attribute's type field of a vertex format. Normals and tangents that `layout` asks for
|
|
638
|
+
* are computed on the job workers. With `targets` morph targets, the arrays that `morph`
|
|
639
|
+
* (`constants::morph_arrays` bits) names follow the indices. Returns the mesh id.
|
|
640
|
+
* @param {number} vertices
|
|
641
|
+
* @param {number} indices
|
|
642
|
+
* @param {number} layout
|
|
643
|
+
* @param {number} types
|
|
644
|
+
* @param {number} targets
|
|
645
|
+
* @param {number} morph
|
|
646
|
+
* @returns {number}
|
|
647
|
+
*/
|
|
648
|
+
export function createMeshFromArrays(vertices, indices, layout, types, targets, morph) {
|
|
649
|
+
const ret = wasm.createMeshFromArrays(vertices, indices, layout, types, targets, morph);
|
|
650
|
+
return ret >>> 0;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Makes a block of `count` morph weights, all 0, and returns its id plus one.
|
|
655
|
+
* @param {number} count
|
|
656
|
+
* @returns {number}
|
|
657
|
+
*/
|
|
658
|
+
export function createMorphWeights(count) {
|
|
659
|
+
const ret = wasm.createMorphWeights(count);
|
|
660
|
+
return ret >>> 0;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Makes a particle system of `capacity` records for the object in scene slot `slot`, whose
|
|
665
|
+
* material has the particle shading, and returns its id: 0 when the scene holds the most systems
|
|
666
|
+
* already. The records and values start at 0, which draws nothing.
|
|
667
|
+
* @param {number} slot
|
|
668
|
+
* @param {number} capacity
|
|
669
|
+
* @returns {number}
|
|
670
|
+
*/
|
|
671
|
+
export function createParticles(slot, capacity) {
|
|
672
|
+
const ret = wasm.createParticles(slot, capacity);
|
|
673
|
+
return ret >>> 0;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Creates a texture that shows the target of the scene pass of view place `place`, from 1, and
|
|
678
|
+
* returns its handle. It holds the pass's `width` x `height` texels, or for a reflection pass,
|
|
679
|
+
* whose target follows the render size, 0 x 0, and samples as no texture until the pass first
|
|
680
|
+
* draws.
|
|
681
|
+
* @param {number} place
|
|
682
|
+
* @param {number} width
|
|
683
|
+
* @param {number} height
|
|
684
|
+
* @returns {number}
|
|
685
|
+
*/
|
|
686
|
+
export function createPassTexture(place, width, height) {
|
|
687
|
+
const ret = wasm.createPassTexture(place, width, height);
|
|
688
|
+
return ret >>> 0;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* A mesh from a geometry generator: `shape` is a `Shape` code, and the numbers after it are the
|
|
693
|
+
* arguments of the three.js class's constructor, in their order. Returns the mesh id.
|
|
694
|
+
* @param {number} shape
|
|
695
|
+
* @param {number} a
|
|
696
|
+
* @param {number} b
|
|
697
|
+
* @param {number} c
|
|
698
|
+
* @param {number} d
|
|
699
|
+
* @param {number} e
|
|
700
|
+
* @param {number} f
|
|
701
|
+
* @param {number} g
|
|
702
|
+
* @param {number} h
|
|
703
|
+
* @returns {number}
|
|
704
|
+
*/
|
|
705
|
+
export function createShapeMesh(shape, a, b, c, d, e, f, g, h) {
|
|
706
|
+
const ret = wasm.createShapeMesh(shape, a, b, c, d, e, f, g, h);
|
|
707
|
+
return ret >>> 0;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Creates a skeleton of `joints` joints from the staging words; returns its id plus one.
|
|
712
|
+
* @param {number} joints
|
|
713
|
+
* @returns {number}
|
|
714
|
+
*/
|
|
715
|
+
export function createSkeleton(joints) {
|
|
716
|
+
const ret = wasm.createSkeleton(joints);
|
|
717
|
+
return ret >>> 0;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* A level of the live mesh `base`, which is split into parts, that draws the base's own vertices
|
|
722
|
+
* from triangles in the staging words, which the call frees: each triangle from a part that holds
|
|
723
|
+
* its three vertices, and the few that span the parts' seams from a copy of their vertices
|
|
724
|
+
* (`MeshStorage::add_split_level`). The words hold the level's `count` pieces and `groups`
|
|
725
|
+
* groups, as `setMeshPieces` lays them out, then its `indices` indices, which name the base's own
|
|
726
|
+
* vertices. A level with pieces keeps its triangles' order, which must come part by part; one
|
|
727
|
+
* whose triangles do not draws them part by part, without pieces. Returns the mesh id.
|
|
728
|
+
* @param {number} base
|
|
729
|
+
* @param {number} count
|
|
730
|
+
* @param {number} groups
|
|
731
|
+
* @param {number} indices
|
|
732
|
+
* @returns {number}
|
|
733
|
+
*/
|
|
734
|
+
export function createSplitLevel(base, count, groups, indices) {
|
|
735
|
+
const ret = wasm.createSplitLevel(base, count, groups, indices);
|
|
736
|
+
return ret >>> 0;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* Creates a sprite batch: `capacity` sprites drawn with `mesh`, a quad around their anchor, and
|
|
741
|
+
* `material`, a sprite material. Frames come from an atlas of `columns` by `rows`, and with
|
|
742
|
+
* `screen_size` the sizes are in CSS pixels of the screen rather than in world units. `points`
|
|
743
|
+
* marks a batch of points, which a raycast's point threshold reaches. Returns its id.
|
|
744
|
+
* @param {number} capacity
|
|
745
|
+
* @param {boolean} dynamic
|
|
746
|
+
* @param {number} mesh
|
|
747
|
+
* @param {number} material
|
|
748
|
+
* @param {number} columns
|
|
749
|
+
* @param {number} rows
|
|
750
|
+
* @param {boolean} screen_size
|
|
751
|
+
* @param {boolean} points
|
|
752
|
+
* @returns {number}
|
|
753
|
+
*/
|
|
754
|
+
export function createSpriteBatch(capacity, dynamic, mesh, material, columns, rows, screen_size, points) {
|
|
755
|
+
const ret = wasm.createSpriteBatch(capacity, dynamic, mesh, material, columns, rows, screen_size, points);
|
|
756
|
+
return ret >>> 0;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* Creates a texture and returns its handle.
|
|
761
|
+
* @param {number} width
|
|
762
|
+
* @param {number} height
|
|
763
|
+
* @param {number} depth
|
|
764
|
+
* @param {number} format
|
|
765
|
+
* @param {boolean} mipmaps
|
|
766
|
+
* @param {number} levels
|
|
767
|
+
* @param {number} wrap_u
|
|
768
|
+
* @param {number} wrap_v
|
|
769
|
+
* @param {number} mag_filter
|
|
770
|
+
* @param {number} min_filter
|
|
771
|
+
* @param {number} mip_filter
|
|
772
|
+
* @param {number} anisotropy
|
|
773
|
+
* @returns {number}
|
|
774
|
+
*/
|
|
775
|
+
export function createTexture(width, height, depth, format, mipmaps, levels, wrap_u, wrap_v, mag_filter, min_filter, mip_filter, anisotropy) {
|
|
776
|
+
const ret = wasm.createTexture(width, height, depth, format, mipmaps, levels, wrap_u, wrap_v, mag_filter, min_filter, mip_filter, anisotropy);
|
|
777
|
+
return ret >>> 0;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* Makes a draw of `vertices` vertices for each of `instances` copies for the object in scene slot
|
|
782
|
+
* `slot`, whose material is a full shader of the sketch's that makes its vertices from the vertex
|
|
783
|
+
* and instance indices, and returns its id: 0 when the scene holds the most draws already. No mesh
|
|
784
|
+
* data and no per-instance data reach the GPU.
|
|
785
|
+
* @param {number} slot
|
|
786
|
+
* @param {number} vertices
|
|
787
|
+
* @param {number} instances
|
|
788
|
+
* @returns {number}
|
|
789
|
+
*/
|
|
790
|
+
export function createVertexDraw(slot, vertices, instances) {
|
|
791
|
+
const ret = wasm.createVertexDraw(slot, vertices, instances);
|
|
792
|
+
return ret >>> 0;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* Creates a 3D texture and returns its handle.
|
|
797
|
+
* @param {number} width
|
|
798
|
+
* @param {number} height
|
|
799
|
+
* @param {number} depth
|
|
800
|
+
* @param {number} format
|
|
801
|
+
* @returns {number}
|
|
802
|
+
*/
|
|
803
|
+
export function createVolumeTexture(width, height, depth, format) {
|
|
804
|
+
const ret = wasm.createVolumeTexture(width, height, depth, format);
|
|
805
|
+
return ret >>> 0;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Finds the frame's visible objects on the job workers, where the frame builder culls on the CPU,
|
|
810
|
+
* for a canvas of this size in device pixels. Call it before `recordFrame`, with the same `scale`
|
|
811
|
+
* and `built`: the render scale in thousandths, which the choice of levels of detail reads and
|
|
812
|
+
* which the views' frame values carry, and the newest frame that the thread that draws drew with
|
|
813
|
+
* every pipeline built. The frame values that the cull builds are the ones its frame draws with,
|
|
814
|
+
* so they must be the render size's, as `recordFrame`'s are.
|
|
815
|
+
* @param {number} frame
|
|
816
|
+
* @param {number} width
|
|
817
|
+
* @param {number} height
|
|
818
|
+
* @param {number} scale
|
|
819
|
+
* @param {number} built
|
|
820
|
+
* @returns {number}
|
|
821
|
+
*/
|
|
822
|
+
export function cullFrame(frame, width, height, scale, built) {
|
|
823
|
+
const ret = wasm.cullFrame(frame, width, height, scale, built);
|
|
824
|
+
return ret >>> 0;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* The address of a debug line array.
|
|
829
|
+
* @param {number} field
|
|
830
|
+
* @returns {number}
|
|
831
|
+
*/
|
|
832
|
+
export function debugLineArrays(field) {
|
|
833
|
+
const ret = wasm.debugLineArrays(field);
|
|
834
|
+
return ret >>> 0;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* The two-step answers of the last recorded frame, as the address of five 32-bit words in engine
|
|
839
|
+
* memory: whether the frame wanted the two-step pass, declared it, had its second step built and
|
|
840
|
+
* drew it, then the render scale in thousandths. The address is zero, with no answers to read,
|
|
841
|
+
* until `setDebugTwoStep(true)`.
|
|
842
|
+
* @returns {number}
|
|
843
|
+
*/
|
|
844
|
+
export function debugTwoStep() {
|
|
845
|
+
const ret = wasm.debugTwoStep();
|
|
846
|
+
return ret >>> 0;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* @param {number} batch
|
|
851
|
+
* @param {number} frame
|
|
852
|
+
* @returns {number}
|
|
853
|
+
*/
|
|
854
|
+
export function destroyBatch(batch, frame) {
|
|
855
|
+
const ret = wasm.destroyBatch(batch, frame);
|
|
856
|
+
return ret >>> 0;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* Drops the engine, so that `initEngine` can create another.
|
|
861
|
+
*/
|
|
862
|
+
export function destroyEngine() {
|
|
863
|
+
wasm.destroyEngine();
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* Forgets a draw whose instance count the GPU writes. Its object draws nothing from then on.
|
|
868
|
+
* @param {number} id
|
|
869
|
+
* @returns {number}
|
|
870
|
+
*/
|
|
871
|
+
export function destroyFeatureInstances(id) {
|
|
872
|
+
const ret = wasm.destroyFeatureInstances(id);
|
|
873
|
+
return ret >>> 0;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Frees a light's row.
|
|
878
|
+
* @param {number} light
|
|
879
|
+
* @returns {number}
|
|
880
|
+
*/
|
|
881
|
+
export function destroyLight(light) {
|
|
882
|
+
const ret = wasm.destroyLight(light);
|
|
883
|
+
return ret >>> 0;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* Destroys a material: objects that still use it draw nothing.
|
|
888
|
+
* @param {number} material
|
|
889
|
+
* @returns {number}
|
|
890
|
+
*/
|
|
891
|
+
export function destroyMaterial(material) {
|
|
892
|
+
const ret = wasm.destroyMaterial(material);
|
|
893
|
+
return ret >>> 0;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Destroys `count` meshes whose ids, counting from 1, the staging words hold: their data goes,
|
|
898
|
+
* the meshes after them in each page move down, and the next frame gives their ids to later
|
|
899
|
+
* meshes. Fails, destroying none, for an id that names no live mesh.
|
|
900
|
+
* @param {number} count
|
|
901
|
+
* @returns {number}
|
|
902
|
+
*/
|
|
903
|
+
export function destroyMeshes(count) {
|
|
904
|
+
const ret = wasm.destroyMeshes(count);
|
|
905
|
+
return ret >>> 0;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* Frees block `id` of the morph weight table.
|
|
910
|
+
* @param {number} id
|
|
911
|
+
* @returns {number}
|
|
912
|
+
*/
|
|
913
|
+
export function destroyMorphWeights(id) {
|
|
914
|
+
const ret = wasm.destroyMorphWeights(id);
|
|
915
|
+
return ret >>> 0;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* Forgets a particle system. Its object draws nothing from then on.
|
|
920
|
+
* @param {number} id
|
|
921
|
+
* @returns {number}
|
|
922
|
+
*/
|
|
923
|
+
export function destroyParticles(id) {
|
|
924
|
+
const ret = wasm.destroyParticles(id);
|
|
925
|
+
return ret >>> 0;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* Removes `skeleton` with its clips and joint masks; their ids go to later ones. Fails while an
|
|
930
|
+
* animated instance uses it. Clips of it that job workers still resample are dropped.
|
|
931
|
+
* @param {number} skeleton
|
|
932
|
+
* @returns {number}
|
|
933
|
+
*/
|
|
934
|
+
export function destroySkeleton(skeleton) {
|
|
935
|
+
const ret = wasm.destroySkeleton(skeleton);
|
|
936
|
+
return ret >>> 0;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* Destroys a texture.
|
|
941
|
+
* @param {number} texture
|
|
942
|
+
* @param {number} frame
|
|
943
|
+
* @returns {number}
|
|
944
|
+
*/
|
|
945
|
+
export function destroyTexture(texture, frame) {
|
|
946
|
+
const ret = wasm.destroyTexture(texture, frame);
|
|
947
|
+
return ret >>> 0;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* Forgets a draw that makes its vertices from a vertex count. Its object draws nothing from then
|
|
952
|
+
* on.
|
|
953
|
+
* @param {number} id
|
|
954
|
+
* @returns {number}
|
|
955
|
+
*/
|
|
956
|
+
export function destroyVertexDraw(id) {
|
|
957
|
+
const ret = wasm.destroyVertexDraw(id);
|
|
958
|
+
return ret >>> 0;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* Draws debug line points in the next frame.
|
|
963
|
+
* @param {number} points
|
|
964
|
+
* @returns {number}
|
|
965
|
+
*/
|
|
966
|
+
export function drawDebugLines(points) {
|
|
967
|
+
const ret = wasm.drawDebugLines(points);
|
|
968
|
+
return ret >>> 0;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* The address of the draw list of a frame parity. It moves when a frame needs more room than any
|
|
973
|
+
* before, so the thread that draws reads it with each frame.
|
|
974
|
+
* @param {number} parity
|
|
975
|
+
* @returns {number}
|
|
976
|
+
*/
|
|
977
|
+
export function drawListAddress(parity) {
|
|
978
|
+
const ret = wasm.drawListAddress(parity);
|
|
979
|
+
return ret >>> 0;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* The number of 32-bit words recorded for a frame.
|
|
984
|
+
* @param {number} frame
|
|
985
|
+
* @returns {number}
|
|
986
|
+
*/
|
|
987
|
+
export function drawListWords(frame) {
|
|
988
|
+
const ret = wasm.drawListWords(frame);
|
|
989
|
+
return ret >>> 0;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* True when the last recorded frame rebuilt its draw tables after a structure change.
|
|
994
|
+
* @returns {boolean}
|
|
995
|
+
*/
|
|
996
|
+
export function drawTablesRebuilt() {
|
|
997
|
+
const ret = wasm.drawTablesRebuilt();
|
|
998
|
+
return ret !== 0;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* The address of a custom effect's or a full-screen pass's texture handles, one for each texture
|
|
1003
|
+
* that its WGSL declares and 0 after them, which TypeScript writes with its values.
|
|
1004
|
+
* @returns {number}
|
|
1005
|
+
*/
|
|
1006
|
+
export function effectTextures() {
|
|
1007
|
+
const ret = wasm.effectTextures();
|
|
1008
|
+
return ret >>> 0;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
/**
|
|
1012
|
+
* The address of a custom effect's uniforms, the floats that TypeScript writes before it calls
|
|
1013
|
+
* `setEffect`.
|
|
1014
|
+
* @returns {number}
|
|
1015
|
+
*/
|
|
1016
|
+
export function effectValues() {
|
|
1017
|
+
const ret = wasm.effectValues();
|
|
1018
|
+
return ret >>> 0;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* Emits the births of a particle system's frame, fires the sub-emitters that fall due by its
|
|
1023
|
+
* end, and moves its time base when the time calls for it. The sketch writes the frame's numbers
|
|
1024
|
+
* into the emitter block first.
|
|
1025
|
+
* @param {number} id
|
|
1026
|
+
* @returns {number}
|
|
1027
|
+
*/
|
|
1028
|
+
export function emitParticleFrame(id) {
|
|
1029
|
+
const ret = wasm.emitParticleFrame(id);
|
|
1030
|
+
return ret >>> 0;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* Makes the table of joint overrides and look-at targets, once; returns 0.
|
|
1035
|
+
* @returns {number}
|
|
1036
|
+
*/
|
|
1037
|
+
export function enableJointOverrides() {
|
|
1038
|
+
const ret = wasm.enableJointOverrides();
|
|
1039
|
+
return ret >>> 0;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* The engine version, as the loader reports it.
|
|
1044
|
+
* @returns {string}
|
|
1045
|
+
*/
|
|
1046
|
+
export function engineVersion() {
|
|
1047
|
+
let deferred1_0;
|
|
1048
|
+
let deferred1_1;
|
|
1049
|
+
try {
|
|
1050
|
+
const ret = wasm.engineVersion();
|
|
1051
|
+
deferred1_0 = ret[0];
|
|
1052
|
+
deferred1_1 = ret[1];
|
|
1053
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1054
|
+
} finally {
|
|
1055
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* The address of the environment's values (`constants::environment_value`), which TypeScript
|
|
1061
|
+
* writes before it calls `setEnvironment`.
|
|
1062
|
+
* @returns {number}
|
|
1063
|
+
*/
|
|
1064
|
+
export function environmentValues() {
|
|
1065
|
+
const ret = wasm.environmentValues();
|
|
1066
|
+
return ret >>> 0;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* Stops a texture's load again for good.
|
|
1071
|
+
* @param {number} texture
|
|
1072
|
+
*/
|
|
1073
|
+
export function failTextureReload(texture) {
|
|
1074
|
+
wasm.failTextureReload(texture);
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* The id of the per-instance buffer that a draw whose instance count the GPU writes reads.
|
|
1079
|
+
* @param {number} id
|
|
1080
|
+
* @returns {number}
|
|
1081
|
+
*/
|
|
1082
|
+
export function featureInstanceBuffer(id) {
|
|
1083
|
+
const ret = wasm.featureInstanceBuffer(id);
|
|
1084
|
+
return ret >>> 0;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* The id of the count word that a draw whose instance count the GPU writes takes.
|
|
1089
|
+
* @param {number} id
|
|
1090
|
+
* @returns {number}
|
|
1091
|
+
*/
|
|
1092
|
+
export function featureInstanceCountBuffer(id) {
|
|
1093
|
+
const ret = wasm.featureInstanceCountBuffer(id);
|
|
1094
|
+
return ret >>> 0;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Creates the engine on the sketch thread, and the job system that `job_workers` job workers
|
|
1099
|
+
* serve, timing their work with the browser's clock. On WebGPU, `storage_binding_bytes` is the
|
|
1100
|
+
* largest storage binding of the device the engine draws with, and the capability flags say
|
|
1101
|
+
* whether it has transient attachments. On WebGL2 (`webgl2`), the capability flags say whether
|
|
1102
|
+
* the device has multi-draw and draws into targets of 16-bit floats, and `max_texture_size` is its
|
|
1103
|
+
* largest texture. Scene passes draw
|
|
1104
|
+
* into a target of format `scene_color`: a float format for HDR color, or the canvas's for the
|
|
1105
|
+
* 8-bit path. `antialias` is the anti-aliasing mode's code; an unknown code takes MSAA.
|
|
1106
|
+
* `transparent` keeps the canvas clear where nothing draws. Without `cell_culling`, culling tests
|
|
1107
|
+
* every object, with no grid cells skipped first. With `depth_prepass`, each camera view draws its
|
|
1108
|
+
* opaque objects' depth before it shades them. `prepass_color` is how such a prepass starts the
|
|
1109
|
+
* stand-in color that it never draws, where a screen step splits it from the opaque pass
|
|
1110
|
+
* (`constants::prepass_color`), which a benchmark page measures on WebGL2. `skinning` is the code
|
|
1111
|
+
* of WebGPU's skinning mode
|
|
1112
|
+
* (`constants::SKINNING`): the skinning pass with or without its savings, or the vertex shader of
|
|
1113
|
+
* each pass; an unknown code takes the default. With `index_instances`, WebGPU's vertex shaders
|
|
1114
|
+
* read each culled instance by index from storage buffers, not from a copy that the culling
|
|
1115
|
+
* shader writes, for the test of decision record D-23. With `large_world`, each object's position
|
|
1116
|
+
* holds whole cells besides its 32-bit part, so positions keep their precision at any distance.
|
|
1117
|
+
* With `gpu_occlusion`, WebGPU culls each camera view in two phases against a depth pyramid. With
|
|
1118
|
+
* `direct_draws`, WebGPU culls on the CPU and draws every bucket directly, which a start-up probe
|
|
1119
|
+
* picks on a device where the GPU's indirect draws are measurably slower. The shadow cascades
|
|
1120
|
+
* store depth in `shadow_depth_bits`: 32 for floats, else 16.
|
|
1121
|
+
* The scene starts with room for `expected_objects` objects, or for `START_OBJECTS` with 0, and
|
|
1122
|
+
* grows when it needs more (`ensure_room`, `grow_ahead`). Every other capacity is fixed from here
|
|
1123
|
+
* on.
|
|
1124
|
+
* Fills the heap, for a test, until it refuses a request just too large for its reserve, and then
|
|
1125
|
+
* makes plain requests, so that the reserve must carry them.
|
|
1126
|
+
*/
|
|
1127
|
+
export function fillHeapForTest() {
|
|
1128
|
+
wasm.fillHeapForTest();
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* Marks the area lights' tables as written, so the next frame uploads them and lists area
|
|
1133
|
+
* lights.
|
|
1134
|
+
* @returns {number}
|
|
1135
|
+
*/
|
|
1136
|
+
export function finishAreaLightTables() {
|
|
1137
|
+
const ret = wasm.finishAreaLightTables();
|
|
1138
|
+
return ret >>> 0;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* Marks light `light`'s image as written, so the next frame uploads it and the light shows it.
|
|
1143
|
+
* @param {number} light
|
|
1144
|
+
* @returns {number}
|
|
1145
|
+
*/
|
|
1146
|
+
export function finishLightImage(light) {
|
|
1147
|
+
const ret = wasm.finishLightImage(light);
|
|
1148
|
+
return ret >>> 0;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
/**
|
|
1152
|
+
* True when the last recorded frame's still view has accumulated enough frames that the thread
|
|
1153
|
+
* that draws may take frames without drawing them.
|
|
1154
|
+
* @returns {boolean}
|
|
1155
|
+
*/
|
|
1156
|
+
export function frameRests() {
|
|
1157
|
+
const ret = wasm.frameRests();
|
|
1158
|
+
return ret !== 0;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* Gives a cube texture texels from a generator and returns the generator's id.
|
|
1163
|
+
* @param {number} texture
|
|
1164
|
+
* @returns {number}
|
|
1165
|
+
*/
|
|
1166
|
+
export function generateTexture(texture) {
|
|
1167
|
+
const ret = wasm.generateTexture(texture);
|
|
1168
|
+
return ret >>> 0;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* Notes the GPU's time for frame `frame`, from its submit to its completion, in microseconds, which
|
|
1173
|
+
* GPU occlusion culling's check compares with its passes on and off. Elsewhere it does nothing.
|
|
1174
|
+
* @param {number} frame
|
|
1175
|
+
* @param {number} micros
|
|
1176
|
+
* @returns {number}
|
|
1177
|
+
*/
|
|
1178
|
+
export function gpuFrameTime(frame, micros) {
|
|
1179
|
+
const ret = wasm.gpuFrameTime(frame, micros);
|
|
1180
|
+
return ret >>> 0;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
* 1 while some mesh has levels of detail, which the quality governor's detail steps need, else 0.
|
|
1185
|
+
* @returns {number}
|
|
1186
|
+
*/
|
|
1187
|
+
export function hasLevels() {
|
|
1188
|
+
const ret = wasm.hasLevels();
|
|
1189
|
+
return ret >>> 0;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* Holds GPU occlusion culling's passes on in every frame from the next one on, without its
|
|
1194
|
+
* check's trials, or lets the check judge them again. Elsewhere it does nothing.
|
|
1195
|
+
* @param {boolean} held
|
|
1196
|
+
* @returns {number}
|
|
1197
|
+
*/
|
|
1198
|
+
export function holdOcclusionCheck(held) {
|
|
1199
|
+
const ret = wasm.holdOcclusionCheck(held);
|
|
1200
|
+
return ret >>> 0;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* 1 when the frame's passes read the motion since the frame before, as the motion debug view
|
|
1205
|
+
* does, so that hold mode draws the frame before the held one first, else 0.
|
|
1206
|
+
* @returns {number}
|
|
1207
|
+
*/
|
|
1208
|
+
export function holdsFrameBefore() {
|
|
1209
|
+
const ret = wasm.holdsFrameBefore();
|
|
1210
|
+
return ret >>> 0;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* Creates the animation table for `instances` animated objects with `joints` joints in all, at
|
|
1215
|
+
* most as many as the joint texture's rows hold on every WebGL2 device.
|
|
1216
|
+
* @param {number} instances
|
|
1217
|
+
* @param {number} joints
|
|
1218
|
+
* @returns {number}
|
|
1219
|
+
*/
|
|
1220
|
+
export function initAnimations(instances, joints) {
|
|
1221
|
+
const ret = wasm.initAnimations(instances, joints);
|
|
1222
|
+
return ret >>> 0;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* @param {number} job_workers
|
|
1227
|
+
* @param {number} expected_objects
|
|
1228
|
+
* @param {number} max_batches
|
|
1229
|
+
* @param {number} commands
|
|
1230
|
+
* @param {number} storage_binding_bytes
|
|
1231
|
+
* @param {boolean} webgl2
|
|
1232
|
+
* @param {number} capabilities
|
|
1233
|
+
* @param {number} max_texture_size
|
|
1234
|
+
* @param {number} scene_color
|
|
1235
|
+
* @param {number} antialias
|
|
1236
|
+
* @param {boolean} transparent
|
|
1237
|
+
* @param {boolean} cell_culling
|
|
1238
|
+
* @param {boolean} depth_prepass
|
|
1239
|
+
* @param {number} prepass_color
|
|
1240
|
+
* @param {number} skinning
|
|
1241
|
+
* @param {boolean} index_instances
|
|
1242
|
+
* @param {boolean} large_world
|
|
1243
|
+
* @param {boolean} gpu_occlusion
|
|
1244
|
+
* @param {boolean} direct_draws
|
|
1245
|
+
* @param {number} shadow_depth_bits
|
|
1246
|
+
* @returns {number}
|
|
1247
|
+
*/
|
|
1248
|
+
export function initEngine(job_workers, expected_objects, max_batches, commands, storage_binding_bytes, webgl2, capabilities, max_texture_size, scene_color, antialias, transparent, cell_culling, depth_prepass, prepass_color, skinning, index_instances, large_world, gpu_occlusion, direct_draws, shadow_depth_bits) {
|
|
1249
|
+
const ret = wasm.initEngine(job_workers, expected_objects, max_batches, commands, storage_binding_bytes, webgl2, capabilities, max_texture_size, scene_color, antialias, transparent, cell_culling, depth_prepass, prepass_color, skinning, index_instances, large_world, gpu_occlusion, direct_draws, shadow_depth_bits);
|
|
1250
|
+
return ret >>> 0;
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* True in the build compiled with atomics and shared memory.
|
|
1255
|
+
* @returns {boolean}
|
|
1256
|
+
*/
|
|
1257
|
+
export function isThreadedBuild() {
|
|
1258
|
+
const ret = wasm.isThreadedBuild();
|
|
1259
|
+
return ret !== 0;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* Ends one task call of job worker `index`.
|
|
1264
|
+
* @param {number} index
|
|
1265
|
+
*/
|
|
1266
|
+
export function jobWorkerCallDone(index) {
|
|
1267
|
+
wasm.jobWorkerCallDone(index);
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* The task calls of job worker `index` that it has not finished.
|
|
1272
|
+
* @param {number} index
|
|
1273
|
+
* @returns {number}
|
|
1274
|
+
*/
|
|
1275
|
+
export function jobWorkerCalls(index) {
|
|
1276
|
+
const ret = wasm.jobWorkerCalls(index);
|
|
1277
|
+
return ret >>> 0;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* Counts the frame chunk that job worker `index` held when its loop failed as done and as
|
|
1282
|
+
* failed, so the sketch thread's wait for it ends. The worker's own thread calls it after the
|
|
1283
|
+
* failure.
|
|
1284
|
+
* @param {number} index
|
|
1285
|
+
*/
|
|
1286
|
+
export function jobWorkerFailed(index) {
|
|
1287
|
+
wasm.jobWorkerFailed(index);
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
/**
|
|
1291
|
+
* Serves the job system on job worker `index` until it returns: 0 at stop, 1 for a call, 2 to
|
|
1292
|
+
* yield to the thread's own tasks.
|
|
1293
|
+
* @param {number} index
|
|
1294
|
+
* @returns {number}
|
|
1295
|
+
*/
|
|
1296
|
+
export function jobWorkerLoop(index) {
|
|
1297
|
+
const ret = wasm.jobWorkerLoop(index);
|
|
1298
|
+
return ret >>> 0;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
/**
|
|
1302
|
+
* The address of the job system's stop flag, a byte, or 0 before it exists.
|
|
1303
|
+
* @returns {number}
|
|
1304
|
+
*/
|
|
1305
|
+
export function jobsStopAddress() {
|
|
1306
|
+
const ret = wasm.jobsStopAddress();
|
|
1307
|
+
return ret >>> 0;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
/**
|
|
1311
|
+
* The address of the job system's wake word, or 0 before it exists.
|
|
1312
|
+
* @returns {number}
|
|
1313
|
+
*/
|
|
1314
|
+
export function jobsWakeAddress() {
|
|
1315
|
+
const ret = wasm.jobsWakeAddress();
|
|
1316
|
+
return ret >>> 0;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* The address of the job system's yield word, or 0 before it exists.
|
|
1321
|
+
* @returns {number}
|
|
1322
|
+
*/
|
|
1323
|
+
export function jobsYieldAddress() {
|
|
1324
|
+
const ret = wasm.jobsYieldAddress();
|
|
1325
|
+
return ret >>> 0;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* The code of the last failure on this thread, from the engine's error table (1101 and up).
|
|
1330
|
+
* @returns {number}
|
|
1331
|
+
*/
|
|
1332
|
+
export function lastErrorCode() {
|
|
1333
|
+
const ret = wasm.lastErrorCode();
|
|
1334
|
+
return ret >>> 0;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
/**
|
|
1338
|
+
* One of the last failure's two detail numbers; the error table says what each means.
|
|
1339
|
+
* @param {number} index
|
|
1340
|
+
* @returns {number}
|
|
1341
|
+
*/
|
|
1342
|
+
export function lastErrorDetail(index) {
|
|
1343
|
+
const ret = wasm.lastErrorDetail(index);
|
|
1344
|
+
return ret >>> 0;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* Makes room for light `light`'s image of `size` texels a side, and returns the address of its
|
|
1349
|
+
* half floats. The size is a power of two from `IMAGE_SIZE` to `MAX_IMAGE_SIZE` texels; a
|
|
1350
|
+
* detailed picture keeps more of its detail. Fails with E1501 when every place for an image is
|
|
1351
|
+
* taken, or when the size is one that no image takes.
|
|
1352
|
+
* @param {number} light
|
|
1353
|
+
* @param {number} size
|
|
1354
|
+
* @returns {number}
|
|
1355
|
+
*/
|
|
1356
|
+
export function lightImage(light, size) {
|
|
1357
|
+
const ret = wasm.lightImage(light, size);
|
|
1358
|
+
return ret >>> 0;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* True while a light's picture waits for its texture's texels to be copied.
|
|
1363
|
+
* @returns {number}
|
|
1364
|
+
*/
|
|
1365
|
+
export function lightImagesWaiting() {
|
|
1366
|
+
const ret = wasm.lightImagesWaiting();
|
|
1367
|
+
return ret >>> 0;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* The address of the block of the light probe grid's values (`LIGHT_PROBE_VALUE_*`), 32-bit floats
|
|
1372
|
+
* that TypeScript writes before it calls `setLightProbeGrid`.
|
|
1373
|
+
* @returns {number}
|
|
1374
|
+
*/
|
|
1375
|
+
export function lightProbeValues() {
|
|
1376
|
+
const ret = wasm.lightProbeValues();
|
|
1377
|
+
return ret >>> 0;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* Links block `id` of the morph weight table to the animated instance with id `instance` minus
|
|
1382
|
+
* one, whose skeleton's joints from `joint` on animate its weights, or with 0, unlinks it.
|
|
1383
|
+
* @param {number} id
|
|
1384
|
+
* @param {number} instance
|
|
1385
|
+
* @param {number} joint
|
|
1386
|
+
* @returns {number}
|
|
1387
|
+
*/
|
|
1388
|
+
export function linkMorphWeights(id, instance, joint) {
|
|
1389
|
+
const ret = wasm.linkMorphWeights(id, instance, joint);
|
|
1390
|
+
return ret >>> 0;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* Marks rows of a static batch for update and upload, or for a line batch, points whose segments
|
|
1395
|
+
* update.
|
|
1396
|
+
* @param {number} batch
|
|
1397
|
+
* @param {number} start
|
|
1398
|
+
* @param {number} count
|
|
1399
|
+
* @returns {number}
|
|
1400
|
+
*/
|
|
1401
|
+
export function markBatchDirty(batch, start, count) {
|
|
1402
|
+
const ret = wasm.markBatchDirty(batch, start, count);
|
|
1403
|
+
return ret >>> 0;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
/**
|
|
1407
|
+
* Marks `count` records of a particle system from `start` on, which TypeScript wrote, for the
|
|
1408
|
+
* next frame's upload.
|
|
1409
|
+
* @param {number} id
|
|
1410
|
+
* @param {number} start
|
|
1411
|
+
* @param {number} count
|
|
1412
|
+
* @returns {number}
|
|
1413
|
+
*/
|
|
1414
|
+
export function markParticleRecords(id, start, count) {
|
|
1415
|
+
const ret = wasm.markParticleRecords(id, start, count);
|
|
1416
|
+
return ret >>> 0;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* Marks a particle system's values, which TypeScript wrote, for the next frame's upload.
|
|
1421
|
+
* @param {number} id
|
|
1422
|
+
* @returns {number}
|
|
1423
|
+
*/
|
|
1424
|
+
export function markParticleValues(id) {
|
|
1425
|
+
const ret = wasm.markParticleValues(id);
|
|
1426
|
+
return ret >>> 0;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* The number of memory areas that `updateMemoryRegister` reports.
|
|
1431
|
+
* @returns {number}
|
|
1432
|
+
*/
|
|
1433
|
+
export function memoryAreas() {
|
|
1434
|
+
const ret = wasm.memoryAreas();
|
|
1435
|
+
return ret >>> 0;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
/**
|
|
1439
|
+
* The address of the memory epoch, which grows by one each time WebAssembly memory grows, so
|
|
1440
|
+
* TypeScript knows to rebuild its views.
|
|
1441
|
+
* @returns {number}
|
|
1442
|
+
*/
|
|
1443
|
+
export function memoryEpoch() {
|
|
1444
|
+
const ret = wasm.memoryEpoch();
|
|
1445
|
+
return ret >>> 0;
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* Makes room for `words` 32-bit words of a mesh's arrays, which TypeScript then writes, and
|
|
1450
|
+
* returns their address. `createMeshFromArrays` reads them, and frees them.
|
|
1451
|
+
* @param {number} words
|
|
1452
|
+
* @returns {number}
|
|
1453
|
+
*/
|
|
1454
|
+
export function meshArrays(words) {
|
|
1455
|
+
const ret = wasm.meshArrays(words);
|
|
1456
|
+
return ret >>> 0;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
/**
|
|
1460
|
+
* One axis of a mesh's bounding center, the center of the box around its vertices: 0 for x, 1
|
|
1461
|
+
* for y and 2 for z. 0 for an unknown mesh.
|
|
1462
|
+
* @param {number} mesh
|
|
1463
|
+
* @param {number} axis
|
|
1464
|
+
* @returns {number}
|
|
1465
|
+
*/
|
|
1466
|
+
export function meshCenter(mesh, axis) {
|
|
1467
|
+
const ret = wasm.meshCenter(mesh, axis);
|
|
1468
|
+
return ret;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* A mesh's vertex format: its attribute bits and type fields, or 0 for an unknown mesh. A mesh
|
|
1473
|
+
* with joints or morph targets has their bits.
|
|
1474
|
+
* @param {number} mesh
|
|
1475
|
+
* @returns {number}
|
|
1476
|
+
*/
|
|
1477
|
+
export function meshFormat(mesh) {
|
|
1478
|
+
const ret = wasm.meshFormat(mesh);
|
|
1479
|
+
return ret >>> 0;
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* The GPU bytes of every mesh: the mesh pages' buffers and the texture of morph deltas, as the
|
|
1484
|
+
* frames recorded so far made them.
|
|
1485
|
+
* @returns {number}
|
|
1486
|
+
*/
|
|
1487
|
+
export function meshMemoryBytes() {
|
|
1488
|
+
const ret = wasm.meshMemoryBytes();
|
|
1489
|
+
return ret;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* Writes part `part` of the live mesh `mesh`'s vertices and triangles, as the level planner reads
|
|
1494
|
+
* them, into the staging words, and returns their address: the mesh's part count, vertex count,
|
|
1495
|
+
* index count and format, the part's vertex and index counts, the mesh vertex that each of its
|
|
1496
|
+
* vertices holds, each attribute's floats and the part's triangles, as
|
|
1497
|
+
* `MeshStorage::planning_part` lays them out. The caller copies them before its next call that
|
|
1498
|
+
* uses the staging words.
|
|
1499
|
+
* @param {number} mesh
|
|
1500
|
+
* @param {number} part
|
|
1501
|
+
* @returns {number}
|
|
1502
|
+
*/
|
|
1503
|
+
export function meshPlanningPart(mesh, part) {
|
|
1504
|
+
const ret = wasm.meshPlanningPart(mesh, part);
|
|
1505
|
+
return ret >>> 0;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
/**
|
|
1509
|
+
* The distance from a mesh's bounding center to its farthest vertex, or 0 for an unknown mesh.
|
|
1510
|
+
* @param {number} mesh
|
|
1511
|
+
* @returns {number}
|
|
1512
|
+
*/
|
|
1513
|
+
export function meshRadius(mesh) {
|
|
1514
|
+
const ret = wasm.meshRadius(mesh);
|
|
1515
|
+
return ret;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* A mesh's vertex count, or 0 for an unknown mesh.
|
|
1520
|
+
* @param {number} mesh
|
|
1521
|
+
* @returns {number}
|
|
1522
|
+
*/
|
|
1523
|
+
export function meshVertexCount(mesh) {
|
|
1524
|
+
const ret = wasm.meshVertexCount(mesh);
|
|
1525
|
+
return ret >>> 0;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* The address of the morph weight table, or 0 before its first block.
|
|
1530
|
+
* @returns {number}
|
|
1531
|
+
*/
|
|
1532
|
+
export function morphWeightsAddress() {
|
|
1533
|
+
const ret = wasm.morphWeightsAddress();
|
|
1534
|
+
return ret >>> 0;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* The first weight of block `id` in the morph weight table.
|
|
1539
|
+
* @param {number} id
|
|
1540
|
+
* @returns {number}
|
|
1541
|
+
*/
|
|
1542
|
+
export function morphWeightsFirst(id) {
|
|
1543
|
+
const ret = wasm.morphWeightsFirst(id);
|
|
1544
|
+
return ret >>> 0;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
/**
|
|
1548
|
+
* The sources inside the camera's frustum that occlusion culling hid: in a recorded frame, where
|
|
1549
|
+
* the frame builder culls on the CPU, or in the newest frame whose counts the GPU sent back, where
|
|
1550
|
+
* GPU occlusion culling runs. `NOT_COUNTED` where neither runs.
|
|
1551
|
+
* @param {number} frame
|
|
1552
|
+
* @returns {number}
|
|
1553
|
+
*/
|
|
1554
|
+
export function occludedEntries(frame) {
|
|
1555
|
+
const ret = wasm.occludedEntries(frame);
|
|
1556
|
+
return ret >>> 0;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
/**
|
|
1560
|
+
* Finds the objects on the layers of `layers` with a triangle in the input's sphere or box.
|
|
1561
|
+
* @param {number} kind
|
|
1562
|
+
* @param {number} layers
|
|
1563
|
+
* @returns {number}
|
|
1564
|
+
*/
|
|
1565
|
+
export function overlap(kind, layers) {
|
|
1566
|
+
const ret = wasm.overlap(kind, layers);
|
|
1567
|
+
return ret >>> 0;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* Makes room for a particle system's emitter block of `floats` numbers and returns its address,
|
|
1572
|
+
* or 0 for no such system or when the memory cannot grow. The sketch writes the emitter's
|
|
1573
|
+
* settings into the block and calls `configureParticleEmitter` once, then writes the frame's
|
|
1574
|
+
* numbers and calls `emitParticleFrame` in every frame.
|
|
1575
|
+
* @param {number} id
|
|
1576
|
+
* @param {number} floats
|
|
1577
|
+
* @returns {number}
|
|
1578
|
+
*/
|
|
1579
|
+
export function particleEmitterBlock(id, floats) {
|
|
1580
|
+
const ret = wasm.particleEmitterBlock(id, floats);
|
|
1581
|
+
return ret >>> 0;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
/**
|
|
1585
|
+
* Makes room for `count` births' parameters and returns the address of the block's first
|
|
1586
|
+
* number, which the sketch fills before it asks for their records. Each birth takes nine
|
|
1587
|
+
* numbers: the birth place, the birth time, the velocity, the lifetime and the seed. 0 means the
|
|
1588
|
+
* memory cannot grow.
|
|
1589
|
+
* @param {number} count
|
|
1590
|
+
* @returns {number}
|
|
1591
|
+
*/
|
|
1592
|
+
export function particleRecordBlock(count) {
|
|
1593
|
+
const ret = wasm.particleRecordBlock(count);
|
|
1594
|
+
return ret >>> 0;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
* The address of a particle system's records in engine memory, or 0 for no such system.
|
|
1599
|
+
* @param {number} id
|
|
1600
|
+
* @returns {number}
|
|
1601
|
+
*/
|
|
1602
|
+
export function particleRecords(id) {
|
|
1603
|
+
const ret = wasm.particleRecords(id);
|
|
1604
|
+
return ret >>> 0;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* The address of a particle system's sub-emitter inverse world matrices, 16 numbers each, or 0
|
|
1609
|
+
* for none. The sketch writes them for the frame's events.
|
|
1610
|
+
* @param {number} id
|
|
1611
|
+
* @returns {number}
|
|
1612
|
+
*/
|
|
1613
|
+
export function particleSubMatrices(id) {
|
|
1614
|
+
const ret = wasm.particleSubMatrices(id);
|
|
1615
|
+
return ret >>> 0;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* The address of a particle system's values in engine memory, then its frame's values, or 0 for
|
|
1620
|
+
* no such system.
|
|
1621
|
+
* @param {number} id
|
|
1622
|
+
* @returns {number}
|
|
1623
|
+
*/
|
|
1624
|
+
export function particleValues(id) {
|
|
1625
|
+
const ret = wasm.particleValues(id);
|
|
1626
|
+
return ret >>> 0;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
/**
|
|
1630
|
+
* The address in engine memory of the readback ring's regions, one after another.
|
|
1631
|
+
* @returns {number}
|
|
1632
|
+
*/
|
|
1633
|
+
export function passReadAddress() {
|
|
1634
|
+
const ret = wasm.passReadAddress();
|
|
1635
|
+
return ret >>> 0;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
* The bytes of one readback ring region.
|
|
1640
|
+
* @returns {number}
|
|
1641
|
+
*/
|
|
1642
|
+
export function passReadStride() {
|
|
1643
|
+
const ret = wasm.passReadStride();
|
|
1644
|
+
return ret >>> 0;
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
/**
|
|
1648
|
+
* The ranges of cluster-tree patches that a recorded frame's views draw, the shadow views included,
|
|
1649
|
+
* or `NOT_COUNTED` where the GPU path picks the patches itself.
|
|
1650
|
+
* @param {number} frame
|
|
1651
|
+
* @returns {number}
|
|
1652
|
+
*/
|
|
1653
|
+
export function patchRanges(frame) {
|
|
1654
|
+
const ret = wasm.patchRanges(frame);
|
|
1655
|
+
return ret >>> 0;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* True when the frame that recorded the landed pick drew every source of the scene. Else a pick
|
|
1660
|
+
* answers with a raycast, which tests triangles and ignores masks. The frame is the one that
|
|
1661
|
+
* copied the ids, not the frame that reads them, since the scene can change between the two.
|
|
1662
|
+
* @returns {number}
|
|
1663
|
+
*/
|
|
1664
|
+
export function pickCoversScene() {
|
|
1665
|
+
const ret = wasm.pickCoversScene();
|
|
1666
|
+
return ret >>> 0;
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
/**
|
|
1670
|
+
* The engine frame that recorded the landed pick, or -1 when no pick has landed. A ray from that
|
|
1671
|
+
* frame's camera finds the texture coordinates of the pixel that the pick tested.
|
|
1672
|
+
* @returns {number}
|
|
1673
|
+
*/
|
|
1674
|
+
export function pickFrame() {
|
|
1675
|
+
const ret = wasm.pickFrame();
|
|
1676
|
+
return ret;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
/**
|
|
1680
|
+
* The address in engine memory of the pick ring's results, four words for each read.
|
|
1681
|
+
* @returns {number}
|
|
1682
|
+
*/
|
|
1683
|
+
export function pickResultAddress() {
|
|
1684
|
+
const ret = wasm.pickResultAddress();
|
|
1685
|
+
return ret >>> 0;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
/**
|
|
1689
|
+
* The object or batch id that a pick's source key names, or 0 for a key that names nothing, such
|
|
1690
|
+
* as a miss.
|
|
1691
|
+
* @param {number} key
|
|
1692
|
+
* @returns {number}
|
|
1693
|
+
*/
|
|
1694
|
+
export function pickTargetId(key) {
|
|
1695
|
+
const ret = wasm.pickTargetId(key);
|
|
1696
|
+
return ret >>> 0;
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
/**
|
|
1700
|
+
* The instance row that a pick's source key names, or 0xFFFFFFFF for an object of the scene.
|
|
1701
|
+
* @param {number} key
|
|
1702
|
+
* @returns {number}
|
|
1703
|
+
*/
|
|
1704
|
+
export function pickTargetRow(key) {
|
|
1705
|
+
const ret = wasm.pickTargetRow(key);
|
|
1706
|
+
return ret >>> 0;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
/**
|
|
1710
|
+
* The generation of the plan's texture list, which changes when a pass change makes the frame
|
|
1711
|
+
* make some targets again. A frame's list recorded under an older generation names textures that
|
|
1712
|
+
* a later plan replaced, so the thread that draws skips it.
|
|
1713
|
+
* @returns {number}
|
|
1714
|
+
*/
|
|
1715
|
+
export function planEpoch() {
|
|
1716
|
+
const ret = wasm.planEpoch();
|
|
1717
|
+
return ret >>> 0;
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* The address of the post-processing values (`constants::post_value`), which TypeScript writes
|
|
1722
|
+
* before it calls `setOutput`, `setBloom`, `setLut`, `setVignette`, `setSharpen` or `setOutline`.
|
|
1723
|
+
* @returns {number}
|
|
1724
|
+
*/
|
|
1725
|
+
export function postValues() {
|
|
1726
|
+
const ret = wasm.postValues();
|
|
1727
|
+
return ret >>> 0;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
/**
|
|
1731
|
+
* Wakes the job workers ahead of the frame's engine work when the previous frame gave them work,
|
|
1732
|
+
* so they are ready when this frame's parallel work comes.
|
|
1733
|
+
*/
|
|
1734
|
+
export function prepareJobs() {
|
|
1735
|
+
wasm.prepareJobs();
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* Takes the id of the reflection probes' generator.
|
|
1740
|
+
* @returns {number}
|
|
1741
|
+
*/
|
|
1742
|
+
export function probeGenerator() {
|
|
1743
|
+
const ret = wasm.probeGenerator();
|
|
1744
|
+
return ret >>> 0;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* True while a reflection probe waits for its first capture.
|
|
1749
|
+
* @returns {number}
|
|
1750
|
+
*/
|
|
1751
|
+
export function probesWaiting() {
|
|
1752
|
+
const ret = wasm.probesWaiting();
|
|
1753
|
+
return ret >>> 0;
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
/**
|
|
1757
|
+
* The address of a query array, or the hit array's capacity in records.
|
|
1758
|
+
* @param {number} field
|
|
1759
|
+
* @returns {number}
|
|
1760
|
+
*/
|
|
1761
|
+
export function queryArrays(field) {
|
|
1762
|
+
const ret = wasm.queryArrays(field);
|
|
1763
|
+
return ret >>> 0;
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
* Casts the input's ray on the layers of `layers`.
|
|
1768
|
+
* @param {number} kind
|
|
1769
|
+
* @param {number} layers
|
|
1770
|
+
* @returns {number}
|
|
1771
|
+
*/
|
|
1772
|
+
export function raycast(kind, layers) {
|
|
1773
|
+
const ret = wasm.raycast(kind, layers);
|
|
1774
|
+
return ret >>> 0;
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
/**
|
|
1778
|
+
* Casts the first `count` rays of the ray array on the job workers.
|
|
1779
|
+
* @param {number} count
|
|
1780
|
+
* @param {number} layers
|
|
1781
|
+
* @returns {number}
|
|
1782
|
+
*/
|
|
1783
|
+
export function raycastBatch(count, layers) {
|
|
1784
|
+
const ret = wasm.raycastBatch(count, layers);
|
|
1785
|
+
return ret >>> 0;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* 1 when the frame recorded last draws with what the frame before it drew, as screen-space
|
|
1790
|
+
* reflections read the frame before's color, else 0. Hold mode then records its frame twice.
|
|
1791
|
+
* @returns {number}
|
|
1792
|
+
*/
|
|
1793
|
+
export function readsLastFrame() {
|
|
1794
|
+
const ret = wasm.readsLastFrame();
|
|
1795
|
+
return ret >>> 0;
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* Records the frame's upload list and its draw list for a canvas of this size in device pixels.
|
|
1800
|
+
* The scene draws at a render scale of `scale` thousandths of the canvas's width and height, from
|
|
1801
|
+
* 1 to 1000.
|
|
1802
|
+
* @param {number} frame
|
|
1803
|
+
* @param {number} width
|
|
1804
|
+
* @param {number} height
|
|
1805
|
+
* @param {number} scale
|
|
1806
|
+
* @param {number} built
|
|
1807
|
+
* @returns {number}
|
|
1808
|
+
*/
|
|
1809
|
+
export function recordFrame(frame, width, height, scale, built) {
|
|
1810
|
+
const ret = wasm.recordFrame(frame, width, height, scale, built);
|
|
1811
|
+
return ret >>> 0;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
/**
|
|
1815
|
+
* Removes an animated instance; its id and joints go to later instances.
|
|
1816
|
+
* @param {number} instance
|
|
1817
|
+
* @returns {number}
|
|
1818
|
+
*/
|
|
1819
|
+
export function removeAnimatedInstance(instance) {
|
|
1820
|
+
const ret = wasm.removeAnimatedInstance(instance);
|
|
1821
|
+
return ret >>> 0;
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* Takes light `light`'s image away, so it lights with its color alone.
|
|
1826
|
+
* @param {number} light
|
|
1827
|
+
* @returns {number}
|
|
1828
|
+
*/
|
|
1829
|
+
export function removeLightImage(light) {
|
|
1830
|
+
const ret = wasm.removeLightImage(light);
|
|
1831
|
+
return ret >>> 0;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* Removes a reflection probe.
|
|
1836
|
+
* @param {number} slot
|
|
1837
|
+
* @returns {number}
|
|
1838
|
+
*/
|
|
1839
|
+
export function removeReflectionProbe(slot) {
|
|
1840
|
+
const ret = wasm.removeReflectionProbe(slot);
|
|
1841
|
+
return ret >>> 0;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
* Removes the scene pass of view place `place`, from 1. Fails with the render graph's error
|
|
1846
|
+
* (E1502 to E1505) when another running pass reads its target, and keeps the pass.
|
|
1847
|
+
* @param {number} place
|
|
1848
|
+
* @returns {number}
|
|
1849
|
+
*/
|
|
1850
|
+
export function removeScenePass(place) {
|
|
1851
|
+
const ret = wasm.removeScenePass(place);
|
|
1852
|
+
return ret >>> 0;
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Removes the view of place `place`, from 1: a scene pass, a reflection pass or a view that
|
|
1857
|
+
* draws into a rectangle of the canvas.
|
|
1858
|
+
* @param {number} place
|
|
1859
|
+
* @returns {number}
|
|
1860
|
+
*/
|
|
1861
|
+
export function removeSceneView(place) {
|
|
1862
|
+
const ret = wasm.removeSceneView(place);
|
|
1863
|
+
return ret >>> 0;
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
/**
|
|
1867
|
+
* The render graph of the passes as they are now, as Graphviz DOT text.
|
|
1868
|
+
* @returns {string}
|
|
1869
|
+
*/
|
|
1870
|
+
export function renderGraphDot() {
|
|
1871
|
+
let deferred1_0;
|
|
1872
|
+
let deferred1_1;
|
|
1873
|
+
try {
|
|
1874
|
+
const ret = wasm.renderGraphDot();
|
|
1875
|
+
deferred1_0 = ret[0];
|
|
1876
|
+
deferred1_1 = ret[1];
|
|
1877
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1878
|
+
} finally {
|
|
1879
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* The message of the last render graph error that a call met, with the passes and resources by
|
|
1885
|
+
* name.
|
|
1886
|
+
* @returns {string}
|
|
1887
|
+
*/
|
|
1888
|
+
export function renderGraphMessage() {
|
|
1889
|
+
let deferred1_0;
|
|
1890
|
+
let deferred1_1;
|
|
1891
|
+
try {
|
|
1892
|
+
const ret = wasm.renderGraphMessage();
|
|
1893
|
+
deferred1_0 = ret[0];
|
|
1894
|
+
deferred1_1 = ret[1];
|
|
1895
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1896
|
+
} finally {
|
|
1897
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
/**
|
|
1902
|
+
* Gives the live mesh `mesh` the `indices` triangles that TypeScript wrote into the staging words,
|
|
1903
|
+
* which the call frees, in place of the triangles it drew. A staged level that arrives after its
|
|
1904
|
+
* base replaces the base's triangles this way, so the objects that draw the base draw the finer
|
|
1905
|
+
* geometry at once. The indices name the mesh's own vertices. Fails with the problem for a mesh
|
|
1906
|
+
* that cannot take them: one that is split into parts, morphed, a level of its own, or drawn as
|
|
1907
|
+
* lines. Returns 0 when the mesh takes the list.
|
|
1908
|
+
* @param {number} mesh
|
|
1909
|
+
* @param {number} indices
|
|
1910
|
+
* @returns {number}
|
|
1911
|
+
*/
|
|
1912
|
+
export function replaceMeshIndices(mesh, indices) {
|
|
1913
|
+
const ret = wasm.replaceMeshIndices(mesh, indices);
|
|
1914
|
+
return ret >>> 0;
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
/**
|
|
1918
|
+
* Asks the next recorded frame to copy a region of the compute pass of view place `place` back
|
|
1919
|
+
* into engine memory: `x` and `y` are texels from the texture's stored first row, `width` and
|
|
1920
|
+
* `height` its size, and `layer` the array layer. `ring` names the read of the readback ring and
|
|
1921
|
+
* `slot` the control slot that rises once the bytes are in engine memory. Returns 0 when another
|
|
1922
|
+
* read waits for its frame, the target's format code plus one when the frame will copy the region,
|
|
1923
|
+
* and the largest number when the pass or the region cannot be read.
|
|
1924
|
+
* @param {number} place
|
|
1925
|
+
* @param {number} x
|
|
1926
|
+
* @param {number} y
|
|
1927
|
+
* @param {number} width
|
|
1928
|
+
* @param {number} height
|
|
1929
|
+
* @param {number} layer
|
|
1930
|
+
* @param {number} ring
|
|
1931
|
+
* @param {number} slot
|
|
1932
|
+
* @returns {number}
|
|
1933
|
+
*/
|
|
1934
|
+
export function requestPassRead(place, x, y, width, height, layer, ring, slot) {
|
|
1935
|
+
const ret = wasm.requestPassRead(place, x, y, width, height, layer, ring, slot);
|
|
1936
|
+
return ret >>> 0;
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
/**
|
|
1940
|
+
* Asks the next recorded frame to answer which object draws at a pixel of the canvas. `x` and
|
|
1941
|
+
* `y` are whole CSS pixels from its top-left corner, `ring` names the read of the pick ring that
|
|
1942
|
+
* the answer lands in, and `slot` the control slot that the read raises once its bytes are in
|
|
1943
|
+
* engine memory. Returns 0 when the frame will draw the pick, and 1 when a pick already waits for
|
|
1944
|
+
* a frame.
|
|
1945
|
+
* @param {number} x
|
|
1946
|
+
* @param {number} y
|
|
1947
|
+
* @param {number} ring
|
|
1948
|
+
* @param {number} slot
|
|
1949
|
+
* @returns {number}
|
|
1950
|
+
*/
|
|
1951
|
+
export function requestPick(x, y, ring, slot) {
|
|
1952
|
+
const ret = wasm.requestPick(x, y, ring, slot);
|
|
1953
|
+
return ret >>> 0;
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
/**
|
|
1957
|
+
* The clips that loading resampled at each frame, plus one: the others held keys on their frames
|
|
1958
|
+
* already, as the asset tool writes them, and were copied.
|
|
1959
|
+
* @returns {number}
|
|
1960
|
+
*/
|
|
1961
|
+
export function resampledClips() {
|
|
1962
|
+
const ret = wasm.resampledClips();
|
|
1963
|
+
return ret >>> 0;
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
/**
|
|
1967
|
+
* Makes the rows' own distance ranges of a batch, two floats a row, if they do not exist, and
|
|
1968
|
+
* returns their address. The first call fills every row with the batch's range. Fails with the
|
|
1969
|
+
* core's error when memory cannot grow.
|
|
1970
|
+
* @param {number} batch
|
|
1971
|
+
* @returns {number}
|
|
1972
|
+
*/
|
|
1973
|
+
export function reserveBatchRanges(batch) {
|
|
1974
|
+
const ret = wasm.reserveBatchRanges(batch);
|
|
1975
|
+
return ret >>> 0;
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
/**
|
|
1979
|
+
* Makes room for debug line points.
|
|
1980
|
+
* @param {number} points
|
|
1981
|
+
* @returns {number}
|
|
1982
|
+
*/
|
|
1983
|
+
export function reserveDebugLines(points) {
|
|
1984
|
+
const ret = wasm.reserveDebugLines(points);
|
|
1985
|
+
return ret >>> 0;
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
/**
|
|
1989
|
+
* Reserves an object slot, growing the scene when it is full, and returns its handle; TypeScript
|
|
1990
|
+
* writes the object's transform, then a create command.
|
|
1991
|
+
* @returns {number}
|
|
1992
|
+
*/
|
|
1993
|
+
export function reserveObject() {
|
|
1994
|
+
const ret = wasm.reserveObject();
|
|
1995
|
+
return ret >>> 0;
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
/**
|
|
1999
|
+
* Reserves `count` object slots at once, growing the scene when too few are free, or reserves
|
|
2000
|
+
* none when it cannot grow, and returns the address
|
|
2001
|
+
* of their handles in the staging words. TypeScript writes the objects' transforms, then their
|
|
2002
|
+
* create commands, as after `reserveObject`.
|
|
2003
|
+
* @param {number} count
|
|
2004
|
+
* @returns {number}
|
|
2005
|
+
*/
|
|
2006
|
+
export function reserveObjects(count) {
|
|
2007
|
+
const ret = wasm.reserveObjects(count);
|
|
2008
|
+
return ret >>> 0;
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
/**
|
|
2012
|
+
* Makes room for a batch of `count` rays.
|
|
2013
|
+
* @param {number} count
|
|
2014
|
+
* @returns {number}
|
|
2015
|
+
*/
|
|
2016
|
+
export function reserveRays(count) {
|
|
2017
|
+
const ret = wasm.reserveRays(count);
|
|
2018
|
+
return ret >>> 0;
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
/**
|
|
2022
|
+
* Asks the compute pass of view place `place`, from 1, to start its states again: the next frame
|
|
2023
|
+
* clears both states before the pass's first run.
|
|
2024
|
+
* @param {number} place
|
|
2025
|
+
* @returns {number}
|
|
2026
|
+
*/
|
|
2027
|
+
export function resetComputeState(place) {
|
|
2028
|
+
const ret = wasm.resetComputeState(place);
|
|
2029
|
+
return ret >>> 0;
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
/**
|
|
2033
|
+
* Makes the next recorded frame create every GPU object again and upload the whole scene, after
|
|
2034
|
+
* the thread that draws replaced a GPU device the browser took away.
|
|
2035
|
+
* @returns {number}
|
|
2036
|
+
*/
|
|
2037
|
+
export function resetGpu() {
|
|
2038
|
+
const ret = wasm.resetGpu();
|
|
2039
|
+
return ret >>> 0;
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
/**
|
|
2043
|
+
* The address of one of the per-slot arrays TypeScript writes (see `constants::scene_field`):
|
|
2044
|
+
* positions (3 floats), rotations (4), scales (3), local bounding radii (1), local bounding
|
|
2045
|
+
* sphere centres (3), the whole cells of each position (3 integers, or 0 without large-world
|
|
2046
|
+
* mode), or the dirty bitset's words, which TypeScript views as 32-bit words.
|
|
2047
|
+
* @param {number} field
|
|
2048
|
+
* @returns {number}
|
|
2049
|
+
*/
|
|
2050
|
+
export function sceneArrays(field) {
|
|
2051
|
+
const ret = wasm.sceneArrays(field);
|
|
2052
|
+
return ret >>> 0;
|
|
2053
|
+
}
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* The number of object slots; arrays have one more row, because slot 0 is never used.
|
|
2057
|
+
* @returns {number}
|
|
2058
|
+
*/
|
|
2059
|
+
export function sceneCapacity() {
|
|
2060
|
+
const ret = wasm.sceneCapacity();
|
|
2061
|
+
return ret >>> 0;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
/**
|
|
2065
|
+
* Turns ambient occlusion on with its settings from the post-processing values, or off, from the
|
|
2066
|
+
* next frame on. The TypeScript API checks the values.
|
|
2067
|
+
* @param {boolean} on
|
|
2068
|
+
* @returns {number}
|
|
2069
|
+
*/
|
|
2070
|
+
export function setAo(on) {
|
|
2071
|
+
const ret = wasm.setAo(on);
|
|
2072
|
+
return ret >>> 0;
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
/**
|
|
2076
|
+
* Sets the size of ambient occlusion's targets, in thousandths of the render size each way, from
|
|
2077
|
+
* the next frame on: 0 draws none.
|
|
2078
|
+
* @param {number} thousandths
|
|
2079
|
+
* @returns {number}
|
|
2080
|
+
*/
|
|
2081
|
+
export function setAoScale(thousandths) {
|
|
2082
|
+
const ret = wasm.setAoScale(thousandths);
|
|
2083
|
+
return ret >>> 0;
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
/**
|
|
2087
|
+
* Sets the most area lights that one frame shades, from the next frame on: the quality preset's
|
|
2088
|
+
* `areaLights`. Past it, the area lights nearest the camera shade.
|
|
2089
|
+
* @param {number} cap
|
|
2090
|
+
* @returns {number}
|
|
2091
|
+
*/
|
|
2092
|
+
export function setAreaLightCap(cap) {
|
|
2093
|
+
const ret = wasm.setAreaLightCap(cap);
|
|
2094
|
+
return ret >>> 0;
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
/**
|
|
2098
|
+
* Turns automatic exposure on with its metering, percentiles, center weight, speeds, range and
|
|
2099
|
+
* compensation from the post-processing values, or off, from the next frame on. The TypeScript
|
|
2100
|
+
* API checks the values.
|
|
2101
|
+
* @param {boolean} on
|
|
2102
|
+
* @returns {number}
|
|
2103
|
+
*/
|
|
2104
|
+
export function setAutoExposure(on) {
|
|
2105
|
+
const ret = wasm.setAutoExposure(on);
|
|
2106
|
+
return ret >>> 0;
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
/**
|
|
2110
|
+
* The linear background color: the first three call values.
|
|
2111
|
+
* @returns {number}
|
|
2112
|
+
*/
|
|
2113
|
+
export function setBackground() {
|
|
2114
|
+
const ret = wasm.setBackground();
|
|
2115
|
+
return ret >>> 0;
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2118
|
+
/**
|
|
2119
|
+
* Draws a background source behind every object, or none.
|
|
2120
|
+
* @param {number} kind
|
|
2121
|
+
* @param {number} texture
|
|
2122
|
+
* @returns {number}
|
|
2123
|
+
*/
|
|
2124
|
+
export function setBackgroundSource(kind, texture) {
|
|
2125
|
+
const ret = wasm.setBackgroundSource(kind, texture);
|
|
2126
|
+
return ret >>> 0;
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
/**
|
|
2130
|
+
* Draws only the first `count` rows, or for a line batch, the segments of its first `count`
|
|
2131
|
+
* points.
|
|
2132
|
+
* @param {number} batch
|
|
2133
|
+
* @param {number} count
|
|
2134
|
+
* @returns {number}
|
|
2135
|
+
*/
|
|
2136
|
+
export function setBatchActiveCount(batch, count) {
|
|
2137
|
+
const ret = wasm.setBatchActiveCount(batch, count);
|
|
2138
|
+
return ret >>> 0;
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
/**
|
|
2142
|
+
* Gives every row of a batch a bounding sphere of the first call value's meters around its own
|
|
2143
|
+
* origin, in place of the mesh's own radius. A vertex shader that carries rows away from their
|
|
2144
|
+
* origins, such as traffic along a lane, needs this, or culling drops rows that are still on the
|
|
2145
|
+
* screen. The rows of a batch share their bucket's sphere center, the mesh's, so the sphere grows
|
|
2146
|
+
* around that center until it holds the one around the origin. Every row is marked for update, so
|
|
2147
|
+
* the next frame writes its new sphere, and the renderer's tables are built again, so the GPU
|
|
2148
|
+
* culling reads the new radius too.
|
|
2149
|
+
* @param {number} batch
|
|
2150
|
+
* @returns {number}
|
|
2151
|
+
*/
|
|
2152
|
+
export function setBatchBounds(batch) {
|
|
2153
|
+
const ret = wasm.setBatchBounds(batch);
|
|
2154
|
+
return ret >>> 0;
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
/**
|
|
2158
|
+
* Sets the layer mask of every row of a batch. Like a new active count, a new mask needs no
|
|
2159
|
+
* rebuild of the renderer's tables.
|
|
2160
|
+
* Sets the distances between which every row of a batch draws, from the call values: the start
|
|
2161
|
+
* distance, which is 0 for none, and the end distance, which is infinite for none. A row with an
|
|
2162
|
+
* entry of its own in the batch's row ranges keeps it. The renderer's tables depend on the range,
|
|
2163
|
+
* so a change rebuilds them.
|
|
2164
|
+
* @param {number} batch
|
|
2165
|
+
* @returns {number}
|
|
2166
|
+
*/
|
|
2167
|
+
export function setBatchDrawRange(batch) {
|
|
2168
|
+
const ret = wasm.setBatchDrawRange(batch);
|
|
2169
|
+
return ret >>> 0;
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
/**
|
|
2173
|
+
* @param {number} batch
|
|
2174
|
+
* @param {number} mask
|
|
2175
|
+
* @returns {number}
|
|
2176
|
+
*/
|
|
2177
|
+
export function setBatchLayers(batch, mask) {
|
|
2178
|
+
const ret = wasm.setBatchLayers(batch, mask);
|
|
2179
|
+
return ret >>> 0;
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
/**
|
|
2183
|
+
* Places a batch's origin, which its rows' positions are relative to, at the first three call
|
|
2184
|
+
* values in 64-bit floats, and marks every row for update.
|
|
2185
|
+
* @param {number} batch
|
|
2186
|
+
* @returns {number}
|
|
2187
|
+
*/
|
|
2188
|
+
export function setBatchOrigin(batch) {
|
|
2189
|
+
const ret = wasm.setBatchOrigin(batch);
|
|
2190
|
+
return ret >>> 0;
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
/**
|
|
2194
|
+
* Sets whether every row of a batch casts shadows, receives them and may hide others in GPU
|
|
2195
|
+
* occlusion culling, from the cast, receive and opt-out bits of an object's flags. Sprite and line
|
|
2196
|
+
* batches take none. The renderer's tables depend on the bits, so a change rebuilds them, as an
|
|
2197
|
+
* object's new flags do.
|
|
2198
|
+
* @param {number} batch
|
|
2199
|
+
* @param {number} bits
|
|
2200
|
+
* @returns {number}
|
|
2201
|
+
*/
|
|
2202
|
+
export function setBatchShadows(batch, bits) {
|
|
2203
|
+
const ret = wasm.setBatchShadows(batch, bits);
|
|
2204
|
+
return ret >>> 0;
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
/**
|
|
2208
|
+
* Keeps every row of a batch whatever a view's frustum says, or culls its rows again.
|
|
2209
|
+
* @param {number} batch
|
|
2210
|
+
* @param {boolean} unculled
|
|
2211
|
+
* @returns {number}
|
|
2212
|
+
*/
|
|
2213
|
+
export function setBatchUnculled(batch, unculled) {
|
|
2214
|
+
const ret = wasm.setBatchUnculled(batch, unculled);
|
|
2215
|
+
return ret >>> 0;
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
/**
|
|
2219
|
+
* Turns bloom on with its intensity, threshold, soft edge, blend and level weights from the
|
|
2220
|
+
* post-processing values, or off, from the next frame on. The TypeScript API checks the values.
|
|
2221
|
+
* @param {boolean} on
|
|
2222
|
+
* @returns {number}
|
|
2223
|
+
*/
|
|
2224
|
+
export function setBloom(on) {
|
|
2225
|
+
const ret = wasm.setBloom(on);
|
|
2226
|
+
return ret >>> 0;
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
/**
|
|
2230
|
+
* The texels on the short side of bloom's base, and the governor's halvings of it, from the
|
|
2231
|
+
* next frame on.
|
|
2232
|
+
* @param {number} size
|
|
2233
|
+
* @param {number} halvings
|
|
2234
|
+
* @returns {number}
|
|
2235
|
+
*/
|
|
2236
|
+
export function setBloomChain(size, halvings) {
|
|
2237
|
+
const ret = wasm.setBloomChain(size, halvings);
|
|
2238
|
+
return ret >>> 0;
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
/**
|
|
2242
|
+
* Sets the rays that each texel of screen-space bounce light casts, from the quality settings,
|
|
2243
|
+
* from the next frame on: 0 draws none. The light draws on ambient occlusion's grid, and the
|
|
2244
|
+
* steps of each ray's march are the engine's default.
|
|
2245
|
+
* @param {number} rays
|
|
2246
|
+
* @returns {number}
|
|
2247
|
+
*/
|
|
2248
|
+
export function setBounceRays(rays) {
|
|
2249
|
+
const ret = wasm.setBounceRays(rays);
|
|
2250
|
+
return ret >>> 0;
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
/**
|
|
2254
|
+
* Draws the scene into a target of format `scene_color` with anti-aliasing mode `antialias`, by
|
|
2255
|
+
* code, from the next frame on: the HDR color that an effect needs, on a device that started on
|
|
2256
|
+
* the 8-bit path. The next frame makes the targets and the pipelines that draw into them again.
|
|
2257
|
+
* @param {number} scene_color
|
|
2258
|
+
* @param {number} antialias
|
|
2259
|
+
* @returns {number}
|
|
2260
|
+
*/
|
|
2261
|
+
export function setCanvasOutput(scene_color, antialias) {
|
|
2262
|
+
const ret = wasm.setCanvasOutput(scene_color, antialias);
|
|
2263
|
+
return ret >>> 0;
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
/**
|
|
2267
|
+
* Sets the events of clip `clip` from the staging words.
|
|
2268
|
+
* @param {number} clip
|
|
2269
|
+
* @param {number} count
|
|
2270
|
+
* @returns {number}
|
|
2271
|
+
*/
|
|
2272
|
+
export function setClipEvents(clip, count) {
|
|
2273
|
+
const ret = wasm.setClipEvents(clip, count);
|
|
2274
|
+
return ret >>> 0;
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
/**
|
|
2278
|
+
* Sets the steps of each ray of the sky's volumetric cloud tier, from the next frame on: 0 draws
|
|
2279
|
+
* the flat layer, as the lighter presets do.
|
|
2280
|
+
* @param {number} steps
|
|
2281
|
+
* @returns {number}
|
|
2282
|
+
*/
|
|
2283
|
+
export function setCloudSteps(steps) {
|
|
2284
|
+
const ret = wasm.setCloudSteps(steps);
|
|
2285
|
+
return ret >>> 0;
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2288
|
+
/**
|
|
2289
|
+
* Gives the compute pass of view place `place`, from 1, the number of runs that a frame records,
|
|
2290
|
+
* from the next frame on. A pass that keeps history swaps its two states between runs.
|
|
2291
|
+
* @param {number} place
|
|
2292
|
+
* @param {number} steps
|
|
2293
|
+
* @returns {number}
|
|
2294
|
+
*/
|
|
2295
|
+
export function setComputeSteps(place, steps) {
|
|
2296
|
+
const ret = wasm.setComputeSteps(place, steps);
|
|
2297
|
+
return ret >>> 0;
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
/**
|
|
2301
|
+
* Gives the compute pass of view place `place`, from 1, the uniforms at `effectValues` and the
|
|
2302
|
+
* textures at `effectTextures`, from the next frame on. A texture that shows the pass's own
|
|
2303
|
+
* target, or closes a loop of passes, fails with the render graph's error, and the pass keeps
|
|
2304
|
+
* what it had.
|
|
2305
|
+
* @param {number} place
|
|
2306
|
+
* @returns {number}
|
|
2307
|
+
*/
|
|
2308
|
+
export function setComputeValues(place) {
|
|
2309
|
+
const ret = wasm.setComputeValues(place);
|
|
2310
|
+
return ret >>> 0;
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2313
|
+
/**
|
|
2314
|
+
* Sets the steps of each march of the main directional light's contact shadows, from the next
|
|
2315
|
+
* frame on: 0 draws none.
|
|
2316
|
+
* @param {number} steps
|
|
2317
|
+
* @returns {number}
|
|
2318
|
+
*/
|
|
2319
|
+
export function setContactSteps(steps) {
|
|
2320
|
+
const ret = wasm.setContactSteps(steps);
|
|
2321
|
+
return ret >>> 0;
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
/**
|
|
2325
|
+
* Gives a cube texture six images and returns the first one's id.
|
|
2326
|
+
* @param {number} texture
|
|
2327
|
+
* @param {number} flags
|
|
2328
|
+
* @returns {number}
|
|
2329
|
+
*/
|
|
2330
|
+
export function setCubeImages(texture, flags) {
|
|
2331
|
+
const ret = wasm.setCubeImages(texture, flags);
|
|
2332
|
+
return ret >>> 0;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
/**
|
|
2336
|
+
* Turns the development probe of the two-step pass on or off. Its answers stay zero until it is on,
|
|
2337
|
+
* so a page that never asks for them prints nothing.
|
|
2338
|
+
* @param {boolean} on
|
|
2339
|
+
*/
|
|
2340
|
+
export function setDebugTwoStep(on) {
|
|
2341
|
+
wasm.setDebugTwoStep(on);
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
/**
|
|
2345
|
+
* Draws the scene with a debug view (`debug_view::code`), or with its materials with `LIT`, from
|
|
2346
|
+
* the next frame on. A change rebuilds the draw tables. The TypeScript API checks the code, so an
|
|
2347
|
+
* unknown one keeps the view as it was.
|
|
2348
|
+
* @param {number} view
|
|
2349
|
+
* @returns {number}
|
|
2350
|
+
*/
|
|
2351
|
+
export function setDebugView(view) {
|
|
2352
|
+
const ret = wasm.setDebugView(view);
|
|
2353
|
+
return ret >>> 0;
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
/**
|
|
2357
|
+
* Sets the layers whose objects decals mark, as a 32-bit mask. An object that is also on another
|
|
2358
|
+
* layer shows no decals: it draws again after them, over its own pixels.
|
|
2359
|
+
* @param {number} mask
|
|
2360
|
+
* @returns {number}
|
|
2361
|
+
*/
|
|
2362
|
+
export function setDecalLayers(mask) {
|
|
2363
|
+
const ret = wasm.setDecalLayers(mask);
|
|
2364
|
+
return ret >>> 0;
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
/**
|
|
2368
|
+
* Turns depth of field on with its focus, aperture, focal length, largest blur, blades and focus
|
|
2369
|
+
* point from the post-processing values, or off, from the next frame on. The TypeScript API checks
|
|
2370
|
+
* the values.
|
|
2371
|
+
* @param {boolean} on
|
|
2372
|
+
* @returns {number}
|
|
2373
|
+
*/
|
|
2374
|
+
export function setDof(on) {
|
|
2375
|
+
const ret = wasm.setDof(on);
|
|
2376
|
+
return ret >>> 0;
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2379
|
+
/**
|
|
2380
|
+
* Sets the taps of depth of field's gather, which the quality settings set, from the next frame
|
|
2381
|
+
* on: one of 16, 22, 43 or 71, or 0, which draws no depth of field. Other counts take the next
|
|
2382
|
+
* count up, at most 71.
|
|
2383
|
+
* @param {number} taps
|
|
2384
|
+
* @returns {number}
|
|
2385
|
+
*/
|
|
2386
|
+
export function setDofTaps(taps) {
|
|
2387
|
+
const ret = wasm.setDofTaps(taps);
|
|
2388
|
+
return ret >>> 0;
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
/**
|
|
2392
|
+
* Sets the custom effect at place `index` in the order effects run, from the next frame on: the
|
|
2393
|
+
* effect whose compiled WGSL has render pipeline template `template`, with the flags
|
|
2394
|
+
* (`constants::effect_flag`), the uniforms at `effectValues` and the textures at
|
|
2395
|
+
* `effectTextures`. A new place goes after the last one. Template 0 removes the effect at `index`
|
|
2396
|
+
* and every one after it. The TypeScript API checks the places, the uniforms and the textures.
|
|
2397
|
+
* @param {number} index
|
|
2398
|
+
* @param {number} template
|
|
2399
|
+
* @param {number} flags
|
|
2400
|
+
* @returns {number}
|
|
2401
|
+
*/
|
|
2402
|
+
export function setEffect(index, template, flags) {
|
|
2403
|
+
const ret = wasm.setEffect(index, template, flags);
|
|
2404
|
+
return ret >>> 0;
|
|
2405
|
+
}
|
|
2406
|
+
|
|
2407
|
+
/**
|
|
2408
|
+
* Folds the custom effects from place `index` on into the final pass, with the final pass's
|
|
2409
|
+
* build of render pipeline template `template`, from the next frame on, while nothing reads the
|
|
2410
|
+
* image between them. Template 0 folds none.
|
|
2411
|
+
* @param {number} index
|
|
2412
|
+
* @param {number} template
|
|
2413
|
+
* @returns {number}
|
|
2414
|
+
*/
|
|
2415
|
+
export function setEffectFold(index, template) {
|
|
2416
|
+
const ret = wasm.setEffectFold(index, template);
|
|
2417
|
+
return ret >>> 0;
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2420
|
+
/**
|
|
2421
|
+
* Draws the `length` custom effects from place `index` on as one group, with the joined shader
|
|
2422
|
+
* of render pipeline template `template`, from the next frame on, once its pipeline is built.
|
|
2423
|
+
* Template 0 ends the group that starts at `index`.
|
|
2424
|
+
* @param {number} index
|
|
2425
|
+
* @param {number} length
|
|
2426
|
+
* @param {number} template
|
|
2427
|
+
* @returns {number}
|
|
2428
|
+
*/
|
|
2429
|
+
export function setEffectGroup(index, length, template) {
|
|
2430
|
+
const ret = wasm.setEffectGroup(index, length, template);
|
|
2431
|
+
return ret >>> 0;
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
/**
|
|
2435
|
+
* Lights the scene with the environment whose prefiltered light is cube texture `texture`, or
|
|
2436
|
+
* with none when `texture` is 0, from the next frame on. The environment's values give its
|
|
2437
|
+
* intensity, its rotation and the coefficients of its diffuse light. The TypeScript API checks the
|
|
2438
|
+
* values. Fails for a texture that is not live.
|
|
2439
|
+
* @param {number} texture
|
|
2440
|
+
* @returns {number}
|
|
2441
|
+
*/
|
|
2442
|
+
export function setEnvironment(texture) {
|
|
2443
|
+
const ret = wasm.setEnvironment(texture);
|
|
2444
|
+
return ret >>> 0;
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
/**
|
|
2448
|
+
* Sets the meter of automatic exposure, which the quality settings set, from the next frame on:
|
|
2449
|
+
* 0 the downsample, 1 the histogram where the GPU path has compute shaders. Other codes keep the
|
|
2450
|
+
* meter as it was.
|
|
2451
|
+
* @param {number} meter
|
|
2452
|
+
* @returns {number}
|
|
2453
|
+
*/
|
|
2454
|
+
export function setExposureMeter(meter) {
|
|
2455
|
+
const ret = wasm.setExposureMeter(meter);
|
|
2456
|
+
return ret >>> 0;
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
/**
|
|
2460
|
+
* Sets the count that a page without compute draws for a draw whose instance count the GPU
|
|
2461
|
+
* writes. The count word starts each frame from it.
|
|
2462
|
+
* @param {number} id
|
|
2463
|
+
* @param {number} count
|
|
2464
|
+
* @returns {number}
|
|
2465
|
+
*/
|
|
2466
|
+
export function setFeatureInstanceCount(id, count) {
|
|
2467
|
+
const ret = wasm.setFeatureInstanceCount(id, count);
|
|
2468
|
+
return ret >>> 0;
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2471
|
+
/**
|
|
2472
|
+
* Tells the engine whether the add-on's feature draws now, for a draw whose instance count the GPU
|
|
2473
|
+
* writes. A draw that is not ready records no draw, no conversion and no count copy.
|
|
2474
|
+
* @param {number} id
|
|
2475
|
+
* @param {boolean} ready
|
|
2476
|
+
* @returns {number}
|
|
2477
|
+
*/
|
|
2478
|
+
export function setFeatureInstanceReady(id, ready) {
|
|
2479
|
+
const ret = wasm.setFeatureInstanceReady(id, ready);
|
|
2480
|
+
return ret >>> 0;
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
/**
|
|
2484
|
+
* Writes `count` per-instance rows from `values` at row `start`, as the engine's instance
|
|
2485
|
+
* buffers hold them: three world-matrix rows, then the ids. Returns 0, or 1 for a draw that the
|
|
2486
|
+
* values do not fit.
|
|
2487
|
+
* @param {number} id
|
|
2488
|
+
* @param {number} start
|
|
2489
|
+
* @param {number} count
|
|
2490
|
+
* @param {Float32Array} values
|
|
2491
|
+
* @returns {number}
|
|
2492
|
+
*/
|
|
2493
|
+
export function setFeatureInstanceRows(id, start, count, values) {
|
|
2494
|
+
const ptr0 = passArrayF32ToWasm0(values, wasm.__wbindgen_malloc);
|
|
2495
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2496
|
+
const ret = wasm.setFeatureInstanceRows(id, start, count, ptr0, len0);
|
|
2497
|
+
return ret >>> 0;
|
|
2498
|
+
}
|
|
2499
|
+
|
|
2500
|
+
/**
|
|
2501
|
+
* The scene's fog: its curve (`constants::fog_curve`), or no fog. The call values give its linear
|
|
2502
|
+
* color, the density of exponential and exponential squared fog, the near and far distances of
|
|
2503
|
+
* linear fog, the height where the fog has that density, its height falloff, its sun glow and the
|
|
2504
|
+
* glow's exponent.
|
|
2505
|
+
* @param {number} curve
|
|
2506
|
+
* @returns {number}
|
|
2507
|
+
*/
|
|
2508
|
+
export function setFog(curve) {
|
|
2509
|
+
const ret = wasm.setFog(curve);
|
|
2510
|
+
return ret >>> 0;
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
/**
|
|
2514
|
+
* Sets the frame-budget governor's halvings of the slices that each frame draws of the
|
|
2515
|
+
* volumetric fog's grid, from the next frame on. A halving makes no GPU object.
|
|
2516
|
+
* @param {number} halvings
|
|
2517
|
+
* @returns {number}
|
|
2518
|
+
*/
|
|
2519
|
+
export function setFogHalvings(halvings) {
|
|
2520
|
+
const ret = wasm.setFogHalvings(halvings);
|
|
2521
|
+
return ret >>> 0;
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2524
|
+
/**
|
|
2525
|
+
* Sets the slices of the volumetric fog's grid, which the quality settings set, from the next
|
|
2526
|
+
* frame on: one of 32, 64 or 96, or 0, which draws no volumetric fog. Other counts take the next
|
|
2527
|
+
* count up, at most 96.
|
|
2528
|
+
* @param {number} slices
|
|
2529
|
+
* @returns {number}
|
|
2530
|
+
*/
|
|
2531
|
+
export function setFogSlices(slices) {
|
|
2532
|
+
const ret = wasm.setFogSlices(slices);
|
|
2533
|
+
return ret >>> 0;
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
/**
|
|
2537
|
+
* Turns the volumetric fog on, or off, from the next frame on: the light of the sun and the point
|
|
2538
|
+
* and spot lights that the scene's fog scatters toward the camera, through their shadows. The call
|
|
2539
|
+
* values give how much light the fog scatters, Henyey-Greenstein's anisotropy, the distance that
|
|
2540
|
+
* its grid reaches, and the fog's density. The TypeScript API checks the values.
|
|
2541
|
+
* @param {boolean} on
|
|
2542
|
+
* @returns {number}
|
|
2543
|
+
*/
|
|
2544
|
+
export function setFogVolume(on) {
|
|
2545
|
+
const ret = wasm.setFogVolume(on);
|
|
2546
|
+
return ret >>> 0;
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
/**
|
|
2550
|
+
* Grades the canvas color with the built-in grading table in 3D texture `texture`, or with none
|
|
2551
|
+
* when `texture` is 0, from the next frame on. A job worker baked the sketch's grading values into
|
|
2552
|
+
* the table's texels. The TypeScript API checks the values. Fails for a texture that is not live.
|
|
2553
|
+
* @param {number} texture
|
|
2554
|
+
* @returns {number}
|
|
2555
|
+
*/
|
|
2556
|
+
export function setGrade(texture) {
|
|
2557
|
+
const ret = wasm.setGrade(texture);
|
|
2558
|
+
return ret >>> 0;
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
/**
|
|
2562
|
+
* Gives layer `layer` of instance `instance` joint mask `mask`, or every joint when `mask` is 0.
|
|
2563
|
+
* @param {number} instance
|
|
2564
|
+
* @param {number} layer
|
|
2565
|
+
* @param {number} mask
|
|
2566
|
+
* @returns {number}
|
|
2567
|
+
*/
|
|
2568
|
+
export function setLayerMask(instance, layer, mask) {
|
|
2569
|
+
const ret = wasm.setLayerMask(instance, layer, mask);
|
|
2570
|
+
return ret >>> 0;
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
/**
|
|
2574
|
+
* How objects and batches pick their meshes' levels of detail, from the next frame on. The call
|
|
2575
|
+
* values give the error in pixels under which a coarser level draws, 0 for none, and the error
|
|
2576
|
+
* in texels of a shadow map under which a caster draws a coarser level there, 0 for none.
|
|
2577
|
+
* `bands` says whether a source's distance band fades at each edge, and `governed` whether the
|
|
2578
|
+
* frame-time governor raised the thresholds above the quality settings' own.
|
|
2579
|
+
* Turning the bands on or off, or measured levels' fades, rebuilds the draw tables.
|
|
2580
|
+
* @param {boolean} bands
|
|
2581
|
+
* @param {boolean} governed
|
|
2582
|
+
* @returns {number}
|
|
2583
|
+
*/
|
|
2584
|
+
export function setLevelQuality(bands, governed) {
|
|
2585
|
+
const ret = wasm.setLevelQuality(bands, governed);
|
|
2586
|
+
return ret >>> 0;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
/**
|
|
2590
|
+
* Sets one of a light's linear colors to the first three call values.
|
|
2591
|
+
* @param {number} light
|
|
2592
|
+
* @param {number} which
|
|
2593
|
+
* @returns {number}
|
|
2594
|
+
*/
|
|
2595
|
+
export function setLightColor(light, which) {
|
|
2596
|
+
const ret = wasm.setLightColor(light, which);
|
|
2597
|
+
return ret >>> 0;
|
|
2598
|
+
}
|
|
2599
|
+
|
|
2600
|
+
/**
|
|
2601
|
+
* Sets the number that each light created from now on starts with to the first call value, such
|
|
2602
|
+
* as the shadow cascades of the quality preset.
|
|
2603
|
+
* @param {number} which
|
|
2604
|
+
* @returns {number}
|
|
2605
|
+
*/
|
|
2606
|
+
export function setLightDefault(which) {
|
|
2607
|
+
const ret = wasm.setLightDefault(which);
|
|
2608
|
+
return ret >>> 0;
|
|
2609
|
+
}
|
|
2610
|
+
|
|
2611
|
+
/**
|
|
2612
|
+
* Fits the light clusters' depth slices to the depth that the frame before measured, from the next
|
|
2613
|
+
* frame on, or leaves them on the CPU's slicing: the quality preset's `lightFit`. It runs only on
|
|
2614
|
+
* WebGPU, where the light clustering passes do this work.
|
|
2615
|
+
* @param {number} enabled
|
|
2616
|
+
* @returns {number}
|
|
2617
|
+
*/
|
|
2618
|
+
export function setLightFit(enabled) {
|
|
2619
|
+
const ret = wasm.setLightFit(enabled);
|
|
2620
|
+
return ret >>> 0;
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2623
|
+
/**
|
|
2624
|
+
* Sets the object whose shadow the light draws into a tile of its own to the object whose handle
|
|
2625
|
+
* is `object`, or stops with 0.
|
|
2626
|
+
* @param {number} light
|
|
2627
|
+
* @param {number} object
|
|
2628
|
+
* @returns {number}
|
|
2629
|
+
*/
|
|
2630
|
+
export function setLightHero(light, object) {
|
|
2631
|
+
const ret = wasm.setLightHero(light, object);
|
|
2632
|
+
return ret >>> 0;
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
/**
|
|
2636
|
+
* Gives light `light` an image of `size` texels a side whose texels come from texture `texture`.
|
|
2637
|
+
* A frame copies the texture into the image once its texels are on the GPU, and the light shows
|
|
2638
|
+
* the picture from the frame after. The copy is a snapshot: later changes to the texture do not
|
|
2639
|
+
* reach the light. Fails with E1501 when every place for an image is taken, or when the size is
|
|
2640
|
+
* one that no image takes.
|
|
2641
|
+
* @param {number} light
|
|
2642
|
+
* @param {number} texture
|
|
2643
|
+
* @param {number} size
|
|
2644
|
+
* @returns {number}
|
|
2645
|
+
*/
|
|
2646
|
+
export function setLightMapTexture(light, texture, size) {
|
|
2647
|
+
const ret = wasm.setLightMapTexture(light, texture, size);
|
|
2648
|
+
return ret >>> 0;
|
|
2649
|
+
}
|
|
2650
|
+
|
|
2651
|
+
/**
|
|
2652
|
+
* Lights the scene with the light probe grid whose coefficients are 3D texture `texture`, or with
|
|
2653
|
+
* none when `texture` is 0, from the next frame on. The grid's placement, spacing, counts, factor
|
|
2654
|
+
* and the share of the environment's diffuse light it takes come from the block that
|
|
2655
|
+
* `lightProbeValues` gives. The TypeScript API checks the values. Fails for a texture that is not
|
|
2656
|
+
* live, or not a 3D texture, which the frame's group could not bind.
|
|
2657
|
+
* @param {number} texture
|
|
2658
|
+
* @returns {number}
|
|
2659
|
+
*/
|
|
2660
|
+
export function setLightProbeGrid(texture) {
|
|
2661
|
+
const ret = wasm.setLightProbeGrid(texture);
|
|
2662
|
+
return ret >>> 0;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
/**
|
|
2666
|
+
* Sets one of a light's numbers to the first call value.
|
|
2667
|
+
* @param {number} light
|
|
2668
|
+
* @param {number} which
|
|
2669
|
+
* @returns {number}
|
|
2670
|
+
*/
|
|
2671
|
+
export function setLightValue(light, which) {
|
|
2672
|
+
const ret = wasm.setLightValue(light, which);
|
|
2673
|
+
return ret >>> 0;
|
|
2674
|
+
}
|
|
2675
|
+
|
|
2676
|
+
/**
|
|
2677
|
+
* Sets the width of a line batch's segments to the first call value: CSS pixels, or world units
|
|
2678
|
+
* for a batch made with world units. Every segment updates and uploads again.
|
|
2679
|
+
* @param {number} batch
|
|
2680
|
+
* @returns {number}
|
|
2681
|
+
*/
|
|
2682
|
+
export function setLineWidth(batch) {
|
|
2683
|
+
const ret = wasm.setLineWidth(batch);
|
|
2684
|
+
return ret >>> 0;
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
/**
|
|
2688
|
+
* Grades the canvas color with the color grading table in 3D texture `texture`, or with none
|
|
2689
|
+
* when `texture` is 0, from the next frame on. The post-processing values give its intensity, the
|
|
2690
|
+
* share of the graded color, and its domain, the colors that the table's first and last texels
|
|
2691
|
+
* along each axis stand for. The TypeScript API checks the values. Fails for a texture that is
|
|
2692
|
+
* not live.
|
|
2693
|
+
* @param {number} texture
|
|
2694
|
+
* @returns {number}
|
|
2695
|
+
*/
|
|
2696
|
+
export function setLut(texture) {
|
|
2697
|
+
const ret = wasm.setLut(texture);
|
|
2698
|
+
return ret >>> 0;
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2701
|
+
/**
|
|
2702
|
+
* Changes how far a standard material's displacement map moves vertices along their normals:
|
|
2703
|
+
* `scale` for the map's white, plus `bias` for every vertex, in the mesh's units, as three.js's
|
|
2704
|
+
* `displacementScale` and `displacementBias`. Objects and batches with the material grow their
|
|
2705
|
+
* bounds when the farthest distance grows.
|
|
2706
|
+
* @param {number} material
|
|
2707
|
+
* @param {number} scale
|
|
2708
|
+
* @param {number} bias
|
|
2709
|
+
* @returns {number}
|
|
2710
|
+
*/
|
|
2711
|
+
export function setMaterialDisplacement(material, scale, bias) {
|
|
2712
|
+
const ret = wasm.setMaterialDisplacement(material, scale, bias);
|
|
2713
|
+
return ret >>> 0;
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
/**
|
|
2717
|
+
* Gives a material a map in a slot (`constants::map_slot`), or one of the maps that take a slot
|
|
2718
|
+
* the material has no other use for, after the slots. The shader reads it at the second texture
|
|
2719
|
+
* coordinates when `second_uv` is 1.
|
|
2720
|
+
* @param {number} material
|
|
2721
|
+
* @param {number} slot
|
|
2722
|
+
* @param {number} texture
|
|
2723
|
+
* @param {number} second_uv
|
|
2724
|
+
* @returns {number}
|
|
2725
|
+
*/
|
|
2726
|
+
export function setMaterialMap(material, slot, texture, second_uv) {
|
|
2727
|
+
const ret = wasm.setMaterialMap(material, slot, texture, second_uv);
|
|
2728
|
+
return ret >>> 0;
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2731
|
+
/**
|
|
2732
|
+
* Changes one value of a material, by the float where the value starts in the material's row
|
|
2733
|
+
* (`constants::material_param`), and keeps the others. The value takes as many of the first three
|
|
2734
|
+
* call values as it has floats. Colors are linear.
|
|
2735
|
+
* @param {number} material
|
|
2736
|
+
* @param {number} param
|
|
2737
|
+
* @returns {number}
|
|
2738
|
+
*/
|
|
2739
|
+
export function setMaterialValue(material, param) {
|
|
2740
|
+
const ret = wasm.setMaterialValue(material, param);
|
|
2741
|
+
return ret >>> 0;
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
/**
|
|
2745
|
+
* Changes `count` custom values of a material, the first 1 to 4 call values, from float `at` of
|
|
2746
|
+
* its row of custom values, and keeps the others: a custom material's uniform, as the shader
|
|
2747
|
+
* compiler placed it.
|
|
2748
|
+
* @param {number} material
|
|
2749
|
+
* @param {number} at
|
|
2750
|
+
* @param {number} count
|
|
2751
|
+
* @returns {number}
|
|
2752
|
+
*/
|
|
2753
|
+
export function setMaterialValues(material, at, count) {
|
|
2754
|
+
const ret = wasm.setMaterialValues(material, at, count);
|
|
2755
|
+
return ret >>> 0;
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
/**
|
|
2759
|
+
* Notes the shared memory's declared maximum in MiB, ahead of `initEngine`. A build whose memory
|
|
2760
|
+
* has none is left with 0.
|
|
2761
|
+
* @param {number} mib
|
|
2762
|
+
*/
|
|
2763
|
+
export function setMemoryMaximum(mib) {
|
|
2764
|
+
wasm.setMemoryMaximum(mib);
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
/**
|
|
2768
|
+
* Gives mesh `mesh` a blocker of its own for software occlusion culling: `vertices` corners of
|
|
2769
|
+
* three floats, then `indices` indices, three per triangle, in the staging words. Objects with
|
|
2770
|
+
* the mesh draw it in place of the mesh. Returns 1 when the mesh takes it, and 0 when it holds
|
|
2771
|
+
* no triangle, too many, or a corner that is not a number.
|
|
2772
|
+
* @param {number} mesh
|
|
2773
|
+
* @param {number} vertices
|
|
2774
|
+
* @param {number} indices
|
|
2775
|
+
* @returns {number}
|
|
2776
|
+
*/
|
|
2777
|
+
export function setMeshBlocker(mesh, vertices, indices) {
|
|
2778
|
+
const ret = wasm.setMeshBlocker(mesh, vertices, indices);
|
|
2779
|
+
return ret >>> 0;
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
/**
|
|
2783
|
+
* Gives mesh `mesh` the tree over its triangles that a model file stores, in the format of
|
|
2784
|
+
* `MeshBvh::to_bytes`, from the first `bytes` bytes of the staging words. Raycasts then use it
|
|
2785
|
+
* instead of building one. Returns 1 when the mesh takes the tree, and 0 when the tree does not
|
|
2786
|
+
* fit the mesh's triangles, which then get a tree of their own on the first query.
|
|
2787
|
+
* @param {number} mesh
|
|
2788
|
+
* @param {number} bytes
|
|
2789
|
+
* @returns {number}
|
|
2790
|
+
*/
|
|
2791
|
+
export function setMeshBvh(mesh, bytes) {
|
|
2792
|
+
const ret = wasm.setMeshBvh(mesh, bytes);
|
|
2793
|
+
return ret >>> 0;
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2796
|
+
/**
|
|
2797
|
+
* Gives mesh `base`, by its id that counts from 1, the `count` lower levels of detail whose mesh
|
|
2798
|
+
* ids, then whose switch values as the bits of 32-bit floats, then whose switch measures, then
|
|
2799
|
+
* whose material ids, the staging words hold, from the most detailed down. A material of 0 draws
|
|
2800
|
+
* the level with the level before's. With `count` 0 the mesh loses its levels. The low 16 bits of
|
|
2801
|
+
* `flags`, counted from the base level, mark the levels that hand over in a fading band, and the
|
|
2802
|
+
* high 16 bits the levels whose switch is a measured error. The next frame rebuilds the draw
|
|
2803
|
+
* tables. Fails with the problem for levels that the mesh cannot take.
|
|
2804
|
+
* @param {number} base
|
|
2805
|
+
* @param {number} count
|
|
2806
|
+
* @param {number} flags
|
|
2807
|
+
* @returns {number}
|
|
2808
|
+
*/
|
|
2809
|
+
export function setMeshLevels(base, count, flags) {
|
|
2810
|
+
const ret = wasm.setMeshLevels(base, count, flags);
|
|
2811
|
+
return ret >>> 0;
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
/**
|
|
2815
|
+
* Gives mesh `mesh` the tree of cluster patches that a model file stores: `patches` records of
|
|
2816
|
+
* eight words each, four floats of its bounding sphere and then four integers of its run, its
|
|
2817
|
+
* parent and its error, followed by `indices` indices, in the staging words. Returns 1 when the
|
|
2818
|
+
* mesh takes the tree, and 0 when the tree does not cover the mesh's vertices.
|
|
2819
|
+
* @param {number} mesh
|
|
2820
|
+
* @param {number} patches
|
|
2821
|
+
* @param {number} indices
|
|
2822
|
+
* @param {number} root
|
|
2823
|
+
* @returns {number}
|
|
2824
|
+
*/
|
|
2825
|
+
export function setMeshPatches(mesh, patches, indices, root) {
|
|
2826
|
+
const ret = wasm.setMeshPatches(mesh, patches, indices, root);
|
|
2827
|
+
return ret >>> 0;
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
/**
|
|
2831
|
+
* Gives the live mesh `mesh` `count` pieces and their `groups` groups over a triangle list of
|
|
2832
|
+
* their own, which TypeScript wrote into the staging words after them (as `setMeshPieces` lays
|
|
2833
|
+
* them out): `indices`
|
|
2834
|
+
* indices that hold the mesh's triangles in piece order. The list shares the mesh's vertices, and
|
|
2835
|
+
* the mesh keeps its own list, so a mesh made in code keeps the triangle order that raycasts and
|
|
2836
|
+
* vertex updates read. A mesh split into parts takes a list whose triangles come part by part,
|
|
2837
|
+
* as `createSplitLevel` draws them. A list that the mesh held before goes, with its pieces, as a
|
|
2838
|
+
* destroyed mesh goes. Returns 1 when the mesh takes them, and 0 otherwise.
|
|
2839
|
+
* @param {number} mesh
|
|
2840
|
+
* @param {number} count
|
|
2841
|
+
* @param {number} groups
|
|
2842
|
+
* @param {number} indices
|
|
2843
|
+
* @returns {number}
|
|
2844
|
+
*/
|
|
2845
|
+
export function setMeshPieceList(mesh, count, groups, indices) {
|
|
2846
|
+
const ret = wasm.setMeshPieceList(mesh, count, groups, indices);
|
|
2847
|
+
return ret >>> 0;
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2850
|
+
/**
|
|
2851
|
+
* Gives the live mesh `mesh` the `count` pieces of its triangle list that TypeScript wrote into
|
|
2852
|
+
* the staging words, which the call frees: each piece's triangles, then its bounding sphere and
|
|
2853
|
+
* its cone of facings as the bits of 32-bit floats (`null3d_render::pieces::PIECE_WORDS` words a
|
|
2854
|
+
* piece. The pieces follow the list's order, and the copies that draw the mesh cull each one from
|
|
2855
|
+
* the next frame on. `groups` groups of the pieces follow them in the same layout, in the list's
|
|
2856
|
+
* order, and the groups of each piece hold its triangles and no other; groups that do not split
|
|
2857
|
+
* the pieces leave the pieces without groups. A mesh made in code takes them the same way as a
|
|
2858
|
+
* file's, at any time after it is made. Returns 1 when the mesh takes them, and 0 when they do
|
|
2859
|
+
* not fit its list, which then draws whole as before.
|
|
2860
|
+
* @param {number} mesh
|
|
2861
|
+
* @param {number} count
|
|
2862
|
+
* @param {number} groups
|
|
2863
|
+
* @returns {number}
|
|
2864
|
+
*/
|
|
2865
|
+
export function setMeshPieces(mesh, count, groups) {
|
|
2866
|
+
const ret = wasm.setMeshPieces(mesh, count, groups);
|
|
2867
|
+
return ret >>> 0;
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
/**
|
|
2871
|
+
* Draws the blended surfaces in the camera's moment transparency layer, or back to front in the
|
|
2872
|
+
* transparent pass, from the next frame on, as the quality preset's `momentTransparency` says.
|
|
2873
|
+
* @param {boolean} on
|
|
2874
|
+
* @returns {number}
|
|
2875
|
+
*/
|
|
2876
|
+
export function setMomentTransparency(on) {
|
|
2877
|
+
const ret = wasm.setMomentTransparency(on);
|
|
2878
|
+
return ret >>> 0;
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
/**
|
|
2882
|
+
* The most morph weights of each object that vertex shaders that morph keep, the largest, from
|
|
2883
|
+
* the next frame on.
|
|
2884
|
+
* @param {number} cap
|
|
2885
|
+
* @returns {number}
|
|
2886
|
+
*/
|
|
2887
|
+
export function setMorphTargets(cap) {
|
|
2888
|
+
const ret = wasm.setMorphTargets(cap);
|
|
2889
|
+
return ret >>> 0;
|
|
2890
|
+
}
|
|
2891
|
+
|
|
2892
|
+
/**
|
|
2893
|
+
* Sets the pixels that software occlusion culling's buffer holds about from the next frame on,
|
|
2894
|
+
* or 0 for the core's default, where the frame builder culls on the CPU.
|
|
2895
|
+
* @param {number} pixels
|
|
2896
|
+
* @returns {number}
|
|
2897
|
+
*/
|
|
2898
|
+
export function setOcclusionBuffer(pixels) {
|
|
2899
|
+
const ret = wasm.setOcclusionBuffer(pixels);
|
|
2900
|
+
return ret >>> 0;
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
/**
|
|
2904
|
+
* Sets the control slot that GPU occlusion culling's reads of its counts raise. Nothing reads the
|
|
2905
|
+
* slot: the counts name their frame.
|
|
2906
|
+
* @param {number} slot
|
|
2907
|
+
* @returns {number}
|
|
2908
|
+
*/
|
|
2909
|
+
export function setOcclusionReadSlot(slot) {
|
|
2910
|
+
const ret = wasm.setOcclusionReadSlot(slot);
|
|
2911
|
+
return ret >>> 0;
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
/**
|
|
2915
|
+
* Draws from this camera object with an orthographic lens. The call values give the view's height
|
|
2916
|
+
* and width, with a width of 0 following the canvas's aspect ratio, how far right of and above
|
|
2917
|
+
* the camera's axis it is centered, and the near and far distances. It draws the objects whose
|
|
2918
|
+
* layer masks share a bit with `layers`. With `target` the shadows' camera, it fits the main
|
|
2919
|
+
* directional light's cascades.
|
|
2920
|
+
* @param {number} camera
|
|
2921
|
+
* @param {number} layers
|
|
2922
|
+
* @param {number} target
|
|
2923
|
+
* @returns {number}
|
|
2924
|
+
*/
|
|
2925
|
+
export function setOrthographicCamera(camera, layers, target) {
|
|
2926
|
+
const ret = wasm.setOrthographicCamera(camera, layers, target);
|
|
2927
|
+
return ret >>> 0;
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
/**
|
|
2931
|
+
* Turns outlines on with the line's colors and width from the post-processing values, or off, from
|
|
2932
|
+
* the next frame on. They draw around the objects whose outlined flag is set. The TypeScript API
|
|
2933
|
+
* checks the values.
|
|
2934
|
+
* @param {boolean} on
|
|
2935
|
+
* @returns {number}
|
|
2936
|
+
*/
|
|
2937
|
+
export function setOutline(on) {
|
|
2938
|
+
const ret = wasm.setOutline(on);
|
|
2939
|
+
return ret >>> 0;
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
/**
|
|
2943
|
+
* The tone mapping, by code, and the exposure from the post-processing values, from the next
|
|
2944
|
+
* frame on. The TypeScript API checks both, so an unknown code keeps the tone mapping as it was.
|
|
2945
|
+
* @param {number} tone_mapping
|
|
2946
|
+
* @returns {number}
|
|
2947
|
+
*/
|
|
2948
|
+
export function setOutput(tone_mapping) {
|
|
2949
|
+
const ret = wasm.setOutput(tone_mapping);
|
|
2950
|
+
return ret >>> 0;
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
/**
|
|
2954
|
+
* Draws every mesh of the main pass with the material whose id is `material` in place of its own,
|
|
2955
|
+
* or with its own materials with 0, from the next frame on. A change rebuilds the draw tables.
|
|
2956
|
+
* @param {number} material
|
|
2957
|
+
* @returns {number}
|
|
2958
|
+
*/
|
|
2959
|
+
export function setOverrideMaterial(material) {
|
|
2960
|
+
const ret = wasm.setOverrideMaterial(material);
|
|
2961
|
+
return ret >>> 0;
|
|
2962
|
+
}
|
|
2963
|
+
|
|
2964
|
+
/**
|
|
2965
|
+
* Lets materials with parallax draw it, or draws them with their displacement alone, from the
|
|
2966
|
+
* next frame on, as the quality preset's `parallax` says.
|
|
2967
|
+
* @param {boolean} on
|
|
2968
|
+
* @returns {number}
|
|
2969
|
+
*/
|
|
2970
|
+
export function setParallax(on) {
|
|
2971
|
+
const ret = wasm.setParallax(on);
|
|
2972
|
+
return ret >>> 0;
|
|
2973
|
+
}
|
|
2974
|
+
|
|
2975
|
+
/**
|
|
2976
|
+
* Gives the full-screen pass of view place `place`, from 1, the uniforms at `effectValues` and
|
|
2977
|
+
* the textures at `effectTextures`, from the next frame on. A texture that shows the pass's own
|
|
2978
|
+
* target, or closes a loop of passes, fails with the render graph's error, and the pass keeps
|
|
2979
|
+
* what it had.
|
|
2980
|
+
* @param {number} place
|
|
2981
|
+
* @returns {number}
|
|
2982
|
+
*/
|
|
2983
|
+
export function setPassValues(place) {
|
|
2984
|
+
const ret = wasm.setPassValues(place);
|
|
2985
|
+
return ret >>> 0;
|
|
2986
|
+
}
|
|
2987
|
+
|
|
2988
|
+
/**
|
|
2989
|
+
* Draws from this camera object with a perspective lens, the objects whose layer masks share a
|
|
2990
|
+
* bit with `layers`. The call values give the vertical field of view in degrees, the near
|
|
2991
|
+
* distance and the far distance. With `target` the shadows' camera (`constants::camera_target`),
|
|
2992
|
+
* the camera fits the main directional light's cascades instead.
|
|
2993
|
+
* @param {number} camera
|
|
2994
|
+
* @param {number} layers
|
|
2995
|
+
* @param {number} target
|
|
2996
|
+
* @returns {number}
|
|
2997
|
+
*/
|
|
2998
|
+
export function setPerspectiveCamera(camera, layers, target) {
|
|
2999
|
+
const ret = wasm.setPerspectiveCamera(camera, layers, target);
|
|
3000
|
+
return ret >>> 0;
|
|
3001
|
+
}
|
|
3002
|
+
|
|
3003
|
+
/**
|
|
3004
|
+
* Draws the physical sky while `on`, else the analytic sky in its place, from the next frame on,
|
|
3005
|
+
* as the quality settings choose.
|
|
3006
|
+
* @param {boolean} on
|
|
3007
|
+
* @returns {number}
|
|
3008
|
+
*/
|
|
3009
|
+
export function setPhysicalSky(on) {
|
|
3010
|
+
const ret = wasm.setPhysicalSky(on);
|
|
3011
|
+
return ret >>> 0;
|
|
3012
|
+
}
|
|
3013
|
+
|
|
3014
|
+
/**
|
|
3015
|
+
* The device pixels per CSS pixel that the canvas draws with, the first call value, which sizes
|
|
3016
|
+
* sprites given in pixels of the screen.
|
|
3017
|
+
* @returns {number}
|
|
3018
|
+
*/
|
|
3019
|
+
export function setPixelRatio() {
|
|
3020
|
+
const ret = wasm.setPixelRatio();
|
|
3021
|
+
return ret >>> 0;
|
|
3022
|
+
}
|
|
3023
|
+
|
|
3024
|
+
/**
|
|
3025
|
+
* Sets the size of reflection probes' maps.
|
|
3026
|
+
* @param {number} size
|
|
3027
|
+
* @returns {number}
|
|
3028
|
+
*/
|
|
3029
|
+
export function setProbeSize(size) {
|
|
3030
|
+
const ret = wasm.setProbeSize(size);
|
|
3031
|
+
return ret >>> 0;
|
|
3032
|
+
}
|
|
3033
|
+
|
|
3034
|
+
/**
|
|
3035
|
+
* Sets a reflection probe.
|
|
3036
|
+
* @param {number} slot
|
|
3037
|
+
* @param {number} low_x
|
|
3038
|
+
* @param {number} low_y
|
|
3039
|
+
* @param {number} low_z
|
|
3040
|
+
* @param {number} high_x
|
|
3041
|
+
* @param {number} high_y
|
|
3042
|
+
* @param {number} high_z
|
|
3043
|
+
* @param {number} capture_x
|
|
3044
|
+
* @param {number} capture_y
|
|
3045
|
+
* @param {number} capture_z
|
|
3046
|
+
* @param {number} blend
|
|
3047
|
+
* @param {number} intensity
|
|
3048
|
+
* @param {number} flags
|
|
3049
|
+
* @param {number} layers
|
|
3050
|
+
* @param {number} priority
|
|
3051
|
+
* @returns {number}
|
|
3052
|
+
*/
|
|
3053
|
+
export function setReflectionProbe(slot, low_x, low_y, low_z, high_x, high_y, high_z, capture_x, capture_y, capture_z, blend, intensity, flags, layers, priority) {
|
|
3054
|
+
const ret = wasm.setReflectionProbe(slot, low_x, low_y, low_z, high_x, high_y, high_z, capture_x, capture_y, capture_z, blend, intensity, flags, layers, priority);
|
|
3055
|
+
return ret >>> 0;
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3058
|
+
/**
|
|
3059
|
+
* Sets the share of the render size each way, the first call value of 1, 0.5 or 0.25, that the
|
|
3060
|
+
* targets of reflection
|
|
3061
|
+
* passes without a scale of their own take, from the next frame on: the quality preset's
|
|
3062
|
+
* reflection scale.
|
|
3063
|
+
* @returns {number}
|
|
3064
|
+
*/
|
|
3065
|
+
export function setReflectionScale() {
|
|
3066
|
+
const ret = wasm.setReflectionScale();
|
|
3067
|
+
return ret >>> 0;
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
|
+
/**
|
|
3071
|
+
* Says whether the render scale may drop below the whole canvas, as the quality settings allow.
|
|
3072
|
+
* @param {boolean} scaling
|
|
3073
|
+
* @returns {number}
|
|
3074
|
+
*/
|
|
3075
|
+
export function setRenderScaling(scaling) {
|
|
3076
|
+
const ret = wasm.setRenderScaling(scaling);
|
|
3077
|
+
return ret >>> 0;
|
|
3078
|
+
}
|
|
3079
|
+
|
|
3080
|
+
/**
|
|
3081
|
+
* Switches the scene pass of view place `place`, from 1, on or off. A pass switched off keeps the
|
|
3082
|
+
* last image it drew in its target.
|
|
3083
|
+
* @param {number} place
|
|
3084
|
+
* @param {boolean} enabled
|
|
3085
|
+
* @returns {number}
|
|
3086
|
+
*/
|
|
3087
|
+
export function setScenePassEnabled(place, enabled) {
|
|
3088
|
+
const ret = wasm.setScenePassEnabled(place, enabled);
|
|
3089
|
+
return ret >>> 0;
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
/**
|
|
3093
|
+
* Gives the scene pass of view place `place`, from 1, a cadence of one frame in `every`, from the
|
|
3094
|
+
* next frame on: it draws in the next frame, then waits `every - 1` frames. The render graph does
|
|
3095
|
+
* not compile again, so a caller may change the cadence with the quality preset or the frame
|
|
3096
|
+
* budget without paying for a new plan.
|
|
3097
|
+
* @param {number} place
|
|
3098
|
+
* @param {number} every
|
|
3099
|
+
* @returns {number}
|
|
3100
|
+
*/
|
|
3101
|
+
export function setScenePassEvery(place, every) {
|
|
3102
|
+
const ret = wasm.setScenePassEvery(place, every);
|
|
3103
|
+
return ret >>> 0;
|
|
3104
|
+
}
|
|
3105
|
+
|
|
3106
|
+
/**
|
|
3107
|
+
* Sets the rectangle of the canvas that the view of place `place`, from 1, draws into, from the
|
|
3108
|
+
* next frame on, from the call values as [`addSceneView`] gives them.
|
|
3109
|
+
* @param {number} place
|
|
3110
|
+
* @returns {number}
|
|
3111
|
+
*/
|
|
3112
|
+
export function setSceneViewRect(place) {
|
|
3113
|
+
const ret = wasm.setSceneViewRect(place);
|
|
3114
|
+
return ret >>> 0;
|
|
3115
|
+
}
|
|
3116
|
+
|
|
3117
|
+
/**
|
|
3118
|
+
* The shadow settings that the quality settings give every light: the texels on each side of the
|
|
3119
|
+
* shadow filter, how many frames pass between two draws of a far cascade, whether a far cascade
|
|
3120
|
+
* draws in every frame while a moving caster touches it, and, as the first call value, the share
|
|
3121
|
+
* of each cascade's length over which it blends into the next. The TypeScript API checks them.
|
|
3122
|
+
* @param {number} filter
|
|
3123
|
+
* @param {number} far_interval
|
|
3124
|
+
* @param {boolean} follow_movers
|
|
3125
|
+
* @returns {number}
|
|
3126
|
+
*/
|
|
3127
|
+
export function setShadowQuality(filter, far_interval, follow_movers) {
|
|
3128
|
+
const ret = wasm.setShadowQuality(filter, far_interval, follow_movers);
|
|
3129
|
+
return ret >>> 0;
|
|
3130
|
+
}
|
|
3131
|
+
|
|
3132
|
+
/**
|
|
3133
|
+
* Sets up the shadow atlas of point and spot lights.
|
|
3134
|
+
* @param {number} tiles
|
|
3135
|
+
* @param {number} size
|
|
3136
|
+
* @param {boolean} point_shadows
|
|
3137
|
+
* @returns {number}
|
|
3138
|
+
*/
|
|
3139
|
+
export function setShadowTiles(tiles, size, point_shadows) {
|
|
3140
|
+
const ret = wasm.setShadowTiles(tiles, size, point_shadows);
|
|
3141
|
+
return ret >>> 0;
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3144
|
+
/**
|
|
3145
|
+
* Turns the sharpening on with its strength from the post-processing values, or off, from the next
|
|
3146
|
+
* frame on. The TypeScript API checks the values.
|
|
3147
|
+
* @param {boolean} on
|
|
3148
|
+
* @returns {number}
|
|
3149
|
+
*/
|
|
3150
|
+
export function setSharpen(on) {
|
|
3151
|
+
const ret = wasm.setSharpen(on);
|
|
3152
|
+
return ret >>> 0;
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
/**
|
|
3156
|
+
* Draws layer `template` over the background from the next frame on, with its share of the sun
|
|
3157
|
+
* that it hides, its opacity, and the seconds `refresh` between the captures that the sky's
|
|
3158
|
+
* environment map makes of it. `map` is the same WGSL built into the shader that fills that map's
|
|
3159
|
+
* cube faces, so its reflections and the light taken from it hold the layer too. Removes the layer
|
|
3160
|
+
* for `template` 0. The TypeScript API checks the values.
|
|
3161
|
+
* @param {number} template
|
|
3162
|
+
* @param {number} map
|
|
3163
|
+
* @param {number} sun
|
|
3164
|
+
* @param {number} opacity
|
|
3165
|
+
* @param {number} refresh
|
|
3166
|
+
* @param {number} slot
|
|
3167
|
+
* @returns {number}
|
|
3168
|
+
*/
|
|
3169
|
+
export function setSkyLayer(template, map, sun, opacity, refresh, slot) {
|
|
3170
|
+
const ret = wasm.setSkyLayer(template, map, sun, opacity, refresh, slot);
|
|
3171
|
+
return ret >>> 0;
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
/**
|
|
3175
|
+
* Lets particle systems with a soft fade fade near the surfaces behind them, which copies the
|
|
3176
|
+
* camera's opaque depth while one draws, or draws them with hard edges: the quality preset's soft
|
|
3177
|
+
* particles.
|
|
3178
|
+
* @param {boolean} on
|
|
3179
|
+
* @returns {number}
|
|
3180
|
+
*/
|
|
3181
|
+
export function setSoftParticles(on) {
|
|
3182
|
+
const ret = wasm.setSoftParticles(on);
|
|
3183
|
+
return ret >>> 0;
|
|
3184
|
+
}
|
|
3185
|
+
|
|
3186
|
+
/**
|
|
3187
|
+
* Turns software occlusion culling on or off from the next frame on, where the frame builder
|
|
3188
|
+
* culls on the CPU: objects with the occluder flag then hide what lies wholly behind them.
|
|
3189
|
+
* @param {boolean} on
|
|
3190
|
+
* @returns {number}
|
|
3191
|
+
*/
|
|
3192
|
+
export function setSoftwareOcclusion(on) {
|
|
3193
|
+
const ret = wasm.setSoftwareOcclusion(on);
|
|
3194
|
+
return ret >>> 0;
|
|
3195
|
+
}
|
|
3196
|
+
|
|
3197
|
+
/**
|
|
3198
|
+
* Turns screen-space reflections on with their intensity, most distance, thickness and most
|
|
3199
|
+
* roughness from the post-processing values, or off, from the next frame on. The TypeScript API
|
|
3200
|
+
* checks the values.
|
|
3201
|
+
* @param {boolean} on
|
|
3202
|
+
* @returns {number}
|
|
3203
|
+
*/
|
|
3204
|
+
export function setSsr(on) {
|
|
3205
|
+
const ret = wasm.setSsr(on);
|
|
3206
|
+
return ret >>> 0;
|
|
3207
|
+
}
|
|
3208
|
+
|
|
3209
|
+
/**
|
|
3210
|
+
* Sets the size of screen-space reflections' grid, in thousandths of the render size each way,
|
|
3211
|
+
* and the most steps of their march, which the quality settings set, from the next frame on: a
|
|
3212
|
+
* size of 0 draws none.
|
|
3213
|
+
* @param {number} thousandths
|
|
3214
|
+
* @param {number} steps
|
|
3215
|
+
* @returns {number}
|
|
3216
|
+
*/
|
|
3217
|
+
export function setSsrQuality(thousandths, steps) {
|
|
3218
|
+
const ret = wasm.setSsrQuality(thousandths, steps);
|
|
3219
|
+
return ret >>> 0;
|
|
3220
|
+
}
|
|
3221
|
+
|
|
3222
|
+
/**
|
|
3223
|
+
* Says whether a still view may accumulate its frames and rest: the image tests and hold mode turn
|
|
3224
|
+
* the accumulation off, so a captured frame is the frame the sketch drew once.
|
|
3225
|
+
* @param {boolean} enabled
|
|
3226
|
+
*/
|
|
3227
|
+
export function setStillEnabled(enabled) {
|
|
3228
|
+
wasm.setStillEnabled(enabled);
|
|
3229
|
+
}
|
|
3230
|
+
|
|
3231
|
+
/**
|
|
3232
|
+
* Sets the taps of each step of the subsurface blur, which the quality settings set, from the
|
|
3233
|
+
* next frame on: one of 11, 17 or 25, or 0, which draws no blur and no skin pass. Other counts
|
|
3234
|
+
* take the next count up, at most 25.
|
|
3235
|
+
* @param {number} taps
|
|
3236
|
+
* @returns {number}
|
|
3237
|
+
*/
|
|
3238
|
+
export function setSubsurfaceTaps(taps) {
|
|
3239
|
+
const ret = wasm.setSubsurfaceTaps(taps);
|
|
3240
|
+
return ret >>> 0;
|
|
3241
|
+
}
|
|
3242
|
+
|
|
3243
|
+
/**
|
|
3244
|
+
* Turns temporal anti-aliasing on, a prototype, or off with a `feedback` of 0, from the next
|
|
3245
|
+
* frame on. `feedback` is the history's share in thousandths, `jitter` moves the camera by the
|
|
3246
|
+
* sequence's sub-pixel offsets, `phone` picks the path whose reads cost less per pixel,
|
|
3247
|
+
* `reactive` names the transparency signals that lower the history, as bits, and `exposure`
|
|
3248
|
+
* scales the history by the frame's exposure ratio.
|
|
3249
|
+
* @param {number} feedback
|
|
3250
|
+
* @param {boolean} jitter
|
|
3251
|
+
* @param {boolean} phone
|
|
3252
|
+
* @param {number} reactive
|
|
3253
|
+
* @param {boolean} exposure
|
|
3254
|
+
* @returns {number}
|
|
3255
|
+
*/
|
|
3256
|
+
export function setTaa(feedback, jitter, phone, reactive, exposure) {
|
|
3257
|
+
const ret = wasm.setTaa(feedback, jitter, phone, reactive, exposure);
|
|
3258
|
+
return ret >>> 0;
|
|
3259
|
+
}
|
|
3260
|
+
|
|
3261
|
+
/**
|
|
3262
|
+
* Gives a texture new texels and returns the address to write them at.
|
|
3263
|
+
* @param {number} texture
|
|
3264
|
+
* @param {number} width
|
|
3265
|
+
* @param {number} height
|
|
3266
|
+
* @returns {number}
|
|
3267
|
+
*/
|
|
3268
|
+
export function setTextureData(texture, width, height) {
|
|
3269
|
+
const ret = wasm.setTextureData(texture, width, height);
|
|
3270
|
+
return ret >>> 0;
|
|
3271
|
+
}
|
|
3272
|
+
|
|
3273
|
+
/**
|
|
3274
|
+
* Gives a texture an image and returns the image's id.
|
|
3275
|
+
* @param {number} texture
|
|
3276
|
+
* @param {number} width
|
|
3277
|
+
* @param {number} height
|
|
3278
|
+
* @param {number} flags
|
|
3279
|
+
* @returns {number}
|
|
3280
|
+
*/
|
|
3281
|
+
export function setTextureImage(texture, width, height, flags) {
|
|
3282
|
+
const ret = wasm.setTextureImage(texture, width, height, flags);
|
|
3283
|
+
return ret >>> 0;
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
/**
|
|
3287
|
+
* Changes one of the texture store's settings.
|
|
3288
|
+
* @param {number} option
|
|
3289
|
+
* @param {number} value
|
|
3290
|
+
* @returns {number}
|
|
3291
|
+
*/
|
|
3292
|
+
export function setTextureOption(option, value) {
|
|
3293
|
+
const ret = wasm.setTextureOption(option, value);
|
|
3294
|
+
return ret >>> 0;
|
|
3295
|
+
}
|
|
3296
|
+
|
|
3297
|
+
/**
|
|
3298
|
+
* Gives a rectangle of a texture new texels and returns the address to write them at.
|
|
3299
|
+
* @param {number} texture
|
|
3300
|
+
* @param {number} x
|
|
3301
|
+
* @param {number} y
|
|
3302
|
+
* @param {number} width
|
|
3303
|
+
* @param {number} height
|
|
3304
|
+
* @returns {number}
|
|
3305
|
+
*/
|
|
3306
|
+
export function setTextureRegion(texture, x, y, width, height) {
|
|
3307
|
+
const ret = wasm.setTextureRegion(texture, x, y, width, height);
|
|
3308
|
+
return ret >>> 0;
|
|
3309
|
+
}
|
|
3310
|
+
|
|
3311
|
+
/**
|
|
3312
|
+
* Notes that the page can load a texture's texels again.
|
|
3313
|
+
* @param {number} texture
|
|
3314
|
+
* @returns {number}
|
|
3315
|
+
*/
|
|
3316
|
+
export function setTextureReloadable(texture) {
|
|
3317
|
+
const ret = wasm.setTextureReloadable(texture);
|
|
3318
|
+
return ret >>> 0;
|
|
3319
|
+
}
|
|
3320
|
+
|
|
3321
|
+
/**
|
|
3322
|
+
* Makes the final pass map HDR color with the custom tone curve whose compiled WGSL has render
|
|
3323
|
+
* pipeline templates from `template` on, from the next frame on: the pass's build at `template`
|
|
3324
|
+
* and its bloom build at the next. Template 0 returns to the tone mapping that `setOutput` sets.
|
|
3325
|
+
* @param {number} template
|
|
3326
|
+
* @returns {number}
|
|
3327
|
+
*/
|
|
3328
|
+
export function setToneCurve(template) {
|
|
3329
|
+
const ret = wasm.setToneCurve(template);
|
|
3330
|
+
return ret >>> 0;
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3333
|
+
/**
|
|
3334
|
+
* Sets the vertices of one shape and the number of its copies for a draw that makes its own
|
|
3335
|
+
* vertices. A frame reads them, so the change uploads nothing.
|
|
3336
|
+
* @param {number} id
|
|
3337
|
+
* @param {number} vertices
|
|
3338
|
+
* @param {number} instances
|
|
3339
|
+
* @returns {number}
|
|
3340
|
+
*/
|
|
3341
|
+
export function setVertexDrawCounts(id, vertices, instances) {
|
|
3342
|
+
const ret = wasm.setVertexDrawCounts(id, vertices, instances);
|
|
3343
|
+
return ret >>> 0;
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
/**
|
|
3347
|
+
* Turns the vignette on with its intensity, size, falloff and roundness from the post-processing
|
|
3348
|
+
* values, or off, from the next frame on. The TypeScript API checks the values.
|
|
3349
|
+
* @param {boolean} on
|
|
3350
|
+
* @returns {number}
|
|
3351
|
+
*/
|
|
3352
|
+
export function setVignette(on) {
|
|
3353
|
+
const ret = wasm.setVignette(on);
|
|
3354
|
+
return ret >>> 0;
|
|
3355
|
+
}
|
|
3356
|
+
|
|
3357
|
+
/**
|
|
3358
|
+
* What casts shadows in the last recorded frame: the main directional light's cascades in the
|
|
3359
|
+
* bits of `shadow_casters::CASCADE_MASK`, 0 when it casts none, and `shadow_casters::TILES` when
|
|
3360
|
+
* point or spot lights cast shadows. The quality governor lightens only the shadows that exist.
|
|
3361
|
+
* @returns {number}
|
|
3362
|
+
*/
|
|
3363
|
+
export function shadowCasters() {
|
|
3364
|
+
const ret = wasm.shadowCasters();
|
|
3365
|
+
return ret >>> 0;
|
|
3366
|
+
}
|
|
3367
|
+
|
|
3368
|
+
/**
|
|
3369
|
+
* Takes whole `seconds` off the birth times of records `from..to`, which moves the time that
|
|
3370
|
+
* they count from, and marks them for the next frame's upload.
|
|
3371
|
+
* @param {number} id
|
|
3372
|
+
* @param {number} from
|
|
3373
|
+
* @param {number} to
|
|
3374
|
+
* @param {number} seconds
|
|
3375
|
+
* @returns {number}
|
|
3376
|
+
*/
|
|
3377
|
+
export function shiftParticleRecords(id, from, to, seconds) {
|
|
3378
|
+
const ret = wasm.shiftParticleRecords(id, from, to, seconds);
|
|
3379
|
+
return ret >>> 0;
|
|
3380
|
+
}
|
|
3381
|
+
|
|
3382
|
+
/**
|
|
3383
|
+
* Forgets a chunk, so its slot draws nothing.
|
|
3384
|
+
* @param {number} cloud
|
|
3385
|
+
* @param {number} slot
|
|
3386
|
+
* @returns {number}
|
|
3387
|
+
*/
|
|
3388
|
+
export function splatChunkDestroy(cloud, slot) {
|
|
3389
|
+
const ret = wasm.splatChunkDestroy(cloud, slot);
|
|
3390
|
+
return ret >>> 0;
|
|
3391
|
+
}
|
|
3392
|
+
|
|
3393
|
+
/**
|
|
3394
|
+
* The address of one of a chunk's arrays: positions (0), rotations (1), scales (2) or colors (3).
|
|
3395
|
+
* 0 for a cloud, slot or field that holds none.
|
|
3396
|
+
* @param {number} cloud
|
|
3397
|
+
* @param {number} slot
|
|
3398
|
+
* @param {number} field
|
|
3399
|
+
* @returns {number}
|
|
3400
|
+
*/
|
|
3401
|
+
export function splatChunkField(cloud, slot, field) {
|
|
3402
|
+
const ret = wasm.splatChunkField(cloud, slot, field);
|
|
3403
|
+
return ret >>> 0;
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3406
|
+
/**
|
|
3407
|
+
* Stores `count` rows at `slot` of `cloud`, replacing what the slot held. The add-on then writes
|
|
3408
|
+
* the arrays at the addresses that `splatChunkField` gives.
|
|
3409
|
+
* @param {number} cloud
|
|
3410
|
+
* @param {number} slot
|
|
3411
|
+
* @param {number} count
|
|
3412
|
+
* @returns {number}
|
|
3413
|
+
*/
|
|
3414
|
+
export function splatChunkPrepare(cloud, slot, count) {
|
|
3415
|
+
const ret = wasm.splatChunkPrepare(cloud, slot, count);
|
|
3416
|
+
return ret >>> 0;
|
|
3417
|
+
}
|
|
3418
|
+
|
|
3419
|
+
/**
|
|
3420
|
+
* Forgets every chunk of a cloud, which a page frees with the cloud.
|
|
3421
|
+
* @param {number} cloud
|
|
3422
|
+
* @returns {number}
|
|
3423
|
+
*/
|
|
3424
|
+
export function splatChunksDrop(cloud) {
|
|
3425
|
+
const ret = wasm.splatChunksDrop(cloud);
|
|
3426
|
+
return ret >>> 0;
|
|
3427
|
+
}
|
|
3428
|
+
|
|
3429
|
+
/**
|
|
3430
|
+
* Makes room for `slots` chunk places in `cloud`'s run of the splats add-on's table. A pack
|
|
3431
|
+
* never grows the table between frames.
|
|
3432
|
+
* @param {number} cloud
|
|
3433
|
+
* @param {number} slots
|
|
3434
|
+
* @returns {number}
|
|
3435
|
+
*/
|
|
3436
|
+
export function splatChunksReserve(cloud, slots) {
|
|
3437
|
+
const ret = wasm.splatChunksReserve(cloud, slots);
|
|
3438
|
+
return ret >>> 0;
|
|
3439
|
+
}
|
|
3440
|
+
|
|
3441
|
+
/**
|
|
3442
|
+
* Packs the chosen prefix of every chunk of `cloud` into the batch's rows, in slot order, and
|
|
3443
|
+
* sets the batch's active count. Returns 0, or the core's error; `splatPackedCount` gives the
|
|
3444
|
+
* batch's active count after the pack, which on a refused pack is the count that it kept.
|
|
3445
|
+
* @param {number} batch
|
|
3446
|
+
* @param {number} cloud
|
|
3447
|
+
* @param {number} slots
|
|
3448
|
+
* @returns {number}
|
|
3449
|
+
*/
|
|
3450
|
+
export function splatPack(batch, cloud, slots) {
|
|
3451
|
+
const ret = wasm.splatPack(batch, cloud, slots);
|
|
3452
|
+
return ret >>> 0;
|
|
3453
|
+
}
|
|
3454
|
+
|
|
3455
|
+
/**
|
|
3456
|
+
* Makes room for `slots` chosen counts in the pack's plan, which TypeScript then writes, and
|
|
3457
|
+
* returns their address. The plan only grows, so a writer with fewer slots keeps a view of its
|
|
3458
|
+
* own prefix; a writer that outgrows it moves the plan, and every writer reads the address again.
|
|
3459
|
+
* @param {number} slots
|
|
3460
|
+
* @returns {number}
|
|
3461
|
+
*/
|
|
3462
|
+
export function splatPackPlan(slots) {
|
|
3463
|
+
const ret = wasm.splatPackPlan(slots);
|
|
3464
|
+
return ret >>> 0;
|
|
3465
|
+
}
|
|
3466
|
+
|
|
3467
|
+
/**
|
|
3468
|
+
* The batch's active count after the last pack: the rows that it wrote, or the count that the
|
|
3469
|
+
* batch kept when it owns no transform rows.
|
|
3470
|
+
* @returns {number}
|
|
3471
|
+
*/
|
|
3472
|
+
export function splatPackedCount() {
|
|
3473
|
+
const ret = wasm.splatPackedCount();
|
|
3474
|
+
return ret >>> 0;
|
|
3475
|
+
}
|
|
3476
|
+
|
|
3477
|
+
/**
|
|
3478
|
+
* The bands of the tree of cluster patches of the mesh `mesh` that a view drew since its watch
|
|
3479
|
+
* began, one bit each, bit 0 for the band that the file holds. 0 for a mesh that no loader
|
|
3480
|
+
* watches.
|
|
3481
|
+
* @param {number} mesh
|
|
3482
|
+
* @returns {number}
|
|
3483
|
+
*/
|
|
3484
|
+
export function stageBandPicks(mesh) {
|
|
3485
|
+
const ret = wasm.stageBandPicks(mesh);
|
|
3486
|
+
return ret >>> 0;
|
|
3487
|
+
}
|
|
3488
|
+
|
|
3489
|
+
/**
|
|
3490
|
+
* The frames that drew the mesh `mesh` since its watch began: 0 for a mesh that no loader
|
|
3491
|
+
* watches.
|
|
3492
|
+
* @param {number} mesh
|
|
3493
|
+
* @returns {number}
|
|
3494
|
+
*/
|
|
3495
|
+
export function stageFrames(mesh) {
|
|
3496
|
+
const ret = wasm.stageFrames(mesh);
|
|
3497
|
+
return ret >>> 0;
|
|
3498
|
+
}
|
|
3499
|
+
|
|
3500
|
+
/**
|
|
3501
|
+
* The levels of the mesh `mesh` that a view picked since its watch began, one bit each, bit 0 for
|
|
3502
|
+
* the mesh itself. 0 for a mesh that no loader watches.
|
|
3503
|
+
* @param {number} mesh
|
|
3504
|
+
* @returns {number}
|
|
3505
|
+
*/
|
|
3506
|
+
export function stageLevelPicks(mesh) {
|
|
3507
|
+
const ret = wasm.stageLevelPicks(mesh);
|
|
3508
|
+
return ret >>> 0;
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3511
|
+
/**
|
|
3512
|
+
* Tells the texture store what the thread that draws has.
|
|
3513
|
+
* @param {number} images_arrived
|
|
3514
|
+
* @param {number} frames_taken
|
|
3515
|
+
*/
|
|
3516
|
+
export function syncTextures(images_arrived, frames_taken) {
|
|
3517
|
+
wasm.syncTextures(images_arrived, frames_taken);
|
|
3518
|
+
}
|
|
3519
|
+
|
|
3520
|
+
/**
|
|
3521
|
+
* The whole microseconds that the sketch thread spent in parallel loops that it handed out since
|
|
3522
|
+
* the last call, which starts the total again from zero. The page starts job workers as it grows.
|
|
3523
|
+
* @returns {number}
|
|
3524
|
+
*/
|
|
3525
|
+
export function takeHandedUs() {
|
|
3526
|
+
const ret = wasm.takeHandedUs();
|
|
3527
|
+
return ret >>> 0;
|
|
3528
|
+
}
|
|
3529
|
+
|
|
3530
|
+
/**
|
|
3531
|
+
* The whole microseconds job worker `index` spent on work since the last call for it, which
|
|
3532
|
+
* starts its total again from zero. The sketch thread reads it once per frame.
|
|
3533
|
+
* @param {number} index
|
|
3534
|
+
* @returns {number}
|
|
3535
|
+
*/
|
|
3536
|
+
export function takeJobBusyUs(index) {
|
|
3537
|
+
const ret = wasm.takeJobBusyUs(index);
|
|
3538
|
+
return ret >>> 0;
|
|
3539
|
+
}
|
|
3540
|
+
|
|
3541
|
+
/**
|
|
3542
|
+
* Takes the next texture whose texels the page should load again.
|
|
3543
|
+
* @returns {number}
|
|
3544
|
+
*/
|
|
3545
|
+
export function takeTextureReload() {
|
|
3546
|
+
const ret = wasm.takeTextureReload();
|
|
3547
|
+
return ret >>> 0;
|
|
3548
|
+
}
|
|
3549
|
+
|
|
3550
|
+
/**
|
|
3551
|
+
* The array layer that a map of `texture` samples on the GPU: the first layer of the state that a
|
|
3552
|
+
* pass wrote last, for a pass that keeps two states, and the texture's own first layer otherwise.
|
|
3553
|
+
* 0 while no image of the texture is on the GPU.
|
|
3554
|
+
* @param {number} texture
|
|
3555
|
+
* @returns {number}
|
|
3556
|
+
*/
|
|
3557
|
+
export function textureLayer(texture) {
|
|
3558
|
+
const ret = wasm.textureLayer(texture);
|
|
3559
|
+
return ret >>> 0;
|
|
3560
|
+
}
|
|
3561
|
+
|
|
3562
|
+
/**
|
|
3563
|
+
* Reads one of the texture store's numbers.
|
|
3564
|
+
* @param {number} field
|
|
3565
|
+
* @param {number} texture
|
|
3566
|
+
* @returns {number}
|
|
3567
|
+
*/
|
|
3568
|
+
export function textureStat(field, texture) {
|
|
3569
|
+
const ret = wasm.textureStat(field, texture);
|
|
3570
|
+
return ret;
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
/**
|
|
3574
|
+
* Starts or stops the timing of the parallel loops that the sketch thread hands out. Each timing
|
|
3575
|
+
* reads the browser's clock, which allocates, so the sketch thread times them only while it may
|
|
3576
|
+
* ask for more job workers.
|
|
3577
|
+
* @param {boolean} on
|
|
3578
|
+
*/
|
|
3579
|
+
export function timeHandedLoops(on) {
|
|
3580
|
+
wasm.timeHandedLoops(on);
|
|
3581
|
+
}
|
|
3582
|
+
|
|
3583
|
+
/**
|
|
3584
|
+
* Turns a rectangle's rows over in place, so that its last row comes first, which a canvas needs:
|
|
3585
|
+
* it counts rows from its top, and a texture counts them from the bottom.
|
|
3586
|
+
*
|
|
3587
|
+
* The rectangle starts at `address` in the engine's memory, each row is `row_bytes` long, and
|
|
3588
|
+
* there are `height` rows. The caller writes the rectangle there first, and gives a length that it
|
|
3589
|
+
* really wrote: this function trusts the three numbers and turns exactly that many bytes.
|
|
3590
|
+
* @param {number} address
|
|
3591
|
+
* @param {number} row_bytes
|
|
3592
|
+
* @param {number} height
|
|
3593
|
+
*/
|
|
3594
|
+
export function turnRows(address, row_bytes, height) {
|
|
3595
|
+
wasm.turnRows(address, row_bytes, height);
|
|
3596
|
+
}
|
|
3597
|
+
|
|
3598
|
+
/**
|
|
3599
|
+
* Stops watching the levels that the views pick for the mesh `mesh`, so the frames that follow pay
|
|
3600
|
+
* nothing while no loader waits on it. The loader of a model with staged levels releases a watch
|
|
3601
|
+
* that it has no more use for, and watches the mesh again when the camera could want its next
|
|
3602
|
+
* stage. 0 for success.
|
|
3603
|
+
* @param {number} mesh
|
|
3604
|
+
* @returns {number}
|
|
3605
|
+
*/
|
|
3606
|
+
export function unwatchStageLevels(mesh) {
|
|
3607
|
+
const ret = wasm.unwatchStageLevels(mesh);
|
|
3608
|
+
return ret >>> 0;
|
|
3609
|
+
}
|
|
3610
|
+
|
|
3611
|
+
/**
|
|
3612
|
+
* Advances every played clip by `step_us` microseconds, then writes every animated instance's
|
|
3613
|
+
* skinning matrices, on the job workers. Then the bounds of skinned and morphed objects follow
|
|
3614
|
+
* their poses and weights, which marks the objects before the transform update. The microseconds
|
|
3615
|
+
* cross from TypeScript as a whole number, so no number object is made for them.
|
|
3616
|
+
* @param {number} step_us
|
|
3617
|
+
* @returns {number}
|
|
3618
|
+
*/
|
|
3619
|
+
export function updateAnimations(step_us) {
|
|
3620
|
+
const ret = wasm.updateAnimations(step_us);
|
|
3621
|
+
return ret >>> 0;
|
|
3622
|
+
}
|
|
3623
|
+
|
|
3624
|
+
/**
|
|
3625
|
+
* Updates the rows of every instance batch that need it.
|
|
3626
|
+
* @param {number} frame
|
|
3627
|
+
* @returns {number}
|
|
3628
|
+
*/
|
|
3629
|
+
export function updateBatches(frame) {
|
|
3630
|
+
const ret = wasm.updateBatches(frame);
|
|
3631
|
+
return ret >>> 0;
|
|
3632
|
+
}
|
|
3633
|
+
|
|
3634
|
+
/**
|
|
3635
|
+
* Updates the world matrices and bounding spheres of the objects that the sketch moved after
|
|
3636
|
+
* `updateTransforms`, and of the objects below them. Call it before `cullFrame`.
|
|
3637
|
+
* @returns {number}
|
|
3638
|
+
*/
|
|
3639
|
+
export function updateLateTransforms() {
|
|
3640
|
+
const ret = wasm.updateLateTransforms();
|
|
3641
|
+
return ret >>> 0;
|
|
3642
|
+
}
|
|
3643
|
+
|
|
3644
|
+
/**
|
|
3645
|
+
* Fills the register with what each table and allocator holds, and returns the address of three
|
|
3646
|
+
* numbers per area: the bytes that it reserves, uses and has used at most.
|
|
3647
|
+
* @returns {number}
|
|
3648
|
+
*/
|
|
3649
|
+
export function updateMemoryRegister() {
|
|
3650
|
+
const ret = wasm.updateMemoryRegister();
|
|
3651
|
+
return ret >>> 0;
|
|
3652
|
+
}
|
|
3653
|
+
|
|
3654
|
+
/**
|
|
3655
|
+
* Updates world matrices and bounding spheres of scene objects, in parallel on the job workers.
|
|
3656
|
+
* @returns {number}
|
|
3657
|
+
*/
|
|
3658
|
+
export function updateTransforms() {
|
|
3659
|
+
const ret = wasm.updateTransforms();
|
|
3660
|
+
return ret >>> 0;
|
|
3661
|
+
}
|
|
3662
|
+
|
|
3663
|
+
/**
|
|
3664
|
+
* Writes new values of the attribute at vertex shader `location` into vertices `start` to
|
|
3665
|
+
* `start + count` of mesh `mesh`, which counts from 1, from the staging words: `components`
|
|
3666
|
+
* values per vertex, vertex after vertex. The next frame uploads the bytes that changed. The
|
|
3667
|
+
* first update of a mesh changes the scene's structure once, so the shadow tiles of point and
|
|
3668
|
+
* spot lights watch the objects that draw it. New positions make queries build the mesh's tree
|
|
3669
|
+
* again. Fails, changing nothing, for an update that does not fit the mesh.
|
|
3670
|
+
* @param {number} mesh
|
|
3671
|
+
* @param {number} location
|
|
3672
|
+
* @param {number} components
|
|
3673
|
+
* @param {number} start
|
|
3674
|
+
* @param {number} count
|
|
3675
|
+
* @returns {number}
|
|
3676
|
+
*/
|
|
3677
|
+
export function updateVertices(mesh, location, components, start, count) {
|
|
3678
|
+
const ret = wasm.updateVertices(mesh, location, components, start, count);
|
|
3679
|
+
return ret >>> 0;
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3682
|
+
/**
|
|
3683
|
+
* The index list entries that a recorded frame draws, where the frame builder culls on the CPU,
|
|
3684
|
+
* or `NOT_COUNTED` where the GPU culls.
|
|
3685
|
+
* @param {number} frame
|
|
3686
|
+
* @returns {number}
|
|
3687
|
+
*/
|
|
3688
|
+
export function visibleEntries(frame) {
|
|
3689
|
+
const ret = wasm.visibleEntries(frame);
|
|
3690
|
+
return ret >>> 0;
|
|
3691
|
+
}
|
|
3692
|
+
|
|
3693
|
+
/**
|
|
3694
|
+
* Watches the levels that the views pick for the mesh `mesh`, from the frame that the renderer
|
|
3695
|
+
* began last on, in place of a watch that the mesh had. The loader of a model with staged levels
|
|
3696
|
+
* calls it before it waits for the next stage, so a level that the camera never picks costs no
|
|
3697
|
+
* download. 0 for success.
|
|
3698
|
+
* @param {number} mesh
|
|
3699
|
+
* @returns {number}
|
|
3700
|
+
*/
|
|
3701
|
+
export function watchStageLevels(mesh) {
|
|
3702
|
+
const ret = wasm.watchStageLevels(mesh);
|
|
3703
|
+
return ret >>> 0;
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3706
|
+
/**
|
|
3707
|
+
* Copies an object's world matrix of the current frame into the engine's matrix words (see
|
|
3708
|
+
* `worldMatrixAddress`): 12 numbers, rows of a 3 × 4 matrix, with its translation from the origin
|
|
3709
|
+
* in 64-bit floats.
|
|
3710
|
+
* @param {number} handle
|
|
3711
|
+
* @returns {number}
|
|
3712
|
+
*/
|
|
3713
|
+
export function worldMatrix(handle) {
|
|
3714
|
+
const ret = wasm.worldMatrix(handle);
|
|
3715
|
+
return ret >>> 0;
|
|
3716
|
+
}
|
|
3717
|
+
|
|
3718
|
+
/**
|
|
3719
|
+
* The address of the 12 64-bit floats that `worldMatrix` writes.
|
|
3720
|
+
* @returns {number}
|
|
3721
|
+
*/
|
|
3722
|
+
export function worldMatrixAddress() {
|
|
3723
|
+
const ret = wasm.worldMatrixAddress();
|
|
3724
|
+
return ret >>> 0;
|
|
3725
|
+
}
|
|
3726
|
+
|
|
3727
|
+
/**
|
|
3728
|
+
* Writes the records of `count` births from the block that `particleRecordBlock` gave, from
|
|
3729
|
+
* record `first` on, and marks them for the next frame's upload.
|
|
3730
|
+
* @param {number} id
|
|
3731
|
+
* @param {number} count
|
|
3732
|
+
* @param {number} first
|
|
3733
|
+
* @returns {number}
|
|
3734
|
+
*/
|
|
3735
|
+
export function writeParticleRecords(id, count, first) {
|
|
3736
|
+
const ret = wasm.writeParticleRecords(id, count, first);
|
|
3737
|
+
return ret >>> 0;
|
|
3738
|
+
}
|
|
3739
|
+
function __wbg_get_imports(memory) {
|
|
3740
|
+
const import0 = {
|
|
3741
|
+
__proto__: null,
|
|
3742
|
+
__wbg___null3dWantJobWorkers_9525f5943c16f574: function() {
|
|
3743
|
+
globalThis.__null3dWantJobWorkers();
|
|
3744
|
+
},
|
|
3745
|
+
__wbg_error_69c3382fbc4ad6f0: function(arg0, arg1) {
|
|
3746
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
3747
|
+
},
|
|
3748
|
+
__wbg_now_521320d8dc04e27d: function() {
|
|
3749
|
+
const ret = performance.now();
|
|
3750
|
+
return ret;
|
|
3751
|
+
},
|
|
3752
|
+
__wbindgen_init_externref_table: function() {
|
|
3753
|
+
const table = wasm.__wbindgen_externrefs;
|
|
3754
|
+
const offset = table.grow(4);
|
|
3755
|
+
table.set(0, undefined);
|
|
3756
|
+
table.set(offset + 0, undefined);
|
|
3757
|
+
table.set(offset + 1, null);
|
|
3758
|
+
table.set(offset + 2, true);
|
|
3759
|
+
table.set(offset + 3, false);
|
|
3760
|
+
},
|
|
3761
|
+
memory: memory || new WebAssembly.Memory({initial:19,maximum:65536,shared:true}),
|
|
3762
|
+
};
|
|
3763
|
+
return {
|
|
3764
|
+
__proto__: null,
|
|
3765
|
+
"./null3d_bg.js": import0,
|
|
3766
|
+
};
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3769
|
+
let cachedFloat32ArrayMemory0 = null;
|
|
3770
|
+
function getFloat32ArrayMemory0() {
|
|
3771
|
+
if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.buffer !== wasm.memory.buffer) {
|
|
3772
|
+
cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
|
|
3773
|
+
}
|
|
3774
|
+
return cachedFloat32ArrayMemory0;
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3777
|
+
function getStringFromWasm0(ptr, len) {
|
|
3778
|
+
return decodeText(ptr >>> 0, len);
|
|
3779
|
+
}
|
|
3780
|
+
|
|
3781
|
+
let cachedUint8ArrayMemory0 = null;
|
|
3782
|
+
function getUint8ArrayMemory0() {
|
|
3783
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.buffer !== wasm.memory.buffer) {
|
|
3784
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
3785
|
+
}
|
|
3786
|
+
return cachedUint8ArrayMemory0;
|
|
3787
|
+
}
|
|
3788
|
+
|
|
3789
|
+
function passArrayF32ToWasm0(arg, malloc) {
|
|
3790
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
3791
|
+
getFloat32ArrayMemory0().set(arg, ptr / 4);
|
|
3792
|
+
WASM_VECTOR_LEN = arg.length;
|
|
3793
|
+
return ptr;
|
|
3794
|
+
}
|
|
3795
|
+
|
|
3796
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
3797
|
+
if (realloc === undefined) {
|
|
3798
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
3799
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
3800
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
3801
|
+
WASM_VECTOR_LEN = buf.length;
|
|
3802
|
+
return ptr;
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
let len = arg.length;
|
|
3806
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
3807
|
+
|
|
3808
|
+
const mem = getUint8ArrayMemory0();
|
|
3809
|
+
|
|
3810
|
+
let offset = 0;
|
|
3811
|
+
|
|
3812
|
+
for (; offset < len; offset++) {
|
|
3813
|
+
const code = arg.charCodeAt(offset);
|
|
3814
|
+
if (code > 0x7F) break;
|
|
3815
|
+
mem[ptr + offset] = code;
|
|
3816
|
+
}
|
|
3817
|
+
if (offset !== len) {
|
|
3818
|
+
if (offset !== 0) {
|
|
3819
|
+
arg = arg.slice(offset);
|
|
3820
|
+
}
|
|
3821
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
3822
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
3823
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
3824
|
+
|
|
3825
|
+
offset += ret.written;
|
|
3826
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
3827
|
+
}
|
|
3828
|
+
|
|
3829
|
+
WASM_VECTOR_LEN = offset;
|
|
3830
|
+
return ptr;
|
|
3831
|
+
}
|
|
3832
|
+
|
|
3833
|
+
let cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : undefined);
|
|
3834
|
+
if (cachedTextDecoder) cachedTextDecoder.decode();
|
|
3835
|
+
|
|
3836
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
3837
|
+
let numBytesDecoded = 0;
|
|
3838
|
+
function decodeText(ptr, len) {
|
|
3839
|
+
numBytesDecoded += len;
|
|
3840
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
3841
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
3842
|
+
cachedTextDecoder.decode();
|
|
3843
|
+
numBytesDecoded = len;
|
|
3844
|
+
}
|
|
3845
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr, ptr + len));
|
|
3846
|
+
}
|
|
3847
|
+
|
|
3848
|
+
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder() : undefined);
|
|
3849
|
+
|
|
3850
|
+
if (cachedTextEncoder) {
|
|
3851
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
3852
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
3853
|
+
view.set(buf);
|
|
3854
|
+
return {
|
|
3855
|
+
read: arg.length,
|
|
3856
|
+
written: buf.length
|
|
3857
|
+
};
|
|
3858
|
+
};
|
|
3859
|
+
}
|
|
3860
|
+
|
|
3861
|
+
let WASM_VECTOR_LEN = 0;
|
|
3862
|
+
|
|
3863
|
+
let wasmModule, wasmInstance, wasm;
|
|
3864
|
+
function __wbg_finalize_init(instance, module, thread_stack_size) {
|
|
3865
|
+
wasmInstance = instance;
|
|
3866
|
+
wasm = instance.exports;
|
|
3867
|
+
wasmModule = module;
|
|
3868
|
+
cachedFloat32ArrayMemory0 = null;
|
|
3869
|
+
cachedUint8ArrayMemory0 = null;
|
|
3870
|
+
if (typeof thread_stack_size !== 'undefined' && (typeof thread_stack_size !== 'number' || thread_stack_size === 0 || thread_stack_size % 65536 !== 0)) {
|
|
3871
|
+
throw new Error('invalid stack size');
|
|
3872
|
+
}
|
|
3873
|
+
|
|
3874
|
+
wasm.__wbindgen_start(thread_stack_size);
|
|
3875
|
+
return wasm;
|
|
3876
|
+
}
|
|
3877
|
+
|
|
3878
|
+
async function __wbg_load(module, imports) {
|
|
3879
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
3880
|
+
if (!module.ok) {
|
|
3881
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
3882
|
+
}
|
|
3883
|
+
|
|
3884
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
3885
|
+
try {
|
|
3886
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
3887
|
+
} catch (e) {
|
|
3888
|
+
const validResponse = expectedResponseType(module.type);
|
|
3889
|
+
|
|
3890
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
3891
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
3892
|
+
|
|
3893
|
+
} else { throw e; }
|
|
3894
|
+
}
|
|
3895
|
+
}
|
|
3896
|
+
|
|
3897
|
+
const bytes = await module.arrayBuffer();
|
|
3898
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
3899
|
+
} else {
|
|
3900
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
3901
|
+
|
|
3902
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
3903
|
+
return { instance, module };
|
|
3904
|
+
} else {
|
|
3905
|
+
return instance;
|
|
3906
|
+
}
|
|
3907
|
+
}
|
|
3908
|
+
|
|
3909
|
+
function expectedResponseType(type) {
|
|
3910
|
+
switch (type) {
|
|
3911
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
3912
|
+
}
|
|
3913
|
+
return false;
|
|
3914
|
+
}
|
|
3915
|
+
}
|
|
3916
|
+
|
|
3917
|
+
function initSync(module, memory) {
|
|
3918
|
+
if (wasm !== undefined) return wasm;
|
|
3919
|
+
|
|
3920
|
+
let thread_stack_size
|
|
3921
|
+
if (module !== undefined) {
|
|
3922
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
3923
|
+
({module, memory, thread_stack_size} = module)
|
|
3924
|
+
} else {
|
|
3925
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
3926
|
+
}
|
|
3927
|
+
}
|
|
3928
|
+
|
|
3929
|
+
const imports = __wbg_get_imports(memory);
|
|
3930
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
3931
|
+
module = new WebAssembly.Module(module);
|
|
3932
|
+
}
|
|
3933
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
3934
|
+
return __wbg_finalize_init(instance, module, thread_stack_size);
|
|
3935
|
+
}
|
|
3936
|
+
|
|
3937
|
+
async function __wbg_init(module_or_path, memory) {
|
|
3938
|
+
if (wasm !== undefined) return wasm;
|
|
3939
|
+
|
|
3940
|
+
let thread_stack_size
|
|
3941
|
+
if (module_or_path !== undefined) {
|
|
3942
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
3943
|
+
({module_or_path, memory, thread_stack_size} = module_or_path)
|
|
3944
|
+
} else {
|
|
3945
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
3946
|
+
}
|
|
3947
|
+
}
|
|
3948
|
+
|
|
3949
|
+
if (module_or_path === undefined) {
|
|
3950
|
+
module_or_path = new URL('null3d_bg.wasm', import.meta.url);
|
|
3951
|
+
}
|
|
3952
|
+
const imports = __wbg_get_imports(memory);
|
|
3953
|
+
|
|
3954
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
3955
|
+
module_or_path = fetch(module_or_path);
|
|
3956
|
+
}
|
|
3957
|
+
|
|
3958
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
3959
|
+
|
|
3960
|
+
return __wbg_finalize_init(instance, module, thread_stack_size);
|
|
3961
|
+
}
|
|
3962
|
+
|
|
3963
|
+
export { initSync, __wbg_init as default };
|
|
3964
|
+
|
|
3965
|
+
export function dropMemoryViews() {
|
|
3966
|
+
cachedFloat32ArrayMemory0 = null;
|
|
3967
|
+
cachedUint8ArrayMemory0 = null;
|
|
3968
|
+
}
|
|
3969
|
+
|
|
3970
|
+
export function releaseInstance() {
|
|
3971
|
+
wasmModule = wasmInstance = wasm = undefined;
|
|
3972
|
+
dropMemoryViews();
|
|
3973
|
+
}
|
|
3974
|
+
|
|
3975
|
+
export const coreSources = "ad43c0670b24d3d7";
|