/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/compiler/translator/ |
D | util.cpp | 202 if (type.getBasicType() == EbtFloat) in GLVariableType() 448 if (type.getBasicType() == EbtFloat) in GLVariablePrecision() 614 return TType(EbtFloat); in GetShaderVariableBasicType() 616 return TType(EbtFloat, 2); in GetShaderVariableBasicType() 618 return TType(EbtFloat, 3); in GetShaderVariableBasicType() 620 return TType(EbtFloat, 4); in GetShaderVariableBasicType() 622 return TType(EbtFloat, 2, 2); in GetShaderVariableBasicType() 624 return TType(EbtFloat, 3, 3); in GetShaderVariableBasicType() 626 return TType(EbtFloat, 4, 4); in GetShaderVariableBasicType() 628 return TType(EbtFloat, 2, 3); in GetShaderVariableBasicType() [all …]
|
D | ConstantUnion.cpp | 97 ASSERT(type == EbtFloat); in getFConst() 116 case EbtFloat: in isZero() 135 case EbtFloat: in cast() 147 case EbtFloat: in cast() 166 case EbtFloat: in cast() 185 case EbtFloat: in cast() 213 case EbtFloat: in cast() 232 case EbtFloat: in cast() 250 case EbtFloat: in operator ==() 261 case EbtFloat: in operator ==() [all …]
|
D | SymbolTable_ESSL_autogen.cpp | 1363 StaticType::Get<EbtFloat, EbpMedium, EvqFragColor, 4, 1>()); 1368 StaticType::Get<EbtFloat, EbpMedium, EvqFragCoord, 4, 1>()); 1373 StaticType::Get<EbtFloat, EbpHigh, EvqFragDepth, 1, 1>()); 1414 StaticType::Get<EbtFloat, EbpMedium, EvqLastFragColor, 4, 1>()); 1420 StaticType::Get<EbtFloat, EbpMedium, EvqLastFragColor, 4, 1>()); 1459 StaticType::Get<EbtFloat, EbpMedium, EvqPointCoord, 2, 1>()); 1464 StaticType::Get<EbtFloat, EbpMedium, EvqPointSize, 1, 1>()); 1469 StaticType::Get<EbtFloat, EbpHigh, EvqPosition, 4, 1>()); 1492 StaticType::Get<EbtFloat, EbpMedium, EvqSecondaryFragColorEXT, 4, 1>()); 1530 StaticType::Get<EbtFloat, EbpUndefined, EvqGlobal, 1, 1>()); [all …]
|
D | IntermNode.cpp | 61 case EbtFloat: in UndefinedConstantFoldingError() 1246 setType(TType(EbtFloat, EbpHigh, resultQualifier, operandPrimarySize)); in promote() 1257 setType(TType(EbtFloat, EbpHigh, resultQualifier, 2)); in promote() 1260 setType(TType(EbtFloat, EbpMedium, resultQualifier, 2)); in promote() 1264 setType(TType(EbtFloat, EbpMedium, resultQualifier, 4)); in promote() 1272 setType(TType(EbtFloat, mOperand->getType().getPrecision(), resultQualifier)); in promote() 1275 setType(TType(EbtFloat, mOperand->getType().getPrecision(), resultQualifier, in promote() 1303 : TIntermExpression(TType(EbtFloat, EbpUndefined)), in TIntermSwizzle() 2026 if (typedArg->getBasicType() == EbtFloat) in fold() 2117 ASSERT(leftType.getBasicType() == EbtFloat && rightType.getBasicType() == EbtFloat); in FoldBinary() [all …]
|
D | SymbolTable_autogen.cpp | 2624 StaticType::Get<EbtFloat, EbpMedium, EvqFragColor, 4, 1>()); 2629 StaticType::Get<EbtFloat, EbpMedium, EvqFragCoord, 4, 1>()); 2634 StaticType::Get<EbtFloat, EbpHigh, EvqFragDepth, 1, 1>()); 2675 StaticType::Get<EbtFloat, EbpMedium, EvqLastFragColor, 4, 1>()); 2681 StaticType::Get<EbtFloat, EbpMedium, EvqLastFragColor, 4, 1>()); 2720 StaticType::Get<EbtFloat, EbpMedium, EvqPointCoord, 2, 1>()); 2725 StaticType::Get<EbtFloat, EbpMedium, EvqPointSize, 1, 1>()); 2730 StaticType::Get<EbtFloat, EbpHigh, EvqPosition, 4, 1>()); 2753 StaticType::Get<EbtFloat, EbpMedium, EvqSecondaryFragColorEXT, 4, 1>()); 2791 StaticType::Get<EbtFloat, EbpUndefined, EvqGlobal, 1, 1>()); [all …]
|
D | TranslatorVulkan.cpp | 239 const TType *type = StaticType::GetForVec<EbtFloat>( in FlipBuiltinVariable() 386 depthRangeParamsFields->push_back(new TField(new TType(EbtFloat, EbpHigh, EvqGlobal, 1, 1), in AddGraphicsDriverUniformsToShader() 389 depthRangeParamsFields->push_back(new TField(new TType(EbtFloat, EbpHigh, EvqGlobal, 1, 1), in AddGraphicsDriverUniformsToShader() 392 depthRangeParamsFields->push_back(new TField(new TType(EbtFloat, EbpHigh, EvqGlobal, 1, 1), in AddGraphicsDriverUniformsToShader() 396 depthRangeParamsFields->push_back(new TField(new TType(EbtFloat, EbpHigh, EvqGlobal, 1, 1), in AddGraphicsDriverUniformsToShader() 414 new TType(EbtFloat, 4), in AddGraphicsDriverUniformsToShader() 415 new TType(EbtFloat), in AddGraphicsDriverUniformsToShader() 416 new TType(EbtFloat), in AddGraphicsDriverUniformsToShader() 417 new TType(EbtFloat), in AddGraphicsDriverUniformsToShader() 424 new TType(EbtFloat, 2, 2), in AddGraphicsDriverUniformsToShader() [all …]
|
D | glslang.y | 985 $$.initialize(EbtFloat, @1); 997 $$.initialize(EbtFloat, @1); 1001 $$.initialize(EbtFloat, @1); 1005 $$.initialize(EbtFloat, @1); 1045 $$.initialize(EbtFloat, @1); 1049 $$.initialize(EbtFloat, @1); 1053 $$.initialize(EbtFloat, @1); 1057 $$.initialize(EbtFloat, @1); 1061 $$.initialize(EbtFloat, @1); 1065 $$.initialize(EbtFloat, @1); [all …]
|
/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 …]
|
D | IntermNode_test.cpp | 59 TType type(EbtFloat, EbpHigh); in createTestSymbol() 178 TType type(EbtFloat, EbpHigh); in TEST_F() 197 TType type(EbtFloat, EbpHigh); in TEST_F() 247 TType type(EbtFloat, EbpHigh); in TEST_F()
|
/external/deqp-deps/glslang/glslang/MachineIndependent/ |
D | glslang.y | 372 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true); 1668 $$.basicType = EbtFloat; 1685 $$.basicType = EbtFloat; 1690 $$.basicType = EbtFloat; 1695 $$.basicType = EbtFloat; 1748 $$.basicType = EbtFloat; 1753 $$.basicType = EbtFloat; 1758 $$.basicType = EbtFloat; 1763 $$.basicType = EbtFloat; 1768 $$.basicType = EbtFloat; [all …]
|
D | Intermediate.cpp | 387 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 | 372 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true); 1668 $$.basicType = EbtFloat; 1685 $$.basicType = EbtFloat; 1690 $$.basicType = EbtFloat; 1695 $$.basicType = EbtFloat; 1748 $$.basicType = EbtFloat; 1753 $$.basicType = EbtFloat; 1758 $$.basicType = EbtFloat; 1763 $$.basicType = EbtFloat; 1768 $$.basicType = EbtFloat; [all …]
|
D | glslang_tab.cpp | 4252 …pedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloat, (yyvsp[0].lex).l… in yyparse() 6363 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6400 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6410 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6420 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6523 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6533 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6543 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6553 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6563 (yyval.interm.type).basicType = EbtFloat; in yyparse() [all …]
|
/external/angle/third_party/glslang/src/glslang/MachineIndependent/ |
D | glslang.y | 372 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true); 1668 $$.basicType = EbtFloat; 1685 $$.basicType = EbtFloat; 1690 $$.basicType = EbtFloat; 1695 $$.basicType = EbtFloat; 1748 $$.basicType = EbtFloat; 1753 $$.basicType = EbtFloat; 1758 $$.basicType = EbtFloat; 1763 $$.basicType = EbtFloat; 1768 $$.basicType = EbtFloat; [all …]
|
D | Intermediate.cpp | 387 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 | 372 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true); 1668 $$.basicType = EbtFloat; 1685 $$.basicType = EbtFloat; 1690 $$.basicType = EbtFloat; 1695 $$.basicType = EbtFloat; 1748 $$.basicType = EbtFloat; 1753 $$.basicType = EbtFloat; 1758 $$.basicType = EbtFloat; 1763 $$.basicType = EbtFloat; 1768 $$.basicType = EbtFloat; [all …]
|
D | glslang_tab.cpp | 4252 …pedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloat, (yyvsp[0].lex).l… in yyparse() 6363 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6400 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6410 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6420 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6523 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6533 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6543 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6553 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6563 (yyval.interm.type).basicType = EbtFloat; in yyparse() [all …]
|
/external/angle/third_party/glslang/src/hlsl/ |
D | hlslGrammar.cpp | 815 basicType = EbtFloat; in acceptTemplateVecMatBasicType() 850 new(&type) TType(EbtFloat, EvqTemporary, 4); in acceptVectorTemplateType() 902 new(&type) TType(EbtFloat, EvqTemporary, 0, 4, 4); in acceptMatrixTemplateType() 1124 TType subpassType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptSubpassInputType() 1135 case EbtFloat: in acceptSubpassInputType() 1178 TType txType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptSamplerTypeDX9() 1302 TType txType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptTextureType() 1316 case EbtFloat: in acceptTextureType() 1418 const TBasicType min16float_bt = enable16BitTypes ? EbtFloat16 : EbtFloat; in acceptType() 1419 const TBasicType min10float_bt = enable16BitTypes ? EbtFloat16 : EbtFloat; in acceptType() [all …]
|
/external/deqp-deps/glslang/hlsl/ |
D | hlslGrammar.cpp | 815 basicType = EbtFloat; in acceptTemplateVecMatBasicType() 850 new(&type) TType(EbtFloat, EvqTemporary, 4); in acceptVectorTemplateType() 902 new(&type) TType(EbtFloat, EvqTemporary, 0, 4, 4); in acceptMatrixTemplateType() 1124 TType subpassType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptSubpassInputType() 1135 case EbtFloat: in acceptSubpassInputType() 1178 TType txType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptSamplerTypeDX9() 1302 TType txType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptTextureType() 1316 case EbtFloat: in acceptTextureType() 1418 const TBasicType min16float_bt = enable16BitTypes ? EbtFloat16 : EbtFloat; in acceptType() 1419 const TBasicType min10float_bt = enable16BitTypes ? EbtFloat16 : EbtFloat; in acceptType() [all …]
|
/external/angle/src/compiler/translator/tree_ops/ |
D | ClampFragDepth.cpp | 33 TIntermTyped *minFragDepthNode = CreateZeroNode(TType(EbtFloat, EbpHigh, EvqConst)); in ClampFragDepth() 38 new TIntermConstantUnion(maxFragDepthConstant, TType(EbtFloat, EbpHigh, EvqConst)); in ClampFragDepth()
|