/third_party/flutter/skia/src/sksl/ir/ |
D | SkSLVarDeclarations.h | 23 struct VarDeclaration : public Statement { struct 24 VarDeclaration(const Variable* var, in VarDeclaration() argument 41 return std::unique_ptr<Statement>(new VarDeclaration(fVar, std::move(sizesClone), in clone() argument 72 std::vector<std::unique_ptr<VarDeclaration>> vars) in VarDeclarations() argument 81 std::vector<std::unique_ptr<VarDeclaration>> cloned; in clone() 83 cloned.push_back(std::unique_ptr<VarDeclaration>( in clone() 84 (VarDeclaration*) v->clone().release())); in clone() 94 String result = ((VarDeclaration&) *fVars[0]).fVar->fModifiers.description() + in description()
|
/third_party/skia/src/sksl/ir/ |
D | SkSLVarDeclarations.cpp | 19 std::unique_ptr<Statement> VarDeclaration::clone() const { in clone() 20 return std::make_unique<VarDeclaration>(&this->var(), in clone() 26 String VarDeclaration::description() const { in description() 39 void VarDeclaration::ErrorCheck(const Context& context, int line, const Modifiers& modifiers, in ErrorCheck() 96 bool VarDeclaration::ErrorCheckAndCoerce(const Context& context, const Variable& var, in ErrorCheckAndCoerce() 157 std::unique_ptr<Statement> VarDeclaration::Convert(const Context& context, in Convert() 168 std::unique_ptr<Statement> varDecl = VarDeclaration::Make(context, var.get(), baseType, in Convert() 204 std::unique_ptr<Statement> VarDeclaration::Make(const Context& context, Variable* var, in Make() 228 auto result = std::make_unique<VarDeclaration>(var, baseType, arraySize, std::move(value)); in Make()
|
D | SkSLVarDeclarations.h | 27 class VarDeclaration final : public Statement { 31 VarDeclaration(const Variable* var, in VarDeclaration() function 41 ~VarDeclaration() override { in ~VarDeclaration() 119 SkASSERT(this->declaration()->is<VarDeclaration>()); in GlobalVarDeclaration()
|
D | SkSLVariable.h | 20 class VarDeclaration; variable 94 void setDeclaration(VarDeclaration* declaration) { in setDeclaration() 110 VarDeclaration* fDeclaration = nullptr;
|
D | SkSLForStatement.cpp | 33 if (!child->is<SkSL::VarDeclaration>()) { in is_vardecl_block_initializer() 41 return !stmt || stmt->isEmpty() || stmt->is<SkSL::VarDeclaration>() || in is_simple_initializer()
|
D | SkSLFunctionDefinition.cpp | 153 fSlotsUsed, stmt.as<VarDeclaration>().var().type().slotCount()); in Convert() 158 stmt.as<VarDeclaration>().var().name() + in Convert()
|
D | SkSLVariable.cpp | 96 result.fVarDecl = VarDeclaration::Make(context, var.get(), type, arraySize, in MakeScratchVariable()
|
/third_party/skia/src/sksl/transform/ |
D | SkSLEliminateDeadLocalVariables.cpp | 34 if (stmt->is<VarDeclaration>()) { in EliminateDeadLocalVariables() 35 VarDeclaration& varDecl = stmt->as<VarDeclaration>(); in EliminateDeadLocalVariables()
|
D | SkSLEliminateDeadGlobalVariables.cpp | 27 const VarDeclaration& varDecl = global.declaration()->as<VarDeclaration>(); in EliminateDeadGlobalVariables()
|
/third_party/skia/src/sksl/codegen/ |
D | SkSLPipelineStageCodeGenerator.h | 18 class VarDeclaration; variable 31 virtual String declareUniform(const VarDeclaration*) = 0;
|
D | SkSLPipelineStageCodeGenerator.cpp | 80 void writeVarDeclaration(const VarDeclaration& var); 155 const VarDeclaration& decl = global.declaration()->as<VarDeclaration>(); in writeChildCall() 375 const VarDeclaration& decl = g.declaration()->as<VarDeclaration>(); in writeGlobalVarDeclaration() 639 void PipelineStageCodeGenerator::writeVarDeclaration(const VarDeclaration& var) { in writeVarDeclaration() 680 this->writeVarDeclaration(s.as<VarDeclaration>()); in writeStatement()
|
D | SkSLGLSLCodeGenerator.h | 43 class VarDeclaration; variable 100 void writeVarDeclaration(const VarDeclaration& var, bool global);
|
D | SkSLSPIRVCodeGenerator.h | 52 class VarDeclaration; variable 220 void writeGlobalVar(ProgramKind kind, const VarDeclaration& v); 222 void writeVarDeclaration(const VarDeclaration& var, OutputStream& out); 507 std::vector<const VarDeclaration*> fTopLevelUniforms;
|
D | SkSLMetalCodeGenerator.h | 46 class VarDeclaration; variable 142 void writeVarDeclaration(const VarDeclaration& decl);
|
D | SkSLMetalCodeGenerator.cpp | 1828 const VarDeclaration& var = decls.declaration()->as<VarDeclaration>(); in writeFunctionDeclaration() 2077 void MetalCodeGenerator::writeVarDeclaration(const VarDeclaration& varDecl) { in writeVarDeclaration() 2102 this->writeVarDeclaration(s.as<VarDeclaration>()); in writeStatement() 2273 const Variable& var = decls.declaration()->as<VarDeclaration>().var(); in writeUniformStruct() 2304 const Variable& var = decls.declaration()->as<VarDeclaration>().var(); in writeInputStruct() 2337 const Variable& var = decls.declaration()->as<VarDeclaration>().var(); in writeOutputStruct() 2402 const VarDeclaration& decl = global.declaration()->as<VarDeclaration>(); in visitGlobalStruct() 2645 const VarDeclaration& var = s->as<VarDeclaration>(); in requirements()
|
/third_party/flutter/skia/src/sksl/ |
D | SkSLMetalCodeGenerator.cpp | 811 VarDeclaration& var = (VarDeclaration&) *stmt; in writeFunction() 1113 VarDeclaration& var = (VarDeclaration&) *stmt; in writeVarDeclarations() 1297 const Variable& first = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeUniformStruct() 1316 VarDeclaration& var = (VarDeclaration&) *stmt; in writeUniformStruct() 1336 const Variable& first = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeInputStruct() 1343 VarDeclaration& var = (VarDeclaration&) *stmt; in writeInputStruct() 1375 const Variable& first = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeOutputStruct() 1382 VarDeclaration& var = (VarDeclaration&) *stmt; in writeOutputStruct() 1444 const Variable& first = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeGlobalStruct() 1456 VarDeclaration& var = (VarDeclaration&) *stmt; in writeGlobalStruct() [all …]
|
D | SkSLPipelineStageCodeGenerator.cpp | 93 VarDeclaration& decl = (VarDeclaration&) *raw; in writeFunctionCall() 150 const Variable& var = *((VarDeclaration&) *decl).fVar; in writeVariableReference() 225 const Variable& var = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeProgramElement()
|
D | SkSLCPPCodeGenerator.cpp | 391 const VarDeclaration& decl = (VarDeclaration&) *raw; in getChildFPIndex() 532 const Variable& var = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeProgramElement() 586 VarDeclaration& decl = (VarDeclaration&) *raw; in writePrivateVars() 626 VarDeclaration& decl = (VarDeclaration&) *raw; in writePrivateVarValues() 852 VarDeclaration& decl = (VarDeclaration&) *raw; in writeEmitCode() 968 VarDeclaration& decl = (VarDeclaration&) *raw; in writeSetData() 1110 const VarDeclaration& decl = (VarDeclaration&) *raw; in writeGetKey() 1196 VarDeclaration& decl = (VarDeclaration&) *raw; in generateCode()
|
D | SkSLSectionAndParameterHelper.h | 47 const VarDeclaration& decl = (VarDeclaration&) *raw; in SectionAndParameterHelper()
|
D | SkSLMetalCodeGenerator.h | 168 void writeGlobalVars(const VarDeclaration& vs); 253 std::vector<const VarDeclaration*> fInitNonConstGlobalVars;
|
/third_party/skia/src/sksl/analysis/ |
D | SkSLProgramUsage.cpp | 42 if (s.is<VarDeclaration>()) { in visitStatement() 44 const VarDeclaration& vd = s.as<VarDeclaration>(); in visitStatement()
|
D | SkSLGetLoopUnrollInfo.cpp | 59 if (!loopInitializer->is<VarDeclaration>()) { in get_es2_loop_unroll_info() 62 const VarDeclaration& initDecl = loopInitializer->as<VarDeclaration>(); in get_es2_loop_unroll_info()
|
/third_party/skia/src/sksl/ |
D | SkSLAnalysis.cpp | 343 if (stmt.is<VarDeclaration>()) { in DetectVarDeclarationWithoutScope() 345 var = &stmt.as<VarDeclaration>().var(); in DetectVarDeclarationWithoutScope() 354 if (!innerStmt.is<VarDeclaration>()) { in DetectVarDeclarationWithoutScope() 357 var = &innerStmt.as<VarDeclaration>().var(); in DetectVarDeclarationWithoutScope() 488 SkASSERT(f.initializer() && f.initializer()->is<VarDeclaration>()); in visitStatement() 489 const Variable* var = &f.initializer()->as<VarDeclaration>().var(); in visitStatement() 530 const VarDeclaration& decl = in VerifyStaticTestsAndExpressions() 531 pe.as<GlobalVarDeclaration>().declaration()->as<VarDeclaration>(); in VerifyStaticTestsAndExpressions() 766 auto& v = s.template as<VarDeclaration>(); in visitStatement()
|
/third_party/skia/src/sksl/dsl/priv/ |
D | DSLWriter.cpp | 57 var.fDeclaration = VarDeclaration::Convert(ThreadContext::Context(), std::move(skslvar), in Var() 103 } else if (existing.fStatement->is<VarDeclaration>()) { in AddVarDeclaration()
|
/third_party/skia/fuzz/oss_fuzz/ |
D | FuzzSKSL2Pipeline.cpp | 32 String declareUniform(const SkSL::VarDeclaration* decl) override { in FuzzSKSL2Pipeline()
|