Home
last modified time | relevance | path

Searched refs:TConstantUnion (Results 1 – 25 of 35) sorted by relevance

12

/external/angle/src/compiler/translator/
DConstantUnion.h18 class TConstantUnion
22 TConstantUnion();
23 TConstantUnion(int i);
24 TConstantUnion(unsigned int u);
25 TConstantUnion(float f);
26 TConstantUnion(bool b);
28 bool cast(TBasicType newType, const TConstantUnion &constant);
69 bool operator==(const TConstantUnion &constant) const;
75 bool operator!=(const TConstantUnion &constant) const;
76 bool operator>(const TConstantUnion &constant) const;
[all …]
DConstantUnion.cpp62 bool IsValidShiftOffset(const TConstantUnion &rhs) in IsValidShiftOffset()
70 TConstantUnion::TConstantUnion() : iConst(0), type(EbtVoid) {} in TConstantUnion() function in sh::TConstantUnion
72 TConstantUnion::TConstantUnion(int i) : iConst(i), type(EbtInt) {} in TConstantUnion() function in sh::TConstantUnion
74 TConstantUnion::TConstantUnion(unsigned int u) : uConst(u), type(EbtUInt) {} in TConstantUnion() function in sh::TConstantUnion
76 TConstantUnion::TConstantUnion(float f) : fConst(f), type(EbtFloat) {} in TConstantUnion() function in sh::TConstantUnion
78 TConstantUnion::TConstantUnion(bool b) : bConst(b), type(EbtBool) {} in TConstantUnion() function in sh::TConstantUnion
80 int TConstantUnion::getIConst() const in getIConst()
86 unsigned int TConstantUnion::getUConst() const in getUConst()
92 float TConstantUnion::getFConst() const in getFConst()
106 bool TConstantUnion::getBConst() const in getBConst()
[all …]
DIntermNode.cpp41 TConstantUnion *Vectorize(const TConstantUnion &constant, size_t size) in Vectorize()
43 TConstantUnion *constUnion = new TConstantUnion[size]; in Vectorize()
54 TConstantUnion *result) in UndefinedConstantFoldingError()
78 float VectorLength(const TConstantUnion *paramArray, size_t paramArraySize) in VectorLength()
89 float VectorDotProduct(const TConstantUnion *paramArray1, in VectorDotProduct()
90 const TConstantUnion *paramArray2, in VectorDotProduct()
99 TIntermTyped *CreateFoldedNode(const TConstantUnion *constArray, const TIntermTyped *originalNode) in CreateFoldedNode()
109 angle::Matrix<float> GetMatrix(const TConstantUnion *paramArray, in GetMatrix()
122 angle::Matrix<float> GetMatrix(const TConstantUnion *paramArray, const unsigned int size) in GetMatrix()
132 void SetUnionArrayFromMatrix(const angle::Matrix<float> &m, TConstantUnion *resultArray) in SetUnionArrayFromMatrix()
[all …]
DIntermNode.h150 virtual const TConstantUnion *getConstantValue() const;
273 const TConstantUnion *getConstantValue() const override;
323 TIntermConstantUnion(const TConstantUnion *unionPointer, const TType &type) in TIntermConstantUnion()
333 const TConstantUnion *getConstantValue() const override;
366 TConstantUnion *foldUnaryNonComponentWise(TOperator op);
367 TConstantUnion *foldUnaryComponentWise(TOperator op,
371 static const TConstantUnion *FoldBinary(TOperator op,
372 const TConstantUnion *leftArray,
374 const TConstantUnion *rightArray,
379 static const TConstantUnion *FoldIndexing(const TType &type,
[all …]
DOutputHLSL.h86 void writeSingleConstant(TInfoSinkBase &out, const TConstantUnion *const constUnion);
87 const TConstantUnion *writeConstantUnionArray(TInfoSinkBase &out,
88 const TConstantUnion *const constUnion,
124 const TConstantUnion *writeConstantUnion(TInfoSinkBase &out,
126 const TConstantUnion *constUnion);
Dglslang.y272 TConstantUnion *unionArray = new TConstantUnion[1];
277 TConstantUnion *unionArray = new TConstantUnion[1];
282 TConstantUnion *unionArray = new TConstantUnion[1];
287 TConstantUnion *unionArray = new TConstantUnion[1];
296 TConstantUnion *unionArray = new TConstantUnion[1];
DOutputGLSLBase.h55 const TConstantUnion *writeConstantUnion(const TType &type, const TConstantUnion *pConstUnion);
DSymbol.h127 const TConstantUnion *getConstPointer() const { return unionArray; } in getConstPointer()
129 void shareConstPointer(const TConstantUnion *constArray) { unionArray = constArray; } in shareConstPointer()
159 const TConstantUnion *unionArray;
DSymbolTable_ESSL_autogen.cpp25476 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables()
25485 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables()
25494 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables()
25503 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables()
25512 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables()
25521 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables()
25530 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables()
25539 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables()
25548 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables()
25557 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables()
[all …]
DValidateClipCullDistance.cpp107 const TConstantUnion *constIdx = node->getRight()->getConstantValue(); in visitBinary()
Dglslang_tab_autogen.cpp2389 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse()
2399 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse()
2409 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse()
2419 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse()
2434 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse()
/external/angle/src/compiler/translator/tree_util/
DIntermNode_util.cpp56 TConstantUnion *u = new TConstantUnion[size]; in CreateZeroNode()
118 TConstantUnion *u = new TConstantUnion[1]; in CreateFloatNode()
127 TConstantUnion *u = new TConstantUnion[1]; in CreateIndexNode()
136 TConstantUnion *u = new TConstantUnion[1]; in CreateUIntNode()
145 TConstantUnion *u = new TConstantUnion[1]; in CreateBoolNode()
DDriverUniform.cpp202 TConstantUnion *uniformIndex = new TConstantUnion; in createDriverUniformRef()
DRewriteSampleMaskVariable.cpp81 const TConstantUnion *constIdx = node->getRight()->getConstantValue(); in visitBinary()
/external/angle/src/tests/test_utils/
DConstantFoldingTest.h73 bool isEqual(const TConstantUnion &node, const float &value) const in isEqual()
95 bool isEqual(const TConstantUnion &node, const int &value) const in isEqual()
108 bool isEqual(const TConstantUnion &node, const unsigned int &value) const in isEqual()
120 bool isEqual(const TConstantUnion &node, const bool &value) const in isEqual()
/external/angle/src/compiler/translator/tree_ops/
DClampPointSize.cpp33 TConstantUnion *maxPointSizeConstant = new TConstantUnion(); in ClampPointSize()
DRemoveArrayLengthMethod.cpp57 TConstantUnion *constArray = new TConstantUnion[1]; in visitUnary()
DDeclareAndInitBuiltinsForInstancedMultiview.cpp42 TConstantUnion *numberOfViewsUnsignedConstant = new TConstantUnion(); in InitializeViewIDAndInstanceID()
DRemoveDynamicIndexing.cpp75 TConstantUnion *constant = new TConstantUnion(); in CreateIntConstantNode()
/external/angle/src/compiler/translator/tree_ops/gl/
DClampFragDepth.cpp35 TConstantUnion *maxFragDepthConstant = new TConstantUnion(); in ClampFragDepth()
/external/angle/src/compiler/translator/tree_ops/d3d/
DRewriteUnaryMinusOperatorInt.cpp85 TConstantUnion *one = new TConstantUnion(); in visitUnary()
DExpandIntegerPowExpressions.cpp133 TConstantUnion *oneVal = new TConstantUnion(); in visitAggregate()
/external/angle/src/compiler/translator/TranslatorMetalDirect/
DEmitMetal.cpp171 const TConstantUnion &index);
174 const TConstantUnion *emitConstantUnionArray(const TConstantUnion *const constUnion,
177 const TConstantUnion *emitConstantUnion(const TType &type, const TConstantUnion *constUnion);
179 void emitSingleConstant(const TConstantUnion *const constUnion);
1327 void GenMetalTraverser::emitSingleConstant(const TConstantUnion *const constUnion) in emitSingleConstant()
1362 const TConstantUnion *GenMetalTraverser::emitConstantUnionArray( in emitConstantUnionArray()
1363 const TConstantUnion *const constUnion, in emitConstantUnionArray()
1366 const TConstantUnion *constUnionIterated = constUnion; in emitConstantUnionArray()
1379 const TConstantUnion *GenMetalTraverser::emitConstantUnion(const TType &type, in emitConstantUnion()
1380 const TConstantUnion *constUnionBegin) in emitConstantUnion()
[all …]
DAstHelpers.cpp239 new TIntermConstantUnion(new TConstantUnion(index), *new TType(TBasicType::EbtInt))); in AccessFieldByIndex()
251 new TIntermConstantUnion(new TConstantUnion(index), *new TType(TBasicType::EbtInt))); in AccessIndex()
/external/angle/src/tests/compiler_tests/
DIntermNode_test.cpp161 TConstantUnion *constValue = new TConstantUnion[1]; in TEST_F()

12