Lines Matching refs:DSLWriter
27 return type == *DSLWriter::Context().fTypes.fHalf4 || in init()
28 type == *DSLWriter::Context().fTypes.fFloat4; in init()
37 DSLWriter::ReportError("error: using an already-declared variable as a function " in init()
41 DSLWriter::ReportError("error: variables used as function parameters cannot have " in init()
47 SkSL::ProgramKind kind = DSLWriter::Context().fConfig->fKind; in init()
55 if (type == *DSLWriter::Context().fTypes.fFloat2) { in init()
62 std::unique_ptr<SkSL::Variable> paramVar = DSLWriter::ParameterVar(*param); in init()
73 fDecl = SkSL::FunctionDeclaration::Convert(DSLWriter::Context(), in init()
74 *DSLWriter::SymbolTable(), in init()
76 DSLWriter::Modifiers(SkSL::Modifiers()), in init()
77 isMain ? name : DSLWriter::Name(name), in init()
88 DSLWriter::IRGenerator().finalizeFunction(*fDecl, body.get()); in define()
91 if (DSLWriter::Compiler().errorCount()) { in define()
92 DSLWriter::ReportError(DSLWriter::Compiler().errorText(/*showCount=*/false).c_str()); in define()
93 DSLWriter::Compiler().setErrorCount(0); in define()
94 SkASSERT(!DSLWriter::Compiler().errorCount()); in define()
97 DSLWriter::ProgramElements().push_back(std::move(function)); in define()
106 return DSLWriter::Call(*fDecl, std::move(released)); in call()