32 for (
int index = 0; index < swizzle.
components().
size(); ++index) {
39 std::unique_ptr<Expression> vec =
44 context, indexExpr.
fPosition, std::move(vec), indexExpr.
index()->clone());
48 context, indexExpr.
fPosition, swizzle.
base()->clone(), std::move(innerExpr));
const std::unique_ptr< Type > fInt
static std::unique_ptr< Expression > MakeFromConstants(const Context &context, Position pos, const Type &type, const double values[])
const BuiltinTypes & fTypes
static std::unique_ptr< Expression > Make(const Context &context, Position pos, std::unique_ptr< Expression > base, std::unique_ptr< Expression > index)
std::unique_ptr< Expression > & base()
std::unique_ptr< Expression > & index()
std::unique_ptr< Expression > & base()
const ComponentArray & components() const