@almadar/std 17.0.2 → 17.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/behaviors/lolo/auth/atoms/std-dev-personas.lolo +27 -2
- package/behaviors/lolo/cli/atoms/std-orb-goldens.lolo +6 -3
- package/behaviors/lolo/cli/atoms/std-orb-lint-mem-handles.lolo +54 -34
- package/behaviors/lolo/cli/atoms/std-orb-lint-os-grants.lolo +4 -4
- package/behaviors/lolo/cli/atoms/std-orb-mcp.lolo +16 -21
- package/behaviors/lolo/cli/atoms/std-orb-packages.lolo +26 -16
- package/behaviors/lolo/cli/atoms/std-orb-serve.lolo +24 -4
- package/behaviors/lolo/codec/atoms/std-lolo-kotlin.lolo +26 -3
- package/behaviors/lolo/codec/atoms/std-lolo-python.lolo +15 -2
- package/behaviors/lolo/codec/atoms/std-lolo-rust.lolo +27 -2
- package/behaviors/lolo/codec/atoms/std-lolo-source.lolo +251 -60
- package/behaviors/lolo/codec/atoms/std-lolo-swift.lolo +24 -1
- package/behaviors/lolo/codec/atoms/std-lolo-typescript.lolo +24 -3
- package/behaviors/lolo/connect/atoms/std-meta-ads.lolo +4 -4
- package/behaviors/lolo/connect/atoms/std-stdio-lines.lolo +7 -4
- package/behaviors/lolo/connect/atoms/std-youtube.lolo +9 -9
- package/behaviors/lolo/dev/atoms/std-guest-session.lolo +122 -10
- package/behaviors/lolo/dev/atoms/std-mock-seed-marks.lolo +66 -0
- package/behaviors/lolo/dev/organisms/std-behavior-playground.lolo +5 -2
- package/behaviors/lolo/dev/organisms/std-launchpad.lolo +4 -3
- package/behaviors/lolo/gpu/atoms/std-gpu-compute.lolo +329 -0
- package/behaviors/lolo/net/atoms/std-http-client.lolo +4 -4
- package/behaviors/lolo/net/atoms/std-http-fetch.lolo +6 -6
- package/behaviors/lolo/net/atoms/std-npm-lookup.lolo +1 -1
- package/behaviors/lolo/net/atoms/std-npm-registry.lolo +2 -2
- package/behaviors/lolo/spec/auth/dev-personas.replay.goldens.json +263 -2
- package/behaviors/lolo/spec/cli/lint-all.lolo +1 -0
- package/behaviors/lolo/spec/cli/lint-item-action-event.replay.goldens.json +9 -9
- package/behaviors/lolo/spec/cli/lint-mem-handles.replay.goldens.json +3021 -1
- package/behaviors/lolo/spec/cli/lint-os-grants.replay.goldens.json +284 -12
- package/behaviors/lolo/spec/cli/mcp-server.replay.goldens.json +51 -55
- package/behaviors/lolo/spec/cli/orb-compile.replay.goldens.json +10 -4
- package/behaviors/lolo/spec/cli/orb-packages.lolo +1 -1
- package/behaviors/lolo/spec/codec/lolo-kotlin.replay.goldens.json +7496 -7497
- package/behaviors/lolo/spec/codec/lolo-python.replay.goldens.json +341 -3
- package/behaviors/lolo/spec/codec/lolo-rust.replay.goldens.json +18931 -6142
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/compose-pair.lolo +44 -0
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/config-read.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/divide-default.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/divide-plain.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/get-past-end.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/list-call.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/list-plain.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/minus-binary.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/minus-unary.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/nested-let.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/no-machine.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/no-template.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/nth-past-end.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/nth-raw.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/ports-call.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/range-one.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/range-two.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/router-trio.lolo +88 -0
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/store-pair.lolo +62 -0
- package/behaviors/lolo/spec/codec/lolo-source.fixtures/string-literal.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.gen/knobs.py +27 -1
- package/behaviors/lolo/spec/codec/lolo-source.gen/src_assemble.in +54 -2
- package/behaviors/lolo/spec/codec/lolo-source.gen/src_finish.in +1 -1
- package/behaviors/lolo/spec/codec/lolo-source.gen/src_fold.in +24 -4
- package/behaviors/lolo/spec/codec/lolo-source.gen/src_head.in +8 -3
- package/behaviors/lolo/spec/codec/lolo-source.gen/src_prepare.in +6 -2
- package/behaviors/lolo/spec/codec/lolo-source.gen/src_trait.in +12 -2
- package/behaviors/lolo/spec/codec/lolo-source.parity/agent-step.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.parity/agent-step.server.lolo +1 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/chunk.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.parity/chunk.server.lolo +1 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/compose-pair.events.json +36 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/compose-pair.replay.goldens.json +91 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/cosine.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.parity/cosine.server.lolo +1 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/kotlin/compose-pair.kt +31 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/kotlin/router-trio.kt +31 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/kotlin/store-pair.kt +31 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/python/compose-pair.py +18 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/python/router-trio.py +18 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/python/store-pair.py +17 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/rust/compose-pair.rs +37 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/rust/router-trio.rs +37 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/rust/store-pair.rs +36 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/swift/compose-pair.swift +24 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/swift/router-trio.swift +24 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/swift/store-pair.swift +23 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/typescript/compose-pair.mts +24 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/typescript/router-trio.mts +24 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/typescript/store-pair.mts +22 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/recall-at-k.lolo +2 -1
- package/behaviors/lolo/spec/codec/lolo-source.parity/recall-at-k.server.lolo +1 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/router-trio.events.json +18 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/router-trio.replay.goldens.json +87 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/store-pair.events.json +58 -0
- package/behaviors/lolo/spec/codec/lolo-source.parity/store-pair.replay.goldens.json +238 -0
- package/behaviors/lolo/spec/codec/lolo-swift.replay.goldens.json +15599 -2204
- package/behaviors/lolo/spec/codec/lolo-typescript.replay.goldens.json +28930 -28929
- package/behaviors/lolo/spec/connect/bearer-api.replay.goldens.json +1 -1
- package/behaviors/lolo/spec/connect/esign.replay.goldens.json +3 -3
- package/behaviors/lolo/spec/connect/github.replay.goldens.json +13 -13
- package/behaviors/lolo/spec/connect/google-calendar.replay.goldens.json +2 -2
- package/behaviors/lolo/spec/connect/image.replay.goldens.json +1 -1
- package/behaviors/lolo/spec/connect/meta-ads.replay.goldens.json +2 -2
- package/behaviors/lolo/spec/connect/stdio-lines.replay.goldens.json +90 -0
- package/behaviors/lolo/spec/connect/twilio.replay.goldens.json +2 -2
- package/behaviors/lolo/spec/connect/youtube.replay.goldens.json +1 -1
- package/behaviors/lolo/spec/dev/guest-session.replay.goldens.json +824 -0
- package/behaviors/lolo/spec/dev/mock-seed-marks.replay.goldens.json +365 -0
- package/behaviors/lolo/spec/dev/verify-walk.replay.goldens.json +2 -1
- package/behaviors/lolo/spec/gpu/gpu-compute.replay.goldens.json +784 -0
- package/behaviors/lolo/spec/mem/mem-buffer.replay.goldens.json +97 -1
- package/behaviors/lolo/spec/ml/vector-write.goldens.json +1 -1
- package/behaviors/lolo/spec/ml/vector-write.replay.goldens.json +2 -2
- package/behaviors/lolo/spec/net/http-client-call-host.replay.goldens.json +3 -3
- package/behaviors/lolo/spec/net/http-client-env-host.replay.goldens.json +3 -3
- package/behaviors/lolo/spec/net/http-client.replay.goldens.json +56 -56
- package/behaviors/lolo/spec/net/http-fetch.replay.goldens.json +2 -2
- package/behaviors/lolo/spec/net/npm-lookup.replay.goldens.json +1 -1
- package/behaviors/lolo/spec/net/npm-registry.replay.goldens.json +2 -2
- package/behaviors/lolo/spec/net/server-declared-traits.replay.goldens.json +6 -3
- package/behaviors/lolo/spec/net/server-external-inputs.replay.goldens.json +16 -8
- package/behaviors/lolo/spec/net/server-retargeted-leg.replay.goldens.json +4 -2
- package/behaviors/lolo/spec/net/server-untargeted-discovery.replay.goldens.json +50 -45
- package/behaviors/lolo/spec/ops/llm-spend-board.replay.goldens.json +112 -16
- package/behaviors/lolo/spec/store/firestore-twin.replay.goldens.json +1 -1
- package/behaviors/lolo/spec/store/row-store-postgres.gen/record_real_sql.py +1 -1
- package/behaviors/lolo/spec/ui/game/fx-particles.replay.goldens.json +37 -0
- package/behaviors/lolo/ui/avl/atoms/std-avl-cosmic-zoom.lolo +2 -2
- package/behaviors/lolo/ui/game/atoms/std-fx-particles.lolo +10 -1
- package/behaviors/lolo/ui/game/atoms/ui-draw-fx-layer.lolo +4 -4
- package/behaviors/lolo/ui/game/organisms/std-arcade-board-3d.lolo +9 -9
- package/behaviors/lolo/ui/game/organisms/std-crew-board-2d.lolo +4 -4
- package/behaviors/lolo/ui/game/organisms/std-dungeon-board-2d.lolo +5 -5
- package/behaviors/lolo/ui/game/organisms/std-market-board-3d.lolo +9 -9
- package/behaviors/lolo/ui/game/organisms/std-objective-board-3d.lolo +9 -9
- package/behaviors/lolo/ui/game/organisms/std-platformer-board-2d.lolo +5 -5
- package/behaviors/lolo/ui/game/organisms/std-platformer-puzzle.lolo +4 -4
- package/behaviors/lolo/ui/game/organisms/std-survival-board-3d.lolo +9 -9
- package/behaviors/lolo/ui/game/organisms/std-tactics-board-2d.lolo +5 -5
- package/behaviors/lolo/ui/game/organisms/std-tactics-board-3d.lolo +9 -9
- package/behaviors/registry/auth/atoms/std-dev-personas.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-goldens.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-mem-handles.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-lint-os-grants.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-mcp.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-packages.orb +1 -1
- package/behaviors/registry/cli/atoms/std-orb-serve.orb +1 -1
- package/behaviors/registry/codec/atoms/std-lolo-kotlin.orb +1 -1
- package/behaviors/registry/codec/atoms/std-lolo-python.orb +1 -1
- package/behaviors/registry/codec/atoms/std-lolo-rust.orb +1 -1
- package/behaviors/registry/codec/atoms/std-lolo-source.orb +1 -1
- package/behaviors/registry/codec/atoms/std-lolo-swift.orb +1 -1
- package/behaviors/registry/codec/atoms/std-lolo-typescript.orb +1 -1
- package/behaviors/registry/connect/atoms/std-meta-ads.orb +1 -1
- package/behaviors/registry/connect/atoms/std-stdio-lines.orb +1 -1
- package/behaviors/registry/connect/atoms/std-youtube.orb +1 -1
- package/behaviors/registry/dev/atoms/std-guest-session.orb +1 -1
- package/behaviors/registry/dev/atoms/std-mock-seed-marks.orb +1 -0
- package/behaviors/registry/dev/organisms/std-behavior-playground.orb +37 -0
- package/behaviors/registry/dev/organisms/std-launchpad.orb +25 -0
- package/behaviors/registry/gpu/atoms/std-gpu-compute.orb +1 -0
- package/behaviors/registry/net/atoms/std-http-client.orb +1 -1
- package/behaviors/registry/net/atoms/std-http-fetch.orb +1 -1
- package/behaviors/registry/net/atoms/std-npm-lookup.orb +1 -1
- package/behaviors/registry/net/atoms/std-npm-registry.orb +1 -1
- package/behaviors/registry/spec/cli/lint-all.orb +1 -1
- package/behaviors/registry/spec/cli/orb-packages.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/compose-pair.orb +1 -0
- package/behaviors/registry/spec/codec/lolo-source.fixtures/config-read.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/divide-default.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/divide-plain.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/get-past-end.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/list-call.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/list-plain.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/minus-binary.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/minus-unary.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/nested-let.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/no-machine.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/no-template.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/nth-past-end.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/nth-raw.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/ports-call.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/range-one.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/range-two.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.fixtures/router-trio.orb +1 -0
- package/behaviors/registry/spec/codec/lolo-source.fixtures/store-pair.orb +1 -0
- package/behaviors/registry/spec/codec/lolo-source.fixtures/string-literal.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.parity/agent-step.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.parity/agent-step.server.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.parity/chunk.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.parity/chunk.server.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.parity/cosine.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.parity/cosine.server.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.parity/recall-at-k.orb +1 -1
- package/behaviors/registry/spec/codec/lolo-source.parity/recall-at-k.server.orb +1 -1
- package/behaviors/registry/ui/avl/atoms/std-avl-cosmic-zoom.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-fx-particles.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-fx-layer.orb +1 -1
- package/behaviors/registry/ui/game/organisms/std-arcade-board-3d.orb +20 -13
- package/behaviors/registry/ui/game/organisms/std-crew-board-2d.orb +9 -5
- package/behaviors/registry/ui/game/organisms/std-dungeon-board-2d.orb +17 -7
- package/behaviors/registry/ui/game/organisms/std-market-board-3d.orb +19 -15
- package/behaviors/registry/ui/game/organisms/std-objective-board-3d.orb +15 -12
- package/behaviors/registry/ui/game/organisms/std-platformer-board-2d.orb +17 -7
- package/behaviors/registry/ui/game/organisms/std-platformer-puzzle.orb +4 -0
- package/behaviors/registry/ui/game/organisms/std-survival-board-3d.orb +15 -12
- package/behaviors/registry/ui/game/organisms/std-tactics-board-2d.orb +13 -6
- package/behaviors/registry/ui/game/organisms/std-tactics-board-3d.orb +14 -12
- package/canonical-operators.json +1426 -103
- package/dist/{chunk-EK22WRB6.js → chunk-2UGHBVU2.js} +2 -2
- package/dist/{chunk-GDMH5T4J.js → chunk-3DK7GI2C.js} +2 -2
- package/dist/chunk-3MDASC5C.js +26 -0
- package/dist/{chunk-K5ZI27PB.js → chunk-3PHO4RRF.js} +1 -1
- package/dist/{chunk-7IEMMYM6.js → chunk-4MJCLAZW.js} +1 -1
- package/dist/{chunk-W4IEV4BY.js → chunk-55JPIL7A.js} +2 -2
- package/dist/{chunk-RUGBZTV3.js → chunk-66BLZLFI.js} +1 -1
- package/dist/{chunk-YWFISV7L.js → chunk-66RAJFOD.js} +1 -1
- package/dist/{chunk-JWOWWGNZ.js → chunk-6ED4SUC6.js} +1 -1
- package/dist/{chunk-LL7P6EII.js → chunk-6KFCHNE2.js} +2 -2
- package/dist/{chunk-GFBL2TW6.js → chunk-A4QB3Y6L.js} +1 -1
- package/dist/chunk-BVWMLS32.js +123 -0
- package/dist/{chunk-5KQCGSNC.js → chunk-CRKVDCY7.js} +1 -1
- package/dist/{chunk-WHQDLLC3.js → chunk-EKWEY4OJ.js} +1 -1
- package/dist/{chunk-Y3BRVNYK.js → chunk-EU22GCGV.js} +2 -2
- package/dist/{chunk-XQPYTDZ4.js → chunk-FB6PKNRS.js} +1 -1
- package/dist/{chunk-UX3MDFX6.js → chunk-FSVOJQLP.js} +1 -1
- package/dist/{chunk-LDBD2FBQ.js → chunk-GAKLBWBR.js} +1 -1
- package/dist/{chunk-C3IEMPRZ.js → chunk-GO3FKBV2.js} +2 -2
- package/dist/{chunk-LZSPEHSM.js → chunk-GPDTJHYY.js} +1 -1
- package/dist/{chunk-W5ABMOXU.js → chunk-JQBWLH5V.js} +1 -1
- package/dist/{chunk-63X6RNY6.js → chunk-KKW3JHTC.js} +1 -1
- package/dist/{chunk-5PLJE42Q.js → chunk-LF2EZVAM.js} +1 -1
- package/dist/{chunk-RXWBYWQB.js → chunk-LGCKOZP3.js} +2 -2
- package/dist/{chunk-JJEADYP7.js → chunk-LMZ6XJFB.js} +2 -2
- package/dist/{chunk-CWYSQZJU.js → chunk-M2YQNSAZ.js} +2 -2
- package/dist/{chunk-GNCKJV3P.js → chunk-MKWHYBIS.js} +1 -1
- package/dist/{chunk-ZB2CLGEG.js → chunk-MXBGYTYF.js} +1 -1
- package/dist/{chunk-UN76TRSK.js → chunk-NH6MXHZR.js} +41 -41
- package/dist/{chunk-II2VW7T6.js → chunk-ODBIX4DB.js} +1 -1
- package/dist/{chunk-3F3CNWOG.js → chunk-OYDQR6DT.js} +2 -2
- package/dist/{chunk-FVL6BT6L.js → chunk-PD6POR44.js} +1 -1
- package/dist/{chunk-U6USXZ5M.js → chunk-PHFT3QNS.js} +2 -2
- package/dist/{chunk-RJYKIZMS.js → chunk-PQZ6PVKG.js} +2 -2
- package/dist/{chunk-TQPQXCSZ.js → chunk-Q6NHXIOZ.js} +2 -2
- package/dist/{chunk-KYGWVCTM.js → chunk-QMDVYTB7.js} +1 -1
- package/dist/{chunk-XKTATY45.js → chunk-RW2KMSG5.js} +4 -4
- package/dist/{chunk-UHNSPTFT.js → chunk-SA2ZS24W.js} +1 -1
- package/dist/{chunk-6YPUQK36.js → chunk-SFWP4UMK.js} +2 -2
- package/dist/{chunk-ZZYLFHBU.js → chunk-TLNEQA4D.js} +1 -1
- package/dist/{chunk-RGTBRWWA.js → chunk-TOODE5AD.js} +2 -2
- package/dist/{chunk-QGWAHOFR.js → chunk-U57GY7SM.js} +2 -2
- package/dist/{chunk-FDJZKB7J.js → chunk-UIDQQJSX.js} +1 -1
- package/dist/{chunk-LLH3WXM3.js → chunk-UVFP2B7I.js} +1 -1
- package/dist/{chunk-4OF7727E.js → chunk-VEGZPCTZ.js} +2 -2
- package/dist/{chunk-73YUPNIT.js → chunk-VXN4V7LC.js} +1 -1
- package/dist/{chunk-4D3W6AAE.js → chunk-YHQVZWPG.js} +1 -1
- package/dist/{chunk-XXYBHYLM.js → chunk-YQO3TO66.js} +2 -2
- package/dist/{chunk-YZAYFR5A.js → chunk-ZSJ3GEOJ.js} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +50 -50
- package/dist/modules/anim.js +2 -2
- package/dist/modules/array.js +2 -2
- package/dist/modules/auth.js +3 -3
- package/dist/modules/behavior.js +2 -2
- package/dist/modules/bit.js +2 -2
- package/dist/modules/browser.js +2 -2
- package/dist/modules/bytes.js +2 -2
- package/dist/modules/codec.js +3 -3
- package/dist/modules/composition.js +2 -2
- package/dist/modules/core.js +2 -2
- package/dist/modules/csv.js +2 -2
- package/dist/modules/ffi.js +3 -3
- package/dist/modules/format.js +2 -2
- package/dist/modules/geo.js +2 -2
- package/dist/modules/gpu.d.ts +12 -0
- package/dist/modules/gpu.js +3 -0
- package/dist/modules/grid.js +2 -2
- package/dist/modules/i18n.js +2 -2
- package/dist/modules/index.d.ts +1 -2
- package/dist/modules/index.js +45 -46
- package/dist/modules/json.js +2 -2
- package/dist/modules/kernel.js +3 -3
- package/dist/modules/kv.js +3 -3
- package/dist/modules/llm.js +2 -2
- package/dist/modules/math.js +2 -2
- package/dist/modules/mem.js +3 -3
- package/dist/modules/object.js +2 -2
- package/dist/modules/os-common.d.ts +1 -1
- package/dist/modules/os-common.js +2 -2
- package/dist/modules/os-desktop.js +3 -3
- package/dist/modules/os-dev.js +3 -3
- package/dist/modules/os-dir.js +3 -3
- package/dist/modules/os-env-stdio.js +3 -3
- package/dist/modules/os-fs.js +3 -3
- package/dist/modules/os-net.js +3 -3
- package/dist/modules/os-path.js +3 -3
- package/dist/modules/os-process.js +3 -3
- package/dist/modules/os-sys.js +3 -3
- package/dist/modules/os-time-users.js +3 -3
- package/dist/modules/os.js +13 -13
- package/dist/modules/path.js +2 -2
- package/dist/modules/prob.js +2 -2
- package/dist/modules/program.js +2 -2
- package/dist/modules/session.js +2 -2
- package/dist/modules/str.js +2 -2
- package/dist/modules/time.js +2 -2
- package/dist/modules/validate.js +2 -2
- package/dist/modules/vector.js +2 -2
- package/dist/modules/workspace.js +2 -2
- package/dist/modules/xml.js +2 -2
- package/dist/modules/yaml.js +2 -2
- package/dist/registry.d.ts +2 -2
- package/dist/registry.js +49 -49
- package/dist/{types-BA4LkhNJ.d.ts → types-CgiGhK6t.d.ts} +17 -3
- package/package.json +5 -5
- package/dist/chunk-F5TP25JA.js +0 -26
- package/dist/chunk-NE4WSTN7.js +0 -26
- package/dist/modules/trace.d.ts +0 -15
- package/dist/modules/trace.js +0 -2
- /package/dist/{chunk-SHSBTDDX.js → chunk-QUQ33UXH.js} +0 -0
package/canonical-operators.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "2.0.0",
|
|
3
3
|
"description": "Canonical operator registry for Almadar. Generated from @almadar/std/modules. Consumed by orbital-compiler via include_str!.",
|
|
4
|
-
"generated": "2026-11-
|
|
4
|
+
"generated": "2026-11-07T06:36:54.062Z",
|
|
5
5
|
"categories": {
|
|
6
6
|
"arithmetic": {
|
|
7
7
|
"description": "Numeric operations",
|
|
@@ -151,6 +151,12 @@
|
|
|
151
151
|
"ts"
|
|
152
152
|
]
|
|
153
153
|
},
|
|
154
|
+
"std-gpu": {
|
|
155
|
+
"description": "Granted GPU device, resource, submit and readback asks (host-answered)",
|
|
156
|
+
"target": [
|
|
157
|
+
"ts"
|
|
158
|
+
]
|
|
159
|
+
},
|
|
154
160
|
"std-kernel-read": {
|
|
155
161
|
"description": "Pure kernel introspection and granted operator application (EXEC-METAL)",
|
|
156
162
|
"target": [
|
|
@@ -212,12 +218,6 @@
|
|
|
212
218
|
"ts"
|
|
213
219
|
]
|
|
214
220
|
},
|
|
215
|
-
"std-trace": {
|
|
216
|
-
"description": "Execution tracing substrate (runtime)",
|
|
217
|
-
"target": [
|
|
218
|
-
"ts"
|
|
219
|
-
]
|
|
220
|
-
},
|
|
221
221
|
"std-codec": {
|
|
222
222
|
"description": "Byte codecs and digests (base64, sha256, md5, hmac-sha256)",
|
|
223
223
|
"target": [
|
|
@@ -1749,7 +1749,8 @@
|
|
|
1749
1749
|
"of": [
|
|
1750
1750
|
{
|
|
1751
1751
|
"kind": "keyOf",
|
|
1752
|
-
"of": "T"
|
|
1752
|
+
"of": "T",
|
|
1753
|
+
"value": "string"
|
|
1753
1754
|
},
|
|
1754
1755
|
{
|
|
1755
1756
|
"kind": "fn",
|
|
@@ -2194,7 +2195,7 @@
|
|
|
2194
2195
|
}
|
|
2195
2196
|
]
|
|
2196
2197
|
},
|
|
2197
|
-
"description": "Get element at index (element type of input array; null
|
|
2198
|
+
"description": "Get element at index (element type of input array; null at or past the length). The index is a whole number from 0: a negative index (such as the -1 of array/findIndex) is invalid and raises. A pair or tuple of unlike types (an entry of object/entries) is indexed too; its element type is then not determined",
|
|
2198
2199
|
"module": "array",
|
|
2199
2200
|
"visual": {
|
|
2200
2201
|
"form": "block"
|
|
@@ -2229,7 +2230,7 @@
|
|
|
2229
2230
|
{
|
|
2230
2231
|
"name": "index",
|
|
2231
2232
|
"type": "number",
|
|
2232
|
-
"description": "Index (
|
|
2233
|
+
"description": "Index: a whole number from 0 (a negative index is invalid)"
|
|
2233
2234
|
}
|
|
2234
2235
|
],
|
|
2235
2236
|
"examples": [
|
|
@@ -9486,78 +9487,1438 @@
|
|
|
9486
9487
|
"description": "Rect {x,y,w,h}"
|
|
9487
9488
|
},
|
|
9488
9489
|
{
|
|
9489
|
-
"name": "circle",
|
|
9490
|
-
"type": "circle",
|
|
9491
|
-
"description": "Circle {x,y,r}"
|
|
9490
|
+
"name": "circle",
|
|
9491
|
+
"type": "circle",
|
|
9492
|
+
"description": "Circle {x,y,r}"
|
|
9493
|
+
}
|
|
9494
|
+
],
|
|
9495
|
+
"examples": [
|
|
9496
|
+
"(geo/rect-circle-overlap {\"x\":0,\"y\":0,\"w\":10,\"h\":10} {\"x\":12,\"y\":5,\"r\":3}) // => true"
|
|
9497
|
+
],
|
|
9498
|
+
"docsSource": "generated"
|
|
9499
|
+
},
|
|
9500
|
+
"geo/reflect": {
|
|
9501
|
+
"category": "std-geo",
|
|
9502
|
+
"minArity": 2,
|
|
9503
|
+
"maxArity": 2,
|
|
9504
|
+
"returnType": "vector",
|
|
9505
|
+
"description": "Reflect vector v across normal n (assumed normalized)",
|
|
9506
|
+
"module": "geo",
|
|
9507
|
+
"visual": {
|
|
9508
|
+
"form": "block"
|
|
9509
|
+
},
|
|
9510
|
+
"title": "Reflect",
|
|
9511
|
+
"params": [
|
|
9512
|
+
{
|
|
9513
|
+
"name": "v",
|
|
9514
|
+
"type": "vector",
|
|
9515
|
+
"description": "Incident vector {x,y[,z]}"
|
|
9516
|
+
},
|
|
9517
|
+
{
|
|
9518
|
+
"name": "n",
|
|
9519
|
+
"type": "vector",
|
|
9520
|
+
"description": "Surface normal (normalized)"
|
|
9521
|
+
}
|
|
9522
|
+
],
|
|
9523
|
+
"examples": [
|
|
9524
|
+
"(geo/reflect {\"x\":1,\"y\":-1} {\"x\":0,\"y\":1})"
|
|
9525
|
+
],
|
|
9526
|
+
"docsSource": "generated"
|
|
9527
|
+
},
|
|
9528
|
+
"geo/segment-intersect": {
|
|
9529
|
+
"category": "std-geo",
|
|
9530
|
+
"minArity": 2,
|
|
9531
|
+
"maxArity": 2,
|
|
9532
|
+
"returnType": {
|
|
9533
|
+
"kind": "union",
|
|
9534
|
+
"of": [
|
|
9535
|
+
"point",
|
|
9536
|
+
{
|
|
9537
|
+
"kind": "literal",
|
|
9538
|
+
"value": null
|
|
9539
|
+
}
|
|
9540
|
+
]
|
|
9541
|
+
},
|
|
9542
|
+
"description": "Intersection point of two segments, or null when parallel/none",
|
|
9543
|
+
"module": "geo",
|
|
9544
|
+
"visual": {
|
|
9545
|
+
"form": "block"
|
|
9546
|
+
},
|
|
9547
|
+
"title": "Segment Intersect",
|
|
9548
|
+
"params": [
|
|
9549
|
+
{
|
|
9550
|
+
"name": "a",
|
|
9551
|
+
"type": "segment",
|
|
9552
|
+
"description": "First segment {x1,y1,x2,y2}"
|
|
9553
|
+
},
|
|
9554
|
+
{
|
|
9555
|
+
"name": "b",
|
|
9556
|
+
"type": "segment",
|
|
9557
|
+
"description": "Second segment {x1,y1,x2,y2}"
|
|
9558
|
+
}
|
|
9559
|
+
],
|
|
9560
|
+
"examples": [
|
|
9561
|
+
"(geo/segment-intersect {\"x1\":0,\"y1\":0,\"x2\":4,\"y2\":4} {\"x1\":0,\"y1\":4,\"x2\":4,\"y2\":0})"
|
|
9562
|
+
],
|
|
9563
|
+
"docsSource": "generated"
|
|
9564
|
+
},
|
|
9565
|
+
"gpu/bind-group-create": {
|
|
9566
|
+
"category": "std-gpu",
|
|
9567
|
+
"minArity": 3,
|
|
9568
|
+
"maxArity": 4,
|
|
9569
|
+
"returnType": "void",
|
|
9570
|
+
"description": "Bind resources to bind group number group of a pipeline. Each entry is { binding, buffer?, texture?, sampler?, offset?, size? } with exactly one of buffer, texture or sampler; offset and size select a range of a buffer. Needs no grant beyond holding the handle (the grant was checked at gpu/device-open). Success payload: { bindGroup } (a sealed GpuBindGroup handle). Failure kind: closed (the device or a handle is not live), invalid (a malformed descriptor, an unknown usage or format, a size beyond the granted maxBytes), unsupported (a host without a GPU), io (the device failed).",
|
|
9571
|
+
"module": "gpu",
|
|
9572
|
+
"visual": {
|
|
9573
|
+
"form": "actuator"
|
|
9574
|
+
},
|
|
9575
|
+
"hasSideEffects": true,
|
|
9576
|
+
"effect": {
|
|
9577
|
+
"kind": "custom",
|
|
9578
|
+
"produces": {
|
|
9579
|
+
"kind": "object",
|
|
9580
|
+
"fields": {
|
|
9581
|
+
"bindGroup": "GpuBindGroup",
|
|
9582
|
+
"key": "string"
|
|
9583
|
+
},
|
|
9584
|
+
"optional": [
|
|
9585
|
+
"key"
|
|
9586
|
+
]
|
|
9587
|
+
}
|
|
9588
|
+
},
|
|
9589
|
+
"grant": [],
|
|
9590
|
+
"runsOn": "any",
|
|
9591
|
+
"host": "os",
|
|
9592
|
+
"params": [
|
|
9593
|
+
{
|
|
9594
|
+
"name": "pipeline",
|
|
9595
|
+
"type": "GpuPipeline",
|
|
9596
|
+
"description": "The pipeline whose layout the group follows"
|
|
9597
|
+
},
|
|
9598
|
+
{
|
|
9599
|
+
"name": "group",
|
|
9600
|
+
"type": "int",
|
|
9601
|
+
"description": "The bind group index in the pipeline layout"
|
|
9602
|
+
},
|
|
9603
|
+
{
|
|
9604
|
+
"name": "entries",
|
|
9605
|
+
"type": {
|
|
9606
|
+
"kind": "array",
|
|
9607
|
+
"of": {
|
|
9608
|
+
"kind": "object",
|
|
9609
|
+
"fields": {
|
|
9610
|
+
"binding": "int",
|
|
9611
|
+
"buffer": "GpuBuffer",
|
|
9612
|
+
"texture": "GpuTexture",
|
|
9613
|
+
"sampler": "GpuSampler",
|
|
9614
|
+
"offset": "int",
|
|
9615
|
+
"size": "int"
|
|
9616
|
+
},
|
|
9617
|
+
"optional": [
|
|
9618
|
+
"buffer",
|
|
9619
|
+
"texture",
|
|
9620
|
+
"sampler",
|
|
9621
|
+
"offset",
|
|
9622
|
+
"size"
|
|
9623
|
+
]
|
|
9624
|
+
}
|
|
9625
|
+
},
|
|
9626
|
+
"description": "The bindings: { binding, buffer?, texture?, sampler?, offset?, size? }"
|
|
9627
|
+
},
|
|
9628
|
+
{
|
|
9629
|
+
"name": "options",
|
|
9630
|
+
"type": {
|
|
9631
|
+
"kind": "object",
|
|
9632
|
+
"fields": {
|
|
9633
|
+
"key": "string",
|
|
9634
|
+
"emit": {
|
|
9635
|
+
"kind": "object",
|
|
9636
|
+
"fields": {
|
|
9637
|
+
"success": {
|
|
9638
|
+
"kind": "eventKey"
|
|
9639
|
+
},
|
|
9640
|
+
"failure": {
|
|
9641
|
+
"kind": "eventKey"
|
|
9642
|
+
},
|
|
9643
|
+
"cancelled": {
|
|
9644
|
+
"kind": "eventKey"
|
|
9645
|
+
}
|
|
9646
|
+
},
|
|
9647
|
+
"open": true
|
|
9648
|
+
}
|
|
9649
|
+
},
|
|
9650
|
+
"open": true
|
|
9651
|
+
},
|
|
9652
|
+
"description": "Optional trailing options: { emit: { success, failure, key? } } routes the success payload and the { error, kind } failure; kind is one of denied, not-found, exists, invalid, io, timeout, unsupported, closed, borrowed",
|
|
9653
|
+
"optional": true
|
|
9654
|
+
}
|
|
9655
|
+
],
|
|
9656
|
+
"examples": [
|
|
9657
|
+
"(gpu/bind-group-create @entity.pipeline 0 [{\"binding\":0,\"buffer\":\"@entity.buffer\"}] {\"emit\":{\"success\":\"BINDGROUP_READY\",\"failure\":\"GPU_FAILED\"}})"
|
|
9658
|
+
],
|
|
9659
|
+
"docsSource": "generated"
|
|
9660
|
+
},
|
|
9661
|
+
"gpu/buffer-create": {
|
|
9662
|
+
"category": "std-gpu",
|
|
9663
|
+
"minArity": 2,
|
|
9664
|
+
"maxArity": 3,
|
|
9665
|
+
"returnType": "void",
|
|
9666
|
+
"description": "Create a buffer of size bytes; usage lists the buffer usages (\"map-read\", \"map-write\", \"copy-src\", \"copy-dst\", \"index\", \"vertex\", \"uniform\", \"storage\", \"indirect\", \"query-resolve\"). The size counts against the maxBytes of the device grant. Needs no grant beyond holding the handle (the grant was checked at gpu/device-open). Success payload: { buffer } (a sealed GpuBuffer handle). Failure kind: closed (the device or a handle is not live), invalid (a malformed descriptor, an unknown usage or format, a size beyond the granted maxBytes), unsupported (a host without a GPU), io (the device failed).",
|
|
9667
|
+
"module": "gpu",
|
|
9668
|
+
"visual": {
|
|
9669
|
+
"form": "actuator"
|
|
9670
|
+
},
|
|
9671
|
+
"hasSideEffects": true,
|
|
9672
|
+
"effect": {
|
|
9673
|
+
"kind": "custom",
|
|
9674
|
+
"produces": {
|
|
9675
|
+
"kind": "object",
|
|
9676
|
+
"fields": {
|
|
9677
|
+
"buffer": "GpuBuffer",
|
|
9678
|
+
"key": "string"
|
|
9679
|
+
},
|
|
9680
|
+
"optional": [
|
|
9681
|
+
"key"
|
|
9682
|
+
]
|
|
9683
|
+
}
|
|
9684
|
+
},
|
|
9685
|
+
"grant": [],
|
|
9686
|
+
"runsOn": "any",
|
|
9687
|
+
"host": "os",
|
|
9688
|
+
"params": [
|
|
9689
|
+
{
|
|
9690
|
+
"name": "device",
|
|
9691
|
+
"type": "GpuDevice",
|
|
9692
|
+
"description": "The open GPU device the object belongs to"
|
|
9693
|
+
},
|
|
9694
|
+
{
|
|
9695
|
+
"name": "desc",
|
|
9696
|
+
"type": {
|
|
9697
|
+
"kind": "object",
|
|
9698
|
+
"fields": {
|
|
9699
|
+
"size": "int",
|
|
9700
|
+
"usage": {
|
|
9701
|
+
"kind": "array",
|
|
9702
|
+
"of": {
|
|
9703
|
+
"kind": "union",
|
|
9704
|
+
"of": [
|
|
9705
|
+
{
|
|
9706
|
+
"kind": "literal",
|
|
9707
|
+
"value": "map-read"
|
|
9708
|
+
},
|
|
9709
|
+
{
|
|
9710
|
+
"kind": "literal",
|
|
9711
|
+
"value": "map-write"
|
|
9712
|
+
},
|
|
9713
|
+
{
|
|
9714
|
+
"kind": "literal",
|
|
9715
|
+
"value": "copy-src"
|
|
9716
|
+
},
|
|
9717
|
+
{
|
|
9718
|
+
"kind": "literal",
|
|
9719
|
+
"value": "copy-dst"
|
|
9720
|
+
},
|
|
9721
|
+
{
|
|
9722
|
+
"kind": "literal",
|
|
9723
|
+
"value": "index"
|
|
9724
|
+
},
|
|
9725
|
+
{
|
|
9726
|
+
"kind": "literal",
|
|
9727
|
+
"value": "vertex"
|
|
9728
|
+
},
|
|
9729
|
+
{
|
|
9730
|
+
"kind": "literal",
|
|
9731
|
+
"value": "uniform"
|
|
9732
|
+
},
|
|
9733
|
+
{
|
|
9734
|
+
"kind": "literal",
|
|
9735
|
+
"value": "storage"
|
|
9736
|
+
},
|
|
9737
|
+
{
|
|
9738
|
+
"kind": "literal",
|
|
9739
|
+
"value": "indirect"
|
|
9740
|
+
},
|
|
9741
|
+
{
|
|
9742
|
+
"kind": "literal",
|
|
9743
|
+
"value": "query-resolve"
|
|
9744
|
+
}
|
|
9745
|
+
]
|
|
9746
|
+
}
|
|
9747
|
+
}
|
|
9748
|
+
}
|
|
9749
|
+
},
|
|
9750
|
+
"description": "Buffer descriptor: { size, usage }"
|
|
9751
|
+
},
|
|
9752
|
+
{
|
|
9753
|
+
"name": "options",
|
|
9754
|
+
"type": {
|
|
9755
|
+
"kind": "object",
|
|
9756
|
+
"fields": {
|
|
9757
|
+
"key": "string",
|
|
9758
|
+
"emit": {
|
|
9759
|
+
"kind": "object",
|
|
9760
|
+
"fields": {
|
|
9761
|
+
"success": {
|
|
9762
|
+
"kind": "eventKey"
|
|
9763
|
+
},
|
|
9764
|
+
"failure": {
|
|
9765
|
+
"kind": "eventKey"
|
|
9766
|
+
},
|
|
9767
|
+
"cancelled": {
|
|
9768
|
+
"kind": "eventKey"
|
|
9769
|
+
}
|
|
9770
|
+
},
|
|
9771
|
+
"open": true
|
|
9772
|
+
}
|
|
9773
|
+
},
|
|
9774
|
+
"open": true
|
|
9775
|
+
},
|
|
9776
|
+
"description": "Optional trailing options: { emit: { success, failure, key? } } routes the success payload and the { error, kind } failure; kind is one of denied, not-found, exists, invalid, io, timeout, unsupported, closed, borrowed",
|
|
9777
|
+
"optional": true
|
|
9778
|
+
}
|
|
9779
|
+
],
|
|
9780
|
+
"examples": [
|
|
9781
|
+
"(gpu/buffer-create @entity.device {\"size\":4096,\"usage\":[\"storage\",\"copy-src\",\"copy-dst\"]} {\"emit\":{\"success\":\"BUFFER_READY\",\"failure\":\"GPU_FAILED\"}})"
|
|
9782
|
+
],
|
|
9783
|
+
"docsSource": "generated"
|
|
9784
|
+
},
|
|
9785
|
+
"gpu/device-close": {
|
|
9786
|
+
"category": "std-gpu",
|
|
9787
|
+
"minArity": 1,
|
|
9788
|
+
"maxArity": 2,
|
|
9789
|
+
"returnType": "void",
|
|
9790
|
+
"description": "Close a GPU device and drop every object created on it; handles of the device are no longer live. Needs no grant beyond holding the handle (the grant was checked at gpu/device-open). Success payload: {}. Failure kind: closed (the device is not live).",
|
|
9791
|
+
"module": "gpu",
|
|
9792
|
+
"visual": {
|
|
9793
|
+
"form": "actuator"
|
|
9794
|
+
},
|
|
9795
|
+
"hasSideEffects": true,
|
|
9796
|
+
"effect": {
|
|
9797
|
+
"kind": "custom",
|
|
9798
|
+
"produces": {
|
|
9799
|
+
"kind": "object",
|
|
9800
|
+
"fields": {
|
|
9801
|
+
"key": "string"
|
|
9802
|
+
},
|
|
9803
|
+
"optional": [
|
|
9804
|
+
"key"
|
|
9805
|
+
]
|
|
9806
|
+
}
|
|
9807
|
+
},
|
|
9808
|
+
"grant": [],
|
|
9809
|
+
"runsOn": "any",
|
|
9810
|
+
"host": "os",
|
|
9811
|
+
"params": [
|
|
9812
|
+
{
|
|
9813
|
+
"name": "device",
|
|
9814
|
+
"type": "GpuDevice",
|
|
9815
|
+
"description": "The open GPU device the object belongs to"
|
|
9816
|
+
},
|
|
9817
|
+
{
|
|
9818
|
+
"name": "options",
|
|
9819
|
+
"type": {
|
|
9820
|
+
"kind": "object",
|
|
9821
|
+
"fields": {
|
|
9822
|
+
"key": "string",
|
|
9823
|
+
"emit": {
|
|
9824
|
+
"kind": "object",
|
|
9825
|
+
"fields": {
|
|
9826
|
+
"success": {
|
|
9827
|
+
"kind": "eventKey"
|
|
9828
|
+
},
|
|
9829
|
+
"failure": {
|
|
9830
|
+
"kind": "eventKey"
|
|
9831
|
+
},
|
|
9832
|
+
"cancelled": {
|
|
9833
|
+
"kind": "eventKey"
|
|
9834
|
+
}
|
|
9835
|
+
},
|
|
9836
|
+
"open": true
|
|
9837
|
+
}
|
|
9838
|
+
},
|
|
9839
|
+
"open": true
|
|
9840
|
+
},
|
|
9841
|
+
"description": "Optional trailing options: { emit: { success, failure, key? } } routes the success payload and the { error, kind } failure; kind is one of denied, not-found, exists, invalid, io, timeout, unsupported, closed, borrowed",
|
|
9842
|
+
"optional": true
|
|
9843
|
+
}
|
|
9844
|
+
],
|
|
9845
|
+
"examples": [
|
|
9846
|
+
"(gpu/device-close @entity.device {\"emit\":{\"failure\":\"GPU_FAILED\"}})"
|
|
9847
|
+
],
|
|
9848
|
+
"docsSource": "generated"
|
|
9849
|
+
},
|
|
9850
|
+
"gpu/device-open": {
|
|
9851
|
+
"category": "std-gpu",
|
|
9852
|
+
"minArity": 1,
|
|
9853
|
+
"maxArity": 2,
|
|
9854
|
+
"returnType": "void",
|
|
9855
|
+
"description": "Open a GPU device (grant gpu: { \"device:<maxBytes>\": [open] }). powerPreference is \"low-power\" or \"high-performance\"; features lists the optional device features to require. Completion is deferred: the host answers when the adapter is ready. Success payload: { device, features, limits } (a sealed GpuDevice handle, the features granted, and the device limits as a map of limit name to integer). Failure kind: denied (no open grant), invalid (an unknown power preference or feature), unsupported (a host without a GPU: no adapter, wasm without WebGPU), io (the adapter or device request failed).",
|
|
9856
|
+
"module": "gpu",
|
|
9857
|
+
"visual": {
|
|
9858
|
+
"form": "actuator"
|
|
9859
|
+
},
|
|
9860
|
+
"hasSideEffects": true,
|
|
9861
|
+
"effect": {
|
|
9862
|
+
"kind": "custom",
|
|
9863
|
+
"produces": {
|
|
9864
|
+
"kind": "object",
|
|
9865
|
+
"fields": {
|
|
9866
|
+
"device": "GpuDevice",
|
|
9867
|
+
"features": {
|
|
9868
|
+
"kind": "array",
|
|
9869
|
+
"of": {
|
|
9870
|
+
"kind": "union",
|
|
9871
|
+
"of": [
|
|
9872
|
+
{
|
|
9873
|
+
"kind": "literal",
|
|
9874
|
+
"value": "timestamp-query"
|
|
9875
|
+
},
|
|
9876
|
+
{
|
|
9877
|
+
"kind": "literal",
|
|
9878
|
+
"value": "shader-f16"
|
|
9879
|
+
},
|
|
9880
|
+
{
|
|
9881
|
+
"kind": "literal",
|
|
9882
|
+
"value": "float32-filterable"
|
|
9883
|
+
}
|
|
9884
|
+
]
|
|
9885
|
+
}
|
|
9886
|
+
},
|
|
9887
|
+
"limits": {
|
|
9888
|
+
"kind": "map",
|
|
9889
|
+
"key": "string",
|
|
9890
|
+
"value": "int"
|
|
9891
|
+
},
|
|
9892
|
+
"key": "string"
|
|
9893
|
+
},
|
|
9894
|
+
"optional": [
|
|
9895
|
+
"key"
|
|
9896
|
+
]
|
|
9897
|
+
}
|
|
9898
|
+
},
|
|
9899
|
+
"grant": [
|
|
9900
|
+
{
|
|
9901
|
+
"kind": "gpu",
|
|
9902
|
+
"access": "open"
|
|
9903
|
+
}
|
|
9904
|
+
],
|
|
9905
|
+
"runsOn": "any",
|
|
9906
|
+
"host": "os",
|
|
9907
|
+
"params": [
|
|
9908
|
+
{
|
|
9909
|
+
"name": "desc",
|
|
9910
|
+
"type": {
|
|
9911
|
+
"kind": "object",
|
|
9912
|
+
"fields": {
|
|
9913
|
+
"powerPreference": {
|
|
9914
|
+
"kind": "union",
|
|
9915
|
+
"of": [
|
|
9916
|
+
{
|
|
9917
|
+
"kind": "literal",
|
|
9918
|
+
"value": "low-power"
|
|
9919
|
+
},
|
|
9920
|
+
{
|
|
9921
|
+
"kind": "literal",
|
|
9922
|
+
"value": "high-performance"
|
|
9923
|
+
}
|
|
9924
|
+
]
|
|
9925
|
+
},
|
|
9926
|
+
"features": {
|
|
9927
|
+
"kind": "array",
|
|
9928
|
+
"of": {
|
|
9929
|
+
"kind": "union",
|
|
9930
|
+
"of": [
|
|
9931
|
+
{
|
|
9932
|
+
"kind": "literal",
|
|
9933
|
+
"value": "timestamp-query"
|
|
9934
|
+
},
|
|
9935
|
+
{
|
|
9936
|
+
"kind": "literal",
|
|
9937
|
+
"value": "shader-f16"
|
|
9938
|
+
},
|
|
9939
|
+
{
|
|
9940
|
+
"kind": "literal",
|
|
9941
|
+
"value": "float32-filterable"
|
|
9942
|
+
}
|
|
9943
|
+
]
|
|
9944
|
+
}
|
|
9945
|
+
}
|
|
9946
|
+
},
|
|
9947
|
+
"optional": [
|
|
9948
|
+
"powerPreference",
|
|
9949
|
+
"features"
|
|
9950
|
+
]
|
|
9951
|
+
},
|
|
9952
|
+
"description": "Device request: { powerPreference?, features? }"
|
|
9953
|
+
},
|
|
9954
|
+
{
|
|
9955
|
+
"name": "options",
|
|
9956
|
+
"type": {
|
|
9957
|
+
"kind": "object",
|
|
9958
|
+
"fields": {
|
|
9959
|
+
"key": "string",
|
|
9960
|
+
"emit": {
|
|
9961
|
+
"kind": "object",
|
|
9962
|
+
"fields": {
|
|
9963
|
+
"success": {
|
|
9964
|
+
"kind": "eventKey"
|
|
9965
|
+
},
|
|
9966
|
+
"failure": {
|
|
9967
|
+
"kind": "eventKey"
|
|
9968
|
+
},
|
|
9969
|
+
"cancelled": {
|
|
9970
|
+
"kind": "eventKey"
|
|
9971
|
+
}
|
|
9972
|
+
},
|
|
9973
|
+
"open": true
|
|
9974
|
+
}
|
|
9975
|
+
},
|
|
9976
|
+
"open": true
|
|
9977
|
+
},
|
|
9978
|
+
"description": "Optional trailing options: { emit: { success, failure, key? } } routes the success payload and the { error, kind } failure; kind is one of denied, not-found, exists, invalid, io, timeout, unsupported, closed, borrowed",
|
|
9979
|
+
"optional": true
|
|
9980
|
+
}
|
|
9981
|
+
],
|
|
9982
|
+
"examples": [
|
|
9983
|
+
"(gpu/device-open {\"powerPreference\":\"high-performance\"} {\"emit\":{\"success\":\"GPU_READY\",\"failure\":\"GPU_FAILED\"}})"
|
|
9984
|
+
],
|
|
9985
|
+
"docsSource": "generated"
|
|
9986
|
+
},
|
|
9987
|
+
"gpu/pipeline-create": {
|
|
9988
|
+
"category": "std-gpu",
|
|
9989
|
+
"minArity": 2,
|
|
9990
|
+
"maxArity": 3,
|
|
9991
|
+
"returnType": "void",
|
|
9992
|
+
"description": "Create a pipeline from a shader module. kind is \"compute\" or \"render\"; entry names the entry point (the vertex entry for a render pipeline); fragment names the fragment entry and targets lists the color target formats of a render pipeline. Needs no grant beyond holding the handle (the grant was checked at gpu/device-open). Success payload: { pipeline } (a sealed GpuPipeline handle whose kind field is the pipeline kind). Failure kind: closed (the device or a handle is not live), invalid (a malformed descriptor, an unknown usage or format, a size beyond the granted maxBytes), unsupported (a host without a GPU), io (the device failed).",
|
|
9993
|
+
"module": "gpu",
|
|
9994
|
+
"visual": {
|
|
9995
|
+
"form": "actuator"
|
|
9996
|
+
},
|
|
9997
|
+
"hasSideEffects": true,
|
|
9998
|
+
"effect": {
|
|
9999
|
+
"kind": "custom",
|
|
10000
|
+
"produces": {
|
|
10001
|
+
"kind": "object",
|
|
10002
|
+
"fields": {
|
|
10003
|
+
"pipeline": "GpuPipeline",
|
|
10004
|
+
"key": "string"
|
|
10005
|
+
},
|
|
10006
|
+
"optional": [
|
|
10007
|
+
"key"
|
|
10008
|
+
]
|
|
10009
|
+
}
|
|
10010
|
+
},
|
|
10011
|
+
"grant": [],
|
|
10012
|
+
"runsOn": "any",
|
|
10013
|
+
"host": "os",
|
|
10014
|
+
"params": [
|
|
10015
|
+
{
|
|
10016
|
+
"name": "device",
|
|
10017
|
+
"type": "GpuDevice",
|
|
10018
|
+
"description": "The open GPU device the object belongs to"
|
|
10019
|
+
},
|
|
10020
|
+
{
|
|
10021
|
+
"name": "desc",
|
|
10022
|
+
"type": {
|
|
10023
|
+
"kind": "object",
|
|
10024
|
+
"fields": {
|
|
10025
|
+
"kind": {
|
|
10026
|
+
"kind": "union",
|
|
10027
|
+
"of": [
|
|
10028
|
+
{
|
|
10029
|
+
"kind": "literal",
|
|
10030
|
+
"value": "compute"
|
|
10031
|
+
},
|
|
10032
|
+
{
|
|
10033
|
+
"kind": "literal",
|
|
10034
|
+
"value": "render"
|
|
10035
|
+
}
|
|
10036
|
+
]
|
|
10037
|
+
},
|
|
10038
|
+
"shader": "GpuShader",
|
|
10039
|
+
"entry": "string",
|
|
10040
|
+
"fragment": "string",
|
|
10041
|
+
"targets": {
|
|
10042
|
+
"kind": "array",
|
|
10043
|
+
"of": {
|
|
10044
|
+
"kind": "union",
|
|
10045
|
+
"of": [
|
|
10046
|
+
{
|
|
10047
|
+
"kind": "literal",
|
|
10048
|
+
"value": "r8unorm"
|
|
10049
|
+
},
|
|
10050
|
+
{
|
|
10051
|
+
"kind": "literal",
|
|
10052
|
+
"value": "rg8unorm"
|
|
10053
|
+
},
|
|
10054
|
+
{
|
|
10055
|
+
"kind": "literal",
|
|
10056
|
+
"value": "rgba8unorm"
|
|
10057
|
+
},
|
|
10058
|
+
{
|
|
10059
|
+
"kind": "literal",
|
|
10060
|
+
"value": "rgba8unorm-srgb"
|
|
10061
|
+
},
|
|
10062
|
+
{
|
|
10063
|
+
"kind": "literal",
|
|
10064
|
+
"value": "bgra8unorm"
|
|
10065
|
+
},
|
|
10066
|
+
{
|
|
10067
|
+
"kind": "literal",
|
|
10068
|
+
"value": "bgra8unorm-srgb"
|
|
10069
|
+
},
|
|
10070
|
+
{
|
|
10071
|
+
"kind": "literal",
|
|
10072
|
+
"value": "r16float"
|
|
10073
|
+
},
|
|
10074
|
+
{
|
|
10075
|
+
"kind": "literal",
|
|
10076
|
+
"value": "rg16float"
|
|
10077
|
+
},
|
|
10078
|
+
{
|
|
10079
|
+
"kind": "literal",
|
|
10080
|
+
"value": "rgba16float"
|
|
10081
|
+
},
|
|
10082
|
+
{
|
|
10083
|
+
"kind": "literal",
|
|
10084
|
+
"value": "r32float"
|
|
10085
|
+
},
|
|
10086
|
+
{
|
|
10087
|
+
"kind": "literal",
|
|
10088
|
+
"value": "rg32float"
|
|
10089
|
+
},
|
|
10090
|
+
{
|
|
10091
|
+
"kind": "literal",
|
|
10092
|
+
"value": "rgba32float"
|
|
10093
|
+
},
|
|
10094
|
+
{
|
|
10095
|
+
"kind": "literal",
|
|
10096
|
+
"value": "r32uint"
|
|
10097
|
+
},
|
|
10098
|
+
{
|
|
10099
|
+
"kind": "literal",
|
|
10100
|
+
"value": "r32sint"
|
|
10101
|
+
},
|
|
10102
|
+
{
|
|
10103
|
+
"kind": "literal",
|
|
10104
|
+
"value": "rgba8uint"
|
|
10105
|
+
},
|
|
10106
|
+
{
|
|
10107
|
+
"kind": "literal",
|
|
10108
|
+
"value": "rgba8sint"
|
|
10109
|
+
},
|
|
10110
|
+
{
|
|
10111
|
+
"kind": "literal",
|
|
10112
|
+
"value": "rgba32uint"
|
|
10113
|
+
},
|
|
10114
|
+
{
|
|
10115
|
+
"kind": "literal",
|
|
10116
|
+
"value": "rgba32sint"
|
|
10117
|
+
},
|
|
10118
|
+
{
|
|
10119
|
+
"kind": "literal",
|
|
10120
|
+
"value": "depth32float"
|
|
10121
|
+
}
|
|
10122
|
+
]
|
|
10123
|
+
}
|
|
10124
|
+
}
|
|
10125
|
+
},
|
|
10126
|
+
"optional": [
|
|
10127
|
+
"fragment",
|
|
10128
|
+
"targets"
|
|
10129
|
+
]
|
|
10130
|
+
},
|
|
10131
|
+
"description": "Pipeline descriptor: { kind, shader, entry, fragment?, targets? }"
|
|
10132
|
+
},
|
|
10133
|
+
{
|
|
10134
|
+
"name": "options",
|
|
10135
|
+
"type": {
|
|
10136
|
+
"kind": "object",
|
|
10137
|
+
"fields": {
|
|
10138
|
+
"key": "string",
|
|
10139
|
+
"emit": {
|
|
10140
|
+
"kind": "object",
|
|
10141
|
+
"fields": {
|
|
10142
|
+
"success": {
|
|
10143
|
+
"kind": "eventKey"
|
|
10144
|
+
},
|
|
10145
|
+
"failure": {
|
|
10146
|
+
"kind": "eventKey"
|
|
10147
|
+
},
|
|
10148
|
+
"cancelled": {
|
|
10149
|
+
"kind": "eventKey"
|
|
10150
|
+
}
|
|
10151
|
+
},
|
|
10152
|
+
"open": true
|
|
10153
|
+
}
|
|
10154
|
+
},
|
|
10155
|
+
"open": true
|
|
10156
|
+
},
|
|
10157
|
+
"description": "Optional trailing options: { emit: { success, failure, key? } } routes the success payload and the { error, kind } failure; kind is one of denied, not-found, exists, invalid, io, timeout, unsupported, closed, borrowed",
|
|
10158
|
+
"optional": true
|
|
10159
|
+
}
|
|
10160
|
+
],
|
|
10161
|
+
"examples": [
|
|
10162
|
+
"(gpu/pipeline-create @entity.device {\"kind\":\"compute\",\"shader\":\"@entity.shader\",\"entry\":\"main\"} {\"emit\":{\"success\":\"PIPELINE_READY\",\"failure\":\"GPU_FAILED\"}})"
|
|
10163
|
+
],
|
|
10164
|
+
"docsSource": "generated"
|
|
10165
|
+
},
|
|
10166
|
+
"gpu/query-create": {
|
|
10167
|
+
"category": "std-gpu",
|
|
10168
|
+
"minArity": 2,
|
|
10169
|
+
"maxArity": 3,
|
|
10170
|
+
"returnType": "void",
|
|
10171
|
+
"description": "Create a timestamp query set of count slots; a gpu/submit timestamp command writes one slot. Needs no grant beyond holding the handle (the grant was checked at gpu/device-open). Success payload: { querySet } (a sealed GpuQuerySet handle). Failure kind: closed (the device or a handle is not live), invalid (a malformed descriptor, an unknown usage or format, a size beyond the granted maxBytes), unsupported (a host without a GPU), io (the device failed).",
|
|
10172
|
+
"module": "gpu",
|
|
10173
|
+
"visual": {
|
|
10174
|
+
"form": "actuator"
|
|
10175
|
+
},
|
|
10176
|
+
"hasSideEffects": true,
|
|
10177
|
+
"effect": {
|
|
10178
|
+
"kind": "custom",
|
|
10179
|
+
"produces": {
|
|
10180
|
+
"kind": "object",
|
|
10181
|
+
"fields": {
|
|
10182
|
+
"querySet": "GpuQuerySet",
|
|
10183
|
+
"key": "string"
|
|
10184
|
+
},
|
|
10185
|
+
"optional": [
|
|
10186
|
+
"key"
|
|
10187
|
+
]
|
|
10188
|
+
}
|
|
10189
|
+
},
|
|
10190
|
+
"grant": [],
|
|
10191
|
+
"runsOn": "any",
|
|
10192
|
+
"host": "os",
|
|
10193
|
+
"params": [
|
|
10194
|
+
{
|
|
10195
|
+
"name": "device",
|
|
10196
|
+
"type": "GpuDevice",
|
|
10197
|
+
"description": "The open GPU device the object belongs to"
|
|
10198
|
+
},
|
|
10199
|
+
{
|
|
10200
|
+
"name": "desc",
|
|
10201
|
+
"type": {
|
|
10202
|
+
"kind": "object",
|
|
10203
|
+
"fields": {
|
|
10204
|
+
"count": "int"
|
|
10205
|
+
}
|
|
10206
|
+
},
|
|
10207
|
+
"description": "Query set descriptor: { count }"
|
|
10208
|
+
},
|
|
10209
|
+
{
|
|
10210
|
+
"name": "options",
|
|
10211
|
+
"type": {
|
|
10212
|
+
"kind": "object",
|
|
10213
|
+
"fields": {
|
|
10214
|
+
"key": "string",
|
|
10215
|
+
"emit": {
|
|
10216
|
+
"kind": "object",
|
|
10217
|
+
"fields": {
|
|
10218
|
+
"success": {
|
|
10219
|
+
"kind": "eventKey"
|
|
10220
|
+
},
|
|
10221
|
+
"failure": {
|
|
10222
|
+
"kind": "eventKey"
|
|
10223
|
+
},
|
|
10224
|
+
"cancelled": {
|
|
10225
|
+
"kind": "eventKey"
|
|
10226
|
+
}
|
|
10227
|
+
},
|
|
10228
|
+
"open": true
|
|
10229
|
+
}
|
|
10230
|
+
},
|
|
10231
|
+
"open": true
|
|
10232
|
+
},
|
|
10233
|
+
"description": "Optional trailing options: { emit: { success, failure, key? } } routes the success payload and the { error, kind } failure; kind is one of denied, not-found, exists, invalid, io, timeout, unsupported, closed, borrowed",
|
|
10234
|
+
"optional": true
|
|
10235
|
+
}
|
|
10236
|
+
],
|
|
10237
|
+
"examples": [
|
|
10238
|
+
"(gpu/query-create @entity.device {\"count\":2} {\"emit\":{\"success\":\"QUERY_READY\",\"failure\":\"GPU_FAILED\"}})"
|
|
10239
|
+
],
|
|
10240
|
+
"docsSource": "generated"
|
|
10241
|
+
},
|
|
10242
|
+
"gpu/release": {
|
|
10243
|
+
"category": "std-gpu",
|
|
10244
|
+
"minArity": 1,
|
|
10245
|
+
"maxArity": 2,
|
|
10246
|
+
"returnType": "void",
|
|
10247
|
+
"description": "Release a GPU object (buffer, texture, sampler, shader, pipeline, bind group or query set) so the device frees it; a device is closed with gpu/device-close. Needs no grant beyond holding the handle (the grant was checked at gpu/device-open). Success payload: {}. Failure kind: closed (the handle is not live or already released).",
|
|
10248
|
+
"module": "gpu",
|
|
10249
|
+
"visual": {
|
|
10250
|
+
"form": "actuator"
|
|
10251
|
+
},
|
|
10252
|
+
"hasSideEffects": true,
|
|
10253
|
+
"effect": {
|
|
10254
|
+
"kind": "custom",
|
|
10255
|
+
"produces": {
|
|
10256
|
+
"kind": "object",
|
|
10257
|
+
"fields": {
|
|
10258
|
+
"key": "string"
|
|
10259
|
+
},
|
|
10260
|
+
"optional": [
|
|
10261
|
+
"key"
|
|
10262
|
+
]
|
|
10263
|
+
}
|
|
10264
|
+
},
|
|
10265
|
+
"grant": [],
|
|
10266
|
+
"runsOn": "any",
|
|
10267
|
+
"host": "os",
|
|
10268
|
+
"params": [
|
|
10269
|
+
{
|
|
10270
|
+
"name": "handle",
|
|
10271
|
+
"type": {
|
|
10272
|
+
"kind": "union",
|
|
10273
|
+
"of": [
|
|
10274
|
+
"GpuBuffer",
|
|
10275
|
+
"GpuTexture",
|
|
10276
|
+
"GpuSampler",
|
|
10277
|
+
"GpuShader",
|
|
10278
|
+
"GpuPipeline",
|
|
10279
|
+
"GpuBindGroup",
|
|
10280
|
+
"GpuQuerySet"
|
|
10281
|
+
]
|
|
10282
|
+
},
|
|
10283
|
+
"description": "Any GPU handle except a device"
|
|
10284
|
+
},
|
|
10285
|
+
{
|
|
10286
|
+
"name": "options",
|
|
10287
|
+
"type": {
|
|
10288
|
+
"kind": "object",
|
|
10289
|
+
"fields": {
|
|
10290
|
+
"key": "string",
|
|
10291
|
+
"emit": {
|
|
10292
|
+
"kind": "object",
|
|
10293
|
+
"fields": {
|
|
10294
|
+
"success": {
|
|
10295
|
+
"kind": "eventKey"
|
|
10296
|
+
},
|
|
10297
|
+
"failure": {
|
|
10298
|
+
"kind": "eventKey"
|
|
10299
|
+
},
|
|
10300
|
+
"cancelled": {
|
|
10301
|
+
"kind": "eventKey"
|
|
10302
|
+
}
|
|
10303
|
+
},
|
|
10304
|
+
"open": true
|
|
10305
|
+
}
|
|
10306
|
+
},
|
|
10307
|
+
"open": true
|
|
10308
|
+
},
|
|
10309
|
+
"description": "Optional trailing options: { emit: { success, failure, key? } } routes the success payload and the { error, kind } failure; kind is one of denied, not-found, exists, invalid, io, timeout, unsupported, closed, borrowed",
|
|
10310
|
+
"optional": true
|
|
10311
|
+
}
|
|
10312
|
+
],
|
|
10313
|
+
"examples": [
|
|
10314
|
+
"(gpu/release @entity.buffer {\"emit\":{\"failure\":\"GPU_FAILED\"}})"
|
|
10315
|
+
],
|
|
10316
|
+
"docsSource": "generated"
|
|
10317
|
+
},
|
|
10318
|
+
"gpu/sampler-create": {
|
|
10319
|
+
"category": "std-gpu",
|
|
10320
|
+
"minArity": 2,
|
|
10321
|
+
"maxArity": 3,
|
|
10322
|
+
"returnType": "void",
|
|
10323
|
+
"description": "Create a sampler; filter is \"nearest\" or \"linear\", address is \"clamp\", \"repeat\" or \"mirror\". Needs no grant beyond holding the handle (the grant was checked at gpu/device-open). Success payload: { sampler } (a sealed GpuSampler handle). Failure kind: closed (the device or a handle is not live), invalid (a malformed descriptor, an unknown usage or format, a size beyond the granted maxBytes), unsupported (a host without a GPU), io (the device failed).",
|
|
10324
|
+
"module": "gpu",
|
|
10325
|
+
"visual": {
|
|
10326
|
+
"form": "actuator"
|
|
10327
|
+
},
|
|
10328
|
+
"hasSideEffects": true,
|
|
10329
|
+
"effect": {
|
|
10330
|
+
"kind": "custom",
|
|
10331
|
+
"produces": {
|
|
10332
|
+
"kind": "object",
|
|
10333
|
+
"fields": {
|
|
10334
|
+
"sampler": "GpuSampler",
|
|
10335
|
+
"key": "string"
|
|
10336
|
+
},
|
|
10337
|
+
"optional": [
|
|
10338
|
+
"key"
|
|
10339
|
+
]
|
|
10340
|
+
}
|
|
10341
|
+
},
|
|
10342
|
+
"grant": [],
|
|
10343
|
+
"runsOn": "any",
|
|
10344
|
+
"host": "os",
|
|
10345
|
+
"params": [
|
|
10346
|
+
{
|
|
10347
|
+
"name": "device",
|
|
10348
|
+
"type": "GpuDevice",
|
|
10349
|
+
"description": "The open GPU device the object belongs to"
|
|
10350
|
+
},
|
|
10351
|
+
{
|
|
10352
|
+
"name": "desc",
|
|
10353
|
+
"type": {
|
|
10354
|
+
"kind": "object",
|
|
10355
|
+
"fields": {
|
|
10356
|
+
"filter": {
|
|
10357
|
+
"kind": "union",
|
|
10358
|
+
"of": [
|
|
10359
|
+
{
|
|
10360
|
+
"kind": "literal",
|
|
10361
|
+
"value": "nearest"
|
|
10362
|
+
},
|
|
10363
|
+
{
|
|
10364
|
+
"kind": "literal",
|
|
10365
|
+
"value": "linear"
|
|
10366
|
+
}
|
|
10367
|
+
]
|
|
10368
|
+
},
|
|
10369
|
+
"address": {
|
|
10370
|
+
"kind": "union",
|
|
10371
|
+
"of": [
|
|
10372
|
+
{
|
|
10373
|
+
"kind": "literal",
|
|
10374
|
+
"value": "clamp"
|
|
10375
|
+
},
|
|
10376
|
+
{
|
|
10377
|
+
"kind": "literal",
|
|
10378
|
+
"value": "repeat"
|
|
10379
|
+
},
|
|
10380
|
+
{
|
|
10381
|
+
"kind": "literal",
|
|
10382
|
+
"value": "mirror"
|
|
10383
|
+
}
|
|
10384
|
+
]
|
|
10385
|
+
}
|
|
10386
|
+
},
|
|
10387
|
+
"optional": [
|
|
10388
|
+
"filter",
|
|
10389
|
+
"address"
|
|
10390
|
+
]
|
|
10391
|
+
},
|
|
10392
|
+
"description": "Sampler descriptor: { filter?, address? }"
|
|
10393
|
+
},
|
|
10394
|
+
{
|
|
10395
|
+
"name": "options",
|
|
10396
|
+
"type": {
|
|
10397
|
+
"kind": "object",
|
|
10398
|
+
"fields": {
|
|
10399
|
+
"key": "string",
|
|
10400
|
+
"emit": {
|
|
10401
|
+
"kind": "object",
|
|
10402
|
+
"fields": {
|
|
10403
|
+
"success": {
|
|
10404
|
+
"kind": "eventKey"
|
|
10405
|
+
},
|
|
10406
|
+
"failure": {
|
|
10407
|
+
"kind": "eventKey"
|
|
10408
|
+
},
|
|
10409
|
+
"cancelled": {
|
|
10410
|
+
"kind": "eventKey"
|
|
10411
|
+
}
|
|
10412
|
+
},
|
|
10413
|
+
"open": true
|
|
10414
|
+
}
|
|
10415
|
+
},
|
|
10416
|
+
"open": true
|
|
10417
|
+
},
|
|
10418
|
+
"description": "Optional trailing options: { emit: { success, failure, key? } } routes the success payload and the { error, kind } failure; kind is one of denied, not-found, exists, invalid, io, timeout, unsupported, closed, borrowed",
|
|
10419
|
+
"optional": true
|
|
10420
|
+
}
|
|
10421
|
+
],
|
|
10422
|
+
"examples": [
|
|
10423
|
+
"(gpu/sampler-create @entity.device {\"filter\":\"linear\",\"address\":\"repeat\"} {\"emit\":{\"success\":\"SAMPLER_READY\",\"failure\":\"GPU_FAILED\"}})"
|
|
10424
|
+
],
|
|
10425
|
+
"docsSource": "generated"
|
|
10426
|
+
},
|
|
10427
|
+
"gpu/shader-create": {
|
|
10428
|
+
"category": "std-gpu",
|
|
10429
|
+
"minArity": 2,
|
|
10430
|
+
"maxArity": 3,
|
|
10431
|
+
"returnType": "void",
|
|
10432
|
+
"description": "Compile a WGSL shader module from source text. Needs no grant beyond holding the handle (the grant was checked at gpu/device-open). Success payload: { shader } (a sealed GpuShader handle). Failure kind: closed (the device is not live), invalid (the WGSL does not compile; the error carries the compiler message), unsupported (a host without a GPU), io (the device failed).",
|
|
10433
|
+
"module": "gpu",
|
|
10434
|
+
"visual": {
|
|
10435
|
+
"form": "actuator"
|
|
10436
|
+
},
|
|
10437
|
+
"hasSideEffects": true,
|
|
10438
|
+
"effect": {
|
|
10439
|
+
"kind": "custom",
|
|
10440
|
+
"produces": {
|
|
10441
|
+
"kind": "object",
|
|
10442
|
+
"fields": {
|
|
10443
|
+
"shader": "GpuShader",
|
|
10444
|
+
"key": "string"
|
|
10445
|
+
},
|
|
10446
|
+
"optional": [
|
|
10447
|
+
"key"
|
|
10448
|
+
]
|
|
10449
|
+
}
|
|
10450
|
+
},
|
|
10451
|
+
"grant": [],
|
|
10452
|
+
"runsOn": "any",
|
|
10453
|
+
"host": "os",
|
|
10454
|
+
"params": [
|
|
10455
|
+
{
|
|
10456
|
+
"name": "device",
|
|
10457
|
+
"type": "GpuDevice",
|
|
10458
|
+
"description": "The open GPU device the object belongs to"
|
|
10459
|
+
},
|
|
10460
|
+
{
|
|
10461
|
+
"name": "wgsl",
|
|
10462
|
+
"type": "string",
|
|
10463
|
+
"description": "WGSL source text of the module"
|
|
10464
|
+
},
|
|
10465
|
+
{
|
|
10466
|
+
"name": "options",
|
|
10467
|
+
"type": {
|
|
10468
|
+
"kind": "object",
|
|
10469
|
+
"fields": {
|
|
10470
|
+
"key": "string",
|
|
10471
|
+
"emit": {
|
|
10472
|
+
"kind": "object",
|
|
10473
|
+
"fields": {
|
|
10474
|
+
"success": {
|
|
10475
|
+
"kind": "eventKey"
|
|
10476
|
+
},
|
|
10477
|
+
"failure": {
|
|
10478
|
+
"kind": "eventKey"
|
|
10479
|
+
},
|
|
10480
|
+
"cancelled": {
|
|
10481
|
+
"kind": "eventKey"
|
|
10482
|
+
}
|
|
10483
|
+
},
|
|
10484
|
+
"open": true
|
|
10485
|
+
}
|
|
10486
|
+
},
|
|
10487
|
+
"open": true
|
|
10488
|
+
},
|
|
10489
|
+
"description": "Optional trailing options: { emit: { success, failure, key? } } routes the success payload and the { error, kind } failure; kind is one of denied, not-found, exists, invalid, io, timeout, unsupported, closed, borrowed",
|
|
10490
|
+
"optional": true
|
|
10491
|
+
}
|
|
10492
|
+
],
|
|
10493
|
+
"examples": [
|
|
10494
|
+
"(gpu/shader-create @entity.device @entity.wgsl {\"emit\":{\"success\":\"SHADER_READY\",\"failure\":\"GPU_FAILED\"}})"
|
|
10495
|
+
],
|
|
10496
|
+
"docsSource": "generated"
|
|
10497
|
+
},
|
|
10498
|
+
"gpu/submit": {
|
|
10499
|
+
"category": "std-gpu",
|
|
10500
|
+
"minArity": 2,
|
|
10501
|
+
"maxArity": 3,
|
|
10502
|
+
"returnType": "void",
|
|
10503
|
+
"description": "Run a command list on the device queue, in list order, as one job (grant gpu: { \"device:<maxBytes>\": [compute, render, readback] }). commands is a list of GpuCommand records, each with exactly one key: write { buffer, offset?, data } or write { texture, data } uploads bytes or a Borrow (the kernel reads the borrowed block) into a copy-dst buffer at offset (default 0) or into a whole copy-dst texture; compute { pipeline, bindGroups, dispatch } (dispatch is [x, y, z] workgroup counts); render { pipeline, bindGroups, target, vertices, instances?, clear? } (target is a GpuTexture, clear is an rgba list); copy { from, to, fromOffset?, toOffset?, size? } between buffers or textures; clear { buffer, offset?, size? }; timestamp { querySet, index }; read { buffer, offset?, length? } reads length bytes (default the rest of the buffer) at offset (default 0) of a copy-src buffer as they stand at that point of the list, or of a map-read buffer as it stands after the list when no later command writes it. Buffer offsets and lengths of write and read are multiples of 4. The grant is derived from a literal list: each compute entry needs compute, each render entry needs render, each read entry needs readback, other entries need nothing; a list that is not literal is checked at run time. Completion is deferred: the success event fires when the queue work is done. Success payload: { reads } (the bytes of each read entry, in list order; empty without one). Failure kind: denied (a command needs a kind the grant does not list), closed (the device, a handle or a Borrow is not live), invalid (a command with zero or several keys, a handle of another device, a bad dispatch, a write or read past its buffer or off a multiple of 4, a texture write that is not the whole texture, a buffer without the usage its command needs), io (the device failed).",
|
|
10504
|
+
"module": "gpu",
|
|
10505
|
+
"visual": {
|
|
10506
|
+
"form": "actuator"
|
|
10507
|
+
},
|
|
10508
|
+
"hasSideEffects": true,
|
|
10509
|
+
"effect": {
|
|
10510
|
+
"kind": "custom",
|
|
10511
|
+
"produces": {
|
|
10512
|
+
"kind": "object",
|
|
10513
|
+
"fields": {
|
|
10514
|
+
"reads": {
|
|
10515
|
+
"kind": "array",
|
|
10516
|
+
"of": "bytes"
|
|
10517
|
+
},
|
|
10518
|
+
"key": "string"
|
|
10519
|
+
},
|
|
10520
|
+
"optional": [
|
|
10521
|
+
"key"
|
|
10522
|
+
]
|
|
10523
|
+
}
|
|
10524
|
+
},
|
|
10525
|
+
"grant": [
|
|
10526
|
+
{
|
|
10527
|
+
"kind": "gpu",
|
|
10528
|
+
"access": "compute",
|
|
10529
|
+
"commands": 1
|
|
10530
|
+
}
|
|
10531
|
+
],
|
|
10532
|
+
"runsOn": "any",
|
|
10533
|
+
"host": "os",
|
|
10534
|
+
"params": [
|
|
10535
|
+
{
|
|
10536
|
+
"name": "device",
|
|
10537
|
+
"type": "GpuDevice",
|
|
10538
|
+
"description": "The open GPU device the object belongs to"
|
|
10539
|
+
},
|
|
10540
|
+
{
|
|
10541
|
+
"name": "commands",
|
|
10542
|
+
"type": {
|
|
10543
|
+
"kind": "array",
|
|
10544
|
+
"of": {
|
|
10545
|
+
"kind": "union",
|
|
10546
|
+
"of": [
|
|
10547
|
+
{
|
|
10548
|
+
"kind": "object",
|
|
10549
|
+
"fields": {
|
|
10550
|
+
"compute": {
|
|
10551
|
+
"kind": "object",
|
|
10552
|
+
"fields": {
|
|
10553
|
+
"pipeline": "GpuPipeline",
|
|
10554
|
+
"bindGroups": {
|
|
10555
|
+
"kind": "array",
|
|
10556
|
+
"of": "GpuBindGroup"
|
|
10557
|
+
},
|
|
10558
|
+
"dispatch": {
|
|
10559
|
+
"kind": "array",
|
|
10560
|
+
"of": "int"
|
|
10561
|
+
}
|
|
10562
|
+
}
|
|
10563
|
+
}
|
|
10564
|
+
}
|
|
10565
|
+
},
|
|
10566
|
+
{
|
|
10567
|
+
"kind": "object",
|
|
10568
|
+
"fields": {
|
|
10569
|
+
"render": {
|
|
10570
|
+
"kind": "object",
|
|
10571
|
+
"fields": {
|
|
10572
|
+
"pipeline": "GpuPipeline",
|
|
10573
|
+
"bindGroups": {
|
|
10574
|
+
"kind": "array",
|
|
10575
|
+
"of": "GpuBindGroup"
|
|
10576
|
+
},
|
|
10577
|
+
"target": "GpuTexture",
|
|
10578
|
+
"vertices": "int",
|
|
10579
|
+
"instances": "int",
|
|
10580
|
+
"clear": {
|
|
10581
|
+
"kind": "array",
|
|
10582
|
+
"of": "number"
|
|
10583
|
+
}
|
|
10584
|
+
},
|
|
10585
|
+
"optional": [
|
|
10586
|
+
"instances",
|
|
10587
|
+
"clear"
|
|
10588
|
+
]
|
|
10589
|
+
}
|
|
10590
|
+
}
|
|
10591
|
+
},
|
|
10592
|
+
{
|
|
10593
|
+
"kind": "object",
|
|
10594
|
+
"fields": {
|
|
10595
|
+
"copy": {
|
|
10596
|
+
"kind": "object",
|
|
10597
|
+
"fields": {
|
|
10598
|
+
"from": {
|
|
10599
|
+
"kind": "union",
|
|
10600
|
+
"of": [
|
|
10601
|
+
"GpuBuffer",
|
|
10602
|
+
"GpuTexture"
|
|
10603
|
+
]
|
|
10604
|
+
},
|
|
10605
|
+
"to": {
|
|
10606
|
+
"kind": "union",
|
|
10607
|
+
"of": [
|
|
10608
|
+
"GpuBuffer",
|
|
10609
|
+
"GpuTexture"
|
|
10610
|
+
]
|
|
10611
|
+
},
|
|
10612
|
+
"fromOffset": "int",
|
|
10613
|
+
"toOffset": "int",
|
|
10614
|
+
"size": "int"
|
|
10615
|
+
},
|
|
10616
|
+
"optional": [
|
|
10617
|
+
"fromOffset",
|
|
10618
|
+
"toOffset",
|
|
10619
|
+
"size"
|
|
10620
|
+
]
|
|
10621
|
+
}
|
|
10622
|
+
}
|
|
10623
|
+
},
|
|
10624
|
+
{
|
|
10625
|
+
"kind": "object",
|
|
10626
|
+
"fields": {
|
|
10627
|
+
"clear": {
|
|
10628
|
+
"kind": "object",
|
|
10629
|
+
"fields": {
|
|
10630
|
+
"buffer": "GpuBuffer",
|
|
10631
|
+
"offset": "int",
|
|
10632
|
+
"size": "int"
|
|
10633
|
+
},
|
|
10634
|
+
"optional": [
|
|
10635
|
+
"offset",
|
|
10636
|
+
"size"
|
|
10637
|
+
]
|
|
10638
|
+
}
|
|
10639
|
+
}
|
|
10640
|
+
},
|
|
10641
|
+
{
|
|
10642
|
+
"kind": "object",
|
|
10643
|
+
"fields": {
|
|
10644
|
+
"write": {
|
|
10645
|
+
"kind": "object",
|
|
10646
|
+
"fields": {
|
|
10647
|
+
"buffer": "GpuBuffer",
|
|
10648
|
+
"texture": "GpuTexture",
|
|
10649
|
+
"offset": "int",
|
|
10650
|
+
"data": {
|
|
10651
|
+
"kind": "union",
|
|
10652
|
+
"of": [
|
|
10653
|
+
"bytes",
|
|
10654
|
+
"Borrow"
|
|
10655
|
+
]
|
|
10656
|
+
}
|
|
10657
|
+
},
|
|
10658
|
+
"optional": [
|
|
10659
|
+
"buffer",
|
|
10660
|
+
"texture",
|
|
10661
|
+
"offset"
|
|
10662
|
+
]
|
|
10663
|
+
}
|
|
10664
|
+
}
|
|
10665
|
+
},
|
|
10666
|
+
{
|
|
10667
|
+
"kind": "object",
|
|
10668
|
+
"fields": {
|
|
10669
|
+
"read": {
|
|
10670
|
+
"kind": "object",
|
|
10671
|
+
"fields": {
|
|
10672
|
+
"buffer": "GpuBuffer",
|
|
10673
|
+
"offset": "int",
|
|
10674
|
+
"length": "int"
|
|
10675
|
+
},
|
|
10676
|
+
"optional": [
|
|
10677
|
+
"offset",
|
|
10678
|
+
"length"
|
|
10679
|
+
]
|
|
10680
|
+
}
|
|
10681
|
+
}
|
|
10682
|
+
},
|
|
10683
|
+
{
|
|
10684
|
+
"kind": "object",
|
|
10685
|
+
"fields": {
|
|
10686
|
+
"timestamp": {
|
|
10687
|
+
"kind": "object",
|
|
10688
|
+
"fields": {
|
|
10689
|
+
"querySet": "GpuQuerySet",
|
|
10690
|
+
"index": "int"
|
|
10691
|
+
}
|
|
10692
|
+
}
|
|
10693
|
+
}
|
|
10694
|
+
}
|
|
10695
|
+
]
|
|
10696
|
+
}
|
|
10697
|
+
},
|
|
10698
|
+
"description": "The commands, each a record with exactly one of write, compute, render, copy, clear, timestamp, read"
|
|
10699
|
+
},
|
|
10700
|
+
{
|
|
10701
|
+
"name": "options",
|
|
10702
|
+
"type": {
|
|
10703
|
+
"kind": "object",
|
|
10704
|
+
"fields": {
|
|
10705
|
+
"key": "string",
|
|
10706
|
+
"emit": {
|
|
10707
|
+
"kind": "object",
|
|
10708
|
+
"fields": {
|
|
10709
|
+
"success": {
|
|
10710
|
+
"kind": "eventKey"
|
|
10711
|
+
},
|
|
10712
|
+
"failure": {
|
|
10713
|
+
"kind": "eventKey"
|
|
10714
|
+
},
|
|
10715
|
+
"cancelled": {
|
|
10716
|
+
"kind": "eventKey"
|
|
10717
|
+
}
|
|
10718
|
+
},
|
|
10719
|
+
"open": true
|
|
10720
|
+
}
|
|
10721
|
+
},
|
|
10722
|
+
"open": true
|
|
10723
|
+
},
|
|
10724
|
+
"description": "Optional trailing options: { emit: { success, failure, key? } } routes the success payload and the { error, kind } failure; kind is one of denied, not-found, exists, invalid, io, timeout, unsupported, closed, borrowed",
|
|
10725
|
+
"optional": true
|
|
9492
10726
|
}
|
|
9493
10727
|
],
|
|
9494
10728
|
"examples": [
|
|
9495
|
-
"(
|
|
10729
|
+
"(gpu/submit @entity.device [{\"compute\":{\"pipeline\":\"@entity.pipeline\",\"bindGroups\":[\"@entity.bindGroup\"],\"dispatch\":[64,1,1]}}] {\"emit\":{\"success\":\"SUBMITTED\",\"failure\":\"GPU_FAILED\"}})"
|
|
9496
10730
|
],
|
|
9497
10731
|
"docsSource": "generated"
|
|
9498
10732
|
},
|
|
9499
|
-
"
|
|
9500
|
-
"category": "std-
|
|
10733
|
+
"gpu/texture-create": {
|
|
10734
|
+
"category": "std-gpu",
|
|
9501
10735
|
"minArity": 2,
|
|
9502
|
-
"maxArity":
|
|
9503
|
-
"returnType": "
|
|
9504
|
-
"description": "
|
|
9505
|
-
"module": "
|
|
10736
|
+
"maxArity": 3,
|
|
10737
|
+
"returnType": "void",
|
|
10738
|
+
"description": "Create a texture of width by height texels (depth defaults to 1, mips to 1) in the given format (for example \"rgba8unorm\"); usage lists the texture usages (\"copy-src\", \"copy-dst\", \"texture-binding\", \"storage-binding\", \"render-attachment\"). Needs no grant beyond holding the handle (the grant was checked at gpu/device-open). Success payload: { texture } (a sealed GpuTexture handle). Failure kind: closed (the device or a handle is not live), invalid (a malformed descriptor, an unknown usage or format, a size beyond the granted maxBytes), unsupported (a host without a GPU), io (the device failed).",
|
|
10739
|
+
"module": "gpu",
|
|
9506
10740
|
"visual": {
|
|
9507
|
-
"form": "
|
|
10741
|
+
"form": "actuator"
|
|
9508
10742
|
},
|
|
9509
|
-
"
|
|
9510
|
-
"
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
"
|
|
9514
|
-
"
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
"
|
|
9519
|
-
|
|
10743
|
+
"hasSideEffects": true,
|
|
10744
|
+
"effect": {
|
|
10745
|
+
"kind": "custom",
|
|
10746
|
+
"produces": {
|
|
10747
|
+
"kind": "object",
|
|
10748
|
+
"fields": {
|
|
10749
|
+
"texture": "GpuTexture",
|
|
10750
|
+
"key": "string"
|
|
10751
|
+
},
|
|
10752
|
+
"optional": [
|
|
10753
|
+
"key"
|
|
10754
|
+
]
|
|
9520
10755
|
}
|
|
9521
|
-
],
|
|
9522
|
-
"examples": [
|
|
9523
|
-
"(geo/reflect {\"x\":1,\"y\":-1} {\"x\":0,\"y\":1})"
|
|
9524
|
-
],
|
|
9525
|
-
"docsSource": "generated"
|
|
9526
|
-
},
|
|
9527
|
-
"geo/segment-intersect": {
|
|
9528
|
-
"category": "std-geo",
|
|
9529
|
-
"minArity": 2,
|
|
9530
|
-
"maxArity": 2,
|
|
9531
|
-
"returnType": {
|
|
9532
|
-
"kind": "union",
|
|
9533
|
-
"of": [
|
|
9534
|
-
"point",
|
|
9535
|
-
{
|
|
9536
|
-
"kind": "literal",
|
|
9537
|
-
"value": null
|
|
9538
|
-
}
|
|
9539
|
-
]
|
|
9540
|
-
},
|
|
9541
|
-
"description": "Intersection point of two segments, or null when parallel/none",
|
|
9542
|
-
"module": "geo",
|
|
9543
|
-
"visual": {
|
|
9544
|
-
"form": "block"
|
|
9545
10756
|
},
|
|
9546
|
-
"
|
|
10757
|
+
"grant": [],
|
|
10758
|
+
"runsOn": "any",
|
|
10759
|
+
"host": "os",
|
|
9547
10760
|
"params": [
|
|
9548
10761
|
{
|
|
9549
|
-
"name": "
|
|
9550
|
-
"type": "
|
|
9551
|
-
"description": "
|
|
10762
|
+
"name": "device",
|
|
10763
|
+
"type": "GpuDevice",
|
|
10764
|
+
"description": "The open GPU device the object belongs to"
|
|
9552
10765
|
},
|
|
9553
10766
|
{
|
|
9554
|
-
"name": "
|
|
9555
|
-
"type":
|
|
9556
|
-
|
|
10767
|
+
"name": "desc",
|
|
10768
|
+
"type": {
|
|
10769
|
+
"kind": "object",
|
|
10770
|
+
"fields": {
|
|
10771
|
+
"width": "int",
|
|
10772
|
+
"height": "int",
|
|
10773
|
+
"depth": "int",
|
|
10774
|
+
"format": {
|
|
10775
|
+
"kind": "union",
|
|
10776
|
+
"of": [
|
|
10777
|
+
{
|
|
10778
|
+
"kind": "literal",
|
|
10779
|
+
"value": "r8unorm"
|
|
10780
|
+
},
|
|
10781
|
+
{
|
|
10782
|
+
"kind": "literal",
|
|
10783
|
+
"value": "rg8unorm"
|
|
10784
|
+
},
|
|
10785
|
+
{
|
|
10786
|
+
"kind": "literal",
|
|
10787
|
+
"value": "rgba8unorm"
|
|
10788
|
+
},
|
|
10789
|
+
{
|
|
10790
|
+
"kind": "literal",
|
|
10791
|
+
"value": "rgba8unorm-srgb"
|
|
10792
|
+
},
|
|
10793
|
+
{
|
|
10794
|
+
"kind": "literal",
|
|
10795
|
+
"value": "bgra8unorm"
|
|
10796
|
+
},
|
|
10797
|
+
{
|
|
10798
|
+
"kind": "literal",
|
|
10799
|
+
"value": "bgra8unorm-srgb"
|
|
10800
|
+
},
|
|
10801
|
+
{
|
|
10802
|
+
"kind": "literal",
|
|
10803
|
+
"value": "r16float"
|
|
10804
|
+
},
|
|
10805
|
+
{
|
|
10806
|
+
"kind": "literal",
|
|
10807
|
+
"value": "rg16float"
|
|
10808
|
+
},
|
|
10809
|
+
{
|
|
10810
|
+
"kind": "literal",
|
|
10811
|
+
"value": "rgba16float"
|
|
10812
|
+
},
|
|
10813
|
+
{
|
|
10814
|
+
"kind": "literal",
|
|
10815
|
+
"value": "r32float"
|
|
10816
|
+
},
|
|
10817
|
+
{
|
|
10818
|
+
"kind": "literal",
|
|
10819
|
+
"value": "rg32float"
|
|
10820
|
+
},
|
|
10821
|
+
{
|
|
10822
|
+
"kind": "literal",
|
|
10823
|
+
"value": "rgba32float"
|
|
10824
|
+
},
|
|
10825
|
+
{
|
|
10826
|
+
"kind": "literal",
|
|
10827
|
+
"value": "r32uint"
|
|
10828
|
+
},
|
|
10829
|
+
{
|
|
10830
|
+
"kind": "literal",
|
|
10831
|
+
"value": "r32sint"
|
|
10832
|
+
},
|
|
10833
|
+
{
|
|
10834
|
+
"kind": "literal",
|
|
10835
|
+
"value": "rgba8uint"
|
|
10836
|
+
},
|
|
10837
|
+
{
|
|
10838
|
+
"kind": "literal",
|
|
10839
|
+
"value": "rgba8sint"
|
|
10840
|
+
},
|
|
10841
|
+
{
|
|
10842
|
+
"kind": "literal",
|
|
10843
|
+
"value": "rgba32uint"
|
|
10844
|
+
},
|
|
10845
|
+
{
|
|
10846
|
+
"kind": "literal",
|
|
10847
|
+
"value": "rgba32sint"
|
|
10848
|
+
},
|
|
10849
|
+
{
|
|
10850
|
+
"kind": "literal",
|
|
10851
|
+
"value": "depth32float"
|
|
10852
|
+
}
|
|
10853
|
+
]
|
|
10854
|
+
},
|
|
10855
|
+
"usage": {
|
|
10856
|
+
"kind": "array",
|
|
10857
|
+
"of": {
|
|
10858
|
+
"kind": "union",
|
|
10859
|
+
"of": [
|
|
10860
|
+
{
|
|
10861
|
+
"kind": "literal",
|
|
10862
|
+
"value": "copy-src"
|
|
10863
|
+
},
|
|
10864
|
+
{
|
|
10865
|
+
"kind": "literal",
|
|
10866
|
+
"value": "copy-dst"
|
|
10867
|
+
},
|
|
10868
|
+
{
|
|
10869
|
+
"kind": "literal",
|
|
10870
|
+
"value": "texture-binding"
|
|
10871
|
+
},
|
|
10872
|
+
{
|
|
10873
|
+
"kind": "literal",
|
|
10874
|
+
"value": "storage-binding"
|
|
10875
|
+
},
|
|
10876
|
+
{
|
|
10877
|
+
"kind": "literal",
|
|
10878
|
+
"value": "render-attachment"
|
|
10879
|
+
}
|
|
10880
|
+
]
|
|
10881
|
+
}
|
|
10882
|
+
},
|
|
10883
|
+
"mips": "int"
|
|
10884
|
+
},
|
|
10885
|
+
"optional": [
|
|
10886
|
+
"depth",
|
|
10887
|
+
"mips"
|
|
10888
|
+
]
|
|
10889
|
+
},
|
|
10890
|
+
"description": "Texture descriptor: { width, height, depth?, format, usage, mips? }"
|
|
10891
|
+
},
|
|
10892
|
+
{
|
|
10893
|
+
"name": "options",
|
|
10894
|
+
"type": {
|
|
10895
|
+
"kind": "object",
|
|
10896
|
+
"fields": {
|
|
10897
|
+
"key": "string",
|
|
10898
|
+
"emit": {
|
|
10899
|
+
"kind": "object",
|
|
10900
|
+
"fields": {
|
|
10901
|
+
"success": {
|
|
10902
|
+
"kind": "eventKey"
|
|
10903
|
+
},
|
|
10904
|
+
"failure": {
|
|
10905
|
+
"kind": "eventKey"
|
|
10906
|
+
},
|
|
10907
|
+
"cancelled": {
|
|
10908
|
+
"kind": "eventKey"
|
|
10909
|
+
}
|
|
10910
|
+
},
|
|
10911
|
+
"open": true
|
|
10912
|
+
}
|
|
10913
|
+
},
|
|
10914
|
+
"open": true
|
|
10915
|
+
},
|
|
10916
|
+
"description": "Optional trailing options: { emit: { success, failure, key? } } routes the success payload and the { error, kind } failure; kind is one of denied, not-found, exists, invalid, io, timeout, unsupported, closed, borrowed",
|
|
10917
|
+
"optional": true
|
|
9557
10918
|
}
|
|
9558
10919
|
],
|
|
9559
10920
|
"examples": [
|
|
9560
|
-
"(
|
|
10921
|
+
"(gpu/texture-create @entity.device {\"width\":256,\"height\":256,\"format\":\"rgba8unorm\",\"usage\":[\"render-target\",\"copy-src\"]} {\"emit\":{\"success\":\"TEXTURE_READY\",\"failure\":\"GPU_FAILED\"}})"
|
|
9561
10922
|
],
|
|
9562
10923
|
"docsSource": "generated"
|
|
9563
10924
|
},
|
|
@@ -27471,7 +28832,7 @@
|
|
|
27471
28832
|
"open": true
|
|
27472
28833
|
}
|
|
27473
28834
|
},
|
|
27474
|
-
"description": "The transitions to play: `{ orbital, trait, from, event, payload, entity?, config?, identity?, now?, settleMs? }` each"
|
|
28835
|
+
"description": "The transitions to play: `{ orbital, trait, from, event, payload, entity?, config?, identity?, now?, settleMs?, credentials?, answers? }` each. `answers` (replay only) is a list of `{ operator, ok }` or `{ operator, error: { kind, message } }`, the host's plain answers to the os asks the request's cascade makes: an ask takes the first unused answer naming its operator and the kernel unwraps, mints and routes it as it does live (a deferring op's answer arrives as its completion once the dispatch ends); an answer no ask takes refuses the request"
|
|
27475
28836
|
},
|
|
27476
28837
|
{
|
|
27477
28838
|
"name": "options",
|
|
@@ -31222,44 +32583,6 @@
|
|
|
31222
32583
|
],
|
|
31223
32584
|
"docsSource": "reference-docs"
|
|
31224
32585
|
},
|
|
31225
|
-
"trace/emit": {
|
|
31226
|
-
"category": "std-trace",
|
|
31227
|
-
"minArity": 1,
|
|
31228
|
-
"maxArity": 2,
|
|
31229
|
-
"returnType": "void",
|
|
31230
|
-
"description": "Emit a structured trace event for observability (115 call sites in rabit today).",
|
|
31231
|
-
"module": "trace",
|
|
31232
|
-
"visual": {
|
|
31233
|
-
"form": "actuator"
|
|
31234
|
-
},
|
|
31235
|
-
"hasSideEffects": true,
|
|
31236
|
-
"runsOn": "any",
|
|
31237
|
-
"host": "substrate",
|
|
31238
|
-
"title": "Emit",
|
|
31239
|
-
"params": [
|
|
31240
|
-
{
|
|
31241
|
-
"name": "event",
|
|
31242
|
-
"type": "string",
|
|
31243
|
-
"description": "Event type name"
|
|
31244
|
-
},
|
|
31245
|
-
{
|
|
31246
|
-
"name": "payload",
|
|
31247
|
-
"type": {
|
|
31248
|
-
"kind": "var",
|
|
31249
|
-
"name": "P",
|
|
31250
|
-
"bound": {
|
|
31251
|
-
"kind": "record"
|
|
31252
|
-
}
|
|
31253
|
-
},
|
|
31254
|
-
"description": "Event payload",
|
|
31255
|
-
"optional": true
|
|
31256
|
-
}
|
|
31257
|
-
],
|
|
31258
|
-
"examples": [
|
|
31259
|
-
"(trace/emit \"cache-hit\")"
|
|
31260
|
-
],
|
|
31261
|
-
"docsSource": "generated"
|
|
31262
|
-
},
|
|
31263
32586
|
"tree/fold": {
|
|
31264
32587
|
"category": "std-json",
|
|
31265
32588
|
"minArity": 3,
|