@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
@@ -0,0 +1,266 @@
1
+
2
+ interface udp {
3
+ use wasi:io/poll@0.2.0.{pollable};
4
+ use network.{network, error-code, ip-socket-address, ip-address-family};
5
+
6
+ /// A received datagram.
7
+ record incoming-datagram {
8
+ /// The payload.
9
+ ///
10
+ /// Theoretical max size: ~64 KiB. In practice, typically less than 1500 bytes.
11
+ data: list<u8>,
12
+
13
+ /// The source address.
14
+ ///
15
+ /// This field is guaranteed to match the remote address the stream was initialized with, if any.
16
+ ///
17
+ /// Equivalent to the `src_addr` out parameter of `recvfrom`.
18
+ remote-address: ip-socket-address,
19
+ }
20
+
21
+ /// A datagram to be sent out.
22
+ record outgoing-datagram {
23
+ /// The payload.
24
+ data: list<u8>,
25
+
26
+ /// The destination address.
27
+ ///
28
+ /// The requirements on this field depend on how the stream was initialized:
29
+ /// - with a remote address: this field must be None or match the stream's remote address exactly.
30
+ /// - without a remote address: this field is required.
31
+ ///
32
+ /// If this value is None, the send operation is equivalent to `send` in POSIX. Otherwise it is equivalent to `sendto`.
33
+ remote-address: option<ip-socket-address>,
34
+ }
35
+
36
+
37
+
38
+ /// A UDP socket handle.
39
+ resource udp-socket {
40
+ /// Bind the socket to a specific network on the provided IP address and port.
41
+ ///
42
+ /// If the IP address is zero (`0.0.0.0` in IPv4, `::` in IPv6), it is left to the implementation to decide which
43
+ /// network interface(s) to bind to.
44
+ /// If the port is zero, the socket will be bound to a random free port.
45
+ ///
46
+ /// # Typical errors
47
+ /// - `invalid-argument`: The `local-address` has the wrong address family. (EAFNOSUPPORT, EFAULT on Windows)
48
+ /// - `invalid-state`: The socket is already bound. (EINVAL)
49
+ /// - `address-in-use`: No ephemeral ports available. (EADDRINUSE, ENOBUFS on Windows)
50
+ /// - `address-in-use`: Address is already in use. (EADDRINUSE)
51
+ /// - `address-not-bindable`: `local-address` is not an address that the `network` can bind to. (EADDRNOTAVAIL)
52
+ /// - `not-in-progress`: A `bind` operation is not in progress.
53
+ /// - `would-block`: Can't finish the operation, it is still in progress. (EWOULDBLOCK, EAGAIN)
54
+ ///
55
+ /// # Implementors note
56
+ /// Unlike in POSIX, in WASI the bind operation is async. This enables
57
+ /// interactive WASI hosts to inject permission prompts. Runtimes that
58
+ /// don't want to make use of this ability can simply call the native
59
+ /// `bind` as part of either `start-bind` or `finish-bind`.
60
+ ///
61
+ /// # References
62
+ /// - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html>
63
+ /// - <https://man7.org/linux/man-pages/man2/bind.2.html>
64
+ /// - <https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-bind>
65
+ /// - <https://man.freebsd.org/cgi/man.cgi?query=bind&sektion=2&format=html>
66
+ start-bind: func(network: borrow<network>, local-address: ip-socket-address) -> result<_, error-code>;
67
+ finish-bind: func() -> result<_, error-code>;
68
+
69
+ /// Set up inbound & outbound communication channels, optionally to a specific peer.
70
+ ///
71
+ /// This function only changes the local socket configuration and does not generate any network traffic.
72
+ /// On success, the `remote-address` of the socket is updated. The `local-address` may be updated as well,
73
+ /// based on the best network path to `remote-address`.
74
+ ///
75
+ /// When a `remote-address` is provided, the returned streams are limited to communicating with that specific peer:
76
+ /// - `send` can only be used to send to this destination.
77
+ /// - `receive` will only return datagrams sent from the provided `remote-address`.
78
+ ///
79
+ /// This method may be called multiple times on the same socket to change its association, but
80
+ /// only the most recently returned pair of streams will be operational. Implementations may trap if
81
+ /// the streams returned by a previous invocation haven't been dropped yet before calling `stream` again.
82
+ ///
83
+ /// The POSIX equivalent in pseudo-code is:
84
+ /// ```text
85
+ /// if (was previously connected) {
86
+ /// connect(s, AF_UNSPEC)
87
+ /// }
88
+ /// if (remote_address is Some) {
89
+ /// connect(s, remote_address)
90
+ /// }
91
+ /// ```
92
+ ///
93
+ /// Unlike in POSIX, the socket must already be explicitly bound.
94
+ ///
95
+ /// # Typical errors
96
+ /// - `invalid-argument`: The `remote-address` has the wrong address family. (EAFNOSUPPORT)
97
+ /// - `invalid-argument`: The IP address in `remote-address` is set to INADDR_ANY (`0.0.0.0` / `::`). (EDESTADDRREQ, EADDRNOTAVAIL)
98
+ /// - `invalid-argument`: The port in `remote-address` is set to 0. (EDESTADDRREQ, EADDRNOTAVAIL)
99
+ /// - `invalid-state`: The socket is not bound.
100
+ /// - `address-in-use`: Tried to perform an implicit bind, but there were no ephemeral ports available. (EADDRINUSE, EADDRNOTAVAIL on Linux, EAGAIN on BSD)
101
+ /// - `remote-unreachable`: The remote address is not reachable. (ECONNRESET, ENETRESET, EHOSTUNREACH, EHOSTDOWN, ENETUNREACH, ENETDOWN, ENONET)
102
+ /// - `connection-refused`: The connection was refused. (ECONNREFUSED)
103
+ ///
104
+ /// # References
105
+ /// - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html>
106
+ /// - <https://man7.org/linux/man-pages/man2/connect.2.html>
107
+ /// - <https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-connect>
108
+ /// - <https://man.freebsd.org/cgi/man.cgi?connect>
109
+ %stream: func(remote-address: option<ip-socket-address>) -> result<tuple<incoming-datagram-stream, outgoing-datagram-stream>, error-code>;
110
+
111
+ /// Get the current bound address.
112
+ ///
113
+ /// POSIX mentions:
114
+ /// > If the socket has not been bound to a local name, the value
115
+ /// > stored in the object pointed to by `address` is unspecified.
116
+ ///
117
+ /// WASI is stricter and requires `local-address` to return `invalid-state` when the socket hasn't been bound yet.
118
+ ///
119
+ /// # Typical errors
120
+ /// - `invalid-state`: The socket is not bound to any local address.
121
+ ///
122
+ /// # References
123
+ /// - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockname.html>
124
+ /// - <https://man7.org/linux/man-pages/man2/getsockname.2.html>
125
+ /// - <https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-getsockname>
126
+ /// - <https://man.freebsd.org/cgi/man.cgi?getsockname>
127
+ local-address: func() -> result<ip-socket-address, error-code>;
128
+
129
+ /// Get the address the socket is currently streaming to.
130
+ ///
131
+ /// # Typical errors
132
+ /// - `invalid-state`: The socket is not streaming to a specific remote address. (ENOTCONN)
133
+ ///
134
+ /// # References
135
+ /// - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpeername.html>
136
+ /// - <https://man7.org/linux/man-pages/man2/getpeername.2.html>
137
+ /// - <https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-getpeername>
138
+ /// - <https://man.freebsd.org/cgi/man.cgi?query=getpeername&sektion=2&n=1>
139
+ remote-address: func() -> result<ip-socket-address, error-code>;
140
+
141
+ /// Whether this is a IPv4 or IPv6 socket.
142
+ ///
143
+ /// Equivalent to the SO_DOMAIN socket option.
144
+ address-family: func() -> ip-address-family;
145
+
146
+ /// Equivalent to the IP_TTL & IPV6_UNICAST_HOPS socket options.
147
+ ///
148
+ /// If the provided value is 0, an `invalid-argument` error is returned.
149
+ ///
150
+ /// # Typical errors
151
+ /// - `invalid-argument`: (set) The TTL value must be 1 or higher.
152
+ unicast-hop-limit: func() -> result<u8, error-code>;
153
+ set-unicast-hop-limit: func(value: u8) -> result<_, error-code>;
154
+
155
+ /// The kernel buffer space reserved for sends/receives on this socket.
156
+ ///
157
+ /// If the provided value is 0, an `invalid-argument` error is returned.
158
+ /// Any other value will never cause an error, but it might be silently clamped and/or rounded.
159
+ /// I.e. after setting a value, reading the same setting back may return a different value.
160
+ ///
161
+ /// Equivalent to the SO_RCVBUF and SO_SNDBUF socket options.
162
+ ///
163
+ /// # Typical errors
164
+ /// - `invalid-argument`: (set) The provided value was 0.
165
+ receive-buffer-size: func() -> result<u64, error-code>;
166
+ set-receive-buffer-size: func(value: u64) -> result<_, error-code>;
167
+ send-buffer-size: func() -> result<u64, error-code>;
168
+ set-send-buffer-size: func(value: u64) -> result<_, error-code>;
169
+
170
+ /// Create a `pollable` which will resolve once the socket is ready for I/O.
171
+ ///
172
+ /// Note: this function is here for WASI Preview2 only.
173
+ /// It's planned to be removed when `future` is natively supported in Preview3.
174
+ subscribe: func() -> pollable;
175
+ }
176
+
177
+ resource incoming-datagram-stream {
178
+ /// Receive messages on the socket.
179
+ ///
180
+ /// This function attempts to receive up to `max-results` datagrams on the socket without blocking.
181
+ /// The returned list may contain fewer elements than requested, but never more.
182
+ ///
183
+ /// This function returns successfully with an empty list when either:
184
+ /// - `max-results` is 0, or:
185
+ /// - `max-results` is greater than 0, but no results are immediately available.
186
+ /// This function never returns `error(would-block)`.
187
+ ///
188
+ /// # Typical errors
189
+ /// - `remote-unreachable`: The remote address is not reachable. (ECONNRESET, ENETRESET on Windows, EHOSTUNREACH, EHOSTDOWN, ENETUNREACH, ENETDOWN, ENONET)
190
+ /// - `connection-refused`: The connection was refused. (ECONNREFUSED)
191
+ ///
192
+ /// # References
193
+ /// - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/recvfrom.html>
194
+ /// - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/recvmsg.html>
195
+ /// - <https://man7.org/linux/man-pages/man2/recv.2.html>
196
+ /// - <https://man7.org/linux/man-pages/man2/recvmmsg.2.html>
197
+ /// - <https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-recv>
198
+ /// - <https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-recvfrom>
199
+ /// - <https://learn.microsoft.com/en-us/previous-versions/windows/desktop/legacy/ms741687(v=vs.85)>
200
+ /// - <https://man.freebsd.org/cgi/man.cgi?query=recv&sektion=2>
201
+ receive: func(max-results: u64) -> result<list<incoming-datagram>, error-code>;
202
+
203
+ /// Create a `pollable` which will resolve once the stream is ready to receive again.
204
+ ///
205
+ /// Note: this function is here for WASI Preview2 only.
206
+ /// It's planned to be removed when `future` is natively supported in Preview3.
207
+ subscribe: func() -> pollable;
208
+ }
209
+
210
+ resource outgoing-datagram-stream {
211
+ /// Check readiness for sending. This function never blocks.
212
+ ///
213
+ /// Returns the number of datagrams permitted for the next call to `send`,
214
+ /// or an error. Calling `send` with more datagrams than this function has
215
+ /// permitted will trap.
216
+ ///
217
+ /// When this function returns ok(0), the `subscribe` pollable will
218
+ /// become ready when this function will report at least ok(1), or an
219
+ /// error.
220
+ ///
221
+ /// Never returns `would-block`.
222
+ check-send: func() -> result<u64, error-code>;
223
+
224
+ /// Send messages on the socket.
225
+ ///
226
+ /// This function attempts to send all provided `datagrams` on the socket without blocking and
227
+ /// returns how many messages were actually sent (or queued for sending). This function never
228
+ /// returns `error(would-block)`. If none of the datagrams were able to be sent, `ok(0)` is returned.
229
+ ///
230
+ /// This function semantically behaves the same as iterating the `datagrams` list and sequentially
231
+ /// sending each individual datagram until either the end of the list has been reached or the first error occurred.
232
+ /// If at least one datagram has been sent successfully, this function never returns an error.
233
+ ///
234
+ /// If the input list is empty, the function returns `ok(0)`.
235
+ ///
236
+ /// Each call to `send` must be permitted by a preceding `check-send`. Implementations must trap if
237
+ /// either `check-send` was not called or `datagrams` contains more items than `check-send` permitted.
238
+ ///
239
+ /// # Typical errors
240
+ /// - `invalid-argument`: The `remote-address` has the wrong address family. (EAFNOSUPPORT)
241
+ /// - `invalid-argument`: The IP address in `remote-address` is set to INADDR_ANY (`0.0.0.0` / `::`). (EDESTADDRREQ, EADDRNOTAVAIL)
242
+ /// - `invalid-argument`: The port in `remote-address` is set to 0. (EDESTADDRREQ, EADDRNOTAVAIL)
243
+ /// - `invalid-argument`: The socket is in "connected" mode and `remote-address` is `some` value that does not match the address passed to `stream`. (EISCONN)
244
+ /// - `invalid-argument`: The socket is not "connected" and no value for `remote-address` was provided. (EDESTADDRREQ)
245
+ /// - `remote-unreachable`: The remote address is not reachable. (ECONNRESET, ENETRESET on Windows, EHOSTUNREACH, EHOSTDOWN, ENETUNREACH, ENETDOWN, ENONET)
246
+ /// - `connection-refused`: The connection was refused. (ECONNREFUSED)
247
+ /// - `datagram-too-large`: The datagram is too large. (EMSGSIZE)
248
+ ///
249
+ /// # References
250
+ /// - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html>
251
+ /// - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendmsg.html>
252
+ /// - <https://man7.org/linux/man-pages/man2/send.2.html>
253
+ /// - <https://man7.org/linux/man-pages/man2/sendmmsg.2.html>
254
+ /// - <https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-send>
255
+ /// - <https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto>
256
+ /// - <https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsasendmsg>
257
+ /// - <https://man.freebsd.org/cgi/man.cgi?query=send&sektion=2>
258
+ send: func(datagrams: list<outgoing-datagram>) -> result<u64, error-code>;
259
+
260
+ /// Create a `pollable` which will resolve once the stream is ready to send again.
261
+ ///
262
+ /// Note: this function is here for WASI Preview2 only.
263
+ /// It's planned to be removed when `future` is natively supported in Preview3.
264
+ subscribe: func() -> pollable;
265
+ }
266
+ }
@@ -0,0 +1,11 @@
1
+ package wasi:sockets@0.2.0;
2
+
3
+ world imports {
4
+ import instance-network;
5
+ import network;
6
+ import udp;
7
+ import udp-create-socket;
8
+ import tcp;
9
+ import tcp-create-socket;
10
+ import ip-name-lookup;
11
+ }
@@ -0,0 +1,248 @@
1
+ package wasi:surface@0.0.1;
2
+
3
+ world imports {
4
+ import surface;
5
+ }
6
+
7
+ interface surface {
8
+ use wasi:graphics-context/graphics-context@0.0.1.{context};
9
+ use wasi:io/poll@0.2.0.{pollable};
10
+
11
+ record create-desc {
12
+ height: option<u32>,
13
+ width: option<u32>,
14
+ }
15
+
16
+ resource surface {
17
+ constructor(desc: create-desc);
18
+
19
+ connect-graphics-context: func(context: borrow<context>);
20
+
21
+ height: func() -> u32;
22
+ width: func() -> u32;
23
+
24
+ request-set-size: func(height: option<u32>, width: option<u32>);
25
+
26
+ subscribe-resize: func() -> pollable;
27
+ get-resize: func() -> option<resize-event>;
28
+
29
+ subscribe-frame: func() -> pollable;
30
+ get-frame: func() -> option<frame-event>;
31
+
32
+ subscribe-pointer-up: func() -> pollable;
33
+ get-pointer-up: func() -> option<pointer-event>;
34
+
35
+ subscribe-pointer-down: func() -> pollable;
36
+ get-pointer-down: func() -> option<pointer-event>;
37
+
38
+ subscribe-pointer-move: func() -> pollable;
39
+ get-pointer-move: func() -> option<pointer-event>;
40
+
41
+ subscribe-key-up: func() -> pollable;
42
+ get-key-up: func() -> option<key-event>;
43
+
44
+ subscribe-key-down: func() -> pollable;
45
+ get-key-down: func() -> option<key-event>;
46
+ }
47
+
48
+ record resize-event {
49
+ height: u32,
50
+ width: u32,
51
+ }
52
+
53
+ record frame-event {
54
+ /// TODO: This field doesn't mean anything.
55
+ /// Can't have empty record. Would like to have a way around this.
56
+ nothing: bool,
57
+ }
58
+
59
+ record pointer-event {
60
+ x: f64,
61
+ y: f64,
62
+ }
63
+
64
+ record key-event {
65
+ key: option<key>,
66
+ text: option<string>,
67
+ alt-key: bool,
68
+ ctrl-key: bool,
69
+ meta-key: bool,
70
+ shift-key: bool,
71
+ }
72
+
73
+ // corresponds with https://w3c.github.io/uievents-code/#code-value-tables
74
+ // `Unidentified` is not included, use `option<key>` instead.
75
+ enum key {
76
+ backquote,
77
+ backslash,
78
+ bracket-left,
79
+ bracket-right,
80
+ comma,
81
+ digit0,
82
+ digit1,
83
+ digit2,
84
+ digit3,
85
+ digit4,
86
+ digit5,
87
+ digit6,
88
+ digit7,
89
+ digit8,
90
+ digit9,
91
+ equal,
92
+ intl-backslash,
93
+ intl-ro,
94
+ intl-yen,
95
+ key-a,
96
+ key-b,
97
+ key-c,
98
+ key-d,
99
+ key-e,
100
+ key-f,
101
+ key-g,
102
+ key-h,
103
+ key-i,
104
+ key-j,
105
+ key-k,
106
+ key-l,
107
+ key-m,
108
+ key-n,
109
+ key-o,
110
+ key-p,
111
+ key-q,
112
+ key-r,
113
+ key-s,
114
+ key-t,
115
+ key-u,
116
+ key-v,
117
+ key-w,
118
+ key-x,
119
+ key-y,
120
+ key-z,
121
+ minus,
122
+ period,
123
+ quote,
124
+ semicolon,
125
+ slash,
126
+ alt-left,
127
+ alt-right,
128
+ backspace,
129
+ caps-lock,
130
+ context-menu,
131
+ control-left,
132
+ control-right,
133
+ enter,
134
+ meta-left,
135
+ meta-right,
136
+ shift-left,
137
+ shift-right,
138
+ space,
139
+ tab,
140
+ convert,
141
+ kana-mode,
142
+ lang1,
143
+ lang2,
144
+ lang3,
145
+ lang4,
146
+ lang5,
147
+ non-convert,
148
+ delete,
149
+ end,
150
+ help,
151
+ home,
152
+ insert,
153
+ page-down,
154
+ page-up,
155
+ arrow-down,
156
+ arrow-left,
157
+ arrow-right,
158
+ arrow-up,
159
+ num-lock,
160
+ numpad0,
161
+ numpad1,
162
+ numpad2,
163
+ numpad3,
164
+ numpad4,
165
+ numpad5,
166
+ numpad6,
167
+ numpad7,
168
+ numpad8,
169
+ numpad9,
170
+ numpad-add,
171
+ numpad-backspace,
172
+ numpad-clear,
173
+ numpad-clear-entry,
174
+ numpad-comma,
175
+ numpad-decimal,
176
+ numpad-divide,
177
+ numpad-enter,
178
+ numpad-equal,
179
+ numpad-hash,
180
+ numpad-memory-add,
181
+ numpad-memory-clear,
182
+ numpad-memory-recall,
183
+ numpad-memory-store,
184
+ numpad-memory-subtract,
185
+ numpad-multiply,
186
+ numpad-paren-left,
187
+ numpad-paren-right,
188
+ numpad-star,
189
+ numpad-subtract,
190
+ escape,
191
+ f1,
192
+ f2,
193
+ f3,
194
+ f4,
195
+ f5,
196
+ f6,
197
+ f7,
198
+ f8,
199
+ f9,
200
+ f10,
201
+ f11,
202
+ f12,
203
+ fn,
204
+ fn-lock,
205
+ print-screen,
206
+ scroll-lock,
207
+ pause,
208
+ browser-back,
209
+ browser-favorites,
210
+ browser-forward,
211
+ browser-home,
212
+ browser-refresh,
213
+ browser-search,
214
+ browser-stop,
215
+ eject,
216
+ launch-app1,
217
+ launch-app2,
218
+ launch-mail,
219
+ media-play-pause,
220
+ media-select,
221
+ media-stop,
222
+ media-track-next,
223
+ media-track-previous,
224
+ power,
225
+ sleep,
226
+ audio-volume-down,
227
+ audio-volume-mute,
228
+ audio-volume-up,
229
+ wake-up,
230
+ hyper,
231
+ super,
232
+ turbo,
233
+ abort,
234
+ resume,
235
+ suspend,
236
+ again,
237
+ copy,
238
+ cut,
239
+ find,
240
+ open,
241
+ paste,
242
+ props,
243
+ select,
244
+ undo,
245
+ hiragana,
246
+ katakana,
247
+ }
248
+ }
@@ -0,0 +1,5 @@
1
+ package wasi:webgpu@0.0.1;
2
+
3
+ world imports {
4
+ import webgpu;
5
+ }