wesl-link 0.6.0-pre10
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 +24 -0
- package/bin/wesl-link +9959 -0
- package/package.json +29 -0
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
## wesl-link
|
|
2
|
+
|
|
3
|
+
**wesl-link** is a tool for preprocessing and linking multiple WGSL shader modules into a single WGSL module from the command line.
|
|
4
|
+
|
|
5
|
+
See [wesl-js](https://github.com/wgsl-tooling-wg/wesl-js)
|
|
6
|
+
for more details of wgsl syntax extensions
|
|
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.
|