Home
last modified time | relevance | path

Searched refs:ConstructorCompound (Results 1 – 14 of 14) sorted by relevance

/external/skia/src/sksl/ir/
DSkSLConstructorCompound.cpp16 std::unique_ptr<Expression> ConstructorCompound::Make(const Context& context, in Make()
51 fields += arg->is<ConstructorCompound>() in Make()
52 ? arg->as<ConstructorCompound>().arguments().size() in Make()
63 if (!arg->is<ConstructorCompound>()) { in Make()
68 ConstructorCompound& compositeCtor = arg->as<ConstructorCompound>(); in Make()
83 return std::make_unique<ConstructorCompound>(offset, type, std::move(args)); in Make()
DSkSLConstructorCompound.h27 class ConstructorCompound final : public MultiArgumentConstructor {
31 ConstructorCompound(int offset, const Type& type, ExpressionArray args) in ConstructorCompound() function
40 return std::make_unique<ConstructorCompound>(fOffset, this->type(), this->cloneArguments()); in clone()
DSkSLPrefixExpression.cpp82 ConstructorCompound& ctor = operand->as<ConstructorCompound>(); in negate_operand()
83 return ConstructorCompound::Make( in negate_operand()
DSkSLConstructorCompoundCast.cpp63 return ConstructorCompound::Make(context, constCtor->fOffset, destType, in cast_constant_composite()
DSkSLFunctionCall.cpp74 return ConstructorCompound::Make(context, left.fOffset, bvecType, std::move(result)); in optimize_comparison_of_type()
120 return ConstructorCompound::Make(context, arg->fOffset, vecType, std::move(result)); in evaluate_intrinsic_1_of_type()
DSkSLConstructor.cpp108 return ConstructorCompound::Make(context, offset, type, std::move(args)); in convert_compound_constructor()
/external/skia/src/sksl/codegen/
DSkSLMetalCodeGenerator.h176 bool matrixConstructHelperIsNeeded(const ConstructorCompound& c);
201 void writeConstructorCompound(const ConstructorCompound& c, Precedence parentPrecedence);
203 void writeConstructorCompoundMatrix(const ConstructorCompound& c, Precedence parentPrecedence);
DSkSLSPIRVCodeGenerator.h292 SpvId writeConstructorCompound(const ConstructorCompound& c, OutputStream& out);
294 SpvId writeMatrixConstructor(const ConstructorCompound& c, OutputStream& out);
296 SpvId writeVectorConstructor(const ConstructorCompound& c, OutputStream& out);
DSkSLMetalCodeGenerator.cpp144 this->writeConstructorCompound(expr.as<ConstructorCompound>(), parentPrecedence); in writeExpression()
978 bool MetalCodeGenerator::matrixConstructHelperIsNeeded(const ConstructorCompound& c) { in matrixConstructHelperIsNeeded()
1032 void MetalCodeGenerator::writeConstructorCompound(const ConstructorCompound& c, in writeConstructorCompound()
1041 void MetalCodeGenerator::writeConstructorCompoundMatrix(const ConstructorCompound& c, in writeConstructorCompoundMatrix()
DSkSLSPIRVCodeGenerator.cpp729 return this->writeConstructorCompound(expr.as<ConstructorCompound>(), out); in writeExpression()
937 ConstructorCompound ctor(/*offset=*/-1, *fContext.fTypes.fInt2, std::move(args)); in writeSpecialIntrinsic()
1522 SpvId SPIRVCodeGenerator::writeMatrixConstructor(const ConstructorCompound& c, OutputStream& out) { in writeMatrixConstructor()
1596 SpvId SPIRVCodeGenerator::writeConstructorCompound(const ConstructorCompound& c, in writeConstructorCompound()
1602 SpvId SPIRVCodeGenerator::writeVectorConstructor(const ConstructorCompound& c, OutputStream& out) { in writeVectorConstructor()
/external/skia/src/sksl/
DSkSLInliner.cpp321 const ConstructorCompound& ctor = expression.as<ConstructorCompound>(); in inlineExpression()
322 return ConstructorCompound::Make(*fContext, offset, in inlineExpression()
DSkSLConstantFolder.cpp106 return ConstructorCompound::Make(context, left.fOffset, type, std::move(args)); in simplify_vector()
DSkSLDehydrator.cpp300 this->writeExpressionSpan(e->as<ConstructorCompound>().argumentSpan()); in write()
DSkSLRehydrator.cpp467 return ConstructorCompound::Make(fContext, /*offset=*/-1, *type, in expression()