8 个版本
新 0.7.4 | 2024 年 8 月 19 日 |
---|---|
0.7.3 | 2024 年 8 月 19 日 |
0.7.2 | 2023 年 11 月 5 日 |
0.7.1 | 2023 年 4 月 4 日 |
0.5.0 | 2021 年 4 月 6 日 |
#307 in 渲染
350 每月下载量
110KB
2K SLoC
glslt_cli
glsltc 是 GLSLT 语言的默认编译器前端。要使用 Rust 或 Python 代码中的 GLSLT 转换,请参阅 glslt crate 的文档。
安装
从 发布 中提取您平台预构建的二进制文件到您的 $PATH
中的某个位置。
或者,您可以从源代码编译 GLSLT 并使用 cargo install --force .
安装它
命令行使用
GLSL Template compiler
Usage: glsltc [OPTIONS] [INPUT]...
Arguments:
[INPUT]... Input template files
Options:
-q, --quiet Quiet mode
-v, --verbose... Verbose mode. Repeat to increase verbosity
-o, --output <OUTPUT> Output file (defaults to stdout)
-I <INCLUDE> System include paths
-K, --keep-fns <KEEP_FNS> List of symbols to keep for minifying mode
-p, --prefix <PREFIX> Identifier prefix for generated code
-h, --help Print help information
示例
# Transform the GLSLT code in `sdf.glsl` to the output file `output.glsl`
glsltc -o output.glsl sdf.glsl
# Transform the GLSLT code in `sdf.glsl` to the output file `output.glsl`. Only keep
# transitive dependencies of the `mainImage` function (minifying mode).
glsltc -o output.glsl -K=mainImage sdf.glsl
作者
Alixinne [email protected]
依赖
~5–7.5MB
~130K SLoC