/external/skqp/src/sksl/ir/ |
D | SkSLVarDeclarations.h | 23 struct VarDeclaration : public Statement { struct 24 VarDeclaration(const Variable* var, in VarDeclaration() function 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()
|
/external/skia/src/sksl/ir/ |
D | SkSLVarDeclarations.cpp | 15 std::unique_ptr<Statement> VarDeclaration::clone() const { in clone() 16 return std::make_unique<VarDeclaration>(&this->var(), in clone() 22 String VarDeclaration::description() const { in description() 37 std::unique_ptr<Statement> VarDeclaration::Convert(const Context& context, in Convert() 86 return VarDeclaration::Make(context, var, baseType, arraySize, std::move(value)); in Convert() 89 std::unique_ptr<Statement> VarDeclaration::Make(const Context& context, in Make() 111 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() 111 SkASSERT(this->declaration()->is<VarDeclaration>()); in GlobalVarDeclaration()
|
D | SkSLVariable.h | 21 class VarDeclaration; variable 73 void setDeclaration(VarDeclaration* declaration) { in setDeclaration() 89 VarDeclaration* fDeclaration = nullptr;
|
D | SkSLForStatement.cpp | 32 if (!child->is<SkSL::VarDeclaration>()) { in is_vardecl_block_initializer() 40 return !stmt || stmt->isEmpty() || stmt->is<SkSL::VarDeclaration>() || in is_simple_initializer()
|
/external/skia/src/sksl/codegen/ |
D | SkSLPipelineStageCodeGenerator.h | 18 class VarDeclaration; variable 30 virtual String declareUniform(const VarDeclaration*) = 0;
|
D | SkSLDSLCPPCodeGenerator.cpp | 307 const VarDeclaration& decl = in getChildFPIndex() 308 p->as<GlobalVarDeclaration>().declaration()->as<VarDeclaration>(); in getChildFPIndex() 597 void DSLCPPCodeGenerator::writeVarDeclaration(const VarDeclaration& varDecl, bool global) { in writeVarDeclaration() 813 this->writeVarDeclaration(s.as<VarDeclaration>(), /*global=*/false); in writeStatement() 871 const Variable& var = decl.declaration()->as<VarDeclaration>().var(); in writeProgramElement() 877 this->writeVarDeclaration(decl.declaration()->as<VarDeclaration>(), /*global=*/true); in writeProgramElement() 937 const Variable& var = global.declaration()->as<VarDeclaration>().var(); in writePrivateVars() 975 const VarDeclaration& decl = global.declaration()->as<VarDeclaration>(); in writePrivateVarValues() 1006 const VarDeclaration& decl = global.declaration()->as<VarDeclaration>(); in writeEmitCode() 1138 const VarDeclaration& decl = global.declaration()->as<VarDeclaration>(); in writeSetData() [all …]
|
D | SkSLCPPCodeGenerator.cpp | 344 const VarDeclaration& decl = in getChildFPIndex() 345 p->as<GlobalVarDeclaration>().declaration()->as<VarDeclaration>(); in getChildFPIndex() 593 const Variable& var = decl.declaration()->as<VarDeclaration>().var(); in writeProgramElement() 645 const Variable& var = global.declaration()->as<VarDeclaration>().var(); in writePrivateVars() 683 const VarDeclaration& decl = global.declaration()->as<VarDeclaration>(); in writePrivateVarValues() 915 const VarDeclaration& decl = global.declaration()->as<VarDeclaration>(); in writeEmitCode() 1049 const VarDeclaration& decl = global.declaration()->as<VarDeclaration>(); in writeSetData() 1253 const VarDeclaration& decl = global.declaration()->as<VarDeclaration>(); in writeGetKey() 1324 const VarDeclaration& decl = global.declaration()->as<VarDeclaration>(); in generateCode()
|
D | SkSLPipelineStageCodeGenerator.cpp | 72 void writeVarDeclaration(const VarDeclaration& var); 156 const VarDeclaration& decl = global.declaration()->as<VarDeclaration>(); in writeFunctionCall() 308 const VarDeclaration& decl = g.declaration()->as<VarDeclaration>(); in writeGlobalVarDeclaration() 569 void PipelineStageCodeGenerator::writeVarDeclaration(const VarDeclaration& var) { in writeVarDeclaration() 604 this->writeVarDeclaration(s.as<VarDeclaration>()); in writeStatement()
|
D | SkSLMetalCodeGenerator.cpp | 1555 const VarDeclaration& var = decls.declaration()->as<VarDeclaration>(); in writeFunctionDeclaration() 1805 void MetalCodeGenerator::writeVarDeclaration(const VarDeclaration& varDecl, bool global) { in writeVarDeclaration() 1833 this->writeVarDeclaration(s.as<VarDeclaration>(), false); in writeStatement() 2005 const Variable& var = decls.declaration()->as<VarDeclaration>().var(); in writeUniformStruct() 2035 const Variable& var = decls.declaration()->as<VarDeclaration>().var(); in writeInputStruct() 2068 const Variable& var = decls.declaration()->as<VarDeclaration>().var(); in writeOutputStruct() 2133 const VarDeclaration& decl = global.declaration()->as<VarDeclaration>(); in visitGlobalStruct() 2258 const VarDeclaration& decl = global.declaration()->as<VarDeclaration>(); in writeProgramElement() 2386 const VarDeclaration& var = s->as<VarDeclaration>(); in requirements()
|
D | SkSLSPIRVCodeGenerator.h | 219 void writeGlobalVar(ProgramKind kind, const VarDeclaration& v); 221 void writeVarDeclaration(const VarDeclaration& var, OutputStream& out); 496 std::vector<const VarDeclaration*> fTopLevelUniforms;
|
D | SkSLDSLCPPCodeGenerator.h | 58 void writeVarDeclaration(const VarDeclaration& var, bool global);
|
D | SkSLGLSLCodeGenerator.h | 116 void writeVarDeclaration(const VarDeclaration& var, bool global);
|
D | SkSLMetalCodeGenerator.h | 154 void writeVarDeclaration(const VarDeclaration& decl, bool global);
|
/external/skqp/src/sksl/ |
D | SkSLMetalCodeGenerator.cpp | 658 VarDeclaration& var = (VarDeclaration&) *stmt; in writeFunction() 955 VarDeclaration& var = (VarDeclaration&) *stmt; in writeVarDeclarations() 1147 const Variable& first = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeUniformStruct() 1166 VarDeclaration& var = (VarDeclaration&) *stmt; in writeUniformStruct() 1186 const Variable& first = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeInputStruct() 1193 VarDeclaration& var = (VarDeclaration&) *stmt; in writeInputStruct() 1225 const Variable& first = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeOutputStruct() 1232 VarDeclaration& var = (VarDeclaration&) *stmt; in writeOutputStruct() 1296 const Variable& first = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeGlobalStruct() 1308 VarDeclaration& var = (VarDeclaration&) *stmt; in writeGlobalStruct() [all …]
|
D | SkSLPipelineStageCodeGenerator.cpp | 89 VarDeclaration& decl = (VarDeclaration&) *raw; in writeFunctionCall() 144 const Variable& var = *((VarDeclaration&) *decl).fVar; in writeVariableReference() 220 const Variable& var = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeProgramElement()
|
D | SkSLCPPCodeGenerator.cpp | 357 const VarDeclaration& decl = (VarDeclaration&) *raw; in getChildFPIndex() 482 const Variable& var = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeProgramElement() 546 VarDeclaration& decl = (VarDeclaration&) *raw; in writePrivateVars() 586 VarDeclaration& decl = (VarDeclaration&) *raw; in writePrivateVarValues() 811 VarDeclaration& decl = (VarDeclaration&) *raw; in writeEmitCode() 927 VarDeclaration& decl = (VarDeclaration&) *raw; in writeSetData() 1108 VarDeclaration& decl = (VarDeclaration&) *raw; in generateCode()
|
D | SkSLSectionAndParameterHelper.h | 47 const VarDeclaration& decl = (VarDeclaration&) *raw; in SectionAndParameterHelper()
|
D | SkSLMetalCodeGenerator.h | 165 void writeGlobalVars(const VarDeclaration& vs); 248 std::vector<const VarDeclaration*> fInitNonConstGlobalVars;
|
/external/skia/src/sksl/ |
D | SkSLSectionAndParameterHelper.cpp | 32 const VarDeclaration& decl = in SectionAndParameterHelper() 33 p->as<GlobalVarDeclaration>().declaration()->as<VarDeclaration>(); in SectionAndParameterHelper()
|
D | SkSLAnalysis.cpp | 202 if (s.is<VarDeclaration>()) { in visitStatement() 204 const VarDeclaration& vd = s.as<VarDeclaration>(); in visitStatement() 829 if (!loopInitializer->is<VarDeclaration>()) { in invalid_for_ES2() 832 const VarDeclaration& initDecl = loopInitializer->as<VarDeclaration>(); in invalid_for_ES2() 1076 SkASSERT(f.initializer() && f.initializer()->is<VarDeclaration>()); in visitStatement() 1077 const Variable* var = &f.initializer()->as<VarDeclaration>().var(); in visitStatement() 1277 auto& v = s.template as<VarDeclaration>(); in visitStatement()
|
D | SkSLCompiler.cpp | 398 const Variable& var = global.declaration()->as<VarDeclaration>().var(); in parseModule() 625 const VarDeclaration& varDecl = global.declaration()->as<VarDeclaration>(); in removeDeadGlobalVariables() 662 if (stmt->is<VarDeclaration>()) { in removeDeadLocalVariables() 663 VarDeclaration& varDecl = stmt->as<VarDeclaration>(); in removeDeadLocalVariables()
|
D | SkSLInliner.cpp | 536 const VarDeclaration& decl = statement.as<VarDeclaration>(); in inlineStatement() 553 auto result = VarDeclaration::Make(*fContext, in inlineStatement() 598 result.fVarDecl = VarDeclaration::Make(*fContext, var.get(), type, /*arraySize=*/0, in makeInlineVariable() 903 VarDeclaration& varDeclStmt = (*stmt)->as<VarDeclaration>(); in visitStatement()
|
D | SkSLIRGenerator.cpp | 99 if (stmt.is<VarDeclaration>()) { in detectVarDeclarationWithoutScope() 101 var = &stmt.as<VarDeclaration>().var(); in detectVarDeclarationWithoutScope() 110 if (!innerStmt.is<VarDeclaration>()) { in detectVarDeclarationWithoutScope() 113 var = &innerStmt.as<VarDeclaration>().var(); in detectVarDeclarationWithoutScope() 360 std::unique_ptr<Statement> varDecl = VarDeclaration::Convert(fContext, var.get(), in convertVarDeclaration() 692 std::vector<std::unique_ptr<VarDeclaration>> variables; in applyInvocationIDWorkaround() 1095 const VarDeclaration& vd = decl->as<VarDeclaration>(); in convertInterfaceBlock() 1162 const Type* type = &stmt->as<VarDeclaration>().baseType(); in convertGlobalVarDeclarations() 1212 auto declaration = VarDeclaration::Make(fContext, var.get(), &var->type(), /*arraySize=*/0, in convertEnum() 1916 auto decl = VarDeclaration::Make(fContext, var.get(), fContext.fTypes.fInt.get(), in start()
|
/external/skia/fuzz/oss_fuzz/ |
D | FuzzSKSL2Pipeline.cpp | 32 String declareUniform(const SkSL::VarDeclaration* decl) override { in FuzzSKSL2Pipeline()
|