@wasi-gfx/js-webgpu 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.
Files changed (50) hide show
  1. package/README.md +26 -0
  2. package/dist/index.js +1665 -0
  3. package/package.json +35 -0
  4. package/types/interfaces/wasi-cli-run.d.ts +5 -0
  5. package/types/interfaces/wasi-cli-stdout.d.ts +3 -0
  6. package/types/interfaces/wasi-frame-buffer-frame-buffer.d.ts +21 -0
  7. package/types/interfaces/wasi-graphics-context-graphics-context.d.ts +17 -0
  8. package/types/interfaces/wasi-io-error.d.ts +18 -0
  9. package/types/interfaces/wasi-io-poll.d.ts +43 -0
  10. package/types/interfaces/wasi-io-streams.d.ts +240 -0
  11. package/types/interfaces/wasi-surface-surface.d.ts +400 -0
  12. package/types/interfaces/wasi-webgpu-webgpu.d.ts +1636 -0
  13. package/types/wit.d.ts +10 -0
  14. package/wit/deps/cli/command.wit +7 -0
  15. package/wit/deps/cli/environment.wit +18 -0
  16. package/wit/deps/cli/exit.wit +4 -0
  17. package/wit/deps/cli/imports.wit +20 -0
  18. package/wit/deps/cli/run.wit +4 -0
  19. package/wit/deps/cli/stdio.wit +17 -0
  20. package/wit/deps/cli/terminal.wit +49 -0
  21. package/wit/deps/clocks/monotonic-clock.wit +45 -0
  22. package/wit/deps/clocks/wall-clock.wit +42 -0
  23. package/wit/deps/clocks/world.wit +6 -0
  24. package/wit/deps/filesystem/preopens.wit +8 -0
  25. package/wit/deps/filesystem/types.wit +634 -0
  26. package/wit/deps/filesystem/world.wit +6 -0
  27. package/wit/deps/frame-buffer/frame-buffer.wit +23 -0
  28. package/wit/deps/graphics-context/graphics-context.wit +18 -0
  29. package/wit/deps/io/error.wit +34 -0
  30. package/wit/deps/io/poll.wit +41 -0
  31. package/wit/deps/io/streams.wit +262 -0
  32. package/wit/deps/io/world.wit +6 -0
  33. package/wit/deps/random/insecure-seed.wit +25 -0
  34. package/wit/deps/random/insecure.wit +22 -0
  35. package/wit/deps/random/random.wit +26 -0
  36. package/wit/deps/random/world.wit +7 -0
  37. package/wit/deps/sockets/instance-network.wit +9 -0
  38. package/wit/deps/sockets/ip-name-lookup.wit +51 -0
  39. package/wit/deps/sockets/network.wit +145 -0
  40. package/wit/deps/sockets/tcp-create-socket.wit +27 -0
  41. package/wit/deps/sockets/tcp.wit +353 -0
  42. package/wit/deps/sockets/udp-create-socket.wit +27 -0
  43. package/wit/deps/sockets/udp.wit +266 -0
  44. package/wit/deps/sockets/world.wit +11 -0
  45. package/wit/deps/surface/surface.wit +248 -0
  46. package/wit/deps/webgpu/imports.wit +5 -0
  47. package/wit/deps/webgpu/webgpu.wit +1085 -0
  48. package/wit/deps.lock +51 -0
  49. package/wit/deps.toml +18 -0
  50. package/wit/world.wit +10 -0
package/wit/deps.lock ADDED
@@ -0,0 +1,51 @@
1
+ [cli]
2
+ url = "https://github.com/WebAssembly/wasi-cli/archive/6ae82617096e83e6606047736e84ac397b788631.tar.gz"
3
+ sha256 = "285865a31d777181b075f39e92bcfe59c89cd6bacce660be1b9a627646956258"
4
+ sha512 = "da2622210a9e3eea82b99f1a5b8a44ce5443d009cb943f7bca0bf9cf4360829b289913d7ee727c011f0f72994ea7dc8e661ebcc0a6b34b587297d80cd9b3f7e8"
5
+ deps = ["clocks", "filesystem", "io", "random", "sockets"]
6
+
7
+ [clocks]
8
+ sha256 = "468b4d12892fe926b8eb5d398dbf579d566c93231fa44f415440572c695b7613"
9
+ sha512 = "e6b53a07221f1413953c9797c68f08b815fdaebf66419bbc1ea3e8b7dece73731062693634731f311a03957b268cf9cc509c518bd15e513c318aa04a8459b93a"
10
+
11
+ [filesystem]
12
+ sha256 = "498c465cfd04587db40f970fff2185daa597d074c20b68a8bcbae558f261499b"
13
+ sha512 = "ead452f9b7bfb88593a502ec00d76d4228003d51c40fd0408aebc32d35c94673551b00230d730873361567cc209ec218c41fb4e95bad194268592c49e7964347"
14
+
15
+ [frame-buffer]
16
+ url = "https://github.com/WebAssembly/wasi-gfx/archive/refs/heads/v0.0.1.tar.gz"
17
+ subdir = "frame-buffer"
18
+ sha256 = "c77cda1e98f2a4c343ec5cd42bf9940674e009d977dc6e3cab99152cc0a49ed3"
19
+ sha512 = "b6db27fe297c01ec67a713e42e398b2823d566d488dbc8f5f2b81368d8f2c9f7ad83d98f820253002933d6eb9de6c751cf9606fef67cc4ad522ef6a665deb780"
20
+
21
+ [graphics-context]
22
+ url = "https://github.com/WebAssembly/wasi-gfx/archive/refs/heads/v0.0.1.tar.gz"
23
+ subdir = "graphics-context"
24
+ sha256 = "b138ab44463c5bb074207687c88d59dfca9c6bc7a5dad482dba626094cccbc3f"
25
+ sha512 = "b9cef19d2cf0a0f3d0a58c94cf4483d051acfb5622e379bf0abcc6aa34c14d92210c56554387b932f08aba3c9c1e9e9cadb554e9dd0cf464b20c7d31c806515e"
26
+
27
+ [io]
28
+ sha256 = "7210e5653539a15478f894d4da24cc69d61924cbcba21d2804d69314a88e5a4c"
29
+ sha512 = "49184a1b0945a889abd52d25271172ed3dc2db6968fcdddb1bab7ee0081f4a3eeee0977ad2291126a37631c0d86eeea75d822fa8af224c422134500bf9f0f2bb"
30
+
31
+ [random]
32
+ sha256 = "7371d03c037d924caba2587fb2e7c5773a0d3c5fcecbf7971e0e0ba57973c53d"
33
+ sha512 = "964c4e8925a53078e4d94ba907b54f89a0b7e154f46823a505391471466c17f53c8692682e5c85771712acd88b348686173fc07c53a3cfe3d301b8cd8ddd0de4"
34
+
35
+ [sockets]
36
+ sha256 = "622bd28bbeb43736375dc02bd003fd3a016ff8ee91e14bab488325c6b38bf966"
37
+ sha512 = "5a63c1f36de0c4548e1d2297bdbededb28721cbad94ef7825c469eae29d7451c97e00b4c1d6730ee1ec0c4a5aac922961a2795762d4a0c3bb54e30a391a84bae"
38
+
39
+ [surface]
40
+ url = "https://github.com/WebAssembly/wasi-gfx/archive/refs/heads/v0.0.1.tar.gz"
41
+ subdir = "surface"
42
+ sha256 = "34c55612f86285fd8e90665e79c3d9de79a2a27f0153d565ca4a18680d986557"
43
+ sha512 = "3950cddf68d1a68f25e19edbb53249422ced5bb386d43c3336696cd8837c95cf9435858e32a867fbd07ee4299ab3c01245e644d20bff9cb77c7faa34e2f9687d"
44
+ deps = ["io"]
45
+
46
+ [webgpu]
47
+ url = "https://github.com/WebAssembly/wasi-gfx/archive/refs/heads/v0.0.1.tar.gz"
48
+ subdir = "webgpu"
49
+ sha256 = "1986249a458706635317a72eedda4f3f469919a9d1802893b701aea47d9cee54"
50
+ sha512 = "63488865481f18d7b0258cc9ac97bfca92c3944fcd40d34ec723d2691a673db0140a905a62d995bfbb0fb61ba5785fbd07dc97317e5f90dfcfa292440a7ead48"
51
+ deps = ["io"]
package/wit/deps.toml ADDED
@@ -0,0 +1,18 @@
1
+ [webgpu]
2
+ url = "https://github.com/WebAssembly/wasi-gfx/archive/refs/heads/v0.0.1.tar.gz"
3
+ subdir = "webgpu"
4
+
5
+ [surface]
6
+ url = "https://github.com/WebAssembly/wasi-gfx/archive/refs/heads/v0.0.1.tar.gz"
7
+ subdir = "surface"
8
+
9
+ [graphics-context]
10
+ url = "https://github.com/WebAssembly/wasi-gfx/archive/refs/heads/v0.0.1.tar.gz"
11
+ subdir = "graphics-context"
12
+
13
+ [frame-buffer]
14
+ url = "https://github.com/WebAssembly/wasi-gfx/archive/refs/heads/v0.0.1.tar.gz"
15
+ subdir = "frame-buffer"
16
+
17
+ [cli]
18
+ url = "https://github.com/WebAssembly/wasi-cli/archive/6ae82617096e83e6606047736e84ac397b788631.tar.gz"
package/wit/world.wit ADDED
@@ -0,0 +1,10 @@
1
+ package wasi-gfx:js-webgpu@0.1.0;
2
+
3
+ world imports {
4
+ import wasi:webgpu/webgpu@0.0.1;
5
+ import wasi:graphics-context/graphics-context@0.0.1;
6
+ import wasi:surface/surface@0.0.1;
7
+ import wasi:frame-buffer/frame-buffer@0.0.1;
8
+ import wasi:cli/stdout@0.2.0;
9
+ export wasi:cli/run@0.2.0;
10
+ }