glslminifier(1)

glslminifier1

Filament material tools

Overview

glslminifier minifies GLSL shader code by removing comments, blank lines and indentation.

Usage:

glslminifier [options] <input file>

Options

--help, -h

Print this message.

--license, -L

Print copyright and license information.

--output, -o

Specify path to output file. If none provided, writes to stdout.

--optimization, -O [none]

Set the level of optimization. "none" performs a simple passthrough.

--line, -l [name]

Insert a #line directive on the first line of the shader with the given name. For example, --line foobar.h will insert the following:

#if defined(GL_GOOGLE_cpp_style_line_directive) #line 0 "foobar.h" #endif

This option is meant to be used with -Onone optimization.

Example:

glslminifier -o output.fs.min input.fs > Output file: output.fs.min

glslminifier minifies GLSL shader code by removing comments, blank lines and indentation.

Usage:

glslminifier [options] <input file>

--help, -h

Print this message.

--license, -L

Print copyright and license information.

--output, -o

Specify path to output file. If none provided, writes to stdout.

--optimization, -O [none]

Set the level of optimization. "none" performs a simple passthrough.

--line, -l [name]

Insert a #line directive on the first line of the shader with the given name. For example, --line foobar.h will insert the following:

#if defined(GL_GOOGLE_cpp_style_line_directive) #line 0 "foobar.h" #endif

This option is meant to be used with -Onone optimization.

Example:

glslminifier -o output.fs.min input.fs > Output file: output.fs.min

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

From libfilament-tools 1.9.25+dfsg3-1+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.