glslt_cli

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.

Installation

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 .

Command-line usage

```bash glsltc 0.5.0 Vincent Tavernier vince.tavernier@gmail.com GLSL Template compiler

USAGE: glsltc [FLAGS] [OPTIONS] [--] [input]...

FLAGS: -h, --help Prints help information -q, --quiet Quiet mode -V, --version Prints version information -v, --verbose Verbose mode. Repeat to increase verbosity

OPTIONS: -I ... System include paths -K, --keep-fns ... List of symbols to keep for minifying mode -o, --output Output file (defaults to stdout) -p, --prefix Identifier prefix for generated code

ARGS: ... Input template files ```

Examples

```bash

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 ```

Author

Vincent Tavernier vince.tavernier@gmail.com