Class ReplaceDeclarations

java.lang.Object
io.github.douira.glsl_transformer.transform.Transformation
io.github.douira.glsl_transformer.transformation.ReplaceDeclarations

public class ReplaceDeclarations extends Transformation
The declaration replacement finds layout declarations and replaces all references to them with function calls and other code.
  • Constructor Details

    • ReplaceDeclarations

      public ReplaceDeclarations()
      Creates a new declaration replacement transformation with a walk phase for finding declarations and one for inserting calls to the generated functions.
  • Method Details

    • resetState

      protected void resetState()
      Description copied from class: Transformation
      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.
      Overrides:
      resetState in class Transformation