/aosp_15_r20/external/skia/src/sksl/ir/ |
H A D | SkSLConstructorCompound.cpp | 78 std::unique_ptr<Expression> ConstructorCompound::Make(const Context& context, in Make() 117 fields += arg->is<ConstructorCompound>() in Make() 118 ? arg->as<ConstructorCompound>().arguments().size() in Make() 129 if (!arg->is<ConstructorCompound>()) { in Make() 134 ConstructorCompound& compositeCtor = arg->as<ConstructorCompound>(); in Make() 156 return std::make_unique<ConstructorCompound>(pos, type, std::move(args)); in Make() 159 std::unique_ptr<Expression> ConstructorCompound::MakeFromConstants(const Context& context, in MakeFromConstants() 169 return ConstructorCompound::Make(context, pos, returnType, std::move(array)); in MakeFromConstants()
|
H A D | SkSLConstructorCompound.h | 33 class ConstructorCompound final : public MultiArgumentConstructor { 37 ConstructorCompound(Position pos, const Type& type, ExpressionArray args) in ConstructorCompound() function 51 return std::make_unique<ConstructorCompound>(pos, this->type(), this->arguments().clone()); in clone()
|
H A D | SkSLFunctionCall.cpp | 201 return ConstructorCompound::MakeFromConstants(context, left->fPosition, bvecType, array); in optimize_comparison() 260 return ConstructorCompound::MakeFromConstants(context, arg0->fPosition, returnType, array); in evaluate_n_way_intrinsic() 594 return ConstructorCompound::MakeFromConstants(context, I->fPosition, I->type(), kZero); in evaluate_refract() 813 return ConstructorCompound::MakeFromConstants(context, arguments[0]->fPosition, in optimize_intrinsic_call() 823 return ConstructorCompound::MakeFromConstants(context, arguments[0]->fPosition, in optimize_intrinsic_call() 832 return ConstructorCompound::MakeFromConstants(context, arguments[0]->fPosition, in optimize_intrinsic_call() 841 return ConstructorCompound::MakeFromConstants(context, arguments[0]->fPosition, in optimize_intrinsic_call() 850 return ConstructorCompound::MakeFromConstants(context, arguments[0]->fPosition, in optimize_intrinsic_call() 859 return ConstructorCompound::MakeFromConstants(context, arguments[0]->fPosition, in optimize_intrinsic_call() 880 return ConstructorCompound::MakeFromConstants(context, arguments[0]->fPosition, in optimize_intrinsic_call() [all …]
|
H A D | SkSLSwizzle.cpp | 122 const ConstructorCompound& base, in optimize_constructor_swizzle() 240 return ConstructorCompound::Make(context, in optimize_constructor_swizzle() 433 expr = ConstructorCompound::Make(context, pos, in Convert() 522 if (value->is<ConstructorCompound>()) { in Make() 523 const ConstructorCompound& ctor = value->as<ConstructorCompound>(); in Make()
|
H A D | SkSLConstructor.cpp | 107 ConstructorCompound::Make(context, pos, vectorType, std::move(args)); in convert_compound_constructor() 148 return ConstructorCompound::Make(context, pos, type, std::move(args)); in convert_compound_constructor()
|
H A D | SkSLConstructorCompoundCast.cpp | 69 return ConstructorCompound::MakeFromConstants(context, pos, destType, typecastArgs); in cast_constant_composite()
|
H A D | SkSLIRHelpers.h | 98 return ConstructorCompound::Make(fContext, Position(), *fContext.fTypes.fFloat4, in CtorXYZW()
|
H A D | SkSLIndexExpression.cpp | 163 return ConstructorCompound::MakeFromConstants(context, pos, vecType, ctorArgs); in Make()
|
H A D | SkSLPrefixExpression.cpp | 68 return ConstructorCompound::MakeFromConstants(context, pos, expr.type(), values); in apply_to_elements()
|
/aosp_15_r20/external/skia/src/sksl/ |
H A D | SkSLConstantFolder.cpp | 167 return ConstructorCompound::MakeFromConstants(context, pos, resultType, args); in simplify_matrix_multiplication() 257 return ConstructorCompound::MakeFromConstants(context, pos, type, args); in simplify_componentwise() 273 return ConstructorCompound::Make(context, scalar.fPosition, type, std::move(splatMatrix)); in splat_scalar() 420 return ConstructorCompound::MakeFromConstants(context, right.fPosition, right.type(), values); in make_reciprocal_expression()
|
H A D | SkSLInliner.cpp | 245 const ConstructorCompound& ctor = expression.as<ConstructorCompound>(); in inlineExpression() 246 return ConstructorCompound::Make( in inlineExpression()
|
/aosp_15_r20/external/skia/src/sksl/codegen/ |
H A D | SkSLMetalCodeGenerator.cpp | 216 bool matrixConstructHelperIsNeeded(const ConstructorCompound& c); 245 void writeConstructorCompound(const ConstructorCompound& c, Precedence parentPrecedence); 247 void writeConstructorCompoundVector(const ConstructorCompound& c, Precedence parentPrecedence); 249 void writeConstructorCompoundMatrix(const ConstructorCompound& c, Precedence parentPrecedence); 499 this->writeConstructorCompound(expr.as<ConstructorCompound>(), parentPrecedence); in writeExpression() 1497 bool MetalCodeGenerator::matrixConstructHelperIsNeeded(const ConstructorCompound& c) { in matrixConstructHelperIsNeeded() 1551 void MetalCodeGenerator::writeConstructorCompound(const ConstructorCompound& c, in writeConstructorCompound() 1613 void MetalCodeGenerator::writeConstructorCompoundVector(const ConstructorCompound& c, in writeConstructorCompoundVector() 1633 void MetalCodeGenerator::writeConstructorCompoundMatrix(const ConstructorCompound& c, in writeConstructorCompoundMatrix()
|
H A D | SkSLWGSLCodeGenerator.cpp | 294 std::string assembleConstructorCompound(const ConstructorCompound& c); 295 std::string assembleConstructorCompoundVector(const ConstructorCompound& c); 296 std::string assembleConstructorCompoundMatrix(const ConstructorCompound& c); 2476 return this->assembleConstructorCompound(e.as<ConstructorCompound>()); in assembleExpression() 3872 std::string WGSLCodeGenerator::assembleConstructorCompound(const ConstructorCompound& c) { in assembleConstructorCompound() 3883 std::string WGSLCodeGenerator::assembleConstructorCompoundVector(const ConstructorCompound& c) { in assembleConstructorCompoundVector() 3903 std::string WGSLCodeGenerator::assembleConstructorCompoundMatrix(const ConstructorCompound& ctor) { in assembleConstructorCompoundMatrix()
|
H A D | SkSLGLSLCodeGenerator.cpp | 168 void writeConstructorCompound(const ConstructorCompound& c, Precedence parentPrecedence); 426 this->writeConstructorCompound(expr.as<ConstructorCompound>(), parentPrecedence); in writeExpression() 977 void GLSLCodeGenerator::writeConstructorCompound(const ConstructorCompound& c, in writeConstructorCompound()
|
H A D | SkSLSPIRVCodeGenerator.cpp | 380 SpvId writeConstructorCompound(const ConstructorCompound& c, OutputStream& out); 382 SpvId writeMatrixConstructor(const ConstructorCompound& c, OutputStream& out); 384 SpvId writeVectorConstructor(const ConstructorCompound& c, OutputStream& out); 1945 return this->writeConstructorCompound(expr.as<ConstructorCompound>(), out); in writeExpression() 2136 ConstructorCompound ctor(Position(), *fContext.fTypes.fInt2, std::move(args)); in writeSpecialIntrinsic() 2868 SpvId SPIRVCodeGenerator::writeMatrixConstructor(const ConstructorCompound& c, OutputStream& out) { in writeMatrixConstructor() 2921 SpvId SPIRVCodeGenerator::writeConstructorCompound(const ConstructorCompound& c, in writeConstructorCompound() 2927 SpvId SPIRVCodeGenerator::writeVectorConstructor(const ConstructorCompound& c, OutputStream& out) { in writeVectorConstructor() 5128 args.push_back(ConstructorCompound::MakeFromConstants(fContext, Position{}, in writeEntrypointAdapter()
|
/aosp_15_r20/external/skia/src/sksl/transform/ |
H A D | SkSLRewriteIndexedSwizzle.cpp | 40 ConstructorCompound::MakeFromConstants(context, indexExpr.fPosition, vecType, vecArray); in RewriteIndexedSwizzle()
|
/aosp_15_r20/external/skia/src/sksl/analysis/ |
H A D | SkSLReturnsInputAlpha.cpp | 85 if (expr.is<ConstructorSplat>() || expr.is<ConstructorCompound>()) { in returnsInputAlpha()
|