Package icyllis.arc3d.compiler.tree
Class ConstructorMatrixResize
java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.Expression
icyllis.arc3d.compiler.tree.ConstructorCall
icyllis.arc3d.compiler.tree.ConstructorMatrixResize
Represents the construction of a matrix resize operation, such as `mat4x4(myMat2x2)`.
These always contain exactly 1 matrix of non-matching size. Cells that aren't present in the input matrix are populated with the identity matrix.
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.compiler.tree.Node
Node.ElementKind, Node.ExpressionKind, Node.StatementKind, Node.SymbolKind
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone
(int position) getConstantValue
(int i) Returns the i'th compile-time constant value within a literal or constructor.getKind()
static Expression
make
(int position, Type type, Expression arg) Methods inherited from class icyllis.arc3d.compiler.tree.ConstructorCall
accept, convert, getArgument, getArguments, getComponentType, isConstructorCall, toString
Methods inherited from class icyllis.arc3d.compiler.tree.Expression
clone, getCoercionCost, getType, isBooleanLiteral, isFloatLiteral, isIncomplete, isIntLiteral, isLiteral, toString
Methods inherited from class icyllis.arc3d.compiler.tree.Node
getEndOffset, getStartOffset
-
Method Details
-
make
-
getKind
- Specified by:
getKind
in classExpression
- See Also:
-
getConstantValue
Description copied from class:Expression
Returns the i'th compile-time constant value within a literal or constructor. Indices which do not contain compile-time constant values will return empty. `vec4(1, vec2(2), 3)` contains four compile-time constants: (1, 2, 2, 3) `mat2(f)` contains four slots, and two are constant: (empty, 0, 0, empty)- Overrides:
getConstantValue
in classConstructorCall
-
clone
- Specified by:
clone
in classExpression
-