Home
last modified time | relevance | path

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

12345678910

/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.cpp164 TType::TType() : TType(EbtVoid, 0, 0) {} in TType() function in sh::TType
166 TType::TType(TBasicType t, unsigned char ps, unsigned char ss) in TType() function in sh::TType
167 : TType(t, EbpUndefined, EvqGlobal, ps, ss) in TType()
170 TType::TType(TBasicType t, TPrecision p, TQualifier q, unsigned char ps, unsigned char ss) in TType() function in sh::TType
171 : TType(t, p, q, ps, ss, TSpan<const unsigned int>(), nullptr) in TType()
174 TType::TType(const TPublicType &p) in TType() function in sh::TType
204 TType::TType(const TStructure *userDef, bool isStructSpecifier) in TType() function in sh::TType
205 : TType(EbtStruct, EbpUndefined, EvqTemporary, 1, 1) in TType()
211 TType::TType(const TInterfaceBlock *interfaceBlockIn, in TType() function in sh::TType
214 : TType(EbtInterfaceBlock, EbpUndefined, qualifierIn, 1, 1) in TType()
[all …]
Dutil.cpp253 GLenum GLVariableType(const TType &type) in GLVariableType()
390 GLenum GLVariablePrecision(const TType &type) in GLVariablePrecision()
431 ImmutableString ArrayString(const TType &type) in ArrayString()
452 ImmutableString GetTypeName(const TType &type, ShHashFunction64 hashFunction, NameMap *nameMap) in GetTypeName()
619 TType GetShaderVariableBasicType(const sh::ShaderVariable &var) in GetShaderVariableBasicType()
624 return TType(EbtBool); in GetShaderVariableBasicType()
626 return TType(EbtBool, 2); in GetShaderVariableBasicType()
628 return TType(EbtBool, 3); in GetShaderVariableBasicType()
630 return TType(EbtBool, 4); in GetShaderVariableBasicType()
632 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()
204 constexpr const TType *GetTemporary() in GetTemporary()
213 const TType *GetQualified() in GetQualified()
[all …]
DOutputGLSLBase.h45 std::string getMemoryQualifiers(const TType &type);
48 void writeInvariantQualifier(const TType &type);
49 void writePreciseQualifier(const TType &type);
50 virtual void writeVariableType(const TType &type,
55 const TConstantUnion *writeConstantUnion(const TType &type, const TConstantUnion *pConstUnion);
56 void writeConstructorTriplet(Visit visit, const TType &type);
57 ImmutableString getTypeName(const TType &type);
92 void writeQualifier(TQualifier qualifier, const TType &type, const TSymbol *symbol);
99 void declareInterfaceBlockLayout(const TType &type);
100 void declareInterfaceBlock(const TType &type);
[all …]
/external/deqp-deps/glslang/glslang/HLSL/
DhlslGrammar.cpp272 bool HlslGrammar::acceptSamplerDeclarationDX9(TType& /*type*/) in acceptSamplerDeclarationDX9() argument
364 TType declaredType; in acceptDeclaration()
453 TType variableType; in acceptDeclaration()
554 TType type; in acceptControlDeclaration()
596 bool HlslGrammar::acceptFullySpecifiedType(TType& type, const TAttributes& attributes) in acceptFullySpecifiedType()
601 bool HlslGrammar::acceptFullySpecifiedType(TType& type, TIntermNode*& nodeList, const TAttributes& … in acceptFullySpecifiedType()
856 bool HlslGrammar::acceptVectorTemplateType(TType& type) in acceptVectorTemplateType()
863 new(&type) TType(EbtFloat, EvqTemporary, 4); in acceptVectorTemplateType()
891 new(&type) TType(basicType, EvqTemporary, vecSizeI); in acceptVectorTemplateType()
908 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/angle/third_party/vulkan-deps/glslang/src/glslang/HLSL/
DhlslGrammar.cpp274 bool HlslGrammar::acceptSamplerDeclarationDX9(TType& /*type*/) in acceptSamplerDeclarationDX9() argument
366 TType declaredType; in acceptDeclaration()
455 TType variableType; in acceptDeclaration()
556 TType type; in acceptControlDeclaration()
598 bool HlslGrammar::acceptFullySpecifiedType(TType& type, const TAttributes& attributes) in acceptFullySpecifiedType()
603 bool HlslGrammar::acceptFullySpecifiedType(TType& type, TIntermNode*& nodeList, const TAttributes& … in acceptFullySpecifiedType()
858 bool HlslGrammar::acceptVectorTemplateType(TType& type) in acceptVectorTemplateType()
865 new(&type) TType(EbtFloat, EvqTemporary, 4); in acceptVectorTemplateType()
893 new(&type) TType(basicType, EvqTemporary, vecSizeI); in acceptVectorTemplateType()
910 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/angle/src/compiler/translator/TranslatorMetalDirect/
DAstHelpers.h107 bool IsScalarBasicType(const TType &type);
110 bool IsVectorBasicType(const TType &type);
114 bool HasScalarBasicType(const TType &type);
120 TType &CloneType(const TType &type);
123 TType &InnermostType(const TType &type);
126 TType &DropColumns(const TType &matrixType);
129 TType &DropOuterDimension(const TType &arrayType);
132 TType &SetVectorDim(const TType &type, int newDim);
135 TType &SetMatrixRowDim(const TType &matrixType, int newDim);
151 TIntermTyped &CoerceSimple(const TType &toType, TIntermTyped &fromNode);
[all …]
DAstHelpers.cpp42 auto *type = new TType(&structure, true); in CreateStructTypeVariable()
53 auto *type = new TType(&structure, false); in CreateInstanceVariable()
168 auto *newReturnType = new TType(&newReturn, true); in CloneFunctionAndChangeReturnType()
229 const TType &type = object.getType(); in AccessFieldByIndex()
239 new TIntermConstantUnion(new TConstantUnion(index), *new TType(TBasicType::EbtInt))); in AccessFieldByIndex()
245 const TType &type = indexableNode.getType(); in AccessIndex()
251 new TIntermConstantUnion(new TConstantUnion(index), *new TType(TBasicType::EbtInt))); in AccessIndex()
280 bool sh::IsScalarBasicType(const TType &type) in IsScalarBasicType()
289 bool sh::IsVectorBasicType(const TType &type) in IsVectorBasicType()
314 bool sh::HasScalarBasicType(const TType &type) in HasScalarBasicType()
[all …]
/external/angle/src/compiler/translator/tree_util/
DDriverUniform.cpp56 const std::array<TType *, kNumComputeDriverUniforms> kDriverUniformTypes = {{ in addComputeDriverUniformsToShader()
57 new TType(EbtUInt, 4), in addComputeDriverUniformsToShader()
87 const std::array<TType *, kNumGraphicsDriverUniforms> kDriverUniformTypes = {{ in createUniformFields()
88 new TType(EbtFloat, 4), in createUniformFields()
89 new TType(EbtUInt), // uint clipDistancesEnabled; // 32 bits for 32 clip distances max in createUniformFields()
90 new TType(EbtUInt), in createUniformFields()
91 new TType(EbtInt), in createUniformFields()
92 new TType(EbtInt), in createUniformFields()
93 new TType(EbtInt, 4), in createUniformFields()
94 new TType(EbtUInt, 4), in createUniformFields()
[all …]
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(EbtUInt, EbpUndefined, EvqConst, 1); in CreateUIntNode()
148 TType type(EbtBool, EbpUndefined, EvqConst, 1); in CreateBoolNode()
152 TVariable *CreateTempVariable(TSymbolTable *symbolTable, const TType *type) in CreateTempVariable()
160 TVariable *CreateTempVariable(TSymbolTable *symbolTable, const TType *type, TQualifier qualifier) in CreateTempVariable()
167 TType *typeWithQualifier = new TType(*type); in CreateTempVariable()
[all …]
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/
DParseHelper.h116 void checkIndex(const TSourceLoc&, const TType&, int& index);
159 …virtual void growGlobalUniformBlock(const TSourceLoc&, TType&, const TString& memberName, TTypeLis…
162 …virtual void growAtomicCounterBlock(int binding, const TSourceLoc&, TType&, const TString& memberN…
186 … const TType* currentFunctionType; // the return type of the function that's currently being parsed
220 std::function<bool(const TType&, const TType&, TOperator, int arg)>,
221 std::function<bool(const TType&, const TType&, const TType&)>,
234 virtual void setUniformBlockDefaults(TType&) const { } in setUniformBlockDefaults() argument
243 virtual void setAtomicCounterBlockDefaults(TType&) const {} in setAtomicCounterBlockDefaults() argument
315 …virtual void growGlobalUniformBlock(const TSourceLoc&, TType&, const TString& memberName, TTypeLis…
316 …virtual void growAtomicCounterBlock(int binding, const TSourceLoc&, TType&, const TString& memberN…
[all …]
/external/deqp-deps/glslang/glslang/MachineIndependent/
DParseHelper.h115 void checkIndex(const TSourceLoc&, const TType&, int& index);
159 …virtual void growGlobalUniformBlock(const TSourceLoc&, TType&, const TString& memberName, TTypeLis…
184 … const TType* currentFunctionType; // the return type of the function that's currently being parsed
218 std::function<bool(const TType&, const TType&, TOperator, int arg)>,
219 std::function<bool(const TType&, const TType&, const TType&)>,
232 virtual void setUniformBlockDefaults(TType&) const { } in setUniformBlockDefaults() argument
309 void ioArrayCheck(const TSourceLoc&, const TType&, const TString& identifier);
311 bool isIoResizeArray(const TType&) const;
312 void fixIoArraySize(const TSourceLoc&, TType&);
316 …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_ops/
DForcePrecisionQualifier.cpp27 void overwriteVariablePrecision(TType *type) const;
34 void TPrecisionTraverser::overwriteVariablePrecision(TType *type) const in overwriteVariablePrecision()
49 const TType &type = variable->getType(); in visitDeclaration()
66 const TType *fieldType = field->type(); in visitDeclaration()
67 overwriteVariablePrecision((TType *)fieldType); in visitDeclaration()
76 const TType *fieldType = field->type(); in visitDeclaration()
77 overwriteVariablePrecision((TType *)fieldType); in visitDeclaration()
82 overwriteVariablePrecision((TType *)&type); in visitDeclaration()
/external/angle/src/compiler/translator/tree_ops/vulkan/
DDeclarePerVertexBlocks.cpp72 const TType *type = &variable->getType(); in visitSymbol()
86 const TType &fieldType = *field->type(); in visitSymbol()
175 TType *newType = new TType(*type); in visitSymbol()
205 const TType *vec4Type = StaticType::GetBasic<EbtFloat, 4>(); in declarePerVertex()
206 const TType *floatType = StaticType::GetBasic<EbtFloat, 1>(); in declarePerVertex()
208 TType *positionType = new TType(*vec4Type); in declarePerVertex()
209 TType *pointSizeType = new TType(*floatType); in declarePerVertex()
210 TType *clipDistanceType = new TType(*floatType); in declarePerVertex()
211 TType *cullDistanceType = new TType(*floatType); in declarePerVertex()
247 TType *interfaceBlockType = in declarePerVertex()
[all …]

12345678910