Package foundry.veil.impl.glsl.grammar
Class GlslSpecifiedType
java.lang.Object
foundry.veil.impl.glsl.grammar.GlslSpecifiedType
- All Implemented Interfaces:
GlslType
Specifies the full operand of something in GLSL in addition to all qualifiers.
-
Constructor Summary
ConstructorDescriptionGlslSpecifiedType
(GlslTypeSpecifier specifier) GlslSpecifiedType
(GlslTypeSpecifier specifier, GlslTypeQualifier... qualifiers) GlslSpecifiedType
(GlslTypeSpecifier specifier, Collection<GlslTypeQualifier> qualifiers) -
Method Summary
Modifier and TypeMethodDescriptionaddLayoutId
(String identifier, @Nullable GlslNode expression) Adds a layout id to the qualifier list, or adds to an existing layout.setQualifiers
(GlslTypeQualifier... qualifiers) setQualifiers
(Collection<GlslTypeQualifier> qualifiers) setSpecifier
(GlslTypeSpecifier specifier) Sets the operand of thistoString()
-
Constructor Details
-
GlslSpecifiedType
-
GlslSpecifiedType
-
GlslSpecifiedType
-
-
Method Details
-
getSpecifier
- Returns:
- The operand of the field, method, etc
-
addLayoutId
Adds a layout id to the qualifier list, or adds to an existing layout.- Parameters:
identifier
- The name of the identifierexpression
- The value to assign it to
-
getQualifiers
- Returns:
- The qualifiers applied to it, for example
layout()
orflat
-
setSpecifier
Sets the operand of this- Parameters:
specifier
-- Returns:
-
setQualifiers
-
setQualifiers
-
getSourceString
-
getPostSourceString
-
toString
-
asSpecifiedType
- Specified by:
asSpecifiedType
in interfaceGlslType
-