Home
last modified time | relevance | path

Searched refs:fVar (Results 1 – 20 of 20) sorted by relevance

/external/skia/src/sksl/ir/
DSkSLVarDeclarations.h36 , fVar(var) in VarDeclaration()
43 if (fVar) { in ~VarDeclaration()
44 fVar->detachDeadVarDeclaration(); in ~VarDeclaration()
65 SkASSERT(fVar); in var()
66 return *fVar; in var()
70 fVar = var; in setVar()
90 const Variable* fVar;
/external/skqp/src/sksl/
DSkSLCPPCodeGenerator.cpp358 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 …]
DSkSLMetalCodeGenerator.cpp659 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 …]
DSkSLPipelineStageCodeGenerator.cpp90 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()
DSkSLSectionAndParameterHelper.h48 if (IsParameter(*decl.fVar)) { in SectionAndParameterHelper()
49 fParameters.push_back(decl.fVar); in SectionAndParameterHelper()
DSkSLGLSLCodeGenerator.cpp1218 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()
DSkSLIRGenerator.cpp837 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()
DSkSLCompiler.cpp376 (*definitions)[vd.fVar] = &vd.fValue; in addDefinitions()
437 result[((VarDeclaration&) *decl).fVar] = nullptr; in compute_start_state()
998 if (varDecl.fVar->dead() && in simplifyStatement()
DSkSLInterpreter.cpp164 const Variable* var = ((VarDeclaration&) *decl).fVar; in runStatement()
DSkSLJIT.cpp1075 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()
DSkSLSPIRVCodeGenerator.cpp2689 const Variable* var = varDecl.fVar; in writeGlobalVars()
2763 const Variable* var = varDecl.fVar; in writeVarDeclarations()
/external/skqp/src/sksl/ir/
DSkSLVarDeclarations.h28 , 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/skia/include/effects/
DSkRuntimeEffect.h263 if (!fVar) {
265 } else if (sizeof(val) != fVar->sizeInBytes()) {
268 memcpy(SkTAddOffset<void>(fOwner->writableUniformData(), fVar->offset),
275 if (!fVar) {
277 } else if (fVar->sizeInBytes() != 9 * sizeof(float)) {
280 float* data = SkTAddOffset<float>(fOwner->writableUniformData(), fVar->offset);
291 if (!fVar) { in set()
294 } else if (sizeof(T) * count != fVar->sizeInBytes()) { in set()
298 memcpy(SkTAddOffset<void>(fOwner->writableUniformData(), fVar->offset), in set()
305 const SkRuntimeEffect::Uniform* fVar; // nullptr if the variable was not found member
/external/skia/src/sksl/dsl/
DDSLVar.cpp46 fVar = DSLWriter::SymbolTable()->takeOwnershipOfIRNode(std::make_unique<SkSL::Variable>( in DSLVar()
58 fVar = &result->as<SkSL::Variable>(); in DSLVar()
123 std::swap(fVar, other.fVar); in swap()
DDSLFunction.cpp71 params[i]->fVar = paramVars[i].get(); in init()
/external/skia/src/sksl/dsl/priv/
DDSLWriter.cpp225 if (!var.fVar) { in Var()
238 var.fVar = skslvar.get(); in Var()
245 return *var.fVar; in Var()
/external/skia/include/sksl/
DDSLVar.h141 const SkSL::Variable* fVar = nullptr; variable
/external/skia/tests/
DSkSLTest.cpp33 if (uniform.fVar) { in set_uniform()
/external/skia/src/sksl/
DSkSLAnalysis.cpp253 : fVar(var) {} in VariableWriteVisitor()
262 if (ref.variable() == fVar && in visitExpression()
273 const Variable* fVar; member in SkSL::__anondd4e12040111::VariableWriteVisitor
/external/skqp/src/gpu/effects/
DGrSkSLFP.cpp33 const SkSL::Variable& var = *((SkSL::VarDeclaration&) *varStatement).fVar; in GrSkSLFPFactory()