Expand description
A small crate for hot-loading GLSL as SPIR-V!
See the watch
function.
Structs§
- Creation
Error - Errors that might occur while creating a
Watch
instance. - Naga
Front Error - Watch
- Watches one or more paths for changes to GLSL shader files.
Enums§
- Await
Event Error - Errors that might occur while waiting for the next file system event.
- Compile
Error - Errors that might occur while attempting to compile a glsl file to a spir-v file.
- Naga
Error - Next
Path Error - Errors that might occur while waiting for the next library instance.
- Shader
Stage - 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.