Home
last modified time | relevance | path

Searched refs:TVariable (Results 1 – 25 of 194) sorted by relevance

12345678

/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DSymbolTable_autogen.h23 TVariable *mVar_gl_DepthRange = nullptr;
24 TVariable *mVar_gl_MaxVertexAttribs = nullptr;
25 TVariable *mVar_gl_MaxVertexUniformVectors = nullptr;
26 TVariable *mVar_gl_MaxVertexTextureImageUnits = nullptr;
27 TVariable *mVar_gl_MaxCombinedTextureImageUnits = nullptr;
28 TVariable *mVar_gl_MaxTextureImageUnits = nullptr;
29 TVariable *mVar_gl_MaxFragmentUniformVectors = nullptr;
30 TVariable *mVar_gl_MaxVaryingVectors = nullptr;
31 TVariable *mVar_gl_MaxDrawBuffers = nullptr;
32 TVariable *mVar_gl_MaxDualSourceDrawBuffersEXT = nullptr;
[all …]
DSymbolTable.h99 TVariable *getGlInVariableWithArraySize() const;
101 const TVariable *gl_FragData() const;
102 const TVariable *gl_SecondaryFragDataEXT() const;
104 void markStaticRead(const TVariable &variable);
105 void markStaticWrite(const TVariable &variable);
108 bool isStaticallyUsed(const TVariable &variable) const;
132 void addInvariantVarying(const TVariable &variable);
137 bool isVaryingInvariant(const TVariable &variable) const;
173 VariableMetadata *getOrCreateVariableMetadata(const TVariable &variable);
196 TVariable *mGlInVariableWithArraySize;
DResourcesHLSL.h67 const TVariable *instanceVariable,
72 const TVariable *instanceVariable,
82 const TVariable &variable,
86 const TVariable &variable,
103 const TVector<const TVariable *> &group,
104 const TMap<const TVariable *, TString> &samplerInStructSymbolsToAPINames,
108 const TVector<const TVariable *> &group,
113 const TVector<const TVariable *> &group,
117 const TVector<const TVariable *> &group,
DSymbol.h80 class TVariable : public TSymbol
83 TVariable(TSymbolTable *symbolTable,
96 constexpr TVariable(const TSymbolUniqueId &id, in TVariable() function
123 TVector<const TVariable *> *outputSymbols,
124 TMap<const TVariable *, TString> *outputSymbolsToAPINames,
182 const TVariable *createVariable(TSymbolTable *symbolTable) in createVariable()
188 return new TVariable(symbolTable, constName, constType, in createVariable()
207 void addParameter(const TVariable *p);
230 const TVariable *getParam(size_t i) const { return mParameters[i]; } in getParam()
243 const TVariable *const *parameters, in TFunction()
[all …]
DTranslatorVulkan.cpp193 TIntermBinary *CreateDriverUniformRef(const TVariable *driverUniforms, const char *fieldName) in CreateDriverUniformRef()
211 const TVariable *builtin, in FlipBuiltinVariable()
225 TVariable *replacementVar = in FlipBuiltinVariable()
226 new TVariable(symbolTable, flippedVariableName, type, SymbolType::AngleInternal); in FlipBuiltinVariable()
261 const TVariable *driverUniforms, in ReplaceGLDepthRangeWithDriverUniform()
265 const TVariable *depthRangeVar = static_cast<const TVariable *>( in ReplaceGLDepthRangeWithDriverUniform()
287 const TVariable *position = BuiltInVariable::gl_Position(); in AppendVertexShaderDepthCorrectionToMain()
315 TVariable *xfbPlaceholder = new TVariable(symbolTable, ImmutableString("@@ XFB-OUT @@"), in AppendVertexShaderTransformFeedbackOutputToMain()
327 const TVariable *AddGraphicsDriverUniformsToShader(TIntermBlock *root, TSymbolTable *symbolTable) in AddGraphicsDriverUniformsToShader()
348 TVariable *depthRangeVar = in AddGraphicsDriverUniformsToShader()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DReplaceVariable.h27 class TVariable; variable
30 const TVariable *toBeReplaced,
31 const TVariable *replacement);
33 const TVariable *toBeReplaced,
69 void replaceGlobalVariable(const TVariable *oldVar, TVariable *newVar) in replaceGlobalVariable()
74 TVariable *getVariableReplacement(const TVariable *oldVar) const in getVariableReplacement()
91 void replaceFunctionParam(const TVariable *oldParam, TVariable *newParam) in replaceFunctionParam()
96 TVariable *getFunctionParamReplacement(const TVariable *oldParam) const in getFunctionParamReplacement()
124 std::unordered_map<const TVariable *, TVariable *> mReplacedGlobalVariables;
131 std::unordered_map<const TVariable *, TVariable *> mReplacedFunctionParams;
DIntermNode_util.h19 class TVariable; variable
30 TVariable *CreateTempVariable(TSymbolTable *symbolTable, const TType *type);
31 TVariable *CreateTempVariable(TSymbolTable *symbolTable, const TType *type, TQualifier qualifier);
33 TIntermSymbol *CreateTempSymbolNode(const TVariable *tempVariable);
34 TIntermDeclaration *CreateTempDeclarationNode(const TVariable *tempVariable);
35 TIntermDeclaration *CreateTempInitDeclarationNode(const TVariable *tempVariable,
37 TIntermBinary *CreateTempAssignmentNode(const TVariable *tempVariable, TIntermTyped *rightNode);
39 TVariable *DeclareTempVariable(TSymbolTable *symbolTable,
43 TVariable *DeclareTempVariable(TSymbolTable *symbolTable,
47 const TVariable *DeclareInterfaceBlock(TIntermBlock *root,
DIntermNode_util.cpp143 TVariable *CreateTempVariable(TSymbolTable *symbolTable, const TType *type) in CreateTempVariable()
148 return new TVariable(symbolTable, kEmptyImmutableString, type, SymbolType::AngleInternal); in CreateTempVariable()
151 TVariable *CreateTempVariable(TSymbolTable *symbolTable, const TType *type, TQualifier qualifier) in CreateTempVariable()
163 TIntermSymbol *CreateTempSymbolNode(const TVariable *tempVariable) in CreateTempSymbolNode()
172 TIntermDeclaration *CreateTempDeclarationNode(const TVariable *tempVariable) in CreateTempDeclarationNode()
179 TIntermDeclaration *CreateTempInitDeclarationNode(const TVariable *tempVariable, in CreateTempInitDeclarationNode()
190 TIntermBinary *CreateTempAssignmentNode(const TVariable *tempVariable, TIntermTyped *rightNode) in CreateTempAssignmentNode()
197 TVariable *DeclareTempVariable(TSymbolTable *symbolTable, in DeclareTempVariable()
202 TVariable *variable = CreateTempVariable(symbolTable, type, qualifier); in DeclareTempVariable()
207 TVariable *DeclareTempVariable(TSymbolTable *symbolTable, in DeclareTempVariable()
[all …]
DReplaceVariable.cpp24 ReplaceVariableTraverser(const TVariable *toBeReplaced, const TIntermTyped *replacement) in ReplaceVariableTraverser()
39 const TVariable *const mToBeReplaced;
47 const TVariable *toBeReplaced, in ReplaceVariable()
48 const TVariable *replacement) in ReplaceVariable()
57 const TVariable *toBeReplaced, in ReplaceVariableWithTyped()
80 const TVariable *param = oldFunction->getParam(paramIndex); in convertFunctionPrototype()
81 TVariable *replacement = nullptr; in convertFunctionPrototype()
89 replacement = new TVariable(symbolTable, param->name(), new TType(param->getType()), in convertFunctionPrototype()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DIntermNode_util.cpp152 TVariable *CreateTempVariable(TSymbolTable *symbolTable, const TType *type) 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()
172 TIntermSymbol *CreateTempSymbolNode(const TVariable *tempVariable) in CreateTempSymbolNode()
181 TIntermDeclaration *CreateTempDeclarationNode(const TVariable *tempVariable) in CreateTempDeclarationNode()
188 TIntermDeclaration *CreateTempInitDeclarationNode(const TVariable *tempVariable, in CreateTempInitDeclarationNode()
199 TIntermBinary *CreateTempAssignmentNode(const TVariable *tempVariable, TIntermTyped *rightNode) in CreateTempAssignmentNode()
206 TVariable *DeclareTempVariable(TSymbolTable *symbolTable, in DeclareTempVariable()
211 TVariable *variable = CreateTempVariable(symbolTable, type, qualifier); in DeclareTempVariable()
216 TVariable *DeclareTempVariable(TSymbolTable *symbolTable, in DeclareTempVariable()
[all …]
DIntermNode_util.h19 class TVariable; variable
31 TVariable *CreateTempVariable(TSymbolTable *symbolTable, const TType *type);
32 TVariable *CreateTempVariable(TSymbolTable *symbolTable, const TType *type, TQualifier qualifier);
34 TIntermSymbol *CreateTempSymbolNode(const TVariable *tempVariable);
35 TIntermDeclaration *CreateTempDeclarationNode(const TVariable *tempVariable);
36 TIntermDeclaration *CreateTempInitDeclarationNode(const TVariable *tempVariable,
38 TIntermBinary *CreateTempAssignmentNode(const TVariable *tempVariable, TIntermTyped *rightNode);
40 TVariable *DeclareTempVariable(TSymbolTable *symbolTable,
44 TVariable *DeclareTempVariable(TSymbolTable *symbolTable,
48 std::pair<const TVariable *, const TVariable *> DeclareStructure(
[all …]
DReplaceArrayOfMatrixVarying.cpp42 CollectVaryingTraverser(std::vector<const TVariable *> *varyingsOut) in CollectVaryingTraverser()
74 std::vector<const TVariable *> *mVaryingsOut;
81 const TVariable *varying) in ReplaceArrayOfMatrixVarying()
90 TVariable *tempReplaceVar = new TVariable( in ReplaceArrayOfMatrixVarying()
105 TVariable *varyingReplaceVar = in ReplaceArrayOfMatrixVarying()
106 new TVariable(symbolTable, varying->name(), varyingReplaceType, SymbolType::UserDefined); in ReplaceArrayOfMatrixVarying()
160 std::vector<const TVariable *> arrayOfMatrixVars; in ReplaceArrayOfMatrixVaryings()
164 for (const TVariable *var : arrayOfMatrixVars) in ReplaceArrayOfMatrixVaryings()
DReplaceVariable.cpp24 ReplaceVariableTraverser(const TVariable *toBeReplaced, const TIntermTyped *replacement) in ReplaceVariableTraverser()
39 const TVariable *const mToBeReplaced;
87 const TVariable &variable = asSymbol->variable(); in visitDeclaration()
91 const TVariable *replacementVariable = new TVariable( in visitDeclaration()
109 const TVariable *toBeReplaced, in ReplaceVariable()
110 const TVariable *replacement) in ReplaceVariable()
137 const TVariable *toBeReplaced, in ReplaceVariableWithTyped()
DReplaceVariable.h21 class TVariable; variable
25 const TVariable *toBeReplaced,
26 const TVariable *replacement);
29 const TVariable *toBeReplaced,
32 using VariableReplacementMap = angle::HashMap<const TVariable *, const TIntermTyped *>;
DReplaceClipCullDistanceVariable.cpp173 ReplaceVariableExceptOneTraverser(const TVariable *toBeReplaced, in ReplaceVariableExceptOneTraverser()
191 const TVariable *const mToBeReplaced;
247 const TVariable *glClipCullDistanceVar, in ReplaceClipCullDistanceAssignments()
262 const TVariable *declareANGLEVariable(const TVariable *originalVariable);
281 const TVariable *mGlVar;
286 const TVariable *mANGLEVar;
308 const TVariable *ReplaceClipCullDistanceAssignments::declareANGLEVariable( in declareANGLEVariable()
309 const TVariable *originalVariable) in declareANGLEVariable()
319 new TVariable(mSymbolTable, mANGLEVarName, clipCullDistanceType, SymbolType::AngleInternal); in declareANGLEVariable()
496 const TVariable *builtInVar = nullptr; in ReplaceClipCullDistanceAssignmentsImpl()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DEmulateMultiDrawShaderBuiltins.cpp40 const TVariable *getGLDrawIDBuiltinVariable() { return mVariable; } in getGLDrawIDBuiltinVariable()
53 const TVariable *mVariable;
63 const TVariable *getGLBaseVertexBuiltinVariable() { return mVariable; } in getGLBaseVertexBuiltinVariable()
75 const TVariable *mVariable;
85 const TVariable *getGLBaseInstanceBuiltinVariable() { return mVariable; } in getGLBaseInstanceBuiltinVariable()
97 const TVariable *mVariable;
109 const TVariable *builtInVariable = traverser.getGLDrawIDBuiltinVariable(); in EmulateGLDrawID()
113 const TVariable *drawID = in EmulateGLDrawID()
114 new TVariable(symbolTable, kEmulatedGLDrawIDName, type, SymbolType::AngleInternal); in EmulateGLDrawID()
146 const TVariable *builtInVariable = traverser.getGLBaseVertexBuiltinVariable(); in EmulateGLBaseVertex()
[all …]
DDeclareAndInitBuiltinsForInstancedMultiview.cpp34 void InitializeViewIDAndInstanceID(const TVariable *viewID, in InitializeViewIDAndInstanceID()
35 const TVariable *instanceID, in InitializeViewIDAndInstanceID()
79 void SelectViewIndexInVertexShader(const TVariable *viewID, in SelectViewIndexInVertexShader()
80 const TVariable *multiviewBaseViewLayerIndex, in SelectViewIndexInVertexShader()
135 const TVariable *viewID = in DeclareAndInitBuiltinsForInstancedMultiview()
136 new TVariable(symbolTable, kViewIDVariableName, in DeclareAndInitBuiltinsForInstancedMultiview()
146 const TVariable *instanceID = in DeclareAndInitBuiltinsForInstancedMultiview()
147 new TVariable(symbolTable, kInstanceIDVariableName, instanceIDVariableType, in DeclareAndInitBuiltinsForInstancedMultiview()
167 const TVariable *multiviewBaseViewLayerIndex = in DeclareAndInitBuiltinsForInstancedMultiview()
168 new TVariable(symbolTable, kMultiviewBaseViewLayerIndexVariableName, in DeclareAndInitBuiltinsForInstancedMultiview()
DRewriteStructSamplers.cpp20 TType *GetStructSamplerParameterType(TSymbolTable *symbolTable, const TVariable &param) in GetStructSamplerParameterType()
40 const TVariable &oldVariable = symbolNode->variable(); in ReplaceTypeOfSymbolNode()
44 TVariable *newVariable = in ReplaceTypeOfSymbolNode()
45 new TVariable(oldVariable.uniqueId(), oldVariable.name(), oldVariable.symbolType(), in ReplaceTypeOfSymbolNode()
128 const TVariable &variable = asSymbol->variable(); in visitDeclaration()
148 const TVariable *samplerReplacement = in visitBinary()
149 static_cast<const TVariable *>(mSymbolTable->findUserDefined(newName)); in visitBinary()
317 TVariable *newStructVar = in stripStructSpecifierSamplers()
318 new TVariable(mSymbolTable, kEmptyImmutableString, newStructType, SymbolType::Empty); in stripStructSpecifierSamplers()
339 const TVariable &variable, in extractStructSamplerUniforms()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DResourcesHLSL.h75 const TVariable *instanceVariable,
79 const TVariable *instanceVariable,
84 const TVariable *instanceVariable,
94 const TVariable &variable,
98 const TVariable &variable,
115 const TVector<const TVariable *> &group,
116 const TMap<const TVariable *, TString> &samplerInStructSymbolsToAPINames,
120 const TVector<const TVariable *> &group,
125 const TVector<const TVariable *> &group,
129 const TVector<const TVariable *> &group,
DTranslatorMetalDirect.cpp70 constexpr const TVariable kgl_VertexIDMetal(BuiltInId::gl_VertexID,
201 const TVariable *depthRangeVar = static_cast<const TVariable *>( in ReplaceGLDepthRangeWithDriverUniform()
223 const TVariable *builtin, in RotateAndFlipBuiltinVariable()
238 TVariable *replacementVar = in RotateAndFlipBuiltinVariable()
239 new TVariable(symbolTable, flippedVariableName.rawName(), type, SymbolType::AngleInternal); in RotateAndFlipBuiltinVariable()
315 const TVariable *fragCoord = static_cast<const TVariable *>( in InsertFragCoordCorrection()
321 void DeclareRightBeforeMain(TIntermBlock &root, const TVariable &var) in DeclareRightBeforeMain()
353 const TVariable *gl_SampleMask = in AddSampleMaskDeclaration()
354 new TVariable(&symbolTable, ImmutableString("gl_SampleMask"), gl_SampleMaskType, in AddSampleMaskDeclaration()
365 std::vector<const TVariable *> glFragDataSlots; in AddFragDataDeclaration()
[all …]
DTranslatorVulkan.cpp104 const TVariable &variable = symbol->variable(); in visitSymbol()
128 TVector<const TVariable *> uniformVars; in DeclareDefaultUniforms()
159 const TVariable *uniformBlock = DeclareInterfaceBlock( in DeclareDefaultUniforms()
168 const TVariable *variable = uniformVars[fieldIndex]; in DeclareDefaultUniforms()
174 TVariable *replacementVariable = in DeclareDefaultUniforms()
175 new TVariable(symbolTable, variable->name(), replacementType, variable->symbolType()); in DeclareDefaultUniforms()
193 const TVariable *builtin, in RotateAndFlipBuiltinVariable()
209 TVariable *replacementVar = in RotateAndFlipBuiltinVariable()
210 new TVariable(symbolTable, flippedVariableName, type, SymbolType::AngleInternal); in RotateAndFlipBuiltinVariable()
266 const TVariable *depthRangeVar = static_cast<const TVariable *>( in ReplaceGLDepthRangeWithDriverUniform()
[all …]
DSymbol.h110 class TVariable : public TSymbol
113 TVariable(TSymbolTable *symbolTable,
119 TVariable(TSymbolTable *symbolTable,
132 constexpr TVariable(const TSymbolUniqueId &id, in TVariable() function
147 constexpr TVariable(const TSymbolUniqueId &id, in TVariable() function
174 TVector<const TVariable *> *outputSymbols,
175 TMap<const TVariable *, TString> *outputSymbolsToAPINames,
276 const TVariable *createVariable(TSymbolTable *symbolTable) in createVariable()
282 return new TVariable(symbolTable, constName, constType, in createVariable()
301 void addParameter(const TVariable *p);
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DEmulateMultiDrawShaderBuiltins.cpp40 const TVariable *getGLDrawIDBuiltinVariable() { return mVariable; } in getGLDrawIDBuiltinVariable()
52 const TVariable *mVariable;
81 const TVariable *getGLBaseVertexBuiltinVariable() { return mVariable; } in getGLBaseVertexBuiltinVariable()
93 const TVariable *mVariable;
103 const TVariable *getGLBaseInstanceBuiltinVariable() { return mVariable; } in getGLBaseInstanceBuiltinVariable()
115 const TVariable *mVariable;
128 const TVariable *builtInVariable = traverser.getGLDrawIDBuiltinVariable(); in EmulateGLDrawID()
132 const TVariable *drawID = in EmulateGLDrawID()
133 new TVariable(symbolTable, kEmulatedGLDrawIDName, type, SymbolType::AngleInternal); in EmulateGLDrawID()
188 const TVariable *builtInVariableBaseVertex = in EmulateGLBaseVertexBaseInstance()
[all …]
DDeclareAndInitBuiltinsForInstancedMultiview.cpp35 void InitializeViewIDAndInstanceID(const TVariable *viewID, in InitializeViewIDAndInstanceID()
36 const TVariable *instanceID, in InitializeViewIDAndInstanceID()
80 void SelectViewIndexInVertexShader(const TVariable *viewID, in SelectViewIndexInVertexShader()
81 const TVariable *multiviewBaseViewLayerIndex, in SelectViewIndexInVertexShader()
137 const TVariable *viewID = in DeclareAndInitBuiltinsForInstancedMultiview()
138 new TVariable(symbolTable, kViewIDVariableName, in DeclareAndInitBuiltinsForInstancedMultiview()
151 const TVariable *instanceID = in DeclareAndInitBuiltinsForInstancedMultiview()
152 new TVariable(symbolTable, kInstanceIDVariableName, instanceIDVariableType, in DeclareAndInitBuiltinsForInstancedMultiview()
175 const TVariable *multiviewBaseViewLayerIndex = in DeclareAndInitBuiltinsForInstancedMultiview()
176 new TVariable(symbolTable, kMultiviewBaseViewLayerIndexVariableName, in DeclareAndInitBuiltinsForInstancedMultiview()
/third_party/glslang/glslang/HLSL/
DhlslParseHelper.h81 void assignToInterface(TVariable& variable);
88 …d remapEntryPointIO(TFunction& function, TVariable*& returnValue, TVector<TVariable*>& inputs, TVe…
177 void pushImplicitThis(TVariable* thisParameter) { implicitThisStack.push_back(thisParameter); } in pushImplicitThis()
179TVariable* getImplicitThis(int thisDepth) const { return implicitThisStack[implicitThisStack.size(… in getImplicitThis()
230 TVector<TVariable*> members; // individual flattened variables
238 TVariable* makeInternalVariable(const char* name, const TType&) const;
239 TVariable* makeInternalVariable(const TString& name, const TType& type) const { in makeInternalVariable()
243TVariable* declareNonArray(const TSourceLoc&, const TString& identifier, const TType&, bool track);
245 …TIntermNode* executeInitializer(const TSourceLoc&, TIntermTyped* initializer, TVariable* variable);
262 …int addFlattenedMember(const TVariable&, const TType&, TFlattenData&, const TString& name, bool l…
[all …]

12345678