@adobe/ecs 0.0.0-stage → 0.2.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 +21 -0
- package/README.md +57 -2
- package/dist/implementation/compiler/access.d.ts +6 -0
- package/dist/implementation/compiler/access.js +159 -0
- package/dist/implementation/compiler/access.js.map +1 -0
- package/dist/implementation/compiler/archetypes.d.ts +17 -0
- package/dist/implementation/compiler/archetypes.js +141 -0
- package/dist/implementation/compiler/archetypes.js.map +1 -0
- package/dist/implementation/compiler/assign.d.ts +7 -0
- package/dist/implementation/compiler/assign.js +162 -0
- package/dist/implementation/compiler/assign.js.map +1 -0
- package/dist/implementation/compiler/augmentations.d.ts +25 -0
- package/dist/implementation/compiler/augmentations.js +943 -0
- package/dist/implementation/compiler/augmentations.js.map +1 -0
- package/dist/implementation/compiler/bind.d.ts +9 -0
- package/dist/implementation/compiler/bind.js +83 -0
- package/dist/implementation/compiler/bind.js.map +1 -0
- package/dist/implementation/compiler/body-access.d.ts +32 -0
- package/dist/implementation/compiler/body-access.js +479 -0
- package/dist/implementation/compiler/body-access.js.map +1 -0
- package/dist/implementation/compiler/booleans.d.ts +8 -0
- package/dist/implementation/compiler/booleans.js +35 -0
- package/dist/implementation/compiler/booleans.js.map +1 -0
- package/dist/implementation/compiler/branches.d.ts +16 -0
- package/dist/implementation/compiler/branches.js +38 -0
- package/dist/implementation/compiler/branches.js.map +1 -0
- package/dist/implementation/compiler/calls.d.ts +6 -0
- package/dist/implementation/compiler/calls.js +401 -0
- package/dist/implementation/compiler/calls.js.map +1 -0
- package/dist/implementation/compiler/columns.d.ts +26 -0
- package/dist/implementation/compiler/columns.js +53 -0
- package/dist/implementation/compiler/columns.js.map +1 -0
- package/dist/implementation/compiler/compile-kernel.d.ts +37 -0
- package/dist/implementation/compiler/compile-kernel.js +183 -0
- package/dist/implementation/compiler/compile-kernel.js.map +1 -0
- package/dist/implementation/compiler/compiler.d.ts +6 -0
- package/dist/implementation/compiler/compiler.js +7 -0
- package/dist/implementation/compiler/compiler.js.map +1 -0
- package/dist/implementation/compiler/data.d.ts +30 -0
- package/dist/implementation/compiler/data.js +77 -0
- package/dist/implementation/compiler/data.js.map +1 -0
- package/dist/implementation/compiler/describe.d.ts +41 -0
- package/dist/implementation/compiler/describe.js +510 -0
- package/dist/implementation/compiler/describe.js.map +1 -0
- package/dist/implementation/compiler/estree.d.ts +18 -0
- package/dist/implementation/compiler/estree.js +62 -0
- package/dist/implementation/compiler/estree.js.map +1 -0
- package/dist/implementation/compiler/expression.d.ts +6 -0
- package/dist/implementation/compiler/expression.js +153 -0
- package/dist/implementation/compiler/expression.js.map +1 -0
- package/dist/implementation/compiler/failure.d.ts +27 -0
- package/dist/implementation/compiler/failure.js +24 -0
- package/dist/implementation/compiler/failure.js.map +1 -0
- package/dist/implementation/compiler/identify.d.ts +43 -0
- package/dist/implementation/compiler/identify.js +207 -0
- package/dist/implementation/compiler/identify.js.map +1 -0
- package/dist/implementation/compiler/index.d.ts +5 -0
- package/dist/implementation/compiler/index.js +7 -0
- package/dist/implementation/compiler/index.js.map +1 -0
- package/dist/implementation/compiler/inferred.d.ts +32 -0
- package/dist/implementation/compiler/inferred.js +185 -0
- package/dist/implementation/compiler/inferred.js.map +1 -0
- package/dist/implementation/compiler/inline-kernels.d.ts +7 -0
- package/dist/implementation/compiler/inline-kernels.js +16 -0
- package/dist/implementation/compiler/inline-kernels.js.map +1 -0
- package/dist/implementation/compiler/input-schemas.d.ts +23 -0
- package/dist/implementation/compiler/input-schemas.js +102 -0
- package/dist/implementation/compiler/input-schemas.js.map +1 -0
- package/dist/implementation/compiler/ir.d.ts +226 -0
- package/dist/implementation/compiler/ir.js +28 -0
- package/dist/implementation/compiler/ir.js.map +1 -0
- package/dist/implementation/compiler/kernel-id.d.ts +17 -0
- package/dist/implementation/compiler/kernel-id.js +28 -0
- package/dist/implementation/compiler/kernel-id.js.map +1 -0
- package/dist/implementation/compiler/key.d.ts +21 -0
- package/dist/implementation/compiler/key.js +21 -0
- package/dist/implementation/compiler/key.js.map +1 -0
- package/dist/implementation/compiler/link.d.ts +83 -0
- package/dist/implementation/compiler/link.js +186 -0
- package/dist/implementation/compiler/link.js.map +1 -0
- package/dist/implementation/compiler/lists.d.ts +50 -0
- package/dist/implementation/compiler/lists.js +210 -0
- package/dist/implementation/compiler/lists.js.map +1 -0
- package/dist/implementation/compiler/lookups.d.ts +24 -0
- package/dist/implementation/compiler/lookups.js +118 -0
- package/dist/implementation/compiler/lookups.js.map +1 -0
- package/dist/implementation/compiler/math.d.ts +3 -0
- package/dist/implementation/compiler/math.js +10 -0
- package/dist/implementation/compiler/math.js.map +1 -0
- package/dist/implementation/compiler/memory-compiler.d.ts +61 -0
- package/dist/implementation/compiler/memory-compiler.js +271 -0
- package/dist/implementation/compiler/memory-compiler.js.map +1 -0
- package/dist/implementation/compiler/module-scope.d.ts +53 -0
- package/dist/implementation/compiler/module-scope.js +121 -0
- package/dist/implementation/compiler/module-scope.js.map +1 -0
- package/dist/implementation/compiler/module-value.d.ts +15 -0
- package/dist/implementation/compiler/module-value.js +139 -0
- package/dist/implementation/compiler/module-value.js.map +1 -0
- package/dist/implementation/compiler/out.d.ts +4 -0
- package/dist/implementation/compiler/out.js +2 -0
- package/dist/implementation/compiler/out.js.map +1 -0
- package/dist/implementation/compiler/oxc.d.ts +41 -0
- package/dist/implementation/compiler/oxc.js +80 -0
- package/dist/implementation/compiler/oxc.js.map +1 -0
- package/dist/implementation/compiler/package-copies.d.ts +60 -0
- package/dist/implementation/compiler/package-copies.js +140 -0
- package/dist/implementation/compiler/package-copies.js.map +1 -0
- package/dist/implementation/compiler/passes.d.ts +25 -0
- package/dist/implementation/compiler/passes.js +24 -0
- package/dist/implementation/compiler/passes.js.map +1 -0
- package/dist/implementation/compiler/paths.d.ts +5 -0
- package/dist/implementation/compiler/paths.js +20 -0
- package/dist/implementation/compiler/paths.js.map +1 -0
- package/dist/implementation/compiler/plugin.d.ts +18 -0
- package/dist/implementation/compiler/plugin.js +397 -0
- package/dist/implementation/compiler/plugin.js.map +1 -0
- package/dist/implementation/compiler/posix.d.ts +8 -0
- package/dist/implementation/compiler/posix.js +205 -0
- package/dist/implementation/compiler/posix.js.map +1 -0
- package/dist/implementation/compiler/predicates.d.ts +11 -0
- package/dist/implementation/compiler/predicates.js +281 -0
- package/dist/implementation/compiler/predicates.js.map +1 -0
- package/dist/implementation/compiler/print.d.ts +12 -0
- package/dist/implementation/compiler/print.js +116 -0
- package/dist/implementation/compiler/print.js.map +1 -0
- package/dist/implementation/compiler/program.d.ts +10 -0
- package/dist/implementation/compiler/program.js +258 -0
- package/dist/implementation/compiler/program.js.map +1 -0
- package/dist/implementation/compiler/public.d.ts +1 -0
- package/dist/implementation/compiler/public.js +3 -0
- package/dist/implementation/compiler/public.js.map +1 -0
- package/dist/implementation/compiler/scalar.d.ts +8 -0
- package/dist/implementation/compiler/scalar.js +47 -0
- package/dist/implementation/compiler/scalar.js.map +1 -0
- package/dist/implementation/compiler/scope.d.ts +24 -0
- package/dist/implementation/compiler/scope.js +4 -0
- package/dist/implementation/compiler/scope.js.map +1 -0
- package/dist/implementation/compiler/serialize.d.ts +2 -0
- package/dist/implementation/compiler/serialize.js +15 -0
- package/dist/implementation/compiler/serialize.js.map +1 -0
- package/dist/implementation/compiler/signature.d.ts +60 -0
- package/dist/implementation/compiler/signature.js +188 -0
- package/dist/implementation/compiler/signature.js.map +1 -0
- package/dist/implementation/compiler/snapshot.d.ts +23 -0
- package/dist/implementation/compiler/snapshot.js +18 -0
- package/dist/implementation/compiler/snapshot.js.map +1 -0
- package/dist/implementation/compiler/source-map.d.ts +34 -0
- package/dist/implementation/compiler/source-map.js +131 -0
- package/dist/implementation/compiler/source-map.js.map +1 -0
- package/dist/implementation/compiler/spawns.d.ts +41 -0
- package/dist/implementation/compiler/spawns.js +164 -0
- package/dist/implementation/compiler/spawns.js.map +1 -0
- package/dist/implementation/compiler/stamps.d.ts +13 -0
- package/dist/implementation/compiler/stamps.js +44 -0
- package/dist/implementation/compiler/stamps.js.map +1 -0
- package/dist/implementation/compiler/statement.d.ts +7 -0
- package/dist/implementation/compiler/statement.js +112 -0
- package/dist/implementation/compiler/statement.js.map +1 -0
- package/dist/implementation/compiler/terminal.d.ts +8 -0
- package/dist/implementation/compiler/terminal.js +51 -0
- package/dist/implementation/compiler/terminal.js.map +1 -0
- package/dist/implementation/compiler/transform.d.ts +81 -0
- package/dist/implementation/compiler/transform.js +483 -0
- package/dist/implementation/compiler/transform.js.map +1 -0
- package/dist/implementation/compiler/type-schemas.d.ts +130 -0
- package/dist/implementation/compiler/type-schemas.js +701 -0
- package/dist/implementation/compiler/type-schemas.js.map +1 -0
- package/dist/implementation/compiler/unit.d.ts +108 -0
- package/dist/implementation/compiler/unit.js +39 -0
- package/dist/implementation/compiler/unit.js.map +1 -0
- package/dist/implementation/compiler/value.d.ts +115 -0
- package/dist/implementation/compiler/value.js +9 -0
- package/dist/implementation/compiler/value.js.map +1 -0
- package/dist/implementation/compiler/wat.d.ts +12 -0
- package/dist/implementation/compiler/wat.js +379 -0
- package/dist/implementation/compiler/wat.js.map +1 -0
- package/dist/implementation/index.d.ts +2 -0
- package/dist/implementation/index.js +4 -0
- package/dist/implementation/index.js.map +1 -0
- package/dist/implementation/world/activate.d.ts +21 -0
- package/dist/implementation/world/activate.js +137 -0
- package/dist/implementation/world/activate.js.map +1 -0
- package/dist/implementation/world/archetype.d.ts +191 -0
- package/dist/implementation/world/archetype.js +402 -0
- package/dist/implementation/world/archetype.js.map +1 -0
- package/dist/implementation/world/arrays.d.ts +29 -0
- package/dist/implementation/world/arrays.js +34 -0
- package/dist/implementation/world/arrays.js.map +1 -0
- package/dist/implementation/world/arrivals.d.ts +52 -0
- package/dist/implementation/world/arrivals.js +146 -0
- package/dist/implementation/world/arrivals.js.map +1 -0
- package/dist/implementation/world/attach-kernel.d.ts +10 -0
- package/dist/implementation/world/attach-kernel.js +30 -0
- package/dist/implementation/world/attach-kernel.js.map +1 -0
- package/dist/implementation/world/batches.d.ts +18 -0
- package/dist/implementation/world/batches.js +208 -0
- package/dist/implementation/world/batches.js.map +1 -0
- package/dist/implementation/world/buffer.d.ts +60 -0
- package/dist/implementation/world/buffer.js +138 -0
- package/dist/implementation/world/buffer.js.map +1 -0
- package/dist/implementation/world/cascade.d.ts +28 -0
- package/dist/implementation/world/cascade.js +139 -0
- package/dist/implementation/world/cascade.js.map +1 -0
- package/dist/implementation/world/cells.d.ts +7 -0
- package/dist/implementation/world/cells.js +22 -0
- package/dist/implementation/world/cells.js.map +1 -0
- package/dist/implementation/world/check-kernel.d.ts +12 -0
- package/dist/implementation/world/check-kernel.js +119 -0
- package/dist/implementation/world/check-kernel.js.map +1 -0
- package/dist/implementation/world/claims.d.ts +13 -0
- package/dist/implementation/world/claims.js +51 -0
- package/dist/implementation/world/claims.js.map +1 -0
- package/dist/implementation/world/closure.d.ts +12 -0
- package/dist/implementation/world/closure.js +44 -0
- package/dist/implementation/world/closure.js.map +1 -0
- package/dist/implementation/world/command-ring.d.ts +97 -0
- package/dist/implementation/world/command-ring.js +439 -0
- package/dist/implementation/world/command-ring.js.map +1 -0
- package/dist/implementation/world/commands.d.ts +25 -0
- package/dist/implementation/world/commands.js +96 -0
- package/dist/implementation/world/commands.js.map +1 -0
- package/dist/implementation/world/create.d.ts +101 -0
- package/dist/implementation/world/create.js +1009 -0
- package/dist/implementation/world/create.js.map +1 -0
- package/dist/implementation/world/directories.d.ts +28 -0
- package/dist/implementation/world/directories.js +68 -0
- package/dist/implementation/world/directories.js.map +1 -0
- package/dist/implementation/world/entities.d.ts +77 -0
- package/dist/implementation/world/entities.js +137 -0
- package/dist/implementation/world/entities.js.map +1 -0
- package/dist/implementation/world/execute.d.ts +30 -0
- package/dist/implementation/world/execute.js +757 -0
- package/dist/implementation/world/execute.js.map +1 -0
- package/dist/implementation/world/failures.d.ts +53 -0
- package/dist/implementation/world/failures.js +37 -0
- package/dist/implementation/world/failures.js.map +1 -0
- package/dist/implementation/world/finalizers.d.ts +65 -0
- package/dist/implementation/world/finalizers.js +436 -0
- package/dist/implementation/world/finalizers.js.map +1 -0
- package/dist/implementation/world/gpu.d.ts +64 -0
- package/dist/implementation/world/gpu.js +326 -0
- package/dist/implementation/world/gpu.js.map +1 -0
- package/dist/implementation/world/holders.d.ts +21 -0
- package/dist/implementation/world/holders.js +66 -0
- package/dist/implementation/world/holders.js.map +1 -0
- package/dist/implementation/world/index-build.d.ts +88 -0
- package/dist/implementation/world/index-build.js +405 -0
- package/dist/implementation/world/index-build.js.map +1 -0
- package/dist/implementation/world/index-hash.d.ts +138 -0
- package/dist/implementation/world/index-hash.js +809 -0
- package/dist/implementation/world/index-hash.js.map +1 -0
- package/dist/implementation/world/index-keys.d.ts +75 -0
- package/dist/implementation/world/index-keys.js +252 -0
- package/dist/implementation/world/index-keys.js.map +1 -0
- package/dist/implementation/world/index-lookups.d.ts +76 -0
- package/dist/implementation/world/index-lookups.js +572 -0
- package/dist/implementation/world/index-lookups.js.map +1 -0
- package/dist/implementation/world/index-order.d.ts +21 -0
- package/dist/implementation/world/index-order.js +174 -0
- package/dist/implementation/world/index-order.js.map +1 -0
- package/dist/implementation/world/index-readers.d.ts +101 -0
- package/dist/implementation/world/index-readers.js +341 -0
- package/dist/implementation/world/index-readers.js.map +1 -0
- package/dist/implementation/world/index-sorted.d.ts +120 -0
- package/dist/implementation/world/index-sorted.js +637 -0
- package/dist/implementation/world/index-sorted.js.map +1 -0
- package/dist/implementation/world/indexes.d.ts +134 -0
- package/dist/implementation/world/indexes.js +1116 -0
- package/dist/implementation/world/indexes.js.map +1 -0
- package/dist/implementation/world/input.d.ts +3 -0
- package/dist/implementation/world/input.js +17 -0
- package/dist/implementation/world/input.js.map +1 -0
- package/dist/implementation/world/intrinsics.d.ts +5 -0
- package/dist/implementation/world/intrinsics.js +33 -0
- package/dist/implementation/world/intrinsics.js.map +1 -0
- package/dist/implementation/world/join.d.ts +26 -0
- package/dist/implementation/world/join.js +766 -0
- package/dist/implementation/world/join.js.map +1 -0
- package/dist/implementation/world/joined-observer.d.ts +208 -0
- package/dist/implementation/world/joined-observer.js +810 -0
- package/dist/implementation/world/joined-observer.js.map +1 -0
- package/dist/implementation/world/joining.d.ts +392 -0
- package/dist/implementation/world/joining.js +187 -0
- package/dist/implementation/world/joining.js.map +1 -0
- package/dist/implementation/world/journal.d.ts +22 -0
- package/dist/implementation/world/journal.js +25 -0
- package/dist/implementation/world/journal.js.map +1 -0
- package/dist/implementation/world/kernel-indexes.d.ts +37 -0
- package/dist/implementation/world/kernel-indexes.js +182 -0
- package/dist/implementation/world/kernel-indexes.js.map +1 -0
- package/dist/implementation/world/kernel.d.ts +392 -0
- package/dist/implementation/world/kernel.js +5 -0
- package/dist/implementation/world/kernel.js.map +1 -0
- package/dist/implementation/world/kernels.d.ts +88 -0
- package/dist/implementation/world/kernels.js +356 -0
- package/dist/implementation/world/kernels.js.map +1 -0
- package/dist/implementation/world/layout-directory.d.ts +123 -0
- package/dist/implementation/world/layout-directory.js +273 -0
- package/dist/implementation/world/layout-directory.js.map +1 -0
- package/dist/implementation/world/lists.d.ts +86 -0
- package/dist/implementation/world/lists.js +258 -0
- package/dist/implementation/world/lists.js.map +1 -0
- package/dist/implementation/world/lookup-keys.d.ts +20 -0
- package/dist/implementation/world/lookup-keys.js +48 -0
- package/dist/implementation/world/lookup-keys.js.map +1 -0
- package/dist/implementation/world/loop.d.ts +73 -0
- package/dist/implementation/world/loop.js +252 -0
- package/dist/implementation/world/loop.js.map +1 -0
- package/dist/implementation/world/memory.d.ts +40 -0
- package/dist/implementation/world/memory.js +65 -0
- package/dist/implementation/world/memory.js.map +1 -0
- package/dist/implementation/world/mirror.d.ts +125 -0
- package/dist/implementation/world/mirror.js +570 -0
- package/dist/implementation/world/mirror.js.map +1 -0
- package/dist/implementation/world/move-log.d.ts +107 -0
- package/dist/implementation/world/move-log.js +165 -0
- package/dist/implementation/world/move-log.js.map +1 -0
- package/dist/implementation/world/observer.d.ts +16 -0
- package/dist/implementation/world/observer.js +130 -0
- package/dist/implementation/world/observer.js.map +1 -0
- package/dist/implementation/world/order.d.ts +38 -0
- package/dist/implementation/world/order.js +324 -0
- package/dist/implementation/world/order.js.map +1 -0
- package/dist/implementation/world/out-of-band.d.ts +28 -0
- package/dist/implementation/world/out-of-band.js +66 -0
- package/dist/implementation/world/out-of-band.js.map +1 -0
- package/dist/implementation/world/plan.d.ts +50 -0
- package/dist/implementation/world/plan.js +20 -0
- package/dist/implementation/world/plan.js.map +1 -0
- package/dist/implementation/world/pool.d.ts +70 -0
- package/dist/implementation/world/pool.js +264 -0
- package/dist/implementation/world/pool.js.map +1 -0
- package/dist/implementation/world/port.d.ts +62 -0
- package/dist/implementation/world/port.js +109 -0
- package/dist/implementation/world/port.js.map +1 -0
- package/dist/implementation/world/prepared-lookup.d.ts +11 -0
- package/dist/implementation/world/prepared-lookup.js +99 -0
- package/dist/implementation/world/prepared-lookup.js.map +1 -0
- package/dist/implementation/world/prepared-spawn.d.ts +39 -0
- package/dist/implementation/world/prepared-spawn.js +119 -0
- package/dist/implementation/world/prepared-spawn.js.map +1 -0
- package/dist/implementation/world/program.d.ts +11 -0
- package/dist/implementation/world/program.js +12 -0
- package/dist/implementation/world/program.js.map +1 -0
- package/dist/implementation/world/protocol.d.ts +192 -0
- package/dist/implementation/world/protocol.js +41 -0
- package/dist/implementation/world/protocol.js.map +1 -0
- package/dist/implementation/world/publish.d.ts +9 -0
- package/dist/implementation/world/publish.js +28 -0
- package/dist/implementation/world/publish.js.map +1 -0
- package/dist/implementation/world/ranges.d.ts +21 -0
- package/dist/implementation/world/ranges.js +130 -0
- package/dist/implementation/world/ranges.js.map +1 -0
- package/dist/implementation/world/reclaim.d.ts +27 -0
- package/dist/implementation/world/reclaim.js +176 -0
- package/dist/implementation/world/reclaim.js.map +1 -0
- package/dist/implementation/world/reductions.d.ts +33 -0
- package/dist/implementation/world/reductions.js +92 -0
- package/dist/implementation/world/reductions.js.map +1 -0
- package/dist/implementation/world/register.d.ts +64 -0
- package/dist/implementation/world/register.js +368 -0
- package/dist/implementation/world/register.js.map +1 -0
- package/dist/implementation/world/remote-systems.d.ts +144 -0
- package/dist/implementation/world/remote-systems.js +556 -0
- package/dist/implementation/world/remote-systems.js.map +1 -0
- package/dist/implementation/world/remote.d.ts +25 -0
- package/dist/implementation/world/remote.js +138 -0
- package/dist/implementation/world/remote.js.map +1 -0
- package/dist/implementation/world/render-order.d.ts +19 -0
- package/dist/implementation/world/render-order.js +126 -0
- package/dist/implementation/world/render-order.js.map +1 -0
- package/dist/implementation/world/required.d.ts +3 -0
- package/dist/implementation/world/required.js +9 -0
- package/dist/implementation/world/required.js.map +1 -0
- package/dist/implementation/world/resources.d.ts +23 -0
- package/dist/implementation/world/resources.js +66 -0
- package/dist/implementation/world/resources.js.map +1 -0
- package/dist/implementation/world/rows.d.ts +111 -0
- package/dist/implementation/world/rows.js +549 -0
- package/dist/implementation/world/rows.js.map +1 -0
- package/dist/implementation/world/runner.d.ts +133 -0
- package/dist/implementation/world/runner.js +1334 -0
- package/dist/implementation/world/runner.js.map +1 -0
- package/dist/implementation/world/shared.d.ts +55 -0
- package/dist/implementation/world/shared.js +301 -0
- package/dist/implementation/world/shared.js.map +1 -0
- package/dist/implementation/world/sharing.d.ts +48 -0
- package/dist/implementation/world/sharing.js +611 -0
- package/dist/implementation/world/sharing.js.map +1 -0
- package/dist/implementation/world/staging.d.ts +83 -0
- package/dist/implementation/world/staging.js +195 -0
- package/dist/implementation/world/staging.js.map +1 -0
- package/dist/implementation/world/state.d.ts +320 -0
- package/dist/implementation/world/state.js +459 -0
- package/dist/implementation/world/state.js.map +1 -0
- package/dist/implementation/world/stop-lists.d.ts +137 -0
- package/dist/implementation/world/stop-lists.js +305 -0
- package/dist/implementation/world/stop-lists.js.map +1 -0
- package/dist/implementation/world/strings.d.ts +48 -0
- package/dist/implementation/world/strings.js +214 -0
- package/dist/implementation/world/strings.js.map +1 -0
- package/dist/implementation/world/structure.d.ts +39 -0
- package/dist/implementation/world/structure.js +42 -0
- package/dist/implementation/world/structure.js.map +1 -0
- package/dist/implementation/world/synchronize.d.ts +32 -0
- package/dist/implementation/world/synchronize.js +910 -0
- package/dist/implementation/world/synchronize.js.map +1 -0
- package/dist/implementation/world/tail-blocks.d.ts +43 -0
- package/dist/implementation/world/tail-blocks.js +59 -0
- package/dist/implementation/world/tail-blocks.js.map +1 -0
- package/dist/implementation/world/tails.d.ts +119 -0
- package/dist/implementation/world/tails.js +448 -0
- package/dist/implementation/world/tails.js.map +1 -0
- package/dist/implementation/world/terminal.d.ts +7 -0
- package/dist/implementation/world/terminal.js +13 -0
- package/dist/implementation/world/terminal.js.map +1 -0
- package/dist/implementation/world/thread-directory.d.ts +72 -0
- package/dist/implementation/world/thread-directory.js +243 -0
- package/dist/implementation/world/thread-directory.js.map +1 -0
- package/dist/implementation/world/thread-finalizers.d.ts +51 -0
- package/dist/implementation/world/thread-finalizers.js +376 -0
- package/dist/implementation/world/thread-finalizers.js.map +1 -0
- package/dist/implementation/world/thread-indexes.d.ts +28 -0
- package/dist/implementation/world/thread-indexes.js +72 -0
- package/dist/implementation/world/thread-indexes.js.map +1 -0
- package/dist/implementation/world/thread-observer.d.ts +43 -0
- package/dist/implementation/world/thread-observer.js +223 -0
- package/dist/implementation/world/thread-observer.js.map +1 -0
- package/dist/implementation/world/thread-systems.d.ts +121 -0
- package/dist/implementation/world/thread-systems.js +1487 -0
- package/dist/implementation/world/thread-systems.js.map +1 -0
- package/dist/implementation/world/thread-tasks.d.ts +65 -0
- package/dist/implementation/world/thread-tasks.js +74 -0
- package/dist/implementation/world/thread-tasks.js.map +1 -0
- package/dist/implementation/world/transfers.d.ts +30 -0
- package/dist/implementation/world/transfers.js +101 -0
- package/dist/implementation/world/transfers.js.map +1 -0
- package/dist/implementation/world/up.d.ts +35 -0
- package/dist/implementation/world/up.js +939 -0
- package/dist/implementation/world/up.js.map +1 -0
- package/dist/implementation/world/wasm.d.ts +143 -0
- package/dist/implementation/world/wasm.js +2460 -0
- package/dist/implementation/world/wasm.js.map +1 -0
- package/dist/implementation/world/wgsl.d.ts +22 -0
- package/dist/implementation/world/wgsl.js +497 -0
- package/dist/implementation/world/wgsl.js.map +1 -0
- package/dist/implementation/world/where.d.ts +74 -0
- package/dist/implementation/world/where.js +202 -0
- package/dist/implementation/world/where.js.map +1 -0
- package/dist/implementation/world/worker-platform.d.ts +37 -0
- package/dist/implementation/world/worker-platform.js +80 -0
- package/dist/implementation/world/worker-platform.js.map +1 -0
- package/dist/implementation/world/worker-window.d.ts +7 -0
- package/dist/implementation/world/worker-window.js +47 -0
- package/dist/implementation/world/worker-window.js.map +1 -0
- package/dist/implementation/world/worker.d.ts +1 -0
- package/dist/implementation/world/worker.js +496 -0
- package/dist/implementation/world/worker.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/dist/interface/component/component.d.ts +2 -0
- package/dist/interface/component/component.js +3 -0
- package/dist/interface/component/component.js.map +1 -0
- package/dist/interface/component/index.d.ts +2 -0
- package/dist/interface/component/index.js +2 -0
- package/dist/interface/component/index.js.map +1 -0
- package/dist/interface/component/key.d.ts +2 -0
- package/dist/interface/component/key.js +2 -0
- package/dist/interface/component/key.js.map +1 -0
- package/dist/interface/component/types.d.ts +6 -0
- package/dist/interface/component/types.js +2 -0
- package/dist/interface/component/types.js.map +1 -0
- package/dist/interface/component/value.d.ts +39 -0
- package/dist/interface/component/value.js +2 -0
- package/dist/interface/component/value.js.map +1 -0
- package/dist/interface/component/values.d.ts +6 -0
- package/dist/interface/component/values.js +2 -0
- package/dist/interface/component/values.js.map +1 -0
- package/dist/interface/entity/entity.d.ts +9 -0
- package/dist/interface/entity/entity.js +2 -0
- package/dist/interface/entity/entity.js.map +1 -0
- package/dist/interface/entity/index.d.ts +10 -0
- package/dist/interface/entity/index.js +7 -0
- package/dist/interface/entity/index.js.map +1 -0
- package/dist/interface/finalizer/body.d.ts +53 -0
- package/dist/interface/finalizer/body.js +2 -0
- package/dist/interface/finalizer/body.js.map +1 -0
- package/dist/interface/finalizer/create.d.ts +43 -0
- package/dist/interface/finalizer/create.js +130 -0
- package/dist/interface/finalizer/create.js.map +1 -0
- package/dist/interface/finalizer/created.d.ts +16 -0
- package/dist/interface/finalizer/created.js +2 -0
- package/dist/interface/finalizer/created.js.map +1 -0
- package/dist/interface/finalizer/declaration.d.ts +58 -0
- package/dist/interface/finalizer/declaration.js +2 -0
- package/dist/interface/finalizer/declaration.js.map +1 -0
- package/dist/interface/finalizer/finalizer.d.ts +8 -0
- package/dist/interface/finalizer/finalizer.js +2 -0
- package/dist/interface/finalizer/finalizer.js.map +1 -0
- package/dist/interface/finalizer/index.d.ts +1 -0
- package/dist/interface/finalizer/index.js +3 -0
- package/dist/interface/finalizer/index.js.map +1 -0
- package/dist/interface/gpu/accessors.d.ts +15 -0
- package/dist/interface/gpu/accessors.js +87 -0
- package/dist/interface/gpu/accessors.js.map +1 -0
- package/dist/interface/gpu/gpu.d.ts +3 -0
- package/dist/interface/gpu/gpu.js +2 -0
- package/dist/interface/gpu/gpu.js.map +1 -0
- package/dist/interface/gpu/index.d.ts +2 -0
- package/dist/interface/gpu/index.js +4 -0
- package/dist/interface/gpu/index.js.map +1 -0
- package/dist/interface/gpu/layout.d.ts +5 -0
- package/dist/interface/gpu/layout.js +22 -0
- package/dist/interface/gpu/layout.js.map +1 -0
- package/dist/interface/gpu/record.d.ts +5 -0
- package/dist/interface/gpu/record.js +7 -0
- package/dist/interface/gpu/record.js.map +1 -0
- package/dist/interface/gpu/wgsl.d.ts +9 -0
- package/dist/interface/gpu/wgsl.js +24 -0
- package/dist/interface/gpu/wgsl.js.map +1 -0
- package/dist/interface/index.d.ts +16 -0
- package/dist/interface/index.js +12 -0
- package/dist/interface/index.js.map +1 -0
- package/dist/interface/indexes/create.d.ts +39 -0
- package/dist/interface/indexes/create.js +82 -0
- package/dist/interface/indexes/create.js.map +1 -0
- package/dist/interface/indexes/created.d.ts +7 -0
- package/dist/interface/indexes/created.js +2 -0
- package/dist/interface/indexes/created.js.map +1 -0
- package/dist/interface/indexes/declaration.d.ts +18 -0
- package/dist/interface/indexes/declaration.js +2 -0
- package/dist/interface/indexes/declaration.js.map +1 -0
- package/dist/interface/indexes/index-type.d.ts +12 -0
- package/dist/interface/indexes/index-type.js +2 -0
- package/dist/interface/indexes/index-type.js.map +1 -0
- package/dist/interface/indexes/index.d.ts +1 -0
- package/dist/interface/indexes/index.js +3 -0
- package/dist/interface/indexes/index.js.map +1 -0
- package/dist/interface/math/f32/default.d.ts +4 -0
- package/dist/interface/math/f32/default.js +4 -0
- package/dist/interface/math/f32/default.js.map +1 -0
- package/dist/interface/math/f32/index.d.ts +4 -0
- package/dist/interface/math/f32/index.js +2 -0
- package/dist/interface/math/f32/index.js.map +1 -0
- package/dist/interface/math/f32/public.d.ts +2 -0
- package/dist/interface/math/f32/public.js +4 -0
- package/dist/interface/math/f32/public.js.map +1 -0
- package/dist/interface/math/f32/round-half-even.d.ts +2 -0
- package/dist/interface/math/f32/round-half-even.js +7 -0
- package/dist/interface/math/f32/round-half-even.js.map +1 -0
- package/dist/interface/math/f32/schema.d.ts +4 -0
- package/dist/interface/math/f32/schema.js +2 -0
- package/dist/interface/math/f32/schema.js.map +1 -0
- package/dist/interface/math/i32/default.d.ts +4 -0
- package/dist/interface/math/i32/default.js +4 -0
- package/dist/interface/math/i32/default.js.map +1 -0
- package/dist/interface/math/i32/index.d.ts +5 -0
- package/dist/interface/math/i32/index.js +2 -0
- package/dist/interface/math/i32/index.js.map +1 -0
- package/dist/interface/math/i32/public.d.ts +3 -0
- package/dist/interface/math/i32/public.js +5 -0
- package/dist/interface/math/i32/public.js.map +1 -0
- package/dist/interface/math/i32/schema.d.ts +5 -0
- package/dist/interface/math/i32/schema.js +2 -0
- package/dist/interface/math/i32/schema.js.map +1 -0
- package/dist/interface/math/i32/shift-right.d.ts +2 -0
- package/dist/interface/math/i32/shift-right.js +2 -0
- package/dist/interface/math/i32/shift-right.js.map +1 -0
- package/dist/interface/math/index.d.ts +8 -0
- package/dist/interface/math/index.js +10 -0
- package/dist/interface/math/index.js.map +1 -0
- package/dist/interface/math/intrinsic.d.ts +13 -0
- package/dist/interface/math/intrinsic.js +10 -0
- package/dist/interface/math/intrinsic.js.map +1 -0
- package/dist/interface/math/mat4x4/add.d.ts +2 -0
- package/dist/interface/math/mat4x4/add.js +8 -0
- package/dist/interface/math/mat4x4/add.js.map +1 -0
- package/dist/interface/math/mat4x4/determinant.d.ts +2 -0
- package/dist/interface/math/mat4x4/determinant.js +18 -0
- package/dist/interface/math/mat4x4/determinant.js.map +1 -0
- package/dist/interface/math/mat4x4/identity.d.ts +2 -0
- package/dist/interface/math/mat4x4/identity.js +7 -0
- package/dist/interface/math/mat4x4/identity.js.map +1 -0
- package/dist/interface/math/mat4x4/index.d.ts +26 -0
- package/dist/interface/math/mat4x4/index.js +24 -0
- package/dist/interface/math/mat4x4/index.js.map +1 -0
- package/dist/interface/math/mat4x4/inverse.d.ts +2 -0
- package/dist/interface/math/mat4x4/inverse.js +40 -0
- package/dist/interface/math/mat4x4/inverse.js.map +1 -0
- package/dist/interface/math/mat4x4/look-at.d.ts +3 -0
- package/dist/interface/math/mat4x4/look-at.js +22 -0
- package/dist/interface/math/mat4x4/look-at.js.map +1 -0
- package/dist/interface/math/mat4x4/multiply-vec3.d.ts +3 -0
- package/dist/interface/math/mat4x4/multiply-vec3.js +6 -0
- package/dist/interface/math/mat4x4/multiply-vec3.js.map +1 -0
- package/dist/interface/math/mat4x4/multiply-vec4.d.ts +3 -0
- package/dist/interface/math/mat4x4/multiply-vec4.js +8 -0
- package/dist/interface/math/mat4x4/multiply-vec4.js.map +1 -0
- package/dist/interface/math/mat4x4/multiply.d.ts +3 -0
- package/dist/interface/math/mat4x4/multiply.js +21 -0
- package/dist/interface/math/mat4x4/multiply.js.map +1 -0
- package/dist/interface/math/mat4x4/orthographic.d.ts +2 -0
- package/dist/interface/math/mat4x4/orthographic.js +12 -0
- package/dist/interface/math/mat4x4/orthographic.js.map +1 -0
- package/dist/interface/math/mat4x4/perspective.d.ts +2 -0
- package/dist/interface/math/mat4x4/perspective.js +22 -0
- package/dist/interface/math/mat4x4/perspective.js.map +1 -0
- package/dist/interface/math/mat4x4/public.d.ts +21 -0
- package/dist/interface/math/mat4x4/public.js +23 -0
- package/dist/interface/math/mat4x4/public.js.map +1 -0
- package/dist/interface/math/mat4x4/rotation-x.d.ts +2 -0
- package/dist/interface/math/mat4x4/rotation-x.js +11 -0
- package/dist/interface/math/mat4x4/rotation-x.js.map +1 -0
- package/dist/interface/math/mat4x4/rotation-y.d.ts +2 -0
- package/dist/interface/math/mat4x4/rotation-y.js +11 -0
- package/dist/interface/math/mat4x4/rotation-y.js.map +1 -0
- package/dist/interface/math/mat4x4/rotation-z.d.ts +2 -0
- package/dist/interface/math/mat4x4/rotation-z.js +11 -0
- package/dist/interface/math/mat4x4/rotation-z.js.map +1 -0
- package/dist/interface/math/mat4x4/scale.d.ts +2 -0
- package/dist/interface/math/mat4x4/scale.js +8 -0
- package/dist/interface/math/mat4x4/scale.js.map +1 -0
- package/dist/interface/math/mat4x4/scaling.d.ts +2 -0
- package/dist/interface/math/mat4x4/scaling.js +7 -0
- package/dist/interface/math/mat4x4/scaling.js.map +1 -0
- package/dist/interface/math/mat4x4/schema.d.ts +9 -0
- package/dist/interface/math/mat4x4/schema.js +3 -0
- package/dist/interface/math/mat4x4/schema.js.map +1 -0
- package/dist/interface/math/mat4x4/subtract.d.ts +2 -0
- package/dist/interface/math/mat4x4/subtract.js +8 -0
- package/dist/interface/math/mat4x4/subtract.js.map +1 -0
- package/dist/interface/math/mat4x4/translation.d.ts +2 -0
- package/dist/interface/math/mat4x4/translation.js +7 -0
- package/dist/interface/math/mat4x4/translation.js.map +1 -0
- package/dist/interface/math/mat4x4/transpose.d.ts +2 -0
- package/dist/interface/math/mat4x4/transpose.js +8 -0
- package/dist/interface/math/mat4x4/transpose.js.map +1 -0
- package/dist/interface/math/mat4x4/zero.d.ts +2 -0
- package/dist/interface/math/mat4x4/zero.js +7 -0
- package/dist/interface/math/mat4x4/zero.js.map +1 -0
- package/dist/interface/math/quat/add.d.ts +2 -0
- package/dist/interface/math/quat/add.js +8 -0
- package/dist/interface/math/quat/add.js.map +1 -0
- package/dist/interface/math/quat/align-to.d.ts +12 -0
- package/dist/interface/math/quat/align-to.js +42 -0
- package/dist/interface/math/quat/align-to.js.map +1 -0
- package/dist/interface/math/quat/conjugate.d.ts +2 -0
- package/dist/interface/math/quat/conjugate.js +2 -0
- package/dist/interface/math/quat/conjugate.js.map +1 -0
- package/dist/interface/math/quat/distance.d.ts +2 -0
- package/dist/interface/math/quat/distance.js +4 -0
- package/dist/interface/math/quat/distance.js.map +1 -0
- package/dist/interface/math/quat/dot.d.ts +2 -0
- package/dist/interface/math/quat/dot.js +3 -0
- package/dist/interface/math/quat/dot.js.map +1 -0
- package/dist/interface/math/quat/from-axis-angle.d.ts +3 -0
- package/dist/interface/math/quat/from-axis-angle.js +13 -0
- package/dist/interface/math/quat/from-axis-angle.js.map +1 -0
- package/dist/interface/math/quat/from-euler.d.ts +2 -0
- package/dist/interface/math/quat/from-euler.js +15 -0
- package/dist/interface/math/quat/from-euler.js.map +1 -0
- package/dist/interface/math/quat/identity.d.ts +2 -0
- package/dist/interface/math/quat/identity.js +2 -0
- package/dist/interface/math/quat/identity.js.map +1 -0
- package/dist/interface/math/quat/index.d.ts +4 -0
- package/dist/interface/math/quat/index.js +2 -0
- package/dist/interface/math/quat/index.js.map +1 -0
- package/dist/interface/math/quat/inverse.d.ts +2 -0
- package/dist/interface/math/quat/inverse.js +10 -0
- package/dist/interface/math/quat/inverse.js.map +1 -0
- package/dist/interface/math/quat/length-squared.d.ts +2 -0
- package/dist/interface/math/quat/length-squared.js +2 -0
- package/dist/interface/math/quat/length-squared.js.map +1 -0
- package/dist/interface/math/quat/length.d.ts +2 -0
- package/dist/interface/math/quat/length.js +3 -0
- package/dist/interface/math/quat/length.js.map +1 -0
- package/dist/interface/math/quat/lerp.d.ts +2 -0
- package/dist/interface/math/quat/lerp.js +7 -0
- package/dist/interface/math/quat/lerp.js.map +1 -0
- package/dist/interface/math/quat/look-at.d.ts +3 -0
- package/dist/interface/math/quat/look-at.js +49 -0
- package/dist/interface/math/quat/look-at.js.map +1 -0
- package/dist/interface/math/quat/multiply.d.ts +2 -0
- package/dist/interface/math/quat/multiply.js +7 -0
- package/dist/interface/math/quat/multiply.js.map +1 -0
- package/dist/interface/math/quat/negate.d.ts +2 -0
- package/dist/interface/math/quat/negate.js +3 -0
- package/dist/interface/math/quat/negate.js.map +1 -0
- package/dist/interface/math/quat/normalize.d.ts +2 -0
- package/dist/interface/math/quat/normalize.js +7 -0
- package/dist/interface/math/quat/normalize.js.map +1 -0
- package/dist/interface/math/quat/public.d.ts +25 -0
- package/dist/interface/math/quat/public.js +27 -0
- package/dist/interface/math/quat/public.js.map +1 -0
- package/dist/interface/math/quat/rotate-vec3.d.ts +3 -0
- package/dist/interface/math/quat/rotate-vec3.js +14 -0
- package/dist/interface/math/quat/rotate-vec3.js.map +1 -0
- package/dist/interface/math/quat/scale.d.ts +2 -0
- package/dist/interface/math/quat/scale.js +3 -0
- package/dist/interface/math/quat/scale.js.map +1 -0
- package/dist/interface/math/quat/schema.d.ts +9 -0
- package/dist/interface/math/quat/schema.js +3 -0
- package/dist/interface/math/quat/schema.js.map +1 -0
- package/dist/interface/math/quat/slerp.d.ts +2 -0
- package/dist/interface/math/quat/slerp.js +21 -0
- package/dist/interface/math/quat/slerp.js.map +1 -0
- package/dist/interface/math/quat/subtract.d.ts +2 -0
- package/dist/interface/math/quat/subtract.js +8 -0
- package/dist/interface/math/quat/subtract.js.map +1 -0
- package/dist/interface/math/quat/to-axis-angle.d.ts +6 -0
- package/dist/interface/math/quat/to-axis-angle.js +12 -0
- package/dist/interface/math/quat/to-axis-angle.js.map +1 -0
- package/dist/interface/math/quat/to-euler.d.ts +3 -0
- package/dist/interface/math/quat/to-euler.js +21 -0
- package/dist/interface/math/quat/to-euler.js.map +1 -0
- package/dist/interface/math/quat/to-mat4.d.ts +8 -0
- package/dist/interface/math/quat/to-mat4.js +24 -0
- package/dist/interface/math/quat/to-mat4.js.map +1 -0
- package/dist/interface/math/u32/count-leading-zeros.d.ts +2 -0
- package/dist/interface/math/u32/count-leading-zeros.js +3 -0
- package/dist/interface/math/u32/count-leading-zeros.js.map +1 -0
- package/dist/interface/math/u32/count-one-bits.d.ts +2 -0
- package/dist/interface/math/u32/count-one-bits.js +9 -0
- package/dist/interface/math/u32/count-one-bits.js.map +1 -0
- package/dist/interface/math/u32/count-trailing-zeros.d.ts +2 -0
- package/dist/interface/math/u32/count-trailing-zeros.js +6 -0
- package/dist/interface/math/u32/count-trailing-zeros.js.map +1 -0
- package/dist/interface/math/u32/default.d.ts +4 -0
- package/dist/interface/math/u32/default.js +4 -0
- package/dist/interface/math/u32/default.js.map +1 -0
- package/dist/interface/math/u32/index.d.ts +5 -0
- package/dist/interface/math/u32/index.js +2 -0
- package/dist/interface/math/u32/index.js.map +1 -0
- package/dist/interface/math/u32/public.d.ts +7 -0
- package/dist/interface/math/u32/public.js +9 -0
- package/dist/interface/math/u32/public.js.map +1 -0
- package/dist/interface/math/u32/reverse-bits.d.ts +2 -0
- package/dist/interface/math/u32/reverse-bits.js +10 -0
- package/dist/interface/math/u32/reverse-bits.js.map +1 -0
- package/dist/interface/math/u32/schema.d.ts +5 -0
- package/dist/interface/math/u32/schema.js +2 -0
- package/dist/interface/math/u32/schema.js.map +1 -0
- package/dist/interface/math/u32/shift-right.d.ts +2 -0
- package/dist/interface/math/u32/shift-right.js +2 -0
- package/dist/interface/math/u32/shift-right.js.map +1 -0
- package/dist/interface/math/vec2/f32/abs.d.ts +2 -0
- package/dist/interface/math/vec2/f32/abs.js +3 -0
- package/dist/interface/math/vec2/f32/abs.js.map +1 -0
- package/dist/interface/math/vec2/f32/acos.d.ts +2 -0
- package/dist/interface/math/vec2/f32/acos.js +3 -0
- package/dist/interface/math/vec2/f32/acos.js.map +1 -0
- package/dist/interface/math/vec2/f32/acosh.d.ts +2 -0
- package/dist/interface/math/vec2/f32/acosh.js +3 -0
- package/dist/interface/math/vec2/f32/acosh.js.map +1 -0
- package/dist/interface/math/vec2/f32/add.d.ts +2 -0
- package/dist/interface/math/vec2/f32/add.js +3 -0
- package/dist/interface/math/vec2/f32/add.js.map +1 -0
- package/dist/interface/math/vec2/f32/asin.d.ts +2 -0
- package/dist/interface/math/vec2/f32/asin.js +3 -0
- package/dist/interface/math/vec2/f32/asin.js.map +1 -0
- package/dist/interface/math/vec2/f32/asinh.d.ts +2 -0
- package/dist/interface/math/vec2/f32/asinh.js +3 -0
- package/dist/interface/math/vec2/f32/asinh.js.map +1 -0
- package/dist/interface/math/vec2/f32/atan.d.ts +2 -0
- package/dist/interface/math/vec2/f32/atan.js +3 -0
- package/dist/interface/math/vec2/f32/atan.js.map +1 -0
- package/dist/interface/math/vec2/f32/atanh.d.ts +2 -0
- package/dist/interface/math/vec2/f32/atanh.js +3 -0
- package/dist/interface/math/vec2/f32/atanh.js.map +1 -0
- package/dist/interface/math/vec2/f32/ceil.d.ts +2 -0
- package/dist/interface/math/vec2/f32/ceil.js +3 -0
- package/dist/interface/math/vec2/f32/ceil.js.map +1 -0
- package/dist/interface/math/vec2/f32/clamp.d.ts +2 -0
- package/dist/interface/math/vec2/f32/clamp.js +5 -0
- package/dist/interface/math/vec2/f32/clamp.js.map +1 -0
- package/dist/interface/math/vec2/f32/cos.d.ts +2 -0
- package/dist/interface/math/vec2/f32/cos.js +3 -0
- package/dist/interface/math/vec2/f32/cos.js.map +1 -0
- package/dist/interface/math/vec2/f32/cosh.d.ts +2 -0
- package/dist/interface/math/vec2/f32/cosh.js +3 -0
- package/dist/interface/math/vec2/f32/cosh.js.map +1 -0
- package/dist/interface/math/vec2/f32/distance.d.ts +2 -0
- package/dist/interface/math/vec2/f32/distance.js +5 -0
- package/dist/interface/math/vec2/f32/distance.js.map +1 -0
- package/dist/interface/math/vec2/f32/dot.d.ts +2 -0
- package/dist/interface/math/vec2/f32/dot.js +3 -0
- package/dist/interface/math/vec2/f32/dot.js.map +1 -0
- package/dist/interface/math/vec2/f32/equals.d.ts +2 -0
- package/dist/interface/math/vec2/f32/equals.js +2 -0
- package/dist/interface/math/vec2/f32/equals.js.map +1 -0
- package/dist/interface/math/vec2/f32/exp.d.ts +2 -0
- package/dist/interface/math/vec2/f32/exp.js +3 -0
- package/dist/interface/math/vec2/f32/exp.js.map +1 -0
- package/dist/interface/math/vec2/f32/exp2.d.ts +2 -0
- package/dist/interface/math/vec2/f32/exp2.js +3 -0
- package/dist/interface/math/vec2/f32/exp2.js.map +1 -0
- package/dist/interface/math/vec2/f32/f32.d.ts +4 -0
- package/dist/interface/math/vec2/f32/f32.js +2 -0
- package/dist/interface/math/vec2/f32/f32.js.map +1 -0
- package/dist/interface/math/vec2/f32/faceforward.d.ts +2 -0
- package/dist/interface/math/vec2/f32/faceforward.js +5 -0
- package/dist/interface/math/vec2/f32/faceforward.js.map +1 -0
- package/dist/interface/math/vec2/f32/floor.d.ts +2 -0
- package/dist/interface/math/vec2/f32/floor.js +3 -0
- package/dist/interface/math/vec2/f32/floor.js.map +1 -0
- package/dist/interface/math/vec2/f32/fract.d.ts +2 -0
- package/dist/interface/math/vec2/f32/fract.js +3 -0
- package/dist/interface/math/vec2/f32/fract.js.map +1 -0
- package/dist/interface/math/vec2/f32/length.d.ts +2 -0
- package/dist/interface/math/vec2/f32/length.js +3 -0
- package/dist/interface/math/vec2/f32/length.js.map +1 -0
- package/dist/interface/math/vec2/f32/log.d.ts +2 -0
- package/dist/interface/math/vec2/f32/log.js +3 -0
- package/dist/interface/math/vec2/f32/log.js.map +1 -0
- package/dist/interface/math/vec2/f32/log2.d.ts +2 -0
- package/dist/interface/math/vec2/f32/log2.js +3 -0
- package/dist/interface/math/vec2/f32/log2.js.map +1 -0
- package/dist/interface/math/vec2/f32/max.d.ts +2 -0
- package/dist/interface/math/vec2/f32/max.js +3 -0
- package/dist/interface/math/vec2/f32/max.js.map +1 -0
- package/dist/interface/math/vec2/f32/min.d.ts +2 -0
- package/dist/interface/math/vec2/f32/min.js +3 -0
- package/dist/interface/math/vec2/f32/min.js.map +1 -0
- package/dist/interface/math/vec2/f32/mix.d.ts +2 -0
- package/dist/interface/math/vec2/f32/mix.js +6 -0
- package/dist/interface/math/vec2/f32/mix.js.map +1 -0
- package/dist/interface/math/vec2/f32/mod.d.ts +2 -0
- package/dist/interface/math/vec2/f32/mod.js +2 -0
- package/dist/interface/math/vec2/f32/mod.js.map +1 -0
- package/dist/interface/math/vec2/f32/modf.d.ts +5 -0
- package/dist/interface/math/vec2/f32/modf.js +5 -0
- package/dist/interface/math/vec2/f32/modf.js.map +1 -0
- package/dist/interface/math/vec2/f32/negate.d.ts +2 -0
- package/dist/interface/math/vec2/f32/negate.js +3 -0
- package/dist/interface/math/vec2/f32/negate.js.map +1 -0
- package/dist/interface/math/vec2/f32/normalize.d.ts +2 -0
- package/dist/interface/math/vec2/f32/normalize.js +5 -0
- package/dist/interface/math/vec2/f32/normalize.js.map +1 -0
- package/dist/interface/math/vec2/f32/pow.d.ts +3 -0
- package/dist/interface/math/vec2/f32/pow.js +7 -0
- package/dist/interface/math/vec2/f32/pow.js.map +1 -0
- package/dist/interface/math/vec2/f32/public.d.ts +48 -0
- package/dist/interface/math/vec2/f32/public.js +50 -0
- package/dist/interface/math/vec2/f32/public.js.map +1 -0
- package/dist/interface/math/vec2/f32/reflect.d.ts +2 -0
- package/dist/interface/math/vec2/f32/reflect.js +9 -0
- package/dist/interface/math/vec2/f32/reflect.js.map +1 -0
- package/dist/interface/math/vec2/f32/refract.d.ts +2 -0
- package/dist/interface/math/vec2/f32/refract.js +14 -0
- package/dist/interface/math/vec2/f32/refract.js.map +1 -0
- package/dist/interface/math/vec2/f32/round.d.ts +2 -0
- package/dist/interface/math/vec2/f32/round.js +4 -0
- package/dist/interface/math/vec2/f32/round.js.map +1 -0
- package/dist/interface/math/vec2/f32/scale.d.ts +2 -0
- package/dist/interface/math/vec2/f32/scale.js +3 -0
- package/dist/interface/math/vec2/f32/scale.js.map +1 -0
- package/dist/interface/math/vec2/f32/schema.d.ts +9 -0
- package/dist/interface/math/vec2/f32/schema.js +3 -0
- package/dist/interface/math/vec2/f32/schema.js.map +1 -0
- package/dist/interface/math/vec2/f32/sign.d.ts +2 -0
- package/dist/interface/math/vec2/f32/sign.js +3 -0
- package/dist/interface/math/vec2/f32/sign.js.map +1 -0
- package/dist/interface/math/vec2/f32/sin.d.ts +2 -0
- package/dist/interface/math/vec2/f32/sin.js +3 -0
- package/dist/interface/math/vec2/f32/sin.js.map +1 -0
- package/dist/interface/math/vec2/f32/sinh.d.ts +2 -0
- package/dist/interface/math/vec2/f32/sinh.js +3 -0
- package/dist/interface/math/vec2/f32/sinh.js.map +1 -0
- package/dist/interface/math/vec2/f32/smoothstep.d.ts +2 -0
- package/dist/interface/math/vec2/f32/smoothstep.js +7 -0
- package/dist/interface/math/vec2/f32/smoothstep.js.map +1 -0
- package/dist/interface/math/vec2/f32/sqrt.d.ts +2 -0
- package/dist/interface/math/vec2/f32/sqrt.js +3 -0
- package/dist/interface/math/vec2/f32/sqrt.js.map +1 -0
- package/dist/interface/math/vec2/f32/step.d.ts +2 -0
- package/dist/interface/math/vec2/f32/step.js +6 -0
- package/dist/interface/math/vec2/f32/step.js.map +1 -0
- package/dist/interface/math/vec2/f32/subtract.d.ts +2 -0
- package/dist/interface/math/vec2/f32/subtract.js +3 -0
- package/dist/interface/math/vec2/f32/subtract.js.map +1 -0
- package/dist/interface/math/vec2/f32/tan.d.ts +2 -0
- package/dist/interface/math/vec2/f32/tan.js +3 -0
- package/dist/interface/math/vec2/f32/tan.js.map +1 -0
- package/dist/interface/math/vec2/f32/tanh.d.ts +2 -0
- package/dist/interface/math/vec2/f32/tanh.js +3 -0
- package/dist/interface/math/vec2/f32/tanh.js.map +1 -0
- package/dist/interface/math/vec2/f32/trunc.d.ts +2 -0
- package/dist/interface/math/vec2/f32/trunc.js +3 -0
- package/dist/interface/math/vec2/f32/trunc.js.map +1 -0
- package/dist/interface/math/vec2/f32/zero.d.ts +2 -0
- package/dist/interface/math/vec2/f32/zero.js +2 -0
- package/dist/interface/math/vec2/f32/zero.js.map +1 -0
- package/dist/interface/math/vec2/i32/abs.d.ts +2 -0
- package/dist/interface/math/vec2/i32/abs.js +3 -0
- package/dist/interface/math/vec2/i32/abs.js.map +1 -0
- package/dist/interface/math/vec2/i32/add.d.ts +2 -0
- package/dist/interface/math/vec2/i32/add.js +3 -0
- package/dist/interface/math/vec2/i32/add.js.map +1 -0
- package/dist/interface/math/vec2/i32/bitwise-and.d.ts +2 -0
- package/dist/interface/math/vec2/i32/bitwise-and.js +3 -0
- package/dist/interface/math/vec2/i32/bitwise-and.js.map +1 -0
- package/dist/interface/math/vec2/i32/bitwise-not.d.ts +2 -0
- package/dist/interface/math/vec2/i32/bitwise-not.js +3 -0
- package/dist/interface/math/vec2/i32/bitwise-not.js.map +1 -0
- package/dist/interface/math/vec2/i32/bitwise-or.d.ts +2 -0
- package/dist/interface/math/vec2/i32/bitwise-or.js +3 -0
- package/dist/interface/math/vec2/i32/bitwise-or.js.map +1 -0
- package/dist/interface/math/vec2/i32/bitwise-xor.d.ts +2 -0
- package/dist/interface/math/vec2/i32/bitwise-xor.js +3 -0
- package/dist/interface/math/vec2/i32/bitwise-xor.js.map +1 -0
- package/dist/interface/math/vec2/i32/clamp.d.ts +2 -0
- package/dist/interface/math/vec2/i32/clamp.js +5 -0
- package/dist/interface/math/vec2/i32/clamp.js.map +1 -0
- package/dist/interface/math/vec2/i32/count-leading-zeros.d.ts +2 -0
- package/dist/interface/math/vec2/i32/count-leading-zeros.js +7 -0
- package/dist/interface/math/vec2/i32/count-leading-zeros.js.map +1 -0
- package/dist/interface/math/vec2/i32/count-one-bits.d.ts +2 -0
- package/dist/interface/math/vec2/i32/count-one-bits.js +7 -0
- package/dist/interface/math/vec2/i32/count-one-bits.js.map +1 -0
- package/dist/interface/math/vec2/i32/count-trailing-zeros.d.ts +2 -0
- package/dist/interface/math/vec2/i32/count-trailing-zeros.js +7 -0
- package/dist/interface/math/vec2/i32/count-trailing-zeros.js.map +1 -0
- package/dist/interface/math/vec2/i32/equals.d.ts +2 -0
- package/dist/interface/math/vec2/i32/equals.js +2 -0
- package/dist/interface/math/vec2/i32/equals.js.map +1 -0
- package/dist/interface/math/vec2/i32/i32.d.ts +5 -0
- package/dist/interface/math/vec2/i32/i32.js +2 -0
- package/dist/interface/math/vec2/i32/i32.js.map +1 -0
- package/dist/interface/math/vec2/i32/max.d.ts +2 -0
- package/dist/interface/math/vec2/i32/max.js +3 -0
- package/dist/interface/math/vec2/i32/max.js.map +1 -0
- package/dist/interface/math/vec2/i32/min.d.ts +2 -0
- package/dist/interface/math/vec2/i32/min.js +3 -0
- package/dist/interface/math/vec2/i32/min.js.map +1 -0
- package/dist/interface/math/vec2/i32/negate.d.ts +2 -0
- package/dist/interface/math/vec2/i32/negate.js +3 -0
- package/dist/interface/math/vec2/i32/negate.js.map +1 -0
- package/dist/interface/math/vec2/i32/public.d.ts +22 -0
- package/dist/interface/math/vec2/i32/public.js +24 -0
- package/dist/interface/math/vec2/i32/public.js.map +1 -0
- package/dist/interface/math/vec2/i32/reverse-bits.d.ts +2 -0
- package/dist/interface/math/vec2/i32/reverse-bits.js +4 -0
- package/dist/interface/math/vec2/i32/reverse-bits.js.map +1 -0
- package/dist/interface/math/vec2/i32/scale.d.ts +3 -0
- package/dist/interface/math/vec2/i32/scale.js +3 -0
- package/dist/interface/math/vec2/i32/scale.js.map +1 -0
- package/dist/interface/math/vec2/i32/schema.d.ts +10 -0
- package/dist/interface/math/vec2/i32/schema.js +3 -0
- package/dist/interface/math/vec2/i32/schema.js.map +1 -0
- package/dist/interface/math/vec2/i32/shift-left.d.ts +2 -0
- package/dist/interface/math/vec2/i32/shift-left.js +2 -0
- package/dist/interface/math/vec2/i32/shift-left.js.map +1 -0
- package/dist/interface/math/vec2/i32/shift-right.d.ts +2 -0
- package/dist/interface/math/vec2/i32/shift-right.js +6 -0
- package/dist/interface/math/vec2/i32/shift-right.js.map +1 -0
- package/dist/interface/math/vec2/i32/subtract.d.ts +2 -0
- package/dist/interface/math/vec2/i32/subtract.js +3 -0
- package/dist/interface/math/vec2/i32/subtract.js.map +1 -0
- package/dist/interface/math/vec2/i32/zero.d.ts +2 -0
- package/dist/interface/math/vec2/i32/zero.js +2 -0
- package/dist/interface/math/vec2/i32/zero.js.map +1 -0
- package/dist/interface/math/vec2/index.d.ts +4 -0
- package/dist/interface/math/vec2/index.js +2 -0
- package/dist/interface/math/vec2/index.js.map +1 -0
- package/dist/interface/math/vec2/public.d.ts +5 -0
- package/dist/interface/math/vec2/public.js +7 -0
- package/dist/interface/math/vec2/public.js.map +1 -0
- package/dist/interface/math/vec2/u32/add.d.ts +2 -0
- package/dist/interface/math/vec2/u32/add.js +6 -0
- package/dist/interface/math/vec2/u32/add.js.map +1 -0
- package/dist/interface/math/vec2/u32/bitwise-and.d.ts +2 -0
- package/dist/interface/math/vec2/u32/bitwise-and.js +6 -0
- package/dist/interface/math/vec2/u32/bitwise-and.js.map +1 -0
- package/dist/interface/math/vec2/u32/bitwise-not.d.ts +2 -0
- package/dist/interface/math/vec2/u32/bitwise-not.js +3 -0
- package/dist/interface/math/vec2/u32/bitwise-not.js.map +1 -0
- package/dist/interface/math/vec2/u32/bitwise-or.d.ts +2 -0
- package/dist/interface/math/vec2/u32/bitwise-or.js +6 -0
- package/dist/interface/math/vec2/u32/bitwise-or.js.map +1 -0
- package/dist/interface/math/vec2/u32/bitwise-xor.d.ts +2 -0
- package/dist/interface/math/vec2/u32/bitwise-xor.js +6 -0
- package/dist/interface/math/vec2/u32/bitwise-xor.js.map +1 -0
- package/dist/interface/math/vec2/u32/clamp.d.ts +2 -0
- package/dist/interface/math/vec2/u32/clamp.js +5 -0
- package/dist/interface/math/vec2/u32/clamp.js.map +1 -0
- package/dist/interface/math/vec2/u32/count-leading-zeros.d.ts +2 -0
- package/dist/interface/math/vec2/u32/count-leading-zeros.js +7 -0
- package/dist/interface/math/vec2/u32/count-leading-zeros.js.map +1 -0
- package/dist/interface/math/vec2/u32/count-one-bits.d.ts +2 -0
- package/dist/interface/math/vec2/u32/count-one-bits.js +7 -0
- package/dist/interface/math/vec2/u32/count-one-bits.js.map +1 -0
- package/dist/interface/math/vec2/u32/count-trailing-zeros.d.ts +2 -0
- package/dist/interface/math/vec2/u32/count-trailing-zeros.js +7 -0
- package/dist/interface/math/vec2/u32/count-trailing-zeros.js.map +1 -0
- package/dist/interface/math/vec2/u32/equals.d.ts +2 -0
- package/dist/interface/math/vec2/u32/equals.js +2 -0
- package/dist/interface/math/vec2/u32/equals.js.map +1 -0
- package/dist/interface/math/vec2/u32/max.d.ts +2 -0
- package/dist/interface/math/vec2/u32/max.js +6 -0
- package/dist/interface/math/vec2/u32/max.js.map +1 -0
- package/dist/interface/math/vec2/u32/min.d.ts +2 -0
- package/dist/interface/math/vec2/u32/min.js +6 -0
- package/dist/interface/math/vec2/u32/min.js.map +1 -0
- package/dist/interface/math/vec2/u32/negate.d.ts +2 -0
- package/dist/interface/math/vec2/u32/negate.js +2 -0
- package/dist/interface/math/vec2/u32/negate.js.map +1 -0
- package/dist/interface/math/vec2/u32/public.d.ts +21 -0
- package/dist/interface/math/vec2/u32/public.js +23 -0
- package/dist/interface/math/vec2/u32/public.js.map +1 -0
- package/dist/interface/math/vec2/u32/reverse-bits.d.ts +2 -0
- package/dist/interface/math/vec2/u32/reverse-bits.js +7 -0
- package/dist/interface/math/vec2/u32/reverse-bits.js.map +1 -0
- package/dist/interface/math/vec2/u32/scale.d.ts +3 -0
- package/dist/interface/math/vec2/u32/scale.js +3 -0
- package/dist/interface/math/vec2/u32/scale.js.map +1 -0
- package/dist/interface/math/vec2/u32/schema.d.ts +10 -0
- package/dist/interface/math/vec2/u32/schema.js +3 -0
- package/dist/interface/math/vec2/u32/schema.js.map +1 -0
- package/dist/interface/math/vec2/u32/shift-left.d.ts +2 -0
- package/dist/interface/math/vec2/u32/shift-left.js +2 -0
- package/dist/interface/math/vec2/u32/shift-left.js.map +1 -0
- package/dist/interface/math/vec2/u32/shift-right.d.ts +2 -0
- package/dist/interface/math/vec2/u32/shift-right.js +6 -0
- package/dist/interface/math/vec2/u32/shift-right.js.map +1 -0
- package/dist/interface/math/vec2/u32/subtract.d.ts +2 -0
- package/dist/interface/math/vec2/u32/subtract.js +6 -0
- package/dist/interface/math/vec2/u32/subtract.js.map +1 -0
- package/dist/interface/math/vec2/u32/u32.d.ts +5 -0
- package/dist/interface/math/vec2/u32/u32.js +2 -0
- package/dist/interface/math/vec2/u32/u32.js.map +1 -0
- package/dist/interface/math/vec2/u32/zero.d.ts +2 -0
- package/dist/interface/math/vec2/u32/zero.js +2 -0
- package/dist/interface/math/vec2/u32/zero.js.map +1 -0
- package/dist/interface/math/vec3/f32/abs.d.ts +2 -0
- package/dist/interface/math/vec3/f32/abs.js +3 -0
- package/dist/interface/math/vec3/f32/abs.js.map +1 -0
- package/dist/interface/math/vec3/f32/acos.d.ts +2 -0
- package/dist/interface/math/vec3/f32/acos.js +3 -0
- package/dist/interface/math/vec3/f32/acos.js.map +1 -0
- package/dist/interface/math/vec3/f32/acosh.d.ts +2 -0
- package/dist/interface/math/vec3/f32/acosh.js +3 -0
- package/dist/interface/math/vec3/f32/acosh.js.map +1 -0
- package/dist/interface/math/vec3/f32/add.d.ts +2 -0
- package/dist/interface/math/vec3/f32/add.js +7 -0
- package/dist/interface/math/vec3/f32/add.js.map +1 -0
- package/dist/interface/math/vec3/f32/asin.d.ts +2 -0
- package/dist/interface/math/vec3/f32/asin.js +3 -0
- package/dist/interface/math/vec3/f32/asin.js.map +1 -0
- package/dist/interface/math/vec3/f32/asinh.d.ts +2 -0
- package/dist/interface/math/vec3/f32/asinh.js +3 -0
- package/dist/interface/math/vec3/f32/asinh.js.map +1 -0
- package/dist/interface/math/vec3/f32/atan.d.ts +2 -0
- package/dist/interface/math/vec3/f32/atan.js +3 -0
- package/dist/interface/math/vec3/f32/atan.js.map +1 -0
- package/dist/interface/math/vec3/f32/atanh.d.ts +2 -0
- package/dist/interface/math/vec3/f32/atanh.js +3 -0
- package/dist/interface/math/vec3/f32/atanh.js.map +1 -0
- package/dist/interface/math/vec3/f32/ceil.d.ts +2 -0
- package/dist/interface/math/vec3/f32/ceil.js +3 -0
- package/dist/interface/math/vec3/f32/ceil.js.map +1 -0
- package/dist/interface/math/vec3/f32/clamp.d.ts +2 -0
- package/dist/interface/math/vec3/f32/clamp.js +5 -0
- package/dist/interface/math/vec3/f32/clamp.js.map +1 -0
- package/dist/interface/math/vec3/f32/cos.d.ts +2 -0
- package/dist/interface/math/vec3/f32/cos.js +3 -0
- package/dist/interface/math/vec3/f32/cos.js.map +1 -0
- package/dist/interface/math/vec3/f32/cosh.d.ts +2 -0
- package/dist/interface/math/vec3/f32/cosh.js +3 -0
- package/dist/interface/math/vec3/f32/cosh.js.map +1 -0
- package/dist/interface/math/vec3/f32/cross.d.ts +2 -0
- package/dist/interface/math/vec3/f32/cross.js +7 -0
- package/dist/interface/math/vec3/f32/cross.js.map +1 -0
- package/dist/interface/math/vec3/f32/distance-squared.d.ts +2 -0
- package/dist/interface/math/vec3/f32/distance-squared.js +7 -0
- package/dist/interface/math/vec3/f32/distance-squared.js.map +1 -0
- package/dist/interface/math/vec3/f32/distance.d.ts +2 -0
- package/dist/interface/math/vec3/f32/distance.js +5 -0
- package/dist/interface/math/vec3/f32/distance.js.map +1 -0
- package/dist/interface/math/vec3/f32/dot.d.ts +2 -0
- package/dist/interface/math/vec3/f32/dot.js +3 -0
- package/dist/interface/math/vec3/f32/dot.js.map +1 -0
- package/dist/interface/math/vec3/f32/equals.d.ts +2 -0
- package/dist/interface/math/vec3/f32/equals.js +2 -0
- package/dist/interface/math/vec3/f32/equals.js.map +1 -0
- package/dist/interface/math/vec3/f32/exp.d.ts +2 -0
- package/dist/interface/math/vec3/f32/exp.js +3 -0
- package/dist/interface/math/vec3/f32/exp.js.map +1 -0
- package/dist/interface/math/vec3/f32/exp2.d.ts +2 -0
- package/dist/interface/math/vec3/f32/exp2.js +3 -0
- package/dist/interface/math/vec3/f32/exp2.js.map +1 -0
- package/dist/interface/math/vec3/f32/f32.d.ts +4 -0
- package/dist/interface/math/vec3/f32/f32.js +2 -0
- package/dist/interface/math/vec3/f32/f32.js.map +1 -0
- package/dist/interface/math/vec3/f32/faceforward.d.ts +2 -0
- package/dist/interface/math/vec3/f32/faceforward.js +5 -0
- package/dist/interface/math/vec3/f32/faceforward.js.map +1 -0
- package/dist/interface/math/vec3/f32/floor.d.ts +2 -0
- package/dist/interface/math/vec3/f32/floor.js +3 -0
- package/dist/interface/math/vec3/f32/floor.js.map +1 -0
- package/dist/interface/math/vec3/f32/fract.d.ts +2 -0
- package/dist/interface/math/vec3/f32/fract.js +7 -0
- package/dist/interface/math/vec3/f32/fract.js.map +1 -0
- package/dist/interface/math/vec3/f32/length-squared.d.ts +2 -0
- package/dist/interface/math/vec3/f32/length-squared.js +3 -0
- package/dist/interface/math/vec3/f32/length-squared.js.map +1 -0
- package/dist/interface/math/vec3/f32/length.d.ts +2 -0
- package/dist/interface/math/vec3/f32/length.js +3 -0
- package/dist/interface/math/vec3/f32/length.js.map +1 -0
- package/dist/interface/math/vec3/f32/log.d.ts +2 -0
- package/dist/interface/math/vec3/f32/log.js +3 -0
- package/dist/interface/math/vec3/f32/log.js.map +1 -0
- package/dist/interface/math/vec3/f32/log2.d.ts +2 -0
- package/dist/interface/math/vec3/f32/log2.js +3 -0
- package/dist/interface/math/vec3/f32/log2.js.map +1 -0
- package/dist/interface/math/vec3/f32/max.d.ts +2 -0
- package/dist/interface/math/vec3/f32/max.js +7 -0
- package/dist/interface/math/vec3/f32/max.js.map +1 -0
- package/dist/interface/math/vec3/f32/min.d.ts +2 -0
- package/dist/interface/math/vec3/f32/min.js +7 -0
- package/dist/interface/math/vec3/f32/min.js.map +1 -0
- package/dist/interface/math/vec3/f32/mix.d.ts +2 -0
- package/dist/interface/math/vec3/f32/mix.js +7 -0
- package/dist/interface/math/vec3/f32/mix.js.map +1 -0
- package/dist/interface/math/vec3/f32/mod.d.ts +2 -0
- package/dist/interface/math/vec3/f32/mod.js +6 -0
- package/dist/interface/math/vec3/f32/mod.js.map +1 -0
- package/dist/interface/math/vec3/f32/modf.d.ts +5 -0
- package/dist/interface/math/vec3/f32/modf.js +5 -0
- package/dist/interface/math/vec3/f32/modf.js.map +1 -0
- package/dist/interface/math/vec3/f32/multiply.d.ts +5 -0
- package/dist/interface/math/vec3/f32/multiply.js +10 -0
- package/dist/interface/math/vec3/f32/multiply.js.map +1 -0
- package/dist/interface/math/vec3/f32/negate.d.ts +2 -0
- package/dist/interface/math/vec3/f32/negate.js +3 -0
- package/dist/interface/math/vec3/f32/negate.js.map +1 -0
- package/dist/interface/math/vec3/f32/normalize.d.ts +2 -0
- package/dist/interface/math/vec3/f32/normalize.js +5 -0
- package/dist/interface/math/vec3/f32/normalize.js.map +1 -0
- package/dist/interface/math/vec3/f32/one.d.ts +2 -0
- package/dist/interface/math/vec3/f32/one.js +2 -0
- package/dist/interface/math/vec3/f32/one.js.map +1 -0
- package/dist/interface/math/vec3/f32/pow.d.ts +3 -0
- package/dist/interface/math/vec3/f32/pow.js +8 -0
- package/dist/interface/math/vec3/f32/pow.js.map +1 -0
- package/dist/interface/math/vec3/f32/public.d.ts +54 -0
- package/dist/interface/math/vec3/f32/public.js +56 -0
- package/dist/interface/math/vec3/f32/public.js.map +1 -0
- package/dist/interface/math/vec3/f32/random.d.ts +2 -0
- package/dist/interface/math/vec3/f32/random.js +4 -0
- package/dist/interface/math/vec3/f32/random.js.map +1 -0
- package/dist/interface/math/vec3/f32/reflect.d.ts +2 -0
- package/dist/interface/math/vec3/f32/reflect.js +9 -0
- package/dist/interface/math/vec3/f32/reflect.js.map +1 -0
- package/dist/interface/math/vec3/f32/refract.d.ts +2 -0
- package/dist/interface/math/vec3/f32/refract.js +14 -0
- package/dist/interface/math/vec3/f32/refract.js.map +1 -0
- package/dist/interface/math/vec3/f32/round.d.ts +2 -0
- package/dist/interface/math/vec3/f32/round.js +8 -0
- package/dist/interface/math/vec3/f32/round.js.map +1 -0
- package/dist/interface/math/vec3/f32/scale.d.ts +2 -0
- package/dist/interface/math/vec3/f32/scale.js +3 -0
- package/dist/interface/math/vec3/f32/scale.js.map +1 -0
- package/dist/interface/math/vec3/f32/schema.d.ts +9 -0
- package/dist/interface/math/vec3/f32/schema.js +3 -0
- package/dist/interface/math/vec3/f32/schema.js.map +1 -0
- package/dist/interface/math/vec3/f32/sign.d.ts +2 -0
- package/dist/interface/math/vec3/f32/sign.js +3 -0
- package/dist/interface/math/vec3/f32/sign.js.map +1 -0
- package/dist/interface/math/vec3/f32/sin.d.ts +2 -0
- package/dist/interface/math/vec3/f32/sin.js +3 -0
- package/dist/interface/math/vec3/f32/sin.js.map +1 -0
- package/dist/interface/math/vec3/f32/sinh.d.ts +2 -0
- package/dist/interface/math/vec3/f32/sinh.js +3 -0
- package/dist/interface/math/vec3/f32/sinh.js.map +1 -0
- package/dist/interface/math/vec3/f32/smoothstep.d.ts +2 -0
- package/dist/interface/math/vec3/f32/smoothstep.js +12 -0
- package/dist/interface/math/vec3/f32/smoothstep.js.map +1 -0
- package/dist/interface/math/vec3/f32/sqrt.d.ts +2 -0
- package/dist/interface/math/vec3/f32/sqrt.js +3 -0
- package/dist/interface/math/vec3/f32/sqrt.js.map +1 -0
- package/dist/interface/math/vec3/f32/step.d.ts +2 -0
- package/dist/interface/math/vec3/f32/step.js +7 -0
- package/dist/interface/math/vec3/f32/step.js.map +1 -0
- package/dist/interface/math/vec3/f32/subtract.d.ts +2 -0
- package/dist/interface/math/vec3/f32/subtract.js +7 -0
- package/dist/interface/math/vec3/f32/subtract.js.map +1 -0
- package/dist/interface/math/vec3/f32/tan.d.ts +2 -0
- package/dist/interface/math/vec3/f32/tan.js +3 -0
- package/dist/interface/math/vec3/f32/tan.js.map +1 -0
- package/dist/interface/math/vec3/f32/tanh.d.ts +2 -0
- package/dist/interface/math/vec3/f32/tanh.js +3 -0
- package/dist/interface/math/vec3/f32/tanh.js.map +1 -0
- package/dist/interface/math/vec3/f32/trunc.d.ts +2 -0
- package/dist/interface/math/vec3/f32/trunc.js +3 -0
- package/dist/interface/math/vec3/f32/trunc.js.map +1 -0
- package/dist/interface/math/vec3/f32/zero.d.ts +2 -0
- package/dist/interface/math/vec3/f32/zero.js +2 -0
- package/dist/interface/math/vec3/f32/zero.js.map +1 -0
- package/dist/interface/math/vec3/i32/abs.d.ts +2 -0
- package/dist/interface/math/vec3/i32/abs.js +7 -0
- package/dist/interface/math/vec3/i32/abs.js.map +1 -0
- package/dist/interface/math/vec3/i32/add.d.ts +2 -0
- package/dist/interface/math/vec3/i32/add.js +7 -0
- package/dist/interface/math/vec3/i32/add.js.map +1 -0
- package/dist/interface/math/vec3/i32/bitwise-and.d.ts +2 -0
- package/dist/interface/math/vec3/i32/bitwise-and.js +7 -0
- package/dist/interface/math/vec3/i32/bitwise-and.js.map +1 -0
- package/dist/interface/math/vec3/i32/bitwise-not.d.ts +2 -0
- package/dist/interface/math/vec3/i32/bitwise-not.js +3 -0
- package/dist/interface/math/vec3/i32/bitwise-not.js.map +1 -0
- package/dist/interface/math/vec3/i32/bitwise-or.d.ts +2 -0
- package/dist/interface/math/vec3/i32/bitwise-or.js +7 -0
- package/dist/interface/math/vec3/i32/bitwise-or.js.map +1 -0
- package/dist/interface/math/vec3/i32/bitwise-xor.d.ts +2 -0
- package/dist/interface/math/vec3/i32/bitwise-xor.js +7 -0
- package/dist/interface/math/vec3/i32/bitwise-xor.js.map +1 -0
- package/dist/interface/math/vec3/i32/clamp.d.ts +2 -0
- package/dist/interface/math/vec3/i32/clamp.js +5 -0
- package/dist/interface/math/vec3/i32/clamp.js.map +1 -0
- package/dist/interface/math/vec3/i32/count-leading-zeros.d.ts +2 -0
- package/dist/interface/math/vec3/i32/count-leading-zeros.js +8 -0
- package/dist/interface/math/vec3/i32/count-leading-zeros.js.map +1 -0
- package/dist/interface/math/vec3/i32/count-one-bits.d.ts +2 -0
- package/dist/interface/math/vec3/i32/count-one-bits.js +8 -0
- package/dist/interface/math/vec3/i32/count-one-bits.js.map +1 -0
- package/dist/interface/math/vec3/i32/count-trailing-zeros.d.ts +2 -0
- package/dist/interface/math/vec3/i32/count-trailing-zeros.js +8 -0
- package/dist/interface/math/vec3/i32/count-trailing-zeros.js.map +1 -0
- package/dist/interface/math/vec3/i32/equals.d.ts +2 -0
- package/dist/interface/math/vec3/i32/equals.js +2 -0
- package/dist/interface/math/vec3/i32/equals.js.map +1 -0
- package/dist/interface/math/vec3/i32/i32.d.ts +5 -0
- package/dist/interface/math/vec3/i32/i32.js +2 -0
- package/dist/interface/math/vec3/i32/i32.js.map +1 -0
- package/dist/interface/math/vec3/i32/max.d.ts +2 -0
- package/dist/interface/math/vec3/i32/max.js +7 -0
- package/dist/interface/math/vec3/i32/max.js.map +1 -0
- package/dist/interface/math/vec3/i32/min.d.ts +2 -0
- package/dist/interface/math/vec3/i32/min.js +7 -0
- package/dist/interface/math/vec3/i32/min.js.map +1 -0
- package/dist/interface/math/vec3/i32/multiply.d.ts +2 -0
- package/dist/interface/math/vec3/i32/multiply.js +7 -0
- package/dist/interface/math/vec3/i32/multiply.js.map +1 -0
- package/dist/interface/math/vec3/i32/negate.d.ts +2 -0
- package/dist/interface/math/vec3/i32/negate.js +7 -0
- package/dist/interface/math/vec3/i32/negate.js.map +1 -0
- package/dist/interface/math/vec3/i32/one.d.ts +2 -0
- package/dist/interface/math/vec3/i32/one.js +2 -0
- package/dist/interface/math/vec3/i32/one.js.map +1 -0
- package/dist/interface/math/vec3/i32/public.d.ts +24 -0
- package/dist/interface/math/vec3/i32/public.js +26 -0
- package/dist/interface/math/vec3/i32/public.js.map +1 -0
- package/dist/interface/math/vec3/i32/reverse-bits.d.ts +2 -0
- package/dist/interface/math/vec3/i32/reverse-bits.js +8 -0
- package/dist/interface/math/vec3/i32/reverse-bits.js.map +1 -0
- package/dist/interface/math/vec3/i32/scale.d.ts +3 -0
- package/dist/interface/math/vec3/i32/scale.js +7 -0
- package/dist/interface/math/vec3/i32/scale.js.map +1 -0
- package/dist/interface/math/vec3/i32/schema.d.ts +10 -0
- package/dist/interface/math/vec3/i32/schema.js +3 -0
- package/dist/interface/math/vec3/i32/schema.js.map +1 -0
- package/dist/interface/math/vec3/i32/shift-left.d.ts +2 -0
- package/dist/interface/math/vec3/i32/shift-left.js +2 -0
- package/dist/interface/math/vec3/i32/shift-left.js.map +1 -0
- package/dist/interface/math/vec3/i32/shift-right.d.ts +2 -0
- package/dist/interface/math/vec3/i32/shift-right.js +7 -0
- package/dist/interface/math/vec3/i32/shift-right.js.map +1 -0
- package/dist/interface/math/vec3/i32/subtract.d.ts +2 -0
- package/dist/interface/math/vec3/i32/subtract.js +7 -0
- package/dist/interface/math/vec3/i32/subtract.js.map +1 -0
- package/dist/interface/math/vec3/i32/zero.d.ts +2 -0
- package/dist/interface/math/vec3/i32/zero.js +2 -0
- package/dist/interface/math/vec3/i32/zero.js.map +1 -0
- package/dist/interface/math/vec3/index.d.ts +4 -0
- package/dist/interface/math/vec3/index.js +2 -0
- package/dist/interface/math/vec3/index.js.map +1 -0
- package/dist/interface/math/vec3/public.d.ts +5 -0
- package/dist/interface/math/vec3/public.js +7 -0
- package/dist/interface/math/vec3/public.js.map +1 -0
- package/dist/interface/math/vec3/u32/add.d.ts +2 -0
- package/dist/interface/math/vec3/u32/add.js +7 -0
- package/dist/interface/math/vec3/u32/add.js.map +1 -0
- package/dist/interface/math/vec3/u32/bitwise-and.d.ts +2 -0
- package/dist/interface/math/vec3/u32/bitwise-and.js +7 -0
- package/dist/interface/math/vec3/u32/bitwise-and.js.map +1 -0
- package/dist/interface/math/vec3/u32/bitwise-not.d.ts +2 -0
- package/dist/interface/math/vec3/u32/bitwise-not.js +3 -0
- package/dist/interface/math/vec3/u32/bitwise-not.js.map +1 -0
- package/dist/interface/math/vec3/u32/bitwise-or.d.ts +2 -0
- package/dist/interface/math/vec3/u32/bitwise-or.js +7 -0
- package/dist/interface/math/vec3/u32/bitwise-or.js.map +1 -0
- package/dist/interface/math/vec3/u32/bitwise-xor.d.ts +2 -0
- package/dist/interface/math/vec3/u32/bitwise-xor.js +7 -0
- package/dist/interface/math/vec3/u32/bitwise-xor.js.map +1 -0
- package/dist/interface/math/vec3/u32/clamp.d.ts +2 -0
- package/dist/interface/math/vec3/u32/clamp.js +5 -0
- package/dist/interface/math/vec3/u32/clamp.js.map +1 -0
- package/dist/interface/math/vec3/u32/count-leading-zeros.d.ts +2 -0
- package/dist/interface/math/vec3/u32/count-leading-zeros.js +8 -0
- package/dist/interface/math/vec3/u32/count-leading-zeros.js.map +1 -0
- package/dist/interface/math/vec3/u32/count-one-bits.d.ts +2 -0
- package/dist/interface/math/vec3/u32/count-one-bits.js +8 -0
- package/dist/interface/math/vec3/u32/count-one-bits.js.map +1 -0
- package/dist/interface/math/vec3/u32/count-trailing-zeros.d.ts +2 -0
- package/dist/interface/math/vec3/u32/count-trailing-zeros.js +8 -0
- package/dist/interface/math/vec3/u32/count-trailing-zeros.js.map +1 -0
- package/dist/interface/math/vec3/u32/equals.d.ts +2 -0
- package/dist/interface/math/vec3/u32/equals.js +2 -0
- package/dist/interface/math/vec3/u32/equals.js.map +1 -0
- package/dist/interface/math/vec3/u32/max.d.ts +2 -0
- package/dist/interface/math/vec3/u32/max.js +7 -0
- package/dist/interface/math/vec3/u32/max.js.map +1 -0
- package/dist/interface/math/vec3/u32/min.d.ts +2 -0
- package/dist/interface/math/vec3/u32/min.js +7 -0
- package/dist/interface/math/vec3/u32/min.js.map +1 -0
- package/dist/interface/math/vec3/u32/multiply.d.ts +2 -0
- package/dist/interface/math/vec3/u32/multiply.js +7 -0
- package/dist/interface/math/vec3/u32/multiply.js.map +1 -0
- package/dist/interface/math/vec3/u32/negate.d.ts +2 -0
- package/dist/interface/math/vec3/u32/negate.js +2 -0
- package/dist/interface/math/vec3/u32/negate.js.map +1 -0
- package/dist/interface/math/vec3/u32/one.d.ts +2 -0
- package/dist/interface/math/vec3/u32/one.js +2 -0
- package/dist/interface/math/vec3/u32/one.js.map +1 -0
- package/dist/interface/math/vec3/u32/public.d.ts +24 -0
- package/dist/interface/math/vec3/u32/public.js +26 -0
- package/dist/interface/math/vec3/u32/public.js.map +1 -0
- package/dist/interface/math/vec3/u32/reverse-bits.d.ts +2 -0
- package/dist/interface/math/vec3/u32/reverse-bits.js +8 -0
- package/dist/interface/math/vec3/u32/reverse-bits.js.map +1 -0
- package/dist/interface/math/vec3/u32/scale.d.ts +3 -0
- package/dist/interface/math/vec3/u32/scale.js +7 -0
- package/dist/interface/math/vec3/u32/scale.js.map +1 -0
- package/dist/interface/math/vec3/u32/schema.d.ts +10 -0
- package/dist/interface/math/vec3/u32/schema.js +3 -0
- package/dist/interface/math/vec3/u32/schema.js.map +1 -0
- package/dist/interface/math/vec3/u32/shift-left.d.ts +2 -0
- package/dist/interface/math/vec3/u32/shift-left.js +6 -0
- package/dist/interface/math/vec3/u32/shift-left.js.map +1 -0
- package/dist/interface/math/vec3/u32/shift-right.d.ts +2 -0
- package/dist/interface/math/vec3/u32/shift-right.js +7 -0
- package/dist/interface/math/vec3/u32/shift-right.js.map +1 -0
- package/dist/interface/math/vec3/u32/subtract.d.ts +2 -0
- package/dist/interface/math/vec3/u32/subtract.js +7 -0
- package/dist/interface/math/vec3/u32/subtract.js.map +1 -0
- package/dist/interface/math/vec3/u32/u32.d.ts +5 -0
- package/dist/interface/math/vec3/u32/u32.js +2 -0
- package/dist/interface/math/vec3/u32/u32.js.map +1 -0
- package/dist/interface/math/vec3/u32/volume.d.ts +2 -0
- package/dist/interface/math/vec3/u32/volume.js +2 -0
- package/dist/interface/math/vec3/u32/volume.js.map +1 -0
- package/dist/interface/math/vec3/u32/zero.d.ts +2 -0
- package/dist/interface/math/vec3/u32/zero.js +2 -0
- package/dist/interface/math/vec3/u32/zero.js.map +1 -0
- package/dist/interface/math/vec4/f32/abs.d.ts +2 -0
- package/dist/interface/math/vec4/f32/abs.js +3 -0
- package/dist/interface/math/vec4/f32/abs.js.map +1 -0
- package/dist/interface/math/vec4/f32/acos.d.ts +2 -0
- package/dist/interface/math/vec4/f32/acos.js +3 -0
- package/dist/interface/math/vec4/f32/acos.js.map +1 -0
- package/dist/interface/math/vec4/f32/acosh.d.ts +2 -0
- package/dist/interface/math/vec4/f32/acosh.js +3 -0
- package/dist/interface/math/vec4/f32/acosh.js.map +1 -0
- package/dist/interface/math/vec4/f32/add.d.ts +2 -0
- package/dist/interface/math/vec4/f32/add.js +8 -0
- package/dist/interface/math/vec4/f32/add.js.map +1 -0
- package/dist/interface/math/vec4/f32/asin.d.ts +2 -0
- package/dist/interface/math/vec4/f32/asin.js +3 -0
- package/dist/interface/math/vec4/f32/asin.js.map +1 -0
- package/dist/interface/math/vec4/f32/asinh.d.ts +2 -0
- package/dist/interface/math/vec4/f32/asinh.js +3 -0
- package/dist/interface/math/vec4/f32/asinh.js.map +1 -0
- package/dist/interface/math/vec4/f32/atan.d.ts +2 -0
- package/dist/interface/math/vec4/f32/atan.js +3 -0
- package/dist/interface/math/vec4/f32/atan.js.map +1 -0
- package/dist/interface/math/vec4/f32/atanh.d.ts +2 -0
- package/dist/interface/math/vec4/f32/atanh.js +3 -0
- package/dist/interface/math/vec4/f32/atanh.js.map +1 -0
- package/dist/interface/math/vec4/f32/ceil.d.ts +2 -0
- package/dist/interface/math/vec4/f32/ceil.js +3 -0
- package/dist/interface/math/vec4/f32/ceil.js.map +1 -0
- package/dist/interface/math/vec4/f32/clamp.d.ts +2 -0
- package/dist/interface/math/vec4/f32/clamp.js +5 -0
- package/dist/interface/math/vec4/f32/clamp.js.map +1 -0
- package/dist/interface/math/vec4/f32/cos.d.ts +2 -0
- package/dist/interface/math/vec4/f32/cos.js +3 -0
- package/dist/interface/math/vec4/f32/cos.js.map +1 -0
- package/dist/interface/math/vec4/f32/cosh.d.ts +2 -0
- package/dist/interface/math/vec4/f32/cosh.js +3 -0
- package/dist/interface/math/vec4/f32/cosh.js.map +1 -0
- package/dist/interface/math/vec4/f32/default.d.ts +4 -0
- package/dist/interface/math/vec4/f32/default.js +4 -0
- package/dist/interface/math/vec4/f32/default.js.map +1 -0
- package/dist/interface/math/vec4/f32/distance.d.ts +2 -0
- package/dist/interface/math/vec4/f32/distance.js +5 -0
- package/dist/interface/math/vec4/f32/distance.js.map +1 -0
- package/dist/interface/math/vec4/f32/dot.d.ts +2 -0
- package/dist/interface/math/vec4/f32/dot.js +3 -0
- package/dist/interface/math/vec4/f32/dot.js.map +1 -0
- package/dist/interface/math/vec4/f32/exp.d.ts +2 -0
- package/dist/interface/math/vec4/f32/exp.js +3 -0
- package/dist/interface/math/vec4/f32/exp.js.map +1 -0
- package/dist/interface/math/vec4/f32/exp2.d.ts +2 -0
- package/dist/interface/math/vec4/f32/exp2.js +3 -0
- package/dist/interface/math/vec4/f32/exp2.js.map +1 -0
- package/dist/interface/math/vec4/f32/f32.d.ts +4 -0
- package/dist/interface/math/vec4/f32/f32.js +2 -0
- package/dist/interface/math/vec4/f32/f32.js.map +1 -0
- package/dist/interface/math/vec4/f32/faceforward.d.ts +2 -0
- package/dist/interface/math/vec4/f32/faceforward.js +5 -0
- package/dist/interface/math/vec4/f32/faceforward.js.map +1 -0
- package/dist/interface/math/vec4/f32/floor.d.ts +2 -0
- package/dist/interface/math/vec4/f32/floor.js +3 -0
- package/dist/interface/math/vec4/f32/floor.js.map +1 -0
- package/dist/interface/math/vec4/f32/fract.d.ts +2 -0
- package/dist/interface/math/vec4/f32/fract.js +8 -0
- package/dist/interface/math/vec4/f32/fract.js.map +1 -0
- package/dist/interface/math/vec4/f32/length.d.ts +2 -0
- package/dist/interface/math/vec4/f32/length.js +3 -0
- package/dist/interface/math/vec4/f32/length.js.map +1 -0
- package/dist/interface/math/vec4/f32/log.d.ts +2 -0
- package/dist/interface/math/vec4/f32/log.js +3 -0
- package/dist/interface/math/vec4/f32/log.js.map +1 -0
- package/dist/interface/math/vec4/f32/log2.d.ts +2 -0
- package/dist/interface/math/vec4/f32/log2.js +3 -0
- package/dist/interface/math/vec4/f32/log2.js.map +1 -0
- package/dist/interface/math/vec4/f32/max.d.ts +2 -0
- package/dist/interface/math/vec4/f32/max.js +8 -0
- package/dist/interface/math/vec4/f32/max.js.map +1 -0
- package/dist/interface/math/vec4/f32/min.d.ts +2 -0
- package/dist/interface/math/vec4/f32/min.js +8 -0
- package/dist/interface/math/vec4/f32/min.js.map +1 -0
- package/dist/interface/math/vec4/f32/mix.d.ts +2 -0
- package/dist/interface/math/vec4/f32/mix.js +8 -0
- package/dist/interface/math/vec4/f32/mix.js.map +1 -0
- package/dist/interface/math/vec4/f32/mod.d.ts +2 -0
- package/dist/interface/math/vec4/f32/mod.js +7 -0
- package/dist/interface/math/vec4/f32/mod.js.map +1 -0
- package/dist/interface/math/vec4/f32/modf.d.ts +5 -0
- package/dist/interface/math/vec4/f32/modf.js +5 -0
- package/dist/interface/math/vec4/f32/modf.js.map +1 -0
- package/dist/interface/math/vec4/f32/multiply.d.ts +2 -0
- package/dist/interface/math/vec4/f32/multiply.js +8 -0
- package/dist/interface/math/vec4/f32/multiply.js.map +1 -0
- package/dist/interface/math/vec4/f32/negate.d.ts +2 -0
- package/dist/interface/math/vec4/f32/negate.js +3 -0
- package/dist/interface/math/vec4/f32/negate.js.map +1 -0
- package/dist/interface/math/vec4/f32/normalize.d.ts +2 -0
- package/dist/interface/math/vec4/f32/normalize.js +5 -0
- package/dist/interface/math/vec4/f32/normalize.js.map +1 -0
- package/dist/interface/math/vec4/f32/pow.d.ts +3 -0
- package/dist/interface/math/vec4/f32/pow.js +9 -0
- package/dist/interface/math/vec4/f32/pow.js.map +1 -0
- package/dist/interface/math/vec4/f32/public.d.ts +47 -0
- package/dist/interface/math/vec4/f32/public.js +49 -0
- package/dist/interface/math/vec4/f32/public.js.map +1 -0
- package/dist/interface/math/vec4/f32/reflect.d.ts +2 -0
- package/dist/interface/math/vec4/f32/reflect.js +9 -0
- package/dist/interface/math/vec4/f32/reflect.js.map +1 -0
- package/dist/interface/math/vec4/f32/refract.d.ts +2 -0
- package/dist/interface/math/vec4/f32/refract.js +14 -0
- package/dist/interface/math/vec4/f32/refract.js.map +1 -0
- package/dist/interface/math/vec4/f32/round.d.ts +2 -0
- package/dist/interface/math/vec4/f32/round.js +9 -0
- package/dist/interface/math/vec4/f32/round.js.map +1 -0
- package/dist/interface/math/vec4/f32/scale.d.ts +2 -0
- package/dist/interface/math/vec4/f32/scale.js +3 -0
- package/dist/interface/math/vec4/f32/scale.js.map +1 -0
- package/dist/interface/math/vec4/f32/schema.d.ts +9 -0
- package/dist/interface/math/vec4/f32/schema.js +3 -0
- package/dist/interface/math/vec4/f32/schema.js.map +1 -0
- package/dist/interface/math/vec4/f32/sign.d.ts +2 -0
- package/dist/interface/math/vec4/f32/sign.js +3 -0
- package/dist/interface/math/vec4/f32/sign.js.map +1 -0
- package/dist/interface/math/vec4/f32/sin.d.ts +2 -0
- package/dist/interface/math/vec4/f32/sin.js +3 -0
- package/dist/interface/math/vec4/f32/sin.js.map +1 -0
- package/dist/interface/math/vec4/f32/sinh.d.ts +2 -0
- package/dist/interface/math/vec4/f32/sinh.js +3 -0
- package/dist/interface/math/vec4/f32/sinh.js.map +1 -0
- package/dist/interface/math/vec4/f32/smoothstep.d.ts +2 -0
- package/dist/interface/math/vec4/f32/smoothstep.js +14 -0
- package/dist/interface/math/vec4/f32/smoothstep.js.map +1 -0
- package/dist/interface/math/vec4/f32/sqrt.d.ts +2 -0
- package/dist/interface/math/vec4/f32/sqrt.js +3 -0
- package/dist/interface/math/vec4/f32/sqrt.js.map +1 -0
- package/dist/interface/math/vec4/f32/step.d.ts +2 -0
- package/dist/interface/math/vec4/f32/step.js +8 -0
- package/dist/interface/math/vec4/f32/step.js.map +1 -0
- package/dist/interface/math/vec4/f32/subtract.d.ts +2 -0
- package/dist/interface/math/vec4/f32/subtract.js +8 -0
- package/dist/interface/math/vec4/f32/subtract.js.map +1 -0
- package/dist/interface/math/vec4/f32/tan.d.ts +2 -0
- package/dist/interface/math/vec4/f32/tan.js +3 -0
- package/dist/interface/math/vec4/f32/tan.js.map +1 -0
- package/dist/interface/math/vec4/f32/tanh.d.ts +2 -0
- package/dist/interface/math/vec4/f32/tanh.js +3 -0
- package/dist/interface/math/vec4/f32/tanh.js.map +1 -0
- package/dist/interface/math/vec4/f32/trunc.d.ts +2 -0
- package/dist/interface/math/vec4/f32/trunc.js +3 -0
- package/dist/interface/math/vec4/f32/trunc.js.map +1 -0
- package/dist/interface/math/vec4/i32/abs.d.ts +2 -0
- package/dist/interface/math/vec4/i32/abs.js +8 -0
- package/dist/interface/math/vec4/i32/abs.js.map +1 -0
- package/dist/interface/math/vec4/i32/add.d.ts +2 -0
- package/dist/interface/math/vec4/i32/add.js +8 -0
- package/dist/interface/math/vec4/i32/add.js.map +1 -0
- package/dist/interface/math/vec4/i32/bitwise-and.d.ts +2 -0
- package/dist/interface/math/vec4/i32/bitwise-and.js +8 -0
- package/dist/interface/math/vec4/i32/bitwise-and.js.map +1 -0
- package/dist/interface/math/vec4/i32/bitwise-not.d.ts +2 -0
- package/dist/interface/math/vec4/i32/bitwise-not.js +3 -0
- package/dist/interface/math/vec4/i32/bitwise-not.js.map +1 -0
- package/dist/interface/math/vec4/i32/bitwise-or.d.ts +2 -0
- package/dist/interface/math/vec4/i32/bitwise-or.js +8 -0
- package/dist/interface/math/vec4/i32/bitwise-or.js.map +1 -0
- package/dist/interface/math/vec4/i32/bitwise-xor.d.ts +2 -0
- package/dist/interface/math/vec4/i32/bitwise-xor.js +8 -0
- package/dist/interface/math/vec4/i32/bitwise-xor.js.map +1 -0
- package/dist/interface/math/vec4/i32/clamp.d.ts +2 -0
- package/dist/interface/math/vec4/i32/clamp.js +5 -0
- package/dist/interface/math/vec4/i32/clamp.js.map +1 -0
- package/dist/interface/math/vec4/i32/count-leading-zeros.d.ts +2 -0
- package/dist/interface/math/vec4/i32/count-leading-zeros.js +9 -0
- package/dist/interface/math/vec4/i32/count-leading-zeros.js.map +1 -0
- package/dist/interface/math/vec4/i32/count-one-bits.d.ts +2 -0
- package/dist/interface/math/vec4/i32/count-one-bits.js +9 -0
- package/dist/interface/math/vec4/i32/count-one-bits.js.map +1 -0
- package/dist/interface/math/vec4/i32/count-trailing-zeros.d.ts +2 -0
- package/dist/interface/math/vec4/i32/count-trailing-zeros.js +9 -0
- package/dist/interface/math/vec4/i32/count-trailing-zeros.js.map +1 -0
- package/dist/interface/math/vec4/i32/equals.d.ts +2 -0
- package/dist/interface/math/vec4/i32/equals.js +2 -0
- package/dist/interface/math/vec4/i32/equals.js.map +1 -0
- package/dist/interface/math/vec4/i32/i32.d.ts +5 -0
- package/dist/interface/math/vec4/i32/i32.js +2 -0
- package/dist/interface/math/vec4/i32/i32.js.map +1 -0
- package/dist/interface/math/vec4/i32/max.d.ts +2 -0
- package/dist/interface/math/vec4/i32/max.js +8 -0
- package/dist/interface/math/vec4/i32/max.js.map +1 -0
- package/dist/interface/math/vec4/i32/min.d.ts +2 -0
- package/dist/interface/math/vec4/i32/min.js +8 -0
- package/dist/interface/math/vec4/i32/min.js.map +1 -0
- package/dist/interface/math/vec4/i32/multiply.d.ts +2 -0
- package/dist/interface/math/vec4/i32/multiply.js +8 -0
- package/dist/interface/math/vec4/i32/multiply.js.map +1 -0
- package/dist/interface/math/vec4/i32/negate.d.ts +2 -0
- package/dist/interface/math/vec4/i32/negate.js +8 -0
- package/dist/interface/math/vec4/i32/negate.js.map +1 -0
- package/dist/interface/math/vec4/i32/one.d.ts +2 -0
- package/dist/interface/math/vec4/i32/one.js +2 -0
- package/dist/interface/math/vec4/i32/one.js.map +1 -0
- package/dist/interface/math/vec4/i32/public.d.ts +24 -0
- package/dist/interface/math/vec4/i32/public.js +26 -0
- package/dist/interface/math/vec4/i32/public.js.map +1 -0
- package/dist/interface/math/vec4/i32/reverse-bits.d.ts +2 -0
- package/dist/interface/math/vec4/i32/reverse-bits.js +9 -0
- package/dist/interface/math/vec4/i32/reverse-bits.js.map +1 -0
- package/dist/interface/math/vec4/i32/scale.d.ts +3 -0
- package/dist/interface/math/vec4/i32/scale.js +8 -0
- package/dist/interface/math/vec4/i32/scale.js.map +1 -0
- package/dist/interface/math/vec4/i32/schema.d.ts +10 -0
- package/dist/interface/math/vec4/i32/schema.js +3 -0
- package/dist/interface/math/vec4/i32/schema.js.map +1 -0
- package/dist/interface/math/vec4/i32/shift-left.d.ts +2 -0
- package/dist/interface/math/vec4/i32/shift-left.js +2 -0
- package/dist/interface/math/vec4/i32/shift-left.js.map +1 -0
- package/dist/interface/math/vec4/i32/shift-right.d.ts +2 -0
- package/dist/interface/math/vec4/i32/shift-right.js +8 -0
- package/dist/interface/math/vec4/i32/shift-right.js.map +1 -0
- package/dist/interface/math/vec4/i32/subtract.d.ts +2 -0
- package/dist/interface/math/vec4/i32/subtract.js +8 -0
- package/dist/interface/math/vec4/i32/subtract.js.map +1 -0
- package/dist/interface/math/vec4/i32/zero.d.ts +2 -0
- package/dist/interface/math/vec4/i32/zero.js +2 -0
- package/dist/interface/math/vec4/i32/zero.js.map +1 -0
- package/dist/interface/math/vec4/index.d.ts +4 -0
- package/dist/interface/math/vec4/index.js +2 -0
- package/dist/interface/math/vec4/index.js.map +1 -0
- package/dist/interface/math/vec4/public.d.ts +5 -0
- package/dist/interface/math/vec4/public.js +7 -0
- package/dist/interface/math/vec4/public.js.map +1 -0
- package/dist/interface/math/vec4/u32/add.d.ts +2 -0
- package/dist/interface/math/vec4/u32/add.js +8 -0
- package/dist/interface/math/vec4/u32/add.js.map +1 -0
- package/dist/interface/math/vec4/u32/bitwise-and.d.ts +2 -0
- package/dist/interface/math/vec4/u32/bitwise-and.js +8 -0
- package/dist/interface/math/vec4/u32/bitwise-and.js.map +1 -0
- package/dist/interface/math/vec4/u32/bitwise-not.d.ts +2 -0
- package/dist/interface/math/vec4/u32/bitwise-not.js +3 -0
- package/dist/interface/math/vec4/u32/bitwise-not.js.map +1 -0
- package/dist/interface/math/vec4/u32/bitwise-or.d.ts +2 -0
- package/dist/interface/math/vec4/u32/bitwise-or.js +8 -0
- package/dist/interface/math/vec4/u32/bitwise-or.js.map +1 -0
- package/dist/interface/math/vec4/u32/bitwise-xor.d.ts +2 -0
- package/dist/interface/math/vec4/u32/bitwise-xor.js +8 -0
- package/dist/interface/math/vec4/u32/bitwise-xor.js.map +1 -0
- package/dist/interface/math/vec4/u32/clamp.d.ts +2 -0
- package/dist/interface/math/vec4/u32/clamp.js +5 -0
- package/dist/interface/math/vec4/u32/clamp.js.map +1 -0
- package/dist/interface/math/vec4/u32/count-leading-zeros.d.ts +2 -0
- package/dist/interface/math/vec4/u32/count-leading-zeros.js +9 -0
- package/dist/interface/math/vec4/u32/count-leading-zeros.js.map +1 -0
- package/dist/interface/math/vec4/u32/count-one-bits.d.ts +2 -0
- package/dist/interface/math/vec4/u32/count-one-bits.js +9 -0
- package/dist/interface/math/vec4/u32/count-one-bits.js.map +1 -0
- package/dist/interface/math/vec4/u32/count-trailing-zeros.d.ts +2 -0
- package/dist/interface/math/vec4/u32/count-trailing-zeros.js +9 -0
- package/dist/interface/math/vec4/u32/count-trailing-zeros.js.map +1 -0
- package/dist/interface/math/vec4/u32/equals.d.ts +2 -0
- package/dist/interface/math/vec4/u32/equals.js +2 -0
- package/dist/interface/math/vec4/u32/equals.js.map +1 -0
- package/dist/interface/math/vec4/u32/max.d.ts +2 -0
- package/dist/interface/math/vec4/u32/max.js +8 -0
- package/dist/interface/math/vec4/u32/max.js.map +1 -0
- package/dist/interface/math/vec4/u32/min.d.ts +2 -0
- package/dist/interface/math/vec4/u32/min.js +8 -0
- package/dist/interface/math/vec4/u32/min.js.map +1 -0
- package/dist/interface/math/vec4/u32/multiply.d.ts +2 -0
- package/dist/interface/math/vec4/u32/multiply.js +8 -0
- package/dist/interface/math/vec4/u32/multiply.js.map +1 -0
- package/dist/interface/math/vec4/u32/negate.d.ts +2 -0
- package/dist/interface/math/vec4/u32/negate.js +2 -0
- package/dist/interface/math/vec4/u32/negate.js.map +1 -0
- package/dist/interface/math/vec4/u32/one.d.ts +2 -0
- package/dist/interface/math/vec4/u32/one.js +2 -0
- package/dist/interface/math/vec4/u32/one.js.map +1 -0
- package/dist/interface/math/vec4/u32/public.d.ts +23 -0
- package/dist/interface/math/vec4/u32/public.js +25 -0
- package/dist/interface/math/vec4/u32/public.js.map +1 -0
- package/dist/interface/math/vec4/u32/reverse-bits.d.ts +2 -0
- package/dist/interface/math/vec4/u32/reverse-bits.js +9 -0
- package/dist/interface/math/vec4/u32/reverse-bits.js.map +1 -0
- package/dist/interface/math/vec4/u32/scale.d.ts +3 -0
- package/dist/interface/math/vec4/u32/scale.js +8 -0
- package/dist/interface/math/vec4/u32/scale.js.map +1 -0
- package/dist/interface/math/vec4/u32/schema.d.ts +10 -0
- package/dist/interface/math/vec4/u32/schema.js +3 -0
- package/dist/interface/math/vec4/u32/schema.js.map +1 -0
- package/dist/interface/math/vec4/u32/shift-left.d.ts +2 -0
- package/dist/interface/math/vec4/u32/shift-left.js +7 -0
- package/dist/interface/math/vec4/u32/shift-left.js.map +1 -0
- package/dist/interface/math/vec4/u32/shift-right.d.ts +2 -0
- package/dist/interface/math/vec4/u32/shift-right.js +8 -0
- package/dist/interface/math/vec4/u32/shift-right.js.map +1 -0
- package/dist/interface/math/vec4/u32/subtract.d.ts +2 -0
- package/dist/interface/math/vec4/u32/subtract.js +8 -0
- package/dist/interface/math/vec4/u32/subtract.js.map +1 -0
- package/dist/interface/math/vec4/u32/u32.d.ts +5 -0
- package/dist/interface/math/vec4/u32/u32.js +2 -0
- package/dist/interface/math/vec4/u32/u32.js.map +1 -0
- package/dist/interface/math/vec4/u32/zero.d.ts +2 -0
- package/dist/interface/math/vec4/u32/zero.js +2 -0
- package/dist/interface/math/vec4/u32/zero.js.map +1 -0
- package/dist/interface/platform/platform.d.ts +28 -0
- package/dist/interface/platform/platform.js +2 -0
- package/dist/interface/platform/platform.js.map +1 -0
- package/dist/interface/registry/archetypes.d.ts +29 -0
- package/dist/interface/registry/archetypes.js +52 -0
- package/dist/interface/registry/archetypes.js.map +1 -0
- package/dist/interface/registry/declarations.d.ts +25 -0
- package/dist/interface/registry/declarations.js +217 -0
- package/dist/interface/registry/declarations.js.map +1 -0
- package/dist/interface/registry/finalizer-order.d.ts +6 -0
- package/dist/interface/registry/finalizer-order.js +66 -0
- package/dist/interface/registry/finalizer-order.js.map +1 -0
- package/dist/interface/registry/ids.d.ts +35 -0
- package/dist/interface/registry/ids.js +70 -0
- package/dist/interface/registry/ids.js.map +1 -0
- package/dist/interface/registry/index.d.ts +29 -0
- package/dist/interface/registry/index.js +16 -0
- package/dist/interface/registry/index.js.map +1 -0
- package/dist/interface/registry/indexes.d.ts +38 -0
- package/dist/interface/registry/indexes.js +63 -0
- package/dist/interface/registry/indexes.js.map +1 -0
- package/dist/interface/registry/items.d.ts +38 -0
- package/dist/interface/registry/items.js +79 -0
- package/dist/interface/registry/items.js.map +1 -0
- package/dist/interface/registry/layout.d.ts +61 -0
- package/dist/interface/registry/layout.js +318 -0
- package/dist/interface/registry/layout.js.map +1 -0
- package/dist/interface/registry/names.d.ts +46 -0
- package/dist/interface/registry/names.js +153 -0
- package/dist/interface/registry/names.js.map +1 -0
- package/dist/interface/registry/program.d.ts +36 -0
- package/dist/interface/registry/program.js +96 -0
- package/dist/interface/registry/program.js.map +1 -0
- package/dist/interface/registry/reduction.d.ts +5 -0
- package/dist/interface/registry/reduction.js +5 -0
- package/dist/interface/registry/reduction.js.map +1 -0
- package/dist/interface/registry/schedule.d.ts +36 -0
- package/dist/interface/registry/schedule.js +202 -0
- package/dist/interface/registry/schedule.js.map +1 -0
- package/dist/interface/registry/schemas.d.ts +22 -0
- package/dist/interface/registry/schemas.js +122 -0
- package/dist/interface/registry/schemas.js.map +1 -0
- package/dist/interface/registry/strata.d.ts +29 -0
- package/dist/interface/registry/strata.js +95 -0
- package/dist/interface/registry/strata.js.map +1 -0
- package/dist/interface/registry/threads.d.ts +34 -0
- package/dist/interface/registry/threads.js +53 -0
- package/dist/interface/registry/threads.js.map +1 -0
- package/dist/interface/registry/traits.d.ts +4 -0
- package/dist/interface/registry/traits.js +11 -0
- package/dist/interface/registry/traits.js.map +1 -0
- package/dist/interface/registry/written.d.ts +4 -0
- package/dist/interface/registry/written.js +14 -0
- package/dist/interface/registry/written.js.map +1 -0
- package/dist/interface/resource/condition.d.ts +8 -0
- package/dist/interface/resource/condition.js +2 -0
- package/dist/interface/resource/condition.js.map +1 -0
- package/dist/interface/resource/index.d.ts +2 -0
- package/dist/interface/resource/index.js +2 -0
- package/dist/interface/resource/index.js.map +1 -0
- package/dist/interface/resource/key.d.ts +2 -0
- package/dist/interface/resource/key.js +2 -0
- package/dist/interface/resource/key.js.map +1 -0
- package/dist/interface/resource/reduction.d.ts +14 -0
- package/dist/interface/resource/reduction.js +2 -0
- package/dist/interface/resource/reduction.js.map +1 -0
- package/dist/interface/resource/resource.d.ts +2 -0
- package/dist/interface/resource/resource.js +3 -0
- package/dist/interface/resource/resource.js.map +1 -0
- package/dist/interface/resource/types.d.ts +6 -0
- package/dist/interface/resource/types.js +2 -0
- package/dist/interface/resource/types.js.map +1 -0
- package/dist/interface/resource/value.d.ts +21 -0
- package/dist/interface/resource/value.js +2 -0
- package/dist/interface/resource/value.js.map +1 -0
- package/dist/interface/resource/written.d.ts +3 -0
- package/dist/interface/resource/written.js +2 -0
- package/dist/interface/resource/written.js.map +1 -0
- package/dist/interface/resources/always.d.ts +9 -0
- package/dist/interface/resources/always.js +6 -0
- package/dist/interface/resources/always.js.map +1 -0
- package/dist/interface/resources/cadence.d.ts +21 -0
- package/dist/interface/resources/cadence.js +18 -0
- package/dist/interface/resources/cadence.js.map +1 -0
- package/dist/interface/resources/clock.d.ts +16 -0
- package/dist/interface/resources/clock.js +12 -0
- package/dist/interface/resources/clock.js.map +1 -0
- package/dist/interface/resources/gpu-device.d.ts +13 -0
- package/dist/interface/resources/gpu-device.js +10 -0
- package/dist/interface/resources/gpu-device.js.map +1 -0
- package/dist/interface/resources/index.d.ts +6 -0
- package/dist/interface/resources/index.js +8 -0
- package/dist/interface/resources/index.js.map +1 -0
- package/dist/interface/resources/wake.d.ts +13 -0
- package/dist/interface/resources/wake.js +9 -0
- package/dist/interface/resources/wake.js.map +1 -0
- package/dist/interface/resources/workers.d.ts +9 -0
- package/dist/interface/resources/workers.js +6 -0
- package/dist/interface/resources/workers.js.map +1 -0
- package/dist/interface/rule/create.d.ts +13 -0
- package/dist/interface/rule/create.js +27 -0
- package/dist/interface/rule/create.js.map +1 -0
- package/dist/interface/rule/created.d.ts +7 -0
- package/dist/interface/rule/created.js +2 -0
- package/dist/interface/rule/created.js.map +1 -0
- package/dist/interface/rule/declaration.d.ts +18 -0
- package/dist/interface/rule/declaration.js +2 -0
- package/dist/interface/rule/declaration.js.map +1 -0
- package/dist/interface/rule/index.d.ts +1 -0
- package/dist/interface/rule/index.js +3 -0
- package/dist/interface/rule/index.js.map +1 -0
- package/dist/interface/rule/rule.d.ts +2 -0
- package/dist/interface/rule/rule.js +2 -0
- package/dist/interface/rule/rule.js.map +1 -0
- package/dist/interface/schema/is-struct.d.ts +43 -0
- package/dist/interface/schema/is-struct.js +2 -0
- package/dist/interface/schema/is-struct.js.map +1 -0
- package/dist/interface/schema/schema.d.ts +171 -0
- package/dist/interface/schema/schema.js +2 -0
- package/dist/interface/schema/schema.js.map +1 -0
- package/dist/interface/system/access.d.ts +132 -0
- package/dist/interface/system/access.js +2 -0
- package/dist/interface/system/access.js.map +1 -0
- package/dist/interface/system/body.d.ts +83 -0
- package/dist/interface/system/body.js +2 -0
- package/dist/interface/system/body.js.map +1 -0
- package/dist/interface/system/check.d.ts +24 -0
- package/dist/interface/system/check.js +296 -0
- package/dist/interface/system/check.js.map +1 -0
- package/dist/interface/system/commands.d.ts +74 -0
- package/dist/interface/system/commands.js +2 -0
- package/dist/interface/system/commands.js.map +1 -0
- package/dist/interface/system/composite-declaration.d.ts +11 -0
- package/dist/interface/system/composite-declaration.js +2 -0
- package/dist/interface/system/composite-declaration.js.map +1 -0
- package/dist/interface/system/composite.d.ts +8 -0
- package/dist/interface/system/composite.js +2 -0
- package/dist/interface/system/composite.js.map +1 -0
- package/dist/interface/system/create-resolved.d.ts +9 -0
- package/dist/interface/system/create-resolved.js +18 -0
- package/dist/interface/system/create-resolved.js.map +1 -0
- package/dist/interface/system/create.d.ts +218 -0
- package/dist/interface/system/create.js +55 -0
- package/dist/interface/system/create.js.map +1 -0
- package/dist/interface/system/declaration.d.ts +75 -0
- package/dist/interface/system/declaration.js +2 -0
- package/dist/interface/system/declaration.js.map +1 -0
- package/dist/interface/system/definition.d.ts +4 -0
- package/dist/interface/system/definition.js +2 -0
- package/dist/interface/system/definition.js.map +1 -0
- package/dist/interface/system/index.d.ts +3 -0
- package/dist/interface/system/index.js +3 -0
- package/dist/interface/system/index.js.map +1 -0
- package/dist/interface/system/input.d.ts +59 -0
- package/dist/interface/system/input.js +2 -0
- package/dist/interface/system/input.js.map +1 -0
- package/dist/interface/system/leaf.d.ts +19 -0
- package/dist/interface/system/leaf.js +2 -0
- package/dist/interface/system/leaf.js.map +1 -0
- package/dist/interface/system/name.d.ts +6 -0
- package/dist/interface/system/name.js +2 -0
- package/dist/interface/system/name.js.map +1 -0
- package/dist/interface/system/property.d.ts +4 -0
- package/dist/interface/system/property.js +3 -0
- package/dist/interface/system/property.js.map +1 -0
- package/dist/interface/system/render.d.ts +84 -0
- package/dist/interface/system/render.js +46 -0
- package/dist/interface/system/render.js.map +1 -0
- package/dist/interface/system/resolve.d.ts +68 -0
- package/dist/interface/system/resolve.js +138 -0
- package/dist/interface/system/resolve.js.map +1 -0
- package/dist/interface/system/struct.d.ts +11 -0
- package/dist/interface/system/struct.js +2 -0
- package/dist/interface/system/struct.js.map +1 -0
- package/dist/interface/system/system.d.ts +12 -0
- package/dist/interface/system/system.js +2 -0
- package/dist/interface/system/system.js.map +1 -0
- package/dist/interface/system/threads.d.ts +47 -0
- package/dist/interface/system/threads.js +2 -0
- package/dist/interface/system/threads.js.map +1 -0
- package/dist/interface/system/values-of.d.ts +17 -0
- package/dist/interface/system/values-of.js +2 -0
- package/dist/interface/system/values-of.js.map +1 -0
- package/dist/interface/system/values.d.ts +73 -0
- package/dist/interface/system/values.js +2 -0
- package/dist/interface/system/values.js.map +1 -0
- package/dist/interface/thread/of.d.ts +11 -0
- package/dist/interface/thread/of.js +2 -0
- package/dist/interface/thread/of.js.map +1 -0
- package/dist/interface/thread/thread.d.ts +12 -0
- package/dist/interface/thread/thread.js +2 -0
- package/dist/interface/thread/thread.js.map +1 -0
- package/dist/interface/trait/key.d.ts +4 -0
- package/dist/interface/trait/key.js +2 -0
- package/dist/interface/trait/key.js.map +1 -0
- package/dist/interface/trait/types.d.ts +74 -0
- package/dist/interface/trait/types.js +2 -0
- package/dist/interface/trait/types.js.map +1 -0
- package/dist/interface/world/create.d.ts +21 -0
- package/dist/interface/world/create.js +2 -0
- package/dist/interface/world/create.js.map +1 -0
- package/dist/interface/world/declarations.d.ts +37 -0
- package/dist/interface/world/declarations.js +2 -0
- package/dist/interface/world/declarations.js.map +1 -0
- package/dist/interface/world/filter.d.ts +8 -0
- package/dist/interface/world/filter.js +3 -0
- package/dist/interface/world/filter.js.map +1 -0
- package/dist/interface/world/index.d.ts +1 -0
- package/dist/interface/world/index.js +2 -0
- package/dist/interface/world/index.js.map +1 -0
- package/dist/interface/world/join.d.ts +17 -0
- package/dist/interface/world/join.js +2 -0
- package/dist/interface/world/join.js.map +1 -0
- package/dist/interface/world/world.d.ts +73 -0
- package/dist/interface/world/world.js +2 -0
- package/dist/interface/world/world.js.map +1 -0
- package/package.json +79 -3
- package/src/exports.test.ts +276 -0
- package/src/guide/00-keys.md +34 -0
- package/src/guide/00-keys.out +1 -0
- package/src/guide/00-keys.ts +35 -0
- package/src/guide/00-setup.md +24 -0
- package/src/guide/01-resources.md +22 -0
- package/src/guide/01-resources.out +2 -0
- package/src/guide/01-resources.ts +33 -0
- package/src/guide/02-entities.md +19 -0
- package/src/guide/02-entities.out +2 -0
- package/src/guide/02-entities.ts +43 -0
- package/src/guide/03-systems.md +22 -0
- package/src/guide/03-systems.out +5 -0
- package/src/guide/03-systems.ts +68 -0
- package/src/guide/04-ticks.md +18 -0
- package/src/guide/04-ticks.out +3 -0
- package/src/guide/04-ticks.ts +53 -0
- package/src/guide/05-scheduling.md +14 -0
- package/src/guide/05-scheduling.out +2 -0
- package/src/guide/05-scheduling.ts +46 -0
- package/src/guide/06-sync-points.md +14 -0
- package/src/guide/06-sync-points.out +3 -0
- package/src/guide/06-sync-points.ts +42 -0
- package/src/guide/07-change-filters.md +14 -0
- package/src/guide/07-change-filters.out +6 -0
- package/src/guide/07-change-filters.ts +70 -0
- package/src/guide/08-input.md +12 -0
- package/src/guide/08-input.out +1 -0
- package/src/guide/08-input.ts +45 -0
- package/src/guide/09-rules.md +12 -0
- package/src/guide/09-rules.out +2 -0
- package/src/guide/09-rules.ts +50 -0
- package/src/guide/10-finalizers.md +13 -0
- package/src/guide/10-finalizers.out +4 -0
- package/src/guide/10-finalizers.ts +48 -0
- package/src/guide/11-traits.md +16 -0
- package/src/guide/11-traits.out +2 -0
- package/src/guide/11-traits.ts +51 -0
- package/src/guide/11-traits.type-test.ts +25 -0
- package/src/guide/12-lookups.md +14 -0
- package/src/guide/12-lookups.out +3 -0
- package/src/guide/12-lookups.ts +59 -0
- package/src/guide/13-indexes.md +21 -0
- package/src/guide/13-indexes.out +8 -0
- package/src/guide/13-indexes.ts +73 -0
- package/src/guide/14-kernels.md +15 -0
- package/src/guide/14-kernels.out +1 -0
- package/src/guide/14-kernels.ts +48 -0
- package/src/guide/15-reductions.md +12 -0
- package/src/guide/15-reductions.out +1 -0
- package/src/guide/15-reductions.ts +38 -0
- package/src/guide/16-gpu.md +18 -0
- package/src/guide/16-gpu.out +3 -0
- package/src/guide/16-gpu.ts +51 -0
- package/src/guide/17-hierarchies.md +11 -0
- package/src/guide/17-hierarchies.out +1 -0
- package/src/guide/17-hierarchies.ts +40 -0
- package/src/guide/18-identity.md +10 -0
- package/src/guide/18-identity.out +1 -0
- package/src/guide/18-identity.ts +11 -0
- package/src/guide/19-threads.md +16 -0
- package/src/guide/19-threads.out +2 -0
- package/src/guide/19-threads.ts +65 -0
- package/src/guide/20-shared.md +29 -0
- package/src/guide/20-shared.out +4 -0
- package/src/guide/20-shared.ts +118 -0
- package/src/guide/21-dom.md +22 -0
- package/src/guide/21-dom.out +5 -0
- package/src/guide/21-dom.ts +117 -0
- package/src/guide/22-canvas.md +15 -0
- package/src/guide/22-canvas.out +3 -0
- package/src/guide/22-canvas.ts +119 -0
- package/src/guide/CLAUDE.md +49 -0
- package/src/guide/README.md +42 -0
- package/src/guide/guide.test.ts +215 -0
- package/src/implementation/compiler/access.ts +149 -0
- package/src/implementation/compiler/archetypes.test.ts +64 -0
- package/src/implementation/compiler/archetypes.ts +134 -0
- package/src/implementation/compiler/assign.ts +168 -0
- package/src/implementation/compiler/augmentations.test.ts +418 -0
- package/src/implementation/compiler/augmentations.ts +871 -0
- package/src/implementation/compiler/bind.ts +89 -0
- package/src/implementation/compiler/body-access.ts +434 -0
- package/src/implementation/compiler/booleans.ts +39 -0
- package/src/implementation/compiler/branches.ts +46 -0
- package/src/implementation/compiler/calls.ts +395 -0
- package/src/implementation/compiler/columns.ts +62 -0
- package/src/implementation/compiler/compile-kernel.ts +204 -0
- package/src/implementation/compiler/compiler.ts +9 -0
- package/src/implementation/compiler/data.ts +95 -0
- package/src/implementation/compiler/describe.test-helper.ts +97 -0
- package/src/implementation/compiler/describe.test.ts +168 -0
- package/src/implementation/compiler/describe.ts +489 -0
- package/src/implementation/compiler/estree.ts +64 -0
- package/src/implementation/compiler/expression.ts +146 -0
- package/src/implementation/compiler/failure.ts +38 -0
- package/src/implementation/compiler/hygiene.test.ts +66 -0
- package/src/implementation/compiler/identify.test.ts +209 -0
- package/src/implementation/compiler/identify.ts +212 -0
- package/src/implementation/compiler/index.ts +6 -0
- package/src/implementation/compiler/inferred.test.ts +32 -0
- package/src/implementation/compiler/inferred.ts +197 -0
- package/src/implementation/compiler/inline-kernels.test.ts +10 -0
- package/src/implementation/compiler/inline-kernels.ts +21 -0
- package/src/implementation/compiler/input-schemas.test.ts +182 -0
- package/src/implementation/compiler/input-schemas.ts +107 -0
- package/src/implementation/compiler/ir.ts +106 -0
- package/src/implementation/compiler/kernel-id.ts +34 -0
- package/src/implementation/compiler/key.ts +33 -0
- package/src/implementation/compiler/link.test.ts +73 -0
- package/src/implementation/compiler/link.ts +231 -0
- package/src/implementation/compiler/lists.ts +230 -0
- package/src/implementation/compiler/lookups.ts +121 -0
- package/src/implementation/compiler/math.ts +10 -0
- package/src/implementation/compiler/memory-compiler.browser.test.ts +85 -0
- package/src/implementation/compiler/memory-compiler.test.ts +147 -0
- package/src/implementation/compiler/memory-compiler.ts +307 -0
- package/src/implementation/compiler/module-scope.ts +141 -0
- package/src/implementation/compiler/module-value.ts +136 -0
- package/src/implementation/compiler/out.ts +7 -0
- package/src/implementation/compiler/oxc.test-helper.ts +20 -0
- package/src/implementation/compiler/oxc.test.ts +69 -0
- package/src/implementation/compiler/oxc.ts +90 -0
- package/src/implementation/compiler/package-copies.ts +208 -0
- package/src/implementation/compiler/passes.ts +34 -0
- package/src/implementation/compiler/paths.ts +24 -0
- package/src/implementation/compiler/plugin.test.ts +686 -0
- package/src/implementation/compiler/plugin.ts +384 -0
- package/src/implementation/compiler/posix.test.ts +34 -0
- package/src/implementation/compiler/posix.ts +183 -0
- package/src/implementation/compiler/predicates.test.ts +90 -0
- package/src/implementation/compiler/predicates.ts +250 -0
- package/src/implementation/compiler/print.ts +124 -0
- package/src/implementation/compiler/program.ts +235 -0
- package/src/implementation/compiler/public.ts +2 -0
- package/src/implementation/compiler/scalar.ts +47 -0
- package/src/implementation/compiler/scope.ts +28 -0
- package/src/implementation/compiler/serialize.ts +11 -0
- package/src/implementation/compiler/shared-kernels.test.ts +57 -0
- package/src/implementation/compiler/signature.ts +210 -0
- package/src/implementation/compiler/snapshot.ts +37 -0
- package/src/implementation/compiler/source-map.test.ts +41 -0
- package/src/implementation/compiler/source-map.ts +135 -0
- package/src/implementation/compiler/spawns.ts +171 -0
- package/src/implementation/compiler/stamps.ts +46 -0
- package/src/implementation/compiler/statement.ts +103 -0
- package/src/implementation/compiler/subset.md +83 -0
- package/src/implementation/compiler/terminal.ts +50 -0
- package/src/implementation/compiler/transform.test.ts +1534 -0
- package/src/implementation/compiler/transform.ts +498 -0
- package/src/implementation/compiler/type-host.test-helper.ts +27 -0
- package/src/implementation/compiler/type-schemas.ts +714 -0
- package/src/implementation/compiler/unit.ts +132 -0
- package/src/implementation/compiler/value.ts +61 -0
- package/src/implementation/compiler/wat.test.ts +135 -0
- package/src/implementation/compiler/wat.ts +365 -0
- package/src/implementation/index.ts +3 -0
- package/src/implementation/world/activate.ts +134 -0
- package/src/implementation/world/archetype.ts +501 -0
- package/src/implementation/world/arrays.test.ts +25 -0
- package/src/implementation/world/arrays.ts +48 -0
- package/src/implementation/world/arrivals.test.ts +89 -0
- package/src/implementation/world/arrivals.ts +165 -0
- package/src/implementation/world/async-loading.test.ts +86 -0
- package/src/implementation/world/attach-kernel.test.ts +17 -0
- package/src/implementation/world/attach-kernel.ts +31 -0
- package/src/implementation/world/batches.test.ts +126 -0
- package/src/implementation/world/batches.ts +185 -0
- package/src/implementation/world/buffer.ts +176 -0
- package/src/implementation/world/builtins.test.ts +87 -0
- package/src/implementation/world/cascade.ts +145 -0
- package/src/implementation/world/cells.ts +25 -0
- package/src/implementation/world/change-blocks.browser.test.ts +76 -0
- package/src/implementation/world/change-blocks.cases.ts +14 -0
- package/src/implementation/world/change-blocks.fixture.ts +70 -0
- package/src/implementation/world/change-blocks.test.ts +264 -0
- package/src/implementation/world/changes-finalizers.test.ts +38 -0
- package/src/implementation/world/check-kernel.ts +100 -0
- package/src/implementation/world/claims.test.ts +42 -0
- package/src/implementation/world/claims.ts +51 -0
- package/src/implementation/world/closure.test.ts +40 -0
- package/src/implementation/world/closure.ts +41 -0
- package/src/implementation/world/command-ring.ts +475 -0
- package/src/implementation/world/command-rings.cases.ts +48 -0
- package/src/implementation/world/command-rings.fixture.ts +180 -0
- package/src/implementation/world/commands.test.ts +385 -0
- package/src/implementation/world/commands.ts +100 -0
- package/src/implementation/world/composite-input.test.ts +39 -0
- package/src/implementation/world/conditions.test.ts +113 -0
- package/src/implementation/world/constant-unions.test.ts +43 -0
- package/src/implementation/world/create.test.ts +362 -0
- package/src/implementation/world/create.ts +1061 -0
- package/src/implementation/world/defaults.test.ts +86 -0
- package/src/implementation/world/directories.ts +87 -0
- package/src/implementation/world/directory.test.ts +53 -0
- package/src/implementation/world/dispatch.cases.ts +33 -0
- package/src/implementation/world/dispatch.fixture.ts +163 -0
- package/src/implementation/world/entities.ts +190 -0
- package/src/implementation/world/entity-lookup-workers.cases.ts +19 -0
- package/src/implementation/world/entity-lookup-workers.fixture.ts +102 -0
- package/src/implementation/world/entity-lookups.browser.test.ts +51 -0
- package/src/implementation/world/entity-lookups.test-helper.ts +195 -0
- package/src/implementation/world/entity-lookups.test.ts +105 -0
- package/src/implementation/world/execute.ts +745 -0
- package/src/implementation/world/failing-worker.fixture.ts +3 -0
- package/src/implementation/world/failures.ts +71 -0
- package/src/implementation/world/finalizers.test.ts +302 -0
- package/src/implementation/world/finalizers.ts +451 -0
- package/src/implementation/world/fixtures.test-helper.ts +20 -0
- package/src/implementation/world/generated-code.md +144 -0
- package/src/implementation/world/gpu.browser.test.ts +701 -0
- package/src/implementation/world/gpu.test-helper.ts +12 -0
- package/src/implementation/world/gpu.ts +405 -0
- package/src/implementation/world/holders.ts +69 -0
- package/src/implementation/world/ids-changes.test-helper.ts +4 -0
- package/src/implementation/world/ids-keys.test-helper.ts +21 -0
- package/src/implementation/world/ids.test.ts +31 -0
- package/src/implementation/world/imported-lists.test-helper.ts +18 -0
- package/src/implementation/world/imported-lists.test.ts +44 -0
- package/src/implementation/world/index-buckets.test.ts +276 -0
- package/src/implementation/world/index-build-csp.test.ts +58 -0
- package/src/implementation/world/index-build.cases.ts +21 -0
- package/src/implementation/world/index-build.fixture.ts +122 -0
- package/src/implementation/world/index-build.ts +459 -0
- package/src/implementation/world/index-changed.test.ts +235 -0
- package/src/implementation/world/index-hash.test.ts +34 -0
- package/src/implementation/world/index-hash.ts +858 -0
- package/src/implementation/world/index-joined.test.ts +451 -0
- package/src/implementation/world/index-kernels.test.ts +195 -0
- package/src/implementation/world/index-keyless.test.ts +271 -0
- package/src/implementation/world/index-keys.ts +272 -0
- package/src/implementation/world/index-lookups-csp.test.ts +43 -0
- package/src/implementation/world/index-lookups.ts +629 -0
- package/src/implementation/world/index-order.test.ts +150 -0
- package/src/implementation/world/index-order.ts +183 -0
- package/src/implementation/world/index-readers.ts +325 -0
- package/src/implementation/world/index-sorted.test.ts +76 -0
- package/src/implementation/world/index-sorted.ts +656 -0
- package/src/implementation/world/index-workers.cases.ts +27 -0
- package/src/implementation/world/index-workers.fixture.ts +250 -0
- package/src/implementation/world/indexes.test.ts +719 -0
- package/src/implementation/world/indexes.ts +1163 -0
- package/src/implementation/world/input.ts +15 -0
- package/src/implementation/world/intrinsics-coverage.test.ts +26 -0
- package/src/implementation/world/intrinsics.browser.test.ts +544 -0
- package/src/implementation/world/intrinsics.ts +41 -0
- package/src/implementation/world/join.test.ts +309 -0
- package/src/implementation/world/join.ts +729 -0
- package/src/implementation/world/join.type-test.ts +29 -0
- package/src/implementation/world/joined-observer.test.ts +58 -0
- package/src/implementation/world/joined-observer.ts +875 -0
- package/src/implementation/world/joining-worker.fixture.ts +109 -0
- package/src/implementation/world/joining.cases.ts +88 -0
- package/src/implementation/world/joining.fixture.ts +238 -0
- package/src/implementation/world/joining.test-helper.ts +90 -0
- package/src/implementation/world/joining.ts +387 -0
- package/src/implementation/world/journal.ts +40 -0
- package/src/implementation/world/kernel-imports-sparks.test-helper.ts +16 -0
- package/src/implementation/world/kernel-imports-steer.test-helper.ts +10 -0
- package/src/implementation/world/kernel-imports.test.ts +71 -0
- package/src/implementation/world/kernel-indexes.ts +174 -0
- package/src/implementation/world/kernel-lookup.test-helper.ts +26 -0
- package/src/implementation/world/kernel-path.test-helper.ts +18 -0
- package/src/implementation/world/kernel-spawns.test.ts +148 -0
- package/src/implementation/world/kernel-tried.test-helper.ts +31 -0
- package/src/implementation/world/kernel.ts +268 -0
- package/src/implementation/world/kernels-csp.test.ts +42 -0
- package/src/implementation/world/kernels.test.ts +82 -0
- package/src/implementation/world/kernels.ts +398 -0
- package/src/implementation/world/layout-directory.browser.test.ts +195 -0
- package/src/implementation/world/layout-directory.cases.ts +38 -0
- package/src/implementation/world/layout-directory.fixture.ts +176 -0
- package/src/implementation/world/layout-directory.ts +282 -0
- package/src/implementation/world/lifetime.cases.ts +19 -0
- package/src/implementation/world/lifetime.fixture.ts +68 -0
- package/src/implementation/world/lifetime.test-helper.ts +79 -0
- package/src/implementation/world/lifetime.test.ts +80 -0
- package/src/implementation/world/lists.ts +303 -0
- package/src/implementation/world/lookup-keys.ts +49 -0
- package/src/implementation/world/loop.test.ts +193 -0
- package/src/implementation/world/loop.ts +295 -0
- package/src/implementation/world/memory.test.ts +42 -0
- package/src/implementation/world/memory.ts +90 -0
- package/src/implementation/world/mirror.ts +638 -0
- package/src/implementation/world/move-log.test.ts +429 -0
- package/src/implementation/world/move-log.ts +216 -0
- package/src/implementation/world/names.test.ts +80 -0
- package/src/implementation/world/observe-cases.browser.test.ts +97 -0
- package/src/implementation/world/observe-cases.test.ts +752 -0
- package/src/implementation/world/observe-factories.test.ts +301 -0
- package/src/implementation/world/observe-joined-cases.test.ts +221 -0
- package/src/implementation/world/observe-ticks-cases.test.ts +211 -0
- package/src/implementation/world/observe.test-helper.ts +14 -0
- package/src/implementation/world/observed-workers.cases.ts +13 -0
- package/src/implementation/world/observed-workers.fixture.ts +54 -0
- package/src/implementation/world/observer-contained-worker.fixture.ts +41 -0
- package/src/implementation/world/observer-contained.browser.test.ts +5 -0
- package/src/implementation/world/observer-contained.cases.ts +17 -0
- package/src/implementation/world/observer-contained.fixture.ts +121 -0
- package/src/implementation/world/observer-contained.test-helper.ts +42 -0
- package/src/implementation/world/observer-contained.test.ts +88 -0
- package/src/implementation/world/observer-joined-worker.fixture.ts +81 -0
- package/src/implementation/world/observer-joined.cases.ts +29 -0
- package/src/implementation/world/observer-joined.fixture.ts +288 -0
- package/src/implementation/world/observer-joined.test-helper.ts +171 -0
- package/src/implementation/world/observer-joined.test.ts +366 -0
- package/src/implementation/world/observer.browser.test.ts +73 -0
- package/src/implementation/world/observer.test.ts +291 -0
- package/src/implementation/world/observer.ts +139 -0
- package/src/implementation/world/optional-workers.cases.ts +19 -0
- package/src/implementation/world/optional-workers.fixture.ts +55 -0
- package/src/implementation/world/optional.test.ts +351 -0
- package/src/implementation/world/order.ts +352 -0
- package/src/implementation/world/out-of-band.ts +61 -0
- package/src/implementation/world/outcomes.test-helper.ts +138 -0
- package/src/implementation/world/package-id.test-helper.ts +9 -0
- package/src/implementation/world/perf.md +476 -0
- package/src/implementation/world/plan.md +81 -0
- package/src/implementation/world/plan.ts +72 -0
- package/src/implementation/world/platforms.test-helper.ts +68 -0
- package/src/implementation/world/pool-size.cases.ts +41 -0
- package/src/implementation/world/pool-size.fixture.ts +158 -0
- package/src/implementation/world/pool.cases.ts +31 -0
- package/src/implementation/world/pool.fixture.ts +55 -0
- package/src/implementation/world/pool.ts +324 -0
- package/src/implementation/world/port.test.ts +45 -0
- package/src/implementation/world/port.ts +148 -0
- package/src/implementation/world/ports.cases.ts +37 -0
- package/src/implementation/world/ports.fixture.ts +106 -0
- package/src/implementation/world/ports.type-test.ts +15 -0
- package/src/implementation/world/precision.test.ts +174 -0
- package/src/implementation/world/prepared-lookup.ts +96 -0
- package/src/implementation/world/prepared-spawn.ts +165 -0
- package/src/implementation/world/program.ts +14 -0
- package/src/implementation/world/protocol.ts +134 -0
- package/src/implementation/world/publish.ts +29 -0
- package/src/implementation/world/ranges.test.ts +66 -0
- package/src/implementation/world/ranges.ts +110 -0
- package/src/implementation/world/reads.test-helper.ts +30 -0
- package/src/implementation/world/reclaim.test.ts +214 -0
- package/src/implementation/world/reclaim.ts +170 -0
- package/src/implementation/world/reductions.cases.ts +23 -0
- package/src/implementation/world/reductions.fixture.ts +60 -0
- package/src/implementation/world/reductions.test.ts +266 -0
- package/src/implementation/world/reductions.ts +107 -0
- package/src/implementation/world/reevaluation.test-helper.ts +16 -0
- package/src/implementation/world/reevaluation.test.ts +33 -0
- package/src/implementation/world/register.ts +413 -0
- package/src/implementation/world/remote-finalizers-worker.fixture.ts +59 -0
- package/src/implementation/world/remote-finalizers.cases.ts +42 -0
- package/src/implementation/world/remote-finalizers.fixture.ts +215 -0
- package/src/implementation/world/remote-finalizers.test-helper.ts +252 -0
- package/src/implementation/world/remote-finalizers.test.ts +254 -0
- package/src/implementation/world/remote-objects-worker.fixture.ts +21 -0
- package/src/implementation/world/remote-objects.cases.ts +17 -0
- package/src/implementation/world/remote-objects.fixture.ts +61 -0
- package/src/implementation/world/remote-objects.test-helper.ts +106 -0
- package/src/implementation/world/remote-systems.ts +641 -0
- package/src/implementation/world/remote.test.ts +184 -0
- package/src/implementation/world/remote.ts +126 -0
- package/src/implementation/world/removal-worker.fixture.ts +21 -0
- package/src/implementation/world/removal.cases.ts +17 -0
- package/src/implementation/world/removal.fixture.ts +96 -0
- package/src/implementation/world/remove-joined.test.ts +182 -0
- package/src/implementation/world/remove.test-helper.ts +82 -0
- package/src/implementation/world/remove.test.ts +191 -0
- package/src/implementation/world/render-order.browser.test.ts +209 -0
- package/src/implementation/world/render-order.ts +150 -0
- package/src/implementation/world/required.ts +10 -0
- package/src/implementation/world/resources.ts +71 -0
- package/src/implementation/world/rows.test.ts +75 -0
- package/src/implementation/world/rows.ts +584 -0
- package/src/implementation/world/rules.test.ts +242 -0
- package/src/implementation/world/run-results.test.ts +374 -0
- package/src/implementation/world/runner.ts +1379 -0
- package/src/implementation/world/schedule.test.ts +122 -0
- package/src/implementation/world/semantics.test.ts +95 -0
- package/src/implementation/world/share.test.ts +18 -0
- package/src/implementation/world/shared-gpu.browser.test.ts +109 -0
- package/src/implementation/world/shared-kernels.test.ts +117 -0
- package/src/implementation/world/shared-workers.cases.ts +20 -0
- package/src/implementation/world/shared-workers.fixture.ts +74 -0
- package/src/implementation/world/shared.test.ts +348 -0
- package/src/implementation/world/shared.ts +316 -0
- package/src/implementation/world/sharing.ts +652 -0
- package/src/implementation/world/staging.ts +239 -0
- package/src/implementation/world/state.ts +678 -0
- package/src/implementation/world/stop-lists.ts +377 -0
- package/src/implementation/world/strings.test.ts +189 -0
- package/src/implementation/world/strings.ts +247 -0
- package/src/implementation/world/structure.ts +74 -0
- package/src/implementation/world/synchronize.test.ts +55 -0
- package/src/implementation/world/synchronize.ts +805 -0
- package/src/implementation/world/tail-blocks.ts +79 -0
- package/src/implementation/world/tails-worker.fixture.ts +62 -0
- package/src/implementation/world/tails.cases.ts +45 -0
- package/src/implementation/world/tails.fixture.ts +257 -0
- package/src/implementation/world/tails.test-helper.ts +173 -0
- package/src/implementation/world/tails.test.ts +109 -0
- package/src/implementation/world/tails.ts +490 -0
- package/src/implementation/world/target.test.ts +70 -0
- package/src/implementation/world/terminal.ts +14 -0
- package/src/implementation/world/thread-directory.ts +279 -0
- package/src/implementation/world/thread-finalizers.ts +424 -0
- package/src/implementation/world/thread-indexes.ts +92 -0
- package/src/implementation/world/thread-observer.ts +281 -0
- package/src/implementation/world/thread-systems-worker.fixture.ts +69 -0
- package/src/implementation/world/thread-systems.cases.ts +54 -0
- package/src/implementation/world/thread-systems.fixture.ts +234 -0
- package/src/implementation/world/thread-systems.test-helper.ts +330 -0
- package/src/implementation/world/thread-systems.test.ts +145 -0
- package/src/implementation/world/thread-systems.ts +1514 -0
- package/src/implementation/world/thread-tasks.ts +80 -0
- package/src/implementation/world/threads.browser.test.ts +51 -0
- package/src/implementation/world/threads.test.ts +83 -0
- package/src/implementation/world/ticks.browser.test.ts +43 -0
- package/src/implementation/world/ticks.test.ts +34 -0
- package/src/implementation/world/traits.test.ts +62 -0
- package/src/implementation/world/transfers-worker.fixture.ts +119 -0
- package/src/implementation/world/transfers.cases.ts +31 -0
- package/src/implementation/world/transfers.fixture.ts +140 -0
- package/src/implementation/world/transfers.test-helper.ts +101 -0
- package/src/implementation/world/transfers.test.ts +153 -0
- package/src/implementation/world/transfers.ts +105 -0
- package/src/implementation/world/unidentified-finalizers.test.ts +58 -0
- package/src/implementation/world/up-tree.test.ts +312 -0
- package/src/implementation/world/up-workers.cases.ts +14 -0
- package/src/implementation/world/up-workers.fixture.ts +63 -0
- package/src/implementation/world/up.browser.test.ts +75 -0
- package/src/implementation/world/up.test.ts +298 -0
- package/src/implementation/world/up.ts +912 -0
- package/src/implementation/world/wasm-kernels.test.ts +275 -0
- package/src/implementation/world/wasm.test.ts +559 -0
- package/src/implementation/world/wasm.ts +2365 -0
- package/src/implementation/world/wgsl.test.ts +42 -0
- package/src/implementation/world/wgsl.ts +481 -0
- package/src/implementation/world/where.test.ts +342 -0
- package/src/implementation/world/where.ts +236 -0
- package/src/implementation/world/worker-platform.ts +106 -0
- package/src/implementation/world/worker-window.test.ts +43 -0
- package/src/implementation/world/worker-window.ts +43 -0
- package/src/implementation/world/worker.ts +548 -0
- package/src/implementation/world/workers-follow.test.ts +51 -0
- package/src/implementation/world/workers.cases.ts +60 -0
- package/src/implementation/world/workers.fixture.ts +238 -0
- package/src/implementation/world/world-host.fixture.ts +11 -0
- package/src/index.ts +21 -0
- package/src/interface/CLAUDE.md +33 -0
- package/src/interface/component/component.ts +5 -0
- package/src/interface/component/index.ts +3 -0
- package/src/interface/component/key.ts +4 -0
- package/src/interface/component/key.type-test.ts +30 -0
- package/src/interface/component/register.test.ts +117 -0
- package/src/interface/component/types.ts +7 -0
- package/src/interface/component/value.ts +41 -0
- package/src/interface/component/values.ts +6 -0
- package/src/interface/entity/entity.ts +10 -0
- package/src/interface/entity/index.ts +12 -0
- package/src/interface/finalizer/body.ts +52 -0
- package/src/interface/finalizer/create.test.ts +143 -0
- package/src/interface/finalizer/create.ts +158 -0
- package/src/interface/finalizer/created.ts +22 -0
- package/src/interface/finalizer/declaration.ts +48 -0
- package/src/interface/finalizer/finalizer.ts +8 -0
- package/src/interface/finalizer/index.ts +2 -0
- package/src/interface/gpu/accessors.ts +90 -0
- package/src/interface/gpu/gpu.ts +5 -0
- package/src/interface/gpu/gpu.type-test.ts +27 -0
- package/src/interface/gpu/index.ts +3 -0
- package/src/interface/gpu/layout.ts +23 -0
- package/src/interface/gpu/record.ts +6 -0
- package/src/interface/gpu/wgsl.ts +23 -0
- package/src/interface/index.ts +17 -0
- package/src/interface/index.type-test.ts +52 -0
- package/src/interface/indexes/create.test.ts +146 -0
- package/src/interface/indexes/create.ts +88 -0
- package/src/interface/indexes/created.ts +5 -0
- package/src/interface/indexes/declaration.ts +15 -0
- package/src/interface/indexes/index-type.ts +13 -0
- package/src/interface/indexes/index.ts +2 -0
- package/src/interface/indexes/index.type-test.ts +244 -0
- package/src/interface/math/f32/default.ts +6 -0
- package/src/interface/math/f32/index.ts +7 -0
- package/src/interface/math/f32/public.ts +3 -0
- package/src/interface/math/f32/round-half-even.ts +6 -0
- package/src/interface/math/f32/schema.ts +4 -0
- package/src/interface/math/i32/default.ts +6 -0
- package/src/interface/math/i32/index.ts +8 -0
- package/src/interface/math/i32/public.ts +4 -0
- package/src/interface/math/i32/schema.ts +4 -0
- package/src/interface/math/i32/shift-right.ts +4 -0
- package/src/interface/math/index.ts +9 -0
- package/src/interface/math/intrinsic.ts +19 -0
- package/src/interface/math/mat4x4/add.ts +10 -0
- package/src/interface/math/mat4x4/determinant.ts +27 -0
- package/src/interface/math/mat4x4/identity.ts +9 -0
- package/src/interface/math/mat4x4/index.ts +29 -0
- package/src/interface/math/mat4x4/inverse.ts +50 -0
- package/src/interface/math/mat4x4/look-at.test.ts +14 -0
- package/src/interface/math/mat4x4/look-at.ts +27 -0
- package/src/interface/math/mat4x4/multiply-vec3.ts +9 -0
- package/src/interface/math/mat4x4/multiply-vec4.ts +11 -0
- package/src/interface/math/mat4x4/multiply.ts +23 -0
- package/src/interface/math/mat4x4/orthographic.ts +21 -0
- package/src/interface/math/mat4x4/perspective.ts +21 -0
- package/src/interface/math/mat4x4/public.ts +22 -0
- package/src/interface/math/mat4x4/rotation-x.ts +13 -0
- package/src/interface/math/mat4x4/rotation-y.ts +13 -0
- package/src/interface/math/mat4x4/rotation-z.ts +13 -0
- package/src/interface/math/mat4x4/rotation.test.ts +17 -0
- package/src/interface/math/mat4x4/scale.ts +10 -0
- package/src/interface/math/mat4x4/scaling.ts +9 -0
- package/src/interface/math/mat4x4/schema.ts +5 -0
- package/src/interface/math/mat4x4/subtract.ts +10 -0
- package/src/interface/math/mat4x4/translation.ts +9 -0
- package/src/interface/math/mat4x4/transpose.ts +10 -0
- package/src/interface/math/mat4x4/zero.ts +9 -0
- package/src/interface/math/math.type-test.ts +43 -0
- package/src/interface/math/quat/add.ts +10 -0
- package/src/interface/math/quat/align-to.ts +45 -0
- package/src/interface/math/quat/conjugate.ts +4 -0
- package/src/interface/math/quat/distance.ts +6 -0
- package/src/interface/math/quat/dot.ts +6 -0
- package/src/interface/math/quat/from-axis-angle.ts +15 -0
- package/src/interface/math/quat/from-euler.ts +18 -0
- package/src/interface/math/quat/identity.ts +4 -0
- package/src/interface/math/quat/index.ts +7 -0
- package/src/interface/math/quat/inverse.ts +11 -0
- package/src/interface/math/quat/length-squared.ts +4 -0
- package/src/interface/math/quat/length.ts +5 -0
- package/src/interface/math/quat/lerp.ts +9 -0
- package/src/interface/math/quat/look-at.ts +53 -0
- package/src/interface/math/quat/multiply.ts +9 -0
- package/src/interface/math/quat/negate.ts +5 -0
- package/src/interface/math/quat/normalize.ts +9 -0
- package/src/interface/math/quat/public.ts +26 -0
- package/src/interface/math/quat/rotate-vec3.ts +17 -0
- package/src/interface/math/quat/scale.ts +5 -0
- package/src/interface/math/quat/schema.ts +5 -0
- package/src/interface/math/quat/slerp.ts +27 -0
- package/src/interface/math/quat/subtract.ts +10 -0
- package/src/interface/math/quat/to-axis-angle.ts +15 -0
- package/src/interface/math/quat/to-euler.ts +26 -0
- package/src/interface/math/quat/to-mat4.ts +28 -0
- package/src/interface/math/semantics.test.ts +51 -0
- package/src/interface/math/u32/count-leading-zeros.ts +5 -0
- package/src/interface/math/u32/count-one-bits.ts +11 -0
- package/src/interface/math/u32/count-trailing-zeros.ts +8 -0
- package/src/interface/math/u32/default.ts +6 -0
- package/src/interface/math/u32/index.ts +8 -0
- package/src/interface/math/u32/public.ts +8 -0
- package/src/interface/math/u32/reverse-bits.ts +12 -0
- package/src/interface/math/u32/schema.ts +4 -0
- package/src/interface/math/u32/shift-right.ts +4 -0
- package/src/interface/math/vec2/f32/abs.ts +5 -0
- package/src/interface/math/vec2/f32/acos.ts +5 -0
- package/src/interface/math/vec2/f32/acosh.ts +5 -0
- package/src/interface/math/vec2/f32/add.ts +5 -0
- package/src/interface/math/vec2/f32/asin.ts +5 -0
- package/src/interface/math/vec2/f32/asinh.ts +5 -0
- package/src/interface/math/vec2/f32/atan.ts +5 -0
- package/src/interface/math/vec2/f32/atanh.ts +5 -0
- package/src/interface/math/vec2/f32/ceil.ts +5 -0
- package/src/interface/math/vec2/f32/clamp.ts +7 -0
- package/src/interface/math/vec2/f32/cos.ts +5 -0
- package/src/interface/math/vec2/f32/cosh.ts +5 -0
- package/src/interface/math/vec2/f32/distance.ts +7 -0
- package/src/interface/math/vec2/f32/dot.ts +5 -0
- package/src/interface/math/vec2/f32/equals.ts +4 -0
- package/src/interface/math/vec2/f32/exp.ts +5 -0
- package/src/interface/math/vec2/f32/exp2.ts +5 -0
- package/src/interface/math/vec2/f32/f32.ts +7 -0
- package/src/interface/math/vec2/f32/faceforward.ts +8 -0
- package/src/interface/math/vec2/f32/floor.ts +5 -0
- package/src/interface/math/vec2/f32/fract.ts +5 -0
- package/src/interface/math/vec2/f32/length.ts +5 -0
- package/src/interface/math/vec2/f32/log.ts +5 -0
- package/src/interface/math/vec2/f32/log2.ts +5 -0
- package/src/interface/math/vec2/f32/max.ts +5 -0
- package/src/interface/math/vec2/f32/min.ts +5 -0
- package/src/interface/math/vec2/f32/mix.ts +8 -0
- package/src/interface/math/vec2/f32/mod.ts +4 -0
- package/src/interface/math/vec2/f32/modf.ts +8 -0
- package/src/interface/math/vec2/f32/negate.ts +5 -0
- package/src/interface/math/vec2/f32/normalize.ts +7 -0
- package/src/interface/math/vec2/f32/pow.ts +9 -0
- package/src/interface/math/vec2/f32/public.ts +49 -0
- package/src/interface/math/vec2/f32/reflect.ts +11 -0
- package/src/interface/math/vec2/f32/refract.ts +16 -0
- package/src/interface/math/vec2/f32/round.ts +6 -0
- package/src/interface/math/vec2/f32/scale.ts +5 -0
- package/src/interface/math/vec2/f32/schema.ts +5 -0
- package/src/interface/math/vec2/f32/sign.ts +5 -0
- package/src/interface/math/vec2/f32/sin.ts +5 -0
- package/src/interface/math/vec2/f32/sinh.ts +5 -0
- package/src/interface/math/vec2/f32/smoothstep.ts +9 -0
- package/src/interface/math/vec2/f32/sqrt.ts +5 -0
- package/src/interface/math/vec2/f32/step.ts +8 -0
- package/src/interface/math/vec2/f32/subtract.ts +5 -0
- package/src/interface/math/vec2/f32/tan.ts +5 -0
- package/src/interface/math/vec2/f32/tanh.ts +5 -0
- package/src/interface/math/vec2/f32/trunc.ts +5 -0
- package/src/interface/math/vec2/f32/zero.ts +4 -0
- package/src/interface/math/vec2/i32/abs.ts +5 -0
- package/src/interface/math/vec2/i32/add.ts +5 -0
- package/src/interface/math/vec2/i32/bitwise-and.ts +5 -0
- package/src/interface/math/vec2/i32/bitwise-not.ts +5 -0
- package/src/interface/math/vec2/i32/bitwise-or.ts +5 -0
- package/src/interface/math/vec2/i32/bitwise-xor.ts +5 -0
- package/src/interface/math/vec2/i32/clamp.ts +7 -0
- package/src/interface/math/vec2/i32/count-leading-zeros.ts +9 -0
- package/src/interface/math/vec2/i32/count-one-bits.ts +9 -0
- package/src/interface/math/vec2/i32/count-trailing-zeros.ts +9 -0
- package/src/interface/math/vec2/i32/equals.ts +4 -0
- package/src/interface/math/vec2/i32/i32.ts +8 -0
- package/src/interface/math/vec2/i32/max.ts +5 -0
- package/src/interface/math/vec2/i32/min.ts +5 -0
- package/src/interface/math/vec2/i32/negate.ts +5 -0
- package/src/interface/math/vec2/i32/public.ts +23 -0
- package/src/interface/math/vec2/i32/reverse-bits.ts +6 -0
- package/src/interface/math/vec2/i32/scale.ts +6 -0
- package/src/interface/math/vec2/i32/schema.ts +5 -0
- package/src/interface/math/vec2/i32/shift-left.ts +4 -0
- package/src/interface/math/vec2/i32/shift-right.ts +8 -0
- package/src/interface/math/vec2/i32/subtract.ts +5 -0
- package/src/interface/math/vec2/i32/zero.ts +4 -0
- package/src/interface/math/vec2/index.ts +7 -0
- package/src/interface/math/vec2/public.ts +6 -0
- package/src/interface/math/vec2/u32/add.ts +8 -0
- package/src/interface/math/vec2/u32/bitwise-and.ts +8 -0
- package/src/interface/math/vec2/u32/bitwise-not.ts +5 -0
- package/src/interface/math/vec2/u32/bitwise-or.ts +8 -0
- package/src/interface/math/vec2/u32/bitwise-xor.ts +8 -0
- package/src/interface/math/vec2/u32/clamp.ts +7 -0
- package/src/interface/math/vec2/u32/count-leading-zeros.ts +9 -0
- package/src/interface/math/vec2/u32/count-one-bits.ts +9 -0
- package/src/interface/math/vec2/u32/count-trailing-zeros.ts +9 -0
- package/src/interface/math/vec2/u32/equals.ts +4 -0
- package/src/interface/math/vec2/u32/max.ts +8 -0
- package/src/interface/math/vec2/u32/min.ts +8 -0
- package/src/interface/math/vec2/u32/negate.ts +4 -0
- package/src/interface/math/vec2/u32/public.ts +22 -0
- package/src/interface/math/vec2/u32/reverse-bits.ts +9 -0
- package/src/interface/math/vec2/u32/scale.ts +6 -0
- package/src/interface/math/vec2/u32/schema.ts +5 -0
- package/src/interface/math/vec2/u32/shift-left.ts +4 -0
- package/src/interface/math/vec2/u32/shift-right.ts +8 -0
- package/src/interface/math/vec2/u32/subtract.ts +8 -0
- package/src/interface/math/vec2/u32/u32.ts +8 -0
- package/src/interface/math/vec2/u32/zero.ts +4 -0
- package/src/interface/math/vec3/f32/abs.ts +5 -0
- package/src/interface/math/vec3/f32/acos.ts +5 -0
- package/src/interface/math/vec3/f32/acosh.ts +5 -0
- package/src/interface/math/vec3/f32/add.ts +9 -0
- package/src/interface/math/vec3/f32/asin.ts +5 -0
- package/src/interface/math/vec3/f32/asinh.ts +5 -0
- package/src/interface/math/vec3/f32/atan.ts +5 -0
- package/src/interface/math/vec3/f32/atanh.ts +5 -0
- package/src/interface/math/vec3/f32/ceil.ts +5 -0
- package/src/interface/math/vec3/f32/clamp.ts +7 -0
- package/src/interface/math/vec3/f32/cos.ts +5 -0
- package/src/interface/math/vec3/f32/cosh.ts +5 -0
- package/src/interface/math/vec3/f32/cross.ts +9 -0
- package/src/interface/math/vec3/f32/distance-squared.ts +9 -0
- package/src/interface/math/vec3/f32/distance.ts +7 -0
- package/src/interface/math/vec3/f32/dot.ts +6 -0
- package/src/interface/math/vec3/f32/equals.ts +4 -0
- package/src/interface/math/vec3/f32/exp.ts +5 -0
- package/src/interface/math/vec3/f32/exp2.ts +5 -0
- package/src/interface/math/vec3/f32/f32.ts +7 -0
- package/src/interface/math/vec3/f32/faceforward.ts +8 -0
- package/src/interface/math/vec3/f32/floor.ts +5 -0
- package/src/interface/math/vec3/f32/fract.ts +9 -0
- package/src/interface/math/vec3/f32/length-squared.ts +5 -0
- package/src/interface/math/vec3/f32/length.ts +5 -0
- package/src/interface/math/vec3/f32/log.ts +5 -0
- package/src/interface/math/vec3/f32/log2.ts +5 -0
- package/src/interface/math/vec3/f32/max.ts +9 -0
- package/src/interface/math/vec3/f32/min.ts +9 -0
- package/src/interface/math/vec3/f32/mix.ts +9 -0
- package/src/interface/math/vec3/f32/mod.ts +8 -0
- package/src/interface/math/vec3/f32/modf.ts +8 -0
- package/src/interface/math/vec3/f32/multiply.ts +12 -0
- package/src/interface/math/vec3/f32/negate.ts +5 -0
- package/src/interface/math/vec3/f32/normalize.ts +7 -0
- package/src/interface/math/vec3/f32/one.ts +4 -0
- package/src/interface/math/vec3/f32/pow.ts +10 -0
- package/src/interface/math/vec3/f32/public.ts +55 -0
- package/src/interface/math/vec3/f32/random.ts +6 -0
- package/src/interface/math/vec3/f32/reflect.ts +11 -0
- package/src/interface/math/vec3/f32/refract.ts +16 -0
- package/src/interface/math/vec3/f32/round.ts +10 -0
- package/src/interface/math/vec3/f32/scale.ts +5 -0
- package/src/interface/math/vec3/f32/schema.ts +5 -0
- package/src/interface/math/vec3/f32/sign.ts +5 -0
- package/src/interface/math/vec3/f32/sin.ts +5 -0
- package/src/interface/math/vec3/f32/sinh.ts +5 -0
- package/src/interface/math/vec3/f32/smoothstep.ts +14 -0
- package/src/interface/math/vec3/f32/sqrt.ts +5 -0
- package/src/interface/math/vec3/f32/step.ts +9 -0
- package/src/interface/math/vec3/f32/subtract.ts +9 -0
- package/src/interface/math/vec3/f32/tan.ts +5 -0
- package/src/interface/math/vec3/f32/tanh.ts +5 -0
- package/src/interface/math/vec3/f32/trunc.ts +5 -0
- package/src/interface/math/vec3/f32/zero.ts +4 -0
- package/src/interface/math/vec3/i32/abs.ts +9 -0
- package/src/interface/math/vec3/i32/add.ts +9 -0
- package/src/interface/math/vec3/i32/bitwise-and.ts +9 -0
- package/src/interface/math/vec3/i32/bitwise-not.ts +5 -0
- package/src/interface/math/vec3/i32/bitwise-or.ts +9 -0
- package/src/interface/math/vec3/i32/bitwise-xor.ts +9 -0
- package/src/interface/math/vec3/i32/clamp.ts +7 -0
- package/src/interface/math/vec3/i32/count-leading-zeros.ts +10 -0
- package/src/interface/math/vec3/i32/count-one-bits.ts +10 -0
- package/src/interface/math/vec3/i32/count-trailing-zeros.ts +10 -0
- package/src/interface/math/vec3/i32/equals.ts +4 -0
- package/src/interface/math/vec3/i32/i32.ts +8 -0
- package/src/interface/math/vec3/i32/max.ts +9 -0
- package/src/interface/math/vec3/i32/min.ts +9 -0
- package/src/interface/math/vec3/i32/multiply.ts +9 -0
- package/src/interface/math/vec3/i32/negate.ts +9 -0
- package/src/interface/math/vec3/i32/one.ts +4 -0
- package/src/interface/math/vec3/i32/public.ts +25 -0
- package/src/interface/math/vec3/i32/reverse-bits.ts +10 -0
- package/src/interface/math/vec3/i32/scale.ts +10 -0
- package/src/interface/math/vec3/i32/schema.ts +5 -0
- package/src/interface/math/vec3/i32/shift-left.ts +4 -0
- package/src/interface/math/vec3/i32/shift-right.ts +9 -0
- package/src/interface/math/vec3/i32/subtract.ts +9 -0
- package/src/interface/math/vec3/i32/zero.ts +4 -0
- package/src/interface/math/vec3/index.ts +7 -0
- package/src/interface/math/vec3/public.ts +6 -0
- package/src/interface/math/vec3/u32/add.ts +9 -0
- package/src/interface/math/vec3/u32/bitwise-and.ts +9 -0
- package/src/interface/math/vec3/u32/bitwise-not.ts +5 -0
- package/src/interface/math/vec3/u32/bitwise-or.ts +9 -0
- package/src/interface/math/vec3/u32/bitwise-xor.ts +9 -0
- package/src/interface/math/vec3/u32/clamp.ts +7 -0
- package/src/interface/math/vec3/u32/count-leading-zeros.ts +10 -0
- package/src/interface/math/vec3/u32/count-one-bits.ts +10 -0
- package/src/interface/math/vec3/u32/count-trailing-zeros.ts +10 -0
- package/src/interface/math/vec3/u32/equals.ts +4 -0
- package/src/interface/math/vec3/u32/max.ts +9 -0
- package/src/interface/math/vec3/u32/min.ts +9 -0
- package/src/interface/math/vec3/u32/multiply.ts +9 -0
- package/src/interface/math/vec3/u32/negate.ts +4 -0
- package/src/interface/math/vec3/u32/one.ts +4 -0
- package/src/interface/math/vec3/u32/public.ts +25 -0
- package/src/interface/math/vec3/u32/reverse-bits.ts +10 -0
- package/src/interface/math/vec3/u32/scale.ts +10 -0
- package/src/interface/math/vec3/u32/schema.ts +5 -0
- package/src/interface/math/vec3/u32/shift-left.ts +8 -0
- package/src/interface/math/vec3/u32/shift-right.ts +9 -0
- package/src/interface/math/vec3/u32/subtract.ts +9 -0
- package/src/interface/math/vec3/u32/u32.ts +8 -0
- package/src/interface/math/vec3/u32/volume.ts +4 -0
- package/src/interface/math/vec3/u32/zero.ts +4 -0
- package/src/interface/math/vec4/f32/abs.ts +5 -0
- package/src/interface/math/vec4/f32/acos.ts +5 -0
- package/src/interface/math/vec4/f32/acosh.ts +5 -0
- package/src/interface/math/vec4/f32/add.ts +10 -0
- package/src/interface/math/vec4/f32/asin.ts +5 -0
- package/src/interface/math/vec4/f32/asinh.ts +5 -0
- package/src/interface/math/vec4/f32/atan.ts +5 -0
- package/src/interface/math/vec4/f32/atanh.ts +5 -0
- package/src/interface/math/vec4/f32/ceil.ts +5 -0
- package/src/interface/math/vec4/f32/clamp.ts +7 -0
- package/src/interface/math/vec4/f32/cos.ts +5 -0
- package/src/interface/math/vec4/f32/cosh.ts +5 -0
- package/src/interface/math/vec4/f32/default.ts +6 -0
- package/src/interface/math/vec4/f32/distance.ts +7 -0
- package/src/interface/math/vec4/f32/dot.ts +6 -0
- package/src/interface/math/vec4/f32/exp.ts +5 -0
- package/src/interface/math/vec4/f32/exp2.ts +5 -0
- package/src/interface/math/vec4/f32/f32.ts +7 -0
- package/src/interface/math/vec4/f32/faceforward.ts +8 -0
- package/src/interface/math/vec4/f32/floor.ts +5 -0
- package/src/interface/math/vec4/f32/fract.ts +10 -0
- package/src/interface/math/vec4/f32/length.ts +5 -0
- package/src/interface/math/vec4/f32/log.ts +5 -0
- package/src/interface/math/vec4/f32/log2.ts +5 -0
- package/src/interface/math/vec4/f32/max.ts +10 -0
- package/src/interface/math/vec4/f32/min.ts +10 -0
- package/src/interface/math/vec4/f32/mix.ts +10 -0
- package/src/interface/math/vec4/f32/mod.ts +9 -0
- package/src/interface/math/vec4/f32/modf.ts +8 -0
- package/src/interface/math/vec4/f32/multiply.ts +10 -0
- package/src/interface/math/vec4/f32/negate.ts +5 -0
- package/src/interface/math/vec4/f32/normalize.ts +7 -0
- package/src/interface/math/vec4/f32/pow.ts +11 -0
- package/src/interface/math/vec4/f32/public.ts +48 -0
- package/src/interface/math/vec4/f32/reflect.ts +11 -0
- package/src/interface/math/vec4/f32/refract.ts +16 -0
- package/src/interface/math/vec4/f32/round.ts +11 -0
- package/src/interface/math/vec4/f32/scale.ts +5 -0
- package/src/interface/math/vec4/f32/schema.ts +5 -0
- package/src/interface/math/vec4/f32/sign.ts +5 -0
- package/src/interface/math/vec4/f32/sin.ts +5 -0
- package/src/interface/math/vec4/f32/sinh.ts +5 -0
- package/src/interface/math/vec4/f32/smoothstep.ts +16 -0
- package/src/interface/math/vec4/f32/sqrt.ts +5 -0
- package/src/interface/math/vec4/f32/step.ts +10 -0
- package/src/interface/math/vec4/f32/subtract.ts +10 -0
- package/src/interface/math/vec4/f32/tan.ts +5 -0
- package/src/interface/math/vec4/f32/tanh.ts +5 -0
- package/src/interface/math/vec4/f32/trunc.ts +5 -0
- package/src/interface/math/vec4/i32/abs.ts +10 -0
- package/src/interface/math/vec4/i32/add.ts +10 -0
- package/src/interface/math/vec4/i32/bitwise-and.ts +10 -0
- package/src/interface/math/vec4/i32/bitwise-not.ts +5 -0
- package/src/interface/math/vec4/i32/bitwise-or.ts +10 -0
- package/src/interface/math/vec4/i32/bitwise-xor.ts +10 -0
- package/src/interface/math/vec4/i32/clamp.ts +7 -0
- package/src/interface/math/vec4/i32/count-leading-zeros.ts +11 -0
- package/src/interface/math/vec4/i32/count-one-bits.ts +11 -0
- package/src/interface/math/vec4/i32/count-trailing-zeros.ts +11 -0
- package/src/interface/math/vec4/i32/equals.ts +5 -0
- package/src/interface/math/vec4/i32/i32.ts +8 -0
- package/src/interface/math/vec4/i32/max.ts +10 -0
- package/src/interface/math/vec4/i32/min.ts +10 -0
- package/src/interface/math/vec4/i32/multiply.ts +10 -0
- package/src/interface/math/vec4/i32/negate.ts +10 -0
- package/src/interface/math/vec4/i32/one.ts +4 -0
- package/src/interface/math/vec4/i32/public.ts +25 -0
- package/src/interface/math/vec4/i32/reverse-bits.ts +11 -0
- package/src/interface/math/vec4/i32/scale.ts +11 -0
- package/src/interface/math/vec4/i32/schema.ts +5 -0
- package/src/interface/math/vec4/i32/shift-left.ts +4 -0
- package/src/interface/math/vec4/i32/shift-right.ts +10 -0
- package/src/interface/math/vec4/i32/subtract.ts +10 -0
- package/src/interface/math/vec4/i32/zero.ts +4 -0
- package/src/interface/math/vec4/index.ts +7 -0
- package/src/interface/math/vec4/public.ts +6 -0
- package/src/interface/math/vec4/u32/add.ts +10 -0
- package/src/interface/math/vec4/u32/bitwise-and.ts +10 -0
- package/src/interface/math/vec4/u32/bitwise-not.ts +5 -0
- package/src/interface/math/vec4/u32/bitwise-or.ts +10 -0
- package/src/interface/math/vec4/u32/bitwise-xor.ts +10 -0
- package/src/interface/math/vec4/u32/clamp.ts +7 -0
- package/src/interface/math/vec4/u32/count-leading-zeros.ts +11 -0
- package/src/interface/math/vec4/u32/count-one-bits.ts +11 -0
- package/src/interface/math/vec4/u32/count-trailing-zeros.ts +11 -0
- package/src/interface/math/vec4/u32/equals.ts +5 -0
- package/src/interface/math/vec4/u32/max.ts +10 -0
- package/src/interface/math/vec4/u32/min.ts +10 -0
- package/src/interface/math/vec4/u32/multiply.ts +10 -0
- package/src/interface/math/vec4/u32/negate.ts +4 -0
- package/src/interface/math/vec4/u32/one.ts +4 -0
- package/src/interface/math/vec4/u32/public.ts +24 -0
- package/src/interface/math/vec4/u32/reverse-bits.ts +11 -0
- package/src/interface/math/vec4/u32/scale.ts +11 -0
- package/src/interface/math/vec4/u32/schema.ts +5 -0
- package/src/interface/math/vec4/u32/shift-left.ts +9 -0
- package/src/interface/math/vec4/u32/shift-right.ts +10 -0
- package/src/interface/math/vec4/u32/subtract.ts +10 -0
- package/src/interface/math/vec4/u32/u32.ts +8 -0
- package/src/interface/math/vec4/u32/zero.ts +4 -0
- package/src/interface/platform/platform.ts +36 -0
- package/src/interface/registry/archetypes.test.ts +50 -0
- package/src/interface/registry/archetypes.ts +59 -0
- package/src/interface/registry/declarations.ts +196 -0
- package/src/interface/registry/declared.test.ts +40 -0
- package/src/interface/registry/finalizer-order.ts +53 -0
- package/src/interface/registry/ids.test-helper.ts +48 -0
- package/src/interface/registry/ids.test.ts +111 -0
- package/src/interface/registry/ids.ts +76 -0
- package/src/interface/registry/index.ts +30 -0
- package/src/interface/registry/indexes.ts +74 -0
- package/src/interface/registry/items.ts +95 -0
- package/src/interface/registry/layout.test.ts +106 -0
- package/src/interface/registry/layout.ts +372 -0
- package/src/interface/registry/names.test.ts +73 -0
- package/src/interface/registry/names.ts +174 -0
- package/src/interface/registry/program.ts +112 -0
- package/src/interface/registry/reduction.ts +8 -0
- package/src/interface/registry/schedule.ts +211 -0
- package/src/interface/registry/schemas.ts +119 -0
- package/src/interface/registry/strata.ts +94 -0
- package/src/interface/registry/threads.ts +74 -0
- package/src/interface/registry/traits.ts +13 -0
- package/src/interface/registry/written.ts +15 -0
- package/src/interface/resource/condition.ts +9 -0
- package/src/interface/resource/index.ts +3 -0
- package/src/interface/resource/key.ts +4 -0
- package/src/interface/resource/reduction.ts +12 -0
- package/src/interface/resource/register.test.ts +93 -0
- package/src/interface/resource/resource.ts +5 -0
- package/src/interface/resource/types.ts +7 -0
- package/src/interface/resource/value.ts +21 -0
- package/src/interface/resource/written.ts +5 -0
- package/src/interface/resources/always.ts +13 -0
- package/src/interface/resources/cadence.ts +28 -0
- package/src/interface/resources/clock.ts +19 -0
- package/src/interface/resources/gpu-device.ts +17 -0
- package/src/interface/resources/index.ts +7 -0
- package/src/interface/resources/wake.ts +16 -0
- package/src/interface/resources/workers.ts +13 -0
- package/src/interface/rule/create.ts +27 -0
- package/src/interface/rule/created.ts +5 -0
- package/src/interface/rule/declaration.ts +15 -0
- package/src/interface/rule/index.ts +2 -0
- package/src/interface/rule/rule.ts +4 -0
- package/src/interface/rule/rule.type-test.ts +107 -0
- package/src/interface/schema/is-struct.ts +36 -0
- package/src/interface/schema/schema.ts +190 -0
- package/src/interface/schema/schema.type-test.ts +155 -0
- package/src/interface/schema/schemas.type-test.ts +13 -0
- package/src/interface/system/access.ts +107 -0
- package/src/interface/system/body.ts +79 -0
- package/src/interface/system/check.ts +265 -0
- package/src/interface/system/commands.ts +71 -0
- package/src/interface/system/commands.type-test.ts +87 -0
- package/src/interface/system/composite-declaration.ts +13 -0
- package/src/interface/system/composite-input.type-test.ts +47 -0
- package/src/interface/system/composite.ts +6 -0
- package/src/interface/system/conditions.type-test.ts +57 -0
- package/src/interface/system/create-resolved.ts +21 -0
- package/src/interface/system/create.test.ts +210 -0
- package/src/interface/system/create.ts +208 -0
- package/src/interface/system/declaration.ts +73 -0
- package/src/interface/system/definition.ts +6 -0
- package/src/interface/system/index.ts +4 -0
- package/src/interface/system/input.ts +59 -0
- package/src/interface/system/leaf.ts +20 -0
- package/src/interface/system/lists.type-test.ts +53 -0
- package/src/interface/system/name.ts +7 -0
- package/src/interface/system/optional.type-test.ts +51 -0
- package/src/interface/system/property.ts +5 -0
- package/src/interface/system/render.ts +106 -0
- package/src/interface/system/resolve.test.ts +49 -0
- package/src/interface/system/resolve.ts +165 -0
- package/src/interface/system/shared.type-test.ts +205 -0
- package/src/interface/system/struct.ts +10 -0
- package/src/interface/system/system.ts +11 -0
- package/src/interface/system/system.type-test.ts +423 -0
- package/src/interface/system/threads.ts +47 -0
- package/src/interface/system/threads.type-test.ts +83 -0
- package/src/interface/system/up.type-test.ts +67 -0
- package/src/interface/system/values-of.ts +17 -0
- package/src/interface/system/values.ts +73 -0
- package/src/interface/thread/of.ts +9 -0
- package/src/interface/thread/thread.ts +14 -0
- package/src/interface/thread/thread.type-test.ts +75 -0
- package/src/interface/trait/key.ts +7 -0
- package/src/interface/trait/trait.type-test.ts +85 -0
- package/src/interface/trait/types.ts +69 -0
- package/src/interface/tsconfig.json +28 -0
- package/src/interface/world/create.ts +22 -0
- package/src/interface/world/declarations.ts +34 -0
- package/src/interface/world/filter.ts +10 -0
- package/src/interface/world/index.ts +3 -0
- package/src/interface/world/join.ts +17 -0
- package/src/interface/world/loop.type-test.ts +72 -0
- package/src/interface/world/run.type-test.ts +87 -0
- package/src/interface/world/share.type-test.ts +31 -0
- package/src/interface/world/world.ts +73 -0
- package/src/interface/world/world.type-test.ts +77 -0
- package/src/observe/compare.ts +87 -0
- package/src/observe/entity.ts +232 -0
- package/src/observe/index.ts +2 -0
- package/src/observe/members.ts +43 -0
- package/src/observe/observe.ts +25 -0
- package/src/observe/observe.type-test.ts +85 -0
- package/src/observe/plans.ts +273 -0
- package/src/observe/query.ts +27 -0
- package/src/observe/resource.ts +81 -0
- package/src/observe/select.ts +649 -0
- package/src/observe/to-promise.ts +23 -0
- package/src/observe/tsconfig.json +31 -0
- package/src/observe/values.ts +10 -0
- package/src/observe/world-state.ts +421 -0
- package/src/observe-imports.test.ts +49 -0
- package/src/perftest/benchmark.ts +107 -0
- package/src/perftest/benchmarks.ts +708 -0
- package/src/perftest/editor.ts +126 -0
- package/src/perftest/filters.ts +124 -0
- package/src/perftest/finalized.ts +170 -0
- package/src/perftest/flat.ts +57 -0
- package/src/perftest/growth.ts +47 -0
- package/src/perftest/handoff.ts +147 -0
- package/src/perftest/hierarchy.ts +115 -0
- package/src/perftest/indexes.ts +759 -0
- package/src/perftest/invariants.ts +63 -0
- package/src/perftest/joined.ts +103 -0
- package/src/perftest/journal.ts +55 -0
- package/src/perftest/keys.ts +101 -0
- package/src/perftest/log.ts +126 -0
- package/src/perftest/loop.ts +50 -0
- package/src/perftest/observed-gpu.ts +57 -0
- package/src/perftest/observed.ts +292 -0
- package/src/perftest/observer.ts +58 -0
- package/src/perftest/optional.ts +102 -0
- package/src/perftest/particles.ts +69 -0
- package/src/perftest/placed.ts +178 -0
- package/src/perftest/reads.ts +205 -0
- package/src/perftest/remote.ts +362 -0
- package/src/perftest/render-order.ts +86 -0
- package/src/perftest/run.ts +44 -0
- package/src/perftest/shared.ts +416 -0
- package/src/perftest/strings.ts +135 -0
- package/src/perftest/structural.ts +150 -0
- package/src/perftest/suite.perf-browser-test.ts +136 -0
- package/src/perftest/suite.perf-test.ts +8 -0
- package/src/perftest/suite.ts +214 -0
- package/src/perftest/systems.ts +132 -0
- package/src/perftest/tails.ts +298 -0
- package/src/perftest/transfers.ts +98 -0
- package/src/perftest/uploads.ts +80 -0
- package/src/perftest/values.ts +107 -0
- package/src/perftest/wake.ts +41 -0
- package/src/world.test.ts +46 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import type { Layout, Views } from '../../interface/registry/layout.js';
|
|
2
|
+
import type { Memory } from './memory.js';
|
|
3
|
+
import { type MoveLog } from './move-log.js';
|
|
4
|
+
import type { StringStore } from './strings.js';
|
|
5
|
+
/** One component's storage in one archetype. Its views and ticks are replaced when the archetype grows. */
|
|
6
|
+
export type Storage = {
|
|
7
|
+
readonly component: number;
|
|
8
|
+
/** A shared component's is replaced as its archetype is reused for other values (`reclaim.ts`). */
|
|
9
|
+
layout: Layout;
|
|
10
|
+
/**
|
|
11
|
+
* Views of the interleaved column, for a linear layout: row `r` is `layout.stride` bytes at `r * stride`. For a
|
|
12
|
+
* string, each row's handle of its record while records are kept, else 0, as in rows past the archetype's count.
|
|
13
|
+
*/
|
|
14
|
+
views: Views;
|
|
15
|
+
/** For a string, the records its handles name; null otherwise. */
|
|
16
|
+
readonly strings: StringStore | null;
|
|
17
|
+
/** Values, for an object layout the world's thread fills, and a string's on the world's thread. */
|
|
18
|
+
readonly values: unknown[];
|
|
19
|
+
/** For an object layout a joined thread fills, its log, and each row's tag (`move-log.ts`) in place of its value. */
|
|
20
|
+
remote: MoveLog | null;
|
|
21
|
+
tags: Uint32Array;
|
|
22
|
+
/** How the sync point writes a value without a closure call: one of the `write` kinds, with its leaves' placement. */
|
|
23
|
+
readonly write: number;
|
|
24
|
+
readonly unitStride: number;
|
|
25
|
+
readonly unitOffset: number;
|
|
26
|
+
readonly lanes: number;
|
|
27
|
+
/** 32-bit words per element of a linear layout whose stride is a multiple of 4, which every GPU layout is; else 0. */
|
|
28
|
+
readonly words: number;
|
|
29
|
+
/**
|
|
30
|
+
* Whether this component keeps ticks: only once some system filters on its `added` or `changed`, and always for
|
|
31
|
+
* resources. Without them the tick arrays are empty and nothing stamps. Ticks are f64 so they never wrap.
|
|
32
|
+
*/
|
|
33
|
+
ticked: boolean;
|
|
34
|
+
added: Float64Array;
|
|
35
|
+
changed: Float64Array;
|
|
36
|
+
/** The newest `added` and `changed` tick in each chunk of `2 ** chunkShift` rows, so change filters skip unchanged chunks. */
|
|
37
|
+
chunkAdded: Float64Array;
|
|
38
|
+
chunkChanged: Float64Array;
|
|
39
|
+
/**
|
|
40
|
+
* The newest `added` and `changed` tick in each block of `2 ** blockShift` rows, so change filters skip the
|
|
41
|
+
* unchanged blocks of a chunk that changed: a filter's scan costs what changed, not the chunk.
|
|
42
|
+
*/
|
|
43
|
+
blockAdded: Float64Array;
|
|
44
|
+
blockChanged: Float64Array;
|
|
45
|
+
/**
|
|
46
|
+
* The newest tick at which every row may have changed, as a GPU kernel's writes do, so stamping them costs
|
|
47
|
+
* nothing per row: change filters pass the whole column when it's newer than their `lastRun`.
|
|
48
|
+
*/
|
|
49
|
+
columnChanged: number;
|
|
50
|
+
};
|
|
51
|
+
/** Bytes after a column's last row, so a WASM kernel's 16-byte load of a row's leaves never reads past the column. */
|
|
52
|
+
export declare const columnSlack = 16;
|
|
53
|
+
/** Write kinds: a scalar of one view, or a tuple of `lanes` consecutive f32s, like a vec3; anything else uses `layout.write`. */
|
|
54
|
+
export declare const writeF32 = 1;
|
|
55
|
+
export declare const writeU32 = 2;
|
|
56
|
+
export declare const writeI32 = 3;
|
|
57
|
+
export declare const writeF64 = 4;
|
|
58
|
+
export declare const writeF32Lanes = 5;
|
|
59
|
+
export declare const writeGeneral = 0;
|
|
60
|
+
export declare const writeOf: (layout: Layout) => {
|
|
61
|
+
readonly write: number;
|
|
62
|
+
readonly unitStride: number;
|
|
63
|
+
readonly unitOffset: number;
|
|
64
|
+
readonly lanes: number;
|
|
65
|
+
};
|
|
66
|
+
/** What stamping a row's ticks writes: a storage's, or a joined thread's view of one. */
|
|
67
|
+
export type Stamped = Pick<Storage, "ticked" | "added" | "changed" | "chunkAdded" | "chunkChanged" | "blockAdded" | "blockChanged">;
|
|
68
|
+
/**
|
|
69
|
+
* Stamps a row's `changed` tick, its block's and its chunk's. Ticks only increase, so theirs are the newest. Every
|
|
70
|
+
* writer stores the row, then the block, then the chunk, the reverse of the order filters read them, so a filter on
|
|
71
|
+
* another thread that finds a chunk newer finds its block and row newer too.
|
|
72
|
+
*/
|
|
73
|
+
export declare const stampChanged: (storage: Stamped, row: number, tick: number) => void;
|
|
74
|
+
/**
|
|
75
|
+
* Raises the block and chunk ticks over rows `start` to `end - 1` to at least `tick`: for ticks written to those rows
|
|
76
|
+
* in bulk, or copied in from rows of other chunks.
|
|
77
|
+
*/
|
|
78
|
+
export declare const raiseRange: (chunks: Float64Array, blocks: Float64Array, start: number, end: number, tick: number) => void;
|
|
79
|
+
/** A table of the entities that have exactly `components`, with exactly its shared values. Rows are dense: `0` to `count`. */
|
|
80
|
+
export type Archetype = {
|
|
81
|
+
readonly id: number;
|
|
82
|
+
/** Sorted component ids. */
|
|
83
|
+
readonly components: readonly number[];
|
|
84
|
+
/**
|
|
85
|
+
* By component id, the number of the value it holds of each shared component (`shared.ts`), once for every row: its
|
|
86
|
+
* storage's layout holds the value. Empty without shared components.
|
|
87
|
+
*/
|
|
88
|
+
shared: readonly (number | undefined)[];
|
|
89
|
+
/** By component id, the canonical text of each shared value it holds, which the layout directory carries to joined threads. */
|
|
90
|
+
texts: readonly (string | undefined)[];
|
|
91
|
+
/**
|
|
92
|
+
* Of one with shared values, reclaimed once empty and reused for others (`reclaim.ts`): its key in the world's
|
|
93
|
+
* lookup; whether it's reclaimed, waiting in its component set's pool; how many times it was reused; the sync point
|
|
94
|
+
* it was found empty at, by count, -1 while it isn't, and by tick; and the cached edges that lead to or from it, each
|
|
95
|
+
* cleared as it's reclaimed, null for none. Kept in place, not apart, so archetypes stay compact for runs.
|
|
96
|
+
*/
|
|
97
|
+
key: string;
|
|
98
|
+
reclaimed: boolean;
|
|
99
|
+
generation: number;
|
|
100
|
+
emptiedAt: number;
|
|
101
|
+
emptiedTick: number;
|
|
102
|
+
edges: Edge[] | null;
|
|
103
|
+
/** By shared component id, then value number: the archetype with that value in place of its own, cached as moves first take it. */
|
|
104
|
+
readonly sharing: (Archetype | undefined)[][];
|
|
105
|
+
readonly storages: readonly Storage[];
|
|
106
|
+
readonly storageOf: ReadonlyMap<number, Storage>;
|
|
107
|
+
/** Storages by component id, for hot paths. */
|
|
108
|
+
readonly storageById: readonly (Storage | undefined)[];
|
|
109
|
+
/** The archetype with one more or one fewer component, by component id, cached as edges are first taken. */
|
|
110
|
+
readonly adding: (Archetype | undefined)[];
|
|
111
|
+
readonly removing: (Archetype | undefined)[];
|
|
112
|
+
/** For a move to another archetype: each component they share, as source and target storages. */
|
|
113
|
+
/** By target archetype id: the storages they share, as source and target pairs, flattened. */
|
|
114
|
+
readonly moves: (readonly Storage[] | undefined)[];
|
|
115
|
+
entities: Float64Array;
|
|
116
|
+
count: number;
|
|
117
|
+
capacity: number;
|
|
118
|
+
/** Holds the resource entity, so queries and systems never see it. */
|
|
119
|
+
readonly resource: boolean;
|
|
120
|
+
/** Whether a storage holds values as objects or strings, which a removed row must release. */
|
|
121
|
+
readonly objects: boolean;
|
|
122
|
+
/** Its storages of strings, whose records a removed row lets go. */
|
|
123
|
+
readonly strings: readonly Storage[];
|
|
124
|
+
/** The logs of the joined threads whose objects it holds, which its moves are appended to; null for none. */
|
|
125
|
+
logs: MoveLog[] | null;
|
|
126
|
+
/** Whether it's listed for the layout directory's next flush of counts. */
|
|
127
|
+
counted: boolean;
|
|
128
|
+
/** Incremented whenever arrays are replaced, so cached views can be refreshed. */
|
|
129
|
+
version: number;
|
|
130
|
+
/** How many times any of the world's archetypes' arrays were replaced, shared by them all. */
|
|
131
|
+
readonly replaced: {
|
|
132
|
+
count: number;
|
|
133
|
+
};
|
|
134
|
+
/** The world's archetypes created or bumped since the layout directory's last flush (`layout-directory.ts`). */
|
|
135
|
+
readonly bumped: Archetype[];
|
|
136
|
+
/** Whether this archetype is in `bumped`. */
|
|
137
|
+
listed: boolean;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* A cached edge between two archetypes, one with shared values: `holder[key]` names its target, and holds `cleared`
|
|
141
|
+
* once either end is reclaimed. Kept in each end's `edges` holding it.
|
|
142
|
+
*/
|
|
143
|
+
export type Edge = {
|
|
144
|
+
readonly holder: object;
|
|
145
|
+
readonly key: PropertyKey;
|
|
146
|
+
readonly cleared: unknown;
|
|
147
|
+
readonly ends: readonly Archetype[];
|
|
148
|
+
};
|
|
149
|
+
/** Moves the version on once arrays are replaced, and lists the archetype for the layout directory's next flush. */
|
|
150
|
+
export declare const bump: (archetype: Archetype) => void;
|
|
151
|
+
/** An archetype without shared components holds no values: one empty list for them all. */
|
|
152
|
+
export declare const noShared: readonly (number | undefined)[];
|
|
153
|
+
/** Whether a storage's `changed` ticks are its `added` ticks: a constant's, whose value can't change, but a shared one's. */
|
|
154
|
+
export declare const alias: (layout: Layout) => boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Starts keeping ticks for a storage, as if every row was added and changed at `tick`, so a system registered now sees
|
|
157
|
+
* every row on its first run, as it would had the ticks always been kept.
|
|
158
|
+
*/
|
|
159
|
+
export declare const startTicks: (memory: Memory, archetype: Archetype, storage: Storage, tick: number) => void;
|
|
160
|
+
/**
|
|
161
|
+
* Creates an archetype, listed in `bumped` for the layout directory's next flush; storages of components a joined
|
|
162
|
+
* thread fills, by `remote`, hold their tags.
|
|
163
|
+
*/
|
|
164
|
+
export declare const createArchetype: (memory: Memory, strings: StringStore | null, id: number, components: readonly number[], layouts: readonly Layout[], resource: boolean, ticked: ReadonlySet<number>, bumped: Archetype[], replaced: {
|
|
165
|
+
count: number;
|
|
166
|
+
}, remote: readonly (MoveLog | undefined)[], shared?: readonly (number | undefined)[], sharedLayouts?: readonly (Layout | undefined)[], texts?: readonly (string | undefined)[], key?: string) => Archetype;
|
|
167
|
+
/**
|
|
168
|
+
* Lets go of an empty archetype's arrays, past what a new one holds: its columns, ticks and entities, each replaced
|
|
169
|
+
* by one of the first capacity, as when it was made. Its storages stay, so the edges that name them do.
|
|
170
|
+
*/
|
|
171
|
+
export declare const release: (memory: Memory, archetype: Archetype) => void;
|
|
172
|
+
/** Grows once to fit `needed` rows, so a sync point adding many doesn't double over and over. */
|
|
173
|
+
export declare const ensureCapacity: (memory: Memory, archetype: Archetype, needed: number) => void;
|
|
174
|
+
/** Appends a row for `entity`, growing if full. Component values and ticks are left for the caller to write. */
|
|
175
|
+
export declare const insertRow: (memory: Memory, archetype: Archetype, entity: number) => number;
|
|
176
|
+
/** Copies one component's value, not its ticks, between rows of storages with the same layout. */
|
|
177
|
+
export declare const copyValue: (from: Storage, fromRow: number, to: Storage, toRow: number) => void;
|
|
178
|
+
/** Copies one component's value and ticks between rows of storages with the same layout. */
|
|
179
|
+
export declare const copyCell: (from: Storage, fromRow: number, to: Storage, toRow: number) => void;
|
|
180
|
+
/** Removes a row by moving the last row into it. Returns the moved entity, or -1 if the removed row was last. */
|
|
181
|
+
export declare const swapRemove: (archetype: Archetype, row: number) => number;
|
|
182
|
+
/**
|
|
183
|
+
* Gives a storage's objects to the joined thread `log` is for: its values are released, every row starting there at
|
|
184
|
+
* its start, and its tags are kept in their place. Allocates, so it runs only between runs.
|
|
185
|
+
*/
|
|
186
|
+
export declare const makeRemote: (memory: Memory, archetype: Archetype, storage: Storage, log: MoveLog) => void;
|
|
187
|
+
/**
|
|
188
|
+
* Takes a storage's objects back from a joined thread that's gone: each row at the value its tag names, `null` or its
|
|
189
|
+
* start, since a slot's value was the thread's. Allocates, so it runs only between runs.
|
|
190
|
+
*/
|
|
191
|
+
export declare const makeLocal: (memory: Memory, archetype: Archetype, storage: Storage, start: unknown) => void;
|
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
import { allocateArray, allocateViews, emptyViews, freeArray, freeViews, growArray } from './arrays.js';
|
|
2
|
+
import { blockShift, chunkShift } from './kernel.js';
|
|
3
|
+
import { nullTag, startTag } from './move-log.js';
|
|
4
|
+
/** Bytes after a column's last row, so a WASM kernel's 16-byte load of a row's leaves never reads past the column. */
|
|
5
|
+
export const columnSlack = 16;
|
|
6
|
+
/** Write kinds: a scalar of one view, or a tuple of `lanes` consecutive f32s, like a vec3; anything else uses `layout.write`. */
|
|
7
|
+
export const writeF32 = 1;
|
|
8
|
+
export const writeU32 = 2;
|
|
9
|
+
export const writeI32 = 3;
|
|
10
|
+
export const writeF64 = 4;
|
|
11
|
+
export const writeF32Lanes = 5;
|
|
12
|
+
export const writeGeneral = 0;
|
|
13
|
+
export const writeOf = (layout) => {
|
|
14
|
+
const general = { write: writeGeneral, unitStride: 0, unitOffset: 0, lanes: 0 };
|
|
15
|
+
if (layout.kind !== "linear")
|
|
16
|
+
return general;
|
|
17
|
+
const [first] = layout.leaves;
|
|
18
|
+
if (first === undefined || layout.leaves.some(leaf => leaf.scalar === "boolean"))
|
|
19
|
+
return general;
|
|
20
|
+
if (layout.leaves.length === 1 && first.path.length === 0) {
|
|
21
|
+
const kinds = { f32: writeF32, u32: writeU32, i32: writeI32, f64: writeF64 };
|
|
22
|
+
return { write: kinds[first.view] ?? writeGeneral, unitStride: first.unitStride, unitOffset: first.unitOffset, lanes: 1 };
|
|
23
|
+
}
|
|
24
|
+
const lanes = layout.leaves.every((leaf, i) => leaf.view === "f32" && leaf.path.length === 1 && leaf.path[0] === i && leaf.unitStride === first.unitStride && leaf.unitOffset === first.unitOffset + i);
|
|
25
|
+
return lanes ? { write: writeF32Lanes, unitStride: first.unitStride, unitOffset: first.unitOffset, lanes: layout.leaves.length } : general;
|
|
26
|
+
};
|
|
27
|
+
/** Chunks covering `capacity` rows. */
|
|
28
|
+
const chunksFor = (capacity) => Math.max(1, Math.ceil(capacity / 2 ** chunkShift));
|
|
29
|
+
/** Blocks covering those chunks, so every row of a chunk has a block. */
|
|
30
|
+
const blocksFor = (capacity) => chunksFor(capacity) << (chunkShift - blockShift);
|
|
31
|
+
/**
|
|
32
|
+
* Stamps a row's `changed` tick, its block's and its chunk's. Ticks only increase, so theirs are the newest. Every
|
|
33
|
+
* writer stores the row, then the block, then the chunk, the reverse of the order filters read them, so a filter on
|
|
34
|
+
* another thread that finds a chunk newer finds its block and row newer too.
|
|
35
|
+
*/
|
|
36
|
+
export const stampChanged = (storage, row, tick) => {
|
|
37
|
+
if (!storage.ticked)
|
|
38
|
+
return;
|
|
39
|
+
storage.changed[row] = tick;
|
|
40
|
+
storage.blockChanged[row >> blockShift] = tick;
|
|
41
|
+
storage.chunkChanged[row >> chunkShift] = tick;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Raises the block and chunk ticks over rows `start` to `end - 1` to at least `tick`: for ticks written to those rows
|
|
45
|
+
* in bulk, or copied in from rows of other chunks.
|
|
46
|
+
*/
|
|
47
|
+
export const raiseRange = (chunks, blocks, start, end, tick) => {
|
|
48
|
+
if (start >= end)
|
|
49
|
+
return;
|
|
50
|
+
for (let block = start >> blockShift, last = (end - 1) >> blockShift; block <= last; block++)
|
|
51
|
+
if (blocks[block] < tick)
|
|
52
|
+
blocks[block] = tick;
|
|
53
|
+
for (let chunk = start >> chunkShift, last = (end - 1) >> chunkShift; chunk <= last; chunk++)
|
|
54
|
+
if (chunks[chunk] < tick)
|
|
55
|
+
chunks[chunk] = tick;
|
|
56
|
+
};
|
|
57
|
+
/** Moves the version on once arrays are replaced, and lists the archetype for the layout directory's next flush. */
|
|
58
|
+
export const bump = (archetype) => {
|
|
59
|
+
archetype.version++;
|
|
60
|
+
archetype.replaced.count++;
|
|
61
|
+
if (archetype.listed)
|
|
62
|
+
return;
|
|
63
|
+
archetype.listed = true;
|
|
64
|
+
archetype.bumped.push(archetype);
|
|
65
|
+
};
|
|
66
|
+
const initialCapacity = 16;
|
|
67
|
+
/** An archetype without shared components holds no values: one empty list for them all. */
|
|
68
|
+
export const noShared = [];
|
|
69
|
+
const noLayouts = [];
|
|
70
|
+
const noTexts = [];
|
|
71
|
+
/** The tick arrays of a storage without ticks. */
|
|
72
|
+
const noTicks = new Float64Array(0);
|
|
73
|
+
/** The tags of a storage whose values the world's thread holds. */
|
|
74
|
+
const noTags = new Uint32Array(0);
|
|
75
|
+
/** Whether a storage's `changed` ticks are its `added` ticks: a constant's, whose value can't change, but a shared one's. */
|
|
76
|
+
export const alias = (layout) => layout.kind === "constant" && layout.shared !== true;
|
|
77
|
+
/**
|
|
78
|
+
* Gives a storage tick arrays for `capacity` rows, every tick set to `tick`. A constant's value can't change, so its
|
|
79
|
+
* `changed` ticks are its `added` ticks: tags cost one tick per row. A shared component's value changes as its entity
|
|
80
|
+
* moves, so it keeps both.
|
|
81
|
+
*/
|
|
82
|
+
const allocateTicks = (memory, storage, capacity, tick) => {
|
|
83
|
+
storage.ticked = true;
|
|
84
|
+
storage.added = allocateArray(memory, Float64Array, capacity).fill(tick);
|
|
85
|
+
const aliased = alias(storage.layout);
|
|
86
|
+
storage.changed = aliased ? storage.added : allocateArray(memory, Float64Array, capacity).fill(tick);
|
|
87
|
+
storage.chunkAdded = allocateArray(memory, Float64Array, chunksFor(capacity)).fill(tick);
|
|
88
|
+
storage.chunkChanged = aliased ? storage.chunkAdded : allocateArray(memory, Float64Array, chunksFor(capacity)).fill(tick);
|
|
89
|
+
storage.blockAdded = allocateArray(memory, Float64Array, blocksFor(capacity)).fill(tick);
|
|
90
|
+
storage.blockChanged = aliased ? storage.blockAdded : allocateArray(memory, Float64Array, blocksFor(capacity)).fill(tick);
|
|
91
|
+
};
|
|
92
|
+
/** Views of a new column, for a linear layout's or a string's `capacity` rows; a string's handles start at 0. */
|
|
93
|
+
const columnOf = (memory, layout, capacity) => {
|
|
94
|
+
if (layout.kind === "linear")
|
|
95
|
+
return allocateViews(memory, capacity * layout.stride + columnSlack);
|
|
96
|
+
if (layout.kind !== "string")
|
|
97
|
+
return emptyViews;
|
|
98
|
+
const views = allocateViews(memory, capacity * layout.stride + columnSlack);
|
|
99
|
+
views.u32.fill(0);
|
|
100
|
+
return views;
|
|
101
|
+
};
|
|
102
|
+
const createStorage = (memory, strings, component, layout, capacity, ticked) => {
|
|
103
|
+
const storage = {
|
|
104
|
+
component,
|
|
105
|
+
layout,
|
|
106
|
+
views: columnOf(memory, layout, capacity),
|
|
107
|
+
strings: layout.kind === "string" ? strings : null,
|
|
108
|
+
values: [],
|
|
109
|
+
...writeOf(layout),
|
|
110
|
+
words: layout.kind === "linear" && (layout.stride & 3) === 0 ? layout.stride >> 2 : 0,
|
|
111
|
+
ticked: false,
|
|
112
|
+
added: noTicks,
|
|
113
|
+
changed: noTicks,
|
|
114
|
+
chunkAdded: noTicks,
|
|
115
|
+
chunkChanged: noTicks,
|
|
116
|
+
blockAdded: noTicks,
|
|
117
|
+
blockChanged: noTicks,
|
|
118
|
+
columnChanged: 0,
|
|
119
|
+
remote: null,
|
|
120
|
+
tags: noTags,
|
|
121
|
+
};
|
|
122
|
+
if (ticked)
|
|
123
|
+
allocateTicks(memory, storage, capacity, 0);
|
|
124
|
+
return storage;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Starts keeping ticks for a storage, as if every row was added and changed at `tick`, so a system registered now sees
|
|
128
|
+
* every row on its first run, as it would had the ticks always been kept.
|
|
129
|
+
*/
|
|
130
|
+
export const startTicks = (memory, archetype, storage, tick) => {
|
|
131
|
+
if (storage.ticked)
|
|
132
|
+
return;
|
|
133
|
+
allocateTicks(memory, storage, archetype.capacity, tick);
|
|
134
|
+
bump(archetype);
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Creates an archetype, listed in `bumped` for the layout directory's next flush; storages of components a joined
|
|
138
|
+
* thread fills, by `remote`, hold their tags.
|
|
139
|
+
*/
|
|
140
|
+
export const createArchetype = (memory, strings, id, components, layouts, resource, ticked, bumped, replaced, remote, shared = noShared, sharedLayouts = noLayouts, texts = noTexts, key = "") => {
|
|
141
|
+
const storages = components.map(component => createStorage(memory, strings, component, sharedLayouts[component] ?? layouts[component], initialCapacity, resource || ticked.has(component)));
|
|
142
|
+
const storageById = [];
|
|
143
|
+
for (const storage of storages)
|
|
144
|
+
storageById[storage.component] = storage;
|
|
145
|
+
const archetype = {
|
|
146
|
+
id,
|
|
147
|
+
components,
|
|
148
|
+
shared,
|
|
149
|
+
texts,
|
|
150
|
+
key,
|
|
151
|
+
reclaimed: false,
|
|
152
|
+
generation: 0,
|
|
153
|
+
emptiedAt: -1,
|
|
154
|
+
emptiedTick: -1,
|
|
155
|
+
edges: null,
|
|
156
|
+
sharing: [],
|
|
157
|
+
storages,
|
|
158
|
+
storageOf: new Map(storages.map(storage => [storage.component, storage])),
|
|
159
|
+
storageById,
|
|
160
|
+
adding: [],
|
|
161
|
+
removing: [],
|
|
162
|
+
moves: [],
|
|
163
|
+
entities: allocateArray(memory, Float64Array, initialCapacity),
|
|
164
|
+
count: 0,
|
|
165
|
+
capacity: initialCapacity,
|
|
166
|
+
resource,
|
|
167
|
+
objects: storages.some(storage => storage.layout.kind === "object" || storage.layout.kind === "string"),
|
|
168
|
+
strings: storages.filter(storage => storage.layout.kind === "string"),
|
|
169
|
+
version: 0,
|
|
170
|
+
replaced,
|
|
171
|
+
bumped,
|
|
172
|
+
listed: true,
|
|
173
|
+
logs: null,
|
|
174
|
+
counted: false,
|
|
175
|
+
};
|
|
176
|
+
bumped.push(archetype);
|
|
177
|
+
for (const storage of storages) {
|
|
178
|
+
const log = remote[storage.component];
|
|
179
|
+
if (log !== undefined)
|
|
180
|
+
makeRemote(memory, archetype, storage, log);
|
|
181
|
+
}
|
|
182
|
+
return archetype;
|
|
183
|
+
};
|
|
184
|
+
const growViews = (memory, storage, capacity, count) => {
|
|
185
|
+
const { layout } = storage;
|
|
186
|
+
if (layout.kind !== "linear" && layout.kind !== "string")
|
|
187
|
+
return;
|
|
188
|
+
const grown = allocateViews(memory, capacity * layout.stride + columnSlack);
|
|
189
|
+
grown.u8.set(storage.views.u8.subarray(0, count * layout.stride));
|
|
190
|
+
if (layout.kind === "string")
|
|
191
|
+
grown.u32.fill(0, count);
|
|
192
|
+
freeViews(memory, storage.views);
|
|
193
|
+
storage.views = grown;
|
|
194
|
+
};
|
|
195
|
+
const grow = (memory, archetype, capacity = archetype.capacity * 2) => {
|
|
196
|
+
const { count } = archetype;
|
|
197
|
+
for (const storage of archetype.storages) {
|
|
198
|
+
growViews(memory, storage, capacity, count);
|
|
199
|
+
if (storage.remote !== null)
|
|
200
|
+
storage.tags = growArray(memory, storage.tags, Uint32Array, capacity, count);
|
|
201
|
+
if (!storage.ticked)
|
|
202
|
+
continue;
|
|
203
|
+
const shared = storage.changed === storage.added;
|
|
204
|
+
storage.added = growArray(memory, storage.added, Float64Array, capacity, count);
|
|
205
|
+
storage.changed = shared ? storage.added : growArray(memory, storage.changed, Float64Array, capacity, count);
|
|
206
|
+
const chunks = chunksFor(capacity);
|
|
207
|
+
if (chunks > storage.chunkAdded.length) {
|
|
208
|
+
const used = storage.chunkAdded.length;
|
|
209
|
+
storage.chunkAdded = growArray(memory, storage.chunkAdded, Float64Array, chunks, used).fill(0, used);
|
|
210
|
+
storage.chunkChanged = shared ? storage.chunkAdded : growArray(memory, storage.chunkChanged, Float64Array, chunks, used).fill(0, used);
|
|
211
|
+
const blocks = blocksFor(capacity);
|
|
212
|
+
const usedBlocks = storage.blockAdded.length;
|
|
213
|
+
storage.blockAdded = growArray(memory, storage.blockAdded, Float64Array, blocks, usedBlocks).fill(0, usedBlocks);
|
|
214
|
+
storage.blockChanged = shared ? storage.blockAdded : growArray(memory, storage.blockChanged, Float64Array, blocks, usedBlocks).fill(0, usedBlocks);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
archetype.entities = growArray(memory, archetype.entities, Float64Array, capacity, count);
|
|
218
|
+
archetype.capacity = capacity;
|
|
219
|
+
bump(archetype);
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* Lets go of an empty archetype's arrays, past what a new one holds: its columns, ticks and entities, each replaced
|
|
223
|
+
* by one of the first capacity, as when it was made. Its storages stay, so the edges that name them do.
|
|
224
|
+
*/
|
|
225
|
+
export const release = (memory, archetype) => {
|
|
226
|
+
if (archetype.capacity <= initialCapacity)
|
|
227
|
+
return;
|
|
228
|
+
const capacity = initialCapacity;
|
|
229
|
+
for (const storage of archetype.storages) {
|
|
230
|
+
const { layout } = storage;
|
|
231
|
+
if (layout.kind === "linear" || layout.kind === "string") {
|
|
232
|
+
freeViews(memory, storage.views);
|
|
233
|
+
storage.views = columnOf(memory, layout, capacity);
|
|
234
|
+
}
|
|
235
|
+
if (storage.remote !== null) {
|
|
236
|
+
freeArray(memory, storage.tags);
|
|
237
|
+
storage.tags = allocateArray(memory, Uint32Array, capacity).fill(startTag);
|
|
238
|
+
}
|
|
239
|
+
storage.values.length = 0;
|
|
240
|
+
if (!storage.ticked)
|
|
241
|
+
continue;
|
|
242
|
+
const aliased = storage.changed === storage.added;
|
|
243
|
+
freeArray(memory, storage.added);
|
|
244
|
+
if (!aliased)
|
|
245
|
+
freeArray(memory, storage.changed);
|
|
246
|
+
freeArray(memory, storage.chunkAdded);
|
|
247
|
+
if (!aliased)
|
|
248
|
+
freeArray(memory, storage.chunkChanged);
|
|
249
|
+
freeArray(memory, storage.blockAdded);
|
|
250
|
+
if (!aliased)
|
|
251
|
+
freeArray(memory, storage.blockChanged);
|
|
252
|
+
// As it starts: new rows' ticks are written as they arrive.
|
|
253
|
+
storage.added = allocateArray(memory, Float64Array, capacity).fill(0);
|
|
254
|
+
storage.changed = aliased ? storage.added : allocateArray(memory, Float64Array, capacity).fill(0);
|
|
255
|
+
storage.chunkAdded = allocateArray(memory, Float64Array, chunksFor(capacity)).fill(0);
|
|
256
|
+
storage.chunkChanged = aliased ? storage.chunkAdded : allocateArray(memory, Float64Array, chunksFor(capacity)).fill(0);
|
|
257
|
+
storage.blockAdded = allocateArray(memory, Float64Array, blocksFor(capacity)).fill(0);
|
|
258
|
+
storage.blockChanged = aliased ? storage.blockAdded : allocateArray(memory, Float64Array, blocksFor(capacity)).fill(0);
|
|
259
|
+
storage.columnChanged = 0;
|
|
260
|
+
}
|
|
261
|
+
freeArray(memory, archetype.entities);
|
|
262
|
+
archetype.entities = allocateArray(memory, Float64Array, capacity);
|
|
263
|
+
archetype.capacity = capacity;
|
|
264
|
+
bump(archetype);
|
|
265
|
+
};
|
|
266
|
+
/** Grows once to fit `needed` rows, so a sync point adding many doesn't double over and over. */
|
|
267
|
+
export const ensureCapacity = (memory, archetype, needed) => {
|
|
268
|
+
if (needed <= archetype.capacity)
|
|
269
|
+
return;
|
|
270
|
+
let capacity = archetype.capacity;
|
|
271
|
+
while (capacity < needed)
|
|
272
|
+
capacity *= 2;
|
|
273
|
+
grow(memory, archetype, capacity);
|
|
274
|
+
};
|
|
275
|
+
/** Appends a row for `entity`, growing if full. Component values and ticks are left for the caller to write. */
|
|
276
|
+
export const insertRow = (memory, archetype, entity) => {
|
|
277
|
+
if (archetype.count === archetype.capacity)
|
|
278
|
+
grow(memory, archetype);
|
|
279
|
+
const row = archetype.count++;
|
|
280
|
+
archetype.entities[row] = entity;
|
|
281
|
+
return row;
|
|
282
|
+
};
|
|
283
|
+
/** Copies one element of `stride` bytes: by 32-bit words when it's a multiple of 4, which every GPU layout is. */
|
|
284
|
+
const copyElement = (from, fromRow, to, toRow, stride) => {
|
|
285
|
+
if ((stride & 3) === 0) {
|
|
286
|
+
const words = stride >> 2;
|
|
287
|
+
const source = fromRow * words;
|
|
288
|
+
const target = toRow * words;
|
|
289
|
+
for (let i = 0; i < words; i++)
|
|
290
|
+
to.u32[target + i] = from.u32[source + i];
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
const source = fromRow * stride;
|
|
294
|
+
const target = toRow * stride;
|
|
295
|
+
for (let i = 0; i < stride; i++)
|
|
296
|
+
to.u8[target + i] = from.u8[source + i];
|
|
297
|
+
};
|
|
298
|
+
/** Copies one component's value, not its ticks, between rows of storages with the same layout. */
|
|
299
|
+
export const copyValue = (from, fromRow, to, toRow) => {
|
|
300
|
+
const { layout, words } = from;
|
|
301
|
+
if (words > 0) {
|
|
302
|
+
const source = from.views.u32;
|
|
303
|
+
const target = to.views.u32;
|
|
304
|
+
const s = fromRow * words;
|
|
305
|
+
const t = toRow * words;
|
|
306
|
+
for (let i = 0; i < words; i++)
|
|
307
|
+
target[t + i] = source[s + i];
|
|
308
|
+
}
|
|
309
|
+
else if (layout.kind === "linear")
|
|
310
|
+
copyElement(from.views, fromRow, to.views, toRow, layout.stride);
|
|
311
|
+
// A string's record goes with its value: its handle moves, and isn't let go.
|
|
312
|
+
else if (layout.kind === "string") {
|
|
313
|
+
to.views.u32[toRow] = from.views.u32[fromRow];
|
|
314
|
+
to.values[toRow] = from.values[fromRow];
|
|
315
|
+
}
|
|
316
|
+
else if (layout.kind === "object") {
|
|
317
|
+
if (to.remote === null)
|
|
318
|
+
to.values[toRow] = from.values[fromRow];
|
|
319
|
+
else
|
|
320
|
+
to.tags[toRow] = from.tags[fromRow];
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
/** Copies one component's value and ticks between rows of storages with the same layout. */
|
|
324
|
+
export const copyCell = (from, fromRow, to, toRow) => {
|
|
325
|
+
copyValue(from, fromRow, to, toRow);
|
|
326
|
+
// A component keeps ticks in every archetype or in none.
|
|
327
|
+
if (!to.ticked)
|
|
328
|
+
return;
|
|
329
|
+
const added = from.added[fromRow];
|
|
330
|
+
const changed = from.changed[fromRow];
|
|
331
|
+
to.added[toRow] = added;
|
|
332
|
+
to.changed[toRow] = changed;
|
|
333
|
+
// A block's and a chunk's tick are the newest of their rows, so a row moving in can raise them.
|
|
334
|
+
const block = toRow >> blockShift;
|
|
335
|
+
if (added > to.blockAdded[block])
|
|
336
|
+
to.blockAdded[block] = added;
|
|
337
|
+
if (changed > to.blockChanged[block])
|
|
338
|
+
to.blockChanged[block] = changed;
|
|
339
|
+
const chunk = toRow >> chunkShift;
|
|
340
|
+
if (added > to.chunkAdded[chunk])
|
|
341
|
+
to.chunkAdded[chunk] = added;
|
|
342
|
+
if (changed > to.chunkChanged[chunk])
|
|
343
|
+
to.chunkChanged[chunk] = changed;
|
|
344
|
+
};
|
|
345
|
+
/** Removes a row by moving the last row into it. Returns the moved entity, or -1 if the removed row was last. */
|
|
346
|
+
export const swapRemove = (archetype, row) => {
|
|
347
|
+
const last = --archetype.count;
|
|
348
|
+
if (row === last && !archetype.objects)
|
|
349
|
+
return -1;
|
|
350
|
+
const moved = row === last ? -1 : archetype.entities[last];
|
|
351
|
+
for (const storage of archetype.storages) {
|
|
352
|
+
if (moved !== -1)
|
|
353
|
+
copyCell(storage, last, storage, row);
|
|
354
|
+
if (storage.layout.kind === "object" && storage.remote === null)
|
|
355
|
+
storage.values[last] = undefined;
|
|
356
|
+
// A string's record went with the row's entity or was let go; the row past the count holds none.
|
|
357
|
+
else if (storage.layout.kind === "string") {
|
|
358
|
+
storage.values[last] = undefined;
|
|
359
|
+
storage.views.u32[last] = 0;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
if (moved !== -1)
|
|
363
|
+
archetype.entities[row] = moved;
|
|
364
|
+
return moved;
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* Gives a storage's objects to the joined thread `log` is for: its values are released, every row starting there at
|
|
368
|
+
* its start, and its tags are kept in their place. Allocates, so it runs only between runs.
|
|
369
|
+
*/
|
|
370
|
+
export const makeRemote = (memory, archetype, storage, log) => {
|
|
371
|
+
storage.remote = log;
|
|
372
|
+
storage.tags = allocateArray(memory, Uint32Array, archetype.capacity).fill(startTag);
|
|
373
|
+
storage.values.length = 0;
|
|
374
|
+
if (archetype.logs === null)
|
|
375
|
+
archetype.logs = [log];
|
|
376
|
+
else if (!archetype.logs.includes(log))
|
|
377
|
+
archetype.logs.push(log);
|
|
378
|
+
if (!log.archetypes.includes(archetype))
|
|
379
|
+
log.archetypes.push(archetype);
|
|
380
|
+
bump(archetype);
|
|
381
|
+
};
|
|
382
|
+
/**
|
|
383
|
+
* Takes a storage's objects back from a joined thread that's gone: each row at the value its tag names, `null` or its
|
|
384
|
+
* start, since a slot's value was the thread's. Allocates, so it runs only between runs.
|
|
385
|
+
*/
|
|
386
|
+
export const makeLocal = (memory, archetype, storage, start) => {
|
|
387
|
+
const log = storage.remote;
|
|
388
|
+
if (log === null)
|
|
389
|
+
return;
|
|
390
|
+
for (let row = 0; row < archetype.count; row++)
|
|
391
|
+
storage.values[row] = storage.tags[row] === nullTag ? null : start;
|
|
392
|
+
freeArray(memory, storage.tags);
|
|
393
|
+
storage.tags = noTags;
|
|
394
|
+
storage.remote = null;
|
|
395
|
+
if (!archetype.storages.some(other => other.remote === log)) {
|
|
396
|
+
const logs = (archetype.logs ?? []).filter(other => other !== log);
|
|
397
|
+
archetype.logs = logs.length === 0 ? null : logs;
|
|
398
|
+
log.archetypes.splice(log.archetypes.indexOf(archetype), 1);
|
|
399
|
+
}
|
|
400
|
+
bump(archetype);
|
|
401
|
+
};
|
|
402
|
+
//# sourceMappingURL=archetype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archetype.js","sourceRoot":"","sources":["../../../src/implementation/world/archetype.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxG,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAgB,MAAM,eAAe,CAAC;AAkDhE,sHAAsH;AACtH,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC;AAE9B,iIAAiI;AACjI,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC;AAC1B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC;AAC1B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC;AAC1B,MAA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D,MAAM,IAAI,GAAG,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,KAAK,GAAG,CAAC,CAAC;QACnE,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;QACjD,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;IAChE,CAAC;IACD,IAAI,CAAC,SAAS,CAAC,CAAC;AACpB,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type Layout, type TypedArray, type Views } from '../../interface/registry/layout.js';
|
|
2
|
+
import type { Memory } from './memory.js';
|
|
3
|
+
export type ArrayConstructor<T> = {
|
|
4
|
+
new (buffer: ArrayBufferLike, byteOffset: number, length: number): T;
|
|
5
|
+
readonly BYTES_PER_ELEMENT: number;
|
|
6
|
+
};
|
|
7
|
+
type View = {
|
|
8
|
+
readonly byteOffset: number;
|
|
9
|
+
readonly byteLength: number;
|
|
10
|
+
};
|
|
11
|
+
/** A typed array over a new arena block. Contents are unspecified. */
|
|
12
|
+
export declare const allocateArray: <T>(memory: Memory, constructor: ArrayConstructor<T>, length: number) => T;
|
|
13
|
+
export declare const freeArray: (memory: Memory, array: View) => void;
|
|
14
|
+
/** Moves the first `used` elements into a new block of `length` and frees the old one. */
|
|
15
|
+
export declare const growArray: <T extends View & {
|
|
16
|
+
set(source: ArrayLike<number>): void;
|
|
17
|
+
subarray(start: number, end: number): ArrayLike<number>;
|
|
18
|
+
}>(memory: Memory, array: T, constructor: ArrayConstructor<T>, length: number, used: number) => T;
|
|
19
|
+
/** Views of a new arena block of `bytes`, for one component's interleaved column. Contents are unspecified. */
|
|
20
|
+
export declare const allocateViews: (memory: Memory, bytes: number) => Views;
|
|
21
|
+
export declare const freeViews: (memory: Memory, views: Views) => void;
|
|
22
|
+
/** Views of no bytes, for components with nothing to store. */
|
|
23
|
+
export declare const emptyViews: Views;
|
|
24
|
+
/** A kernel's column of a component an archetype lacks, optional in its system: empty, so its reads give undefined. */
|
|
25
|
+
export declare const absentColumn: (layout: Layout, source: {
|
|
26
|
+
readonly kind: string;
|
|
27
|
+
readonly leaf?: number;
|
|
28
|
+
}) => TypedArray;
|
|
29
|
+
export {};
|