Home
last modified time | relevance | path

Searched refs:float2 (Results 1 - 25 of 35) sorted by relevance

12

/third_party/skia/src/gpu/tessellate/
H A DPatchWriter.cpp14 SK_ALWAYS_INLINE SkPoint to_skpoint(float2 p) { return skvx::bit_pun<SkPoint>(p); } in to_skpoint()
28 void PatchWriter::chopAndWriteQuads(float2 p0, float2 p1, float2 p2, int numPatches) { in chopAndWriteQuads()
53 float2 ab = (p0 + p1) * .5f; in chopAndWriteQuads()
54 float2 bc = (p1 + p2) * .5f; in chopAndWriteQuads()
55 float2 abc = (ab + bc) * .5f; in chopAndWriteQuads()
72 void PatchWriter::chopAndWriteConics(float2 p0, float2 p1, float2 p
[all...]
H A DWangsFormula.h65 using float2 = skvx::Vec<2, float>;
87 AI float2 operator()(float2 vector) const { in operator ()()
94 return fScaleXSkewY * float2(vector[0]) + fSkewXScaleY * vector[1]; in operator ()()
111 union { float2 fScaleXY, fScaleXSkewY; };
112 float2 fSkewXScaleY;
121 float2 p0 = skvx::bit_pun<float2>(pts[0]); in quadratic_pow4()
122 float2 p1 = skvx::bit_pun<float2>(pt in quadratic_pow4()
[all...]
H A DAffineMatrix.h29 fScale = float2(m.getScaleX(), m.getScaleY()).xyxy(); in operator =()
30 fSkew = float2(m.getSkewX(), m.getSkewY()).xyxy(); in operator =()
31 fTrans = float2(m.getTranslateX(), m.getTranslateY()).xyxy(); in operator =()
44 return this->map2Points(float4(skvx::bit_pun<float2>(p0), skvx::bit_pun<float2>(p1))); in map2Points()
47 SK_ALWAYS_INLINE float2 mapPoint(float2 p) const { in mapPoint()
51 SK_ALWAYS_INLINE float2 map1Point(const SkPoint pt[1]) const { in map1Point()
52 return this->mapPoint(float2::Load(pt)); in map1Point()
56 return skvx::bit_pun<SkPoint>(this->mapPoint(skvx::bit_pun<float2>( in mapPoint()
[all...]
H A DPatchWriter.h110 void chopAndWriteQuads(float2 p0, float2 p1, float2 p2, int numPatches);
116 void chopAndWriteConics(float2 p0, float2 p1, float2 p2, float w, int numPatches);
122 void chopAndWriteCubics(float2 p0, float2 p1, float2 p2, float2 p
[all...]
H A DTessellation.h25 using float2 = vec<2>;
38 AI float dot(float2 a, float2 b) { in dot()
39 float2 ab = a*b; in dot()
43 AI float cross(float2 a, float2 b) { in cross()
44 float2 x = a * b.yx(); in cross()
75 kFanPoint = 1 << 0, // [float2] Used by wedges. This is the center point the wedges fan around.
76 kStrokeParams = 1 << 1, // [float2] Used when strokes have different widths or join types.
101 // This float2 get
[all...]
H A DStrokeHardwareTessellator.cpp44 float2 pow4(float2 x) { in pow4()
110 float2 numRadialSegments_180_360 = skvx::max(skvx::ceil( in updateTolerances()
111 float2{SK_ScalarPI, 2*SK_ScalarPI} * fNumRadialSegmentsPerRadian), 1); in updateTolerances()
115 float2 maxParametricSegments = skvx::max(maxTotalEdges - numRadialSegments_180_360, 0); in updateTolerances()
116 float2 maxParametricSegments_pow4 = pow4(maxParametricSegments); in updateTolerances()
132 float2 maxParametricSegments_pow4_withJoin = pow4(skvx::max( in updateTolerances()
665 float2 p0 = skvx::bit_pun<float2>(p[0]); in cubic_has_cusp()
666 float2 p in cubic_has_cusp()
[all...]
/third_party/skia/src/gpu/geometry/
H A DGrPathUtils.h140 using grvx::float2, skvx::bit_pun; in writeLineAsCubic()
141 float2 p0 = bit_pun<float2>(startPt); in writeLineAsCubic()
142 float2 p1 = bit_pun<float2>(endPt); in writeLineAsCubic()
143 float2 v = (p1 - p0) * (1/3.f); in writeLineAsCubic()
149 using grvx::float2, skvx::bit_pun; in writeQuadAsCubic()
150 float2 p0 = bit_pun<float2>(p[0]); in writeQuadAsCubic()
151 float2 p in writeQuadAsCubic()
[all...]
H A DGrPathUtils.cpp554 using grvx::float2; in findCubicConvex180Chops()
571 float2 p0 = skvx::bit_pun<float2>(pts[0]); in findCubicConvex180Chops()
572 float2 p1 = skvx::bit_pun<float2>(pts[1]); in findCubicConvex180Chops()
573 float2 p2 = skvx::bit_pun<float2>(pts[2]); in findCubicConvex180Chops()
574 float2 p3 = skvx::bit_pun<float2>(pts[3]); in findCubicConvex180Chops()
588 float2 in findCubicConvex180Chops()
[all...]
/third_party/skia/experimental/graphite/src/geom/
H A DRect.h31 AI Rect(float2 topLeft, float2 botRight) : fVals(topLeft, -botRight) {} in Rect()
37 AI static Rect XYWH(float2 topLeft, float2 size) { in XYWH()
43 AI static Rect WH(float2 size) { in WH()
44 return Rect(float2(0), size); in WH()
46 AI static Rect Point(float2 p) { in Point()
74 AI float2 topLeft() const { return fVals.xy(); } in topLeft()
75 AI float2 botRight() const { return -fVals.zw(); } in botRight()
82 AI void setTopLeft(float2 topLef in setBot()
[all...]
H A DShape.h40 Shape(float2 p0, float2 p1) { this->setLine(p0, p1); } in Shape()
87 bool conservativeContains(float2 point) const;
105 float2 p0() const { SkASSERT(this->isLine()); return fRect.topLeft(); } in p0()
106 float2 p1() const { SkASSERT(this->isLine()); return fRect.botRight(); } in p1()
117 this->setLine(float2{p0.fX, p0.fY}, float2{p1.fX, p1.fY}); in setLine()
120 this->setLine(float2{p0.x, p0.y}, float2{p1.x, p1.y}); in setLine()
122 void setLine(float2 p in setLine()
[all...]
H A DVectorTypes.h17 using float2 = vec<2>;
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
H A DInitialize.cpp28 TType *float2 = new TType(EbtFloat, 2); in InsertBuiltInFunctions() local
118 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpModf, float2, "modf", float2, outFloat2); in InsertBuiltInFunctions()
129 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpPackSnorm2x16, uint1, "packSnorm2x16", float2); in InsertBuiltInFunctions()
130 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpPackUnorm2x16, uint1, "packUnorm2x16", float2); in InsertBuiltInFunctions()
131 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpPackHalf2x16, uint1, "packHalf2x16", float2); in InsertBuiltInFunctions()
132 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpUnpackSnorm2x16, float2, "unpackSnorm2x16", uint1); in InsertBuiltInFunctions()
133 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpUnpackUnorm2x16, float2, "unpackUnorm2x16", uint1); in InsertBuiltInFunctions()
134 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpUnpackHalf2x16, float2, "unpackHalf2x16", uint1); in InsertBuiltInFunctions()
171 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpOuterProduct, mat2, "outerProduct", float2, float in InsertBuiltInFunctions()
[all...]
/third_party/skia/src/gpu/
H A DGrVx.h21 using float2 = vec<2>;
32 static SK_ALWAYS_INLINE float dot(float2 a, float2 b) { in dot()
33 float2 ab = a*b; in dot()
37 static SK_ALWAYS_INLINE float cross(float2 a, float2 b) { in cross()
38 float2 x = a*skvx::shuffle<1,0>(b); in cross()
/third_party/skia/tests/graphite/
H A DRectTest.cpp30 CHECK(rect2 == Rect(float2(l,t), float2(r,b))); in DEF_GRAPHITE_TEST()
39 CHECK(rect2 == Rect::XYWH(float2(l, t), float2(r - l, b - t))); in DEF_GRAPHITE_TEST()
42 CHECK(rect2 == Rect::WH(float2(r - l, b - t))); in DEF_GRAPHITE_TEST()
52 CHECK(all(rect2.topLeft() == float2(l,t))); in DEF_GRAPHITE_TEST()
53 CHECK(all(rect2.botRight() == float2(r,b))); in DEF_GRAPHITE_TEST()
78 CHECK(all(rect2.size() == float2(skRect2.width(), skRect2.height()))); in DEF_GRAPHITE_TEST()
79 CHECK(all(rect2.center() == float2(skRect2.centerX(), skRect2.centerY()))); in DEF_GRAPHITE_TEST()
H A DIntersectionTreeTest.cpp65 CHECK(tree.add(Rect(float2(-std::numeric_limits<float>::infinity()), in DEF_GRAPHITE_TEST()
66 float2(std::numeric_limits<float>::infinity())))); in DEF_GRAPHITE_TEST()
/third_party/skia/tests/
H A DSkVxTest.cpp12 using float2 = skvx::Vec<2,float>;
38 static_assert(sizeof(float2) == 8, ""); in DEF_TEST()
96 REPORTER_ASSERT(r, all( sqrt(float2{2,3}) < float2{2,2})); in DEF_TEST()
113 REPORTER_ASSERT(r, all(skvx::shuffle<2,1> (float4{1,2,3,4}) == float2{3,2})); in DEF_TEST()
174 float2 f = float2(1,2);
175 REPORTER_ASSERT(r, all(f == float2{1,2}));
179 REPORTER_ASSERT(r, all(f == float2{1,9}));
181 REPORTER_ASSERT(r, all(f == float2(
[all...]
H A DSkRuntimeEffectTest.cpp41 #define EMPTY_MAIN "half4 main(float2 p) { return half4(0); }"
52 test_invalid_effect(r, "in float2 v;" EMPTY_MAIN, "'in'"); in DEF_TEST()
57 test_invalid_effect(r, "half4 missing(); half4 main(float2 p) { return missing(); }", in DEF_TEST()
70 "half4 main(float2 p) { return sk_Caps.integerSupport ? half4(1) : half4(0); }", in DEF_TEST()
137 test_invalid("half4 main(float2 p) { return half4(1); }", "'main' parameter"); in DEF_TEST()
138 test_invalid("half4 main(float2 p, half4 c) { return c; }", "'main' parameter"); in DEF_TEST()
190 test_invalid("half4 main(float2 p) { return half4(1); }", "'main' parameter"); in DEF_TEST()
191 test_invalid("half4 main(float2 p, half4 c) { return c; }", "'main' parameter"); in DEF_TEST()
192 test_invalid("half4 main(float2 p, half4 a, half4 b) { return a; }", "'main' parameter"); in DEF_TEST()
231 // Shaders must use either the 'half4 main(float2)' o in DEF_TEST()
[all...]
/third_party/skia/src/gpu/ops/
H A DAtlasPathRenderer.cpp23 using grvx::float2;
30 std::tuple<float2,float2> round_out(const SkRect& r) { in round_out()
31 return {skvx::floor(float2::Load(&r.fLeft)), skvx::ceil(float2::Load(&r.fRight))}; in round_out()
49 float2 pathTopLeft = float2::Load(&pathDevBounds.fLeft); in is_visible()
50 float2 pathBotRight = float2::Load(&pathDevBounds.fRight); in is_visible()
56 float2 clipTopLef in is_visible()
[all...]
H A DPathInnerTriangulateOp.cpp85 float2 p0=p01.xy, p1=p01.zw, p2=p23.xy, p3=p23.zw; in makeProgramImpl()
92 float2 p1w = p1 * w; in makeProgramImpl()
94 float2 c1 = mix(p0, p1w, T); in makeProgramImpl()
95 float2 c2 = mix(p2, p1w, T); in makeProgramImpl()
103 float2 v1 = p1 - p0; in makeProgramImpl()
104 float2 v2 = p2 - p0; in makeProgramImpl()
105 float2 v3 = p3 - p0; in makeProgramImpl()
109 float2 tmp = p2; in makeProgramImpl()
132 float2 prev, next; in makeProgramImpl()
134 float2 localcoor in makeProgramImpl()
[all...]
/third_party/skia/demos.skia.org/demos/textedit/
H A Dspiralshader.js12 uniform float2 in_center;
16 half4 main(float2 p) {
17 float2 pp = p - in_center;
/third_party/ffmpeg/compat/cuda/
H A Dcuda_runtime.h52 typedef struct __device_builtin__ __align__(8) float2
55 } float2;
116 #define make_float2(a, b) ((float2){.x = a, .y = b})
130 TEX2D(float2, make_float2(a, b))
165 inline __device__ float2 tex2D<float2>(cudaTextureObject_t texObject, float x, float y) in tex2D()
/third_party/skia/src/core/
H A DSkGeometry.cpp455 using float2 = skvx::Vec<2,float>;
464 float2 p0 = skvx::bit_pun<float2>(src[0]);
465 float2 p1 = skvx::bit_pun<float2>(src[1]);
466 float2 p2 = skvx::bit_pun<float2>(src[2]);
467 float2 p3 = skvx::bit_pun<float2>(src[3]);
468 float2
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/shaders/
H A Dcommon.h41 constant float2 gCorners[3] = {float2(-1.0f, -1.0f), float2(3.0f, -1.0f), float2(-1.0f, 3.0f)};
74 static inline float3 cubeTexcoords(float2 texcoords, int face) in cubeTexcoords()
/third_party/skia/src/sksl/ir/
H A DSkSLChildCall.cpp47 const Type* float2 = context.fTypes.fFloat2.get(); in call_signature_is_valid() local
53 case Type::TypeKind::kShader: return { float2 }; in call_signature_is_valid()
/third_party/typescript/tests/baselines/reference/
H A DconstructorWithIncompleteTypeAnnotation.js80 var float = 6.02e23, float2 = 6.02E-23
87 var con = char + f + hexchar + float.toString() + float2.toString() + reg.toString() + objLit + weekday;
372 var float = 6.02e23, float2 = 6.02E-23;
379 var con = char + f + hexchar + float.toString() + float2.toString() + reg.toString() + objLit + weekday;

Completed in 16 milliseconds

12