Home
last modified time | relevance | path

Searched refs:EbtFloat (Results 1 – 25 of 88) sorted by relevance

1234

/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DConstantUnion.h37 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 …]
DIntermediate.cpp69 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 …]
DInitialize.cpp27 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 …]
DSymbolTable.h270 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()
Dglslang.y265 …$$ = context->intermediate.addConstantUnion(unionArray, TType(EbtFloat, EbpUndefined, EvqConstExpr…
1087 $$.setBasic(EbtFloat, qual, @1);
1103 $$.setBasic(EbtFloat, qual, @1);
1108 $$.setBasic(EbtFloat, qual, @1);
1113 $$.setBasic(EbtFloat, qual, @1);
1164 $$.setBasic(EbtFloat, qual, @1);
1170 $$.setBasic(EbtFloat, qual, @1);
1176 $$.setBasic(EbtFloat, qual, @1);
1182 $$.setBasic(EbtFloat, qual, @1);
1188 $$.setBasic(EbtFloat, qual, @1);
[all …]
DBaseTypes.h49 EbtFloat, enumerator
111 case EbtFloat: return "float"; in getBasicString()
340 return type == EbtFloat || type == EbtInt || type == EbtUInt || IsSampler(type); in SupportsPrecision()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
Dutil.cpp257 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 …]
DConstantUnion.cpp76 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 …]
DIntermNode.cpp62 case EbtFloat: in UndefinedConstantFoldingError()
1386 resultType.setBasicType(EbtFloat); in promote()
1399 resultType.setBasicType(EbtFloat); in promote()
1404 resultType.setBasicType(EbtFloat); in promote()
1414 resultType.setBasicType(EbtFloat); in promote()
1419 ASSERT(resultType.getBasicType() == EbtFloat); in promote()
1518 : TIntermExpression(TType(EbtFloat, EbpUndefined)), in TIntermSwizzle()
2335 if (typedArg->getBasicType() == EbtFloat) in fold()
2426 ASSERT(leftType.getBasicType() == EbtFloat && rightType.getBasicType() == EbtFloat); in FoldBinary()
2599 ASSERT(rightType.getBasicType() == EbtFloat); in FoldBinary()
[all …]
DSymbolTable_ESSL_autogen.cpp2258 StaticType::Get<EbtFloat, EbpMedium, EvqFragColor, 4, 1>());
2263 StaticType::Get<EbtFloat, EbpMedium, EvqFragCoord, 4, 1>());
2269 StaticType::Get<EbtFloat, EbpHigh, EvqFragCoord, 4, 1>());
2274 StaticType::Get<EbtFloat, EbpHigh, EvqFragDepth, 1, 1>());
2333 StaticType::Get<EbtFloat, EbpMedium, EvqLastFragColor, 4, 1>());
2339 StaticType::Get<EbtFloat, EbpMedium, EvqLastFragColor, 4, 1>());
2425 StaticType::Get<EbtFloat, EbpMedium, EvqPointCoord, 2, 1>());
2430 StaticType::Get<EbtFloat, EbpMedium, EvqPointSize, 1, 1>());
2436 StaticType::Get<EbtFloat, EbpHigh, EvqPointSize, 1, 1>());
2441 StaticType::Get<EbtFloat, EbpHigh, EvqPosition, 4, 1>());
[all …]
DSymbolTable_autogen.cpp3455 StaticType::Get<EbtFloat, EbpMedium, EvqFragColor, 4, 1>());
3460 StaticType::Get<EbtFloat, EbpMedium, EvqFragCoord, 4, 1>());
3466 StaticType::Get<EbtFloat, EbpHigh, EvqFragCoord, 4, 1>());
3471 StaticType::Get<EbtFloat, EbpHigh, EvqFragDepth, 1, 1>());
3530 StaticType::Get<EbtFloat, EbpMedium, EvqLastFragColor, 4, 1>());
3536 StaticType::Get<EbtFloat, EbpMedium, EvqLastFragColor, 4, 1>());
3622 StaticType::Get<EbtFloat, EbpMedium, EvqPointCoord, 2, 1>());
3627 StaticType::Get<EbtFloat, EbpMedium, EvqPointSize, 1, 1>());
3633 StaticType::Get<EbtFloat, EbpHigh, EvqPointSize, 1, 1>());
3638 StaticType::Get<EbtFloat, EbpHigh, EvqPosition, 4, 1>());
[all …]
DDriverUniformMetal.cpp42 new TType(EbtFloat, EbpHigh, EvqGlobal, 2), // halfRenderArea in createUniformFields()
43 new TType(EbtFloat, EbpLow, EvqGlobal, 2), // flipXY in createUniformFields()
44 new TType(EbtFloat, EbpLow, EvqGlobal, 2), // negFlipXY in createUniformFields()
Dglslang.y1014 $$.initialize(EbtFloat, @1);
1026 $$.initialize(EbtFloat, @1);
1030 $$.initialize(EbtFloat, @1);
1034 $$.initialize(EbtFloat, @1);
1074 $$.initialize(EbtFloat, @1);
1078 $$.initialize(EbtFloat, @1);
1082 $$.initialize(EbtFloat, @1);
1086 $$.initialize(EbtFloat, @1);
1090 $$.initialize(EbtFloat, @1);
1094 $$.initialize(EbtFloat, @1);
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DProgramPrelude.cpp3089 if (coordBasic == TBasicType::EbtFloat && coordN == 3) in BuildFuncToEmitter()
3100 if (coordBasic == TBasicType::EbtFloat && coordN == 4) in BuildFuncToEmitter()
3111 if (coordBasic == TBasicType::EbtFloat && coordN == 4) in BuildFuncToEmitter()
3122 if (coordBasic == TBasicType::EbtFloat && coordN == 3) in BuildFuncToEmitter()
3130 if (coordBasic == TBasicType::EbtFloat && coordN == 4) in BuildFuncToEmitter()
3139 if (coordBasic == TBasicType::EbtFloat && coordN == 2) in BuildFuncToEmitter()
3147 if (coordBasic == TBasicType::EbtFloat && coordN == 3) in BuildFuncToEmitter()
3183 if (coordBasic == TBasicType::EbtFloat && coordN == 3 && dPdxN == 2) in BuildFuncToEmitter()
3190 if (coordBasic == TBasicType::EbtFloat && coordN == 4 && dPdxN == 2) in BuildFuncToEmitter()
3197 if (coordBasic == TBasicType::EbtFloat && coordN == 4 && dPdxN == 3) in BuildFuncToEmitter()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
DType_test.cpp26 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()
DInitOutputVariables_test.cpp280 CreateLValueNode(ImmutableString("out1"), TType(EbtFloat, EbpMedium, EvqVertexOut, 4)), in TEST_F()
282 CreateLValueNode(ImmutableString("out3"), TType(EbtFloat, EbpMedium, EvqCentroidOut)), in TEST_F()
283 CreateLValueNode(ImmutableString("out4"), TType(EbtFloat, EbpMedium, EvqSmoothOut))}; in TEST_F()
300 ImmutableString("out1"), TType(EbtFloat, EbpMedium, EvqVertexOut), 2); in TEST_F()
344 CreateLValueNode(ImmutableString("out1"), TType(EbtFloat, EbpMedium, EvqVaryingOut, 4)); in TEST_F()
362 CreateLValueNode(ImmutableString("out1"), TType(EbtFloat, EbpMedium, EvqFragmentOut, 4)); in TEST_F()
380 ImmutableString("gl_FragData"), TType(EbtFloat, EbpMedium, EvqFragData, 4), 1); in TEST_F()
400 ImmutableString("gl_FragData"), TType(EbtFloat, EbpMedium, EvqFragData, 4), 2); in TEST_F()
419 ImmutableString("gl_FragData"), TType(EbtFloat, EbpMedium, EvqFragData, 4), 2); in TEST_F()
438 CreateLValueNode(ImmutableString("gl_Position"), TType(EbtFloat, EbpHigh, EvqPosition, 4)); in TEST_F()
[all …]
DIntermNode_test.cpp59 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()
/third_party/glslang/glslang/MachineIndependent/
Dglslang.y370 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true);
1779 $$.basicType = EbtFloat;
1796 $$.basicType = EbtFloat;
1801 $$.basicType = EbtFloat;
1806 $$.basicType = EbtFloat;
1859 $$.basicType = EbtFloat;
1864 $$.basicType = EbtFloat;
1869 $$.basicType = EbtFloat;
1874 $$.basicType = EbtFloat;
1879 $$.basicType = EbtFloat;
[all …]
DIntermediate.cpp388 case EOpConstructFloat: newType = EbtFloat; break; in addUnaryMath()
574 case EbtFloat: newOp = EOpConvFloatToDouble; break; in buildConvertOp()
587 case EbtFloat: in buildConvertOp()
613 case EbtFloat: newOp = EOpConvFloatToFloat16; break; in buildConvertOp()
625 case EbtFloat: newOp = EOpConvFloatToBool; break; in buildConvertOp()
648 case EbtFloat: newOp = EOpConvFloatToInt8; break; in buildConvertOp()
665 case EbtFloat: newOp = EOpConvFloatToUint8; break; in buildConvertOp()
683 case EbtFloat: newOp = EOpConvFloatToInt16; break; in buildConvertOp()
700 case EbtFloat: newOp = EOpConvFloatToUint16; break; in buildConvertOp()
712 case EbtFloat: newOp = EOpConvFloatToInt; break; in buildConvertOp()
[all …]
Dglslang_tab.cpp5234 …pedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloat, (yyvsp[0].lex).l… in yyparse()
7547 (yyval.interm.type).basicType = EbtFloat; in yyparse()
7584 (yyval.interm.type).basicType = EbtFloat; in yyparse()
7594 (yyval.interm.type).basicType = EbtFloat; in yyparse()
7604 (yyval.interm.type).basicType = EbtFloat; in yyparse()
7707 (yyval.interm.type).basicType = EbtFloat; in yyparse()
7717 (yyval.interm.type).basicType = EbtFloat; in yyparse()
7727 (yyval.interm.type).basicType = EbtFloat; in yyparse()
7737 (yyval.interm.type).basicType = EbtFloat; in yyparse()
7747 (yyval.interm.type).basicType = EbtFloat; in yyparse()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DDriverUniform.cpp91 new TType(EbtFloat, EbpHigh, EvqGlobal, 4), in createUniformFields()
124 TType *floatType = new TType(EbtFloat, EbpHigh, EvqGlobal, 1, 1); in createEmulatedDepthRangeType()
278 new TType(EbtFloat, EbpHigh, EvqGlobal, 2), in createUniformFields()
279 new TType(EbtFloat, EbpLow, EvqGlobal, 2), in createUniformFields()
280 new TType(EbtFloat, EbpLow, EvqGlobal, 2), in createUniformFields()
283 new TType(EbtFloat, EbpLow, EvqGlobal, 2, 2), in createUniformFields()
284 new TType(EbtFloat, EbpLow, EvqGlobal, 2, 2), in createUniformFields()
DSpecializationConstant.cpp61 auto mat2Type = new TType(EbtFloat, 2, 2); in CreateMat2x2()
75 auto mat2Type = new TType(EbtFloat, 2, 2); in GenerateMat2x2ArrayWithIndex()
118 auto vec2Type = new TType(EbtFloat, 2); in CreateVec2()
132 auto vec2Type = new TType(EbtFloat, 2); in CreateVec2ArrayWithIndex()
201 const TType *floatType = StaticType::GetBasic<EbtFloat, EbpHigh>(); in CreateFloatArrayWithRotationIndex()
475 const TType *type = MakeSpecConst(*StaticType::GetBasic<EbtFloat, EbpHigh>(), in getDrawableWidth()
488 const TType *type = MakeSpecConst(*StaticType::GetBasic<EbtFloat, EbpHigh>(), in getDrawableHeight()
505 auto vec2Type = new TType(EbtFloat, 2); in getHalfRenderArea()
/third_party/glslang/glslang/HLSL/
DhlslGrammar.cpp857 basicType = EbtFloat; in acceptTemplateVecMatBasicType()
873 basicType = parseContext.hlslEnable16BitTypes() ? EbtFloat16 : EbtFloat; in acceptTemplateVecMatBasicType()
877 basicType = parseContext.hlslEnable16BitTypes() ? EbtFloat16 : EbtFloat; in acceptTemplateVecMatBasicType()
909 new(&type) TType(EbtFloat, EvqTemporary, 4); in acceptVectorTemplateType()
962 new(&type) TType(EbtFloat, EvqTemporary, 0, 4, 4); in acceptMatrixTemplateType()
1185 TType subpassType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptSubpassInputType()
1196 case EbtFloat: in acceptSubpassInputType()
1239 TType txType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptSamplerTypeDX9()
1363 TType txType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptTextureType()
1377 case EbtFloat: in acceptTextureType()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DClampIndirectIndices.cpp71 *StaticType::GetBasic<EbtFloat, EbpHigh>(), &constructorArgs); in visitBinary()
88 const TBasicType requiredBasicType = useFloatClamp ? EbtFloat : EbtInt; in visitBinary()
91 const TType *clampType = useFloatClamp ? StaticType::GetBasic<EbtFloat, EbpHigh>() in visitBinary()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/gl/
DClampFragDepth.cpp33 TIntermTyped *minFragDepthNode = CreateZeroNode(TType(EbtFloat, EbpHigh, EvqConst)); in ClampFragDepth()
38 new TIntermConstantUnion(maxFragDepthConstant, TType(EbtFloat, EbpHigh, EvqConst)); in ClampFragDepth()

1234