Crates.io | glslt_cli |
lib.rs | glslt_cli |
version | 0.7.4 |
source | src |
created_at | 2021-04-06 00:22:23.964213 |
updated_at | 2024-08-19 22:55:50.388198 |
description | GLSLT Template compiler library |
homepage | https://github.com/alixinne/glslt |
repository | https://github.com/alixinne/glslt.git |
max_upload_size | |
id | 379576 |
size | 37,058 |
glsltc is the default compiler front-end for the GLSLT language. To use the GLSLT transforms from Rust or Python code, see the documentation for the glslt crate.
Extract the pre-built binary for your platform from the
releases somewhere in your $PATH
.
Alternatively, you may compile GLSLT from source and install it using 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 alixinne@pm.me