/external/skqp/src/sksl/ |
D | SkSLCPPCodeGenerator.cpp | 358 if (decl.fVar == &reference.fVariable) { in getChildFPIndex() 360 } else if (decl.fVar->fType == *fContext.fFragmentProcessor_Type) { in getChildFPIndex() 482 const Variable& var = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeProgramElement() 547 if (is_private(*decl.fVar)) { in writePrivateVars() 548 if (decl.fVar->fType == *fContext.fFragmentProcessor_Type) { in writePrivateVars() 554 HCodeGenerator::FieldType(fContext, decl.fVar->fType, in writePrivateVars() 555 decl.fVar->fModifiers.fLayout).c_str(), in writePrivateVars() 556 String(decl.fVar->fName).c_str(), in writePrivateVars() 557 default_value(*decl.fVar).c_str()); in writePrivateVars() 558 } else if (decl.fVar->fModifiers.fLayout.fFlags & Layout::kTracked_Flag) { in writePrivateVars() [all …]
|
D | SkSLMetalCodeGenerator.cpp | 659 if (var.fVar->fType.kind() == Type::kSampler_Kind) { in writeFunction() 661 this->writeName(var.fVar->fName); in writeFunction() 663 this->write(to_string(var.fVar->fModifiers.fLayout.fBinding)); in writeFunction() 666 this->writeName(var.fVar->fName); in writeFunction() 669 this->write(to_string(var.fVar->fModifiers.fLayout.fBinding)); in writeFunction() 774 this->writeName(var->fVar->fName); in writeFunction() 776 this->writeVarInitializer(*var->fVar, *var->fValue); in writeFunction() 956 if (global && !(var.fVar->fModifiers.fFlags & Modifiers::kConst_Flag)) { in writeVarDeclarations() 962 this->writeModifiers(var.fVar->fModifiers, global); in writeVarDeclarations() 967 this->writeName(var.fVar->fName); in writeVarDeclarations() [all …]
|
D | SkSLPipelineStageCodeGenerator.cpp | 90 if (decl.fVar == &((VariableReference&) *c.fArguments[0]).fVariable) { in writeFunctionCall() 92 } else if (decl.fVar->fType == *fContext.fFragmentProcessor_Type) { in writeFunctionCall() 144 const Variable& var = *((VarDeclaration&) *decl).fVar; in writeVariableReference() 220 const Variable& var = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeProgramElement()
|
D | SkSLSectionAndParameterHelper.h | 48 if (IsParameter(*decl.fVar)) { in SectionAndParameterHelper() 49 fParameters.push_back(decl.fVar); in SectionAndParameterHelper()
|
D | SkSLGLSLCodeGenerator.cpp | 1218 this->writeModifiers(var.fVar->fModifiers, global); in writeFunctionCall() 1224 this->write(var.fVar->fName); in writeFunctionCall() 1234 this->writeVarInitializer(*var.fVar, *var.fValue); in writeFunctionCall() 1236 if (!fFoundImageDecl && var.fVar->fType == *fContext.fImage2D_Type) { in writeFunctionCall() 1242 if (!fFoundExternalSamplerDecl && var.fVar->fType == *fContext.fSamplerExternalOES_Type) { in writeFunctionCall() 1466 int builtin = ((VarDeclaration&) *decl.fVars[0]).fVar->fModifiers.fLayout.fBuiltin; in writeFunctionCall() 1473 ((VarDeclaration&) *decl.fVars[0]).fVar->fWriteCount) { in writeFunctionCall()
|
D | SkSLIRGenerator.cpp | 837 if (vd.fVar == fRTAdjust) { in convertInterfaceBlock() 839 SkASSERT(vd.fVar->fType == *fContext.fFloat4_Type); in convertInterfaceBlock() 842 fields.push_back(Type::Field(vd.fVar->fModifiers, vd.fVar->fName, in convertInterfaceBlock() 843 &vd.fVar->fType)); in convertInterfaceBlock() 848 if (vd.fVar->fModifiers.fFlags & (Modifiers::kIn_Flag | in convertInterfaceBlock() 856 if (vd.fVar->fType.kind() == Type::kArray_Kind && in convertInterfaceBlock() 857 vd.fVar->fType.columns() == -1) { in convertInterfaceBlock()
|
D | SkSLCompiler.cpp | 376 (*definitions)[vd.fVar] = &vd.fValue; in addDefinitions() 437 result[((VarDeclaration&) *decl).fVar] = nullptr; in compute_start_state() 998 if (varDecl.fVar->dead() && in simplifyStatement()
|
D | SkSLInterpreter.cpp | 164 const Variable* var = ((VarDeclaration&) *decl).fVar; in runStatement()
|
D | SkSLJIT.cpp | 1075 LLVMValueRef alloca = LLVMBuildAlloca(builder, this->getType(decl.fVar->fType), in compileVarDeclarations() 1076 String(decl.fVar->fName).c_str()); in compileVarDeclarations() 1077 fVariables[decl.fVar] = alloca; in compileVarDeclarations()
|
D | SkSLSPIRVCodeGenerator.cpp | 2689 const Variable* var = varDecl.fVar; in writeGlobalVars() 2763 const Variable* var = varDecl.fVar; in writeVarDeclarations()
|
/external/skia/src/sksl/ |
D | SkSLCPPCodeGenerator.cpp | 385 if (decl.fVar == &var) { in getChildFPIndex() 387 } else if (decl.fVar->fType.nonnullable() == *fContext.fFragmentProcessor_Type) { in getChildFPIndex() 524 const Variable& var = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeProgramElement() 579 if (is_private(*decl.fVar)) { in writePrivateVars() 580 if (decl.fVar->fType == *fContext.fFragmentProcessor_Type) { in writePrivateVars() 586 HCodeGenerator::FieldType(fContext, decl.fVar->fType, in writePrivateVars() 587 decl.fVar->fModifiers.fLayout).c_str(), in writePrivateVars() 588 String(decl.fVar->fName).c_str(), in writePrivateVars() 589 default_value(*decl.fVar).c_str()); in writePrivateVars() 590 } else if (decl.fVar->fModifiers.fLayout.fFlags & Layout::kTracked_Flag) { in writePrivateVars() [all …]
|
D | SkSLMetalCodeGenerator.cpp | 805 if (var.fVar->fType.kind() == Type::kSampler_Kind) { in writeFunction() 807 this->writeName(var.fVar->fName); in writeFunction() 809 this->write(to_string(var.fVar->fModifiers.fLayout.fBinding)); in writeFunction() 812 this->writeName(var.fVar->fName); in writeFunction() 815 this->write(to_string(var.fVar->fModifiers.fLayout.fBinding)); in writeFunction() 918 this->writeName(var->fVar->fName); in writeFunction() 920 this->writeVarInitializer(*var->fVar, *var->fValue); in writeFunction() 1100 if (global && !(var.fVar->fModifiers.fFlags & Modifiers::kConst_Flag)) { in writeVarDeclarations() 1106 this->writeModifiers(var.fVar->fModifiers, global); in writeVarDeclarations() 1111 this->writeName(var.fVar->fName); in writeVarDeclarations() [all …]
|
D | SkSLPipelineStageCodeGenerator.cpp | 91 if (decl.fVar == &((VariableReference&) *c.fArguments[0]).fVariable) { in writeFunctionCall() 93 } else if (decl.fVar->fType == *fContext.fFragmentProcessor_Type) { in writeFunctionCall() 145 const Variable& var = *((VarDeclaration&) *decl).fVar; in writeVariableReference() 221 const Variable& var = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeProgramElement()
|
D | SkSLSectionAndParameterHelper.h | 48 if (IsParameter(*decl.fVar)) { in SectionAndParameterHelper() 49 fParameters.push_back(decl.fVar); in SectionAndParameterHelper()
|
D | SkSLGLSLCodeGenerator.cpp | 1245 this->writeModifiers(var.fVar->fModifiers, global); in writeFunctionCall() 1251 this->write(var.fVar->fName); in writeFunctionCall() 1261 this->writeVarInitializer(*var.fVar, *var.fValue); in writeFunctionCall() 1263 if (!fFoundImageDecl && var.fVar->fType == *fContext.fImage2D_Type) { in writeFunctionCall() 1269 if (!fFoundExternalSamplerDecl && var.fVar->fType == *fContext.fSamplerExternalOES_Type) { in writeFunctionCall() 1493 int builtin = ((VarDeclaration&) *decl.fVars[0]).fVar->fModifiers.fLayout.fBuiltin; in writeFunctionCall() 1500 ((VarDeclaration&) *decl.fVars[0]).fVar->fWriteCount) { in writeFunctionCall()
|
D | SkSLIRGenerator.cpp | 859 if (vd.fVar == fRTAdjust) { in convertInterfaceBlock() 861 SkASSERT(vd.fVar->fType == *fContext.fFloat4_Type); in convertInterfaceBlock() 864 fields.push_back(Type::Field(vd.fVar->fModifiers, vd.fVar->fName, in convertInterfaceBlock() 865 &vd.fVar->fType)); in convertInterfaceBlock() 870 if (vd.fVar->fModifiers.fFlags & (Modifiers::kIn_Flag | in convertInterfaceBlock() 878 if (vd.fVar->fType.kind() == Type::kArray_Kind && in convertInterfaceBlock() 879 vd.fVar->fType.columns() == -1) { in convertInterfaceBlock()
|
D | SkSLCompiler.cpp | 376 (*definitions)[vd.fVar] = &vd.fValue; in addDefinitions() 437 result[((VarDeclaration&) *decl).fVar] = nullptr; in compute_start_state() 998 if (varDecl.fVar->dead() && in simplifyStatement() 1309 const Variable& var = *((VarDeclaration&) **varIter).fVar; in optimize()
|
D | SkSLInterpreter.cpp | 164 const Variable* var = ((VarDeclaration&) *decl).fVar; in runStatement()
|
D | SkSLJIT.cpp | 1075 LLVMValueRef alloca = LLVMBuildAlloca(builder, this->getType(decl.fVar->fType), in compileVarDeclarations() 1076 String(decl.fVar->fName).c_str()); in compileVarDeclarations() 1077 fVariables[decl.fVar] = alloca; in compileVarDeclarations()
|
D | SkSLSPIRVCodeGenerator.cpp | 2680 const Variable* var = varDecl.fVar; in writeGlobalVars() 2754 const Variable* var = varDecl.fVar; in writeVarDeclarations()
|
/external/skia/src/sksl/ir/ |
D | SkSLVarDeclarations.h | 28 , fVar(var) in VarDeclaration() 41 return std::unique_ptr<Statement>(new VarDeclaration(fVar, std::move(sizesClone), in clone() 46 String result = fVar->fName; in description() 60 const Variable* fVar; member 94 String result = ((VarDeclaration&) *fVars[0]).fVar->fModifiers.description() + in description()
|
/external/skqp/src/sksl/ir/ |
D | SkSLVarDeclarations.h | 28 , fVar(var) in VarDeclaration() 41 return std::unique_ptr<Statement>(new VarDeclaration(fVar, std::move(sizesClone), in clone() 46 String result = fVar->fName; in description() 60 const Variable* fVar; member 94 String result = ((VarDeclaration&) *fVars[0]).fVar->fModifiers.description() + in description()
|
/external/skqp/src/gpu/effects/ |
D | GrSkSLFP.cpp | 33 const SkSL::Variable& var = *((SkSL::VarDeclaration&) *varStatement).fVar; in GrSkSLFPFactory()
|
/external/skia/src/gpu/effects/ |
D | GrSkSLFP.cpp | 35 const SkSL::Variable& var = *((SkSL::VarDeclaration&) *varStatement).fVar; in GrSkSLFPFactory()
|