/third_party/glslang/glslang/MachineIndependent/ |
D | Constant.cpp | 455 const TConstUnionArray& unionArray = getConstArray(); in fold() local 464 sum += unionArray[i].getDConst() * unionArray[i].getDConst(); in fold() 470 newConstArray[i].setDConst(unionArray[i].getDConst() / length); in fold() 479 if (unionArray[i].getBConst()) in fold() 489 if (! unionArray[i].getBConst()) in fold() 531 case EbtFloat: newConstArray[i].setDConst(-unionArray[i].getDConst()); break; in fold() 532 case EbtInt: newConstArray[i].setIConst(-unionArray[i].getIConst()); break; in fold() 533 …newConstArray[i].setUConst(static_cast<unsigned int>(-static_cast<int>(unionArray[i].getUConst()))… in fold() 535 case EbtInt8: newConstArray[i].setI8Const(-unionArray[i].getI8Const()); break; in fold() 536 …Array[i].setU8Const(static_cast<unsigned int>(-static_cast<signed int>(unionArray[i].getU8Const())… in fold() [all …]
|
D | parseConst.cpp | 47 : unionArray(cUnion), type(t), in TConstTraverser() 55 TConstUnionArray unionArray; member in glslang::TConstTraverser 115 TConstUnionArray leftUnionArray(unionArray); in visitConstantUnion() 200 bool TIntermediate::parseConstTree(TIntermNode* root, TConstUnionArray unionArray, TOperator constr… in parseConstTree() argument 205 TConstTraverser it(unionArray, singleConstantParam, constructorType, t); in parseConstTree()
|
D | Intermediate.cpp | 104 TConstUnionArray unionArray; // just a null constant in addSymbol() local 106 return addSymbol(0, "", type, unionArray, nullptr, loc); in addSymbol() 2532 TIntermConstantUnion* TIntermediate::addConstantUnion(const TConstUnionArray& unionArray, const TTy… in addConstantUnion() argument 2534 TIntermConstantUnion* node = new TIntermConstantUnion(unionArray, t); in addConstantUnion() 2544 TConstUnionArray unionArray(1); in addConstantUnion() local 2545 unionArray[0].setI8Const(i8); in addConstantUnion() 2547 return addConstantUnion(unionArray, TType(EbtInt8, EvqConst), loc, literal); in addConstantUnion() 2552 TConstUnionArray unionArray(1); in addConstantUnion() local 2553 unionArray[0].setUConst(u8); in addConstantUnion() 2555 return addConstantUnion(unionArray, TType(EbtUint8, EvqConst), loc, literal); in addConstantUnion() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/ |
D | Intermediate.cpp | 725 ConstantUnion* unionArray; in addSwizzle() local 728 unionArray = new ConstantUnion[1]; in addSwizzle() 729 unionArray->setIConst(fields.offsets[i]); in addSwizzle() 730 constIntNode = addConstantUnion(unionArray, TType(EbtInt, EbpUndefined, EvqConstExpr), line); in addSwizzle() 1265 float ComputeDeterminant(int size, ConstantUnion* unionArray) in ComputeDeterminant() argument 1270 return determinant2(unionArray[0].getFConst(), in ComputeDeterminant() 1271 unionArray[1].getFConst(), in ComputeDeterminant() 1272 unionArray[2].getFConst(), in ComputeDeterminant() 1273 unionArray[3].getFConst()); in ComputeDeterminant() 1275 return determinant3(unionArray[0].getFConst(), in ComputeDeterminant() [all …]
|
D | parseConst.cpp | 26 unionArray(cUnion), in TConstTraverser() 49 ConstantUnion *unionArray; member in TConstTraverser 166 ConstantUnion* leftUnionArray = unionArray; in visitConstantUnion() 239 …rseConstTree(const TSourceLoc& line, TIntermNode* root, ConstantUnion* unionArray, TOperator const… in parseConstTree() argument 244 TConstTraverser it(unionArray, singleConstantParam, constructorType, infoSink, t); in parseConstTree()
|
D | SymbolTable.h | 87 …st TType& t, bool uT = false ) : TSymbol(name), type(t), userType(uT), unionArray(0), arrayInforma… in TSymbol() 99 if (!unionArray) in getConstPointer() 100 unionArray = new ConstantUnion[type.getObjectSize()]; in getConstPointer() 102 return unionArray; in getConstPointer() 105 ConstantUnion* getConstPointer() const { return unionArray; } in getConstPointer() 106 bool isConstant() const { return unionArray != nullptr; } in isConstant() 110 if (unionArray == constArray) in shareConstPointer() 113 delete[] unionArray; in shareConstPointer() 114 unionArray = constArray; in shareConstPointer() 122 ConstantUnion *unionArray; variable
|
D | ParseHelper.cpp | 2160 ConstantUnion* unionArray = new ConstantUnion[type.getObjectSize()]; in foldConstConstructor() local 2162 …returnVal = intermediate.parseConstTree(aggrNode->getLine(), aggrNode, unionArray, aggrNode->getOp… in foldConstConstructor() 2165 …returnVal = intermediate.parseConstTree(aggrNode->getLine(), aggrNode, unionArray, aggrNode->getOp… in foldConstConstructor() 2170 return intermediate.addConstantUnion(unionArray, type, aggrNode->getLine()); in foldConstConstructor() 2188 ConstantUnion *unionArray; in addConstVectorNode() local 2190 unionArray = tempConstantNode->getUnionArrayPointer(); in addConstVectorNode() 2192 if (!unionArray) { in addConstVectorNode() 2215 constArray[i] = unionArray[fields.offsets[i]]; in addConstVectorNode() 2245 ConstantUnion* unionArray = tempConstantNode->getUnionArrayPointer(); in addConstMatrixNode() local 2247 …typedNode = intermediate.addConstantUnion(&unionArray[size*index], tempConstantNode->getType(), li… in addConstMatrixNode() [all …]
|
D | glslang.y | 253 ConstantUnion *unionArray = new ConstantUnion[1]; variable 254 unionArray->setIConst($1.i); 255 …$$ = context->intermediate.addConstantUnion(unionArray, TType(EbtInt, EbpUndefined, EvqConstExpr),… 258 ConstantUnion *unionArray = new ConstantUnion[1]; variable 259 unionArray->setUConst($1.u); 260 …$$ = context->intermediate.addConstantUnion(unionArray, TType(EbtUInt, EbpUndefined, EvqConstExpr)… 263 ConstantUnion *unionArray = new ConstantUnion[1]; variable 264 unionArray->setFConst($1.f); 265 …$$ = context->intermediate.addConstantUnion(unionArray, TType(EbtFloat, EbpUndefined, EvqConstExpr… 268 ConstantUnion *unionArray = new ConstantUnion[1]; variable [all …]
|
D | glslang_tab.cpp | 2402 ConstantUnion *unionArray = new ConstantUnion[1]; in yyparse() local 2403 unionArray->setIConst((yyvsp[0].lex).i); in yyparse() 2404 …(yyval.interm.intermTypedNode) = context->intermediate.addConstantUnion(unionArray, TType(EbtInt, … in yyparse() 2412 ConstantUnion *unionArray = new ConstantUnion[1]; in yyparse() local 2413 unionArray->setUConst((yyvsp[0].lex).u); in yyparse() 2414 …(yyval.interm.intermTypedNode) = context->intermediate.addConstantUnion(unionArray, TType(EbtUInt,… in yyparse() 2422 ConstantUnion *unionArray = new ConstantUnion[1]; in yyparse() local 2423 unionArray->setFConst((yyvsp[0].lex).f); in yyparse() 2424 …(yyval.interm.intermTypedNode) = context->intermediate.addConstantUnion(unionArray, TType(EbtFloat… in yyparse() 2432 ConstantUnion *unionArray = new ConstantUnion[1]; in yyparse() local [all …]
|
/third_party/glslang/glslang/Include/ |
D | ConstantUnion.h | 914 TConstUnionArray() : unionArray(nullptr) { } in POOL_ALLOCATOR_NEW_DELETE() 920 unionArray = nullptr; in TConstUnionArray() 922 unionArray = new TConstUnionVector(size); in TConstUnionArray() 927 unionArray = new TConstUnionVector(size); in TConstUnionArray() 929 (*unionArray)[i] = a[start + i]; in TConstUnionArray() 935 unionArray = new TConstUnionVector(size, val); in TConstUnionArray() 938 int size() const { return unionArray ? (int)unionArray->size() : 0; } in size() 939 TConstUnion& operator[](size_t index) { return (*unionArray)[index]; } 940 const TConstUnion& operator[](size_t index) const { return (*unionArray)[index]; } 944 if (unionArray == rhs.unionArray) [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/ |
D | Symbol.h | 91 const TConstantUnion *getConstPointer() const { return unionArray; } in getConstPointer() 93 void shareConstPointer(const TConstantUnion *constArray) { unionArray = constArray; } in shareConstPointer() 103 unionArray(nullptr) in TVariable() 108 const TConstantUnion *unionArray; variable
|
D | glslang.y | 266 TConstantUnion *unionArray = new TConstantUnion[1]; variable 267 unionArray->setIConst($1.i); 268 $$ = context->addScalarLiteral(unionArray, @1); 271 TConstantUnion *unionArray = new TConstantUnion[1]; variable 272 unionArray->setUConst($1.u); 273 $$ = context->addScalarLiteral(unionArray, @1); 276 TConstantUnion *unionArray = new TConstantUnion[1]; variable 277 unionArray->setFConst($1.f); 278 $$ = context->addScalarLiteral(unionArray, @1); 281 TConstantUnion *unionArray = new TConstantUnion[1]; variable [all …]
|
D | SymbolTable_autogen.cpp | 11396 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local 11397 unionArray[0].setIConst(resources.MaxVertexAttribs); in initializeBuiltInVariables() 11398 mVar_gl_MaxVertexAttribs->shareConstPointer(unionArray); in initializeBuiltInVariables() 11405 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local 11406 unionArray[0].setIConst(resources.MaxVertexUniformVectors); in initializeBuiltInVariables() 11407 mVar_gl_MaxVertexUniformVectors->shareConstPointer(unionArray); in initializeBuiltInVariables() 11414 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local 11415 unionArray[0].setIConst(resources.MaxVertexTextureImageUnits); in initializeBuiltInVariables() 11416 mVar_gl_MaxVertexTextureImageUnits->shareConstPointer(unionArray); in initializeBuiltInVariables() 11423 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local [all …]
|
D | glslang_tab.cpp | 2535 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse() local 2536 unionArray->setIConst((yyvsp[0].lex).i); in yyparse() 2537 (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); in yyparse() 2545 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse() local 2546 unionArray->setUConst((yyvsp[0].lex).u); in yyparse() 2547 (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); in yyparse() 2555 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse() local 2556 unionArray->setFConst((yyvsp[0].lex).f); in yyparse() 2557 (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); in yyparse() 2565 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse() local [all …]
|
D | Symbol.cpp | 85 unionArray(nullptr) in TVariable()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
D | Symbol.h | 127 const TConstantUnion *getConstPointer() const { return unionArray; } in getConstPointer() 129 void shareConstPointer(const TConstantUnion *constArray) { unionArray = constArray; } in shareConstPointer() 143 unionArray(nullptr) 154 unionArray(nullptr) in TVariable() 159 const TConstantUnion *unionArray; variable
|
D | glslang.y | 272 TConstantUnion *unionArray = new TConstantUnion[1]; variable 273 unionArray->setIConst($1.i); 274 $$ = context->addScalarLiteral(unionArray, @1); 277 TConstantUnion *unionArray = new TConstantUnion[1]; variable 278 unionArray->setUConst($1.u); 279 $$ = context->addScalarLiteral(unionArray, @1); 282 TConstantUnion *unionArray = new TConstantUnion[1]; variable 283 unionArray->setFConst($1.f); 284 $$ = context->addScalarLiteral(unionArray, @1); 287 TConstantUnion *unionArray = new TConstantUnion[1]; variable [all …]
|
D | SymbolTable_ESSL_autogen.cpp | 24702 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local 24703 unionArray[0].setIConst(resources.MaxVertexAttribs); in initializeBuiltInVariables() 24704 static_cast<TVariable *>(m_gl_MaxVertexAttribs)->shareConstPointer(unionArray); in initializeBuiltInVariables() 24711 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local 24712 unionArray[0].setIConst(resources.MaxVertexUniformVectors); in initializeBuiltInVariables() 24713 static_cast<TVariable *>(m_gl_MaxVertexUniformVectors)->shareConstPointer(unionArray); in initializeBuiltInVariables() 24720 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local 24721 unionArray[0].setIConst(resources.MaxVertexTextureImageUnits); in initializeBuiltInVariables() 24722 static_cast<TVariable *>(m_gl_MaxVertexTextureImageUnits)->shareConstPointer(unionArray); in initializeBuiltInVariables() 24729 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local [all …]
|
D | glslang_tab_autogen.cpp | 2389 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse() local 2390 unionArray->setIConst((yyvsp[0].lex).i); in yyparse() 2391 (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); in yyparse() 2399 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse() local 2400 unionArray->setUConst((yyvsp[0].lex).u); in yyparse() 2401 (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); in yyparse() 2409 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse() local 2410 unionArray->setFConst((yyvsp[0].lex).f); in yyparse() 2411 (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); in yyparse() 2419 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse() local [all …]
|
D | Symbol.cpp | 103 unionArray(nullptr) in TVariable() 116 unionArray(nullptr) in TVariable()
|
D | SymbolTable_autogen.cpp | 39495 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local 39496 unionArray[0].setIConst(resources.MaxVertexAttribs); in initializeBuiltInVariables() 39497 static_cast<TVariable *>(m_gl_MaxVertexAttribs)->shareConstPointer(unionArray); in initializeBuiltInVariables() 39504 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local 39505 unionArray[0].setIConst(resources.MaxVertexUniformVectors); in initializeBuiltInVariables() 39506 static_cast<TVariable *>(m_gl_MaxVertexUniformVectors)->shareConstPointer(unionArray); in initializeBuiltInVariables() 39513 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local 39514 unionArray[0].setIConst(resources.MaxVertexTextureImageUnits); in initializeBuiltInVariables() 39515 static_cast<TVariable *>(m_gl_MaxVertexTextureImageUnits)->shareConstPointer(unionArray); in initializeBuiltInVariables() 39522 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local [all …]
|