Package io.github.douira.glsl_transformer.transform
package io.github.douira.glsl_transformer.transform
-
ClassDescriptionThe dynamic parse tree walker can with structural modification of a node's child array.The phase collector holds the registered transformations and manages their execution.A run phase simply executes one method when it is executed in a level by the phase collector.The transformation is the vehicle through which transformation phases, which do all the actual transforming work, are added to the phase collector.Implements the phase collector by providing the boilerplate code for setting up an input, a lexer and a parser.Shader code is expected to be roughly structured as follows: version, extensions, other directives (#define, #pragma etc.), declarations (layout etc.), functions (void main etc.).The walk phase is a phase on which the listener methods of the generated listener interface are called.