Interface ShaderModification
- All Known Implementing Classes:
InputShaderModification
,ReplaceShaderModification
,SimpleShaderModification
,VertexShaderModification
@Internal
public interface ShaderModification
Allows shader source files to be modified without overwriting the file.
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
inject
(GlslTree tree, VeilJobParameters parameters) Injects this modification into the specified shader source.static ShaderModification
int
priority()
-
Field Details
-
VERSION_PATTERN
-
OUT_PATTERN
-
IN_PATTERN
-
UNIFORM_PATTERN
-
RETURN_PATTERN
-
PLACEHOLDER_PATTERN
-
-
Method Details
-
inject
Injects this modification into the specified shader source.- Parameters:
tree
- The source to modifyparameters
- The parameters to use when injecting- Throws:
GlslSyntaxException
- If an error occurs when parsing GLSL codeIOException
- If an error occurs with the format or applying the modifications
-
priority
int priority()- Returns:
- The priority of this modification. A higher priority will be applied before a lower priority modification
-
parse
static ShaderModification parse(String input, boolean vertex) throws ShaderModificationSyntaxException
-