Home
last modified time | relevance | path

Searched refs:TType (Results 1 – 25 of 77) sorted by relevance

1234

/external/swiftshader/src/OpenGL/compiler/
DSymbolTable.h87 …TVariable(const TString *name, const TType& t, bool uT = false ) : TSymbol(name), type(t), userTyp… in TSymbol()
90 TType& getType() { return type; } in getType()
91 const TType& getType() const { return type; } in getType()
94 void updateArrayInformationType(TType *t) { arrayInformationType = t; } in updateArrayInformationType()
95 TType* getArrayInformationType() { return arrayInformationType; } in getArrayInformationType()
118 TType type;
123TType *arrayInformationType; // this is used for updating maxArraySize in all the references to a…
133 TType *type;
144 returnType(TType(EbtVoid, EbpUndefined)), in TFunction()
148 …TFunction(const TString *name, const TType& retType, TOperator tOp = EOpNull, const char *ext = ""…
[all …]
DInitialize.cpp27 TType *float1 = new TType(EbtFloat); in InsertBuiltInFunctions()
28 TType *float2 = new TType(EbtFloat, 2); in InsertBuiltInFunctions()
29 TType *float3 = new TType(EbtFloat, 3); in InsertBuiltInFunctions()
30 TType *float4 = new TType(EbtFloat, 4); in InsertBuiltInFunctions()
31 TType *genType = new TType(EbtGenType); in InsertBuiltInFunctions()
33 TType *int1 = new TType(EbtInt); in InsertBuiltInFunctions()
34 TType *int2 = new TType(EbtInt, 2); in InsertBuiltInFunctions()
35 TType *int3 = new TType(EbtInt, 3); in InsertBuiltInFunctions()
36 TType *uint1 = new TType(EbtUInt); in InsertBuiltInFunctions()
37 TType *genIType = new TType(EbtGenIType); in InsertBuiltInFunctions()
[all …]
DTypes.h24 class TType; variable
31 TField(TType *type, TString *name, const TSourceLoc &line) in TField()
40 TType *type() in type()
44 const TType *type() const in type()
59 TType *mType;
239 class TType
244 TType(TBasicType t, int s0 = 1, int s1 = 1) :
251TType(TBasicType t, TPrecision p, TQualifier q = EvqTemporary, int s0 = 1, int s1 = 1, bool a = fa…
258 TType(TStructure* userDef, TPrecision p = EbpUndefined) :
265 TType(TInterfaceBlock *interfaceBlockIn, TQualifier qualifierIn, in TType() function
[all …]
DOutputASM.h60 ShaderVariable(const TType& type, const std::string& name, int registerIndex);
74 …Uniform(const TType& type, const std::string &name, int registerIndex, int blockId, const BlockMem…
105 BlockMemberInfo encodeType(const TType &type);
123 …virtual void getBlockLayoutInfo(const TType &type, unsigned int arraySize, bool isRowMajorMatrix, …
124 …virtual void advanceOffset(const TType &type, unsigned int arraySize, bool isRowMajorMatrix, int a…
138 …void getBlockLayoutInfo(const TType &type, unsigned int arraySize, bool isRowMajorMatrix, int *arr…
139 …void advanceOffset(const TType &type, unsigned int arraySize, bool isRowMajorMatrix, int arrayStri…
161 Varying(const TType& type, const std::string &name, int reg = -1, int col = -1)
296 void setPixelShaderInputs(const TType& type, int var, bool flat);
298 void declareVarying(const TType &type, const TString &name, int registerIndex);
[all …]
Dintermediate.h241 extern TOperator TypeToConstructorOperator(const TType &type);
307 TIntermTyped(const TType& t) : type(t) { } in TIntermTyped()
310 virtual void setType(const TType& t) { type = t; } in setType()
311 const TType& getType() const { return type; } in getType()
312 TType* getTypePointer() { return &type; } in getTypePointer()
340 TType type;
414 TIntermSymbol(int i, const TString& sym, const TType& t) : in TIntermSymbol()
432 …TIntermConstantUnion(ConstantUnion *unionPointer, const TType& t) : TIntermTyped(t), unionArrayPoi… in TIntermConstantUnion()
468 TIntermOperator(TOperator o) : TIntermTyped(TType(EbtFloat, EbpUndefined)), op(o) {} in TIntermOperator()
469 TIntermOperator(TOperator o, TType& t) : TIntermTyped(t), op(o) {} in TIntermOperator()
[all …]
DParseHelper.h101 const TType *getCurrentFunctionType() const { return mCurrentFunctionType; } in getCurrentFunctionType()
102 void setCurrentFunctionType(const TType *currentFunctionType) in setCurrentFunctionType()
127 bool constructorErrorCheck(const TSourceLoc &line, TIntermNode*, TFunction&, TOperator, TType*);
137 bool parameterSamplerErrorCheck(const TSourceLoc &line, TQualifier qualifier, const TType& type);
140 …amErrorCheck(const TSourceLoc &line, TQualifier qualifier, TQualifier paramQualifier, TType* type);
155 bool containsSampler(TType& type);
161 bool arraySetMaxSize(TIntermSymbol*, TType*, int, bool, const TSourceLoc&);
196 TIntermTyped* addConstructor(TIntermNode*, const TType*, TOperator, TFunction*, const TSourceLoc&);
197 TIntermTyped* foldConstConstructor(TIntermAggregate* aggrNode, const TType& type);
243 …bool declareVariable(const TSourceLoc &line, const TString &identifier, const TType &type, TVariab…
[all …]
DSymbolTable.cpp36 TType::TType(const TPublicType &p) : in TType() function in TType
50 void TType::buildMangledName(TString& mangledName) in buildMangledName()
98 size_t TType::getStructSize() const in getStructSize()
112 const TType *fieldType = field->type(); in containsArrays()
123 const TType *fieldType = field->type(); in containsType()
134 const TType *fieldType = field->type(); in containsSamplers()
DIntermediate.cpp27 bool CompareStructure(const TType& leftNodeType, ConstantUnion* rightUnionArray, ConstantUnion* lef…
33 static bool ValidateMultiplication(TOperator op, const TType &left, const TType &right) in ValidateMultiplication()
65 TOperator TypeToConstructorOperator(const TType &type) in TypeToConstructorOperator()
317 TIntermSymbol* TIntermediate::addSymbol(int id, const TString& name, const TType& type, const TSour… in addSymbol()
475 …ddUnaryMath(TOperator op, TIntermTyped* child, const TSourceLoc &line, const TType *funcReturnType) in addUnaryMath()
711 TIntermConstantUnion* TIntermediate::addConstantUnion(ConstantUnion* unionArrayPointer, const TType in addConstantUnion()
732 constIntNode = addConstantUnion(unionArray, TType(EbtInt, EbpUndefined, EvqConstExpr), line); in addSwizzle()
797 TType type(EbtInt, EbpUndefined, EvqConstExpr, 1); in CreateIndexNode()
879 bool TIntermUnary::promote(TInfoSink&, const TType *funcReturnType) in promote()
989 setType(TType(EbtBool, EbpUndefined)); in promote()
[all …]
Dlocalintermediate.h34 TIntermSymbol* addSymbol(int Id, const TString&, const TType&, const TSourceLoc&);
38 TIntermTyped* addUnaryMath(TOperator op, TIntermTyped* child, const TSourceLoc&, const TType*);
47 TIntermConstantUnion* addConstantUnion(ConstantUnion*, const TType&, const TSourceLoc&);
49 …bool parseConstTree(const TSourceLoc&, TIntermNode*, ConstantUnion*, TOperator, TType, bool single…
DParseHelper.cpp497 …rorCheck(const TSourceLoc &line, TIntermNode* node, TFunction& function, TOperator op, TType* type) in constructorErrorCheck()
775 …ontext::parameterSamplerErrorCheck(const TSourceLoc &line, TQualifier qualifier, const TType& type) in parameterSamplerErrorCheck()
786 bool TParseContext::containsSampler(TType& type) in containsSampler()
858 error(line, "cannot declare arrays of this qualifier", TType(type).getCompleteString().c_str()); in arrayQualifierErrorCheck()
876 error(line, "cannot declare arrays of arrays", TType(type).getCompleteString().c_str()); in arrayTypeErrorCheck()
885 TType(type).getCompleteString().c_str()); in arrayTypeErrorCheck()
892 bool TParseContext::arraySetMaxSize(TIntermSymbol *node, TType* type, int size, bool updateFlag, co… in arraySetMaxSize()
926 TType* tt = type; in arraySetMaxSize()
1008 bool TParseContext::declareVariable(const TSourceLoc &line, const TString &identifier, const TType in declareVariable()
1043 …ramErrorCheck(const TSourceLoc &line, TQualifier qualifier, TQualifier paramQualifier, TType* type) in paramErrorCheck()
[all …]
Dglslang.y239 TType t(variable->getType());
255 …$$ = context->intermediate.addConstantUnion(unionArray, TType(EbtInt, EbpUndefined, EvqConstExpr),…
260 …$$ = context->intermediate.addConstantUnion(unionArray, TType(EbtUInt, EbpUndefined, EvqConstExpr)…
265 …$$ = context->intermediate.addConstantUnion(unionArray, TType(EbtFloat, EbpUndefined, EvqConstExpr…
270 …$$ = context->intermediate.addConstantUnion(unionArray, TType(EbtBool, EbpUndefined, EvqConstExpr)…
351 TParameter param = { 0, new TType($2->getType()) };
357 TParameter param = { 0, new TType($3->getType()) };
382 TType type(EbtVoid, EbpUndefined);
389 TType type(EbtVoid, EbpUndefined);
703 TType type($1);
[all …]
/external/deqp-deps/glslang/hlsl/
DhlslGrammar.cpp272 bool HlslGrammar::acceptSamplerDeclarationDX9(TType& /*type*/) in acceptSamplerDeclarationDX9() argument
364 TType declaredType; in acceptDeclaration()
443 TType variableType; in acceptDeclaration()
543 TType type; in acceptControlDeclaration()
585 bool HlslGrammar::acceptFullySpecifiedType(TType& type, const TAttributes& attributes) in acceptFullySpecifiedType()
590 bool HlslGrammar::acceptFullySpecifiedType(TType& type, TIntermNode*& nodeList, const TAttributes& … in acceptFullySpecifiedType()
843 bool HlslGrammar::acceptVectorTemplateType(TType& type) in acceptVectorTemplateType()
850 new(&type) TType(EbtFloat, EvqTemporary, 4); in acceptVectorTemplateType()
878 new(&type) TType(basicType, EvqTemporary, vecSizeI); in acceptVectorTemplateType()
895 bool HlslGrammar::acceptMatrixTemplateType(TType& type) in acceptMatrixTemplateType()
[all …]
DhlslGrammar.h71 bool acceptSamplerDeclarationDX9(TType&);
73 bool acceptFullySpecifiedType(TType&, const TAttributes&);
74 …bool acceptFullySpecifiedType(TType&, TIntermNode*& nodeList, const TAttributes&, bool forbidDecla…
77 bool acceptType(TType&);
78 bool acceptType(TType&, TIntermNode*& nodeList);
80 bool acceptVectorTemplateType(TType&);
81 bool acceptMatrixTemplateType(TType&);
83 bool acceptTessellationPatchTemplateType(TType&);
84 bool acceptStreamOutTemplateType(TType&, TLayoutGeometry&);
87 bool acceptSamplerTypeDX9(TType &);
[all …]
DhlslParseHelper.h61 virtual void setUniformBlockDefaults(TType& block) const override in setUniformBlockDefaults()
86 …void transferTypeAttributes(const TSourceLoc&, const TAttributes&, TType&, bool allowEntry = false…
106 TFunction* makeConstructorCall(const TSourceLoc&, const TType&);
124 bool constructorError(const TSourceLoc&, TIntermNode*, TFunction&, TOperator, TType&);
127 void structArrayCheck(const TSourceLoc&, const TType& structure);
134 void paramFix(TType& type);
135 void specializationCheck(const TSourceLoc&, const TType&, const char* op);
145 void declareTypedef(const TSourceLoc&, const TString& identifier, const TType&);
146 void declareStruct(const TSourceLoc&, TString& structName, TType&);
147 TSymbol* lookupUserType(const TString&, TType&);
[all …]
DhlslParseHelper.cpp169 void HlslParseContext::growGlobalUniformBlock(const TSourceLoc& loc, TType& memberType, const TStri… in growGlobalUniformBlock()
185 TLayoutFormat HlslParseContext::getLayoutFromTxType(const TSourceLoc& loc, const TType& txType) in getLayoutFromTxType()
277 …d = [&](TIntermSymbol* rhsTmp, TIntermTyped* object, TIntermTyped* coord, const TType& derefType) { in handleLvalue()
296 storeOp->setType(TType(EbtVoid)); in handleLvalue()
309 …const auto finishSequence = [&](TIntermSymbol* rhsTmp, const TType& derefType) -> TIntermAggregate… in handleLvalue()
378 TType objDerefType; in handleLvalue()
702 variable = new TVariable(string, TType(EbtVoid)); in handleVariable()
735 TType sampReturnType; in handleBracketOperator()
769 const TType derefType(sbArray->getType(), 0); in handleBracketOperator()
790 … return intermediate.addConversion(EOpConstructUint, TType(EbtUint, EvqTemporary, vecSize), index); in makeIntegerIndex()
[all …]
/external/deqp-deps/glslang/glslang/MachineIndependent/
DParseHelper.h110 void checkIndex(const TSourceLoc&, const TType&, int& index);
153 …virtual void growGlobalUniformBlock(const TSourceLoc&, TType&, const TString& memberName, TTypeLis…
176 … const TType* currentFunctionType; // the return type of the function that's currently being parsed
208 std::function<bool(const TType&, const TType&, TOperator, int arg)>,
209 std::function<bool(const TType&, const TType&, const TType&)>,
222 virtual void setUniformBlockDefaults(TType&) const { } in setUniformBlockDefaults() argument
298 bool isIoResizeArray(const TType&) const;
299 void fixIoArraySize(const TSourceLoc&, TType&);
300 void ioArrayCheck(const TSourceLoc&, const TType&, const TString& identifier);
304 …void checkIoArrayConsistency(const TSourceLoc&, int requiredSize, const char* feature, TType&, con…
[all …]
Diomapper.cpp422 …virtual bool validateBinding(EShLanguage /*stage*/, const char* /*name*/, const glslang::TType& ty…
424 …virtual int resolveBinding(EShLanguage /*stage*/, const char* /*name*/, const glslang::TType& type…
426 …int resolveSet(EShLanguage /*stage*/, const char* /*name*/, const glslang::TType& type, bool /*is_… in resolveSet()
437 …int resolveUniformLocation(EShLanguage /*stage*/, const char* name, const glslang::TType& type, bo… in resolveUniformLocation()
468 …bool validateInOut(EShLanguage /*stage*/, const char* /*name*/, const TType& /*type*/, bool /*is_l… in validateInOut()
472 …int resolveInOutLocation(EShLanguage stage, const char* /*name*/, const TType& type, bool /*is_liv… in resolveInOutLocation()
500 TType elementType(type, 0); in resolveInOutLocation()
509 …int resolveInOutComponent(EShLanguage /*stage*/, const char* /*name*/, const TType& /*type*/, bool… in resolveInOutComponent()
513 …int resolveInOutIndex(EShLanguage /*stage*/, const char* /*name*/, const TType& /*type*/, bool /*i… in resolveInOutIndex()
518 … void notifyBinding(EShLanguage, const char* /*name*/, const TType&, bool /*is_live*/) override {} in notifyBinding()
[all …]
Dlocalintermediate.h451 TIntermSymbol* addSymbol(const TType&, const TSourceLoc&);
453 TIntermTyped* addConversion(TOperator, const TType&, TIntermTyped*) const;
455 TIntermTyped* addUniShapeConversion(TOperator, const TType&, TIntermTyped*);
457 TIntermTyped* addShapeConversion(const TType&, TIntermTyped*);
462 …FunctionCall(const TSourceLoc& line, TOperator, bool unary, TIntermNode*, const TType& returnType);
469 TOperator mapTypeToConstructorOp(const TType&) const;
475 TIntermTyped* setAggregateOperator(TIntermNode*, TOperator, const TType& type, TSourceLoc);
480 TIntermTyped* addMethod(TIntermTyped*, const TType&, const TString*, const TSourceLoc&);
481 …TIntermConstantUnion* addConstantUnion(const TConstUnionArray&, const TType&, const TSourceLoc&, b…
494 …bool parseConstTree(TIntermNode*, TConstUnionArray, TOperator, const TType&, bool singleConstantPa…
[all …]
DSymbolTable.h103 virtual const TType& getType() const = 0;
104 virtual TType& getWritableType() = 0;
154 TVariable(const TString *name, const TType& t, bool uT = false )
164 virtual const TType& getType() const { return type; } in getType()
165 virtual TType& getWritableType() { assert(writable); return type; } in getWritableType()
181 TType type;
200 TType* type;
223 TFunction(const TString *name, const TType& retType, TOperator tOp = EOpNull) :
253 virtual void addThisParameter(TType& type, const char* name) in addThisParameter()
255 TParameter p = { NewPoolTString(name), new TType, nullptr }; in addThisParameter()
[all …]
DlinkValidate.cpp472 void TIntermediate::mergeImplicitArraySizes(TType& type, const TType& unitType) in mergeImplicitArraySizes()
940 const TType& type = linkObjects[i]->getAsTyped()->getType(); in inOutLocationCheck()
997 int TIntermediate::addUsedLocation(const TQualifier& qualifier, const TType& type, bool& typeCollis… in addUsedLocation()
1022 TType elementType(type, 0); in addUsedLocation()
1102 int TIntermediate::checkLocationRange(int set, const TIoRange& range, const TType& type, bool& type… in checkLocationRange()
1157 int TIntermediate::computeTypeLocationSize(const TType& type, EShLanguage stage) in computeTypeLocationSize()
1164 TType elementType(type, 0); in computeTypeLocationSize()
1185 TType memberType(type, member); in computeTypeLocationSize()
1212 TType columnType(type, 0); in computeTypeLocationSize()
1221 int TIntermediate::computeTypeUniformLocationSize(const TType& type) in computeTypeUniformLocationSize()
[all …]
DParseContextBase.cpp251 void TParseContextBase::checkIndex(const TSourceLoc& loc, const TType& type, int& index) in checkIndex()
338 std::function<bool(const TType& from, const TType& to, TOperator op, int arg)> convertible, in selectFunction()
339 std::function<bool(const TType& from, const TType& to1, const TType& to2)> better, in selectFunction()
571 void TParseContextBase::growGlobalUniformBlock(const TSourceLoc& loc, TType& memberType, const TStr… in growGlobalUniformBlock()
578TType blockType(new TTypeList, *NewPoolTString(getGlobalUniformBlockName()), blockQualifier); in growGlobalUniformBlock()
589 TType* type = new TType; in growGlobalUniformBlock()
Dreflection.cpp106 const TType &type = base.getType(); in addAttribute()
118 int getOffset(const TType& type, int index) in getOffset()
149 int getBlockSize(const TType& blockType) in getBlockSize()
171 …void blowUpActiveAggregate(const TType& baseType, const TString& baseName, const TList<TIntermBina… in blowUpActiveAggregate()
176 const TType* terminalType = &baseType; in blowUpActiveAggregate()
190 TType derefType(*terminalType, 0); in blowUpActiveAggregate()
222 TType derefType(*terminalType, 0); in blowUpActiveAggregate()
232 TType derefType(*terminalType, i); in blowUpActiveAggregate()
278 const TType& leftType = topNode->getLeft()->getType(); in addDereferencedUniform()
308 TType derefType(base->getType(), 0); in addDereferencedUniform()
[all …]
DIntermediate.cpp68 TIntermSymbol* TIntermediate::addSymbol(int id, const TString& name, const TType& type, const TCons… in addSymbol()
102 TIntermSymbol* TIntermediate::addSymbol(const TType& type, const TSourceLoc& loc) in addSymbol()
189 …ode(TOperator op, TIntermTyped* left, TIntermTyped* right, TSourceLoc loc, const TType& type) const in addBinaryNode()
213 …ermediate::addUnaryNode(TOperator op, TIntermTyped* child, TSourceLoc loc, const TType& type) const in addUnaryNode()
326 child = addConversion(op, TType(newType, EvqTemporary, child->getVectorSize(), in addUnaryMath()
383 TIntermNode* childNode, const TType& returnType) in addBuiltInFunctionCall()
420 TIntermTyped* TIntermediate::setAggregateOperator(TIntermNode* node, TOperator op, const TType& typ… in setAggregateOperator()
712TType newType(convertTo, EvqTemporary, node->getVectorSize(), node->getMatrixCols(), node->getMatr… in createConversion()
870 TIntermTyped* TIntermediate::addConversion(TOperator op, const TType& type, TIntermTyped* node) con… in addConversion()
1053 TIntermTyped* TIntermediate::addUniShapeConversion(TOperator op, const TType& type, TIntermTyped* n… in addUniShapeConversion()
[all …]
/external/deqp-deps/glslang/glslang/Include/
DTypes.h260 class TType; variable
262 TType* type;
1228 const TType* userDef;
1284 class TType {
1289 …explicit TType(TBasicType t = EbtVoid, TStorageQualifier q = EvqTemporary, int vs = 1, int mc = 0,… in POOL_ALLOCATOR_NEW_DELETE()
1300TType(TBasicType t, TStorageQualifier q, TPrecisionQualifier p, int vs = 1, int mc = 0, int mr = 0,
1313 explicit TType(const TPublicType& p) : in TType() function
1334 TType(const TSampler& sampler, TStorageQualifier q = EvqUniform, TArraySizes* as = nullptr) :
1345 TType(const TType& type, int derefIndex, bool rowMajor = false)
1382 TType(TTypeList* userDef, const TString& n) : in TType() function
[all …]
/external/deqp-deps/glslang/glslang/Public/
DShaderLang.h128 class TType; variable
635 …virtual bool validateBinding(EShLanguage stage, const char* name, const TType& type, bool is_live)…
638 …virtual int resolveBinding(EShLanguage stage, const char* name, const TType& type, bool is_live) =…
641 virtual int resolveSet(EShLanguage stage, const char* name, const TType& type, bool is_live) = 0;
644 …virtual int resolveUniformLocation(EShLanguage stage, const char* name, const TType& type, bool is…
647 …virtual bool validateInOut(EShLanguage stage, const char* name, const TType& type, bool is_live) =…
650 …virtual int resolveInOutLocation(EShLanguage stage, const char* name, const TType& type, bool is_l…
653 …virtual int resolveInOutComponent(EShLanguage stage, const char* name, const TType& type, bool is_…
656 …virtual int resolveInOutIndex(EShLanguage stage, const char* name, const TType& type, bool is_live…
658 …virtual void notifyBinding(EShLanguage stage, const char* name, const TType& type, bool is_live) =…
[all …]

1234