Crate hotglsl

Source
Expand description

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.
NagaFrontError
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.
NagaError
NextPathError
Errors that might occur while waiting for the next library instance.
ShaderStage
Stage of the programmable pipeline.

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.
compile_str
Compile the GLSL string to SPIR-V.
ext_to_shader_ty
Convert the given file extension to a shader type for glsl_to_spirv compilation.
watch
Watch the give file or directory of files.
watch_paths
Watch each of the specified paths for events.