/third_party/skia/src/sksl/ir/ |
D | SkSLVariableReference.h | 34 class VariableReference final : public Expression { 40 VariableReference(int line, const Variable* variable, RefKind refKind); 48 return std::make_unique<VariableReference>(line, variable, refKind); 51 VariableReference(const VariableReference&) = delete; 52 VariableReference& operator=(const VariableReference&) = delete; 70 return std::make_unique<VariableReference>(fLine, this->variable(), this->refKind()); in clone()
|
D | SkSLVariableReference.cpp | 17 VariableReference::VariableReference(int line, const Variable* variable, RefKind refKind) in VariableReference() function in SkSL::VariableReference 24 bool VariableReference::hasProperty(Property property) const { in hasProperty() 34 bool VariableReference::isConstantOrUniform() const { in isConstantOrUniform() 38 String VariableReference::description() const { in description() 42 void VariableReference::setRefKind(RefKind refKind) { in setRefKind() 46 void VariableReference::setVariable(const Variable* variable) { in setVariable()
|
D | SkSLBinaryExpression.cpp | 89 ? VariableReference::RefKind::kReadWrite in Convert() 90 : VariableReference::RefKind::kWrite, in Convert() 227 const VariableReference& ref = expr.as<VariableReference>(); in CheckRef()
|
D | SkSLVariable.h | 119 friend class VariableReference; variable
|
D | SkSLFunctionDefinition.cpp | 46 return VariableReference::Make(/*line=*/-1, var); in append_rtadjust_fixup_to_vertex_main()
|
D | SkSLFunctionCall.cpp | 983 ? VariableReference::RefKind::kReadWrite in Convert() 984 : VariableReference::RefKind::kPointer; in Convert() 994 const Variable& child = *arguments.back()->as<VariableReference>().variable(); in Convert()
|
D | SkSLPrefixExpression.cpp | 177 if (!Analysis::UpdateVariableRefKind(base.get(), VariableReference::RefKind::kReadWrite, in Convert()
|
/third_party/skia/src/sksl/ |
D | SkSLAnalysis.cpp | 104 if (!fWritesToSampleCoords && maybeCoords->is<VariableReference>() && in visitExpression() 105 maybeCoords->as<VariableReference>().variable()->modifiers().fLayout.fBuiltin == in visitExpression() 130 if (e.is<VariableReference>()) { in visitExpression() 131 const VariableReference& var = e.as<VariableReference>(); in visitExpression() 205 if (e.is<VariableReference>()) { in visitExpression() 206 const VariableReference& ref = e.as<VariableReference>(); in visitExpression() 208 (ref.refKind() == VariableReference::RefKind::kWrite || in visitExpression() 209 ref.refKind() == VariableReference::RefKind::kReadWrite || in visitExpression() 210 ref.refKind() == VariableReference::RefKind::kPointer)) { in visitExpression() 249 VariableReference& varRef = expr.as<VariableReference>(); in visitExpression() [all …]
|
D | SkSLAnalysis.h | 32 class VariableReference; variable 93 VariableReference* fAssignedVar = nullptr;
|
D | SkSLInliner.cpp | 161 VariableReference::RefKind refKind) { in clone_with_ref_kind() 230 if (!expr->is<VariableReference>()) { in RemapVariable() 235 return expr->as<VariableReference>().variable(); in RemapVariable() 440 const VariableReference& v = expression.as<VariableReference>(); in inlineExpression() 592 (*varMap)[&variable] = VariableReference::Make(line, clonedVar.get()); in inlineStatement() 654 resultExpr = VariableReference::Make(/*line=*/-1, var.fVarSymbol); in inlineCall() 682 varMap[param] = VariableReference::Make(/*line=*/-1, var.fVarSymbol); in inlineCall()
|
D | SkSLCompiler.cpp | 86 using RefKind = VariableReference::RefKind; 484 return VariableReference::Make(line, var, VariableReference::RefKind::kRead); in convertIdentifier() 488 auto base = VariableReference::Make(line, &field->owner(), in convertIdentifier() 489 VariableReference::RefKind::kRead); in convertIdentifier()
|
D | SkSLConstantFolder.cpp | 198 if (!expr->is<VariableReference>()) { in GetConstantValueForVariable() 201 const VariableReference& varRef = expr->as<VariableReference>(); in GetConstantValueForVariable()
|
D | SkSLRehydrator.cpp | 530 VariableReference::RefKind refKind = (VariableReference::RefKind) this->readU8(); in expression() 531 return VariableReference::Make(/*line=*/-1, var, refKind); in expression()
|
D | SkSLDehydrator.cpp | 424 const VariableReference& v = e->as<VariableReference>(); in write()
|
/third_party/skia/src/sksl/transform/ |
D | SkSLBuiltinVariableScanner.cpp | 55 if (e.is<VariableReference>() && e.as<VariableReference>().variable()->isBuiltin()) { in FindAndDeclareBuiltinVariables() 56 this->addDeclaringElement(String(e.as<VariableReference>().variable()->name())); in FindAndDeclareBuiltinVariables()
|
/third_party/skia/src/sksl/analysis/ |
D | SkSLProgramUsage.cpp | 61 } else if (e.is<VariableReference>()) { in visitExpression() 62 const VariableReference& ref = e.as<VariableReference>(); in visitExpression()
|
D | SkSLGetLoopUnrollInfo.cpp | 79 return expr->is<VariableReference>() && in get_es2_loop_unroll_info() 80 expr->as<VariableReference>().variable() == loopInfo.fIndex; in get_es2_loop_unroll_info()
|
D | SkSLIsConstantExpression.cpp | 40 const Variable* v = e.as<VariableReference>().variable(); in visitExpression()
|
/third_party/skia/src/sksl/codegen/ |
D | SkSLMetalCodeGenerator.h | 47 class VariableReference; variable 146 void writeVariableReference(const VariableReference& ref); 154 const SkTArray<VariableReference*>& outVars);
|
D | SkSLGLSLCodeGenerator.h | 44 class VariableReference; variable 104 virtual void writeVariableReference(const VariableReference& ref);
|
D | SkSLPipelineStageCodeGenerator.cpp | 95 void writeVariableReference(const VariableReference& ref); 232 void PipelineStageCodeGenerator::writeVariableReference(const VariableReference& ref) { in writeVariableReference() 500 this->writeVariableReference(expr.as<VariableReference>()); in writeExpression()
|
D | SkSLMetalCodeGenerator.cpp | 180 this->writeVariableReference(expr.as<VariableReference>()); in writeExpression() 196 const SkTArray<VariableReference*>& outVars) { in getOutParamHelper() 344 SkSTArray<16, VariableReference*> outVars; in writeFunctionCall() 345 outVars.push_back_n(arguments.count(), (VariableReference*)nullptr); in writeFunctionCall() 1294 void MetalCodeGenerator::writeVariableReference(const VariableReference& ref) { in writeVariableReference() 2608 const VariableReference& v = e->as<VariableReference>(); in requirements()
|
D | SkSLSPIRVCodeGenerator.h | 53 class VariableReference; variable 224 SpvId writeVariableReference(const VariableReference& ref, OutputStream& out);
|
/third_party/skia/include/private/ |
D | SkSLIRNode.h | 32 class VariableReference; variable
|
/third_party/skia/src/sksl/dsl/ |
D | DSLExpression.cpp | 78 fExpression = std::make_unique<SkSL::VariableReference>(pos.line(), DSLWriter::Var(var), in DSLExpression() 79 SkSL::VariableReference::RefKind::kRead); in DSLExpression()
|