Package foundry.veil.api.glsl.node
Class GlslTree
java.lang.Object
foundry.veil.api.glsl.node.GlslTree
-
Constructor Summary
ConstructorDescriptionGlslTree()
GlslTree
(GlslVersionStatement versionStatement, Collection<GlslNode> body, Collection<String> directives, Map<String, GlslNode> markers) -
Method Summary
Modifier and TypeMethodDescriptionOptional
<com.mojang.datafixers.util.Pair<GlslNodeList, Integer>> containingBlock
(GlslNode node) boolean
fields()
getBody()
int
hashCode()
void
Explicitly marks all outputs with a layout location if not specified.searchField
(String name) static void
stripGLMacros
(Map<String, String> macros) toString()
void
visit
(GlslTreeVisitor visitor)
-
Constructor Details
-
GlslTree
public GlslTree() -
GlslTree
public GlslTree(GlslVersionStatement versionStatement, Collection<GlslNode> body, Collection<String> directives, Map<String, GlslNode> markers)
-
-
Method Details
-
visit
-
markOutputs
public void markOutputs()Explicitly marks all outputs with a layout location if not specified. -
mainFunction
-
functions
-
field
-
fields
-
searchField
-
containingBlock
public Optional<com.mojang.datafixers.util.Pair<GlslNodeList,Integer>> containingBlock(GlslNode node) -
getVersionStatement
-
getDirectives
-
getMarkers
-
getMacros
-
getBody
-
toSourceString
-
stripGLMacros
-
toString
-
equals
-
hashCode
public int hashCode()
-