Class Transformation

java.lang.Object
io.github.douira.glsl_transformer.transform.Transformation
Direct Known Subclasses:
DebugTransformation, DeclarationReplacement

public abstract class Transformation extends Object
  • Constructor Details

    • Transformation

      public Transformation()
  • Method Details

    • addPhase

      protected void addPhase(io.github.douira.glsl_transformer.transform.Phase phase)
    • addPhase

      protected void addPhase(io.github.douira.glsl_transformer.transform.Phase phase, int index)
    • resetState

      protected void resetState()
      This method is called by the phase collector each time a tree is transformed in order to reset or initialize the state of the transformation if it has any.
    • createPhases

      protected abstract void createPhases()
      This method should create phases and add them with addPhase(Phase) or addPhase(Phase, int). Phases are typically implemented by creating anonymous classes within the implementation of this method.