Home
last modified time | relevance | path

Searched refs:fFloat (Results 1 – 25 of 34) sorted by relevance

12

/external/skia/src/core/
DSkHalf.cpp25 float fFloat; member
39 floatUnion.fFloat = f; in SkFloatToHalf()
56 floatUnion.fFloat *= magic.fFloat; in SkFloatToHalf()
80 o.fFloat -= magic.fFloat; in SkHalfToFloat()
96 return o.fFloat; in SkHalfToFloat()
/external/skqp/src/core/
DSkHalf.cpp25 float fFloat; member
39 floatUnion.fFloat = f; in SkFloatToHalf()
56 floatUnion.fFloat *= magic.fFloat; in SkFloatToHalf()
80 o.fFloat -= magic.fFloat; in SkHalfToFloat()
96 return o.fFloat; in SkHalfToFloat()
/external/skia/src/sksl/
DSkSLBuiltinTypes.cpp89 : fFloat(MakeScalarType( in BuiltinTypes()
91 , fFloat2(MakeVectorType("float2", "f2", *fFloat, /*columns=*/2)) in BuiltinTypes()
92 , fFloat3(MakeVectorType("float3", "f3", *fFloat, /*columns=*/3)) in BuiltinTypes()
93 , fFloat4(MakeVectorType("float4", "f4", *fFloat, /*columns=*/4)) in BuiltinTypes()
122 , fFloatLiteral(MakeLiteralType("$floatLiteral", *fFloat, /*priority=*/8)) in BuiltinTypes()
124 , fFloat2x2(MakeMatrixType("float2x2", "f22", *fFloat, /*columns=*/2, /*rows=*/2)) in BuiltinTypes()
125 , fFloat2x3(MakeMatrixType("float2x3", "f23", *fFloat, /*columns=*/2, /*rows=*/3)) in BuiltinTypes()
126 , fFloat2x4(MakeMatrixType("float2x4", "f24", *fFloat, /*columns=*/2, /*rows=*/4)) in BuiltinTypes()
127 , fFloat3x2(MakeMatrixType("float3x2", "f32", *fFloat, /*columns=*/3, /*rows=*/2)) in BuiltinTypes()
128 , fFloat3x3(MakeMatrixType("float3x3", "f33", *fFloat, /*columns=*/3, /*rows=*/3)) in BuiltinTypes()
[all …]
DSkSLRehydrator.h30 float fFloat; member
DSkSLUtil.cpp54 if (type == *context.fTypes.fFloat ) { *outType = kFloat_GrSLType; return true; } in type_to_grsltype()
DSkSLBuiltinTypes.h24 const std::unique_ptr<Type> fFloat; variable
/external/skia/docs/examples/
DColor_Type_RGBA_F16.cpp8 float fFloat; member
14 floatUnion.fFloat = f; in FloatToHalf()
18 floatUnion.fFloat *= magic.fFloat; in FloatToHalf()
/external/skqp/src/sksl/
DSkSLInterpreter.cpp227 ctx.read_from[i * 4 + 2] = ctx.fInterpreter->pop().fFloat; in do_callback()
228 ctx.read_from[i * 4 + 1] = ctx.fInterpreter->pop().fFloat; in do_callback()
229 ctx.read_from[i * 4 + 0] = ctx.fInterpreter->pop().fFloat; in do_callback()
278 return Value(left.fFloat op right.fFloat); \ in evaluate()
300 return Value(left.fFloat op right.fFloat); \ in evaluate()
313 result.fFloat op right.fFloat; \ in evaluate()
408 return Value(-base.fFloat); in evaluate()
430 ++fStack[lvalue].fFloat; in evaluate()
433 --fStack[lvalue].fFloat; in evaluate()
DSkSLInterpreter.h35 : fFloat(f) {} in Value()
43 float fFloat; member
/external/skia/include/private/
DSkFloatBits.h41 float fFloat; member
48 data.fFloat = x; in SkFloat2Bits()
56 return data.fFloat; in SkBits2Float()
/external/skqp/include/private/
DSkFloatBits.h41 float fFloat; member
48 data.fFloat = x; in SkFloat2Bits()
56 return data.fFloat; in SkBits2Float()
/external/skia/tests/
DSkSLMemoryLayoutTest.cpp21 REPORTER_ASSERT(r, 4 == layout.size(*context.fTypes.fFloat)); in DEF_TEST()
38 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fTypes.fFloat)); in DEF_TEST()
64 fields1.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("b"), context.fTypes.fFloat.get()); in DEF_TEST()
89 SkSL::Type::MakeArrayType(SkSL::String("float[4]"), *context.fTypes.fFloat, 4); in DEF_TEST()
108 REPORTER_ASSERT(r, 4 == layout.size(*context.fTypes.fFloat)); in DEF_TEST()
125 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fTypes.fFloat)); in DEF_TEST()
151 fields1.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("b"), context.fTypes.fFloat.get()); in DEF_TEST()
176 SkSL::Type::MakeArrayType(SkSL::String("float[4]"), *context.fTypes.fFloat, 4); in DEF_TEST()
DMathTest.cpp669 float fFloat; in DEF_TEST() member
684 int i = sk_float_saturate2int(r.fFloat); in DEF_TEST()
688 SkScalar p = SkTPin<SkScalar>(r.fFloat, 0, 100); in DEF_TEST()
695 float fFloat; in DEF_TEST() member
710 int64_t i = sk_float_saturate2int64(r.fFloat); in DEF_TEST()
DSkSLInterpreterTest.cpp880 : INHERITED(name, *compiler.context().fTypes.fFloat) in ExternalSqrt()
886 outTypes[0] = fCompiler.context().fTypes.fFloat.get(); in getCallParameterTypes()
926 : INHERITED(name, *compiler.context().fTypes.fFloat) in ExternalTable()
935 outTypes[0] = fCompiler.context().fTypes.fFloat.get(); in getCallParameterTypes()
/external/skqp/tests/
DMathTest.cpp634 float fFloat; in DEF_TEST() member
649 int i = sk_float_saturate2int(r.fFloat); in DEF_TEST()
654 SkScalar mx = SkTMax<SkScalar>(r.fFloat, 50); in DEF_TEST()
657 SkScalar mn = SkTMin<SkScalar>(r.fFloat, 50); in DEF_TEST()
660 SkScalar p = SkTPin<SkScalar>(r.fFloat, 0, 100); in DEF_TEST()
667 float fFloat; in DEF_TEST() member
682 int64_t i = sk_float_saturate2int64(r.fFloat); in DEF_TEST()
DGrTRecorderTest.cpp164 SubSubclass() : fInt(1234), fFloat(1.234f) {} in SubSubclass()
171 REPORTER_ASSERT(reporter, 1.234f == fFloat); in validate()
176 float fFloat; member in SubSubclass
/external/skia/src/sksl/ir/
DSkSLType.cpp61 if (*this == *context.fTypes.fFloat || *this == *context.fTypes.fFloatLiteral) { in toCompound()
65 case 1: return *context.fTypes.fFloat; in toCompound()
DSkSLIndexExpression.cpp16 if (type.componentType() == *context.fTypes.fFloat) { in IndexType()
/external/skia/src/pathops/
DSkPathOpsTypes.cpp183 floatIntA.fFloat = a; in UlpsDistance()
184 floatIntB.fFloat = b; in UlpsDistance()
/external/skqp/src/pathops/
DSkPathOpsTypes.cpp183 floatIntA.fFloat = a; in UlpsDistance()
184 floatIntB.fFloat = b; in UlpsDistance()
/external/pdfium/fxjs/xfa/
Dcfxjse_value.h52 void SetFloat(float fFloat);
Dcfxjse_value.cpp124 void CFXJSE_Value::SetFloat(float fFloat) { in SetFloat() argument
126 v8::Local<v8::Value> pValue = v8::Number::New(GetIsolate(), ftod(fFloat)); in SetFloat()
/external/skia/src/sksl/codegen/
DSkSLSPIRVCodeGenerator.cpp481 return *fContext.fTypes.fFloat; in getActualType()
491 return fContext.fTypes.fFloat->toCompound(fContext, type.columns(), type.rows()); in getActualType()
534 } else if (type == *fContext.fTypes.fFloat || type == *fContext.fTypes.fHalf || in getType()
606 this->getType(*fContext.fTypes.fFloat, layout), in getType()
968 SkASSERT(arg1Type == *fContext.fTypes.fFloat); in writeSpecialIntrinsic()
1003 fContext.fTypes.fFloat.get()); in writeSpecialIntrinsic()
1264 FloatLiteral one(/*offset=*/-1, /*value=*/1, fContext.fTypes.fFloat.get()); in castScalarToFloat()
1266 FloatLiteral zero(/*offset=*/-1, /*value=*/0, fContext.fTypes.fFloat.get()); in castScalarToFloat()
1386 FloatLiteral zero(/*offset=*/-1, /*value=*/0, fContext.fTypes.fFloat.get()); in castScalarToBoolean()
1399 FloatLiteral zero(/*offset=*/-1, /*value=*/0, fContext.fTypes.fFloat.get()); in writeUniformScaleMatrix()
[all …]
DSkSLGLSLCodeGenerator.cpp97 if (component == *fContext.fTypes.fFloat || component == *fContext.fTypes.fHalf) { in getTypeName()
118 if (component == *fContext.fTypes.fFloat || component == *fContext.fTypes.fHalf) { in getTypeName()
603 if (arg1Type == *fContext.fTypes.fFloat) { in writeFunctionCall()
1122 if (type == *fContext.fTypes.fFloat || type == *fContext.fTypes.fInt || in getTypePrecision()
/external/skia/src/sksl/dsl/
DDSLType.cpp103 return *context.fTypes.fFloat; in skslType()

12