Home
last modified time | relevance | path

Searched refs:EbtInt (Results 1 – 14 of 14) sorted by relevance

/external/swiftshader/src/OpenGL/compiler/
DConstantUnion.h40 case EbtInt: setFConst(static_cast<float>(constant.getIConst())); break; in cast()
47 case EbtInt: in cast()
50 case EbtInt: setIConst(static_cast<int>(constant.getIConst())); break; in cast()
60 case EbtInt: setUConst(static_cast<unsigned int>(constant.getIConst())); break; in cast()
70 case EbtInt: setBConst(constant.getIConst() != 0); break; in cast()
80 case EbtInt: setIConst(constant.getIConst()); break; in cast()
94 void setIConst(int i) {iConst = i; type = EbtInt; } in setIConst()
110 case EbtInt: return reinterpret_cast<const float&>(iConst); in getAsFloat()
144 case EbtInt:
186 case EbtInt:
[all …]
DSymbolTable.h271 case EbtGenIType: return new TType(EbtInt, size); in GenType()
292 case EbtIVec: return new TType(EbtInt, size); in VecType()
348 …TVariable *constant = new TVariable(NewPoolTString(name), TType(EbtInt, EbpUndefined, EvqConstExpr… in insertConstInt()
360 …insertBuiltIn(level, gvec4 ? new TType(EbtInt, 4) : rvalue, name, new TType(EbtISampler2D), ptype2…
368 …insertBuiltIn(level, gvec4 ? new TType(EbtInt, 4) : rvalue, name, new TType(EbtISampler3D), ptype2…
376 …insertBuiltIn(level, gvec4 ? new TType(EbtInt, 4) : rvalue, name, new TType(EbtISamplerCube), ptyp…
384 …insertBuiltIn(level, gvec4 ? new TType(EbtInt, 4) : rvalue, name, new TType(EbtISampler2DArray), p…
465 if (type.type != EbtFloat && type.type != EbtInt) in setDefaultPrecision()
478 if (type == EbtUInt) type = EbtInt; in getDefaultPrecision()
480 if( type != EbtFloat && type != EbtInt ) return EbpUndefined; in getDefaultPrecision()
DBaseTypes.h50 EbtInt, enumerator
112 case EbtInt: return "int"; in getBasicString()
335 return type == EbtInt || type == EbtUInt; in IsInteger()
340 return type == EbtFloat || type == EbtInt || type == EbtUInt || IsSampler(type); in SupportsPrecision()
DIntermediate.cpp135 case EbtInt: in TypeToConstructorOperator()
732 constIntNode = addConstantUnion(unionArray, TType(EbtInt, EbpUndefined, EvqConstExpr), line); in addSwizzle()
797 TType type(EbtInt, EbpUndefined, EvqConstExpr, 1); in CreateIndexNode()
1564 case EbtInt: in fold()
1788 case EbtInt: tempConstArray[i].setIConst(-unionArray[i].getIConst()); break; in fold()
1804 case EbtInt: tempConstArray[i].setIConst(~unionArray[i].getIConst()); break; in fold()
1975 type.setBasicType(EbtInt); in fold()
1996 case EbtInt: in fold()
2036 case EbtInt: in promoteConstantUnion()
2053 case EbtInt: in promoteConstantUnion()
[all …]
DOutputASM.cpp83 case EbtInt: in glVariableType()
190 else if(type.getBasicType() == EbtInt) in glVariablePrecision()
250 …Constant(int i) : TIntermConstantUnion(constants, TType(EbtInt, EbpHigh, EvqConstExpr, 1, 1, false… in Constant()
562 case EbtInt: in getOpcode()
572 case EbtInt: in getOpcode()
581 case EbtInt: in getOpcode()
590 case EbtInt: in getOpcode()
600 case EbtInt: in getOpcode()
610 case EbtInt: in getOpcode()
620 case EbtInt: in getOpcode()
[all …]
DInitialize.cpp33 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()
486 …symbolTable.insert(ESSL3_BUILTINS, new TVariable(NewPoolTString("gl_InstanceID"), TType(EbtInt, Eb… in IdentifyBuiltIns()
487 …symbolTable.insert(ESSL3_BUILTINS, new TVariable(NewPoolTString("gl_VertexID"), TType(EbtInt, EbpH… in IdentifyBuiltIns()
DValidateSwitch.cpp129 if (conditionType == EbtInt) in visitCase()
DCompiler.cpp172 integer.type = EbtInt; in InitBuiltInSymbolTable()
Dglslang.y255 …$$ = context->intermediate.addConstantUnion(unionArray, TType(EbtInt, EbpUndefined, EvqConstExpr),…
1091 $$.setBasic(EbtInt, qual, @1);
1133 $$.setBasic(EbtInt, qual, @1);
1138 $$.setBasic(EbtInt, qual, @1);
1143 $$.setBasic(EbtInt, qual, @1);
DParseHelper.cpp277 case EbtInt: in precisionErrorCheck()
1334 if(qualifier == EvqAttribute && (typeSpecifier.type == EbtBool || typeSpecifier.type == EbtInt)) in addFullySpecifiedType()
1341 (typeSpecifier.type == EbtBool || typeSpecifier.type == EbtInt)) in addFullySpecifiedType()
1398 bool typeContainsIntegers = (type.type == EbtInt || type.type == EbtUInt || in checkInputOutputTypeIsValidES3()
1399 type.isStructureContainingType(EbtInt) || in checkInputOutputTypeIsValidES3()
3075 if((child->getBasicType() != EbtInt && child->getBasicType() != EbtUInt) || in createUnaryMath()
3277 if((switchType != EbtInt && switchType != EbtUInt) || in addSwitch()
3320 if((condition->getBasicType() != EbtInt && condition->getBasicType() != EbtUInt) || in addCase()
3547 …callNode = intermediate.addConstantUnion(unionArray, TType(EbtInt, EbpUndefined, EvqConstExpr), lo… in addFunctionCallOrMethod()
DSymbolTable.cpp59 case EbtInt: mangledName += 'i'; break; in buildMangledName()
DValidateLimitations.cpp94 case EbtInt: in visitSymbol()
DintermOut.cpp390 case EbtInt: in visitConstantUnion()
Dglslang_tab.cpp2404 …ermTypedNode) = context->intermediate.addConstantUnion(unionArray, TType(EbtInt, EbpUndefined, Evq… in yyparse()
3850 (yyval.interm.type).setBasic(EbtInt, qual, (yylsp[0])); in yyparse()
3937 (yyval.interm.type).setBasic(EbtInt, qual, (yylsp[0])); in yyparse()
3947 (yyval.interm.type).setBasic(EbtInt, qual, (yylsp[0])); in yyparse()
3957 (yyval.interm.type).setBasic(EbtInt, qual, (yylsp[0])); in yyparse()