/external/swiftshader/src/OpenGL/compiler/ |
D | ConstantUnion.h | 37 case EbtFloat: in cast() 43 case EbtFloat: setFConst(static_cast<float>(constant.getFConst())); break; in cast() 53 case EbtFloat: setIConst(static_cast<int>(constant.getFConst())); break; in cast() 63 case EbtFloat: setUConst(static_cast<unsigned int>(constant.getFConst())); break; in cast() 73 case EbtFloat: setBConst(constant.getFConst() != 0.0f); break; in cast() 83 case EbtFloat: setFConst(constant.getFConst()); break; in cast() 96 void setFConst(float f) {fConst = f; type = EbtFloat; } in setFConst() 112 case EbtFloat: return fConst; in getAsFloat() 148 case EbtFloat: 190 case EbtFloat: [all …]
|
D | Initialize.cpp | 27 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() 112 TType *outFloat1 = new TType(EbtFloat, EbpUndefined, EvqOut); in InsertBuiltInFunctions() 113 TType *outFloat2 = new TType(EbtFloat, EbpUndefined, EvqOut, 2); in InsertBuiltInFunctions() 114 TType *outFloat3 = new TType(EbtFloat, EbpUndefined, EvqOut, 3); in InsertBuiltInFunctions() 115 TType *outFloat4 = new TType(EbtFloat, EbpUndefined, EvqOut, 4); in InsertBuiltInFunctions() 148 TType *mat2 = new TType(EbtFloat, 2, 2); in InsertBuiltInFunctions() 149 TType *mat2x3 = new TType(EbtFloat, 2, 3); in InsertBuiltInFunctions() [all …]
|
D | Intermediate.cpp | 69 case EbtFloat: in TypeToConstructorOperator() 369 …tBasicType() == EbtStruct || left->getBasicType() == EbtBool || left->getBasicType() == EbtFloat) { in addBinaryMath() 926 if (operand->getBasicType() != EbtFloat) in promote() 1169 setType(TType(EbtFloat, right->getNominalSize(), left->getNominalSize())); in promote() 1175 setType(TType(EbtFloat, right->getSecondarySize(), right->getNominalSize())); in promote() 1181 setType(TType(EbtFloat)); in promote() 1456 if (getType().getBasicType() != EbtFloat || node->getBasicType() != EbtFloat) { in fold() 1552 case EbtFloat: in fold() 1597 if (node->getBasicType() != EbtFloat) { in fold() 1612 …tempNode = new TIntermConstantUnion(tempConstArray, TType(EbtFloat, EbpUndefined, EvqConstExpr, ge… in fold() [all …]
|
D | SymbolTable.h | 270 case EbtGenType: return new TType(EbtFloat, size); in GenType() 291 case EbtVec: return new TType(EbtFloat, size); in VecType() 359 …insertBuiltIn(level, gvec4 ? new TType(EbtFloat, 4) : rvalue, name, new TType(EbtSampler2D), ptype… 367 …insertBuiltIn(level, gvec4 ? new TType(EbtFloat, 4) : rvalue, name, new TType(EbtSampler3D), ptype… 375 …insertBuiltIn(level, gvec4 ? new TType(EbtFloat, 4) : rvalue, name, new TType(EbtSamplerCube), pty… 383 …insertBuiltIn(level, gvec4 ? new TType(EbtFloat, 4) : rvalue, name, new TType(EbtSampler2DArray), … 465 if (type.type != EbtFloat && type.type != EbtInt) in setDefaultPrecision() 480 if( type != EbtFloat && type != EbtInt ) return EbpUndefined; in getDefaultPrecision()
|
/external/angle/src/tests/compiler_tests/ |
D | Type_test.cpp | 26 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()
|
D | InitOutputVariables_test.cpp | 260 CreateLValueNode(ImmutableString("out1"), TType(EbtFloat, EbpMedium, EvqVertexOut, 4)), in TEST_F() 262 CreateLValueNode(ImmutableString("out3"), TType(EbtFloat, EbpMedium, EvqCentroidOut)), in TEST_F() 263 CreateLValueNode(ImmutableString("out4"), TType(EbtFloat, EbpMedium, EvqSmoothOut))}; in TEST_F() 280 ImmutableString("out1"), TType(EbtFloat, EbpMedium, EvqVertexOut), 2); in TEST_F() 324 CreateLValueNode(ImmutableString("out1"), TType(EbtFloat, EbpMedium, EvqVaryingOut, 4)); in TEST_F() 342 CreateLValueNode(ImmutableString("out1"), TType(EbtFloat, EbpMedium, EvqFragmentOut, 4)); in TEST_F() 360 ImmutableString("gl_FragData"), TType(EbtFloat, EbpMedium, EvqFragData, 4), 1); in TEST_F() 380 ImmutableString("gl_FragData"), TType(EbtFloat, EbpMedium, EvqFragData, 4), 2); in TEST_F() 399 ImmutableString("gl_FragData"), TType(EbtFloat, EbpMedium, EvqFragData, 4), 2); in TEST_F() 418 CreateLValueNode(ImmutableString("gl_Position"), TType(EbtFloat, EbpHigh, EvqPosition, 4)); in TEST_F() [all …]
|
/external/angle/src/compiler/translator/ |
D | util.cpp | 257 case EbtFloat: in GLVariableType() 392 if (type.getBasicType() == EbtFloat) in GLVariablePrecision() 632 return TType(EbtFloat); in GetShaderVariableBasicType() 634 return TType(EbtFloat, 2); in GetShaderVariableBasicType() 636 return TType(EbtFloat, 3); in GetShaderVariableBasicType() 638 return TType(EbtFloat, 4); in GetShaderVariableBasicType() 640 return TType(EbtFloat, 2, 2); in GetShaderVariableBasicType() 642 return TType(EbtFloat, 3, 3); in GetShaderVariableBasicType() 644 return TType(EbtFloat, 4, 4); in GetShaderVariableBasicType() 646 return TType(EbtFloat, 2, 3); in GetShaderVariableBasicType() [all …]
|
D | ConstantUnion.cpp | 76 TConstantUnion::TConstantUnion(float f) : fConst(f), type(EbtFloat) {} in TConstantUnion() 101 ASSERT(type == EbtFloat); in getFConst() 120 case EbtFloat: in isZero() 139 case EbtFloat: in cast() 151 case EbtFloat: in cast() 170 case EbtFloat: in cast() 189 case EbtFloat: in cast() 217 case EbtFloat: in cast() 236 case EbtFloat: in cast() 254 case EbtFloat: in operator ==() [all …]
|
D | IntermNode.cpp | 61 case EbtFloat: in UndefinedConstantFoldingError() 1322 setType(TType(EbtFloat, EbpHigh, resultQualifier, operandPrimarySize)); in promote() 1333 setType(TType(EbtFloat, EbpHigh, resultQualifier, 2)); in promote() 1336 setType(TType(EbtFloat, EbpMedium, resultQualifier, 2)); in promote() 1340 setType(TType(EbtFloat, EbpMedium, resultQualifier, 4)); in promote() 1348 setType(TType(EbtFloat, mOperand->getType().getPrecision(), resultQualifier)); in promote() 1351 setType(TType(EbtFloat, mOperand->getType().getPrecision(), resultQualifier, in promote() 1381 : TIntermExpression(TType(EbtFloat, EbpUndefined)), in TIntermSwizzle() 2122 if (typedArg->getBasicType() == EbtFloat) in fold() 2213 ASSERT(leftType.getBasicType() == EbtFloat && rightType.getBasicType() == EbtFloat); in FoldBinary() [all …]
|
D | SymbolTable_ESSL_autogen.cpp | 2244 StaticType::Get<EbtFloat, EbpMedium, EvqFragColor, 4, 1>()); 2249 StaticType::Get<EbtFloat, EbpMedium, EvqFragCoord, 4, 1>()); 2254 StaticType::Get<EbtFloat, EbpHigh, EvqFragDepth, 1, 1>()); 2313 StaticType::Get<EbtFloat, EbpMedium, EvqLastFragColor, 4, 1>()); 2319 StaticType::Get<EbtFloat, EbpMedium, EvqLastFragColor, 4, 1>()); 2405 StaticType::Get<EbtFloat, EbpMedium, EvqPointCoord, 2, 1>()); 2410 StaticType::Get<EbtFloat, EbpMedium, EvqPointSize, 1, 1>()); 2415 StaticType::Get<EbtFloat, EbpHigh, EvqPosition, 4, 1>()); 2492 StaticType::Get<EbtFloat, EbpMedium, EvqSamplePosition, 2, 1>()); 2498 StaticType::Get<EbtFloat, EbpMedium, EvqSamplePosition, 2, 1>()); [all …]
|
D | SymbolTable_autogen.cpp | 3448 StaticType::Get<EbtFloat, EbpMedium, EvqFragColor, 4, 1>()); 3453 StaticType::Get<EbtFloat, EbpMedium, EvqFragCoord, 4, 1>()); 3458 StaticType::Get<EbtFloat, EbpHigh, EvqFragDepth, 1, 1>()); 3517 StaticType::Get<EbtFloat, EbpMedium, EvqLastFragColor, 4, 1>()); 3523 StaticType::Get<EbtFloat, EbpMedium, EvqLastFragColor, 4, 1>()); 3609 StaticType::Get<EbtFloat, EbpMedium, EvqPointCoord, 2, 1>()); 3614 StaticType::Get<EbtFloat, EbpMedium, EvqPointSize, 1, 1>()); 3619 StaticType::Get<EbtFloat, EbpHigh, EvqPosition, 4, 1>()); 3696 StaticType::Get<EbtFloat, EbpMedium, EvqSamplePosition, 2, 1>()); 3702 StaticType::Get<EbtFloat, EbpMedium, EvqSamplePosition, 2, 1>()); [all …]
|
/external/angle/src/compiler/translator/TranslatorMetalDirect/ |
D | ProgramPrelude.cpp | 3056 if (coordBasic == TBasicType::EbtFloat && coordN == 3) in BuildFuncToEmitter() 3067 if (coordBasic == TBasicType::EbtFloat && coordN == 4) in BuildFuncToEmitter() 3078 if (coordBasic == TBasicType::EbtFloat && coordN == 4) in BuildFuncToEmitter() 3089 if (coordBasic == TBasicType::EbtFloat && coordN == 3) in BuildFuncToEmitter() 3097 if (coordBasic == TBasicType::EbtFloat && coordN == 4) in BuildFuncToEmitter() 3106 if (coordBasic == TBasicType::EbtFloat && coordN == 2) in BuildFuncToEmitter() 3114 if (coordBasic == TBasicType::EbtFloat && coordN == 3) in BuildFuncToEmitter() 3150 if (coordBasic == TBasicType::EbtFloat && coordN == 3 && dPdxN == 2) in BuildFuncToEmitter() 3157 if (coordBasic == TBasicType::EbtFloat && coordN == 4 && dPdxN == 2) in BuildFuncToEmitter() 3164 if (coordBasic == TBasicType::EbtFloat && coordN == 4 && dPdxN == 3) in BuildFuncToEmitter() [all …]
|
D | TranslatorMetalUtils.cpp | 29 case EbtFloat: in getBasicMetalString() 235 case EbtFloat: in getBuiltInMetalTypeNameString()
|
/external/angle/src/compiler/translator/tree_util/ |
D | DriverUniform.cpp | 88 new TType(EbtFloat, 4), in createUniformFields() 120 depthRangeParamsFields->push_back(new TField(new TType(EbtFloat, EbpHigh, EvqGlobal, 1, 1), in createEmulatedDepthRangeType() 123 depthRangeParamsFields->push_back(new TField(new TType(EbtFloat, EbpHigh, EvqGlobal, 1, 1), in createEmulatedDepthRangeType() 126 depthRangeParamsFields->push_back(new TField(new TType(EbtFloat, EbpHigh, EvqGlobal, 1, 1), in createEmulatedDepthRangeType() 130 depthRangeParamsFields->push_back(new TField(new TType(EbtFloat, EbpHigh, EvqGlobal, 1, 1), in createEmulatedDepthRangeType() 274 new TType(EbtFloat, 2), in createUniformFields() 275 new TType(EbtFloat, 2), in createUniformFields() 276 new TType(EbtFloat, 2), in createUniformFields() 279 new TType(EbtFloat, 2, 2), in createUniformFields() 280 new TType(EbtFloat, 2, 2), in createUniformFields()
|
D | SpecializationConstant.cpp | 74 auto mat2Type = new TType(EbtFloat, 2, 2); in CreateMat2x2() 88 auto mat2Type = new TType(EbtFloat, 2, 2); in GenerateMat2x2ArrayWithIndex() 131 auto vec2Type = new TType(EbtFloat, 2); in CreateVec2() 145 auto vec2Type = new TType(EbtFloat, 2); in CreateVec2ArrayWithIndex() 214 const TType *floatType = StaticType::GetBasic<EbtFloat>(); in CreateFloatArrayWithRotationIndex() 492 const TType *type = MakeSpecConst(*StaticType::GetBasic<EbtFloat>(), in getDrawableWidth() 505 const TType *type = MakeSpecConst(*StaticType::GetBasic<EbtFloat>(), in getDrawableHeight() 522 auto vec2Type = new TType(EbtFloat, 2); in getHalfRenderArea()
|
/external/deqp-deps/glslang/glslang/MachineIndependent/ |
D | glslang.y | 386 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true); 1682 $$.basicType = EbtFloat; 1699 $$.basicType = EbtFloat; 1704 $$.basicType = EbtFloat; 1709 $$.basicType = EbtFloat; 1762 $$.basicType = EbtFloat; 1767 $$.basicType = EbtFloat; 1772 $$.basicType = EbtFloat; 1777 $$.basicType = EbtFloat; 1782 $$.basicType = EbtFloat; [all …]
|
D | Intermediate.cpp | 388 case EOpConstructFloat: newType = EbtFloat; break; in addUnaryMath() 573 case EbtFloat: newOp = EOpConvFloatToDouble; break; in buildConvertOp() 587 case EbtFloat: in buildConvertOp() 616 case EbtFloat: newOp = EOpConvFloatToFloat16; break; in buildConvertOp() 629 case EbtFloat: newOp = EOpConvFloatToBool; break; in buildConvertOp() 655 case EbtFloat: newOp = EOpConvFloatToInt8; break; in buildConvertOp() 672 case EbtFloat: newOp = EOpConvFloatToUint8; break; in buildConvertOp() 690 case EbtFloat: newOp = EOpConvFloatToInt16; break; in buildConvertOp() 707 case EbtFloat: newOp = EOpConvFloatToUint16; break; in buildConvertOp() 720 case EbtFloat: newOp = EOpConvFloatToInt; break; in buildConvertOp() [all …]
|
D | glslang.m4 | 386 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true); 1682 $$.basicType = EbtFloat; 1699 $$.basicType = EbtFloat; 1704 $$.basicType = EbtFloat; 1709 $$.basicType = EbtFloat; 1762 $$.basicType = EbtFloat; 1767 $$.basicType = EbtFloat; 1772 $$.basicType = EbtFloat; 1777 $$.basicType = EbtFloat; 1782 $$.basicType = EbtFloat; [all …]
|
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/ |
D | glslang.y | 407 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true); 1755 $$.basicType = EbtFloat; 1772 $$.basicType = EbtFloat; 1777 $$.basicType = EbtFloat; 1782 $$.basicType = EbtFloat; 1835 $$.basicType = EbtFloat; 1840 $$.basicType = EbtFloat; 1845 $$.basicType = EbtFloat; 1850 $$.basicType = EbtFloat; 1855 $$.basicType = EbtFloat; [all …]
|
D | Intermediate.cpp | 388 case EOpConstructFloat: newType = EbtFloat; break; in addUnaryMath() 573 case EbtFloat: newOp = EOpConvFloatToDouble; break; in buildConvertOp() 587 case EbtFloat: in buildConvertOp() 616 case EbtFloat: newOp = EOpConvFloatToFloat16; break; in buildConvertOp() 629 case EbtFloat: newOp = EOpConvFloatToBool; break; in buildConvertOp() 655 case EbtFloat: newOp = EOpConvFloatToInt8; break; in buildConvertOp() 672 case EbtFloat: newOp = EOpConvFloatToUint8; break; in buildConvertOp() 690 case EbtFloat: newOp = EOpConvFloatToInt16; break; in buildConvertOp() 707 case EbtFloat: newOp = EOpConvFloatToUint16; break; in buildConvertOp() 720 case EbtFloat: newOp = EOpConvFloatToInt; break; in buildConvertOp() [all …]
|
D | glslang.m4 | 407 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true); 1755 $$.basicType = EbtFloat; 1772 $$.basicType = EbtFloat; 1777 $$.basicType = EbtFloat; 1782 $$.basicType = EbtFloat; 1835 $$.basicType = EbtFloat; 1840 $$.basicType = EbtFloat; 1845 $$.basicType = EbtFloat; 1850 $$.basicType = EbtFloat; 1855 $$.basicType = EbtFloat; [all …]
|
/external/deqp-deps/glslang/glslang/HLSL/ |
D | hlslGrammar.cpp | 828 basicType = EbtFloat; in acceptTemplateVecMatBasicType() 863 new(&type) TType(EbtFloat, EvqTemporary, 4); in acceptVectorTemplateType() 915 new(&type) TType(EbtFloat, EvqTemporary, 0, 4, 4); in acceptMatrixTemplateType() 1137 TType subpassType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptSubpassInputType() 1148 case EbtFloat: in acceptSubpassInputType() 1191 TType txType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptSamplerTypeDX9() 1315 TType txType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptTextureType() 1329 case EbtFloat: in acceptTextureType() 1431 const TBasicType min16float_bt = enable16BitTypes ? EbtFloat16 : EbtFloat; in acceptType() 1432 const TBasicType min10float_bt = enable16BitTypes ? EbtFloat16 : EbtFloat; in acceptType() [all …]
|
/external/angle/third_party/vulkan-deps/glslang/src/glslang/HLSL/ |
D | hlslGrammar.cpp | 830 basicType = EbtFloat; in acceptTemplateVecMatBasicType() 865 new(&type) TType(EbtFloat, EvqTemporary, 4); in acceptVectorTemplateType() 917 new(&type) TType(EbtFloat, EvqTemporary, 0, 4, 4); in acceptMatrixTemplateType() 1139 TType subpassType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptSubpassInputType() 1150 case EbtFloat: in acceptSubpassInputType() 1193 TType txType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptSamplerTypeDX9() 1317 TType txType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptTextureType() 1331 case EbtFloat: in acceptTextureType() 1433 const TBasicType min16float_bt = enable16BitTypes ? EbtFloat16 : EbtFloat; in acceptType() 1434 const TBasicType min10float_bt = enable16BitTypes ? EbtFloat16 : EbtFloat; in acceptType() [all …]
|
/external/angle/src/compiler/translator/tree_ops/ |
D | ClampIndirectIndices.cpp | 70 max = TIntermAggregate::CreateConstructor(*StaticType::GetBasic<EbtFloat>(), in visitBinary() 88 const TBasicType requiredBasicType = useFloatClamp ? EbtFloat : EbtInt; in visitBinary() 92 useFloatClamp ? StaticType::GetBasic<EbtFloat>() : StaticType::GetBasic<EbtInt>(); in visitBinary()
|
/external/angle/src/compiler/translator/tree_ops/gl/ |
D | ClampFragDepth.cpp | 33 TIntermTyped *minFragDepthNode = CreateZeroNode(TType(EbtFloat, EbpHigh, EvqConst)); in ClampFragDepth() 38 new TIntermConstantUnion(maxFragDepthConstant, TType(EbtFloat, EbpHigh, EvqConst)); in ClampFragDepth()
|