Crate hotglsl

source ·
Expand description

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

See the watch function.

Structs

Enums

  • Errors that might occur while waiting for the next file system event.
  • Errors that might occur while attempting to compile a glsl file to a spir-v file.
  • Errors that might occur while waiting for the next library instance.
  • Stage of the programmable pipeline.

Constants

  • The list of extensions that are considered valid shader extensions.

Functions

  • Compile the GLSL file at the given path to SPIR-V.
  • Compile the GLSL string to SPIR-V.
  • Convert the given file extension to a shader type for glsl_to_spirv compilation.
  • Watch the give file or directory of files.
  • Watch each of the specified paths for events.