Class GlslPreprocessor
java.lang.Object
com.mojang.blaze3d.preprocessor.GlslPreprocessor
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract @Nullable StringapplyImport(boolean isRelative, String path) static StringinjectDefines(String source, ShaderDefines defines) private static booleanisDirectiveDisabled(String source, Matcher matcher, int start) private static booleanisDirectiveEnabled(String source, Matcher matcher) processImports(String source, GlslPreprocessor.Context context, String parentPath) private StringprocessVersions(String source, GlslPreprocessor.Context context) private StringsetVersion(String source, int version)
-
Field Details
-
C_COMMENT
- See Also:
-
LINE_COMMENT
- See Also:
-
REGEX_MOJ_IMPORT
-
REGEX_VERSION
-
REGEX_ENDS_WITH_WHITESPACE
-
-
Constructor Details
-
GlslPreprocessor
public GlslPreprocessor()
-
-
Method Details
-
process
-
processImports
private List<String> processImports(String source, GlslPreprocessor.Context context, String parentPath) -
processVersions
-
setVersion
-
isDirectiveEnabled
-
isDirectiveDisabled
-
applyImport
-
injectDefines
-