Home
last modified time | relevance | path

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

12345678

/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 POOL_ALLOCATOR_NEW_DELETE()
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) : in POOL_ALLOCATOR_NEW_DELETE()
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 …]
/external/angle/src/compiler/translator/
DTypes.cpp126 TType::TType() : TType(EbtVoid, 0, 0) {} in TType() function in sh::TType
128 TType::TType(TBasicType t, unsigned char ps, unsigned char ss) in TType() function in sh::TType
129 : TType(t, EbpUndefined, EvqGlobal, ps, ss) in TType()
132 TType::TType(TBasicType t, TPrecision p, TQualifier q, unsigned char ps, unsigned char ss) in TType() function in sh::TType
133 : TType(t, p, q, ps, ss, TSpan<const unsigned int>(), nullptr) in TType()
136 TType::TType(const TPublicType &p) in TType() function in sh::TType
165 TType::TType(const TStructure *userDef, bool isStructSpecifier) in TType() function in sh::TType
166 : TType(EbtStruct, EbpUndefined, EvqTemporary, 1, 1) in TType()
172 TType::TType(const TInterfaceBlock *interfaceBlockIn, in TType() function in sh::TType
175 : TType(EbtInterfaceBlock, EbpUndefined, qualifierIn, 1, 1) in TType()
[all …]
Dutil.cpp200 GLenum GLVariableType(const TType &type) in GLVariableType()
446 GLenum GLVariablePrecision(const TType &type) in GLVariablePrecision()
487 ImmutableString ArrayString(const TType &type) in ArrayString()
508 ImmutableString GetTypeName(const TType &type, ShHashFunction64 hashFunction, NameMap *nameMap) in GetTypeName()
601 TType GetShaderVariableBasicType(const sh::ShaderVariable &var) in GetShaderVariableBasicType()
606 return TType(EbtBool); in GetShaderVariableBasicType()
608 return TType(EbtBool, 2); in GetShaderVariableBasicType()
610 return TType(EbtBool, 3); in GetShaderVariableBasicType()
612 return TType(EbtBool, 4); in GetShaderVariableBasicType()
614 return TType(EbtFloat); in GetShaderVariableBasicType()
[all …]
DTypes.h22 class TType; variable
34 TField(TType *type, const ImmutableString &name, const TSourceLoc &line, SymbolType symbolType) in TField()
42 TType *type() { return mType; } in type()
43 const TType *type() const { return mType; } in type()
49 TType *mType;
91 class TType
95 TType();
96 explicit TType(TBasicType t, unsigned char ps = 1, unsigned char ss = 1);
97 TType(TBasicType t,
102 explicit TType(const TPublicType &p);
[all …]
DStaticType.h48 name.name[0] = TType::GetSizeMangledName(primarySize, secondarySize); in BuildStaticMangledName()
132 static constexpr TType instance =
133 TType(basicType,
149 static constexpr TType arrayInstance =
150 TType(basicType,
169 constexpr const TType *Get() in Get()
183 constexpr const TType *GetArray() in GetArray()
198 constexpr const TType *GetBasic() in GetBasic()
207 const TType *GetQualified() in GetQualified()
222 constexpr const TType *GetForVecMatHelper(unsigned char primarySize) in GetForVecMatHelper()
[all …]
DOutputGLSLBase.h44 std::string getMemoryQualifiers(const TType &type);
47 void writeInvariantQualifier(const TType &type);
48 void writePreciseQualifier(const TType &type);
49 virtual void writeVariableType(const TType &type,
54 const TConstantUnion *writeConstantUnion(const TType &type, const TConstantUnion *pConstUnion);
55 void writeConstructorTriplet(Visit visit, const TType &type);
56 ImmutableString getTypeName(const TType &type);
91 void writeQualifier(TQualifier qualifier, const TType &type, const TSymbol *symbol);
132 bool NeedsToWriteLayoutQualifier(const TType &type);
DSymbol.h85 const TType *type,
89 const TType &getType() const { return *mType; } in getType()
100 const TType *type) in TVariable()
107 const TType *mType;
185 const TType *constType = type; in createVariable()
193 TType *type;
204 const TType *retType,
220 const TType &getReturnType() const { return *returnType; } in getReturnType()
246 const TType *retType, in TFunction()
268 const TType *const returnType;
DParseContext.h116 void assignError(const TSourceLoc &line, const char *op, const TType &left, const TType &right);
117 void unaryOpError(const TSourceLoc &line, const char *op, const TType &operand);
120 const TType &left,
121 const TType &right);
133 const TType &type);
141 const TType &arrayType);
158 TType *type);
178 void emptyDeclarationErrorCheck(const TType &type, const TSourceLoc &location);
210 TType *type,
496 const TType *type,
[all …]
/external/angle/third_party/glslang/src/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 …]
/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 …]
/external/deqp-deps/glslang/glslang/MachineIndependent/
DParseHelper.h113 void checkIndex(const TSourceLoc&, const TType&, int& index);
157 …virtual void growGlobalUniformBlock(const TSourceLoc&, TType&, const TString& memberName, TTypeLis…
181 … const TType* currentFunctionType; // the return type of the function that's currently being parsed
215 std::function<bool(const TType&, const TType&, TOperator, int arg)>,
216 std::function<bool(const TType&, const TType&, const TType&)>,
229 virtual void setUniformBlockDefaults(TType&) const { } in setUniformBlockDefaults() argument
306 void ioArrayCheck(const TSourceLoc&, const TType&, const TString& identifier);
308 bool isIoResizeArray(const TType&) const;
309 void fixIoArraySize(const TSourceLoc&, TType&);
313 …void checkIoArrayConsistency(const TSourceLoc&, int requiredSize, const char* feature, TType&, con…
[all …]
/external/angle/third_party/glslang/src/glslang/MachineIndependent/
DParseHelper.h113 void checkIndex(const TSourceLoc&, const TType&, int& index);
157 …virtual void growGlobalUniformBlock(const TSourceLoc&, TType&, const TString& memberName, TTypeLis…
181 … const TType* currentFunctionType; // the return type of the function that's currently being parsed
215 std::function<bool(const TType&, const TType&, TOperator, int arg)>,
216 std::function<bool(const TType&, const TType&, const TType&)>,
229 virtual void setUniformBlockDefaults(TType&) const { } in setUniformBlockDefaults() argument
306 void ioArrayCheck(const TSourceLoc&, const TType&, const TString& identifier);
308 bool isIoResizeArray(const TType&) const;
309 void fixIoArraySize(const TSourceLoc&, TType&);
313 …void checkIoArrayConsistency(const TSourceLoc&, int requiredSize, const char* feature, TType&, con…
[all …]
/external/angle/src/tests/compiler_tests/
DType_test.cpp26 const TType *staticTypeScalar = StaticType::Get<EbtFloat, EbpMedium, EvqGlobal, 1, 1>(); in TEST()
27 const TType *staticTypeVec2 = StaticType::Get<EbtFloat, EbpMedium, EvqGlobal, 2, 1>(); in TEST()
28 const TType *staticTypeMat2x4 = StaticType::Get<EbtFloat, EbpMedium, EvqGlobal, 2, 4>(); in TEST()
29 TType *typeScalar = new TType(EbtFloat, EbpMedium, EvqGlobal, 1, 1); in TEST()
30 TType *typeVec2 = new TType(EbtFloat, EbpMedium, EvqGlobal, 2, 1); in TEST()
31 TType *typeMat2x4 = new TType(EbtFloat, EbpMedium, EvqGlobal, 2, 4); in TEST()
DInitOutputVariables_test.cpp34 const TType &expectedType = expected->getType(); in AreSymbolsTheSame()
35 const TType &candidateType = candidate->getType(); in AreSymbolsTheSame()
67 TIntermTyped *CreateLValueNode(const ImmutableString &lValueName, const TType &type) in CreateLValueNode()
72 new TVariable(&symbolTable, lValueName, new TType(type), SymbolType::UserDefined); in CreateLValueNode()
77 const TType &elementType, in CreateIndexedLValueNodeList()
81 TType *arrayType = new TType(elementType); in CreateIndexedLValueNodeList()
260 CreateLValueNode(ImmutableString("out1"), TType(EbtFloat, EbpMedium, EvqVertexOut, 4)), in TEST_F()
261 CreateLValueNode(ImmutableString("out2"), TType(EbtInt, EbpLow, EvqFlatOut)), in TEST_F()
262 CreateLValueNode(ImmutableString("out3"), TType(EbtFloat, EbpMedium, EvqCentroidOut)), in TEST_F()
263 CreateLValueNode(ImmutableString("out4"), TType(EbtFloat, EbpMedium, EvqSmoothOut))}; in TEST_F()
[all …]
DIntermNode_test.cpp38 TIntermSymbol *createTestSymbol(const TType &type) in createTestSymbol()
48 TType *variableType = new TType(type); in createTestSymbol()
59 TType type(EbtFloat, EbpHigh); in createTestSymbol()
63 TFunction *createTestFunction(const TType &returnType, const TIntermSequence &args) in createTestFunction()
69 new TType(returnType), false); in createTestFunction()
72 const TType *type = new TType(arg->getAsTyped()->getType()); in createTestFunction()
79 void checkTypeEqualWithQualifiers(const TType &original, const TType &copy) in checkTypeEqualWithQualifiers()
142 const TType *type = StaticType::Get<EbtInt, EbpHigh, EvqTemporary, 1, 1>(); in TEST_F()
160 TType type(EbtInt, EbpHigh); in TEST_F()
178 TType type(EbtFloat, EbpHigh); in TEST_F()
[all …]
/external/angle/src/compiler/translator/tree_util/
DIntermNode_util.cpp48 TIntermTyped *CreateZeroNode(const TType &type) in CreateZeroNode()
50 TType constType(type); in CreateZeroNode()
93 TType elementType(type); in CreateZeroNode()
121 TType type(EbtFloat, EbpUndefined, EvqConst, 1); in CreateFloatNode()
130 TType type(EbtInt, EbpUndefined, EvqConst, 1); in CreateIndexNode()
139 TType type(EbtBool, EbpUndefined, EvqConst, 1); in CreateBoolNode()
143 TVariable *CreateTempVariable(TSymbolTable *symbolTable, const TType *type) in CreateTempVariable()
151 TVariable *CreateTempVariable(TSymbolTable *symbolTable, const TType *type, TQualifier qualifier) in CreateTempVariable()
158 TType *typeWithQualifier = new TType(*type); in CreateTempVariable()
198 const TType *type, in DeclareTempVariable()
[all …]
/external/angle/src/compiler/translator/tree_ops/
DRewriteRowMajorMatrices.cpp49 const TType *type = field->type(); in DoesFieldContainRowMajorMatrix()
55 return new TField(new TType(*field->type()), field->name(), field->line(), field->symbolType()); in DuplicateField()
58 void SetColumnMajor(TType *type) in SetColumnMajor()
65 TType *TransposeMatrixType(const TType *type) in TransposeMatrixType()
67 TType *newType = new TType(*type); in TransposeMatrixType()
77 void CopyArraySizes(const TType *from, TType *to) in CopyArraySizes()
258 const TType &baseType = firstElement->getType(); in constructReadTransformExpression()
311 const TType &baseType, in constructReadTransformExpressionHelper()
316 TType *transformedType = new TType(baseType); in constructReadTransformExpressionHelper()
349 const TType &mBaseExpressionType;
[all …]
DRemoveDynamicIndexing.cpp31 const TType *kIndexType = StaticType::Get<EbtInt, EbpHigh, EvqIn, 1, 1>();
37 std::string GetIndexFunctionName(const TType &type, bool write) in GetIndexFunctionName()
77 return new TIntermConstantUnion(constant, TType(EbtInt, EbpHigh)); in CreateIntConstantNode()
87 return TIntermAggregate::CreateConstructor(TType(EbtInt), arguments); in EnsureSignedInt()
90 TType *GetFieldType(const TType &indexedType) in GetFieldType()
94 TType *fieldType = new TType(indexedType.getBasicType(), indexedType.getPrecision()); in GetFieldType()
100 return new TType(indexedType.getBasicType(), indexedType.getPrecision()); in GetFieldType()
104 const TType *GetBaseType(const TType &type, bool write) in GetBaseType()
106 TType *baseType = new TType(type); in GetBaseType()
161 TIntermFunctionDefinition *GetIndexFunctionDefinition(const TType &type, in GetIndexFunctionDefinition()
[all …]
DRewriteStructSamplersOld.cpp20 TType *GetStructSamplerParameterType(TSymbolTable *symbolTable, const TVariable &param) in GetStructSamplerParameterType()
26 TType *structType = new TType(structVar, false); in GetStructSamplerParameterType()
42 TType *newType = GetStructSamplerParameterType(symbolTable, oldVariable); in ReplaceTypeOfSymbolNode()
114 const TType &type = declarator->getType(); in visitDeclaration()
279 const TType &fieldType = *field->type(); in stripStructSpecifierSamplers()
282 TType *newType = nullptr; in stripStructSpecifierSamplers()
290 newType = new TType(fieldStruct, true); in stripStructSpecifierSamplers()
298 newType = new TType(fieldType); in stripStructSpecifierSamplers()
316 TType *newStructType = new TType(newStruct, true); in stripStructSpecifierSamplers()
330 bool isRemovedStructType(const TType &type) const in isRemovedStructType()
[all …]

12345678