/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
D | ConstantUnion.cpp | 64 return (rhs.getType() == EbtInt && (rhs.getIConst() >= 0 && rhs.getIConst() <= 31)) || in IsValidShiftOffset() 72 TConstantUnion::TConstantUnion(int i) : iConst(i), type(EbtInt) {} in TConstantUnion() 82 ASSERT(type == EbtInt); in getIConst() 96 case EbtInt: in getFConst() 116 case EbtInt: in isZero() 142 case EbtInt: in cast() 158 case EbtInt: in cast() 161 case EbtInt: in cast() 180 case EbtInt: in cast() 208 case EbtInt: in cast() [all …]
|
D | SymbolTable_autogen.cpp | 3427 StaticType::Get<EbtInt, EbpHigh, EvqUniform, 1, 1>()); 3433 StaticType::Get<EbtInt, EbpHigh, EvqUniform, 1, 1>()); 3439 StaticType::Get<EbtInt, EbpHigh, EvqUniform, 1, 1>()); 3445 StaticType::Get<EbtInt, EbpHigh, EvqUniform, 1, 1>()); 3450 StaticType::Get<EbtInt, EbpHigh, EvqDrawID, 1, 1>()); 3494 StaticType::Get<EbtInt, EbpHigh, EvqInstanceID, 1, 1>()); 3500 StaticType::Get<EbtInt, EbpHigh, EvqInstanceID, 1, 1>()); 3506 StaticType::Get<EbtInt, EbpHigh, EvqInvocationID, 1, 1>()); 3512 StaticType::Get<EbtInt, EbpHigh, EvqInvocationID, 1, 1>()); 3518 StaticType::Get<EbtInt, EbpHigh, EvqInvocationID, 1, 1>()); [all …]
|
D | SymbolTable_ESSL_autogen.cpp | 2230 StaticType::Get<EbtInt, EbpHigh, EvqUniform, 1, 1>()); 2236 StaticType::Get<EbtInt, EbpHigh, EvqUniform, 1, 1>()); 2242 StaticType::Get<EbtInt, EbpHigh, EvqUniform, 1, 1>()); 2248 StaticType::Get<EbtInt, EbpHigh, EvqUniform, 1, 1>()); 2253 StaticType::Get<EbtInt, EbpHigh, EvqDrawID, 1, 1>()); 2297 StaticType::Get<EbtInt, EbpHigh, EvqInstanceID, 1, 1>()); 2303 StaticType::Get<EbtInt, EbpHigh, EvqInstanceID, 1, 1>()); 2309 StaticType::Get<EbtInt, EbpHigh, EvqInvocationID, 1, 1>()); 2315 StaticType::Get<EbtInt, EbpHigh, EvqInvocationID, 1, 1>()); 2321 StaticType::Get<EbtInt, EbpHigh, EvqInvocationID, 1, 1>()); [all …]
|
D | util.cpp | 263 case EbtInt: in GLVariableType() 409 else if (type.getBasicType() == EbtInt || type.getBasicType() == EbtUInt) in GLVariablePrecision() 658 return TType(EbtInt); in GetShaderVariableBasicType() 660 return TType(EbtInt, 2); in GetShaderVariableBasicType() 662 return TType(EbtInt, 3); in GetShaderVariableBasicType() 664 return TType(EbtInt, 4); in GetShaderVariableBasicType() 875 case EbtInt: in GetConversion() 878 case EbtInt: in GetConversion() 892 case EbtInt: in GetConversion() 906 case EbtInt: in GetConversion() [all …]
|
D | IntermNode.cpp | 65 case EbtInt: in UndefinedConstantFoldingError() 1360 setType(TType(EbtInt, EbpHigh, EvqConst)); in promote() 1379 resultType.setBasicType(EbtInt); in promote() 1430 resultType.setBasicType(EbtInt); in promote() 2510 case EbtInt: in FoldBinary() 2969 case EbtInt: in foldUnaryComponentWise() 3007 case EbtInt: in foldUnaryComponentWise() 3035 case EbtInt: in foldUnaryComponentWise() 3134 case EbtInt: in foldUnaryComponentWise() 3157 case EbtInt: in foldUnaryComponentWise() [all …]
|
D | BuildSPIRV.cpp | 862 case EbtInt: in declareType() 986 sampledType = EbtInt; in getImageTypeParameters() 990 sampledType = EbtInt; in getImageTypeParameters() 996 sampledType = EbtInt; in getImageTypeParameters() 1001 sampledType = EbtInt; in getImageTypeParameters() 1037 sampledType = EbtInt; in getImageTypeParameters() 1069 sampledType = EbtInt; in getImageTypeParameters() 1074 sampledType = EbtInt; in getImageTypeParameters() 1115 sampledType = EbtInt; in getImageTypeParameters() 1120 sampledType = EbtInt; in getImageTypeParameters() [all …]
|
D | SymbolTable.cpp | 359 TBasicType baseType = (type == EbtUInt) ? EbtInt : type; in getDefaultPrecision() 408 setDefaultPrecision(EbtInt, EbpUndefined); in initializeBuiltIns() 416 setDefaultPrecision(EbtInt, EbpMedium); in initializeBuiltIns() 423 setDefaultPrecision(EbtInt, EbpHigh); in initializeBuiltIns()
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/ |
D | ConstantUnion.h | 40 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 …]
|
D | SymbolTable.h | 271 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()
|
D | BaseTypes.h | 50 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()
|
D | Intermediate.cpp | 135 case EbtInt: in TypeToConstructorOperator() 730 constIntNode = addConstantUnion(unionArray, TType(EbtInt, EbpUndefined, EvqConstExpr), line); in addSwizzle() 795 TType type(EbtInt, EbpUndefined, EvqConstExpr, 1); in CreateIndexNode() 1562 case EbtInt: in fold() 1789 case EbtInt: tempConstArray[i].setIConst(-unionArray[i].getIConst()); break; in fold() 1805 case EbtInt: tempConstArray[i].setIConst(~unionArray[i].getIConst()); break; in fold() 1976 type.setBasicType(EbtInt); in fold() 1997 case EbtInt: in fold() 2037 case EbtInt: in promoteConstantUnion() 2054 case EbtInt: in promoteConstantUnion() [all …]
|
D | OutputASM.cpp | 85 case EbtInt: in glVariableType() 192 else if(type.getBasicType() == EbtInt) in glVariablePrecision() 252 …Constant(int i) : TIntermConstantUnion(constants, TType(EbtInt, EbpHigh, EvqConstExpr, 1, 1, false… in Constant() 564 case EbtInt: in getOpcode() 574 case EbtInt: in getOpcode() 583 case EbtInt: in getOpcode() 592 case EbtInt: in getOpcode() 602 case EbtInt: in getOpcode() 612 case EbtInt: in getOpcode() 622 case EbtInt: in getOpcode() [all …]
|
/third_party/glslang/glslang/Include/ |
D | ConstantUnion.h | 50 TConstUnion() : iConst(0), type(EbtInt) { } in POOL_ALLOCATOR_NEW_DELETE() 79 type = EbtInt; in setIConst() 216 case EbtInt: 333 case EbtInt: 422 case EbtInt: 443 case EbtInt: returnValue.setIConst(iConst + constant.iConst); break; 463 case EbtInt: returnValue.setIConst(iConst - constant.iConst); break; 483 case EbtInt: returnValue.setIConst(iConst * constant.iConst); break; 503 case EbtInt: returnValue.setIConst(iConst % constant.iConst); break; 527 case EbtInt: returnValue.setI8Const(i8Const >> constant.iConst); break; [all …]
|
D | BaseTypes.h | 56 EbtInt, enumerator 555 case EbtInt: in isTypeSignedInt() 605 case EbtInt: in getTypeRank()
|
D | Types.h | 246 case EbtInt: s.append("i"); break; in getString() 1604 } else if (p.basicType == EbtInt && numBits == 8) { in TType() 1607 } else if (p.basicType == EbtInt && numBits == 16) { in TType() 1843 case EbtInt: in isIntegerDomain() 1940 case EbtInt: in containsNonOpaque() 2079 case EbtInt: return "int"; in getBasicString() 2296 case EbtInt: 2338 case EbtInt: 2725 … else if (getBasicType() == EbtInt || getBasicType() == EbtInt8 || getBasicType() == EbtInt16) in sameCoopMatBaseType() 2726 …rv = right.getBasicType() == EbtInt || right.getBasicType() == EbtInt8 || right.getBasicType() == … in sameCoopMatBaseType() [all …]
|
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/ |
D | ShaderImage_test.cpp | 43 ASSERT_EQ(EbtInt, storeArgument2Typed->getBasicType()); in CheckImageStoreCall() 70 ASSERT_EQ(EbtInt, loadArgument2Typed->getBasicType()); in CheckImageLoadCall() 194 mangledName2D += StaticType::GetBasic<EbtInt, EbpUndefined, 2>()->getMangledName(); in TEST_F() 200 mangledName3D += StaticType::GetBasic<EbtInt, EbpUndefined, 3>()->getMangledName(); in TEST_F() 224 mangledName2D += StaticType::GetBasic<EbtInt, EbpUndefined, 2>()->getMangledName(); in TEST_F() 231 mangledName2DArray += StaticType::GetBasic<EbtInt, EbpUndefined, 3>()->getMangledName(); in TEST_F()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/ |
D | DeclareAndInitBuiltinsForInstancedMultiview.cpp | 61 TType(EbtInt, EbpHigh, EvqTemporary), &normalizedInstanceIDCastArguments); in InitializeViewIDAndInstanceID() 89 TType(EbtInt, EbpHigh, EvqTemporary), &viewIDSymbolCastArguments); in SelectViewIndexInVertexShader() 114 CreateZeroNode(TType(EbtInt, EbpHigh, EvqConst))); in SelectViewIndexInVertexShader() 150 const TType *instanceIDVariableType = StaticType::Get<EbtInt, EbpHigh, EvqGlobal, 1, 1>(); in DeclareAndInitBuiltinsForInstancedMultiview() 174 StaticType::Get<EbtInt, EbpHigh, EvqUniform, 1, 1>(); in DeclareAndInitBuiltinsForInstancedMultiview()
|
D | ClampIndirectIndices.cpp | 88 const TBasicType requiredBasicType = useFloatClamp ? EbtFloat : EbtInt; in visitBinary() 92 : StaticType::GetBasic<EbtInt, EbpHigh>(); in visitBinary() 109 clamped = TIntermAggregate::CreateConstructor(*StaticType::GetBasic<EbtInt, EbpHigh>(), in visitBinary()
|
D | RemoveDynamicIndexing.cpp | 31 const TType *kIndexType = StaticType::Get<EbtInt, EbpHigh, EvqParamIn, 1, 1>(); 53 case EbtInt: in GetIndexFunctionName() 77 return new TIntermConstantUnion(constant, TType(EbtInt, EbpHigh)); in CreateIntConstantNode() 82 if (node->getBasicType() == EbtInt) in EnsureSignedInt() 87 return TIntermAggregate::CreateConstructor(TType(EbtInt), &arguments); in EnsureSignedInt()
|
/third_party/glslang/glslang/MachineIndependent/ |
D | Intermediate.cpp | 389 case EOpConstructInt: newType = EbtInt; break; in addUnaryMath() 575 case EbtInt: newOp = EOpConvIntToDouble; break; in buildConvertOp() 589 case EbtInt: newOp = EOpConvIntToFloat; break; in buildConvertOp() 610 case EbtInt: newOp = EOpConvIntToFloat16; break; in buildConvertOp() 623 case EbtInt: newOp = EOpConvIntToBool; break; in buildConvertOp() 643 case EbtInt: newOp = EOpConvIntToInt8; break; in buildConvertOp() 660 case EbtInt: newOp = EOpConvIntToUint8; break; in buildConvertOp() 678 case EbtInt: newOp = EOpConvIntToInt16; break; in buildConvertOp() 695 case EbtInt: newOp = EOpConvIntToUint16; break; in buildConvertOp() 708 case EbtInt: in buildConvertOp() [all …]
|
D | glslang.y | 549 $$.function = new TFunction(&method->getMethodName(), TType(EbtInt), EOpArrayLength); 1783 $$.basicType = EbtInt; 1826 $$.basicType = EbtInt; 1831 $$.basicType = EbtInt; 1836 $$.basicType = EbtInt; 1962 $$.basicType = EbtInt; 2096 $$.basicType = EbtInt; 2102 $$.basicType = EbtInt; 2108 $$.basicType = EbtInt; 2676 $$.sampler.set(EbtInt, Esd1D); [all …]
|
/third_party/glslang/glslang/HLSL/ |
D | hlslGrammar.cpp | 864 basicType = EbtInt; in acceptTemplateVecMatBasicType() 882 basicType = parseContext.hlslEnable16BitTypes() ? EbtInt16 : EbtInt; in acceptTemplateVecMatBasicType() 1198 case EbtInt: in acceptSubpassInputType() 1379 case EbtInt: in acceptTextureType() 1482 const TBasicType min16int_bt = enable16BitTypes ? EbtInt16 : EbtInt; in acceptType() 1483 const TBasicType min12int_bt = enable16BitTypes ? EbtInt16 : EbtInt; in acceptType() 1663 new(&type) TType(EbtInt); in acceptType() 1666 new(&type) TType(EbtInt); in acceptType() 1670 new(&type) TType(EbtInt, EvqTemporary, 2); in acceptType() 1673 new(&type) TType(EbtInt, EvqTemporary, 3); in acceptType() [all …]
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/ |
D | DriverUniform.cpp | 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() 209 new TIntermConstantUnion(uniformIndex, *StaticType::GetBasic<EbtInt, EbpLow>()); in createDriverUniformRef()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/ |
D | TranslatorMetalUtils.cpp | 31 case EbtInt: in getBasicMetalString() 248 case EbtInt: in getBuiltInMetalTypeNameString()
|
D | AstHelpers.cpp | 242 new TIntermConstantUnion(new TConstantUnion(index), *new TType(TBasicType::EbtInt))); in AccessFieldByIndex() 254 new TIntermConstantUnion(new TConstantUnion(index), *new TType(TBasicType::EbtInt))); in AccessIndex() 307 case TBasicType::EbtInt: in HasScalarBasicType() 425 case TBasicType::EbtInt: in CoerceSimple() 478 case TBasicType::EbtInt: in CoerceSimple()
|