Class DeclarationReplacement
java.lang.Object
io.github.douira.glsl_transformer.transform.Transformation
io.github.douira.glsl_transformer.iris.DeclarationReplacement
The declaration replacement finds layout declarations and replaces all
references to them with function calls and other code.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.douira.glsl_transformer.transform.Transformation
Transformation.SemanticException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis method should create phases and add them withTransformation.addPhase(Phase)orTransformation.addPhase(Phase, int).protected voidThis 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.Methods inherited from class io.github.douira.glsl_transformer.transform.Transformation
addPhase, addPhase
-
Constructor Details
-
DeclarationReplacement
public DeclarationReplacement()
-
-
Method Details
-
resetState
protected void resetState()Description copied from class:TransformationThis 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:
resetStatein classTransformation
-
createPhases
protected void createPhases()Description copied from class:TransformationThis method should create phases and add them withTransformation.addPhase(Phase)orTransformation.addPhase(Phase, int). Phases are typically implemented by creating anonymous classes within the implementation of this method.- Specified by:
createPhasesin classTransformation
-