17 std::unique_ptr<Expression> arg) {
20 SkASSERT(arg->type().scalarTypeForLiteral().matches(
35 return std::make_unique<ConstructorSplat>(
pos,
type, std::move(arg));
static std::unique_ptr< Expression > MakeConstantValueForVariable(Position pos, std::unique_ptr< Expression > expr)
static std::unique_ptr< Expression > Make(const Context &context, Position pos, const Type &type, std::unique_ptr< Expression > arg)
const Type & type() const
virtual bool isVector() const
bool isAllowedInES2(const Context &context) const
virtual const Type & componentType() const
virtual bool isScalar() const
virtual const Type & scalarTypeForLiteral() const