/external/skia/src/sksl/ir/ |
D | SkSLVariable.h | 36 , 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
|
D | SkSLModifiersDeclaration.h | 24 , 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
|
D | SkSLVariableReference.cpp | 98 (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()
|
D | SkSLFunctionDeclaration.h | 29 , fModifiers(modifiers) in FunctionDeclaration() 114 Modifiers fModifiers; member
|
/external/skqp/src/sksl/ir/ |
D | SkSLModifiersDeclaration.h | 24 , 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
|
D | SkSLVariable.h | 36 , 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
|
D | SkSLFunctionDeclaration.h | 29 , fModifiers(modifiers) in FunctionDeclaration() 106 Modifiers fModifiers; member
|
/external/skqp/src/sksl/ |
D | SkSLCPPCodeGenerator.cpp | 19 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 …]
|
D | SkSLMetalCodeGenerator.cpp | 242 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 …]
|
D | SkSLPipelineStageCodeGenerator.cpp | 117 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()
|
D | SkSLIRGenerator.cpp | 261 (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 …]
|
D | SkSLSPIRVCodeGenerator.cpp | 178 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/ |
D | SkSLMetalCodeGenerator.cpp | 258 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 …]
|
D | SkSLCPPCodeGenerator.cpp | 19 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 …]
|
D | SkSLPipelineStageCodeGenerator.cpp | 126 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()
|
D | SkSLASTNode.h | 203 : 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
|
D | SkSLSPIRVCodeGenerator.cpp | 183 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 …]
|
D | SkSLSectionAndParameterHelper.h | 68 return (var.fModifiers.fFlags & Modifiers::kIn_Flag) && in IsParameter() 69 -1 == var.fModifiers.fLayout.fBuiltin; in IsParameter()
|
/external/skqp/src/sksl/ast/ |
D | SkSLASTModifiersDeclaration.h | 24 , fModifiers(modifiers) {} in ASTModifiersDeclaration() 27 return fModifiers.description() + ";"; in description() 30 Modifiers fModifiers; member
|
D | SkSLASTParameter.h | 26 , fModifiers(modifiers) in ASTParameter() 32 String result = fModifiers.description() + fType->description() + " " + fName; in description() 39 const Modifiers fModifiers; member
|
D | SkSLASTInterfaceBlock.h | 33 , fModifiers(modifiers) in ASTInterfaceBlock() 40 String result = fModifiers.description() + fTypeName + " {\n"; in description() 58 const Modifiers fModifiers; member
|
D | SkSLASTVarDeclaration.h | 64 , fModifiers(modifiers) in ASTVarDeclarations() 69 String result = fModifiers.description() + fType->description() + " "; in description() 79 const Modifiers fModifiers; member
|
D | SkSLASTFunction.h | 26 , fModifiers(modifiers) in ASTFunction() 48 const Modifiers fModifiers; member
|
/external/skqp/src/gpu/effects/ |
D | GrSkSLFP.cpp | 34 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/ |
D | SkRuntimeEffect.cpp | 86 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()
|