@adobe/ecs 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/implementation/compiler/access.d.ts +6 -0
- package/dist/implementation/compiler/access.js +155 -0
- package/dist/implementation/compiler/access.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/bind.d.ts +9 -0
- package/dist/implementation/compiler/bind.js +82 -0
- package/dist/implementation/compiler/bind.js.map +1 -0
- package/dist/implementation/compiler/body-access.d.ts +15 -0
- package/dist/implementation/compiler/body-access.js +377 -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 +390 -0
- package/dist/implementation/compiler/calls.js.map +1 -0
- package/dist/implementation/compiler/columns.d.ts +20 -0
- package/dist/implementation/compiler/columns.js +37 -0
- package/dist/implementation/compiler/columns.js.map +1 -0
- package/dist/implementation/compiler/compile-kernel.d.ts +14 -0
- package/dist/implementation/compiler/compile-kernel.js +139 -0
- package/dist/implementation/compiler/compile-kernel.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/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/exact.d.ts +24 -0
- package/dist/implementation/compiler/exact.js +64 -0
- package/dist/implementation/compiler/exact.js.map +1 -0
- package/dist/implementation/compiler/expression.d.ts +6 -0
- package/dist/implementation/compiler/expression.js +129 -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 +33 -0
- package/dist/implementation/compiler/identify.js +149 -0
- package/dist/implementation/compiler/identify.js.map +1 -0
- package/dist/implementation/compiler/index.d.ts +1 -0
- package/dist/implementation/compiler/index.js +2 -0
- package/dist/implementation/compiler/index.js.map +1 -0
- package/dist/implementation/compiler/ir.d.ts +214 -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 +27 -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 +70 -0
- package/dist/implementation/compiler/link.js +169 -0
- package/dist/implementation/compiler/link.js.map +1 -0
- package/dist/implementation/compiler/lists.d.ts +39 -0
- package/dist/implementation/compiler/lists.js +189 -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 +9 -0
- package/dist/implementation/compiler/math.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 +124 -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/paths.d.ts +14 -0
- package/dist/implementation/compiler/paths.js +29 -0
- package/dist/implementation/compiler/paths.js.map +1 -0
- package/dist/implementation/compiler/plugin.d.ts +2 -0
- package/dist/implementation/compiler/plugin.js +225 -0
- package/dist/implementation/compiler/plugin.js.map +1 -0
- package/dist/implementation/compiler/print.d.ts +12 -0
- package/dist/implementation/compiler/print.js +96 -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 +255 -0
- package/dist/implementation/compiler/program.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 +14 -0
- package/dist/implementation/compiler/serialize.js.map +1 -0
- package/dist/implementation/compiler/signature.d.ts +45 -0
- package/dist/implementation/compiler/signature.js +150 -0
- package/dist/implementation/compiler/signature.js.map +1 -0
- package/dist/implementation/compiler/snapshot.d.ts +21 -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 +130 -0
- package/dist/implementation/compiler/source-map.js.map +1 -0
- package/dist/implementation/compiler/spawns.d.ts +29 -0
- package/dist/implementation/compiler/spawns.js +102 -0
- package/dist/implementation/compiler/spawns.js.map +1 -0
- package/dist/implementation/compiler/stamps.d.ts +6 -0
- package/dist/implementation/compiler/stamps.js +25 -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 +31 -0
- package/dist/implementation/compiler/transform.js +227 -0
- package/dist/implementation/compiler/transform.js.map +1 -0
- package/dist/implementation/compiler/unit.d.ts +91 -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/index.d.ts +2 -0
- package/dist/implementation/index.js +3 -0
- package/dist/implementation/index.js.map +1 -0
- package/dist/implementation/world/activate.d.ts +21 -0
- package/dist/implementation/world/activate.js +132 -0
- package/dist/implementation/world/activate.js.map +1 -0
- package/dist/implementation/world/archetype.d.ts +136 -0
- package/dist/implementation/world/archetype.js +313 -0
- package/dist/implementation/world/archetype.js.map +1 -0
- package/dist/implementation/world/arrays.d.ts +24 -0
- package/dist/implementation/world/arrays.js +31 -0
- package/dist/implementation/world/arrays.js.map +1 -0
- package/dist/implementation/world/attach-kernel.d.ts +9 -0
- package/dist/implementation/world/attach-kernel.js +22 -0
- package/dist/implementation/world/attach-kernel.js.map +1 -0
- package/dist/implementation/world/batches.d.ts +15 -0
- package/dist/implementation/world/batches.js +144 -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 +105 -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 +10 -0
- package/dist/implementation/world/check-kernel.js +102 -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 +50 -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 +43 -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 +438 -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 +74 -0
- package/dist/implementation/world/commands.js.map +1 -0
- package/dist/implementation/world/create.d.ts +61 -0
- package/dist/implementation/world/create.js +787 -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 +67 -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 +36 -0
- package/dist/implementation/world/execute.js +616 -0
- package/dist/implementation/world/execute.js.map +1 -0
- package/dist/implementation/world/failures.d.ts +10 -0
- package/dist/implementation/world/failures.js +5 -0
- package/dist/implementation/world/failures.js.map +1 -0
- package/dist/implementation/world/finalizers.d.ts +63 -0
- package/dist/implementation/world/finalizers.js +408 -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 +317 -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 +65 -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 +404 -0
- package/dist/implementation/world/index-build.js.map +1 -0
- package/dist/implementation/world/index-hash.d.ts +99 -0
- package/dist/implementation/world/index-hash.js +440 -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 +251 -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 +567 -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 +631 -0
- package/dist/implementation/world/index-sorted.js.map +1 -0
- package/dist/implementation/world/indexes.d.ts +139 -0
- package/dist/implementation/world/indexes.js +1174 -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 +23 -0
- package/dist/implementation/world/join.js +709 -0
- package/dist/implementation/world/join.js.map +1 -0
- package/dist/implementation/world/joined-observer.d.ts +179 -0
- package/dist/implementation/world/joined-observer.js +758 -0
- package/dist/implementation/world/joined-observer.js.map +1 -0
- package/dist/implementation/world/joining.d.ts +338 -0
- package/dist/implementation/world/joining.js +143 -0
- package/dist/implementation/world/joining.js.map +1 -0
- package/dist/implementation/world/journal.d.ts +21 -0
- package/dist/implementation/world/journal.js +22 -0
- package/dist/implementation/world/journal.js.map +1 -0
- package/dist/implementation/world/kernel-indexes.d.ts +30 -0
- package/dist/implementation/world/kernel-indexes.js +172 -0
- package/dist/implementation/world/kernel-indexes.js.map +1 -0
- package/dist/implementation/world/kernel.d.ts +358 -0
- package/dist/implementation/world/kernel.js +3 -0
- package/dist/implementation/world/kernel.js.map +1 -0
- package/dist/implementation/world/kernels.d.ts +80 -0
- package/dist/implementation/world/kernels.js +284 -0
- package/dist/implementation/world/kernels.js.map +1 -0
- package/dist/implementation/world/layout-directory.d.ts +107 -0
- package/dist/implementation/world/layout-directory.js +218 -0
- package/dist/implementation/world/layout-directory.js.map +1 -0
- package/dist/implementation/world/lists.d.ts +56 -0
- package/dist/implementation/world/lists.js +118 -0
- package/dist/implementation/world/lists.js.map +1 -0
- package/dist/implementation/world/lookup-keys.d.ts +19 -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 +253 -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 +64 -0
- package/dist/implementation/world/memory.js.map +1 -0
- package/dist/implementation/world/mirror.d.ts +112 -0
- package/dist/implementation/world/mirror.js +542 -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 +131 -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 +323 -0
- package/dist/implementation/world/order.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 +263 -0
- package/dist/implementation/world/pool.js.map +1 -0
- package/dist/implementation/world/port.d.ts +61 -0
- package/dist/implementation/world/port.js +104 -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 +98 -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 +115 -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 +185 -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 +11 -0
- package/dist/implementation/world/ranges.js +47 -0
- package/dist/implementation/world/ranges.js.map +1 -0
- package/dist/implementation/world/reductions.d.ts +32 -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 +139 -0
- package/dist/implementation/world/remote-systems.js +551 -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 +137 -0
- package/dist/implementation/world/remote.js.map +1 -0
- package/dist/implementation/world/reports.d.ts +63 -0
- package/dist/implementation/world/reports.js +180 -0
- package/dist/implementation/world/reports.js.map +1 -0
- package/dist/implementation/world/resources.d.ts +20 -0
- package/dist/implementation/world/resources.js +63 -0
- package/dist/implementation/world/resources.js.map +1 -0
- package/dist/implementation/world/rows.d.ts +108 -0
- package/dist/implementation/world/rows.js +479 -0
- package/dist/implementation/world/rows.js.map +1 -0
- package/dist/implementation/world/runner.d.ts +123 -0
- package/dist/implementation/world/runner.js +1014 -0
- package/dist/implementation/world/runner.js.map +1 -0
- package/dist/implementation/world/sharing.d.ts +47 -0
- package/dist/implementation/world/sharing.js +548 -0
- package/dist/implementation/world/sharing.js.map +1 -0
- package/dist/implementation/world/staging.d.ts +60 -0
- package/dist/implementation/world/staging.js +169 -0
- package/dist/implementation/world/staging.js.map +1 -0
- package/dist/implementation/world/state.d.ts +261 -0
- package/dist/implementation/world/state.js +335 -0
- package/dist/implementation/world/state.js.map +1 -0
- package/dist/implementation/world/stop-lists.d.ts +114 -0
- package/dist/implementation/world/stop-lists.js +250 -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 +213 -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 +39 -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 +868 -0
- package/dist/implementation/world/synchronize.js.map +1 -0
- package/dist/implementation/world/tail-blocks.d.ts +40 -0
- package/dist/implementation/world/tail-blocks.js +54 -0
- package/dist/implementation/world/tail-blocks.js.map +1 -0
- package/dist/implementation/world/tails.d.ts +114 -0
- package/dist/implementation/world/tails.js +441 -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 +12 -0
- package/dist/implementation/world/terminal.js.map +1 -0
- package/dist/implementation/world/thread-directory.d.ts +66 -0
- package/dist/implementation/world/thread-directory.js +173 -0
- package/dist/implementation/world/thread-directory.js.map +1 -0
- package/dist/implementation/world/thread-finalizers.d.ts +52 -0
- package/dist/implementation/world/thread-finalizers.js +266 -0
- package/dist/implementation/world/thread-finalizers.js.map +1 -0
- package/dist/implementation/world/thread-indexes.d.ts +26 -0
- package/dist/implementation/world/thread-indexes.js +71 -0
- package/dist/implementation/world/thread-indexes.js.map +1 -0
- package/dist/implementation/world/thread-observer.d.ts +41 -0
- package/dist/implementation/world/thread-observer.js +181 -0
- package/dist/implementation/world/thread-observer.js.map +1 -0
- package/dist/implementation/world/thread-systems.d.ts +113 -0
- package/dist/implementation/world/thread-systems.js +1169 -0
- package/dist/implementation/world/thread-systems.js.map +1 -0
- package/dist/implementation/world/thread-tasks.d.ts +61 -0
- package/dist/implementation/world/thread-tasks.js +69 -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 +32 -0
- package/dist/implementation/world/up.js +723 -0
- package/dist/implementation/world/up.js.map +1 -0
- package/dist/implementation/world/wasm.d.ts +112 -0
- package/dist/implementation/world/wasm.js +2159 -0
- package/dist/implementation/world/wasm.js.map +1 -0
- package/dist/implementation/world/wgsl.d.ts +20 -0
- package/dist/implementation/world/wgsl.js +485 -0
- package/dist/implementation/world/wgsl.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.d.ts +1 -0
- package/dist/implementation/world/worker.js +510 -0
- package/dist/implementation/world/worker.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/interface/archetype/archetype.d.ts +2 -0
- package/dist/interface/archetype/archetype.js +2 -0
- package/dist/interface/archetype/archetype.js.map +1 -0
- package/dist/interface/archetype/create.d.ts +7 -0
- package/dist/interface/archetype/create.js +11 -0
- package/dist/interface/archetype/create.js.map +1 -0
- package/dist/interface/archetype/index.d.ts +1 -0
- package/dist/interface/archetype/index.js +2 -0
- package/dist/interface/archetype/index.js.map +1 -0
- package/dist/interface/archetype/values-of.d.ts +17 -0
- package/dist/interface/archetype/values-of.js +2 -0
- package/dist/interface/archetype/values-of.js.map +1 -0
- package/dist/interface/component/component.d.ts +2 -0
- package/dist/interface/component/component.js +2 -0
- package/dist/interface/component/component.js.map +1 -0
- package/dist/interface/component/declaration.d.ts +74 -0
- package/dist/interface/component/declaration.js +2 -0
- package/dist/interface/component/declaration.js.map +1 -0
- package/dist/interface/component/index.d.ts +3 -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/register.d.ts +23 -0
- package/dist/interface/component/register.js +6 -0
- package/dist/interface/component/register.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 +34 -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 +8 -0
- package/dist/interface/entity/index.js +5 -0
- package/dist/interface/entity/index.js.map +1 -0
- package/dist/interface/finalizer/body.d.ts +50 -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 +97 -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 +38 -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 +2 -0
- package/dist/interface/finalizer/index.js.map +1 -0
- package/dist/interface/finalizer/name.d.ts +6 -0
- package/dist/interface/finalizer/name.js +2 -0
- package/dist/interface/finalizer/name.js.map +1 -0
- package/dist/interface/gpu/accessors.d.ts +14 -0
- package/dist/interface/gpu/accessors.js +70 -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 +3 -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 +21 -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 +6 -0
- package/dist/interface/gpu/record.js.map +1 -0
- package/dist/interface/gpu/wgsl.d.ts +8 -0
- package/dist/interface/gpu/wgsl.js +20 -0
- package/dist/interface/gpu/wgsl.js.map +1 -0
- package/dist/interface/index.d.ts +19 -0
- package/dist/interface/index.js +14 -0
- package/dist/interface/index.js.map +1 -0
- package/dist/interface/indexes/create.d.ts +30 -0
- package/dist/interface/indexes/create.js +79 -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 +13 -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 +2 -0
- package/dist/interface/indexes/index.js.map +1 -0
- package/dist/interface/indexes/name.d.ts +5 -0
- package/dist/interface/indexes/name.js +2 -0
- package/dist/interface/indexes/name.js.map +1 -0
- package/dist/interface/math/f32/index.d.ts +2 -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 +1 -0
- package/dist/interface/math/f32/public.js +2 -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 +6 -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/index.d.ts +3 -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 +2 -0
- package/dist/interface/math/i32/public.js +3 -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 +9 -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 +24 -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 +20 -0
- package/dist/interface/math/mat4x4/public.js +21 -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 +2 -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 +24 -0
- package/dist/interface/math/quat/public.js +25 -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/index.d.ts +3 -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 +6 -0
- package/dist/interface/math/u32/public.js +7 -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 +2 -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 +47 -0
- package/dist/interface/math/vec2/f32/public.js +48 -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 +3 -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 +21 -0
- package/dist/interface/math/vec2/i32/public.js +22 -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 +4 -0
- package/dist/interface/math/vec2/public.js +5 -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 +20 -0
- package/dist/interface/math/vec2/u32/public.js +21 -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 +3 -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 +2 -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 +53 -0
- package/dist/interface/math/vec3/f32/public.js +54 -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 +3 -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 +23 -0
- package/dist/interface/math/vec3/i32/public.js +24 -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 +4 -0
- package/dist/interface/math/vec3/public.js +5 -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 +23 -0
- package/dist/interface/math/vec3/u32/public.js +24 -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 +3 -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/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 +2 -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 +46 -0
- package/dist/interface/math/vec4/f32/public.js +47 -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 +3 -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 +23 -0
- package/dist/interface/math/vec4/i32/public.js +24 -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 +4 -0
- package/dist/interface/math/vec4/public.js +5 -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 +22 -0
- package/dist/interface/math/vec4/u32/public.js +23 -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 +3 -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 +7 -0
- package/dist/interface/registry/archetypes.js +22 -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 +107 -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 +12 -0
- package/dist/interface/registry/ids.js +28 -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 +43 -0
- package/dist/interface/registry/items.js +108 -0
- package/dist/interface/registry/items.js.map +1 -0
- package/dist/interface/registry/layout.d.ts +59 -0
- package/dist/interface/registry/layout.js +312 -0
- package/dist/interface/registry/layout.js.map +1 -0
- package/dist/interface/registry/names.d.ts +38 -0
- package/dist/interface/registry/names.js +136 -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 +32 -0
- package/dist/interface/registry/schedule.js +207 -0
- package/dist/interface/registry/schedule.js.map +1 -0
- package/dist/interface/registry/schemas.d.ts +13 -0
- package/dist/interface/registry/schemas.js +57 -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 +94 -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 +52 -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 +10 -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 +13 -0
- package/dist/interface/registry/written.js.map +1 -0
- package/dist/interface/report/components.d.ts +38 -0
- package/dist/interface/report/components.js +48 -0
- package/dist/interface/report/components.js.map +1 -0
- package/dist/interface/report/failure.d.ts +29 -0
- package/dist/interface/report/failure.js +2 -0
- package/dist/interface/report/failure.js.map +1 -0
- package/dist/interface/report/index.d.ts +5 -0
- package/dist/interface/report/index.js +6 -0
- package/dist/interface/report/index.js.map +1 -0
- package/dist/interface/report/report.d.ts +12 -0
- package/dist/interface/report/report.js +2 -0
- package/dist/interface/report/report.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/declaration.d.ts +31 -0
- package/dist/interface/resource/declaration.js +2 -0
- package/dist/interface/resource/declaration.js.map +1 -0
- package/dist/interface/resource/index.d.ts +3 -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/register.d.ts +13 -0
- package/dist/interface/resource/register.js +6 -0
- package/dist/interface/resource/register.js.map +1 -0
- package/dist/interface/resource/resource.d.ts +2 -0
- package/dist/interface/resource/resource.js +2 -0
- package/dist/interface/resource/resource.js.map +1 -0
- package/dist/interface/resource/types.d.ts +3 -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 +5 -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 +17 -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 +10 -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 +9 -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 +7 -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 +8 -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 +5 -0
- package/dist/interface/resources/workers.js.map +1 -0
- package/dist/interface/rule/create.d.ts +9 -0
- package/dist/interface/rule/create.js +25 -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 +13 -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 +2 -0
- package/dist/interface/rule/index.js.map +1 -0
- package/dist/interface/rule/name.d.ts +6 -0
- package/dist/interface/rule/name.js +2 -0
- package/dist/interface/rule/name.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-data.d.ts +19 -0
- package/dist/interface/schema/is-data.js +2 -0
- package/dist/interface/schema/is-data.js.map +1 -0
- package/dist/interface/schema/is-struct.d.ts +28 -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 +151 -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 +71 -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 +56 -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 +14 -0
- package/dist/interface/system/check.js +256 -0
- package/dist/interface/system/check.js.map +1 -0
- package/dist/interface/system/commands.d.ts +25 -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 +13 -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.d.ts +212 -0
- package/dist/interface/system/create.js +29 -0
- package/dist/interface/system/create.js.map +1 -0
- package/dist/interface/system/declaration.d.ts +71 -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 +28 -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 +12 -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 +2 -0
- package/dist/interface/system/property.js.map +1 -0
- package/dist/interface/system/render.d.ts +65 -0
- package/dist/interface/system/render.js +32 -0
- package/dist/interface/system/render.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 +10 -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 +46 -0
- package/dist/interface/system/threads.js +2 -0
- package/dist/interface/system/threads.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 +9 -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/index.d.ts +1 -0
- package/dist/interface/trait/index.js +2 -0
- package/dist/interface/trait/index.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/register.d.ts +7 -0
- package/dist/interface/trait/register.js +8 -0
- package/dist/interface/trait/register.js.map +1 -0
- package/dist/interface/trait/required.d.ts +10 -0
- package/dist/interface/trait/required.js +2 -0
- package/dist/interface/trait/required.js.map +1 -0
- package/dist/interface/trait/symbol-keys.d.ts +16 -0
- package/dist/interface/trait/symbol-keys.js +2 -0
- package/dist/interface/trait/symbol-keys.js.map +1 -0
- package/dist/interface/trait/trait.d.ts +2 -0
- package/dist/interface/trait/trait.js +2 -0
- package/dist/interface/trait/trait.js.map +1 -0
- package/dist/interface/trait/types.d.ts +56 -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 +15 -0
- package/dist/interface/world/create.js +2 -0
- package/dist/interface/world/create.js.map +1 -0
- package/dist/interface/world/filter.d.ts +8 -0
- package/dist/interface/world/filter.js +2 -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 +11 -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 +59 -0
- package/dist/interface/world/world.js +2 -0
- package/dist/interface/world/world.js.map +1 -0
- package/package.json +66 -3
- package/src/exports.test.ts +171 -0
- package/src/guide/01-resources.test.ts +44 -0
- package/src/guide/02-entities.test.ts +57 -0
- package/src/guide/03-systems.test.ts +87 -0
- package/src/guide/04-ticks.test.ts +73 -0
- package/src/guide/05-scheduling.test.ts +60 -0
- package/src/guide/06-sync-points.test.ts +59 -0
- package/src/guide/07-change-filters.test.ts +87 -0
- package/src/guide/08-input.test.ts +47 -0
- package/src/guide/09-rules.test.ts +57 -0
- package/src/guide/10-finalizers.test.ts +64 -0
- package/src/guide/11-traits.test.ts +58 -0
- package/src/guide/11-traits.type-test.ts +27 -0
- package/src/guide/13-indexes.test.ts +95 -0
- package/src/guide/CLAUDE.md +34 -0
- package/src/guide/guide.md +551 -0
- package/src/implementation/compiler/access.ts +143 -0
- package/src/implementation/compiler/assign.ts +167 -0
- package/src/implementation/compiler/bind.ts +87 -0
- package/src/implementation/compiler/body-access.ts +332 -0
- package/src/implementation/compiler/booleans.ts +38 -0
- package/src/implementation/compiler/branches.ts +45 -0
- package/src/implementation/compiler/calls.ts +384 -0
- package/src/implementation/compiler/columns.ts +46 -0
- package/src/implementation/compiler/compile-kernel.ts +139 -0
- package/src/implementation/compiler/data.ts +94 -0
- package/src/implementation/compiler/estree.ts +63 -0
- package/src/implementation/compiler/exact.ts +77 -0
- package/src/implementation/compiler/expression.ts +124 -0
- package/src/implementation/compiler/failure.ts +37 -0
- package/src/implementation/compiler/hygiene.test.ts +73 -0
- package/src/implementation/compiler/identify.test.ts +155 -0
- package/src/implementation/compiler/identify.ts +155 -0
- package/src/implementation/compiler/index.ts +1 -0
- package/src/implementation/compiler/ir.ts +101 -0
- package/src/implementation/compiler/kernel-id.ts +33 -0
- package/src/implementation/compiler/key.ts +32 -0
- package/src/implementation/compiler/link.test.ts +70 -0
- package/src/implementation/compiler/link.ts +202 -0
- package/src/implementation/compiler/lists.ts +202 -0
- package/src/implementation/compiler/lookups.ts +120 -0
- package/src/implementation/compiler/math.ts +9 -0
- package/src/implementation/compiler/module-scope.ts +140 -0
- package/src/implementation/compiler/module-value.ts +121 -0
- package/src/implementation/compiler/out.ts +6 -0
- package/src/implementation/compiler/paths.ts +43 -0
- package/src/implementation/compiler/plugin.test.ts +375 -0
- package/src/implementation/compiler/plugin.ts +223 -0
- package/src/implementation/compiler/print.ts +104 -0
- package/src/implementation/compiler/program.ts +232 -0
- package/src/implementation/compiler/scalar.ts +46 -0
- package/src/implementation/compiler/scope.ts +27 -0
- package/src/implementation/compiler/serialize.ts +10 -0
- package/src/implementation/compiler/signature.ts +170 -0
- package/src/implementation/compiler/snapshot.ts +34 -0
- package/src/implementation/compiler/source-map.test.ts +40 -0
- package/src/implementation/compiler/source-map.ts +134 -0
- package/src/implementation/compiler/spawns.ts +114 -0
- package/src/implementation/compiler/stamps.ts +24 -0
- package/src/implementation/compiler/statement.ts +102 -0
- package/src/implementation/compiler/subset.md +82 -0
- package/src/implementation/compiler/terminal.ts +49 -0
- package/src/implementation/compiler/transform.test.ts +1421 -0
- package/src/implementation/compiler/transform.ts +239 -0
- package/src/implementation/compiler/unit.ts +114 -0
- package/src/implementation/compiler/value.ts +60 -0
- package/src/implementation/index.ts +2 -0
- package/src/implementation/world/activate.ts +127 -0
- package/src/implementation/world/archetype.ts +387 -0
- package/src/implementation/world/arrays.test.ts +24 -0
- package/src/implementation/world/arrays.ts +43 -0
- package/src/implementation/world/async-loading.test.ts +101 -0
- package/src/implementation/world/attach-kernel.test.ts +9 -0
- package/src/implementation/world/attach-kernel.ts +24 -0
- package/src/implementation/world/batches.test.ts +129 -0
- package/src/implementation/world/batches.ts +126 -0
- package/src/implementation/world/buffer.ts +145 -0
- package/src/implementation/world/builtins.test.ts +92 -0
- package/src/implementation/world/cascade.ts +144 -0
- package/src/implementation/world/cells.ts +24 -0
- package/src/implementation/world/changes-finalizers.test.ts +40 -0
- package/src/implementation/world/check-kernel.ts +86 -0
- package/src/implementation/world/claims.test.ts +41 -0
- package/src/implementation/world/claims.ts +50 -0
- package/src/implementation/world/closure.test.ts +39 -0
- package/src/implementation/world/closure.ts +40 -0
- package/src/implementation/world/command-ring.ts +474 -0
- package/src/implementation/world/command-rings.cases.ts +45 -0
- package/src/implementation/world/command-rings.fixture.ts +189 -0
- package/src/implementation/world/commands.test.ts +344 -0
- package/src/implementation/world/commands.ts +78 -0
- package/src/implementation/world/composite-input.test.ts +37 -0
- package/src/implementation/world/conditions.test.ts +124 -0
- package/src/implementation/world/create.test.ts +383 -0
- package/src/implementation/world/create.ts +825 -0
- package/src/implementation/world/directories.ts +86 -0
- package/src/implementation/world/directory.test.ts +54 -0
- package/src/implementation/world/dispatch.cases.ts +32 -0
- package/src/implementation/world/dispatch.fixture.ts +172 -0
- package/src/implementation/world/entities.ts +189 -0
- package/src/implementation/world/entity-lookup-workers.cases.ts +18 -0
- package/src/implementation/world/entity-lookup-workers.fixture.ts +109 -0
- package/src/implementation/world/entity-lookups.browser.test.ts +57 -0
- package/src/implementation/world/entity-lookups.test-helper.ts +201 -0
- package/src/implementation/world/entity-lookups.test.ts +112 -0
- package/src/implementation/world/execute.ts +609 -0
- package/src/implementation/world/failures.ts +14 -0
- package/src/implementation/world/finalizers.test.ts +318 -0
- package/src/implementation/world/finalizers.ts +419 -0
- package/src/implementation/world/fixtures.test-helper.ts +19 -0
- package/src/implementation/world/generated-code.md +140 -0
- package/src/implementation/world/gpu.browser.test.ts +693 -0
- package/src/implementation/world/gpu.ts +393 -0
- package/src/implementation/world/holders.ts +68 -0
- package/src/implementation/world/ids.test.ts +68 -0
- package/src/implementation/world/imported-lists.test-helper.ts +22 -0
- package/src/implementation/world/imported-lists.test.ts +45 -0
- package/src/implementation/world/index-build-csp.test.ts +59 -0
- package/src/implementation/world/index-build.cases.ts +20 -0
- package/src/implementation/world/index-build.fixture.ts +125 -0
- package/src/implementation/world/index-build.ts +458 -0
- package/src/implementation/world/index-changed.test.ts +242 -0
- package/src/implementation/world/index-hash.ts +478 -0
- package/src/implementation/world/index-joined.test.ts +293 -0
- package/src/implementation/world/index-kernels.test.ts +204 -0
- package/src/implementation/world/index-keyless.test.ts +278 -0
- package/src/implementation/world/index-keys.ts +271 -0
- package/src/implementation/world/index-lookups-csp.test.ts +44 -0
- package/src/implementation/world/index-lookups.ts +623 -0
- package/src/implementation/world/index-order.test.ts +154 -0
- package/src/implementation/world/index-order.ts +182 -0
- package/src/implementation/world/index-readers.ts +324 -0
- package/src/implementation/world/index-sorted.test.ts +75 -0
- package/src/implementation/world/index-sorted.ts +651 -0
- package/src/implementation/world/index-workers.cases.ts +17 -0
- package/src/implementation/world/index-workers.fixture.ts +191 -0
- package/src/implementation/world/indexes.test.ts +731 -0
- package/src/implementation/world/indexes.ts +1209 -0
- package/src/implementation/world/input.ts +14 -0
- package/src/implementation/world/intrinsics-coverage.test.ts +25 -0
- package/src/implementation/world/intrinsics.browser.test.ts +584 -0
- package/src/implementation/world/intrinsics.ts +40 -0
- package/src/implementation/world/join.test.ts +170 -0
- package/src/implementation/world/join.ts +676 -0
- package/src/implementation/world/join.type-test.ts +27 -0
- package/src/implementation/world/joined-observer.ts +809 -0
- package/src/implementation/world/joining-worker.fixture.ts +69 -0
- package/src/implementation/world/joining.cases.ts +52 -0
- package/src/implementation/world/joining.fixture.ts +138 -0
- package/src/implementation/world/joining.test-helper.ts +92 -0
- package/src/implementation/world/joining.ts +309 -0
- package/src/implementation/world/journal.ts +36 -0
- package/src/implementation/world/kernel-imports-sparks.test-helper.ts +17 -0
- package/src/implementation/world/kernel-imports-steer.test-helper.ts +9 -0
- package/src/implementation/world/kernel-imports.test.ts +73 -0
- package/src/implementation/world/kernel-indexes.ts +165 -0
- package/src/implementation/world/kernel-lookup.test-helper.ts +30 -0
- package/src/implementation/world/kernel-path.test-helper.ts +20 -0
- package/src/implementation/world/kernel-spawns.test.ts +159 -0
- package/src/implementation/world/kernel.ts +244 -0
- package/src/implementation/world/kernels-csp.test.ts +42 -0
- package/src/implementation/world/kernels.test.ts +78 -0
- package/src/implementation/world/kernels.ts +329 -0
- package/src/implementation/world/layout-directory.browser.test.ts +205 -0
- package/src/implementation/world/layout-directory.cases.ts +37 -0
- package/src/implementation/world/layout-directory.fixture.ts +186 -0
- package/src/implementation/world/layout-directory.ts +230 -0
- package/src/implementation/world/lifetime.cases.ts +18 -0
- package/src/implementation/world/lifetime.fixture.ts +77 -0
- package/src/implementation/world/lifetime.test-helper.ts +78 -0
- package/src/implementation/world/lifetime.test.ts +87 -0
- package/src/implementation/world/lists.ts +152 -0
- package/src/implementation/world/lookup-keys.ts +48 -0
- package/src/implementation/world/loop.test.ts +182 -0
- package/src/implementation/world/loop.ts +295 -0
- package/src/implementation/world/memory.test.ts +41 -0
- package/src/implementation/world/memory.ts +89 -0
- package/src/implementation/world/mirror.ts +603 -0
- package/src/implementation/world/move-log.test.ts +326 -0
- package/src/implementation/world/move-log.ts +215 -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 +798 -0
- package/src/implementation/world/observe-factories.test.ts +303 -0
- package/src/implementation/world/observe-joined-cases.test.ts +232 -0
- package/src/implementation/world/observe-ticks-cases.test.ts +213 -0
- package/src/implementation/world/observe.test-helper.ts +13 -0
- package/src/implementation/world/observed-workers.cases.ts +12 -0
- package/src/implementation/world/observed-workers.fixture.ts +55 -0
- package/src/implementation/world/observer-contained-worker.fixture.ts +40 -0
- package/src/implementation/world/observer-contained.browser.test.ts +4 -0
- package/src/implementation/world/observer-contained.cases.ts +16 -0
- package/src/implementation/world/observer-contained.fixture.ts +125 -0
- package/src/implementation/world/observer-contained.test-helper.ts +43 -0
- package/src/implementation/world/observer-contained.test.ts +96 -0
- package/src/implementation/world/observer-joined-worker.fixture.ts +80 -0
- package/src/implementation/world/observer-joined.cases.ts +28 -0
- package/src/implementation/world/observer-joined.fixture.ts +286 -0
- package/src/implementation/world/observer-joined.test-helper.ts +180 -0
- package/src/implementation/world/observer-joined.test.ts +350 -0
- package/src/implementation/world/observer.browser.test.ts +73 -0
- package/src/implementation/world/observer.test.ts +301 -0
- package/src/implementation/world/observer.ts +139 -0
- package/src/implementation/world/order.ts +351 -0
- package/src/implementation/world/perf.md +356 -0
- package/src/implementation/world/plan.md +81 -0
- package/src/implementation/world/plan.ts +71 -0
- package/src/implementation/world/platforms.test-helper.ts +67 -0
- package/src/implementation/world/pool-size.cases.ts +23 -0
- package/src/implementation/world/pool-size.fixture.ts +66 -0
- package/src/implementation/world/pool.cases.ts +30 -0
- package/src/implementation/world/pool.fixture.ts +54 -0
- package/src/implementation/world/pool.ts +323 -0
- package/src/implementation/world/port.ts +141 -0
- package/src/implementation/world/ports.cases.ts +37 -0
- package/src/implementation/world/ports.fixture.ts +107 -0
- package/src/implementation/world/ports.type-test.ts +14 -0
- package/src/implementation/world/prepared-lookup.ts +95 -0
- package/src/implementation/world/prepared-spawn.ts +161 -0
- package/src/implementation/world/program.ts +13 -0
- package/src/implementation/world/protocol.ts +127 -0
- package/src/implementation/world/publish.ts +28 -0
- package/src/implementation/world/ranges.ts +44 -0
- package/src/implementation/world/reads.test-helper.ts +29 -0
- package/src/implementation/world/reductions.cases.ts +22 -0
- package/src/implementation/world/reductions.fixture.ts +65 -0
- package/src/implementation/world/reductions.test.ts +279 -0
- package/src/implementation/world/reductions.ts +105 -0
- package/src/implementation/world/reevaluation.test-helper.ts +16 -0
- package/src/implementation/world/reevaluation.test.ts +32 -0
- package/src/implementation/world/register.ts +412 -0
- package/src/implementation/world/remote-finalizers-worker.fixture.ts +44 -0
- package/src/implementation/world/remote-finalizers.cases.ts +24 -0
- package/src/implementation/world/remote-finalizers.fixture.ts +140 -0
- package/src/implementation/world/remote-finalizers.test-helper.ts +160 -0
- package/src/implementation/world/remote-finalizers.test.ts +188 -0
- package/src/implementation/world/remote-objects-worker.fixture.ts +20 -0
- package/src/implementation/world/remote-objects.cases.ts +16 -0
- package/src/implementation/world/remote-objects.fixture.ts +59 -0
- package/src/implementation/world/remote-objects.test-helper.ts +107 -0
- package/src/implementation/world/remote-systems.ts +627 -0
- package/src/implementation/world/remote.test.ts +186 -0
- package/src/implementation/world/remote.ts +125 -0
- package/src/implementation/world/removal-worker.fixture.ts +20 -0
- package/src/implementation/world/removal.cases.ts +16 -0
- package/src/implementation/world/removal.fixture.ts +95 -0
- package/src/implementation/world/remove-joined.test.ts +181 -0
- package/src/implementation/world/remove.test-helper.ts +84 -0
- package/src/implementation/world/remove.test.ts +194 -0
- package/src/implementation/world/reports.test-helper.ts +117 -0
- package/src/implementation/world/reports.test.ts +167 -0
- package/src/implementation/world/reports.ts +203 -0
- package/src/implementation/world/resources.ts +67 -0
- package/src/implementation/world/rows.test.ts +78 -0
- package/src/implementation/world/rows.ts +515 -0
- package/src/implementation/world/rules.test.ts +243 -0
- package/src/implementation/world/runner.ts +1073 -0
- package/src/implementation/world/schedule.test.ts +124 -0
- package/src/implementation/world/semantics.test.ts +100 -0
- package/src/implementation/world/share.test.ts +17 -0
- package/src/implementation/world/sharing.ts +588 -0
- package/src/implementation/world/staging.ts +196 -0
- package/src/implementation/world/state.ts +521 -0
- package/src/implementation/world/stop-lists.ts +308 -0
- package/src/implementation/world/strings.test.ts +200 -0
- package/src/implementation/world/strings.ts +246 -0
- package/src/implementation/world/structure.ts +70 -0
- package/src/implementation/world/synchronize.test.ts +54 -0
- package/src/implementation/world/synchronize.ts +762 -0
- package/src/implementation/world/tail-blocks.ts +74 -0
- package/src/implementation/world/tails-worker.fixture.ts +66 -0
- package/src/implementation/world/tails.cases.ts +44 -0
- package/src/implementation/world/tails.fixture.ts +254 -0
- package/src/implementation/world/tails.test-helper.ts +166 -0
- package/src/implementation/world/tails.test.ts +114 -0
- package/src/implementation/world/tails.ts +477 -0
- package/src/implementation/world/target.test.ts +73 -0
- package/src/implementation/world/terminal.ts +13 -0
- package/src/implementation/world/thread-directory.ts +210 -0
- package/src/implementation/world/thread-finalizers.ts +318 -0
- package/src/implementation/world/thread-indexes.ts +90 -0
- package/src/implementation/world/thread-observer.ts +234 -0
- package/src/implementation/world/thread-systems-worker.fixture.ts +70 -0
- package/src/implementation/world/thread-systems.cases.ts +41 -0
- package/src/implementation/world/thread-systems.fixture.ts +205 -0
- package/src/implementation/world/thread-systems.test-helper.ts +325 -0
- package/src/implementation/world/thread-systems.test.ts +120 -0
- package/src/implementation/world/thread-systems.ts +1200 -0
- package/src/implementation/world/thread-tasks.ts +75 -0
- package/src/implementation/world/threads.browser.test.ts +46 -0
- package/src/implementation/world/threads.test.ts +73 -0
- package/src/implementation/world/ticks.browser.test.ts +44 -0
- package/src/implementation/world/ticks.test.ts +34 -0
- package/src/implementation/world/traits.test.ts +66 -0
- package/src/implementation/world/transfers-worker.fixture.ts +114 -0
- package/src/implementation/world/transfers.cases.ts +30 -0
- package/src/implementation/world/transfers.fixture.ts +147 -0
- package/src/implementation/world/transfers.test-helper.ts +111 -0
- package/src/implementation/world/transfers.test.ts +157 -0
- package/src/implementation/world/transfers.ts +104 -0
- package/src/implementation/world/up-tree.test.ts +152 -0
- package/src/implementation/world/up-workers.cases.ts +13 -0
- package/src/implementation/world/up-workers.fixture.ts +67 -0
- package/src/implementation/world/up.browser.test.ts +78 -0
- package/src/implementation/world/up.test.ts +284 -0
- package/src/implementation/world/up.ts +684 -0
- package/src/implementation/world/wasm-kernels.test.ts +269 -0
- package/src/implementation/world/wasm.test.ts +381 -0
- package/src/implementation/world/wasm.ts +2093 -0
- package/src/implementation/world/wgsl.test.ts +41 -0
- package/src/implementation/world/wgsl.ts +464 -0
- package/src/implementation/world/worker-platform.ts +105 -0
- package/src/implementation/world/worker.ts +560 -0
- package/src/implementation/world/workers.cases.ts +59 -0
- package/src/implementation/world/workers.fixture.ts +261 -0
- package/src/implementation/world/world-host.fixture.ts +10 -0
- package/src/index.ts +16 -0
- package/src/interface/CLAUDE.md +33 -0
- package/src/interface/archetype/archetype.ts +3 -0
- package/src/interface/archetype/archetype.type-test.ts +37 -0
- package/src/interface/archetype/create.test.ts +40 -0
- package/src/interface/archetype/create.ts +12 -0
- package/src/interface/archetype/index.ts +1 -0
- package/src/interface/archetype/values-of.ts +16 -0
- package/src/interface/component/component.ts +4 -0
- package/src/interface/component/declaration.ts +67 -0
- package/src/interface/component/declaration.type-test.ts +87 -0
- package/src/interface/component/index.ts +3 -0
- package/src/interface/component/key.ts +3 -0
- package/src/interface/component/key.type-test.ts +31 -0
- package/src/interface/component/register.test.ts +124 -0
- package/src/interface/component/register.ts +28 -0
- package/src/interface/component/types.ts +6 -0
- package/src/interface/component/value.ts +34 -0
- package/src/interface/component/values.ts +5 -0
- package/src/interface/entity/entity.ts +9 -0
- package/src/interface/entity/index.ts +8 -0
- package/src/interface/finalizer/body.ts +51 -0
- package/src/interface/finalizer/create.test.ts +148 -0
- package/src/interface/finalizer/create.ts +128 -0
- package/src/interface/finalizer/created.ts +21 -0
- package/src/interface/finalizer/declaration.ts +29 -0
- package/src/interface/finalizer/finalizer.ts +7 -0
- package/src/interface/finalizer/index.ts +1 -0
- package/src/interface/finalizer/name.ts +6 -0
- package/src/interface/gpu/accessors.ts +72 -0
- package/src/interface/gpu/gpu.ts +4 -0
- package/src/interface/gpu/gpu.type-test.ts +27 -0
- package/src/interface/gpu/index.ts +2 -0
- package/src/interface/gpu/layout.ts +22 -0
- package/src/interface/gpu/record.ts +5 -0
- package/src/interface/gpu/wgsl.ts +20 -0
- package/src/interface/index.ts +19 -0
- package/src/interface/index.type-test.ts +55 -0
- package/src/interface/indexes/create.test.ts +145 -0
- package/src/interface/indexes/create.ts +80 -0
- package/src/interface/indexes/created.ts +4 -0
- package/src/interface/indexes/declaration.ts +11 -0
- package/src/interface/indexes/index-type.ts +12 -0
- package/src/interface/indexes/index.ts +1 -0
- package/src/interface/indexes/index.type-test.ts +293 -0
- package/src/interface/indexes/name.ts +5 -0
- package/src/interface/math/f32/index.ts +3 -0
- package/src/interface/math/f32/public.ts +1 -0
- package/src/interface/math/f32/round-half-even.ts +5 -0
- package/src/interface/math/f32/schema.ts +3 -0
- package/src/interface/math/i32/index.ts +4 -0
- package/src/interface/math/i32/public.ts +2 -0
- package/src/interface/math/i32/schema.ts +3 -0
- package/src/interface/math/i32/shift-right.ts +3 -0
- package/src/interface/math/index.ts +8 -0
- package/src/interface/math/intrinsic.ts +18 -0
- package/src/interface/math/mat4x4/add.ts +9 -0
- package/src/interface/math/mat4x4/determinant.ts +26 -0
- package/src/interface/math/mat4x4/identity.ts +8 -0
- package/src/interface/math/mat4x4/index.ts +26 -0
- package/src/interface/math/mat4x4/inverse.ts +49 -0
- package/src/interface/math/mat4x4/look-at.test.ts +13 -0
- package/src/interface/math/mat4x4/look-at.ts +26 -0
- package/src/interface/math/mat4x4/multiply-vec3.ts +8 -0
- package/src/interface/math/mat4x4/multiply-vec4.ts +10 -0
- package/src/interface/math/mat4x4/multiply.ts +22 -0
- package/src/interface/math/mat4x4/orthographic.ts +20 -0
- package/src/interface/math/mat4x4/perspective.ts +20 -0
- package/src/interface/math/mat4x4/public.ts +20 -0
- package/src/interface/math/mat4x4/rotation-x.ts +12 -0
- package/src/interface/math/mat4x4/rotation-y.ts +12 -0
- package/src/interface/math/mat4x4/rotation-z.ts +12 -0
- package/src/interface/math/mat4x4/rotation.test.ts +16 -0
- package/src/interface/math/mat4x4/scale.ts +9 -0
- package/src/interface/math/mat4x4/scaling.ts +8 -0
- package/src/interface/math/mat4x4/schema.ts +4 -0
- package/src/interface/math/mat4x4/subtract.ts +9 -0
- package/src/interface/math/mat4x4/translation.ts +8 -0
- package/src/interface/math/mat4x4/transpose.ts +9 -0
- package/src/interface/math/mat4x4/zero.ts +8 -0
- package/src/interface/math/math.type-test.ts +20 -0
- package/src/interface/math/quat/add.ts +9 -0
- package/src/interface/math/quat/align-to.ts +44 -0
- package/src/interface/math/quat/conjugate.ts +3 -0
- package/src/interface/math/quat/distance.ts +5 -0
- package/src/interface/math/quat/dot.ts +5 -0
- package/src/interface/math/quat/from-axis-angle.ts +14 -0
- package/src/interface/math/quat/from-euler.ts +17 -0
- package/src/interface/math/quat/identity.ts +3 -0
- package/src/interface/math/quat/index.ts +3 -0
- package/src/interface/math/quat/inverse.ts +10 -0
- package/src/interface/math/quat/length-squared.ts +3 -0
- package/src/interface/math/quat/length.ts +4 -0
- package/src/interface/math/quat/lerp.ts +8 -0
- package/src/interface/math/quat/look-at.ts +52 -0
- package/src/interface/math/quat/multiply.ts +8 -0
- package/src/interface/math/quat/negate.ts +4 -0
- package/src/interface/math/quat/normalize.ts +8 -0
- package/src/interface/math/quat/public.ts +24 -0
- package/src/interface/math/quat/rotate-vec3.ts +16 -0
- package/src/interface/math/quat/scale.ts +4 -0
- package/src/interface/math/quat/schema.ts +4 -0
- package/src/interface/math/quat/slerp.ts +26 -0
- package/src/interface/math/quat/subtract.ts +9 -0
- package/src/interface/math/quat/to-axis-angle.ts +14 -0
- package/src/interface/math/quat/to-euler.ts +25 -0
- package/src/interface/math/quat/to-mat4.ts +27 -0
- package/src/interface/math/semantics.test.ts +50 -0
- package/src/interface/math/u32/count-leading-zeros.ts +4 -0
- package/src/interface/math/u32/count-one-bits.ts +10 -0
- package/src/interface/math/u32/count-trailing-zeros.ts +7 -0
- package/src/interface/math/u32/index.ts +4 -0
- package/src/interface/math/u32/public.ts +6 -0
- package/src/interface/math/u32/reverse-bits.ts +11 -0
- package/src/interface/math/u32/schema.ts +3 -0
- package/src/interface/math/u32/shift-right.ts +3 -0
- package/src/interface/math/vec2/f32/abs.ts +4 -0
- package/src/interface/math/vec2/f32/acos.ts +4 -0
- package/src/interface/math/vec2/f32/acosh.ts +4 -0
- package/src/interface/math/vec2/f32/add.ts +4 -0
- package/src/interface/math/vec2/f32/asin.ts +4 -0
- package/src/interface/math/vec2/f32/asinh.ts +4 -0
- package/src/interface/math/vec2/f32/atan.ts +4 -0
- package/src/interface/math/vec2/f32/atanh.ts +4 -0
- package/src/interface/math/vec2/f32/ceil.ts +4 -0
- package/src/interface/math/vec2/f32/clamp.ts +6 -0
- package/src/interface/math/vec2/f32/cos.ts +4 -0
- package/src/interface/math/vec2/f32/cosh.ts +4 -0
- package/src/interface/math/vec2/f32/distance.ts +6 -0
- package/src/interface/math/vec2/f32/dot.ts +4 -0
- package/src/interface/math/vec2/f32/equals.ts +3 -0
- package/src/interface/math/vec2/f32/exp.ts +4 -0
- package/src/interface/math/vec2/f32/exp2.ts +4 -0
- package/src/interface/math/vec2/f32/f32.ts +3 -0
- package/src/interface/math/vec2/f32/faceforward.ts +7 -0
- package/src/interface/math/vec2/f32/floor.ts +4 -0
- package/src/interface/math/vec2/f32/fract.ts +4 -0
- package/src/interface/math/vec2/f32/length.ts +4 -0
- package/src/interface/math/vec2/f32/log.ts +4 -0
- package/src/interface/math/vec2/f32/log2.ts +4 -0
- package/src/interface/math/vec2/f32/max.ts +4 -0
- package/src/interface/math/vec2/f32/min.ts +4 -0
- package/src/interface/math/vec2/f32/mix.ts +7 -0
- package/src/interface/math/vec2/f32/mod.ts +3 -0
- package/src/interface/math/vec2/f32/modf.ts +7 -0
- package/src/interface/math/vec2/f32/negate.ts +4 -0
- package/src/interface/math/vec2/f32/normalize.ts +6 -0
- package/src/interface/math/vec2/f32/pow.ts +8 -0
- package/src/interface/math/vec2/f32/public.ts +47 -0
- package/src/interface/math/vec2/f32/reflect.ts +10 -0
- package/src/interface/math/vec2/f32/refract.ts +15 -0
- package/src/interface/math/vec2/f32/round.ts +5 -0
- package/src/interface/math/vec2/f32/scale.ts +4 -0
- package/src/interface/math/vec2/f32/schema.ts +4 -0
- package/src/interface/math/vec2/f32/sign.ts +4 -0
- package/src/interface/math/vec2/f32/sin.ts +4 -0
- package/src/interface/math/vec2/f32/sinh.ts +4 -0
- package/src/interface/math/vec2/f32/smoothstep.ts +8 -0
- package/src/interface/math/vec2/f32/sqrt.ts +4 -0
- package/src/interface/math/vec2/f32/step.ts +7 -0
- package/src/interface/math/vec2/f32/subtract.ts +4 -0
- package/src/interface/math/vec2/f32/tan.ts +4 -0
- package/src/interface/math/vec2/f32/tanh.ts +4 -0
- package/src/interface/math/vec2/f32/trunc.ts +4 -0
- package/src/interface/math/vec2/f32/zero.ts +3 -0
- package/src/interface/math/vec2/i32/abs.ts +4 -0
- package/src/interface/math/vec2/i32/add.ts +4 -0
- package/src/interface/math/vec2/i32/bitwise-and.ts +4 -0
- package/src/interface/math/vec2/i32/bitwise-not.ts +4 -0
- package/src/interface/math/vec2/i32/bitwise-or.ts +4 -0
- package/src/interface/math/vec2/i32/bitwise-xor.ts +4 -0
- package/src/interface/math/vec2/i32/clamp.ts +6 -0
- package/src/interface/math/vec2/i32/count-leading-zeros.ts +8 -0
- package/src/interface/math/vec2/i32/count-one-bits.ts +8 -0
- package/src/interface/math/vec2/i32/count-trailing-zeros.ts +8 -0
- package/src/interface/math/vec2/i32/equals.ts +3 -0
- package/src/interface/math/vec2/i32/i32.ts +4 -0
- package/src/interface/math/vec2/i32/max.ts +4 -0
- package/src/interface/math/vec2/i32/min.ts +4 -0
- package/src/interface/math/vec2/i32/negate.ts +4 -0
- package/src/interface/math/vec2/i32/public.ts +21 -0
- package/src/interface/math/vec2/i32/reverse-bits.ts +5 -0
- package/src/interface/math/vec2/i32/scale.ts +5 -0
- package/src/interface/math/vec2/i32/schema.ts +4 -0
- package/src/interface/math/vec2/i32/shift-left.ts +3 -0
- package/src/interface/math/vec2/i32/shift-right.ts +7 -0
- package/src/interface/math/vec2/i32/subtract.ts +4 -0
- package/src/interface/math/vec2/i32/zero.ts +3 -0
- package/src/interface/math/vec2/index.ts +6 -0
- package/src/interface/math/vec2/public.ts +4 -0
- package/src/interface/math/vec2/u32/add.ts +7 -0
- package/src/interface/math/vec2/u32/bitwise-and.ts +7 -0
- package/src/interface/math/vec2/u32/bitwise-not.ts +4 -0
- package/src/interface/math/vec2/u32/bitwise-or.ts +7 -0
- package/src/interface/math/vec2/u32/bitwise-xor.ts +7 -0
- package/src/interface/math/vec2/u32/clamp.ts +6 -0
- package/src/interface/math/vec2/u32/count-leading-zeros.ts +8 -0
- package/src/interface/math/vec2/u32/count-one-bits.ts +8 -0
- package/src/interface/math/vec2/u32/count-trailing-zeros.ts +8 -0
- package/src/interface/math/vec2/u32/equals.ts +3 -0
- package/src/interface/math/vec2/u32/max.ts +7 -0
- package/src/interface/math/vec2/u32/min.ts +7 -0
- package/src/interface/math/vec2/u32/negate.ts +3 -0
- package/src/interface/math/vec2/u32/public.ts +20 -0
- package/src/interface/math/vec2/u32/reverse-bits.ts +8 -0
- package/src/interface/math/vec2/u32/scale.ts +5 -0
- package/src/interface/math/vec2/u32/schema.ts +4 -0
- package/src/interface/math/vec2/u32/shift-left.ts +3 -0
- package/src/interface/math/vec2/u32/shift-right.ts +7 -0
- package/src/interface/math/vec2/u32/subtract.ts +7 -0
- package/src/interface/math/vec2/u32/u32.ts +4 -0
- package/src/interface/math/vec2/u32/zero.ts +3 -0
- package/src/interface/math/vec3/f32/abs.ts +4 -0
- package/src/interface/math/vec3/f32/acos.ts +4 -0
- package/src/interface/math/vec3/f32/acosh.ts +4 -0
- package/src/interface/math/vec3/f32/add.ts +8 -0
- package/src/interface/math/vec3/f32/asin.ts +4 -0
- package/src/interface/math/vec3/f32/asinh.ts +4 -0
- package/src/interface/math/vec3/f32/atan.ts +4 -0
- package/src/interface/math/vec3/f32/atanh.ts +4 -0
- package/src/interface/math/vec3/f32/ceil.ts +4 -0
- package/src/interface/math/vec3/f32/clamp.ts +6 -0
- package/src/interface/math/vec3/f32/cos.ts +4 -0
- package/src/interface/math/vec3/f32/cosh.ts +4 -0
- package/src/interface/math/vec3/f32/cross.ts +8 -0
- package/src/interface/math/vec3/f32/distance-squared.ts +8 -0
- package/src/interface/math/vec3/f32/distance.ts +6 -0
- package/src/interface/math/vec3/f32/dot.ts +5 -0
- package/src/interface/math/vec3/f32/equals.ts +3 -0
- package/src/interface/math/vec3/f32/exp.ts +4 -0
- package/src/interface/math/vec3/f32/exp2.ts +4 -0
- package/src/interface/math/vec3/f32/f32.ts +3 -0
- package/src/interface/math/vec3/f32/faceforward.ts +7 -0
- package/src/interface/math/vec3/f32/floor.ts +4 -0
- package/src/interface/math/vec3/f32/fract.ts +8 -0
- package/src/interface/math/vec3/f32/length-squared.ts +4 -0
- package/src/interface/math/vec3/f32/length.ts +4 -0
- package/src/interface/math/vec3/f32/log.ts +4 -0
- package/src/interface/math/vec3/f32/log2.ts +4 -0
- package/src/interface/math/vec3/f32/max.ts +8 -0
- package/src/interface/math/vec3/f32/min.ts +8 -0
- package/src/interface/math/vec3/f32/mix.ts +8 -0
- package/src/interface/math/vec3/f32/mod.ts +7 -0
- package/src/interface/math/vec3/f32/modf.ts +7 -0
- package/src/interface/math/vec3/f32/multiply.ts +11 -0
- package/src/interface/math/vec3/f32/negate.ts +4 -0
- package/src/interface/math/vec3/f32/normalize.ts +6 -0
- package/src/interface/math/vec3/f32/one.ts +3 -0
- package/src/interface/math/vec3/f32/pow.ts +9 -0
- package/src/interface/math/vec3/f32/public.ts +53 -0
- package/src/interface/math/vec3/f32/random.ts +5 -0
- package/src/interface/math/vec3/f32/reflect.ts +10 -0
- package/src/interface/math/vec3/f32/refract.ts +15 -0
- package/src/interface/math/vec3/f32/round.ts +9 -0
- package/src/interface/math/vec3/f32/scale.ts +4 -0
- package/src/interface/math/vec3/f32/schema.ts +4 -0
- package/src/interface/math/vec3/f32/sign.ts +4 -0
- package/src/interface/math/vec3/f32/sin.ts +4 -0
- package/src/interface/math/vec3/f32/sinh.ts +4 -0
- package/src/interface/math/vec3/f32/smoothstep.ts +13 -0
- package/src/interface/math/vec3/f32/sqrt.ts +4 -0
- package/src/interface/math/vec3/f32/step.ts +8 -0
- package/src/interface/math/vec3/f32/subtract.ts +8 -0
- package/src/interface/math/vec3/f32/tan.ts +4 -0
- package/src/interface/math/vec3/f32/tanh.ts +4 -0
- package/src/interface/math/vec3/f32/trunc.ts +4 -0
- package/src/interface/math/vec3/f32/zero.ts +3 -0
- package/src/interface/math/vec3/i32/abs.ts +8 -0
- package/src/interface/math/vec3/i32/add.ts +8 -0
- package/src/interface/math/vec3/i32/bitwise-and.ts +8 -0
- package/src/interface/math/vec3/i32/bitwise-not.ts +4 -0
- package/src/interface/math/vec3/i32/bitwise-or.ts +8 -0
- package/src/interface/math/vec3/i32/bitwise-xor.ts +8 -0
- package/src/interface/math/vec3/i32/clamp.ts +6 -0
- package/src/interface/math/vec3/i32/count-leading-zeros.ts +9 -0
- package/src/interface/math/vec3/i32/count-one-bits.ts +9 -0
- package/src/interface/math/vec3/i32/count-trailing-zeros.ts +9 -0
- package/src/interface/math/vec3/i32/equals.ts +3 -0
- package/src/interface/math/vec3/i32/i32.ts +4 -0
- package/src/interface/math/vec3/i32/max.ts +8 -0
- package/src/interface/math/vec3/i32/min.ts +8 -0
- package/src/interface/math/vec3/i32/multiply.ts +8 -0
- package/src/interface/math/vec3/i32/negate.ts +8 -0
- package/src/interface/math/vec3/i32/one.ts +3 -0
- package/src/interface/math/vec3/i32/public.ts +23 -0
- package/src/interface/math/vec3/i32/reverse-bits.ts +9 -0
- package/src/interface/math/vec3/i32/scale.ts +9 -0
- package/src/interface/math/vec3/i32/schema.ts +4 -0
- package/src/interface/math/vec3/i32/shift-left.ts +3 -0
- package/src/interface/math/vec3/i32/shift-right.ts +8 -0
- package/src/interface/math/vec3/i32/subtract.ts +8 -0
- package/src/interface/math/vec3/i32/zero.ts +3 -0
- package/src/interface/math/vec3/index.ts +6 -0
- package/src/interface/math/vec3/public.ts +4 -0
- package/src/interface/math/vec3/u32/add.ts +8 -0
- package/src/interface/math/vec3/u32/bitwise-and.ts +8 -0
- package/src/interface/math/vec3/u32/bitwise-not.ts +4 -0
- package/src/interface/math/vec3/u32/bitwise-or.ts +8 -0
- package/src/interface/math/vec3/u32/bitwise-xor.ts +8 -0
- package/src/interface/math/vec3/u32/clamp.ts +6 -0
- package/src/interface/math/vec3/u32/count-leading-zeros.ts +9 -0
- package/src/interface/math/vec3/u32/count-one-bits.ts +9 -0
- package/src/interface/math/vec3/u32/count-trailing-zeros.ts +9 -0
- package/src/interface/math/vec3/u32/equals.ts +3 -0
- package/src/interface/math/vec3/u32/max.ts +8 -0
- package/src/interface/math/vec3/u32/min.ts +8 -0
- package/src/interface/math/vec3/u32/multiply.ts +8 -0
- package/src/interface/math/vec3/u32/negate.ts +3 -0
- package/src/interface/math/vec3/u32/one.ts +3 -0
- package/src/interface/math/vec3/u32/public.ts +23 -0
- package/src/interface/math/vec3/u32/reverse-bits.ts +9 -0
- package/src/interface/math/vec3/u32/scale.ts +9 -0
- package/src/interface/math/vec3/u32/schema.ts +4 -0
- package/src/interface/math/vec3/u32/shift-left.ts +7 -0
- package/src/interface/math/vec3/u32/shift-right.ts +8 -0
- package/src/interface/math/vec3/u32/subtract.ts +8 -0
- package/src/interface/math/vec3/u32/u32.ts +4 -0
- package/src/interface/math/vec3/u32/volume.ts +3 -0
- package/src/interface/math/vec3/u32/zero.ts +3 -0
- package/src/interface/math/vec4/f32/abs.ts +4 -0
- package/src/interface/math/vec4/f32/acos.ts +4 -0
- package/src/interface/math/vec4/f32/acosh.ts +4 -0
- package/src/interface/math/vec4/f32/add.ts +9 -0
- package/src/interface/math/vec4/f32/asin.ts +4 -0
- package/src/interface/math/vec4/f32/asinh.ts +4 -0
- package/src/interface/math/vec4/f32/atan.ts +4 -0
- package/src/interface/math/vec4/f32/atanh.ts +4 -0
- package/src/interface/math/vec4/f32/ceil.ts +4 -0
- package/src/interface/math/vec4/f32/clamp.ts +6 -0
- package/src/interface/math/vec4/f32/cos.ts +4 -0
- package/src/interface/math/vec4/f32/cosh.ts +4 -0
- package/src/interface/math/vec4/f32/distance.ts +6 -0
- package/src/interface/math/vec4/f32/dot.ts +5 -0
- package/src/interface/math/vec4/f32/exp.ts +4 -0
- package/src/interface/math/vec4/f32/exp2.ts +4 -0
- package/src/interface/math/vec4/f32/f32.ts +3 -0
- package/src/interface/math/vec4/f32/faceforward.ts +7 -0
- package/src/interface/math/vec4/f32/floor.ts +4 -0
- package/src/interface/math/vec4/f32/fract.ts +9 -0
- package/src/interface/math/vec4/f32/length.ts +4 -0
- package/src/interface/math/vec4/f32/log.ts +4 -0
- package/src/interface/math/vec4/f32/log2.ts +4 -0
- package/src/interface/math/vec4/f32/max.ts +9 -0
- package/src/interface/math/vec4/f32/min.ts +9 -0
- package/src/interface/math/vec4/f32/mix.ts +9 -0
- package/src/interface/math/vec4/f32/mod.ts +8 -0
- package/src/interface/math/vec4/f32/modf.ts +7 -0
- package/src/interface/math/vec4/f32/multiply.ts +9 -0
- package/src/interface/math/vec4/f32/negate.ts +4 -0
- package/src/interface/math/vec4/f32/normalize.ts +6 -0
- package/src/interface/math/vec4/f32/pow.ts +10 -0
- package/src/interface/math/vec4/f32/public.ts +46 -0
- package/src/interface/math/vec4/f32/reflect.ts +10 -0
- package/src/interface/math/vec4/f32/refract.ts +15 -0
- package/src/interface/math/vec4/f32/round.ts +10 -0
- package/src/interface/math/vec4/f32/scale.ts +4 -0
- package/src/interface/math/vec4/f32/schema.ts +4 -0
- package/src/interface/math/vec4/f32/sign.ts +4 -0
- package/src/interface/math/vec4/f32/sin.ts +4 -0
- package/src/interface/math/vec4/f32/sinh.ts +4 -0
- package/src/interface/math/vec4/f32/smoothstep.ts +15 -0
- package/src/interface/math/vec4/f32/sqrt.ts +4 -0
- package/src/interface/math/vec4/f32/step.ts +9 -0
- package/src/interface/math/vec4/f32/subtract.ts +9 -0
- package/src/interface/math/vec4/f32/tan.ts +4 -0
- package/src/interface/math/vec4/f32/tanh.ts +4 -0
- package/src/interface/math/vec4/f32/trunc.ts +4 -0
- package/src/interface/math/vec4/i32/abs.ts +9 -0
- package/src/interface/math/vec4/i32/add.ts +9 -0
- package/src/interface/math/vec4/i32/bitwise-and.ts +9 -0
- package/src/interface/math/vec4/i32/bitwise-not.ts +4 -0
- package/src/interface/math/vec4/i32/bitwise-or.ts +9 -0
- package/src/interface/math/vec4/i32/bitwise-xor.ts +9 -0
- package/src/interface/math/vec4/i32/clamp.ts +6 -0
- package/src/interface/math/vec4/i32/count-leading-zeros.ts +10 -0
- package/src/interface/math/vec4/i32/count-one-bits.ts +10 -0
- package/src/interface/math/vec4/i32/count-trailing-zeros.ts +10 -0
- package/src/interface/math/vec4/i32/equals.ts +4 -0
- package/src/interface/math/vec4/i32/i32.ts +4 -0
- package/src/interface/math/vec4/i32/max.ts +9 -0
- package/src/interface/math/vec4/i32/min.ts +9 -0
- package/src/interface/math/vec4/i32/multiply.ts +9 -0
- package/src/interface/math/vec4/i32/negate.ts +9 -0
- package/src/interface/math/vec4/i32/one.ts +3 -0
- package/src/interface/math/vec4/i32/public.ts +23 -0
- package/src/interface/math/vec4/i32/reverse-bits.ts +10 -0
- package/src/interface/math/vec4/i32/scale.ts +10 -0
- package/src/interface/math/vec4/i32/schema.ts +4 -0
- package/src/interface/math/vec4/i32/shift-left.ts +3 -0
- package/src/interface/math/vec4/i32/shift-right.ts +9 -0
- package/src/interface/math/vec4/i32/subtract.ts +9 -0
- package/src/interface/math/vec4/i32/zero.ts +3 -0
- package/src/interface/math/vec4/index.ts +6 -0
- package/src/interface/math/vec4/public.ts +4 -0
- package/src/interface/math/vec4/u32/add.ts +9 -0
- package/src/interface/math/vec4/u32/bitwise-and.ts +9 -0
- package/src/interface/math/vec4/u32/bitwise-not.ts +4 -0
- package/src/interface/math/vec4/u32/bitwise-or.ts +9 -0
- package/src/interface/math/vec4/u32/bitwise-xor.ts +9 -0
- package/src/interface/math/vec4/u32/clamp.ts +6 -0
- package/src/interface/math/vec4/u32/count-leading-zeros.ts +10 -0
- package/src/interface/math/vec4/u32/count-one-bits.ts +10 -0
- package/src/interface/math/vec4/u32/count-trailing-zeros.ts +10 -0
- package/src/interface/math/vec4/u32/equals.ts +4 -0
- package/src/interface/math/vec4/u32/max.ts +9 -0
- package/src/interface/math/vec4/u32/min.ts +9 -0
- package/src/interface/math/vec4/u32/multiply.ts +9 -0
- package/src/interface/math/vec4/u32/negate.ts +3 -0
- package/src/interface/math/vec4/u32/one.ts +3 -0
- package/src/interface/math/vec4/u32/public.ts +22 -0
- package/src/interface/math/vec4/u32/reverse-bits.ts +10 -0
- package/src/interface/math/vec4/u32/scale.ts +10 -0
- package/src/interface/math/vec4/u32/schema.ts +4 -0
- package/src/interface/math/vec4/u32/shift-left.ts +8 -0
- package/src/interface/math/vec4/u32/shift-right.ts +9 -0
- package/src/interface/math/vec4/u32/subtract.ts +9 -0
- package/src/interface/math/vec4/u32/u32.ts +4 -0
- package/src/interface/math/vec4/u32/zero.ts +3 -0
- package/src/interface/platform/platform.ts +35 -0
- package/src/interface/registry/archetypes.ts +23 -0
- package/src/interface/registry/declarations.ts +102 -0
- package/src/interface/registry/finalizer-order.ts +52 -0
- package/src/interface/registry/ids.test-helper.ts +14 -0
- package/src/interface/registry/ids.test.ts +124 -0
- package/src/interface/registry/ids.ts +30 -0
- package/src/interface/registry/index.ts +29 -0
- package/src/interface/registry/indexes.ts +73 -0
- package/src/interface/registry/items.ts +125 -0
- package/src/interface/registry/layout.test.ts +86 -0
- package/src/interface/registry/layout.ts +364 -0
- package/src/interface/registry/names.test.ts +75 -0
- package/src/interface/registry/names.ts +154 -0
- package/src/interface/registry/program.ts +111 -0
- package/src/interface/registry/reduction.ts +7 -0
- package/src/interface/registry/schedule.ts +215 -0
- package/src/interface/registry/schemas.ts +61 -0
- package/src/interface/registry/strata.ts +93 -0
- package/src/interface/registry/threads.ts +73 -0
- package/src/interface/registry/traits.ts +12 -0
- package/src/interface/registry/written.ts +14 -0
- package/src/interface/report/components.ts +69 -0
- package/src/interface/report/failure.ts +26 -0
- package/src/interface/report/index.ts +8 -0
- package/src/interface/report/report.ts +11 -0
- package/src/interface/report/report.type-test.ts +63 -0
- package/src/interface/resource/condition.ts +8 -0
- package/src/interface/resource/declaration.ts +29 -0
- package/src/interface/resource/declaration.type-test.ts +89 -0
- package/src/interface/resource/index.ts +3 -0
- package/src/interface/resource/key.ts +3 -0
- package/src/interface/resource/reduction.ts +11 -0
- package/src/interface/resource/register.test.ts +107 -0
- package/src/interface/resource/register.ts +18 -0
- package/src/interface/resource/resource.ts +4 -0
- package/src/interface/resource/types.ts +3 -0
- package/src/interface/resource/value.ts +20 -0
- package/src/interface/resource/written.ts +4 -0
- package/src/interface/resources/always.ts +12 -0
- package/src/interface/resources/cadence.ts +27 -0
- package/src/interface/resources/clock.ts +17 -0
- package/src/interface/resources/gpu-device.ts +16 -0
- package/src/interface/resources/index.ts +6 -0
- package/src/interface/resources/wake.ts +15 -0
- package/src/interface/resources/workers.ts +12 -0
- package/src/interface/rule/create.ts +25 -0
- package/src/interface/rule/created.ts +4 -0
- package/src/interface/rule/declaration.ts +11 -0
- package/src/interface/rule/index.ts +1 -0
- package/src/interface/rule/name.ts +6 -0
- package/src/interface/rule/rule.ts +3 -0
- package/src/interface/rule/rule.type-test.ts +117 -0
- package/src/interface/schema/is-data.ts +25 -0
- package/src/interface/schema/is-struct.ts +24 -0
- package/src/interface/schema/schema.ts +168 -0
- package/src/interface/schema/schema.type-test.ts +153 -0
- package/src/interface/schema/schemas.type-test.ts +12 -0
- package/src/interface/system/access.ts +67 -0
- package/src/interface/system/body.ts +49 -0
- package/src/interface/system/check.ts +227 -0
- package/src/interface/system/commands.ts +26 -0
- package/src/interface/system/commands.type-test.ts +93 -0
- package/src/interface/system/composite-declaration.ts +14 -0
- package/src/interface/system/composite-input.type-test.ts +63 -0
- package/src/interface/system/composite.ts +5 -0
- package/src/interface/system/conditions.type-test.ts +68 -0
- package/src/interface/system/create.test.ts +230 -0
- package/src/interface/system/create.ts +181 -0
- package/src/interface/system/declaration.ts +65 -0
- package/src/interface/system/definition.ts +5 -0
- package/src/interface/system/index.ts +3 -0
- package/src/interface/system/input.ts +28 -0
- package/src/interface/system/leaf.ts +13 -0
- package/src/interface/system/name.ts +6 -0
- package/src/interface/system/property.ts +4 -0
- package/src/interface/system/render.ts +81 -0
- package/src/interface/system/struct.ts +9 -0
- package/src/interface/system/system.ts +9 -0
- package/src/interface/system/system.type-test.ts +460 -0
- package/src/interface/system/threads.ts +46 -0
- package/src/interface/system/threads.type-test.ts +114 -0
- package/src/interface/system/up.type-test.ts +80 -0
- package/src/interface/system/values.ts +70 -0
- package/src/interface/thread/of.ts +8 -0
- package/src/interface/thread/thread.ts +13 -0
- package/src/interface/thread/thread.type-test.ts +140 -0
- package/src/interface/trait/index.ts +1 -0
- package/src/interface/trait/key.ts +6 -0
- package/src/interface/trait/register.ts +9 -0
- package/src/interface/trait/required.ts +7 -0
- package/src/interface/trait/symbol-keys.ts +19 -0
- package/src/interface/trait/symbol-keys.type-test.ts +14 -0
- package/src/interface/trait/trait.ts +3 -0
- package/src/interface/trait/trait.type-test.ts +158 -0
- package/src/interface/trait/types.ts +56 -0
- package/src/interface/tsconfig.json +28 -0
- package/src/interface/world/create.ts +15 -0
- package/src/interface/world/filter.ts +9 -0
- package/src/interface/world/index.ts +2 -0
- package/src/interface/world/join.ts +10 -0
- package/src/interface/world/loop.type-test.ts +67 -0
- package/src/interface/world/share.type-test.ts +25 -0
- package/src/interface/world/world.ts +58 -0
- package/src/interface/world/world.type-test.ts +81 -0
- package/src/observe/compare.ts +86 -0
- package/src/observe/entity.ts +224 -0
- package/src/observe/index.ts +1 -0
- package/src/observe/members.ts +42 -0
- package/src/observe/observe.ts +24 -0
- package/src/observe/observe.type-test.ts +88 -0
- package/src/observe/plans.ts +272 -0
- package/src/observe/query.ts +26 -0
- package/src/observe/resource.ts +80 -0
- package/src/observe/select.ts +648 -0
- package/src/observe/to-promise.ts +22 -0
- package/src/observe/tsconfig.json +31 -0
- package/src/observe/values.ts +9 -0
- package/src/observe/world-state.ts +414 -0
- package/src/observe-imports.test.ts +48 -0
- package/src/perftest/benchmark.ts +106 -0
- package/src/perftest/benchmarks.ts +692 -0
- package/src/perftest/finalized.ts +122 -0
- package/src/perftest/flat.ts +67 -0
- package/src/perftest/growth.ts +55 -0
- package/src/perftest/handoff.ts +154 -0
- package/src/perftest/hierarchy.ts +132 -0
- package/src/perftest/indexes.ts +691 -0
- package/src/perftest/joined.ts +95 -0
- package/src/perftest/keys.ts +100 -0
- package/src/perftest/log.ts +126 -0
- package/src/perftest/loop.ts +49 -0
- package/src/perftest/observed-gpu.ts +58 -0
- package/src/perftest/observed.ts +298 -0
- package/src/perftest/observer.ts +57 -0
- package/src/perftest/particles.ts +76 -0
- package/src/perftest/placed.ts +177 -0
- package/src/perftest/reads.ts +210 -0
- package/src/perftest/remote.ts +364 -0
- package/src/perftest/run.ts +43 -0
- package/src/perftest/strings.ts +133 -0
- package/src/perftest/structural.ts +164 -0
- package/src/perftest/suite.perf-browser-test.ts +133 -0
- package/src/perftest/suite.perf-test.ts +7 -0
- package/src/perftest/suite.ts +232 -0
- package/src/perftest/systems.ts +134 -0
- package/src/perftest/tails.ts +306 -0
- package/src/perftest/transfers.ts +93 -0
- package/src/perftest/uploads.ts +82 -0
- package/src/perftest/values.ts +111 -0
- package/src/perftest/wake.ts +40 -0
- package/src/samples/particles/build.test.ts +23 -0
- package/src/samples/particles/gpu/main.ts +96 -0
- package/src/samples/particles/gpu/particles.ts +138 -0
- package/src/samples/particles/index.html +22 -0
- package/src/samples/particles/particles.test.ts +31 -0
- package/src/samples/particles/particles.ts +85 -0
- package/src/samples/particles/particles.type-test.ts +7 -0
- package/src/samples/todo/README.md +174 -0
- package/src/samples/todo/app/app.browser.test.ts +215 -0
- package/src/samples/todo/app/app.ts +30 -0
- package/src/samples/todo/app/log-failures.test.ts +28 -0
- package/src/samples/todo/app/log-failures.ts +7 -0
- package/src/samples/todo/app/main.ts +4 -0
- package/src/samples/todo/app/profile.perf-browser-test.ts +100 -0
- package/src/samples/todo/app/proportional.browser.test.ts +157 -0
- package/src/samples/todo/app/todo.perf-browser-test.ts +207 -0
- package/src/samples/todo/build.test.ts +23 -0
- package/src/samples/todo/features/completion/data.ts +5 -0
- package/src/samples/todo/features/completion/dom.browser.test.ts +53 -0
- package/src/samples/todo/features/completion/dom.ts +39 -0
- package/src/samples/todo/features/completion/elements/elements.browser.test.ts +68 -0
- package/src/samples/todo/features/completion/elements/todo-summary.ts +82 -0
- package/src/samples/todo/features/completion/elements/todo-toggle-all.ts +69 -0
- package/src/samples/todo/features/completion/events.ts +7 -0
- package/src/samples/todo/features/completion/feature.ts +13 -0
- package/src/samples/todo/features/completion/model.test.ts +40 -0
- package/src/samples/todo/features/completion/model.ts +21 -0
- package/src/samples/todo/features/filter/data.ts +16 -0
- package/src/samples/todo/features/filter/dom.browser.test.ts +84 -0
- package/src/samples/todo/features/filter/dom.ts +63 -0
- package/src/samples/todo/features/filter/elements/elements.browser.test.ts +43 -0
- package/src/samples/todo/features/filter/elements/todo-filters.ts +70 -0
- package/src/samples/todo/features/filter/events.ts +4 -0
- package/src/samples/todo/features/filter/feature.ts +12 -0
- package/src/samples/todo/features/filter/model.test.ts +18 -0
- package/src/samples/todo/features/filter/model.ts +10 -0
- package/src/samples/todo/features/generate/elements/elements.browser.test.ts +18 -0
- package/src/samples/todo/features/generate/elements/todo-generate.ts +36 -0
- package/src/samples/todo/features/generate/events.ts +4 -0
- package/src/samples/todo/features/generate/feature.ts +11 -0
- package/src/samples/todo/features/generate/model.test.ts +13 -0
- package/src/samples/todo/features/generate/model.ts +19 -0
- package/src/samples/todo/features/index.ts +4 -0
- package/src/samples/todo/features/todos/data.ts +31 -0
- package/src/samples/todo/features/todos/dom.browser.test.ts +205 -0
- package/src/samples/todo/features/todos/dom.ts +90 -0
- package/src/samples/todo/features/todos/elements/elements.browser.test.ts +211 -0
- package/src/samples/todo/features/todos/elements/todo-entry.ts +45 -0
- package/src/samples/todo/features/todos/elements/todo-list.ts +93 -0
- package/src/samples/todo/features/todos/elements/todo-row.ts +138 -0
- package/src/samples/todo/features/todos/events.ts +11 -0
- package/src/samples/todo/features/todos/feature.ts +14 -0
- package/src/samples/todo/features/todos/model.test.ts +77 -0
- package/src/samples/todo/features/todos/model.ts +80 -0
- package/src/samples/todo/features/todos/todos.test-helper.ts +34 -0
- package/src/samples/todo/imports.test.ts +113 -0
- package/src/samples/todo/index.html +51 -0
- package/src/samples/todo/shared/attach.browser.test.ts +73 -0
- package/src/samples/todo/shared/attach.ts +32 -0
- package/src/samples/todo/shared/connect.ts +21 -0
- package/src/samples/todo/shared/elements/define.ts +7 -0
- package/src/samples/todo/shared/elements/elements.test-helper.ts +28 -0
- package/src/samples/todo/shared/feature.ts +20 -0
- package/src/samples/todo/shared/ticks.test-helper.ts +25 -0
- package/src/samples/transfers/build.test.ts +22 -0
- package/src/samples/transfers/index.html +18 -0
- package/src/samples/transfers/loader.ts +42 -0
- package/src/samples/transfers/main.ts +46 -0
- package/src/samples/transfers/sprites.ts +96 -0
- package/src/samples/transfers/world.ts +11 -0
- package/src/world.test.ts +46 -0
- package/README.md +0 -3
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { type Layout, type Views } from '../../interface/registry/layout.js';
|
|
2
|
+
import type { KernelCommands } from './kernel.js';
|
|
3
|
+
import type { Positional, SpawnBatch } from './staging.js';
|
|
4
|
+
export declare const spawnCommand = 0;
|
|
5
|
+
export declare const despawnCommand = 1;
|
|
6
|
+
export declare const addCommand = 2;
|
|
7
|
+
export declare const removeCommand = 3;
|
|
8
|
+
/** Rows `start` to `end` of a kernel's spawn batch, committed in its buffer's place in merge order. */
|
|
9
|
+
export type Staged = {
|
|
10
|
+
batch: SpawnBatch;
|
|
11
|
+
start: number;
|
|
12
|
+
end: number;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Commands as parallel arrays with explicit counts, reused between runs, so issuing a command allocates nothing.
|
|
16
|
+
* Command `c` names components `ids[starts[c]]` up to the next command's start, with `values` alongside (unused for
|
|
17
|
+
* `remove`). A buffer drained from a worker's command ring keeps its structs' values as bytes in the ring, in their
|
|
18
|
+
* storages' layout, at `offsets` into `bytes`. A kernel's spawns are staged in batches instead, and its buffer lists
|
|
19
|
+
* their rows in `staged`, which the sync point commits before any command.
|
|
20
|
+
*/
|
|
21
|
+
export type CommandBuffer = {
|
|
22
|
+
count: number;
|
|
23
|
+
kinds: Uint8Array;
|
|
24
|
+
/** By command: the list of components a list add or remove names, by its index among the world's lists, or -1. */
|
|
25
|
+
shapes: Int32Array;
|
|
26
|
+
entities: Float64Array;
|
|
27
|
+
starts: Int32Array;
|
|
28
|
+
/** Components named so far, across commands. */
|
|
29
|
+
named: number;
|
|
30
|
+
ids: Int32Array;
|
|
31
|
+
readonly values: unknown[];
|
|
32
|
+
/** For a drained buffer, where its values' bytes are; null for a buffer of values alone. */
|
|
33
|
+
bytes: Views | null;
|
|
34
|
+
/** With `bytes`, by component named: its value's first byte there, or -1 for a value in `values`. */
|
|
35
|
+
offsets: Int32Array;
|
|
36
|
+
/** The first `stagedCount` entries are this buffer's; the rest are kept for reuse. */
|
|
37
|
+
readonly staged: Staged[];
|
|
38
|
+
stagedCount: number;
|
|
39
|
+
};
|
|
40
|
+
export declare const createBuffer: (capacity?: number) => CommandBuffer;
|
|
41
|
+
/** No commands; never written. */
|
|
42
|
+
export declare const emptyBuffer: CommandBuffer;
|
|
43
|
+
export declare const clearBuffer: (buffer: CommandBuffer) => void;
|
|
44
|
+
/** Adds rows `start` to `end` of a batch to the buffer's staged spawns. */
|
|
45
|
+
export declare const stage: (buffer: CommandBuffer, batch: SpawnBatch, start: number, end: number) => void;
|
|
46
|
+
export declare const pushCommand: (buffer: CommandBuffer, kind: number, entity: number) => void;
|
|
47
|
+
export declare const pushComponent: (buffer: CommandBuffer, id: number, value: unknown) => void;
|
|
48
|
+
/** Component `k`'s value: as given, or decoded from its bytes. */
|
|
49
|
+
export declare const valueAt: (buffer: CommandBuffer, k: number, layouts: readonly Layout[]) => unknown;
|
|
50
|
+
/** Component `k`'s value as a reference, an entity: one f64 in its bytes. */
|
|
51
|
+
export declare const referenceAt: (buffer: CommandBuffer, k: number) => number;
|
|
52
|
+
export declare const endOf: (buffer: CommandBuffer, command: number) => number;
|
|
53
|
+
/**
|
|
54
|
+
* Commands for a kernel, writing straight into a buffer: `ids` maps the kernel's key indexes to component ids, and
|
|
55
|
+
* `starts` to what each starts at, written for an `undefined` value. `target.buffer` may be replaced between calls.
|
|
56
|
+
* `spawners` stage the kernel's spawns, by spawn list.
|
|
57
|
+
*/
|
|
58
|
+
export declare const createKernelCommands: (target: {
|
|
59
|
+
readonly buffer: CommandBuffer;
|
|
60
|
+
}, ids: readonly number[], starts: readonly unknown[], spawners: readonly Positional[]) => KernelCommands;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { viewsOf } from '../../interface/registry/layout.js';
|
|
2
|
+
export const spawnCommand = 0;
|
|
3
|
+
export const despawnCommand = 1;
|
|
4
|
+
export const addCommand = 2;
|
|
5
|
+
export const removeCommand = 3;
|
|
6
|
+
export const createBuffer = (capacity = 16) => ({
|
|
7
|
+
count: 0,
|
|
8
|
+
kinds: new Uint8Array(capacity),
|
|
9
|
+
shapes: new Int32Array(capacity),
|
|
10
|
+
entities: new Float64Array(capacity),
|
|
11
|
+
starts: new Int32Array(capacity),
|
|
12
|
+
named: 0,
|
|
13
|
+
ids: new Int32Array(capacity * 4),
|
|
14
|
+
values: [],
|
|
15
|
+
bytes: null,
|
|
16
|
+
offsets: new Int32Array(0),
|
|
17
|
+
staged: [],
|
|
18
|
+
stagedCount: 0,
|
|
19
|
+
});
|
|
20
|
+
/** No commands; never written. */
|
|
21
|
+
export const emptyBuffer = createBuffer(0);
|
|
22
|
+
export const clearBuffer = (buffer) => {
|
|
23
|
+
// Releases values for collection; the arrays keep their storage for the next run.
|
|
24
|
+
buffer.values.fill(undefined, 0, buffer.named);
|
|
25
|
+
buffer.bytes = null;
|
|
26
|
+
buffer.count = 0;
|
|
27
|
+
buffer.named = 0;
|
|
28
|
+
buffer.stagedCount = 0;
|
|
29
|
+
};
|
|
30
|
+
/** Adds rows `start` to `end` of a batch to the buffer's staged spawns. */
|
|
31
|
+
export const stage = (buffer, batch, start, end) => {
|
|
32
|
+
const entry = buffer.staged[buffer.stagedCount];
|
|
33
|
+
if (entry === undefined)
|
|
34
|
+
buffer.staged.push({ batch, start, end });
|
|
35
|
+
else {
|
|
36
|
+
entry.batch = batch;
|
|
37
|
+
entry.start = start;
|
|
38
|
+
entry.end = end;
|
|
39
|
+
}
|
|
40
|
+
buffer.stagedCount++;
|
|
41
|
+
};
|
|
42
|
+
const grown = (array, create) => {
|
|
43
|
+
const larger = create(array.length * 2);
|
|
44
|
+
larger.set(array);
|
|
45
|
+
return larger;
|
|
46
|
+
};
|
|
47
|
+
/** Starts a command; name its components with `pushComponent` right after. */
|
|
48
|
+
/** Room for more commands: outlined, so `pushCommand` stays small enough to inline into the systems issuing them. */
|
|
49
|
+
const growCommands = (buffer) => {
|
|
50
|
+
buffer.kinds = grown(buffer.kinds, length => new Uint8Array(length));
|
|
51
|
+
buffer.shapes = grown(buffer.shapes, length => new Int32Array(length));
|
|
52
|
+
buffer.entities = grown(buffer.entities, length => new Float64Array(length));
|
|
53
|
+
buffer.starts = grown(buffer.starts, length => new Int32Array(length));
|
|
54
|
+
};
|
|
55
|
+
export const pushCommand = (buffer, kind, entity) => {
|
|
56
|
+
if (buffer.count === buffer.kinds.length)
|
|
57
|
+
growCommands(buffer);
|
|
58
|
+
buffer.kinds[buffer.count] = kind;
|
|
59
|
+
buffer.shapes[buffer.count] = -1;
|
|
60
|
+
buffer.entities[buffer.count] = entity;
|
|
61
|
+
buffer.starts[buffer.count] = buffer.named;
|
|
62
|
+
buffer.count++;
|
|
63
|
+
};
|
|
64
|
+
export const pushComponent = (buffer, id, value) => {
|
|
65
|
+
if (buffer.named === buffer.ids.length)
|
|
66
|
+
buffer.ids = grown(buffer.ids, length => new Int32Array(length));
|
|
67
|
+
buffer.ids[buffer.named] = id;
|
|
68
|
+
buffer.values[buffer.named] = value;
|
|
69
|
+
buffer.named++;
|
|
70
|
+
};
|
|
71
|
+
/** A component value read out of bytes in a general layout, copied to row 0 here first; grown for larger layouts. */
|
|
72
|
+
let scratch = viewsOf(new ArrayBuffer(256), 0, 256);
|
|
73
|
+
/** Component `k`'s value: as given, or decoded from its bytes. */
|
|
74
|
+
export const valueAt = (buffer, k, layouts) => {
|
|
75
|
+
const { bytes } = buffer;
|
|
76
|
+
if (bytes === null || buffer.offsets[k] < 0)
|
|
77
|
+
return buffer.values[k];
|
|
78
|
+
const layout = layouts[buffer.ids[k]];
|
|
79
|
+
if (layout.kind !== "linear")
|
|
80
|
+
return undefined;
|
|
81
|
+
const { stride } = layout;
|
|
82
|
+
if (stride > scratch.u8.length)
|
|
83
|
+
scratch = viewsOf(new ArrayBuffer(stride * 2), 0, stride * 2);
|
|
84
|
+
const offset = buffer.offsets[k];
|
|
85
|
+
scratch.u8.set(bytes.u8.subarray(offset, offset + stride));
|
|
86
|
+
return layout.read(scratch, 0);
|
|
87
|
+
};
|
|
88
|
+
/** Component `k`'s value as a reference, an entity: one f64 in its bytes. */
|
|
89
|
+
export const referenceAt = (buffer, k) => {
|
|
90
|
+
const { bytes } = buffer;
|
|
91
|
+
return bytes === null || buffer.offsets[k] < 0 ? Number(buffer.values[k]) : bytes.f64[buffer.offsets[k] >> 3];
|
|
92
|
+
};
|
|
93
|
+
export const endOf = (buffer, command) => command + 1 < buffer.count ? buffer.starts[command + 1] : buffer.named;
|
|
94
|
+
/**
|
|
95
|
+
* Commands for a kernel, writing straight into a buffer: `ids` maps the kernel's key indexes to component ids, and
|
|
96
|
+
* `starts` to what each starts at, written for an `undefined` value. `target.buffer` may be replaced between calls.
|
|
97
|
+
* `spawners` stage the kernel's spawns, by spawn list.
|
|
98
|
+
*/
|
|
99
|
+
export const createKernelCommands = (target, ids, starts, spawners) => ({
|
|
100
|
+
spawners,
|
|
101
|
+
begin: (kind, entity) => pushCommand(target.buffer, kind, entity),
|
|
102
|
+
value: (key, value) => pushComponent(target.buffer, ids[key], value === undefined ? starts[key] : value),
|
|
103
|
+
component: key => pushComponent(target.buffer, ids[key], undefined),
|
|
104
|
+
});
|
|
105
|
+
//# sourceMappingURL=buffer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buffer.js","sourceRoot":"","sources":["../../../src/implementation/world/buffer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAA2B,MAAM,oCA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AAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAClH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,MAAqB,EAAE,OAAe,EAAU,EAAE,CACpE,OAAO,GAAG,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;AAE3E;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAA0C,EAAE,GAAsB,EAAE,MAA0B,EAAE,QAA+B,EAAkB,EAAE,CAAC,CAAC;IACtL,QAAQ;IACR,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC;IACjE,KAAK,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,EAAE,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACxG,SAAS,EAAE,GAAG,CAAC,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC;CACtE,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Archetype } from './archetype.js';
|
|
2
|
+
import { type State } from './state.js';
|
|
3
|
+
import type { Queued } from './synchronize.js';
|
|
4
|
+
/**
|
|
5
|
+
* A reference value written in this sync point: by spawn or add commands, or a batch spawn. `holder`, `component`
|
|
6
|
+
* and `target` triples, checked once the plan's despawns are known.
|
|
7
|
+
*/
|
|
8
|
+
export type Written = number[];
|
|
9
|
+
/** The entry for a live entity, added unchanged if it has none; -1 for one that isn't alive or planned. */
|
|
10
|
+
export type EntryOf = (entity: number) => number;
|
|
11
|
+
/**
|
|
12
|
+
* Despawns the holders that own a reference to an entity that is despawned or never lives, and removes `weak`
|
|
13
|
+
* references to one, transitively, before rules close the plan. A holder acts only if its value once the plan applies
|
|
14
|
+
* names the target, so a reference pointed elsewhere in the same sync point is left alone.
|
|
15
|
+
*/
|
|
16
|
+
export declare const cascadeReferences: (state: State, queued: readonly Queued[], written: Written, entryOf: EntryOf) => void;
|
|
17
|
+
/**
|
|
18
|
+
* The changes the plan makes to the holder index, read before it applies, while old and new values are both readable:
|
|
19
|
+
* `remove` and `add` as target, holder, component triples. A despawned target's holders each have a removal of their
|
|
20
|
+
* own, since every reference component despawns its holders or drops the reference.
|
|
21
|
+
*/
|
|
22
|
+
export type IndexChanges = {
|
|
23
|
+
readonly remove: number[];
|
|
24
|
+
readonly add: number[];
|
|
25
|
+
};
|
|
26
|
+
export declare const indexChangesOf: (state: State, queued: readonly Queued[], fromOf: (entry: number) => Archetype | null, bornRows: readonly (readonly [Archetype, number])[]) => IndexChanges;
|
|
27
|
+
/** Applies index changes after the plan applies. */
|
|
28
|
+
export declare const applyIndexChanges: (state: State, changes: IndexChanges) => void;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { readCell } from './cells.js';
|
|
2
|
+
import { indexOf, locate } from './entities.js';
|
|
3
|
+
import { commandValue, isMissing } from './finalizers.js';
|
|
4
|
+
import { createHolders, fitHolders, forEachHolder, linkHolder, unlinkHolder } from './holders.js';
|
|
5
|
+
import { closureOf, owner } from './structure.js';
|
|
6
|
+
import { archetypeOf, withoutComponent } from './state.js';
|
|
7
|
+
/** The value an entity holds for `component` once the plan applies, or undefined if it won't hold one. */
|
|
8
|
+
const finalValue = (state, queued, holder, component) => {
|
|
9
|
+
const { plan, entities, archetypes } = state;
|
|
10
|
+
const entry = plan.slots[indexOf(holder)] ?? -1;
|
|
11
|
+
if (entry >= 0 && plan.entity[entry] === holder) {
|
|
12
|
+
if (plan.despawned[entry] === 1 || archetypes[plan.to[entry]].storageById[component] === undefined)
|
|
13
|
+
return undefined;
|
|
14
|
+
const value = commandValue(state, queued, entry, component);
|
|
15
|
+
if (!isMissing(value))
|
|
16
|
+
return value;
|
|
17
|
+
}
|
|
18
|
+
const index = locate(entities, holder);
|
|
19
|
+
if (index < 0)
|
|
20
|
+
return undefined;
|
|
21
|
+
const storage = archetypes[entities.archetype[index]].storageById[component];
|
|
22
|
+
return storage === undefined ? undefined : readCell(storage, entities.row[index]);
|
|
23
|
+
};
|
|
24
|
+
/** Whether `target` is alive once the plan applies: live or spawned here, and not despawned. */
|
|
25
|
+
const aliveAfter = (state, target) => {
|
|
26
|
+
const { plan, entities } = state;
|
|
27
|
+
const index = indexOf(target);
|
|
28
|
+
const entry = index < plan.slots.length ? plan.slots[index] : -1;
|
|
29
|
+
if (entry >= 0 && plan.entity[entry] === target)
|
|
30
|
+
return plan.despawned[entry] === 0;
|
|
31
|
+
return locate(entities, target) >= 0;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Despawns the holders that own a reference to an entity that is despawned or never lives, and removes `weak`
|
|
35
|
+
* references to one, transitively, before rules close the plan. A holder acts only if its value once the plan applies
|
|
36
|
+
* names the target, so a reference pointed elsewhere in the same sync point is left alone.
|
|
37
|
+
*/
|
|
38
|
+
export const cascadeReferences = (state, queued, written, entryOf) => {
|
|
39
|
+
const { plan, structure, archetypes } = state;
|
|
40
|
+
const despawned = [];
|
|
41
|
+
for (let entry = 0; entry < plan.count; entry++)
|
|
42
|
+
if (plan.despawned[entry] === 1)
|
|
43
|
+
despawned.push(plan.entity[entry]);
|
|
44
|
+
const act = (holder, component) => {
|
|
45
|
+
const entry = entryOf(holder);
|
|
46
|
+
if (entry < 0 || plan.despawned[entry] === 1)
|
|
47
|
+
return;
|
|
48
|
+
if (structure.references[component] === owner) {
|
|
49
|
+
plan.despawned[entry] = 1;
|
|
50
|
+
despawned.push(holder);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const to = withoutComponent(state, archetypes[plan.to[entry]], component);
|
|
54
|
+
plan.to[entry] = closureOf(structure, state.derived, to, components => archetypeOf(state, components), archetypes).id;
|
|
55
|
+
};
|
|
56
|
+
let checked = 0;
|
|
57
|
+
for (let next = 0; next < despawned.length || checked < written.length;) {
|
|
58
|
+
for (; next < despawned.length; next++) {
|
|
59
|
+
const target = despawned[next];
|
|
60
|
+
for (const component of structure.referenceIds) {
|
|
61
|
+
const lists = structure.holders[component];
|
|
62
|
+
if (lists === undefined)
|
|
63
|
+
continue;
|
|
64
|
+
forEachHolder(lists, target, holder => {
|
|
65
|
+
if (finalValue(state, queued, holder, component) === target)
|
|
66
|
+
act(holder, component);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
// A reference written here to an entity that won't be alive is as dangling as one whose target despawns.
|
|
71
|
+
for (; checked < written.length; checked += 3) {
|
|
72
|
+
const holder = written[checked];
|
|
73
|
+
const component = written[checked + 1];
|
|
74
|
+
const target = written[checked + 2];
|
|
75
|
+
// `Entity.none` names no entity, so a reference to it isn't dangling.
|
|
76
|
+
if (target !== 0 && finalValue(state, queued, holder, component) === target && !aliveAfter(state, target))
|
|
77
|
+
act(holder, component);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
export const indexChangesOf = (state, queued, fromOf, bornRows) => {
|
|
82
|
+
const { plan, structure, entities } = state;
|
|
83
|
+
const changes = { remove: [], add: [] };
|
|
84
|
+
for (let entry = 0; entry < plan.count; entry++) {
|
|
85
|
+
const holder = plan.entity[entry];
|
|
86
|
+
const from = fromOf(entry);
|
|
87
|
+
for (const component of structure.referenceIds) {
|
|
88
|
+
const storage = from?.storageById[component];
|
|
89
|
+
const before = storage === undefined ? undefined : readCell(storage, entities.row[indexOf(holder)]);
|
|
90
|
+
const after = plan.despawned[entry] === 1 ? undefined : finalValue(state, queued, holder, component);
|
|
91
|
+
if (before === after)
|
|
92
|
+
continue;
|
|
93
|
+
if (typeof before === "number" && before !== 0)
|
|
94
|
+
changes.remove.push(before, holder, component);
|
|
95
|
+
if (typeof after === "number" && after !== 0)
|
|
96
|
+
changes.add.push(after, holder, component);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
// Batch spawns no command touched still hold the references they were spawned with. An entity is one f64.
|
|
100
|
+
const { slots } = plan;
|
|
101
|
+
for (const [archetype, first] of bornRows) {
|
|
102
|
+
for (const component of structure.referenceIds) {
|
|
103
|
+
const storage = archetype.storageById[component];
|
|
104
|
+
if (storage === undefined)
|
|
105
|
+
continue;
|
|
106
|
+
const { unitStride, unitOffset } = storage;
|
|
107
|
+
const values = storage.views.f64;
|
|
108
|
+
const rows = archetype.entities;
|
|
109
|
+
for (let row = first; row < archetype.count; row++) {
|
|
110
|
+
const holder = rows[row];
|
|
111
|
+
const index = indexOf(holder);
|
|
112
|
+
if (index < slots.length && slots[index] >= 0)
|
|
113
|
+
continue;
|
|
114
|
+
const value = values[row * unitStride + unitOffset];
|
|
115
|
+
if (value !== 0)
|
|
116
|
+
changes.add.push(value, holder, component);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return changes;
|
|
121
|
+
};
|
|
122
|
+
/** Applies index changes after the plan applies. */
|
|
123
|
+
export const applyIndexChanges = (state, changes) => {
|
|
124
|
+
const { holders } = state.structure;
|
|
125
|
+
const { remove, add } = changes;
|
|
126
|
+
for (let c = 0; c < remove.length; c += 3) {
|
|
127
|
+
const lists = holders[remove[c + 2]];
|
|
128
|
+
if (lists !== undefined)
|
|
129
|
+
unlinkHolder(lists, remove[c], remove[c + 1]);
|
|
130
|
+
}
|
|
131
|
+
const length = state.entities.length;
|
|
132
|
+
for (let c = 0; c < add.length; c += 3) {
|
|
133
|
+
const component = add[c + 2];
|
|
134
|
+
const lists = holders[component] ??= createHolders();
|
|
135
|
+
fitHolders(lists, length);
|
|
136
|
+
linkHolder(lists, add[c], add[c + 1]);
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
//# sourceMappingURL=cascade.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cascade.js","sourceRoot":"","sources":["../../../src/implementation/world/cascade.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAc,MAAM,YAAY,CAAC;AAYvE,0GAA0G;AAC1G,MAAM,UAAU,GAAG,CAAC,KAAY,EAAE,MAAyB,EAAE,MAAc,EAAE,SAAiB,EAAW,EAAE;IACvG,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC7C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAChD,IAAI,KAAK,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,EAAE,CAAC;QAC9C,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,KAAK,SAAS;YAAE,OAAO,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KAAK,CAAC,SAAS,CAAC;IACpC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;IAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACxC,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACrC,IAAI,KAAK,KAAK,SAAS;YAAE,YAAY,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC3E,CAAC;IACD,MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;IACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACrC,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAC7B,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,KAAK,aAAa,EAAE,CAAC;QACrD,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAC1B,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Storage } from './archetype.js';
|
|
2
|
+
/** Where a value is: a storage, or a joined thread's view of one. */
|
|
3
|
+
export type Cell = Pick<Storage, "layout" | "views" | "values" | "strings">;
|
|
4
|
+
/** A component value, copied out of linear storage. */
|
|
5
|
+
export declare const readCell: (storage: Cell, row: number) => unknown;
|
|
6
|
+
/** Replaces a component value. Doesn't touch ticks. */
|
|
7
|
+
export declare const writeCell: (storage: Cell, row: number, value: unknown) => void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { readString, writeString } from './strings.js';
|
|
2
|
+
/** A component value, copied out of linear storage. */
|
|
3
|
+
export const readCell = (storage, row) => {
|
|
4
|
+
const { layout } = storage;
|
|
5
|
+
switch (layout.kind) {
|
|
6
|
+
case "linear": return layout.read(storage.views, row);
|
|
7
|
+
case "string": return readString(storage, row);
|
|
8
|
+
case "object": return storage.values[row];
|
|
9
|
+
default: return layout.value;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
/** Replaces a component value. Doesn't touch ticks. */
|
|
13
|
+
export const writeCell = (storage, row, value) => {
|
|
14
|
+
const { layout } = storage;
|
|
15
|
+
if (layout.kind === "linear")
|
|
16
|
+
layout.write(storage.views, row, value);
|
|
17
|
+
else if (layout.kind === "string")
|
|
18
|
+
writeString(storage, row, value);
|
|
19
|
+
else if (layout.kind === "object")
|
|
20
|
+
storage.values[row] = value;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=cells.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cells.js","sourceRoot":"","sources":["../../../src/implementation/world/cells.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAKvD,uDAAuD;AACvD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,OAAa,EAAE,GAAW,EAAW,EAAE;IAC5D,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3B,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,QAAQ,CAAC,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QACtD,KAAK,QAAQ,CAAC,CAAC,OAAO,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAC/C,KAAK,QAAQ,CAAC,CAAC,OAAO,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC1C,OAAO,CAAC,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC;IACjC,CAAC;AACL,CAAC,CAAC;AAEF,uDAAuD;AACvD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,OAAa,EAAE,GAAW,EAAE,KAAc,EAAQ,EAAE;IAC1E,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3B,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ;QAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;SACjE,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ;QAAE,WAAW,CAAC,OAAO,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;SAC/D,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AACnE,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Leaf } from '../../interface/system/leaf.js';
|
|
2
|
+
import type { KernelDescription } from './kernel.js';
|
|
3
|
+
/**
|
|
4
|
+
* Checks a compiled kernel against its declaration and the registered schemas, which don't depend on a world, so
|
|
5
|
+
* registering the kernel rejects it where it's declared: every column, whole-value write, lookup, `up` read and
|
|
6
|
+
* reduction it uses is declared, and names scalar leaves of its component's schema, each spawn site names each of its
|
|
7
|
+
* components once, from its keys, and a tuple or struct a command or spawn gives goes to a component stored in linear
|
|
8
|
+
* memory. Throws with the first mismatch.
|
|
9
|
+
*/
|
|
10
|
+
export declare const checkKernel: (leaf: Leaf, description: KernelDescription) => void;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { declarationOf, labelOf, labelOfItem } from '../../interface/registry/index.js';
|
|
2
|
+
import { layoutOf, samePath } from '../../interface/registry/layout.js';
|
|
3
|
+
/**
|
|
4
|
+
* A key's layout, or null for one this copy of the package didn't register, as a library bundling its own copy
|
|
5
|
+
* registers its keys: a world binding the kernel checks those.
|
|
6
|
+
*/
|
|
7
|
+
const layoutOfKey = (key) => {
|
|
8
|
+
const declaration = declarationOf(key);
|
|
9
|
+
return declaration === undefined ? null : layoutOf(declaration.type);
|
|
10
|
+
};
|
|
11
|
+
/** Whether `path` names a scalar leaf of `layout`; true for an unknown layout. */
|
|
12
|
+
const hasLeaf = (layout, path) => layout === null || (layout.kind === "linear" && layout.leaves.some(leaf => samePath(leaf.path, path)));
|
|
13
|
+
/** Whether `leaves` are every scalar leaf of `layout`, each once; true for an unknown layout. */
|
|
14
|
+
const exactly = (layout, leaves) => {
|
|
15
|
+
if (layout === null)
|
|
16
|
+
return true;
|
|
17
|
+
const own = layout.kind === "linear" ? layout.leaves : [];
|
|
18
|
+
return own.length === leaves.length && own.every(leaf => leaves.some(path => samePath(path, leaf.path)));
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Checks a compiled kernel against its declaration and the registered schemas, which don't depend on a world, so
|
|
22
|
+
* registering the kernel rejects it where it's declared: every column, whole-value write, lookup, `up` read and
|
|
23
|
+
* reduction it uses is declared, and names scalar leaves of its component's schema, each spawn site names each of its
|
|
24
|
+
* components once, from its keys, and a tuple or struct a command or spawn gives goes to a component stored in linear
|
|
25
|
+
* memory. Throws with the first mismatch.
|
|
26
|
+
*/
|
|
27
|
+
export const checkKernel = (leaf, description) => {
|
|
28
|
+
const { lookup, components: query, resources, up, reduce } = leaf.declaration;
|
|
29
|
+
const fail = (message) => { throw new Error(`Kernel "${labelOfItem(leaf)}": ${message}`); };
|
|
30
|
+
const queried = new Set([...query?.read ?? [], ...query?.write ?? []]);
|
|
31
|
+
const written = new Set(query?.write);
|
|
32
|
+
// A condition in `is` is readable too, and the compiler lists it with the reads.
|
|
33
|
+
const readable = new Set([...resources?.read ?? [], ...resources?.is ?? []]);
|
|
34
|
+
for (const key of description.resources)
|
|
35
|
+
if (!readable.has(key))
|
|
36
|
+
fail(`reads resource "${labelOf(key)}", which isn't in resources.read.`);
|
|
37
|
+
for (const column of description.columns) {
|
|
38
|
+
if (column.kind === "entity")
|
|
39
|
+
continue;
|
|
40
|
+
if (!queried.has(column.component))
|
|
41
|
+
fail(`"${labelOf(column.component)}" isn't in its components' read or write.`);
|
|
42
|
+
if (column.kind === "changed" || column.kind === "chunks") {
|
|
43
|
+
if (!written.has(column.component))
|
|
44
|
+
fail(`writes "${labelOf(column.component)}", which isn't in its components' write.`);
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
const layout = layoutOfKey(column.component);
|
|
48
|
+
if (layout !== null && layout.kind !== "linear")
|
|
49
|
+
fail(`"${labelOf(column.component)}" isn't stored in linear memory.`);
|
|
50
|
+
if (!hasLeaf(layout, column.path))
|
|
51
|
+
fail(`"${labelOf(column.component)}" has no scalar at [${column.path.join(", ")}]; destructure tuples and structs or index their fields.`);
|
|
52
|
+
}
|
|
53
|
+
for (const shape of description.shapes) {
|
|
54
|
+
if (!written.has(shape.component))
|
|
55
|
+
fail(`writes "${labelOf(shape.component)}", which isn't in its components' write.`);
|
|
56
|
+
if (!exactly(layoutOfKey(shape.component), shape.leaves))
|
|
57
|
+
fail(`a whole-value write of "${labelOf(shape.component)}" doesn't match its schema.`);
|
|
58
|
+
}
|
|
59
|
+
for (const lookupName of description.lookups)
|
|
60
|
+
if (lookup?.[lookupName] === undefined)
|
|
61
|
+
fail(`unknown lookup "${lookupName}".`);
|
|
62
|
+
if ((description.up === true) !== (up !== undefined))
|
|
63
|
+
fail(description.up === true ? "reads up, which its declaration doesn't declare." : "its declaration declares up, which it doesn't read.");
|
|
64
|
+
const upReadable = new Set(up?.read);
|
|
65
|
+
for (const column of description.upColumns ?? []) {
|
|
66
|
+
if (column.kind !== "field" || !upReadable.has(column.component))
|
|
67
|
+
fail(`reads "${labelOf(column.kind === "field" ? column.component : column.kind)}" through up, which isn't in up.read.`);
|
|
68
|
+
if (column.kind !== "field")
|
|
69
|
+
continue;
|
|
70
|
+
const layout = layoutOfKey(column.component);
|
|
71
|
+
if (layout !== null && layout.kind !== "linear")
|
|
72
|
+
fail(`up reads "${labelOf(column.component)}", which isn't stored in linear memory.`);
|
|
73
|
+
if (!hasLeaf(layout, column.path))
|
|
74
|
+
fail(`"${labelOf(column.component)}" has no scalar at [${column.path.join(", ")}]; destructure tuples and structs or index their fields.`);
|
|
75
|
+
}
|
|
76
|
+
for (const reduced of description.reductions) {
|
|
77
|
+
if (Reflect.get(reduce ?? {}, reduced.resource) !== reduced.operator)
|
|
78
|
+
fail(`reduces "${labelOf(reduced.resource)}" with "${reduced.operator}", which its reduce doesn't declare.`);
|
|
79
|
+
if (!hasLeaf(layoutOfKey(reduced.resource), reduced.path))
|
|
80
|
+
fail(`contributes to "${labelOf(reduced.resource)}" at [${reduced.path.join(", ")}], which isn't a scalar of its value; destructure tuples and structs or build them.`);
|
|
81
|
+
}
|
|
82
|
+
for (const list of description.spawns) {
|
|
83
|
+
list.forEach((k, position) => {
|
|
84
|
+
if (!Number.isInteger(k) || k < 0 || k >= description.keys.length)
|
|
85
|
+
fail(`spawns a list naming component ${k} of its ${description.keys.length} keys.`);
|
|
86
|
+
if (list.findIndex(other => description.keys[other] === description.keys[k]) < position)
|
|
87
|
+
fail(`spawns a list naming "${labelOf(description.keys[k])}" twice.`);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
for (const k of description.structuredValues) {
|
|
91
|
+
const key = description.keys[k];
|
|
92
|
+
const layout = key === undefined ? null : layoutOfKey(key);
|
|
93
|
+
if (layout !== null && layout.kind !== "linear")
|
|
94
|
+
fail(`gives "${labelOf(key)}" a tuple or struct, which only a component stored in linear memory takes.`);
|
|
95
|
+
}
|
|
96
|
+
for (const shape of description.reducedShapes) {
|
|
97
|
+
if (Reflect.get(reduce ?? {}, shape.component) === undefined || !exactly(layoutOfKey(shape.component), shape.leaves)) {
|
|
98
|
+
fail(`contributes a value to "${labelOf(shape.component)}" that doesn't match its schema.`);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
//# sourceMappingURL=check-kernel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-kernel.js","sourceRoot":"","sources":["../../../src/implementation/world/check-kernel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAA0B,MAAM,oCAAoC,CAAC;AAKhG;;;GAGG;AACH,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAiB,EAAE;IAC5C,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;IACvC,OAAO,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AACzE,CAAC,CAAC;AAEF,kFAAkF;AAClF,MAAM,OAAO,GAAG,CAAC,MAAqB,EAAE,IAAU,EAAW,EAAE,CAAC,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;AAEvK,iGAAiG;AACjG,MAAM,OAAO,GAAG,CAAC,MAAqB,EAAE,MAAuB,EAAW,EAAE;IACxE,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACjC,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1D,OAAO,GAAG,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI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C;QAChC,MAAM,MAAM,GAAG,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAC3D,IAAI,MAAM,KAAK,IAAI,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ;YAAE,IAAI,CAAC,UAAU,OAAO,CAAC,GAAG,CAAC,4EAA4E,CAAC,CAAC;IAC9J,CAAC;IACD,KAAK,MAAM,KAAK,IAAI,WAAW,CAAC,aAAa,EAAE,CAAC;QAC5C,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;YACnH,IAAI,CAAC,2BAA2B,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,kCAAkC,CAAC,CAAC;QAChG,CAAC;IACL,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pieces of a claimed split, as a home range per participant: one Int32 per participant, each on its own cache line,
|
|
3
|
+
* holding its next piece (`front`, low 16 bits) and the end of its range (`back`, high 16 bits). An owner takes pieces
|
|
4
|
+
* from its front, in order, so it streams forward through rows it ran last tier; a participant whose range is empty
|
|
5
|
+
* steals from the back of the fullest other range, so owner and thief meet only at the end. Every change is one
|
|
6
|
+
* compare-and-swap of the whole word, so a piece is claimed exactly once.
|
|
7
|
+
*/
|
|
8
|
+
/** Split pieces into at most 32767, so a range's bounds fit its word. */
|
|
9
|
+
export declare const maximumPieces = 32767;
|
|
10
|
+
/** Gives each of `participants` an equal home range of `pieces`, in order. */
|
|
11
|
+
export declare const startRanges: (words: Int32Array, participants: number, pieces: number) => void;
|
|
12
|
+
/** Claims the next piece for participant `self`: its own front, else the back of the fullest other range; -1 once none are left. */
|
|
13
|
+
export declare const claimPiece: (words: Int32Array, self: number, participants: number) => number;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { lineWords } from './protocol.js';
|
|
2
|
+
/**
|
|
3
|
+
* Pieces of a claimed split, as a home range per participant: one Int32 per participant, each on its own cache line,
|
|
4
|
+
* holding its next piece (`front`, low 16 bits) and the end of its range (`back`, high 16 bits). An owner takes pieces
|
|
5
|
+
* from its front, in order, so it streams forward through rows it ran last tier; a participant whose range is empty
|
|
6
|
+
* steals from the back of the fullest other range, so owner and thief meet only at the end. Every change is one
|
|
7
|
+
* compare-and-swap of the whole word, so a piece is claimed exactly once.
|
|
8
|
+
*/
|
|
9
|
+
/** Split pieces into at most 32767, so a range's bounds fit its word. */
|
|
10
|
+
export const maximumPieces = 0x7fff;
|
|
11
|
+
const rangeWord = (front, back) => (back << 16) | front;
|
|
12
|
+
/** Gives each of `participants` an equal home range of `pieces`, in order. */
|
|
13
|
+
export const startRanges = (words, participants, pieces) => {
|
|
14
|
+
for (let i = 0; i < participants; i++) {
|
|
15
|
+
Atomics.store(words, i * lineWords, rangeWord(Math.floor(i * pieces / participants), Math.floor((i + 1) * pieces / participants)));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
/** Claims the next piece for participant `self`: its own front, else the back of the fullest other range; -1 once none are left. */
|
|
19
|
+
export const claimPiece = (words, self, participants) => {
|
|
20
|
+
for (;;) {
|
|
21
|
+
const own = Atomics.load(words, self * lineWords);
|
|
22
|
+
const front = own & 0xffff;
|
|
23
|
+
const back = own >>> 16;
|
|
24
|
+
if (front < back) {
|
|
25
|
+
if (Atomics.compareExchange(words, self * lineWords, own, rangeWord(front + 1, back)) === own)
|
|
26
|
+
return front;
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
let victim = -1;
|
|
30
|
+
let most = 0;
|
|
31
|
+
let word = 0;
|
|
32
|
+
for (let i = 0; i < participants; i++) {
|
|
33
|
+
if (i === self)
|
|
34
|
+
continue;
|
|
35
|
+
const other = Atomics.load(words, i * lineWords);
|
|
36
|
+
const left = (other >>> 16) - (other & 0xffff);
|
|
37
|
+
if (left > most) {
|
|
38
|
+
most = left;
|
|
39
|
+
victim = i;
|
|
40
|
+
word = other;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
if (victim < 0)
|
|
44
|
+
return -1;
|
|
45
|
+
const last = (word >>> 16) - 1;
|
|
46
|
+
if (Atomics.compareExchange(words, victim * lineWords, word, rangeWord(word & 0xffff, last)) === word)
|
|
47
|
+
return last;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=claims.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claims.js","sourceRoot":"","sources":["../../../src/implementation/world/claims.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;;;;;GAMG;AAEH,yEAAyE;AACzE,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC;AAEpC,MAAM,SAAS,GAAG,CAAC,KAAa,EAAE,IAAY,EAAU,EAAE,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,GAAG,KAAK,CAAC;AAEhF,8EAA8E;AAC9E,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAiB,EAAE,YAAoB,EAAE,MAAc,EAAQ,EAAE;IACzF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY,EAAE,CAAC,EAAE,EAAE,CAAC;QACpC,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,GAAG,SAAS,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,MAAM,GAAG,YAAY,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;IACvI,CAAC;AACL,CAAC,CAAC;AAEF,oIAAoI;AACpI,MAAM,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C,CAAC;QAC/B,IAAI,OAAO,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,GAAG,MAAM,EAAE,IAAI,CAAC,CAAC,KAAK,IAAI;YAAE,OAAO,IAAI,CAAC;IACvH,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Structural derivation: which components an archetype's entities have once rules and `within` are applied.
|
|
3
|
+
* Datalog with stratified negation over the components each entity has. A rule adds the components it derives where
|
|
4
|
+
* its query matches; a component declared within a host stays only while the host is present. Each stratum is a least
|
|
5
|
+
* fixed point, evaluated after every stratum it depends on, so the result is a pure function of the archetype.
|
|
6
|
+
*/
|
|
7
|
+
import type { Strata } from '../../interface/registry/strata.js';
|
|
8
|
+
/**
|
|
9
|
+
* The sorted components an entity with `components` has once derived: derived components only where a rule derives
|
|
10
|
+
* them, and components within a host only where the host is.
|
|
11
|
+
*/
|
|
12
|
+
export declare const closedComponents: (components: readonly number[], derived: readonly boolean[], hosts: readonly number[], strata: Strata) => number[];
|