[][src]Crate hotglsl

A small crate for hot-loading GLSL as SPIR-V!

See the watch function.

Structs

CreationError

Errors that might occur while creating a Watch instance.

Watch

Watches one or more paths for changes to GLSL shader files.

Enums

AwaitEventError

Errors that might occur while waiting for the next file system event.

CompileError

Errors that might occur while attempting to compile a glsl file to a spir-v file.

NextPathError

Errors that might occur while waiting for the next library instance.

Constants

GLSL_EXTENSIONS

The list of extensions that are considered valid shader extensions.

Functions

compile

Compile the GLSL file at the given path to SPIR-V.

watch

Watch the give file or directory of files.

watch_paths

Watch each of the specified paths for events.