Flutter Engine
The Flutter Engine
|
Functions | |
std::unique_ptr< Expression > | Convert (const Context &context, Position pos, const Type &type, ExpressionArray args) |
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).
std::unique_ptr< Expression > SkSL::Constructor::Convert | ( | const Context & | context, |
Position | pos, | ||
const Type & | type, | ||
ExpressionArray | args | ||
) |
Definition at line 151 of file SkSLConstructor.cpp.