Home
last modified time | relevance | path

Searched refs:symbolTable (Results 1 - 25 of 217) sorted by relevance

123456789

/third_party/glslang/glslang/MachineIndependent/
H A DInitialize.cpp48 // TBuiltIns::identifyBuiltIns(...,symbolTable) context-independent programmatic additions/mappings to the symbol table,
50 // TBuiltIns::identifyBuiltIns(...,symbolTable, resources) context-dependent programmatic additions/mappings to the symbol table,
426 void RelateTabledBuiltins(const FunctionT* functions, TSymbolTable& symbolTable) in RelateTabledBuiltins() argument
429 symbolTable.relateToOperator(functions->name, functions->op); in RelateTabledBuiltins()
455 void TBuiltIns::relateTabledBuiltins(int /* version */, EProfile /* profile */, const SpvVersion& /* spvVersion */, EShLanguage /* stage */, TSymbolTable& symbolTable) in relateTabledBuiltins() argument
457 RelateTabledBuiltins(BaseFunctions, symbolTable); in relateTabledBuiltins()
458 RelateTabledBuiltins(DerivativeFunctions, symbolTable); in relateTabledBuiltins()
459 RelateTabledBuiltins(CustomFunctions, symbolTable); in relateTabledBuiltins()
7758 static void SpecialQualifier(const char* name, TStorageQualifier qualifier, TBuiltInVariable builtIn, TSymbolTable& symbolTable) in SpecialQualifier() argument
7760 TSymbol* symbol = symbolTable in SpecialQualifier()
7776 ModifyFlatDecoration(const char* name, bool flat, TSymbolTable& symbolTable) ModifyFlatDecoration() argument
7796 BuiltInVariable(const char* name, TBuiltInVariable builtIn, TSymbolTable& symbolTable) BuiltInVariable() argument
7806 RetargetVariable(const char* from, const char* to, TSymbolTable& symbolTable) RetargetVariable() argument
7818 BuiltInVariable(const char* blockName, const char* name, TBuiltInVariable builtIn, TSymbolTable& symbolTable) BuiltInVariable() argument
7841 identifyBuiltIns(int version, EProfile profile, const SpvVersion& spvVersion, EShLanguage language, TSymbolTable& symbolTable) identifyBuiltIns() argument
10212 identifyBuiltIns(int version, EProfile profile, const SpvVersion& spvVersion, EShLanguage language, TSymbolTable& symbolTable, const TBuiltInResource &resources) identifyBuiltIns() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
H A DInitialize.cpp25 void InsertBuiltInFunctions(GLenum type, const ShBuiltInResources &resources, TSymbolTable &symbolTable) in InsertBuiltInFunctions() argument
44 symbolTable.insertBuiltIn(COMMON_BUILTINS, EOpRadians, genType, "radians", genType); in InsertBuiltInFunctions()
45 symbolTable.insertBuiltIn(COMMON_BUILTINS, EOpDegrees, genType, "degrees", genType); in InsertBuiltInFunctions()
46 symbolTable.insertBuiltIn(COMMON_BUILTINS, EOpSin, genType, "sin", genType); in InsertBuiltInFunctions()
47 symbolTable.insertBuiltIn(COMMON_BUILTINS, EOpCos, genType, "cos", genType); in InsertBuiltInFunctions()
48 symbolTable.insertBuiltIn(COMMON_BUILTINS, EOpTan, genType, "tan", genType); in InsertBuiltInFunctions()
49 symbolTable.insertBuiltIn(COMMON_BUILTINS, EOpAsin, genType, "asin", genType); in InsertBuiltInFunctions()
50 symbolTable.insertBuiltIn(COMMON_BUILTINS, EOpAcos, genType, "acos", genType); in InsertBuiltInFunctions()
51 symbolTable.insertBuiltIn(COMMON_BUILTINS, EOpAtan, genType, "atan", genType, genType); in InsertBuiltInFunctions()
52 symbolTable in InsertBuiltInFunctions()
477 IdentifyBuiltIns(GLenum shaderType, const ShBuiltInResources &resources, TSymbolTable &symbolTable) IdentifyBuiltIns() argument
[all...]
H A DCompiler.cpp122 TParseContext parseContext(symbolTable, extensionBehavior, intermediate, in compile()
129 symbolTable.push(); in compile()
130 if (!symbolTable.atGlobalLevel()) in compile()
159 while (!symbolTable.atBuiltInLevel()) in compile()
160 symbolTable.pop(); in compile()
167 assert(symbolTable.isEmpty()); in InitBuiltInSymbolTable()
168 symbolTable.push(); // COMMON_BUILTINS in InitBuiltInSymbolTable()
169 symbolTable.push(); // ESSL1_BUILTINS in InitBuiltInSymbolTable()
170 symbolTable.push(); // ESSL3_BUILTINS in InitBuiltInSymbolTable()
187 symbolTable in InitBuiltInSymbolTable()
[all...]
H A Dglslang.y617 if (!context->symbolTable.setDefaultPrecision( $3, $2 )) {
707 context->symbolTable.push();
898 if (context->globalErrorCheck(@1, context->symbolTable.atGlobalLevel(), "attribute"))
904 if (context->globalErrorCheck(@1, context->symbolTable.atGlobalLevel(), "varying"))
913 if (context->globalErrorCheck(@1, context->symbolTable.atGlobalLevel(), "invariant varying"))
921 if ($1.qualifier != EvqConstExpr && !context->symbolTable.atGlobalLevel())
935 TQualifier qual = context->symbolTable.atGlobalLevel() ? EvqGlobal : EvqTemporary;
939 $$.qualifier = context->symbolTable.atGlobalLevel() ? EvqGlobal : EvqTemporary;
989 if (context->globalErrorCheck(@1, context->symbolTable.atGlobalLevel(), "uniform"))
1000 $$.precision = context->symbolTable
[all...]
/third_party/glslang/glslang/HLSL/
H A DhlslParseables.cpp44 // TBuiltInParseablesHlsl::identifyBuiltIns(...,symbolTable) context-independent programmatic additions/mappings to the symbol table,
46 // TBuiltInParseablesHlsl::identifyBuiltIns(...,symbolTable, resources) context-dependent programmatic additions/mappings to the
1023 TSymbolTable& symbolTable) in identifyBuiltIns()
1025 // symbolTable.relateToOperator("abort", EOpAbort); in identifyBuiltIns()
1026 symbolTable.relateToOperator("abs", EOpAbs); in identifyBuiltIns()
1027 symbolTable.relateToOperator("acos", EOpAcos); in identifyBuiltIns()
1028 symbolTable.relateToOperator("all", EOpAll); in identifyBuiltIns()
1029 symbolTable.relateToOperator("AllMemoryBarrier", EOpMemoryBarrier); in identifyBuiltIns()
1030 symbolTable.relateToOperator("AllMemoryBarrierWithGroupSync", EOpAllMemoryBarrierWithGroupSync); in identifyBuiltIns()
1031 symbolTable in identifyBuiltIns()
1022 identifyBuiltIns(int , EProfile , const SpvVersion& , EShLanguage , TSymbolTable& symbolTable) identifyBuiltIns() argument
[all...]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
H A DInitializeVariables.cpp29 TSymbolTable *symbolTable);
35 TSymbolTable *symbolTable);
47 TSymbolTable *symbolTable) in AddZeroInitSequence()
52 initSequenceOut, symbolTable); in AddZeroInitSequence()
58 initSequenceOut, symbolTable); in AddZeroInitSequence()
88 TSymbolTable *symbolTable) in AddStructZeroInitSequence()
100 initSequenceOut, symbolTable); in AddStructZeroInitSequence()
108 TSymbolTable *symbolTable) in AddArrayZeroInitStatementList()
115 initSequenceOut, symbolTable); in AddArrayZeroInitStatementList()
122 TSymbolTable *symbolTable) in AddArrayZeroInitForLoop()
43 AddZeroInitSequence(const TIntermTyped *initializedNode, bool canUseLoopsToInitialize, bool highPrecisionSupported, TIntermSequence *initSequenceOut, TSymbolTable *symbolTable) AddZeroInitSequence() argument
84 AddStructZeroInitSequence(const TIntermTyped *initializedNode, bool canUseLoopsToInitialize, bool highPrecisionSupported, TIntermSequence *initSequenceOut, TSymbolTable *symbolTable) AddStructZeroInitSequence() argument
104 AddArrayZeroInitStatementList(const TIntermTyped *initializedNode, bool canUseLoopsToInitialize, bool highPrecisionSupported, TIntermSequence *initSequenceOut, TSymbolTable *symbolTable) AddArrayZeroInitStatementList() argument
119 AddArrayZeroInitForLoop(const TIntermTyped *initializedNode, bool highPrecisionSupported, TIntermSequence *initSequenceOut, TSymbolTable *symbolTable) AddArrayZeroInitForLoop() argument
151 AddArrayZeroInitSequence(const TIntermTyped *initializedNode, bool canUseLoopsToInitialize, bool highPrecisionSupported, TIntermSequence *initSequenceOut, TSymbolTable *symbolTable) AddArrayZeroInitSequence() argument
181 InsertInitCode(TCompiler *compiler, TIntermSequence *mainBody, const InitVariableList &variables, TSymbolTable *symbolTable, int shaderVersion, const TExtensionBehavior &extensionBehavior, bool canUseLoopsToInitialize, bool highPrecisionSupported) InsertInitCode() argument
253 InitializeLocalsTraverser(int shaderVersion, TSymbolTable *symbolTable, bool canUseLoopsToInitialize, bool highPrecisionSupported) InitializeLocalsTraverser() argument
320 CreateInitCode(const TIntermTyped *initializedSymbol, bool canUseLoopsToInitialize, bool highPrecisionSupported, TIntermSequence *initCode, TSymbolTable *symbolTable) CreateInitCode() argument
330 InitializeUninitializedLocals(TCompiler *compiler, TIntermBlock *root, int shaderVersion, bool canUseLoopsToInitialize, bool highPrecisionSupported, TSymbolTable *symbolTable) InitializeUninitializedLocals() argument
343 InitializeVariables(TCompiler *compiler, TIntermBlock *root, const InitVariableList &vars, TSymbolTable *symbolTable, int shaderVersion, const TExtensionBehavior &extensionBehavior, bool canUseLoopsToInitialize, bool highPrecisionSupported) InitializeVariables() argument
[all...]
H A DRewriteTexelFetchOffset.cpp27 const TSymbolTable &symbolTable,
31 Traverser(const TSymbolTable &symbolTable, int shaderVersion);
35 const TSymbolTable *symbolTable; member in sh::__anon19847::Traverser
40 Traverser::Traverser(const TSymbolTable &symbolTable, int shaderVersion) in Traverser() argument
41 : TIntermTraverser(true, false, false), symbolTable(&symbolTable), shaderVersion(shaderVersion) in Traverser()
47 const TSymbolTable &symbolTable, in Apply()
50 Traverser traverser(symbolTable, shaderVersion); in Apply()
145 *symbolTable, shaderVersion); in visitAggregate()
158 const TSymbolTable &symbolTable, in RewriteTexelFetchOffset()
45 Apply(TCompiler *compiler, TIntermNode *root, const TSymbolTable &symbolTable, int shaderVersion) Apply() argument
156 RewriteTexelFetchOffset(TCompiler *compiler, TIntermNode *root, const TSymbolTable &symbolTable, int shaderVersion) RewriteTexelFetchOffset() argument
[all...]
H A DDeferGlobalInitializers.cpp44 TSymbolTable *symbolTable) in GetDeferredInitializers()
98 symbolTable); in GetDeferredInitializers()
107 TSymbolTable *symbolTable) in InsertInitCallToMain()
113 new TFunction(symbolTable, kInitGlobalsString, SymbolType::AngleInternal, in InsertInitCallToMain()
139 TSymbolTable *symbolTable) in DeferGlobalInitializers()
154 &variablesToReplace, symbolTable); in DeferGlobalInitializers()
161 InsertInitCallToMain(root, &deferredInitializers, symbolTable); in DeferGlobalInitializers()
170 new TVariable(symbolTable, var->name(), replacementType, var->symbolType()); in DeferGlobalInitializers()
37 GetDeferredInitializers(TIntermDeclaration *declaration, bool initializeUninitializedGlobals, bool canUseLoopsToInitialize, bool highPrecisionSupported, bool forceDeferGlobalInitializers, TIntermSequence *deferredInitializersOut, std::vector<const TVariable *> *variablesToReplaceOut, TSymbolTable *symbolTable) GetDeferredInitializers() argument
105 InsertInitCallToMain(TIntermBlock *root, TIntermSequence *deferredInitializers, TSymbolTable *symbolTable) InsertInitCallToMain() argument
133 DeferGlobalInitializers(TCompiler *compiler, TIntermBlock *root, bool initializeUninitializedGlobals, bool canUseLoopsToInitialize, bool highPrecisionSupported, bool forceDeferGlobalInitializers, TSymbolTable *symbolTable) DeferGlobalInitializers() argument
H A DPruneNoOps.cpp46 TSymbolTable *symbolTable);
49 PruneNoOpsTraverser(TSymbolTable *symbolTable);
58 bool PruneNoOpsTraverser::apply(TCompiler *compiler, TIntermBlock *root, TSymbolTable *symbolTable) in apply() argument
60 PruneNoOpsTraverser prune(symbolTable); in apply()
65 PruneNoOpsTraverser::PruneNoOpsTraverser(TSymbolTable *symbolTable) in PruneNoOpsTraverser() argument
66 : TIntermTraverser(true, true, true, symbolTable) in PruneNoOpsTraverser()
210 bool PruneNoOps(TCompiler *compiler, TIntermBlock *root, TSymbolTable *symbolTable) in PruneNoOps() argument
212 return PruneNoOpsTraverser::apply(compiler, root, symbolTable); in PruneNoOps()
H A DDeclareAndInitBuiltinsForInstancedMultiview.cpp38 const TSymbolTable &symbolTable, in InitializeViewIDAndInstanceID()
83 const TSymbolTable &symbolTable) in SelectViewIndexInVertexShader()
132 TSymbolTable *symbolTable) in DeclareAndInitBuiltinsForInstancedMultiview()
138 new TVariable(symbolTable, kViewIDVariableName, in DeclareAndInitBuiltinsForInstancedMultiview()
152 new TVariable(symbolTable, kInstanceIDVariableName, instanceIDVariableType, in DeclareAndInitBuiltinsForInstancedMultiview()
161 InitializeViewIDAndInstanceID(viewID, instanceID, numberOfViews, *symbolTable, in DeclareAndInitBuiltinsForInstancedMultiview()
176 new TVariable(symbolTable, kMultiviewBaseViewLayerIndexVariableName, in DeclareAndInitBuiltinsForInstancedMultiview()
183 *symbolTable); in DeclareAndInitBuiltinsForInstancedMultiview()
35 InitializeViewIDAndInstanceID(const TVariable *viewID, const TVariable *instanceID, unsigned numberOfViews, const TSymbolTable &symbolTable, TIntermSequence *initializers) InitializeViewIDAndInstanceID() argument
80 SelectViewIndexInVertexShader(const TVariable *viewID, const TVariable *multiviewBaseViewLayerIndex, TIntermSequence *initializers, const TSymbolTable &symbolTable) SelectViewIndexInVertexShader() argument
126 DeclareAndInitBuiltinsForInstancedMultiview(TCompiler *compiler, TIntermBlock *root, unsigned numberOfViews, GLenum shaderType, ShCompileOptions compileOptions, ShShaderOutput shaderOutput, TSymbolTable *symbolTable) DeclareAndInitBuiltinsForInstancedMultiview() argument
H A DRewriteDfdy.cpp31 const TSymbolTable &symbolTable,
36 Traverser(TSymbolTable *symbolTable,
50 Traverser::Traverser(TSymbolTable *symbolTable, in Traverser() argument
54 : TIntermTraverser(true, false, false, symbolTable), in Traverser()
64 const TSymbolTable &symbolTable, in Apply()
68 TSymbolTable *pSymbolTable = const_cast<TSymbolTable *>(&symbolTable); in Apply()
221 const TSymbolTable &symbolTable, in RewriteDfdy()
230 return Traverser::Apply(compiler, compileOptions, root, symbolTable, specConst, driverUniforms); in RewriteDfdy()
61 Apply(TCompiler *compiler, ShCompileOptions compileOptions, TIntermNode *root, const TSymbolTable &symbolTable, SpecConst *specConst, const DriverUniform *driverUniforms) Apply() argument
218 RewriteDfdy(TCompiler *compiler, ShCompileOptions compileOptions, TIntermNode *root, const TSymbolTable &symbolTable, int shaderVersion, SpecConst *specConst, const DriverUniform *driverUniforms) RewriteDfdy() argument
H A DSeparateDeclarations.cpp33 TSymbolTable *symbolTable);
36 SeparateDeclarationsTraverser(TSymbolTable *symbolTable);
50 TSymbolTable *symbolTable) in apply()
52 SeparateDeclarationsTraverser separateDecl(symbolTable); in apply()
57 SeparateDeclarationsTraverser::SeparateDeclarationsTraverser(TSymbolTable *symbolTable) in SeparateDeclarationsTraverser() argument
58 : TIntermTraverser(true, false, false, symbolTable) in SeparateDeclarationsTraverser()
194 bool SeparateDeclarations(TCompiler *compiler, TIntermNode *root, TSymbolTable *symbolTable) in SeparateDeclarations() argument
196 return SeparateDeclarationsTraverser::apply(compiler, root, symbolTable); in SeparateDeclarations()
48 apply(TCompiler *compiler, TIntermNode *root, TSymbolTable *symbolTable) apply() argument
H A DRecordConstantPrecision.cpp32 RecordConstantPrecisionTraverser(TSymbolTable *symbolTable);
40 RecordConstantPrecisionTraverser::RecordConstantPrecisionTraverser(TSymbolTable *symbolTable) in RecordConstantPrecisionTraverser() argument
41 : TIntermTraverser(true, false, true, symbolTable) in RecordConstantPrecisionTraverser()
112 bool RecordConstantPrecision(TCompiler *compiler, TIntermNode *root, TSymbolTable *symbolTable) in RecordConstantPrecision() argument
114 RecordConstantPrecisionTraverser traverser(symbolTable); in RecordConstantPrecision()
H A DMonomorphizeUnsupportedFunctions.cpp101 TIntermTyped *ExtractSideEffects(TSymbolTable *symbolTable, in ExtractSideEffects() argument
136 TVariable *tempVar = DeclareTempVariable(symbolTable, index, EvqTemporary, &tempDecl); in ExtractSideEffects()
181 const TFunction *MonomorphizeFunction(TSymbolTable *symbolTable, in MonomorphizeFunction() argument
187 new TFunction(symbolTable, kEmptyImmutableString, SymbolType::AngleInternal, in MonomorphizeFunction()
199 new TVariable(symbolTable, originalParam->name(), &originalParam->getType(), in MonomorphizeFunction()
223 TVariable *param = new TVariable(symbolTable, kEmptyImmutableString, indexType, in MonomorphizeFunction()
244 TSymbolTable *symbolTable, in MonomorphizeTraverser()
247 : TIntermTraverser(true, false, false, symbolTable), in MonomorphizeTraverser()
400 explicit UpdateFunctionsDefinitionsTraverser(TSymbolTable *symbolTable, in UpdateFunctionsDefinitionsTraverser() argument
402 : TIntermTraverser(true, false, false, symbolTable), mFunctionMa in UpdateFunctionsDefinitionsTraverser()
243 MonomorphizeTraverser(TCompiler *compiler, TSymbolTable *symbolTable, ShCompileOptions compileOptions, FunctionMap *functionMap) MonomorphizeTraverser() argument
506 MonomorphizeUnsupportedFunctionsImpl(TCompiler *compiler, TIntermBlock *root, TSymbolTable *symbolTable, ShCompileOptions compileOptions) MonomorphizeUnsupportedFunctionsImpl() argument
547 MonomorphizeUnsupportedFunctions(TCompiler *compiler, TIntermBlock *root, TSymbolTable *symbolTable, ShCompileOptions compileOptions) MonomorphizeUnsupportedFunctions() argument
[all...]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
H A DIntermNode_util.cpp22 const TSymbolTable &symbolTable, in LookUpBuiltInFunction()
26 const TSymbol *symbol = symbolTable.findBuiltIn(mangledName, shaderVersion); in LookUpBuiltInFunction()
152 TVariable *CreateTempVariable(TSymbolTable *symbolTable, const TType *type) in CreateTempVariable() argument
154 ASSERT(symbolTable != nullptr); in CreateTempVariable()
157 return new TVariable(symbolTable, kEmptyImmutableString, type, SymbolType::AngleInternal); in CreateTempVariable()
160 TVariable *CreateTempVariable(TSymbolTable *symbolTable, const TType *type, TQualifier qualifier) in CreateTempVariable() argument
162 ASSERT(symbolTable != nullptr); in CreateTempVariable()
165 return CreateTempVariable(symbolTable, type); in CreateTempVariable()
169 return CreateTempVariable(symbolTable, typeWithQualifier); in CreateTempVariable()
206 TVariable *DeclareTempVariable(TSymbolTable *symbolTable, in DeclareTempVariable() argument
20 LookUpBuiltInFunction(const char *name, const TIntermSequence *arguments, const TSymbolTable &symbolTable, int shaderVersion) LookUpBuiltInFunction() argument
216 DeclareTempVariable(TSymbolTable *symbolTable, TIntermTyped *initializer, TQualifier qualifier, TIntermDeclaration **declarationOut) DeclareTempVariable() argument
227 DeclareStructure( TIntermBlock *root, TSymbolTable *symbolTable, TFieldList *fieldList, TQualifier qualifier, const TMemoryQualifier &memoryQualifier, uint32_t arraySize, const ImmutableString &structTypeName, const ImmutableString *structInstanceName) DeclareStructure() argument
271 DeclareInterfaceBlock(TIntermBlock *root, TSymbolTable *symbolTable, TFieldList *fieldList, TQualifier qualifier, const TLayoutQualifier &layoutQualifier, const TMemoryQualifier &memoryQualifier, uint32_t arraySize, const ImmutableString &blockTypeName, const ImmutableString &blockVariableName) DeclareInterfaceBlock() argument
324 ReferenceGlobalVariable(const ImmutableString &name, const TSymbolTable &symbolTable) ReferenceGlobalVariable() argument
331 ReferenceBuiltInVariable(const ImmutableString &name, const TSymbolTable &symbolTable, int shaderVersion) ReferenceBuiltInVariable() argument
341 CreateBuiltInFunctionCallNode(const char *name, TIntermSequence *arguments, const TSymbolTable &symbolTable, int shaderVersion) CreateBuiltInFunctionCallNode() argument
356 CreateBuiltInUnaryFunctionCallNode(const char *name, TIntermTyped *argument, const TSymbolTable &symbolTable, int shaderVersion) CreateBuiltInUnaryFunctionCallNode() argument
[all...]
H A DIntermNode_util.h31 TVariable *CreateTempVariable(TSymbolTable *symbolTable, const TType *type);
32 TVariable *CreateTempVariable(TSymbolTable *symbolTable, const TType *type, TQualifier qualifier);
40 TVariable *DeclareTempVariable(TSymbolTable *symbolTable,
44 TVariable *DeclareTempVariable(TSymbolTable *symbolTable,
50 TSymbolTable *symbolTable,
58 TSymbolTable *symbolTable,
74 const TSymbolTable &symbolTable);
79 const TSymbolTable &symbolTable,
84 const TSymbolTable &symbolTable,
88 const TSymbolTable &symbolTable,
[all...]
H A DDriverUniform.cpp46 bool DriverUniform::addComputeDriverUniformsToShader(TIntermBlock *root, TSymbolTable *symbolTable) in addComputeDriverUniformsToShader() argument
73 mDriverUniforms = DeclareInterfaceBlock(root, symbolTable, driverFieldList, EvqUniform, in addComputeDriverUniformsToShader()
80 TFieldList *DriverUniform::createUniformFields(TSymbolTable *symbolTable) in createUniformFields() argument
99 createEmulatedDepthRangeType(symbolTable), in createUniformFields()
114 TType *DriverUniform::createEmulatedDepthRangeType(TSymbolTable *symbolTable) in createEmulatedDepthRangeType() argument
136 symbolTable, kEmulatedDepthRangeParams, depthRangeParamsFields, SymbolType::AngleInternal); in createEmulatedDepthRangeType()
150 bool DriverUniform::addGraphicsDriverUniformsToShader(TIntermBlock *root, TSymbolTable *symbolTable) in addGraphicsDriverUniformsToShader() argument
155 TType *emulatedDepthRangeType = createEmulatedDepthRangeType(symbolTable); in addGraphicsDriverUniformsToShader()
159 new TVariable(symbolTable->nextUniqueId(), kEmptyImmutableString, SymbolType::Empty, in addGraphicsDriverUniformsToShader()
164 TFieldList *driverFieldList = createUniformFields(symbolTable); in addGraphicsDriverUniformsToShader()
267 createUniformFields(TSymbolTable *symbolTable) createUniformFields() argument
[all...]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/vulkan/
H A DRewriteInterpolateAtOffset.cpp31 const TSymbolTable &symbolTable,
37 Traverser(TSymbolTable *symbolTable,
44 const TSymbolTable *symbolTable = nullptr; member in sh::__anon19882::Traverser
51 Traverser::Traverser(TSymbolTable *symbolTable, in Traverser() argument
56 : TIntermTraverser(true, false, false, symbolTable), in Traverser()
57 symbolTable(symbolTable), in Traverser()
68 const TSymbolTable &symbolTable, in Apply()
73 TSymbolTable *pSymbolTable = const_cast<TSymbolTable *>(&symbolTable); in Apply()
134 "interpolateAtOffset", &interpolateAtOffsetArguments, *symbolTable, shaderVersio in visitAggregate()
65 Apply(TCompiler *compiler, ShCompileOptions compileOptions, TIntermNode *root, const TSymbolTable &symbolTable, int shaderVersion, SpecConst *specConst, const DriverUniform *driverUniforms) Apply() argument
145 RewriteInterpolateAtOffset(TCompiler *compiler, ShCompileOptions compileOptions, TIntermNode *root, const TSymbolTable &symbolTable, int shaderVersion, SpecConst *specConst, const DriverUniform *driverUniforms) RewriteInterpolateAtOffset() argument
[all...]
H A DRewriteR32fImages.cpp32 TSymbolTable *symbolTable,
44 TSymbolTable *symbolTable, in RewriteExpressionTraverser()
46 : TIntermTraverser(true, false, false, symbolTable), in RewriteExpressionTraverser()
75 TSymbolTable *symbolTable, in RewriteExpression()
83 RewriteExpressionTraverser traverser(compiler, symbolTable, imageMap); in RewriteExpression()
114 TSymbolTable *symbolTable, in RewriteBuiltinFunctionCall()
174 index = RewriteExpression(compiler, symbolTable, index, imageMap); in RewriteBuiltinFunctionCall()
194 arg = RewriteExpression(compiler, symbolTable, arg, imageMap); in RewriteBuiltinFunctionCall()
207 CreateBuiltInUnaryFunctionCallNode("floatBitsToUint", data, *symbolTable, 300); in RewriteBuiltinFunctionCall()
221 CreateBuiltInFunctionCallNode(functionName.data(), &substituteArguments, *symbolTable, 31 in RewriteBuiltinFunctionCall()
43 RewriteExpressionTraverser(TCompiler *compiler, TSymbolTable *symbolTable, const ImageMap &imageMap) RewriteExpressionTraverser() argument
74 RewriteExpression(TCompiler *compiler, TSymbolTable *symbolTable, TIntermTyped *expression, const ImageMap &imageMap) RewriteExpression() argument
113 RewriteBuiltinFunctionCall(TCompiler *compiler, TSymbolTable *symbolTable, TIntermAggregate *node, const ImageMap &imageMap) RewriteBuiltinFunctionCall() argument
258 RewriteR32fImagesTraverser(TCompiler *compiler, TSymbolTable *symbolTable) RewriteR32fImagesTraverser() argument
373 RewriteR32fImages(TCompiler *compiler, TIntermBlock *root, TSymbolTable *symbolTable) RewriteR32fImages() argument
[all...]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
H A DSymbol.cpp35 TSymbol::TSymbol(TSymbolTable *symbolTable, in TSymbol() argument
41 mUniqueId(symbolTable->nextUniqueId()), in TSymbol()
52 TSymbol::TSymbol(TSymbolTable *symbolTable, in TSymbol() argument
58 mUniqueId(symbolTable->nextUniqueId()), in TSymbol()
96 TVariable::TVariable(TSymbolTable *symbolTable, in TVariable() argument
101 : TSymbol(symbolTable, name, symbolType, SymbolClass::Variable, extension), in TVariable()
109 TVariable::TVariable(TSymbolTable *symbolTable, in TVariable() argument
114 : TSymbol(symbolTable, name, symbolType, SymbolClass::Variable, extensions), in TVariable()
122 TStructure::TStructure(TSymbolTable *symbolTable, in TStructure() argument
126 : TSymbol(symbolTable, nam in TStructure()
146 outputSymbols, outputSymbolsToAPINames, symbolTable); createSamplerSymbols() local
157 TInterfaceBlock(TSymbolTable *symbolTable, const ImmutableString &name, const TFieldList *fields, const TLayoutQualifier &layoutQualifier, SymbolType symbolType, TExtension extension) TInterfaceBlock() argument
171 TInterfaceBlock(TSymbolTable *symbolTable, const ImmutableString &name, const TFieldList *fields, const TLayoutQualifier &layoutQualifier, SymbolType symbolType, const std::array<TExtension, 3u> &extensions) TInterfaceBlock() argument
185 TFunction(TSymbolTable *symbolTable, const ImmutableString &name, SymbolType symbolType, const TType *retType, bool knownToNotHaveSideEffects) TFunction() argument
[all...]
H A DTranslatorMetalDirect.cpp198 TSymbolTable *symbolTable) in ReplaceGLDepthRangeWithDriverUniform()
202 symbolTable->findBuiltIn(ImmutableString("gl_DepthRange"), 0)); in ReplaceGLDepthRangeWithDriverUniform()
222 TSymbolTable *symbolTable, in RotateAndFlipBuiltinVariable()
239 new TVariable(symbolTable, flippedVariableName.rawName(), type, SymbolType::AngleInternal); in RotateAndFlipBuiltinVariable()
289 TSymbolTable *symbolTable, in InsertFragCoordCorrection()
316 symbolTable->findBuiltIn(ImmutableString("gl_FragCoord"), compiler->getShaderVersion())); in InsertFragCoordCorrection()
317 return RotateAndFlipBuiltinVariable(compiler, root, insertSequence, flipXY, symbolTable, in InsertFragCoordCorrection()
326 void AddFragColorDeclaration(TIntermBlock &root, TSymbolTable &symbolTable) in AddFragColorDeclaration() argument
332 void AddFragDepthDeclaration(TIntermBlock &root, TSymbolTable &symbolTable) in AddFragDepthDeclaration() argument
338 void AddFragDepthEXTDeclaration(TCompiler &compiler, TIntermBlock &root, TSymbolTable &symbolTable) in AddFragDepthEXTDeclaration() argument
195 ReplaceGLDepthRangeWithDriverUniform(TCompiler *compiler, TIntermBlock *root, const DriverUniformMetal *driverUniforms, TSymbolTable *symbolTable) ReplaceGLDepthRangeWithDriverUniform() argument
218 RotateAndFlipBuiltinVariable(TCompiler *compiler, TIntermBlock *root, TIntermSequence *insertSequence, TIntermTyped *flipXY, TSymbolTable *symbolTable, const TVariable *builtin, const Name &flippedVariableName, TIntermTyped *pivot, TIntermTyped *fragRotation) RotateAndFlipBuiltinVariable() argument
285 InsertFragCoordCorrection(TCompiler *compiler, ShCompileOptions compileOptions, TIntermBlock *root, TIntermSequence *insertSequence, TSymbolTable *symbolTable, SpecConst *specConst, const DriverUniformMetal *driverUniforms) InsertFragCoordCorrection() argument
350 AddSampleMaskDeclaration(TIntermBlock &root, TSymbolTable &symbolTable) AddSampleMaskDeclaration() argument
362 TSymbolTable &symbolTable = compiler.getSymbolTable(); AddFragDataDeclaration() local
425 TSymbolTable &symbolTable = compiler.getSymbolTable(); AppendVertexShaderTransformFeedbackOutputToMain() local
438 AppendVertexShaderPositionYCorrectionToMain(TCompiler *compiler, TIntermBlock *root, TSymbolTable *symbolTable, TIntermTyped *negFlipY) AppendVertexShaderPositionYCorrectionToMain() argument
489 TSymbolTable *symbolTable = &getSymbolTable(); insertSampleMaskWritingLogic() local
539 TSymbolTable *symbolTable = &getSymbolTable(); insertRasterizationDiscardLogic() local
657 TSymbolTable &symbolTable = getSymbolTable(); translateImpl() local
[all...]
H A DTranslatorVulkan.cpp123 TSymbolTable *symbolTable, in DeclareDefaultUniforms()
160 root, symbolTable, uniformList, EvqUniform, layoutQualifier, TMemoryQualifier::Create(), 0, in DeclareDefaultUniforms()
175 new TVariable(symbolTable, variable->name(), replacementType, variable->symbolType()); in DeclareDefaultUniforms()
192 TSymbolTable *symbolTable, in RotateAndFlipBuiltinVariable()
210 new TVariable(symbolTable, flippedVariableName, type, SymbolType::AngleInternal); in RotateAndFlipBuiltinVariable()
263 TSymbolTable *symbolTable) in ReplaceGLDepthRangeWithDriverUniform()
267 symbolTable->findBuiltIn(ImmutableString("gl_DepthRange"), 0)); in ReplaceGLDepthRangeWithDriverUniform()
280 TSymbolTable *symbolTable) in ReplaceGLBoundingBoxWithGlobal()
284 symbolTable->findBuiltIn(ImmutableString("gl_BoundingBoxEXT"), 310)); in ReplaceGLBoundingBoxWithGlobal()
293 new TVariable(symbolTable in ReplaceGLBoundingBoxWithGlobal()
121 DeclareDefaultUniforms(TCompiler *compiler, TIntermBlock *root, TSymbolTable *symbolTable, gl::ShaderType shaderType) DeclareDefaultUniforms() argument
188 RotateAndFlipBuiltinVariable(TCompiler *compiler, TIntermBlock *root, TIntermSequence *insertSequence, TIntermTyped *flipXY, TSymbolTable *symbolTable, const TVariable *builtin, const ImmutableString &flippedVariableName, TIntermTyped *pivot, TIntermTyped *fragRotation) RotateAndFlipBuiltinVariable() argument
260 ReplaceGLDepthRangeWithDriverUniform(TCompiler *compiler, TIntermBlock *root, const DriverUniform *driverUniforms, TSymbolTable *symbolTable) ReplaceGLDepthRangeWithDriverUniform() argument
278 ReplaceGLBoundingBoxWithGlobal(TCompiler *compiler, TIntermBlock *root, TSymbolTable *symbolTable) ReplaceGLBoundingBoxWithGlobal() argument
306 AddANGLEPositionVaryingDeclaration(TIntermBlock *root, TSymbolTable *symbolTable, TQualifier qualifier) AddANGLEPositionVaryingDeclaration() argument
329 AddBresenhamEmulationVS(TCompiler *compiler, TIntermBlock *root, TSymbolTable *symbolTable, SpecConst *specConst, const DriverUniform *driverUniforms) AddBresenhamEmulationVS() argument
401 AddXfbEmulationSupport(TCompiler *compiler, TIntermBlock *root, TSymbolTable *symbolTable, const DriverUniform *driverUniforms) AddXfbEmulationSupport() argument
615 InsertFragCoordCorrection(TCompiler *compiler, ShCompileOptions compileOptions, TIntermBlock *root, TIntermSequence *insertSequence, TSymbolTable *symbolTable, SpecConst *specConst, const DriverUniform *driverUniforms) InsertFragCoordCorrection() argument
683 AddBresenhamEmulationFS(TCompiler *compiler, ShCompileOptions compileOptions, TIntermBlock *root, TSymbolTable *symbolTable, SpecConst *specConst, const DriverUniform *driverUniforms, bool usesFragCoord) AddBresenhamEmulationFS() argument
[all...]
H A DTranslatorMetal.cpp53 TSymbolTable *symbolTable, in AppendVertexShaderPositionYCorrectionToMain()
73 return RunAtTheEndOfShader(compiler, root, assignment, symbolTable); in AppendVertexShaderPositionYCorrectionToMain()
78 TSymbolTable *symbolTable, in InitializeUnusedOutputs()
95 CreateInitCode(symbol, false, false, &initCode, symbolTable); in InitializeUnusedOutputs()
228 TSymbolTable *symbolTable = &getSymbolTable(); in insertSampleMaskWritingLogic() local
245 new TVariable(symbolTable, ImmutableString(mtl::kCoverageMaskEnabledConstName), boolType, in insertSampleMaskWritingLogic()
249 new TFunction(symbolTable, kSampleMaskWriteFuncName, SymbolType::AngleInternal, in insertSampleMaskWritingLogic()
254 new TVariable(symbolTable, ImmutableString("mask"), uintType, SymbolType::AngleInternal); in insertSampleMaskWritingLogic()
275 return RunAtTheEndOfShader(this, root, ifCall, symbolTable); in insertSampleMaskWritingLogic()
285 TSymbolTable *symbolTable in insertRasterizerDiscardLogic() local
51 AppendVertexShaderPositionYCorrectionToMain(TCompiler *compiler, TIntermBlock *root, TSymbolTable *symbolTable, TIntermTyped *negFlipY) AppendVertexShaderPositionYCorrectionToMain() argument
77 InitializeUnusedOutputs(TIntermBlock *root, TSymbolTable *symbolTable, const InitVariableList &unusedVars) InitializeUnusedOutputs() argument
[all...]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/gl/
H A DUseInterfaceBlockFields.cpp45 const TSymbolTable &symbolTable) in AddFieldUseStatements()
48 TIntermSymbol *symbol = ReferenceGlobalVariable(ImmutableString(var.name), symbolTable); in AddFieldUseStatements()
64 const TSymbolTable &symbolTable) in InsertUseCode()
72 AddFieldUseStatements(var, sequence, symbolTable); in InsertUseCode()
78 ReferenceGlobalVariable(ImmutableString(block.instanceName), symbolTable); in InsertUseCode()
89 ReferenceGlobalVariable(ImmutableString(block.instanceName), symbolTable); in InsertUseCode()
100 const TSymbolTable &symbolTable) in UseInterfaceBlockFields()
103 InsertUseCode(mainBody->getSequence(), blocks, symbolTable); in UseInterfaceBlockFields()
43 AddFieldUseStatements(const ShaderVariable &var, TIntermSequence *sequence, const TSymbolTable &symbolTable) AddFieldUseStatements() argument
62 InsertUseCode(TIntermSequence *sequence, const InterfaceBlockList &blocks, const TSymbolTable &symbolTable) InsertUseCode() argument
97 UseInterfaceBlockFields(TCompiler *compiler, TIntermBlock *root, const InterfaceBlockList &blocks, const TSymbolTable &symbolTable) UseInterfaceBlockFields() argument
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/d3d/
H A DExpandIntegerPowExpressions.cpp28 TSymbolTable *symbolTable);
31 Traverser(TSymbolTable *symbolTable);
39 bool Traverser::Apply(TCompiler *compiler, TIntermNode *root, TSymbolTable *symbolTable) in Apply() argument
41 Traverser traverser(symbolTable); in Apply()
58 Traverser::Traverser(TSymbolTable *symbolTable) : TIntermTraverser(true, false, false, symbolTable) in Traverser() argument
147 bool ExpandIntegerPowExpressions(TCompiler *compiler, TIntermNode *root, TSymbolTable *symbolTable) in ExpandIntegerPowExpressions() argument
149 return Traverser::Apply(compiler, root, symbolTable); in ExpandIntegerPowExpressions()

Completed in 23 milliseconds

123456789