Flutter Engine
The Flutter Engine
|
Converts any GLSL constructor, such as float2(x, y)
or mat3x3(otherMat)
or int[2](0, i)
, to an SkSL expression.
Vector constructors must always consist of either exactly 1 scalar, or a collection of vectors and scalars totaling exactly the right number of scalar components.
Matrix constructors must always consist of either exactly 1 scalar, exactly 1 matrix, or a collection of vectors and scalars totaling exactly the right number of scalar components.
Array constructors must always contain the proper number of array elements (matching the Type).