Class ReplaceDeclarations
java.lang.Object
io.github.douira.glsl_transformer.transform.Transformation
io.github.douira.glsl_transformer.transformation.ReplaceDeclarations
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.PhaseEntry -
Field Summary
Fields inherited from class io.github.douira.glsl_transformer.transform.Transformation
DEFAULT_GROUP -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new declaration replacement transformation with a walk phase for finding declarations and one for inserting calls to the generated functions. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, addPhase, addPhase, getDefaultGroup
-
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: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
-