Enum glsl::syntax::Preprocessor
source · pub enum Preprocessor {
Define(PreprocessorDefine),
Version(PreprocessorVersion),
Extension(PreprocessorExtension),
}
Expand description
Some basic preprocessor commands.
As it’s important to carry them around the AST because they cannot be substituted in a normal preprocessor (they’re used by GPU’s compilers), those preprocessor commands are available for inspection.
Important note: so far, only
#version
and#extension
are supported. Other pragmas will be added in the future. Stay tuned.
Variants§
Trait Implementations§
source§impl Clone for Preprocessor
impl Clone for Preprocessor
source§fn clone(&self) -> Preprocessor
fn clone(&self) -> Preprocessor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more