Home
last modified time | relevance | path

Searched refs:fModifiers (Results 1 – 25 of 52) sorted by relevance

123

/external/skia/src/sksl/ir/
DSkSLVariable.h36 , fModifiers(modifiers) in INHERITED()
53 return fModifiers.description() + fType.fName + " " + fName; in description()
59 (fModifiers.fFlags & (Modifiers::kIn_Flag | Modifiers::kOut_Flag | in dead()
64 (!fReadCount && !(fModifiers.fFlags & (Modifiers::kPLS_Flag | in dead()
68 mutable Modifiers fModifiers; member
DSkSLModifiersDeclaration.h24 , fModifiers(modifiers) {} in ModifiersDeclaration()
27 return std::unique_ptr<ProgramElement>(new ModifiersDeclaration(fModifiers)); in clone()
32 return fModifiers.description() + ";"; in description()
36 Modifiers fModifiers; member
DSkSLVariableReference.cpp98 (fVariable.fModifiers.fFlags & Modifiers::kIn_Flag) && in constantPropagate()
99 !(fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag)) { in constantPropagate()
102 if ((fVariable.fModifiers.fFlags & Modifiers::kConst_Flag) && fVariable.fInitialValue && in constantPropagate()
DSkSLFunctionDeclaration.h29 , fModifiers(modifiers) in FunctionDeclaration()
114 Modifiers fModifiers; member
/external/skqp/src/sksl/ir/
DSkSLModifiersDeclaration.h24 , fModifiers(modifiers) {} in ModifiersDeclaration()
27 return std::unique_ptr<ProgramElement>(new ModifiersDeclaration(fModifiers)); in clone()
31 return fModifiers.description() + ";"; in description()
34 Modifiers fModifiers; member
DSkSLVariable.h36 , fModifiers(modifiers) in INHERITED()
52 return fModifiers.description() + fType.fName + " " + fName; in description()
56 return !fWriteCount || (!fReadCount && !(fModifiers.fFlags & (Modifiers::kOut_Flag | in dead()
61 mutable Modifiers fModifiers; member
DSkSLFunctionDeclaration.h29 , fModifiers(modifiers) in FunctionDeclaration()
106 Modifiers fModifiers; member
/external/skqp/src/sksl/
DSkSLCPPCodeGenerator.cpp19 return (var.fModifiers.fFlags & Modifiers::kUniform_Flag) && in needs_uniform_var()
88 int builtin = ((VariableReference&) base).fVariable.fModifiers.fLayout.fBuiltin; in writeIndexExpression()
135 if (var.fModifiers.fLayout.fCType == SkSL::Layout::CType::kSkPMColor4f) { in default_value()
142 return !(var.fModifiers.fFlags & Modifiers::kUniform_Flag) && in is_private()
143 !(var.fModifiers.fFlags & Modifiers::kIn_Flag) && in is_private()
145 var.fModifiers.fLayout.fBuiltin == -1; in is_private()
149 return (var.fModifiers.fFlags & Modifiers::kUniform_Flag) && in is_uniform_in()
150 (var.fModifiers.fFlags & Modifiers::kIn_Flag) && in is_uniform_in()
213 this->writeRuntimeValue(var.fType, var.fModifiers.fLayout, var.fName); in writeVarInitializer()
256 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference()
[all …]
DSkSLMetalCodeGenerator.cpp242 if (c.fFunction.fParameters[i]->fModifiers.fFlags & Modifiers::kOut_Flag) { in writeFunctionCall()
410 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference()
430 if (ref.fVariable.fModifiers.fFlags & Modifiers::kIn_Flag) { in writeVariableReference()
432 } else if (ref.fVariable.fModifiers.fFlags & Modifiers::kOut_Flag) { in writeVariableReference()
434 } else if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag && in writeVariableReference()
458 switch (field->fModifiers.fLayout.fBuiltin) { in writeFieldAccess()
536 (((VariableReference&) *b.fLeft).fVariable.fModifiers.fFlags & Modifiers::kOut_Flag)) { in writeBinaryExpression()
663 this->write(to_string(var.fVar->fModifiers.fLayout.fBinding)); in writeFunction()
669 this->write(to_string(var.fVar->fModifiers.fLayout.fBinding)); in writeFunction()
684 this->write(to_string(intf.fVariable.fModifiers.fLayout.fSet)); in writeFunction()
[all …]
DSkSLPipelineStageCodeGenerator.cpp117 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference()
133 if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag) { in writeVariableReference()
149 if (var.fModifiers.fFlags & (Modifiers::kIn_Flag | in writeVariableReference()
221 if (var.fModifiers.fFlags & (Modifiers::kIn_Flag | Modifiers::kUniform_Flag) || in writeProgramElement()
222 -1 != var.fModifiers.fLayout.fBuiltin) { in writeProgramElement()
DSkSLIRGenerator.cpp261 (decl.fModifiers.fFlags & Modifiers::kIn_Flag) && in convertVarDeclarations()
266 if (decl.fModifiers.fLayout.fLocation == 0 && decl.fModifiers.fLayout.fIndex == 0 && in convertVarDeclarations()
267 (decl.fModifiers.fFlags & Modifiers::kOut_Flag) && fKind == Program::kFragment_Kind && in convertVarDeclarations()
301 auto var = std::unique_ptr<Variable>(new Variable(decl.fOffset, decl.fModifiers, in convertVarDeclarations()
326 ((Variable*) (*fSymbolTable)[varDecl.fName])->fModifiers.fLayout.fBuiltin >= 0) { in convertVarDeclarations()
329 old->fModifiers = var->fModifiers; in convertVarDeclarations()
343 Modifiers modifiers = m.fModifiers; in convertModifiersDeclaration()
350 invocationId->fModifiers.fFlags = 0; in convertModifiersDeclaration()
351 invocationId->fModifiers.fLayout.fBuiltin = -1; in convertModifiersDeclaration()
686 Variable* var = new Variable(param->fOffset, param->fModifiers, name, *type, in convertFunction()
[all …]
DSkSLSPIRVCodeGenerator.cpp178 return (var.fModifiers.fFlags & Modifiers::kOut_Flag) != 0; in is_out()
395 const Layout& fieldLayout = type.fields()[i].fModifiers.fLayout; in writeStruct()
416 if (type.fields()[i].fModifiers.fLayout.fBuiltin < 0) { in writeStruct()
695 if (c.fFunction.fParameters[i]->fModifiers.fFlags & Modifiers::kOut_Flag) { in writeIntrinsicCall()
715 if (c.fFunction.fParameters[i]->fModifiers.fFlags & Modifiers::kOut_Flag) { in writeIntrinsicCall()
1471 SpvStorageClass_ result = get_storage_class(var.fModifiers); in get_storage_class()
1619 if (var.fModifiers.fLayout.fBuiltin == SK_IN_BUILTIN) { in getLValue()
1722 if (ref.fVariable.fModifiers.fLayout.fBuiltin == SK_FRAGCOORD_BUILTIN && in writeVariableReference()
1785 if (ref.fVariable.fModifiers.fLayout.fBuiltin == SK_CLOCKWISE_BUILTIN && in writeVariableReference()
2623 bool isBuffer = (0 != (intf.fVariable.fModifiers.fFlags & Modifiers::kBuffer_Flag)); in writeInterfaceBlock()
[all …]
/external/skia/src/sksl/
DSkSLMetalCodeGenerator.cpp258 if (c.fFunction.fParameters[i]->fModifiers.fFlags & Modifiers::kOut_Flag) { in writeFunctionCall()
525 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference()
545 if (ref.fVariable.fModifiers.fFlags & Modifiers::kIn_Flag) { in writeVariableReference()
547 } else if (ref.fVariable.fModifiers.fFlags & Modifiers::kOut_Flag) { in writeVariableReference()
549 } else if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag && in writeVariableReference()
573 switch (field->fModifiers.fLayout.fBuiltin) { in writeFieldAccess()
693 (((VariableReference&) *b.fLeft).fVariable.fModifiers.fFlags & Modifiers::kOut_Flag)) { in writeBinaryExpression()
825 this->write(to_string(var.fVar->fModifiers.fLayout.fBinding)); in writeFunction()
831 this->write(to_string(var.fVar->fModifiers.fLayout.fBinding)); in writeFunction()
846 this->write(to_string(intf.fVariable.fModifiers.fLayout.fSet)); in writeFunction()
[all …]
DSkSLCPPCodeGenerator.cpp19 return (var.fModifiers.fFlags & Modifiers::kUniform_Flag) && in needs_uniform_var()
115 int builtin = ((VariableReference&) base).fVariable.fModifiers.fLayout.fBuiltin; in writeIndexExpression()
162 if (var.fModifiers.fLayout.fCType == SkSL::Layout::CType::kSkPMColor4f) { in default_value()
169 return !(var.fModifiers.fFlags & Modifiers::kUniform_Flag) && in is_private()
170 !(var.fModifiers.fFlags & Modifiers::kIn_Flag) && in is_private()
172 var.fModifiers.fLayout.fBuiltin == -1; in is_private()
176 return (var.fModifiers.fFlags & Modifiers::kUniform_Flag) && in is_uniform_in()
177 (var.fModifiers.fFlags & Modifiers::kIn_Flag) && in is_uniform_in()
246 this->writeRuntimeValue(var.fType, var.fModifiers.fLayout, var.fName); in writeVarInitializer()
289 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference()
[all …]
DSkSLPipelineStageCodeGenerator.cpp126 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference()
140 if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag) { in writeVariableReference()
156 if (var.fModifiers.fFlags & Modifiers::kUniform_Flag) { in writeVariableReference()
259 if (var.fModifiers.fFlags & (Modifiers::kIn_Flag | Modifiers::kUniform_Flag) || in writeProgramElement()
260 -1 != var.fModifiers.fLayout.fBuiltin) { in writeProgramElement()
DSkSLASTNode.h203 : fModifiers(modifiers) in ParameterData()
207 Modifiers fModifiers; member
227 : fModifiers(modifiers) in FunctionData()
231 Modifiers fModifiers; member
241 : fModifiers(modifiers) in InterfaceBlockData()
247 Modifiers fModifiers; member
DSkSLSPIRVCodeGenerator.cpp183 return (var.fModifiers.fFlags & Modifiers::kOut_Flag) != 0; in is_out()
402 const Layout& fieldLayout = field.fModifiers.fLayout; in writeStruct()
423 if (field.fModifiers.fLayout.fBuiltin < 0) { in writeStruct()
720 if (c.fFunction.fParameters[i]->fModifiers.fFlags & Modifiers::kOut_Flag) { in writeIntrinsicCall()
740 if (c.fFunction.fParameters[i]->fModifiers.fFlags & Modifiers::kOut_Flag) { in writeIntrinsicCall()
1546 SpvStorageClass_ result = get_storage_class(var.fModifiers); in get_storage_class()
1705 if (var.fModifiers.fLayout.fBuiltin == SK_IN_BUILTIN) { in getLValue()
1815 if (ref.fVariable.fModifiers.fLayout.fBuiltin == SK_FRAGCOORD_BUILTIN && in writeVariableReference()
1894 if (ref.fVariable.fModifiers.fLayout.fBuiltin == SK_CLOCKWISE_BUILTIN && in writeVariableReference()
2673 bool isBuffer = (0 != (intf.fVariable.fModifiers.fFlags & Modifiers::kBuffer_Flag)); in writeInterfaceBlock()
[all …]
DSkSLSectionAndParameterHelper.h68 return (var.fModifiers.fFlags & Modifiers::kIn_Flag) && in IsParameter()
69 -1 == var.fModifiers.fLayout.fBuiltin; in IsParameter()
/external/skqp/src/sksl/ast/
DSkSLASTModifiersDeclaration.h24 , fModifiers(modifiers) {} in ASTModifiersDeclaration()
27 return fModifiers.description() + ";"; in description()
30 Modifiers fModifiers; member
DSkSLASTParameter.h26 , fModifiers(modifiers) in ASTParameter()
32 String result = fModifiers.description() + fType->description() + " " + fName; in description()
39 const Modifiers fModifiers; member
DSkSLASTInterfaceBlock.h33 , fModifiers(modifiers) in ASTInterfaceBlock()
40 String result = fModifiers.description() + fTypeName + " {\n"; in description()
58 const Modifiers fModifiers; member
DSkSLASTVarDeclaration.h64 , fModifiers(modifiers) in ASTVarDeclarations()
69 String result = fModifiers.description() + fType->description() + " "; in description()
79 const Modifiers fModifiers; member
DSkSLASTFunction.h26 , fModifiers(modifiers) in ASTFunction()
48 const Modifiers fModifiers; member
/external/skqp/src/gpu/effects/
DGrSkSLFP.cpp34 if (var.fModifiers.fFlags & SkSL::Modifiers::kIn_Flag) { in GrSkSLFPFactory()
37 if (var.fModifiers.fLayout.fKey) { in GrSkSLFPFactory()
121 if (v->fModifiers.fFlags & SkSL::Modifiers::kUniform_Flag && v->fType != in emitCode()
186 switch (v->fModifiers.fLayout.fCType) { in onSetData()
208 if (v->fModifiers.fFlags & SkSL::Modifiers::kUniform_Flag) { in onSetData()
214 if (v->fModifiers.fFlags & SkSL::Modifiers::kUniform_Flag) { in onSetData()
218 SkASSERT(!(v->fModifiers.fFlags & SkSL::Modifiers::kUniform_Flag)); in onSetData()
308 if (v->fModifiers.fLayout.fKey) { in onGetGLSLProcessorKey()
318 if (v->fModifiers.fLayout.fKey) { in onGetGLSLProcessorKey()
334 if (v->fModifiers.fLayout.fKey) { in onGetGLSLProcessorKey()
/external/skia/src/core/
DSkRuntimeEffect.cpp86 SkASSERT(!var.fModifiers.fLayout.fKey); in Make()
87 SkASSERT((var.fModifiers.fFlags & SkSL::Modifiers::kIn_Flag) == 0 || in Make()
88 (var.fModifiers.fFlags & SkSL::Modifiers::kUniform_Flag) == 0); in Make()
89 SkASSERT(var.fModifiers.fLayout.fCType == SkSL::Layout::CType::kDefault); in Make()
90 SkASSERT(var.fModifiers.fLayout.fWhen.fLength == 0); in Make()
91 SkASSERT((var.fModifiers.fLayout.fFlags & SkSL::Layout::kTracked_Flag) == 0); in Make()
93 if (var.fModifiers.fFlags & flag) { in Make()
101 v.fQualifier = (var.fModifiers.fFlags & SkSL::Modifiers::kUniform_Flag) in Make()

123