wesl-link 0.6.2 → 0.6.7
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/README.md +4 -21
- package/bin/wesl-link +1404 -9870
- package/bin/wesl-packager +1510 -0
- package/package.json +8 -6
package/README.md
CHANGED
|
@@ -1,24 +1,7 @@
|
|
|
1
1
|
## wesl-link
|
|
2
2
|
|
|
3
|
-
**wesl-link** is a tool for
|
|
3
|
+
**wesl-link** is a command line tool for linking multiple WGSL/WESL shader files
|
|
4
|
+
into a single WGSL file.
|
|
4
5
|
|
|
5
|
-
See [
|
|
6
|
-
for
|
|
7
|
-
like `#import` and `#export`.
|
|
8
|
-
|
|
9
|
-
### Usage
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
wesl-link <rootWgsl> [libraryWgsl...]
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Merges the rootWgsl file with any imports
|
|
16
|
-
found in the libraryWgsl files and outputs a bundled wgsl to stdout.
|
|
17
|
-
|
|
18
|
-
### Options
|
|
19
|
-
|
|
20
|
-
`--define name=value`  
|
|
21
|
-
defines variables for conditional compilation. Multiple name=value pairs can be specified.
|
|
22
|
-
|
|
23
|
-
`--base-dir <path element>`  
|
|
24
|
-
sets the base directory for resolving relative paths.
|
|
6
|
+
See [No Bundler Static Linking](https://wesl-lang.dev/docs/JavaScript-Builds#no-bundler-static-linking)
|
|
7
|
+
for documentation on how to use `wesl-link`.
|