Module azul_webrender_build::shader [−][src]
Expand description
Functionality for managing source code for shaders.
This module is used during precompilation (build.rs) and regular compilation, so it has minimal dependencies.
Re-exports
pub use crate::shader_features::*;
Structs
Enums
Functions
Walks the main .glsl file, including any imports.
Walks the prefix section of the shader string, which manages the various defines for features etc.
Creates heap-allocated strings for both vertex and fragment shaders.
Walks the given shader string and applies the output to the provided callback. Assuming an override path is not used, does no heap allocation and no I/O.
Reads a shader source file from disk into a String.