/third_party/skia/include/sksl/ |
D | DSLCore.h | 74 DSLExpression sk_Position(); 121 return DSLCase(DSLExpression(), std::move(statements)...); in Default() 132 DSLStatement Do(DSLStatement stmt, DSLExpression test, PositionInfo pos = PositionInfo::Capture()); 137 DSLStatement For(DSLStatement initializer, DSLExpression test, DSLExpression next, 143 DSLStatement If(DSLExpression test, DSLStatement ifTrue, DSLStatement ifFalse = DSLStatement(), 153 DSLStatement Return(DSLExpression value = DSLExpression(), 159 DSLExpression Select(DSLExpression test, DSLExpression ifTrue, DSLExpression ifFalse, 162 DSLStatement StaticIf(DSLExpression test, DSLStatement ifTrue, 167 DSLPossibleStatement PossibleStaticSwitch(DSLExpression value, SkTArray<DSLCase> cases); 169 DSLStatement StaticSwitch(DSLExpression value, SkTArray<DSLCase> cases, [all …]
|
D | DSLExpression.h | 41 class DSLExpression { 43 DSLExpression(const DSLExpression&) = delete; 45 DSLExpression(DSLExpression&&); 47 DSLExpression(); 52 DSLExpression(float value, PositionInfo pos = PositionInfo::Capture()); 57 DSLExpression(double value, PositionInfo pos = PositionInfo::Capture()) 58 : DSLExpression((float) value) {} 63 DSLExpression(int value, PositionInfo pos = PositionInfo::Capture()); 68 DSLExpression(int64_t value, PositionInfo pos = PositionInfo::Capture()); 73 DSLExpression(unsigned int value, PositionInfo pos = PositionInfo::Capture()); [all …]
|
D | DSLVar.h | 38 DSLVarBase(DSLType type, skstd::string_view name, DSLExpression initialValue, PositionInfo pos); 40 DSLVarBase(DSLType type, DSLExpression initialValue, PositionInfo pos); 43 DSLExpression initialValue, PositionInfo pos); 45 DSLVarBase(const DSLModifiers& modifiers, DSLType type, DSLExpression initialValue, 62 DSLExpression x() { in x() 63 return DSLExpression(*this, PositionInfo()).x(); in x() 66 DSLExpression y() { in y() 67 return DSLExpression(*this, PositionInfo()).y(); in y() 70 DSLExpression z() { in z() 71 return DSLExpression(*this, PositionInfo()).z(); in z() [all …]
|
D | DSLCase.h | 27 DSLCase(DSLExpression value, Statements... statements) in DSLCase() 39 DSLCase(DSLExpression value, SkTArray<DSLStatement> statements, 42 DSLCase(DSLExpression value, SkSL::StatementArray statements, 54 DSLExpression fValue; 61 friend DSLPossibleStatement Switch(DSLExpression value, Cases... cases);
|
D | DSLFunction.h | 75 DSLExpression operator()(Args&&... args) { in operator() 85 DSLExpression call(SkTArray<DSLWrapper<DSLExpression>> args, 88 DSLExpression call(ExpressionArray args, PositionInfo pos = PositionInfo::Capture()); 95 args.push_back(DSLExpression(var).release()); in collectArgs() 100 void collectArgs(ExpressionArray& args, DSLExpression expr, RemainingArgs&&... remaining) { in collectArgs()
|
D | DSLType.h | 24 class DSLExpression; variable 156 DSLExpression argArray[] = {var, args...}; in Construct() 161 static DSLPossibleExpression Construct(DSLType type, DSLExpression expr, Args&&... args) { in Construct() 162 DSLExpression argArray[] = {std::move(expr), std::move(args)...}; in Construct() 166 static DSLPossibleExpression Construct(DSLType type, SkSpan<DSLExpression> argArray); 185 DSLExpression T(Args&&... args) { \
|
D | DSLStatement.h | 28 class DSLExpression; variable 37 DSLStatement(DSLExpression expr); 71 friend class DSLExpression; variable
|
D | BUILD.bazel | 10 "DSLExpression.h",
|
D | DSL.h | 19 using Expression = DSLExpression;
|
/third_party/skia/src/sksl/dsl/ |
D | DSLExpression.cpp | 34 DSLExpression::DSLExpression() {} in DSLExpression() function in SkSL::dsl::DSLExpression 36 DSLExpression::DSLExpression(DSLExpression&& other) in DSLExpression() function in SkSL::dsl::DSLExpression 39 DSLExpression::DSLExpression(std::unique_ptr<SkSL::Expression> expression) in DSLExpression() function in SkSL::dsl::DSLExpression 44 DSLExpression::DSLExpression(float value, PositionInfo pos) in DSLExpression() function in SkSL::dsl::DSLExpression 57 DSLExpression::DSLExpression(int value, PositionInfo pos) in DSLExpression() function in SkSL::dsl::DSLExpression 62 DSLExpression::DSLExpression(int64_t value, PositionInfo pos) in DSLExpression() function in SkSL::dsl::DSLExpression 67 DSLExpression::DSLExpression(unsigned int value, PositionInfo pos) in DSLExpression() function in SkSL::dsl::DSLExpression 72 DSLExpression::DSLExpression(bool value, PositionInfo pos) in DSLExpression() function in SkSL::dsl::DSLExpression 77 DSLExpression::DSLExpression(DSLVarBase& var, PositionInfo pos) { in DSLExpression() function in SkSL::dsl::DSLExpression 82 DSLExpression::DSLExpression(DSLVarBase&& var, PositionInfo pos) in DSLExpression() function in SkSL::dsl::DSLExpression [all …]
|
D | DSLCore.cpp | 118 static DSLExpression sk_Position() { in sk_Position() 119 return DSLExpression(Symbol("sk_Position")); in sk_Position() 198 static DSLPossibleStatement Do(DSLStatement stmt, DSLExpression test) { in Do() 202 static DSLPossibleStatement For(DSLStatement initializer, DSLExpression test, in For() 203 DSLExpression next, DSLStatement stmt, PositionInfo pos) { in For() 210 static DSLPossibleStatement If(DSLExpression test, DSLStatement ifTrue, DSLStatement ifFalse, in If() 257 DSLGlobalVar var(modifiers, varType, !varName.empty() ? varName : typeName, DSLExpression(), in InterfaceBlock() 285 static DSLStatement Return(DSLExpression value, PositionInfo pos) { in Return() 293 static DSLExpression Swizzle(DSLExpression base, SkSL::SwizzleComponent::Type a, in Swizzle() 295 return DSLExpression(Swizzle::Convert(ThreadContext::Context(), base.release(), in Swizzle() [all …]
|
D | DSLVar.cpp | 26 DSLVarBase::DSLVarBase(DSLType type, skstd::string_view name, DSLExpression initialValue, in DSLVarBase() 30 DSLVarBase::DSLVarBase(DSLType type, DSLExpression initialValue, PositionInfo pos) in DSLVarBase() 33 DSLVarBase::DSLVarBase(const DSLModifiers& modifiers, DSLType type, DSLExpression initialValue, in DSLVarBase() 38 DSLExpression initialValue, PositionInfo pos) in DSLVarBase() 106 : INHERITED(kVoid_Type, name, DSLExpression(), PositionInfo()) { in DSLGlobalVar() 157 DSLPossibleExpression DSLVarBase::operator[](DSLExpression&& index) { in operator []() 158 return DSLExpression(*this, PositionInfo())[std::move(index)]; in operator []() 161 DSLPossibleExpression DSLVarBase::assign(DSLExpression expr) { in assign() 163 DSLExpression(*this, PositionInfo()).release(), SkSL::Token::Kind::TK_EQ, in assign() 167 DSLPossibleExpression DSLVar::operator=(DSLExpression expr) { in operator =() [all …]
|
D | DSLFunction.cpp | 110 DSLExpression DSLFunction::call(SkTArray<DSLWrapper<DSLExpression>> args, PositionInfo pos) { in call() 113 for (DSLWrapper<DSLExpression>& arg : args) { in call() 119 DSLExpression DSLFunction::call(ExpressionArray args, PositionInfo pos) { in call() 122 return DSLExpression(std::move(result), pos); in call()
|
D | DSLCase.cpp | 16 DSLCase::DSLCase(DSLExpression value, SkSL::StatementArray statements, PositionInfo pos) in DSLCase() 21 DSLCase::DSLCase(DSLExpression value, SkTArray<DSLStatement> statements, PositionInfo pos) in DSLCase()
|
D | DSLStatement.cpp | 31 DSLStatement::DSLStatement(DSLExpression expr) { in DSLStatement() 49 : DSLStatement(DSLExpression(std::move(expr), pos)) {} in DSLStatement()
|
D | DSLType.cpp | 238 DSLPossibleExpression DSLType::Construct(DSLType type, SkSpan<DSLExpression> argArray) { in Construct() 242 for (DSLExpression& arg : argArray) { in Construct() 254 DSLExpression(count, pos).release()); in Array()
|
/third_party/skia/src/sksl/ |
D | SkSLDSLParser.h | 169 bool parseInitializer(int line, dsl::DSLExpression* initializer); 217 dsl::DSLExpression expression(); 219 dsl::DSLExpression assignmentExpression(); 221 dsl::DSLExpression ternaryExpression(); 223 dsl::DSLExpression logicalOrExpression(); 225 dsl::DSLExpression logicalXorExpression(); 227 dsl::DSLExpression logicalAndExpression(); 229 dsl::DSLExpression bitwiseOrExpression(); 231 dsl::DSLExpression bitwiseXorExpression(); 233 dsl::DSLExpression bitwiseAndExpression(); [all …]
|
D | SkSLDSLParser.cpp | 397 DSLExpression sizeExpr = this->expression(); in arraySize() 432 bool DSLParser::parseInitializer(int line, DSLExpression* initializer) { in parseInitializer() 434 DSLExpression value = this->assignmentExpression(); in parseInitializer() 450 DSLExpression initializer; in globalVarDeclarationEnd() 470 DSLExpression anotherInitializer; in globalVarDeclarationEnd() 489 DSLExpression initializer; in localVarDeclarationEnd() 509 DSLExpression anotherInitializer; in localVarDeclarationEnd() 917 DSLExpression test = this->expression(); in ifStatement() 960 DSLExpression test = this->expression(); in doStatement() 982 DSLExpression test = this->expression(); in whileStatement() [all …]
|
/third_party/skia/tests/ |
D | SkSLDSLTest.cpp | 135 static SkSL::String stringize(DSLExpression& expr) { return expr.release()->description(); } in stringize() 572 DSLExpression e = x + 1; in DEF_GPUTEST_FOR_MOCK_CONTEXT() 651 DSLExpression(Float3x3(Float2(1))).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 657 DSLExpression(Half2x2(1, 2, 3, 4, 5)).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 662 DSLExpression(f43 * Float3(1)).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 667 DSLExpression(f43 = f33).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 672 DSLExpression(h22 = f22).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 677 DSLExpression(Inverse(f43)).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 700 DSLExpression((Bool2(true) + a)).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() 705 DSLExpression((a += Bool2(true))).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() [all …]
|
D | SkSLDSLErrorLineNumbers.cpp | 93 For(DSLStatement(), 5, DSLExpression(), Block()).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
|
/third_party/skia/src/sksl/dsl/priv/ |
D | DSLFPs.h | 28 DSLExpression SampleChild(int index, DSLExpression coords = DSLExpression());
|
D | DSLFPs.cpp | 33 DSLExpression SampleChild(int index, DSLExpression sampleExpr) { in SampleChild() 58 return DSLExpression(std::make_unique<SkSL::CodeStringExpression>( in SampleChild()
|
/third_party/skia/src/sksl/ir/ |
D | SkSLFunctionDefinition.cpp | 51 auto Pos = [&]() -> DSLExpression { in append_rtadjust_fixup_to_vertex_main() 52 return DSLExpression(FieldAccess::Make(context, Ref(skPerVertex), /*fieldIndex=*/0, in append_rtadjust_fixup_to_vertex_main() 55 auto Adjust = [&]() -> DSLExpression { in append_rtadjust_fixup_to_vertex_main() 56 return DSLExpression(rtAdjust.fInterfaceBlock in append_rtadjust_fixup_to_vertex_main()
|
D | SkSLFunctionCall.cpp | 638 auto Vec = [&] { return DSLExpression{arguments[0]->clone()}; }; in optimize_intrinsic_call() 642 auto N = [&] { return DSLExpression{arguments[0]->clone()}; }; in optimize_intrinsic_call() 643 auto I = [&] { return DSLExpression{arguments[1]->clone()}; }; in optimize_intrinsic_call() 644 auto NRef = [&] { return DSLExpression{arguments[2]->clone()}; }; in optimize_intrinsic_call() 648 auto I = [&] { return DSLExpression{arguments[0]->clone()}; }; in optimize_intrinsic_call() 649 auto N = [&] { return DSLExpression{arguments[1]->clone()}; }; in optimize_intrinsic_call() 653 auto I = [&] { return DSLExpression{arguments[0]->clone()}; }; in optimize_intrinsic_call() 654 auto N = [&] { return DSLExpression{arguments[1]->clone()}; }; in optimize_intrinsic_call() 655 auto Eta = [&] { return DSLExpression{arguments[2]->clone()}; }; in optimize_intrinsic_call()
|
/third_party/skia/gn/ |
D | sksl.gni | 25 "$_include/sksl/DSLExpression.h", 92 "$_src/sksl/dsl/DSLExpression.cpp",
|