Home
last modified time | relevance | path

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

12345678

/third_party/glslang/glslang/HLSL/
DhlslGrammar.cpp275 bool HlslGrammar::acceptSamplerDeclarationDX9(TType& /*type*/) in acceptSamplerDeclarationDX9() argument
367 TType declaredType; in acceptDeclaration()
456 TType variableType; in acceptDeclaration()
557 TType type; in acceptControlDeclaration()
600 bool HlslGrammar::acceptFullySpecifiedType(TType& type, const TAttributes& attributes) in acceptFullySpecifiedType()
605 bool HlslGrammar::acceptFullySpecifiedType(TType& type, TIntermNode*& nodeList, const TAttributes& … in acceptFullySpecifiedType()
902 bool HlslGrammar::acceptVectorTemplateType(TType& type) in acceptVectorTemplateType()
909 new(&type) TType(EbtFloat, EvqTemporary, 4); in acceptVectorTemplateType()
938 new(&type) TType(basicType, EvqTemporary, precision, vecSizeI); in acceptVectorTemplateType()
955 bool HlslGrammar::acceptMatrixTemplateType(TType& type) in acceptMatrixTemplateType()
[all …]
DhlslGrammar.h72 bool acceptSamplerDeclarationDX9(TType&);
74 bool acceptFullySpecifiedType(TType&, const TAttributes&);
75 …bool acceptFullySpecifiedType(TType&, TIntermNode*& nodeList, const TAttributes&, bool forbidDecla…
79 bool acceptType(TType&);
80 bool acceptType(TType&, TIntermNode*& nodeList);
82 bool acceptVectorTemplateType(TType&);
83 bool acceptMatrixTemplateType(TType&);
85 bool acceptTessellationPatchTemplateType(TType&);
86 bool acceptStreamOutTemplateType(TType&, TLayoutGeometry&);
89 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…
108 TFunction* makeConstructorCall(const TSourceLoc&, const TType&);
126 bool constructorError(const TSourceLoc&, TIntermNode*, TFunction&, TOperator, TType&);
129 void structArrayCheck(const TSourceLoc&, const TType& structure);
136 void paramFix(TType& type);
137 void specializationCheck(const TSourceLoc&, const TType&, const char* op);
147 void declareTypedef(const TSourceLoc&, const TString& identifier, const TType&);
148 void declareStruct(const TSourceLoc&, TString& structName, TType&);
149 TSymbol* lookupUserType(const TString&, TType&);
[all …]
/third_party/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/angle2/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 …]
DOutputGLSLBase.h39 std::string getMemoryQualifiers(const TType &type);
42 void writeInvariantQualifier(const TType &type);
43 void writePreciseQualifier(const TType &type);
44 virtual void writeVariableType(const TType &type,
49 const TConstantUnion *writeConstantUnion(const TType &type, const TConstantUnion *pConstUnion);
50 void writeConstructorTriplet(Visit visit, const TType &type);
51 ImmutableString getTypeName(const TType &type);
86 void writeQualifier(TQualifier qualifier, const TType &type, const TSymbol *symbol);
95 void declareInterfaceBlockLayout(const TType &type);
96 void declareInterfaceBlock(const TType &type);
[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()
201 constexpr const TType *GetBasic() in GetBasic()
210 constexpr const TType *GetTemporary() in GetTemporary()
220 const TType *GetQualified() in GetQualified()
[all …]
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 void adjustRedeclaredBuiltInType(const ImmutableString &identifier, TType *type);
216 TType *type,
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DAstHelpers.cpp42 TType *type = new TType(&structure, true); in CreateStructTypeVariable()
53 TType *type = new TType(&structure, false); in CreateInstanceVariable()
171 TType *newReturnType = new TType(&newReturn, true); in CloneFunctionAndChangeReturnType()
232 const TType &type = object.getType(); in AccessFieldByIndex()
242 new TIntermConstantUnion(new TConstantUnion(index), *new TType(TBasicType::EbtInt))); in AccessFieldByIndex()
248 const TType &type = indexableNode.getType(); in AccessIndex()
254 new TIntermConstantUnion(new TConstantUnion(index), *new TType(TBasicType::EbtInt))); in AccessIndex()
283 bool sh::IsScalarBasicType(const TType &type) in IsScalarBasicType()
292 bool sh::IsVectorBasicType(const TType &type) in IsVectorBasicType()
317 bool sh::HasScalarBasicType(const TType &type) in HasScalarBasicType()
[all …]
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);
153 TIntermTyped &CoerceSimple(const TType &toType, TIntermTyped &fromNode, bool needsExplicitBoolCast);
[all …]
/third_party/typescript/tests/baselines/reference/
DhomomorphicMappedTypeIntersectionAssignability.types2 function f<TType>(
3 >f : <TType>(a: { weak?: string;} & Readonly<TType> & { name: "ok";}, b: Readonly<TType & { …
5 a: { weak?: string } & Readonly<TType> & { name: "ok" },
6 >a : { weak?: string | undefined; } & Readonly<TType> & { name: "ok"; }
10 b: Readonly<TType & { name: string }>,
11 >b : Readonly<TType & { name: string; }>
14 c: Readonly<TType> & { name: string }) {
15 >c : Readonly<TType> & { name: string; }
19 >c = a : { weak?: string | undefined; } & Readonly<TType> & { name: "ok"; }
20 >c : Readonly<TType> & { name: string; }
[all …]
DhomomorphicMappedTypeIntersectionAssignability.symbols2 function f<TType>(
4 >TType : Symbol(TType, Decl(homomorphicMappedTypeIntersectionAssignability.ts, 0, 11))
6 a: { weak?: string } & Readonly<TType> & { name: "ok" },
10 >TType : Symbol(TType, Decl(homomorphicMappedTypeIntersectionAssignability.ts, 0, 11))
13 b: Readonly<TType & { name: string }>,
16 >TType : Symbol(TType, Decl(homomorphicMappedTypeIntersectionAssignability.ts, 0, 11))
19 c: Readonly<TType> & { name: string }) {
22 >TType : Symbol(TType, Decl(homomorphicMappedTypeIntersectionAssignability.ts, 0, 11))
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DDriverUniform.cpp56 const std::array<TType *, kNumComputeDriverUniforms> kDriverUniformTypes = {{ in addComputeDriverUniformsToShader()
57 new TType(EbtUInt, EbpHigh, EvqGlobal, 4), in addComputeDriverUniformsToShader()
90 const std::array<TType *, kNumGraphicsDriverUniforms> kDriverUniformTypes = {{ in createUniformFields()
91 new TType(EbtFloat, EbpHigh, EvqGlobal, 4), in createUniformFields()
92 new TType(EbtUInt, EbpHigh, in createUniformFields()
94 new TType(EbtUInt, EbpLow, EvqGlobal), // uint xfbActiveUnpaused; // 1 bit in createUniformFields()
95 new TType(EbtInt, EbpHigh, EvqGlobal), in createUniformFields()
96 new TType(EbtInt, EbpLow, EvqGlobal), // uint numSamples; // Up to 16 in createUniformFields()
97 new TType(EbtInt, EbpHigh, EvqGlobal, 4), in createUniformFields()
98 new TType(EbtUInt, EbpHigh, EvqGlobal, 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, precision, EvqConst, 1); in CreateFloatNode()
130 TType type(EbtInt, EbpHigh, EvqConst, 1); in CreateIndexNode()
139 TType type(EbtUInt, EbpHigh, 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 …]
/third_party/glslang/glslang/MachineIndependent/
DParseHelper.h118 void checkIndex(const TSourceLoc&, const TType&, int& index);
161 …virtual void growGlobalUniformBlock(const TSourceLoc&, TType&, const TString& memberName, TTypeLis…
164 …virtual void growAtomicCounterBlock(int binding, const TSourceLoc&, TType&, const TString& memberN…
189 … const TType* currentFunctionType; // the return type of the function that's currently being parsed
224 std::function<bool(const TType&, const TType&, TOperator, int arg)>,
225 std::function<bool(const TType&, const TType&, const TType&)>,
238 virtual void setUniformBlockDefaults(TType&) const { } in setUniformBlockDefaults() argument
247 virtual void setAtomicCounterBlockDefaults(TType&) const {} in setAtomicCounterBlockDefaults() argument
320 …virtual void growGlobalUniformBlock(const TSourceLoc&, TType&, const TString& memberName, TTypeLis…
321 …virtual void growAtomicCounterBlock(int binding, const TSourceLoc&, TType&, const TString& memberN…
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
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()
280 CreateLValueNode(ImmutableString("out1"), TType(EbtFloat, EbpMedium, EvqVertexOut, 4)), in TEST_F()
281 CreateLValueNode(ImmutableString("out2"), TType(EbtInt, EbpLow, EvqFlatOut)), in TEST_F()
282 CreateLValueNode(ImmutableString("out3"), TType(EbtFloat, EbpMedium, EvqCentroidOut)), in TEST_F()
283 CreateLValueNode(ImmutableString("out4"), TType(EbtFloat, EbpMedium, EvqSmoothOut))}; in TEST_F()
[all …]
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()
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 …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/vulkan/
DDeclarePerVertexBlocks.cpp95 const TType &type = symbol->getType(); in visitSymbol()
147 const TType *type = &variable->getType(); in visitSymbol()
161 const TType &fieldType = *field->type(); in visitSymbol()
255 TType *newType = new TType(*type); in visitSymbol()
285 const TType *vec4Type = StaticType::GetBasic<EbtFloat, EbpHigh, 4>(); in declarePerVertex()
286 const TType *floatType = StaticType::GetBasic<EbtFloat, EbpHigh, 1>(); in declarePerVertex()
288 TType *positionType = new TType(*vec4Type); in declarePerVertex()
289 TType *pointSizeType = new TType(*floatType); in declarePerVertex()
290 TType *clipDistanceType = new TType(*floatType); in declarePerVertex()
291 TType *cullDistanceType = new TType(*floatType); in declarePerVertex()
[all …]
/third_party/skia/third_party/externals/angle2/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()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/apple/
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()
259 const TType &baseType = firstElement->getType(); in constructReadTransformExpression()
315 const TType &baseType, in constructReadTransformExpressionHelper()
320 TType *transformedType = new TType(baseType); in constructReadTransformExpressionHelper()
353 const TType &mBaseExpressionType;
[all …]

12345678